Skip to content

Commit

Permalink
Move foreign language, non-english licenses to a temp dir
Browse files Browse the repository at this point in the history
 * These introduce a bias in word frequencies that needs to be supported
   first. It otherwise skews license detection too much and is a risk
   for low perf and false positives.

Link: #514
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Apr 20, 2017
1 parent 637885e commit b08850d
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/licensedcode/test_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,8 @@ def test_match_has_correct_line_positions_in_automake_perl_file(self):
expected = [
# detected, match.lines(), match.qspan,
(u'gpl-2.0-plus', (12, 25), Span(48, 159)),
(u'fsf-mit', (231, 238), Span(953, 1017)),
(u'free-unknown', (306, 307), Span(1304, 1327))
(u'fsf-mit', (231, 238), Span(952, 1016)),
(u'free-unknown', (306, 307), Span(1303, 1326))
]
self.check_position('positions/automake.pl', expected)

Expand Down

0 comments on commit b08850d

Please sign in to comment.