general: defaultdict fix

(addresses #2030)

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
41:1: F401 'PERSON_SEARCH_RESULTS_SHOW_PAPERS_PERSON_LIMIT' imported but unused
41:1: F401 'BIBAUTHORID_UI_SKIP_ARXIV_STUB_PAGE' imported but unused
41:1: F401 'PERSONS_PER_PAGE' imported but unused
42:29: E126 continuation line over-indented for hanging indent
49:51: E261 at least two spaces before inline comment
49:52: E262 inline comment should start with '# '
53:1: F401 'get_user_preferences' imported but unused
53:1: F401 'set_user_preferences' imported but unused
76:13: E126 continuation line over-indented for hanging indent
88:31: E126 continuation line over-indented for hanging indent
93:1: E302 expected 2 blank lines, found 1
93: D203 Expected 1 blank line *before* class docstring, found 0
93: D204 Expected 1 blank line *after* class docstring, found 0
93: D300 Expected """-quotes, got '''-quotes
119: D401 First line should be imperative: 'Thi', not 'This'
119: D400 First line should end with '.', not ':'
119: D205 Blank line missing between one-line summary and description
119: D300 Expected """-quotes, got '''-quotes
126:12: E713 test for membership should be 'not in'
135: D300 Expected """-quotes, got '''-quotes
172: D205 Blank line missing between one-line summary and description
172: D300 Expected """-quotes, got '''-quotes
264:5: E303 too many blank lines (2)
264: D300 Expected """-quotes, got '''-quotes
300:19: E127 continuation line over-indented for visual indent
302:13: E129 visually indented line with same indent as next logical line
316:21: E713 test for membership should be 'not in'
318:21: E129 visually indented line with same indent as next logical line
333: D401 First line should be imperative: 'Generate', not 'Generates'
333: D300 Expected """-quotes, got '''-quotes
362:9: E303 too many blank lines (2)
369:5: E303 too many blank lines (2)
369: D401 First line should be imperative: 'Generate', not 'Generates'
369: D300 Expected """-quotes, got '''-quotes
417:9: E303 too many blank lines (2)
424:5: E303 too many blank lines (2)
424: D401 First line should be imperative: 'Generate', not 'Generates'
424: D400 First line should end with '.', not 'n'
424: D205 Blank line missing between one-line summary and description
424: D300 Expected """-quotes, got '''-quotes
471:9: E303 too many blank lines (2)
478:5: E303 too many blank lines (2)
478: D401 First line should be imperative: 'Generate', not 'Generates'
478: D300 Expected """-quotes, got '''-quotes
509:5: E303 too many blank lines (2)
509: D401 First line should be imperative: 'Generate', not 'Generates'
509: D300 Expected """-quotes, got '''-quotes
590:29: E711 comparison to None should be 'if cond is None:'
635:9: E303 too many blank lines (2)
642:5: E303 too many blank lines (2)
642: D401 First line should be imperative: 'Generate', not 'Generates'
642: D300 Expected """-quotes, got '''-quotes
668:5: E303 too many blank lines (2)
668: D400 First line should end with '.', not 'f'
668: D205 Blank line missing between one-line summary and description
668: D300 Expected """-quotes, got '''-quotes
692:73: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
700:77: E712 comparison to True should be 'if cond is True:' or 'if cond:'
701:71: E221 multiple spaces before operator
704:18: E713 test for membership should be 'not in'
706:55: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
709:69: E221 multiple spaces before operator
712:55: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
722:5: E303 too many blank lines (2)
722: D401 First line should be imperative: 'Determine', not 'Determines'
722: D400 First line should end with '.', not 'n'
722: D300 Expected """-quotes, got '''-quotes
759:5: E303 too many blank lines (2)
760: D401 First line should be imperative: 'Return', not 'Returns'
760: D205 Blank line missing between one-line summary and description
760: D300 Expected """-quotes, got '''-quotes
771:5: E303 too many blank lines (2)
808:21: E129 visually indented line with same indent as next logical line
822:5: E303 too many blank lines (2)
822: D205 Blank line missing between one-line summary and description
822: D300 Expected """-quotes, got '''-quotes
859:53: E231 missing whitespace after ':'
867:47: E231 missing whitespace after ':'
900:9: F841 local variable 'ulevel' is assigned to but never used
944:14: E127 continuation line over-indented for visual indent
945:14: E127 continuation line over-indented for visual indent
951: D401 First line should be imperative: 'associate', not 'associates'
951: D400 First line should end with '.', not 'd'
951: D300 Expected """-quotes, got '''-quotes
951: D200 One-line docstring should not occupy 3 lines
959:29: E128 continuation line under-indented for visual indent
965:29: E128 continuation line under-indented for visual indent
971:29: E128 continuation line under-indented for visual indent
978: D401 First line should be imperative: 'associate', not 'associates'
978: D400 First line should end with '.', not 'd'
978: D300 Expected """-quotes, got '''-quotes
978: D200 One-line docstring should not occupy 3 lines
986:29: E128 continuation line under-indented for visual indent
992:29: E128 continuation line under-indented for visual indent
1012:29: E128 continuation line under-indented for visual indent
1018: D401 First line should be imperative: 'associate', not 'associates'
1018: D400 First line should end with '.', not 'd'
1018: D300 Expected """-quotes, got '''-quotes
1018: D200 One-line docstring should not occupy 3 lines
1026:25: E128 continuation line under-indented for visual indent
1042:22: E225 missing whitespace around operator
1052:18: E127 continuation line over-indented for visual indent
1056:22: E127 continuation line over-indented for visual indent
1060:22: E127 continuation line over-indented for visual indent
1085:46: E127 continuation line over-indented for visual indent
1094: D401 First line should be imperative: 'emptie', not 'empties'
1094: D400 First line should end with '.', not 'e'
1094: D205 Blank line missing between one-line summary and description
1094: D300 Expected """-quotes, got '''-quotes
1121:29: E128 continuation line under-indented for visual indent
1212:29: E128 continuation line under-indented for visual indent
1217:29: E128 continuation line under-indented for visual indent
1247:29: E128 continuation line under-indented for visual indent
1256:29: E128 continuation line under-indented for visual indent
1262:29: E128 continuation line under-indented for visual indent
1269:52: E251 unexpected spaces around keyword / parameter equals
1269:54: E251 unexpected spaces around keyword / parameter equals
1296: D401 First line should be imperative: 'delete', not 'deletes'
1296: D400 First line should end with '.', not 'd'
1296: D300 Expected """-quotes, got '''-quotes
1296: D200 One-line docstring should not occupy 3 lines
1304:29: E128 continuation line under-indented for visual indent
1310:29: E128 continuation line under-indented for visual indent
1319:25: E128 continuation line under-indented for visual indent
1321: D401 First line should be imperative: 'perform', not 'performs'
1321: D400 First line should end with '.', not 'e'
1321: D300 Expected """-quotes, got '''-quotes
1321: D200 One-line docstring should not occupy 3 lines
1395: D401 First line should be imperative: 'send', not 'sends'
1395: D400 First line should end with '.', not 'n'
1395: D300 Expected """-quotes, got '''-quotes
1395: D200 One-line docstring should not occupy 3 lines
1445:13: E303 too many blank lines (2)
1469:29: E128 continuation line under-indented for visual indent
1475:29: E128 continuation line under-indented for visual indent
1515:5: E303 too many blank lines (2)
1515: D400 First line should end with '.', not 'd'
1515: D300 Expected """-quotes, got '''-quotes
1550:13: E129 visually indented line with same indent as next logical line
1569:13: E128 continuation line under-indented for visual indent
1570:13: E128 continuation line under-indented for visual indent
1571:13: E128 continuation line under-indented for visual indent
1572:13: E128 continuation line under-indented for visual indent
1574: D401 First line should be imperative: 'Initialize', not 'Initializes'
1574: D400 First line should end with '.', not 'o'
1574: D300 Expected """-quotes, got '''-quotes
1594:5: E303 too many blank lines (2)
1594: D401 First line should be imperative: 'delete', not 'deletes'
1594: D400 First line should end with '.', not 't'
1594: D300 Expected """-quotes, got '''-quotes
1594: D200 One-line docstring should not occupy 3 lines
1603:5: E303 too many blank lines (2)
1603: D401 First line should be imperative: 'delete', not 'deletes'
1603: D400 First line should end with '.', not 't'
1603: D300 Expected """-quotes, got '''-quotes
1603: D200 One-line docstring should not occupy 3 lines
1610:5: E303 too many blank lines (2)
1610: D300 Expected """-quotes, got '''-quotes
1610: D200 One-line docstring should not occupy 3 lines
1635:5: E303 too many blank lines (2)
1635: D300 Expected """-quotes, got '''-quotes
1656:25: E128 continuation line under-indented for visual indent
1660:17: E128 continuation line under-indented for visual indent
1661:17: E128 continuation line under-indented for visual indent
1662:17: E128 continuation line under-indented for visual indent
1663:17: E128 continuation line under-indented for visual indent
1664:17: E128 continuation line under-indented for visual indent
1667:5: E303 too many blank lines (2)
1667: D401 First line should be imperative: 'Clean', not 'Cleans'
1667: D400 First line should end with '.', not 'd'
1667: D205 Blank line missing between one-line summary and description
1667: D300 Expected """-quotes, got '''-quotes
1687:13: E129 visually indented line with same indent as next logical line
1707: D400 First line should end with '.', not 'n'
1707: D205 Blank line missing between one-line summary and description
1707: D300 Expected """-quotes, got '''-quotes
1725: D400 First line should end with '.', not 'd'
1725: D300 Expected """-quotes, got '''-quotes
1760: D400 First line should end with '.', not 'e'
1760: D205 Blank line missing between one-line summary and description
1760: D300 Expected """-quotes, got '''-quotes
1775:9: F841 local variable 'person_id' is assigned to but never used
1776:9: F841 local variable 'uid' is assigned to but never used
1820:9: E303 too many blank lines (2)
1846:9: E303 too many blank lines (2)
1858:55: E251 unexpected spaces around keyword / parameter equals
1858:57: E251 unexpected spaces around keyword / parameter equals
1861:9: E303 too many blank lines (2)
1868: D400 First line should end with '.', not 's'
1868: D300 Expected """-quotes, got '''-quotes
1962: D401 First line should be imperative: 'call', not 'calls'
1962: D400 First line should end with '.', not 's'
1962: D300 Expected """-quotes, got '''-quotes
1975:9: F841 local variable 'nquery' is assigned to but never used
1998: D400 First line should end with '.', not 's'
1998: D205 Blank line missing between one-line summary and description
1998: D300 Expected """-quotes, got '''-quotes
2017:16: W601 .has_key() is deprecated, use 'in'
2021:25: F821 undefined name 'json_unicode_to_utf8'
2029:29: W601 .has_key() is deprecated, use 'in'
2054:29: W601 .has_key() is deprecated, use 'in'
2075:29: W601 .has_key() is deprecated, use 'in'
2106: D300 Expected """-quotes, got '''-quotes
2124:16: W601 .has_key() is deprecated, use 'in'
2128:25: F821 undefined name 'json_unicode_to_utf8'
2136:29: W601 .has_key() is deprecated, use 'in'
2139:43: E127 continuation line over-indented for visual indent
2148:29: W601 .has_key() is deprecated, use 'in'
2156:29: W601 .has_key() is deprecated, use 'in'
2164:29: W601 .has_key() is deprecated, use 'in'
2175:5: E303 too many blank lines (2)
2175: D400 First line should end with '.', not 'e'
2175: D300 Expected """-quotes, got '''-quotes
2264:112: E202 whitespace before ')'
2294: D400 First line should end with '.', not 'x'
2294: D300 Expected """-quotes, got '''-quotes
2313:9: F841 local variable 'pinfo' is assigned to but never used
2331: D400 First line should end with '.', not 'x'
2331: D300 Expected """-quotes, got '''-quotes
2375: D400 First line should end with '.', not 'x'
2375: D300 Expected """-quotes, got '''-quotes
2412:5: E303 too many blank lines (2)
2412: D102 Docstring missing
2416:20: W601 .has_key() is deprecated, use 'in'
2420:21: F821 undefined name 'json_unicode_to_utf8'
2493:5: E303 too many blank lines (2)
2494: D102 Docstring missing
2524:5: E303 too many blank lines (2)
2525: D400 First line should end with '.', not 'x'
2525: D300 Expected """-quotes, got '''-quotes
2540: D400 First line should end with '.', not 'x'
2540: D300 Expected """-quotes, got '''-quotes
2551: D400 First line should end with '.', not 'x'
2551: D300 Expected """-quotes, got '''-quotes
2574: D400 First line should end with '.', not 'x'
2574: D300 Expected """-quotes, got '''-quotes
2591:33: E231 missing whitespace after ','
2599: D400 First line should end with '.', not 'x'
2599: D300 Expected """-quotes, got '''-quotes
2627: D400 First line should end with '.', not 'e'
2627: D300 Expected """-quotes, got '''-quotes
2665:26: E128 continuation line under-indented for visual indent
2679: D102 Docstring missing
2715:5: E303 too many blank lines (2)
2715: D400 First line should end with '.', not 'a'
2715: D300 Expected """-quotes, got '''-quotes
2760:12: E713 test for membership should be 'not in'
2797:5: E303 too many blank lines (2)
2800: D101 Docstring missing
2808: D401 First line should be imperative: 'Thi', not 'This'
2808: D400 First line should end with '.', not ':'
2808: D205 Blank line missing between one-line summary and description
2808: D300 Expected """-quotes, got '''-quotes
2815:12: E713 test for membership should be 'not in'
2824: D300 Expected """-quotes, got '''-quotes
2868: D400 First line should end with '.', not 'e'
2868: D208 Docstring is over-indented
2868: D300 Expected """-quotes, got '''-quotes
2924:13: F841 local variable 'ssl_param' is assigned to but never used
2929:9: E303 too many blank lines (2)
2974:9: E303 too many blank lines (2)
2999:5: E303 too many blank lines (2)
2999: D102 Docstring missing
3023:5: E303 too many blank lines (2)
3023: D102 Docstring missing
3024:43: E231 missing whitespace after ':'
3046:5: E303 too many blank lines (2)
3046: D300 Expected """-quotes, got '''-quotes
3061:20: W601 .has_key() is deprecated, use 'in'
3065:21: F821 undefined name 'json_unicode_to_utf8'
3081:5: E303 too many blank lines (2)
3081: D102 Docstring missing
3082:43: E231 missing whitespace after ':'
3100:5: E303 too many blank lines (2)
3100: D300 Expected """-quotes, got '''-quotes
3115:20: W601 .has_key() is deprecated, use 'in'
3119:21: F821 undefined name 'json_unicode_to_utf8'
3133:5: E303 too many blank lines (2)
3137: D300 Expected """-quotes, got '''-quotes
3158:25: E128 continuation line under-indented for visual indent
3162:17: E128 continuation line under-indented for visual indent
3163:17: E128 continuation line under-indented for visual indent
3164:17: E128 continuation line under-indented for visual indent
3165:17: E128 continuation line under-indented for visual indent
3166:17: E128 continuation line under-indented for visual indent
3169:5: E303 too many blank lines (2)
3172: D101 Docstring missing
3183: D300 Expected """-quotes, got '''-quotes
3208: D300 Expected """-quotes, got '''-quotes
3223:20: W601 .has_key() is deprecated, use 'in'
3227:21: F821 undefined name 'json_unicode_to_utf8'
3249:5: E303 too many blank lines (2)
3249: D300 Expected """-quotes, got '''-quotes
3264:20: W601 .has_key() is deprecated, use 'in'
3268:21: F821 undefined name 'json_unicode_to_utf8'
3287:5: E303 too many blank lines (2)
3287: D300 Expected """-quotes, got '''-quotes
3302:20: W601 .has_key() is deprecated, use 'in'
3306:21: F821 undefined name 'json_unicode_to_utf8'
3333:5: E303 too many blank lines (2)
3333: D300 Expected """-quotes, got '''-quotes
3348:20: W601 .has_key() is deprecated, use 'in'
3352:21: F821 undefined name 'json_unicode_to_utf8'
3383:5: E303 too many blank lines (2)
3383: D300 Expected """-quotes, got '''-quotes
3398:20: W601 .has_key() is deprecated, use 'in'
3402:21: F821 undefined name 'json_unicode_to_utf8'
3433:5: E303 too many blank lines (2)
3433: D300 Expected """-quotes, got '''-quotes
3448:20: W601 .has_key() is deprecated, use 'in'
3452:21: F821 undefined name 'json_unicode_to_utf8'
3455:72: E231 missing whitespace after ','
3456:70: E231 missing whitespace after ','
3457:62: E231 missing whitespace after ','
3494:5: E303 too many blank lines (2)
3494: D300 Expected """-quotes, got '''-quotes
3509:20: W601 .has_key() is deprecated, use 'in'
3513:21: F821 undefined name 'json_unicode_to_utf8'
3535:5: E303 too many blank lines (2)
3545:5: E303 too many blank lines (2)
3550: D203 Expected 1 blank line *before* class docstring, found 0
3550: D204 Expected 1 blank line *after* class docstring, found 0
3550: D200 One-line docstring should not occupy 3 lines
3597:25: F821 undefined name 'json_unicode_to_utf8'
3611: D102 Docstring missing
3631: D203 Expected 1 blank line *before* class docstring, found 0
3631: D204 Expected 1 blank line *after* class docstring, found 0
3631: D300 Expected """-quotes, got '''-quotes
3672: D102 Docstring missing
3675: D102 Docstring missing
3708: D203 Expected 1 blank line *before* class docstring, found 0
3708: D204 Expected 1 blank line *after* class docstring, found 0
3708: D300 Expected """-quotes, got '''-quotes
3715:26: E231 missing whitespace after ','
3717: D102 Docstring missing
3720: D102 Docstring missing
3723: D400 First line should end with '.', not 'm'
3723: D200 One-line docstring should not occupy 3 lines
3731:29: E124 closing bracket does not match visual indentation
3783:34: E251 unexpected spaces around keyword / parameter equals
3783:36: E251 unexpected spaces around keyword / parameter equals