-
-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use defaultdict for Query unknowns
Do not use defaultdict for Query.unknowns_by_pos and Query.stopwords_by_pos. Otherwise there are pernicious side effects to add new entries in these dctionaries when querying them after their creation. Reported-by: Mike Rombout @mrombout Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
- Loading branch information
1 parent
cc30ed2
commit 97a1a57
Showing
4 changed files
with
118 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
tests/licensedcode/data/query/unknown_positions/lz4.license.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
This repository uses 2 different licenses : | ||
- all files in the `lib` directory use a BSD 2-Clause license | ||
- all other files use a GPLv2 license, unless explicitly stated otherwise | ||
|
||
Relevant license is reminded at the top of each source file, | ||
and with presence of COPYING or LICENSE file in associated directories. | ||
|
||
This model is selected to emphasize that | ||
files in the `lib` directory are designed to be included into 3rd party applications, | ||
while all other files, in `programs`, `tests` or `examples`, | ||
receive more limited attention and support for such scenario. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters