-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommit_scorer.py
19 lines (11 loc) · 1018 Bytes
/
commit_scorer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
keywords_array = ['algorithm', 'argument', 'array', 'assignment', 'brackets', 'bug', 'call', 'class', 'comment',
'comment out', 'compiler', 'constant', 'crash', 'data structure', 'debug', 'declaration', 'definition',
'double', 'execute', 'executable', 'float', 'function', 'function call', 'implement', 'instance',
'instance variable', 'instantiate', 'integer', 'interpreter', 'invoke', 'iterate', 'loop', 'member function',
'member variable', 'method', 'nested', 'object', 'object-oriented', 'parameter', 'parenthesis', 'procedure',
'program', 'read', 'return', 'return value', 'run', 'string', 'syntax', 'type', 'value', 'variable', 'write']
languages = ["c++", "c", "python", "java", "perl", "go", "lua", "swift", "javascript"]
extensions = ['.c', '.cpp', '.h', '.class', '.cs', '.java', '.sh', '.swift', '.vb', '.py', '.pyc', '.pyx', '.m', '.mm', '.h']
# PSEUDOCODE
# get scored username and issue
target_user = str