{"schema_version":"2","scorer_version":"0.1.0","scoring_version":"prov-5+qual-2+sec-2","generated_at":"2026-11-14T14:52:05.944286Z","repo":{"ref":{"host":"github.com","owner":"koth","name":"kcws"},"default_branch":"master","clone_url":"https://github.com/koth/kcws.git","html_url":"https://github.com/koth/kcws","description":"Deep Learning Chinese Word Segment ","stars":2069,"forks":625,"is_fork":false,"is_archived":false,"is_private":false,"size_kb":14014,"primary_language":"C++","license_spdx":null,"created_at":"2016-11-25T00:17:50Z","pushed_at":"2018-05-18T03:22:58Z","security_policy_url":null,"distribution":{"owner_created_at":"2010-02-14T10:17:33Z","owner_type":"User","release_assets":[{"name":"tf_dist_1.3_171213.zip","size":32581316,"download_count":68,"release_tag":"test","url":"https://github.com/koth/kcws/releases/download/test/tf_dist_1.3_171213.zip"}]}},"commit_sha":"88efbd36a7022de4e6e90f5a1fb880cf87cfae9f","profile":{"lines_by_language":{"C++":2975,"Python":2496,"C":1538,"Shell":113},"files_by_category":{"vendored":125,"source":51,"other":13,"docs":4,"binary":2,"oversized":2,"config":1},"source_lines":7122,"test_lines":0},"pillars":{"ai_provenance":{"score":0.0,"confidence":0.59,"coverage":1.0,"label":"none-detected","breakdown":{"attributed_share":0.0,"suspected_share":0.0,"estimated_share":0.0,"ai_artifacts":0.0,"flagged_work_units":0.0,"flagged_releases":null,"style_index":0.0},"summary":"No AI attribution or AI-consistent velocity signals detected."},"quality":{"score":26.1,"confidence":0.9,"coverage":1.0,"label":"poor","breakdown":{"complexity":64.6,"duplication":27.1,"lint":3.5,"testing":0.0,"docs":40.0,"type_safety":40.0,"process":null},"summary":"Code quality is poor: test-to-source ratio 0.00, no CI test run detected; 15% of function code in complex or long functions; 22% duplicated lines. Weakest area: testing."},"security":{"score":78.9,"confidence":0.85,"coverage":1.0,"label":"adequate","breakdown":{"secrets":93.6,"sast":100.0,"dependencies":null,"ci_actions":null,"posture":0.0,"scorecard":null},"summary":"Security posture is adequate: no high-impact findings. Weakest area: posture."}},"analyzer_results":[{"analyzer":"sec-scorecard","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":"no published OpenSSF Scorecard result for this repo"},{"analyzer":"sec-registry","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":"no registry dependencies declared"},{"analyzer":"ai-attribution","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"commits":77.0,"attributed_commits":0.0,"attributed_commit_share":0.0,"effective_loc":8812.0,"attributed_loc":0.0,"attributed_loc_share":0.0,"tools_detected":0.0},"findings":[],"evidence":[],"data":{"attributed_loc_by_commit":{},"tools":{},"monthly":{"2016-11":{"loc":4963,"attributed_loc":0},"2016-12":{"loc":914,"attributed_loc":0},"2017-01":{"loc":28,"attributed_loc":0},"2017-02":{"loc":1633,"attributed_loc":0},"2017-03":{"loc":3,"attributed_loc":0},"2017-04":{"loc":599,"attributed_loc":0},"2017-05":{"loc":0,"attributed_loc":0},"2017-06":{"loc":0,"attributed_loc":0},"2017-07":{"loc":246,"attributed_loc":0},"2017-08":{"loc":286,"attributed_loc":0},"2017-09":{"loc":135,"attributed_loc":0},"2017-11":{"loc":3,"attributed_loc":0},"2017-12":{"loc":2,"attributed_loc":0}}},"error":null},{"analyzer":"ai-artifacts","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"artifacts":0.0,"workflow_agents":0.0,"tools_configured":0.0},"findings":[],"evidence":[],"data":{"artifacts":[],"workflows":[],"tools":[]},"error":null},{"analyzer":"ai-velocity","pillar":"ai_provenance","status":"ok","tool_version":"prov-4","metrics":{"work_units":21.0,"flagged_units":0.0,"pre_ai_era_bursts":0.0,"pre_ai_era_measured_loc":4608.0,"pre_ai_era_burst_loc":0.0,"measured_loc":4608.0,"flagged_loc":0.0,"flagged_loc_share":0.0,"max_loc_per_hour":408.25,"median_loc_per_hour":68.0,"pr_timed_units":0.0,"excluded_import_loc":4204.0},"findings":[],"evidence":[],"data":{"flagged_loc_by_commit":{},"excluded_import_commits":["bb51d9a897b30369bda0cd5675eeb6d20babacf6"]},"error":null},{"analyzer":"ai-release-velocity","pillar":"ai_provenance","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"ai-stylometry","pillar":"ai_provenance","status":"ok","tool_version":null,"metrics":{"lines_scanned":7122.0,"index":0.0,"count:narrated_steps":0.0,"per_kloc:narrated_steps":0.0,"files:narrated_steps":0.0,"count:placeholder":0.0,"per_kloc:placeholder":0.0,"files:placeholder":0.0,"count:emoji_in_code":0.0,"per_kloc:emoji_in_code":0.0,"files:emoji_in_code":0.0,"count:assistant_voice":0.0,"per_kloc:assistant_voice":0.0,"files:assistant_voice":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-secrets","pillar":"security","status":"ok","tool_version":"gitleaks 8.30.1","metrics":{"secrets_current":0.0,"secrets_history":0.0,"secrets_nonprod":0.0,"secrets_low_confidence":2.0},"findings":[{"rule_id":"gitleaks/generic-api-key","severity":"low","message":"Possible generic-api-key secret in the current tree","path":"third_party/crow/include/crow/websocket.h","line":44,"fingerprint":"third_party/crow/include/crow/websocket.h:generic-api-key:44"},{"rule_id":"gitleaks/generic-api-key","severity":"low","message":"Possible generic-api-key secret in the current tree","path":"third_party/crow/amalgamate/crow_all.h","line":6453,"fingerprint":"third_party/crow/amalgamate/crow_all.h:generic-api-key:6453"}],"evidence":[],"data":{},"error":null},{"analyzer":"sec-sast","pillar":"security","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":0.0,"findings_high":0.0,"findings_medium":0.0,"findings_low":0.0,"weighted_findings":0.0,"scanned_lines":7122.0,"parse_errors":1.0},"findings":[],"evidence":[],"data":{"rulesets":["c","python","bash"]},"error":null},{"analyzer":"sec-deps","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-actions","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-posture","pillar":"security","status":"ok","tool_version":null,"metrics":{"check:security_policy":0.0,"check:dependency_updates":0.0,"check:signed_commits":0.0,"check:lockfiles":1.0,"signed_commit_share":0.0,"unpinned_manifests":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-distribution","pillar":"security","status":"ok","tool_version":null,"metrics":{"signals":1.0,"binary_assets":1.0,"suspicious":0.0},"findings":[],"evidence":[{"kind":"binary-release-asset","description":"release test ships tf_dist_1.3_171213.zip (68 downloads)","ref":"tf_dist_1.3_171213.zip","url":"https://github.com/koth/kcws/releases/download/test/tf_dist_1.3_171213.zip","weight":0.0}],"data":{"signals":["binary-release-assets"],"suspicious":false,"unusual_traction":false,"metadata":true},"error":null},{"analyzer":"qual-complexity","pillar":"quality","status":"ok","tool_version":"lizard 1.25.1","metrics":{"functions":302.0,"function_nloc":4786.0,"mean_ccn":4.35,"p90_ccn":11.0,"complex_functions":15.0,"long_functions":0.0,"many_param_functions":4.0,"risky_nloc_share":0.1458},"findings":[],"evidence":[{"kind":"complex-function","description":"jsonxx::parse_string in utils/jsonxx.cc: complexity 24, 67 lines","ref":"utils/jsonxx.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/utils/jsonxx.cc#L77","weight":0.4},{"kind":"complex-function","description":"jsonxx::parse_identifier in utils/jsonxx.cc: complexity 23, 34 lines","ref":"utils/jsonxx.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/utils/jsonxx.cc#L145","weight":0.38333333333333336},{"kind":"complex-function","description":"jsonxx::xml::open_tag in utils/jsonxx.cc: complexity 22, 51 lines","ref":"utils/jsonxx.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/utils/jsonxx.cc#L768","weight":0.36666666666666664},{"kind":"complex-function","description":"kcws::TfSegModel::Segment in kcws/cc/tf_seg_model.cc: complexity 19, 93 lines","ref":"kcws/cc/tf_seg_model.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/cc/tf_seg_model.cc#L273","weight":0.31666666666666665},{"kind":"complex-function","description":"BasicStringUtil::TrimString in utils/basic_string_util.h: complexity 19, 30 lines","ref":"utils/basic_string_util.h","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/utils/basic_string_util.h#L88","weight":0.31666666666666665},{"kind":"complex-function","description":"utils::Word2vecVocab::Load in utils/word2vec_vob.cc: complexity 19, 82 lines","ref":"utils/word2vec_vob.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/utils/word2vec_vob.cc#L53","weight":0.31666666666666665},{"kind":"complex-function","description":"processLine in kcws/train/generate_pos_train.py: complexity 18, 48 lines","ref":"kcws/train/generate_pos_train.py","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/train/generate_pos_train.py#L96","weight":0.3},{"kind":"complex-function","description":"BasicStringUtil::StripString in utils/basic_string_util.h: complexity 18, 27 lines","ref":"utils/basic_string_util.h","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/utils/basic_string_util.h#L264","weight":0.3},{"kind":"complex-function","description":"BasicStringUtil::StripStringASCIIWhole in utils/basic_string_util.h: complexity 17, 26 lines","ref":"utils/basic_string_util.h","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/utils/basic_string_util.h#L205","weight":0.2833333333333333},{"kind":"complex-function","description":"processLine in kcws/train/generate_training.py: complexity 16, 42 lines","ref":"kcws/train/generate_training.py","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/train/generate_training.py#L58","weight":0.26666666666666666}],"data":{},"error":null},{"analyzer":"qual-duplication","pillar":"quality","status":"ok","tool_version":"repotrust-dup-w6","metrics":{"compared_lines":5475.0,"duplicated_lines":1190.0,"duplicated_share":0.2174,"files":51.0},"findings":[],"evidence":[{"kind":"duplicate-code","description":"6+ duplicated lines: kcws/cc/gen_seg_eval.cc:30 and kcws/cc/test_seg.cc:31","ref":"kcws/cc/gen_seg_eval.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/cc/gen_seg_eval.cc#L30","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: kcws/cc/gen_seg_eval.cc:40 and kcws/cc/pos_tagger.cc:30","ref":"kcws/cc/gen_seg_eval.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/cc/gen_seg_eval.cc#L40","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: kcws/cc/pos_tagger.cc:25 and kcws/cc/pos_tagger.cc:99","ref":"kcws/cc/pos_tagger.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/cc/pos_tagger.cc#L25","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: kcws/cc/pos_tagger.cc:51 and kcws/cc/tf_seg_model.cc:162","ref":"kcws/cc/pos_tagger.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/cc/pos_tagger.cc#L51","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: kcws/cc/tf_seg_model.cc:157 and kcws/cc/tf_seg_model.cc:200","ref":"kcws/cc/tf_seg_model.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/cc/tf_seg_model.cc#L157","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: kcws/cc/viterbi_decode.cc:14 and kcws/cc/viterbi_decode.h:25","ref":"kcws/cc/viterbi_decode.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/cc/viterbi_decode.cc#L14","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: kcws/cc/viterbi_decode.cc:15 and kcws/cc/viterbi_decode.cc:50","ref":"kcws/cc/viterbi_decode.cc","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/cc/viterbi_decode.cc#L15","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: kcws/train/bilstm.py:44 and kcws/train/train_pos.py:161","ref":"kcws/train/bilstm.py","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/train/bilstm.py#L44","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: kcws/train/generate_char_embedding.py:13 and kcws/train/process_icwb.py:29","ref":"kcws/train/generate_char_embedding.py","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/train/generate_char_embedding.py#L13","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: kcws/train/generate_pos_train.py:74 and kcws/train/generate_training.py:20","ref":"kcws/train/generate_pos_train.py","url":"https://github.com/koth/kcws/blob/88efbd36a7022de4e6e90f5a1fb880cf87cfae9f/kcws/train/generate_pos_train.py#L74","weight":0.3}],"data":{},"error":null},{"analyzer":"qual-lint","pillar":"quality","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":61.0,"weighted_findings":95.5,"scanned_lines":7122.0,"category:best-practice":58.0,"category:correctness":2.0,"category:maintainability":1.0},"findings":[{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/cc/prepare_test_file.py","line":15,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/cc/prepare_test_file.py:15"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/cc/prepare_test_file.py","line":16,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/cc/prepare_test_file.py:16"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/filter_sentence.py","line":19,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/filter_sentence.py:19"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/filter_sentence.py","line":20,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/filter_sentence.py:20"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/generate_char_embedding.py","line":64,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/generate_char_embedding.py:64"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/generate_char_embedding.py","line":65,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/generate_char_embedding.py:65"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/generate_pos_train.py","line":148,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/generate_pos_train.py:148"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/merge_vec.py","line":13,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/merge_vec.py:13"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/merge_vec.py","line":14,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/merge_vec.py:14"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/process_icwb.py","line":77,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/process_icwb.py:77"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/process_icwb.py","line":78,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/process_icwb.py:78"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/process_people.py","line":83,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/process_people.py:83"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/process_people.py","line":84,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/process_people.py:84"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/sampling_for_train.py","line":14,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/sampling_for_train.py:14"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/sampling_for_train.py","line":15,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/sampling_for_train.py:15"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/sampling_for_train.py","line":16,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/sampling_for_train.py:16"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/stats_pos.py","line":93,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/stats_pos.py:93"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"kcws/train/train_embedding.py","line":184,"fingerprint":"python.lang.best-practice.open-never-closed:kcws/train/train_embedding.py:184"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/cc/prepare_test_file.py","line":15,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/cc/prepare_test_file.py:15"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/cc/prepare_test_file.py","line":16,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/cc/prepare_test_file.py:16"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/filter_sentence.py","line":15,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/filter_sentence.py:15"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/filter_sentence.py","line":19,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/filter_sentence.py:19"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/filter_sentence.py","line":20,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/filter_sentence.py:20"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/generate_char_embedding.py","line":64,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/generate_char_embedding.py:64"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/generate_char_embedding.py","line":65,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/generate_char_embedding.py:65"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/generate_pos_train.py","line":148,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/generate_pos_train.py:148"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/generate_pos_train.py","line":176,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/generate_pos_train.py:176"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/generate_pos_train.py","line":183,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/generate_pos_train.py:183"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/generate_train_free.py","line":67,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/generate_train_free.py:67"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/generate_train_free.py","line":68,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/generate_train_free.py:68"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/generate_training.py","line":113,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/generate_training.py:113"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/generate_training.py","line":120,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/generate_training.py:120"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/merge_vec.py","line":13,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/merge_vec.py:13"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/merge_vec.py","line":14,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/merge_vec.py:14"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/merge_vec.py","line":15,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/merge_vec.py:15"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/prepare_pos.py","line":83,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/prepare_pos.py:83"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/prepare_pos.py","line":90,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/prepare_pos.py:90"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/process_anno_file.py","line":92,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/process_anno_file.py:92"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/process_anno_file.py","line":99,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/process_anno_file.py:99"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/process_icwb.py","line":77,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/process_icwb.py:77"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/process_icwb.py","line":78,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/process_icwb.py:78"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/process_people.py","line":83,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/process_people.py:83"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/process_people.py","line":84,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/process_people.py:84"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/replace_unk.py","line":13,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/replace_unk.py:13"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/replace_unk.py","line":14,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/replace_unk.py:14"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/replace_unk.py","line":15,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/replace_unk.py:15"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/sampling_for_train.py","line":14,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/sampling_for_train.py:14"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/sampling_for_train.py","line":15,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/sampling_for_train.py:15"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/sampling_for_train.py","line":16,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/sampling_for_train.py:16"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/stats_pos.py","line":92,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/stats_pos.py:92"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/stats_pos.py","line":93,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/stats_pos.py:93"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/stats_pos.py","line":99,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/stats_pos.py:99"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/train_cws.py","line":41,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/train_cws.py:41"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/train_cws.py","line":115,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/train_cws.py:115"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/train_embedding.py","line":36,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/train_embedding.py:36"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/train_embedding.py","line":184,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/train_embedding.py:184"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/train_pos.py","line":45,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/train_pos.py:45"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"kcws/train/train_pos.py","line":192,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:kcws/train/train_pos.py:192"},{"rule_id":"opengrep/python.lang.maintainability.return-not-in-function","severity":"medium","message":"`return` only makes sense inside a function","path":"tools/freeze_graph.py","line":139,"fingerprint":"python.lang.maintainability.return-not-in-function:tools/freeze_graph.py:139"},{"rule_id":"opengrep/bash.lang.correctness.unquoted-command-substitution-in-command","severity":"low","message":"The result of command substitution $(...) or `...`, if unquoted, is split on whitespace or other separators specified by the IFS variable. You should surround it with double quotes to avoid splitting the result.","path":"util/python/python_config.sh","line":25,"fingerprint":"bash.lang.correctness.unquoted-command-substitution-in-command:util/python/python_config.sh:25"},{"rule_id":"opengrep/bash.lang.correctness.unquoted-command-substitution-in-command","severity":"low","message":"The result of command substitution $(...) or `...`, if unquoted, is split on whitespace or other separators specified by the IFS variable. You should surround it with double quotes to avoid splitting the result.","path":"util/python/python_config.sh","line":25,"fingerprint":"bash.lang.correctness.unquoted-command-substitution-in-command:util/python/python_config.sh:25"}],"evidence":[],"data":{},"error":null},{"analyzer":"qual-testing","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:has_tests":0.0,"check:test_ratio":0.0,"check:ci_present":0.0,"check:ci_runs_tests":0.0,"check:ci_runs_lint":0.0,"check:tests_cochange":0.0,"test_lines":0.0,"source_lines":7122.0,"test_ratio":0.0,"ci_files":0.0,"cochange_share":0.0,"cochange_commits":25.0},"findings":[],"evidence":[],"data":{"test_commands":[],"lint_commands":[]},"error":null},{"analyzer":"qual-docs","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:readme":1.0,"check:license":0.0,"check:contributing":0.0,"check:changelog":0.0,"readme_lines":59.0},"findings":[],"evidence":[{"kind":"docs","description":"README.md","ref":"README.md","url":null,"weight":0.0}],"data":{},"error":null},{"analyzer":"qual-type-safety","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:strict_config":0.0,"check:low_escape_density":1.0,"escapes":0.0,"escapes_per_kloc":0.0},"findings":[],"evidence":[],"data":{},"error":null}],"flags":[]}