chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.util.init:34 ==abydos.util.data:37 _all__ = [ 'datapath', 'downloadpackage', 'listavailablepackages', 'listinstalledpackages', 'package_path', ]

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.stemmer.clefgerman:84 ==abydos.stemmer.sstemmer:73 return word[:-1] return word

if name == 'main': import doctest

doctest.testmod()

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.stemmer.schinke:217 ==abydos.stemmer.snowball_norwegian:46 'l', 'm', 'n', 'o', 'p',

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.phonetic.rethschek:182 ==abydos.stemmer.snowballdanish:167 word = word[:-1]

return word

if name == 'main': import doctest

doctest.testmod()

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.distance.prefix:77 ==abydos.distance.suffix:77 return i / min_len return 0.0

if name == 'main': import doctest

doctest.testmod()

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.stemmer.porter2:218 ==abydos.stemmer.porter:241 word = word[:-3] step1b_flag = True

if step1b_flag: if word[-2:] in {'at', 'bl', 'iz'}: word += 'e'

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.phonetic.haase:179 ==abydos.phonetic.koelner:129 word = unicode_normalize('NFKD', word.upper())

word = word.replace('Ä', 'AE') word = word.replace('Ö', 'OE') word = word.replace('Ü', 'UE') word = ''.join(c for c in word if c in self.ucset)

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.distance.jarowinkler:239 ==abydos.distance.strcmp95:256 if ( self.longstrings and (minv > 4) and (numcom > i + 1) and (2 * num_com >= minv + i) ):

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.distance.synoname:27 ==abydos.distance.token_distance:29 Optional, Tuple, Union, cast, )

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.distance.flexmetric:31 ==abydos.distance.meta_levenshtein:30 cast, )

from numpy import float_ as npfloat from numpy import zeros as npzeros

from ._distance import _Distance

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.phonetic.koelner:225 ==abydos.phonetic.russellindex:135 num = ''.join(c for c in self.encode(word) if c in self.numset) return num.translate(self.num_trans)

if name == 'main': import doctest

doctest.testmod()

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.distance.dameraulevenshtein:113 ==abydos.distance.shapirastoreri:152 if src == tar: return 0 if not src: return len(tar) * inscost if not tar: return len(src) * del_cost

Similar lines in 4 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.tokenizer.character:79 ==abydos.tokenizer.legalipy:139 ==abydos.tokenizer.regexp:99 ==abydos.tokenizer.sonoripy:104 self.scaleand_counterize() return self

if name == 'main': import doctest

doctest.testmod()

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.distance.levenshtein:372 ==abydos.distance.phoneticeditdistance:300 if src == tar: return 0.0 inscost, delcost = self._cost[:2]

srclen = len(src) tarlen = len(tar)

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.phonetic.alphasis:102 ==abydos.phonetic._phonic:54 'G': '7', 'Q': '7', 'X': '7', 'F': '8', 'V': '8', 'B': '9', 'P': '9',

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.fingerprint.init:102 ==abydos.fingerprint.fingerprint:86 'MOSTCOMMONLETTERS', 'MOSTCOMMONLETTERSCG', 'MOSTCOMMONLETTERSDE', 'MOSTCOMMONLETTERSDELC', 'MOSTCOMMONLETTERSEN_LC',

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.stemmer.snowballnorwegian:38 ==abydos.stemmer.snowballswedish:38 sendings = { 'b', 'c', 'd', 'f', 'g', 'h', 'j',

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.stemmer.snowballdutch:177 ==abydos.stemmer.snowballgerman:175 if len(word[r2start:]) >= 3: word = word[:-3] if ( word[-2:] == 'ig' and len(word[r2start:]) >= 2 and word[-3] != 'e' ): word = word[:-2]

Similar lines in 3 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.stemmer.schinke:215 ==abydos.stemmer.snowballdanish:46 ==abydos.stemmer.snowball_swedish:45 'j', 'k', 'l', 'm', 'n', 'o', 'p',

Similar lines in 2 files
Open

# Copyright 2014-2020 by Christopher C. Little.
Severity: Info
Found in abydos/compression/_rle.py by pylint

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==abydos.distance.editex:293 ==abydos.distance.levenshtein:388 for pos in range(tar_len) ), ] ) else:

Severity
Category
Status
Source
Language