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.stemmer.snowballdanish:40 ==abydos.stemmer.snowballnorwegian:39 '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.distance.sift4:138 ==abydos.distance.sift4simplest:109 for i in range(self.maxoffset): if not ( (srccur + i < srclen) or (tarcur + i < tar_len) ): break

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.tokenizer.qgrams:167 ==abydos.tokenizer.qskipgrams:183 string = ( self.startstop[0] * (qvali - 1) + self.string + self.startstop[-1] * (qvali - 1) ) else: string = self.string

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 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.phoneticeditdistance:29 ==abydos.distance.token_distance:30 Tuple, Union, cast, )

import numpy as np

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.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.phonetic.alphasis:39 ==abydos.phonetic.rogerroot:46 'GF': '08', 'GM': '03', 'GN': '02', 'KN': '02', 'PF': '08',

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:149 ==abydos.stemmer.porter:204 if word[0] == 'y': word = 'Y' + word[1:] for i in range(1, len(word)): if word[i] == 'y' and word[i - 1] in self._vowels: word = word[:i] + 'Y' + word[i + 1 :]

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.editex:293 ==abydos.distance.levenshtein:388 for pos in range(tar_len) ), ] ) else:

Severity
Category
Status
Source
Language