PyReprism
Overview
High-level API
Command-line interface
Tokens
Metrics
N-grams & code naturalness
Fingerprinting & similarity
Engines
Batch / directory processing
Diff processing
Languages
Extension
Normalizer
Reference
PyReprism
Index
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
J
|
K
|
L
|
M
|
N
|
O
|
P
|
R
|
S
|
T
|
U
|
V
|
W
_
__annotations__ (PyReprism.languages.c.C attribute)
(PyReprism.languages.cpp.CPP attribute)
(PyReprism.languages.dart.Dart attribute)
(PyReprism.languages.java.Java attribute)
(PyReprism.languages.javascript.JavaScript attribute)
(PyReprism.languages.jsx.Jsx attribute)
(PyReprism.languages.kotlin.Kotlin attribute)
(PyReprism.languages.rust.Rust attribute)
(PyReprism.languages.scala.Scala attribute)
(PyReprism.languages.swift.Swift attribute)
__module__ (PyReprism.languages.c.C attribute)
(PyReprism.languages.cpp.CPP attribute)
(PyReprism.languages.dart.Dart attribute)
(PyReprism.languages.java.Java attribute)
(PyReprism.languages.javascript.JavaScript attribute)
(PyReprism.languages.jsx.Jsx attribute)
(PyReprism.languages.kotlin.Kotlin attribute)
(PyReprism.languages.python.Python attribute)
(PyReprism.languages.rust.Rust attribute)
(PyReprism.languages.scala.Scala attribute)
(PyReprism.languages.swift.Swift attribute)
(PyReprism.utils.normalizer.Normalizer attribute)
A
add() (PyReprism.fingerprints.FingerprintIndex method)
add_paths() (PyReprism.fingerprints.FingerprintIndex method)
added (PyReprism.diffs.DiffFileStats property)
ADDED (PyReprism.diffs.LineKind attribute)
added_blank (PyReprism.diffs.DiffFileStats attribute)
added_code (PyReprism.diffs.DiffFileStats attribute)
added_comment (PyReprism.diffs.DiffFileStats attribute)
added_text() (PyReprism.diffs.DiffFile method)
analyze() (in module PyReprism.batch)
as_dict() (PyReprism.diffs.DiffFileStats method)
(PyReprism.Halstead method)
(PyReprism.metrics.CodeStats method)
(PyReprism.metrics.Halstead method)
B
BatchReport (class in PyReprism.batch)
blank_comments() (in module PyReprism)
blank_lines (PyReprism.metrics.CodeStats attribute)
boolean_regex() (PyReprism.languages.cpp.CPP class method)
(PyReprism.languages.dart.Dart class method)
(PyReprism.languages.java.Java class method)
(PyReprism.languages.javascript.JavaScript class method)
(PyReprism.languages.jsx.Jsx class method)
(PyReprism.languages.kotlin.Kotlin class method)
(PyReprism.languages.rust.Rust class method)
(PyReprism.languages.scala.Scala class method)
(PyReprism.languages.swift.Swift class method)
bugs (PyReprism.Halstead property)
(PyReprism.metrics.Halstead property)
by_language() (PyReprism.batch.BatchReport method)
C
C (class in PyReprism.languages.c)
changed_text() (PyReprism.diffs.DiffFile method)
characters (PyReprism.metrics.CodeStats attribute)
code_lines (PyReprism.metrics.CodeStats attribute)
code_metrics() (in module PyReprism)
CodeStats (class in PyReprism.metrics)
COMMENT (PyReprism.tokens.TokenType attribute)
comment_density (PyReprism.metrics.CodeStats property)
comment_lines (PyReprism.metrics.CodeStats attribute)
comment_regex() (PyReprism.languages.c.C class method)
(PyReprism.languages.cpp.CPP class method)
(PyReprism.languages.dart.Dart class method)
(PyReprism.languages.java.Java class method)
(PyReprism.languages.javascript.JavaScript class method)
(PyReprism.languages.jsx.Jsx class method)
(PyReprism.languages.kotlin.Kotlin class method)
(PyReprism.languages.python.Python class method)
(PyReprism.languages.rust.Rust class method)
(PyReprism.languages.scala.Scala class method)
(PyReprism.languages.swift.Swift class method)
comment_to_code_ratio (PyReprism.metrics.CodeStats property)
comment_tokens (PyReprism.metrics.CodeStats attribute)
containment() (in module PyReprism.fingerprints)
CONTEXT (PyReprism.diffs.LineKind attribute)
cosmetic_files() (in module PyReprism.diffs)
count_comments() (in module PyReprism)
count_keywords() (in module PyReprism)
count_numbers() (in module PyReprism)
CPP (class in PyReprism.languages.cpp)
cross_entropy() (PyReprism.ngrams.NgramModel method)
cyclomatic_complexity() (in module PyReprism)
D
Dart (class in PyReprism.languages.dart)
delimiters_regex() (PyReprism.languages.c.C class method)
(PyReprism.languages.cpp.CPP class method)
(PyReprism.languages.dart.Dart class method)
(PyReprism.languages.java.Java class method)
(PyReprism.languages.javascript.JavaScript class method)
(PyReprism.languages.jsx.Jsx class method)
(PyReprism.languages.kotlin.Kotlin class method)
(PyReprism.languages.python.Python class method)
(PyReprism.languages.rust.Rust class method)
(PyReprism.languages.scala.Scala class method)
(PyReprism.languages.swift.Swift class method)
detect_language() (in module PyReprism)
Diff (class in PyReprism.diffs)
diff_stats() (in module PyReprism.diffs)
DiffFile (class in PyReprism.diffs)
DiffFileStats (class in PyReprism.diffs)
difficulty (PyReprism.Halstead property)
(PyReprism.metrics.Halstead property)
DiffLine (class in PyReprism.diffs)
DiffReport (class in PyReprism.diffs)
distinct_operands (PyReprism.Halstead attribute)
(PyReprism.metrics.Halstead attribute)
distinct_operators (PyReprism.Halstead attribute)
(PyReprism.metrics.Halstead attribute)
E
effort (PyReprism.Halstead property)
(PyReprism.metrics.Halstead property)
end (PyReprism.tokens.Token attribute)
Engine (class in PyReprism.engines)
(class in PyReprism.engines.base)
error (PyReprism.batch.FileReport attribute)
errors (PyReprism.batch.BatchReport property)
extract_comments() (in module PyReprism)
(PyReprism.diffs.DiffFile method)
extract_identifiers() (in module PyReprism)
extract_keywords() (in module PyReprism)
extract_numbers() (in module PyReprism)
extract_operators() (in module PyReprism)
extract_strings() (in module PyReprism)
F
file_extension() (PyReprism.languages.c.C class method)
(PyReprism.languages.cpp.CPP class method)
(PyReprism.languages.dart.Dart class method)
(PyReprism.languages.java.Java class method)
(PyReprism.languages.javascript.JavaScript class method)
(PyReprism.languages.jsx.Jsx class method)
(PyReprism.languages.kotlin.Kotlin class method)
(PyReprism.languages.python.Python class method)
(PyReprism.languages.rust.Rust class method)
(PyReprism.languages.scala.Scala class method)
(PyReprism.languages.swift.Swift class method)
FileReport (class in PyReprism.batch)
files (PyReprism.batch.BatchReport attribute)
(PyReprism.diffs.Diff attribute)
(PyReprism.diffs.DiffReport attribute)
fingerprint() (in module PyReprism.fingerprints)
FingerprintIndex (class in PyReprism.fingerprints)
fit() (PyReprism.ngrams.NgramModel method)
from_dict() (PyReprism.ngrams.NgramModel class method)
G
get_engine() (in module PyReprism.engines)
get_language() (in module PyReprism)
H
Halstead (class in PyReprism)
(class in PyReprism.metrics)
halstead() (in module PyReprism)
Hunk (class in PyReprism.diffs)
hunks (PyReprism.diffs.DiffFile attribute)
I
IDENTIFIER (PyReprism.tokens.TokenType attribute)
identifier_tokens (PyReprism.metrics.CodeStats attribute)
is_binary (PyReprism.diffs.DiffFile attribute)
(PyReprism.diffs.DiffFileStats attribute)
is_cosmetic_change() (in module PyReprism.diffs)
is_deleted (PyReprism.diffs.DiffFile attribute)
is_new (PyReprism.diffs.DiffFile attribute)
is_rename (PyReprism.diffs.DiffFile attribute)
iter_source_files() (in module PyReprism.batch)
J
jaccard() (in module PyReprism.fingerprints)
Java (class in PyReprism.languages.java)
JavaScript (class in PyReprism.languages.javascript)
Jsx (class in PyReprism.languages.jsx)
K
KEYWORD (PyReprism.tokens.TokenType attribute)
keyword_tokens (PyReprism.metrics.CodeStats attribute)
keywords() (PyReprism.languages.c.C class method)
(PyReprism.languages.cpp.CPP class method)
(PyReprism.languages.dart.Dart class method)
(PyReprism.languages.java.Java class method)
(PyReprism.languages.javascript.JavaScript class method)
(PyReprism.languages.jsx.Jsx class method)
(PyReprism.languages.kotlin.Kotlin class method)
(PyReprism.languages.python.Python class method)
(PyReprism.languages.rust.Rust class method)
(PyReprism.languages.scala.Scala class method)
(PyReprism.languages.swift.Swift class method)
keywords_regex() (PyReprism.languages.java.Java class method)
(PyReprism.languages.jsx.Jsx class method)
(PyReprism.languages.swift.Swift class method)
kind (PyReprism.diffs.DiffLine attribute)
Kotlin (class in PyReprism.languages.kotlin)
L
language (PyReprism.batch.FileReport attribute)
(PyReprism.diffs.DiffFile property)
(PyReprism.diffs.DiffFileStats attribute)
length (PyReprism.Halstead property)
(PyReprism.metrics.Halstead property)
line (PyReprism.tokens.Token attribute)
LineKind (class in PyReprism.diffs)
lines (PyReprism.diffs.Hunk attribute)
(PyReprism.metrics.CodeStats attribute)
load() (PyReprism.ngrams.NgramModel class method)
logprob() (PyReprism.ngrams.NgramModel method)
M
maintainability_index() (in module PyReprism)
match_comments() (in module PyReprism)
matches() (PyReprism.fingerprints.FingerprintIndex method)
module
PyReprism
PyReprism.batch
PyReprism.diffs
PyReprism.engines
PyReprism.engines.base
PyReprism.fingerprints
PyReprism.languages.c
PyReprism.languages.cpp
PyReprism.languages.dart
PyReprism.languages.java
PyReprism.languages.javascript
PyReprism.languages.jsx
PyReprism.languages.kotlin
PyReprism.languages.python
PyReprism.languages.rust
PyReprism.languages.scala
PyReprism.languages.swift
PyReprism.metrics
PyReprism.ngrams
PyReprism.tokens
PyReprism.utils.extension
PyReprism.utils.normalizer
N
name (PyReprism.engines.base.Engine attribute)
(PyReprism.engines.Engine attribute)
(PyReprism.engines.PygmentsEngine attribute)
(PyReprism.engines.RegexEngine attribute)
new_lineno (PyReprism.diffs.DiffLine attribute)
new_path (PyReprism.diffs.DiffFile attribute)
new_source (PyReprism.diffs.DiffFile attribute)
new_start (PyReprism.diffs.Hunk attribute)
new_text() (PyReprism.diffs.DiffFile method)
ngram_counts() (in module PyReprism.ngrams)
NgramModel (class in PyReprism.ngrams)
ngrams() (in module PyReprism.ngrams)
ngrams_of() (in module PyReprism.ngrams)
normalize() (in module PyReprism)
(PyReprism.diffs.DiffFile method)
normalized_tokens() (in module PyReprism.fingerprints)
Normalizer (class in PyReprism.utils.normalizer)
NUMBER (PyReprism.tokens.TokenType attribute)
number_regex() (PyReprism.languages.c.C class method)
(PyReprism.languages.cpp.CPP class method)
(PyReprism.languages.dart.Dart class method)
(PyReprism.languages.java.Java class method)
(PyReprism.languages.javascript.JavaScript class method)
(PyReprism.languages.jsx.Jsx class method)
(PyReprism.languages.kotlin.Kotlin class method)
(PyReprism.languages.python.Python class method)
(PyReprism.languages.rust.Rust class method)
(PyReprism.languages.scala.Scala class method)
(PyReprism.languages.swift.Swift class method)
number_tokens (PyReprism.metrics.CodeStats attribute)
O
ok (PyReprism.batch.BatchReport property)
old_lineno (PyReprism.diffs.DiffLine attribute)
old_path (PyReprism.diffs.DiffFile attribute)
old_source (PyReprism.diffs.DiffFile attribute)
old_start (PyReprism.diffs.Hunk attribute)
old_text() (PyReprism.diffs.DiffFile method)
OPERATOR (PyReprism.tokens.TokenType attribute)
operator_regex() (PyReprism.languages.c.C class method)
(PyReprism.languages.cpp.CPP class method)
(PyReprism.languages.dart.Dart class method)
(PyReprism.languages.java.Java class method)
(PyReprism.languages.javascript.JavaScript class method)
(PyReprism.languages.jsx.Jsx class method)
(PyReprism.languages.kotlin.Kotlin class method)
(PyReprism.languages.python.Python class method)
(PyReprism.languages.rust.Rust class method)
(PyReprism.languages.scala.Scala class method)
(PyReprism.languages.swift.Swift class method)
operator_tokens (PyReprism.metrics.CodeStats attribute)
OTHER (PyReprism.tokens.TokenType attribute)
P
parse() (in module PyReprism.diffs)
path (PyReprism.batch.FileReport attribute)
(PyReprism.diffs.DiffFile property)
(PyReprism.diffs.DiffFileStats attribute)
perplexity() (PyReprism.ngrams.NgramModel method)
preprocess() (in module PyReprism)
PygmentsEngine (class in PyReprism.engines)
PyReprism
module
PyReprism.batch
module
PyReprism.diffs
module
PyReprism.engines
module
PyReprism.engines.base
module
PyReprism.fingerprints
module
PyReprism.languages.c
module
PyReprism.languages.cpp
module
PyReprism.languages.dart
module
PyReprism.languages.java
module
PyReprism.languages.javascript
module
PyReprism.languages.jsx
module
PyReprism.languages.kotlin
module
PyReprism.languages.python
module
PyReprism.languages.rust
module
PyReprism.languages.scala
module
PyReprism.languages.swift
module
PyReprism.metrics
module
PyReprism.ngrams
module
PyReprism.tokens
module
PyReprism.utils.extension
module
PyReprism.utils.normalizer
module
Python (class in PyReprism.languages.python)
R
RegexEngine (class in PyReprism.engines)
remove_comments() (in module PyReprism)
(PyReprism.languages.c.C class method)
(PyReprism.languages.cpp.CPP class method)
(PyReprism.languages.dart.Dart class method)
(PyReprism.languages.java.Java class method)
(PyReprism.languages.javascript.JavaScript class method)
(PyReprism.languages.jsx.Jsx class method)
(PyReprism.languages.kotlin.Kotlin class method)
(PyReprism.languages.python.Python class method)
(PyReprism.languages.rust.Rust class method)
(PyReprism.languages.scala.Scala class method)
(PyReprism.languages.swift.Swift class method)
remove_keywords() (in module PyReprism)
(PyReprism.languages.c.C class method)
(PyReprism.languages.cpp.CPP class method)
(PyReprism.languages.dart.Dart class method)
(PyReprism.languages.java.Java class method)
(PyReprism.languages.javascript.JavaScript class method)
(PyReprism.languages.jsx.Jsx class method)
(PyReprism.languages.kotlin.Kotlin class method)
(PyReprism.languages.python.Python class method)
(PyReprism.languages.rust.Rust class method)
(PyReprism.languages.scala.Scala class method)
(PyReprism.languages.swift.Swift class method)
remove_numbers() (in module PyReprism)
remove_operators() (in module PyReprism)
remove_strings() (in module PyReprism)
remove_whitespaces() (in module PyReprism)
(PyReprism.utils.normalizer.Normalizer static method)
removed (PyReprism.diffs.DiffFileStats property)
REMOVED (PyReprism.diffs.LineKind attribute)
removed_blank (PyReprism.diffs.DiffFileStats attribute)
removed_code (PyReprism.diffs.DiffFileStats attribute)
removed_comment (PyReprism.diffs.DiffFileStats attribute)
removed_text() (PyReprism.diffs.DiffFile method)
Rust (class in PyReprism.languages.rust)
S
save() (PyReprism.ngrams.NgramModel method)
Scala (class in PyReprism.languages.scala)
section (PyReprism.diffs.Hunk attribute)
similar_pairs() (PyReprism.fingerprints.FingerprintIndex method)
similarity() (in module PyReprism.fingerprints)
src.PyReprism.__version__ (built-in variable)
start (PyReprism.tokens.Token attribute)
stats (PyReprism.batch.FileReport attribute)
stats() (in module PyReprism)
STRING (PyReprism.tokens.TokenType attribute)
string_tokens (PyReprism.metrics.CodeStats attribute)
Swift (class in PyReprism.languages.swift)
T
text (PyReprism.diffs.DiffLine attribute)
time_seconds (PyReprism.Halstead property)
(PyReprism.metrics.Halstead property)
to_csv() (PyReprism.batch.BatchReport method)
(PyReprism.diffs.DiffReport method)
to_dict() (PyReprism.batch.BatchReport method)
(PyReprism.diffs.DiffReport method)
(PyReprism.ngrams.NgramModel method)
to_json() (PyReprism.batch.BatchReport method)
(PyReprism.diffs.DiffReport method)
Token (class in PyReprism.tokens)
token_sequence() (in module PyReprism.ngrams)
tokenize() (in module PyReprism)
(PyReprism.diffs.DiffFile method)
(PyReprism.engines.base.Engine method)
(PyReprism.engines.Engine method)
(PyReprism.engines.PygmentsEngine method)
(PyReprism.engines.RegexEngine method)
TokenType (class in PyReprism.tokens)
total_operands (PyReprism.Halstead attribute)
(PyReprism.metrics.Halstead attribute)
total_operators (PyReprism.Halstead attribute)
(PyReprism.metrics.Halstead attribute)
totals() (PyReprism.batch.BatchReport method)
(PyReprism.diffs.DiffReport method)
train() (in module PyReprism.ngrams)
transform() (in module PyReprism.batch)
type (PyReprism.tokens.Token attribute)
U
update() (PyReprism.ngrams.NgramModel method)
V
value (PyReprism.tokens.Token attribute)
vocab_size (PyReprism.ngrams.NgramModel property)
vocabulary (PyReprism.Halstead property)
(PyReprism.metrics.Halstead property)
volume (PyReprism.Halstead property)
(PyReprism.metrics.Halstead property)
W
WHITESPACE (PyReprism.tokens.TokenType attribute)
whitespaces_regex() (PyReprism.utils.normalizer.Normalizer static method)