aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-09-05 15:04:14 -0700
committerBryan Newbold <bnewbold@archive.org>2018-09-05 15:04:14 -0700
commit9d21a922386624b39b730849ab56c00a061f255f (patch)
tree836fe493d9fc5c531a1b2a020ae7d4b6d1384ea5 /python
parentcb8a3684867adceb9ac363799ef10be0ebca7850 (diff)
downloadsandcrawler-9d21a922386624b39b730849ab56c00a061f255f.tar.gz
sandcrawler-9d21a922386624b39b730849ab56c00a061f255f.zip
blacklist -> denylist
Diffstat (limited to 'python')
-rwxr-xr-xpython/extraction_cdx_grobid.py8
-rwxr-xr-xpython/extraction_ungrobided.py8
2 files changed, 8 insertions, 8 deletions
diff --git a/python/extraction_cdx_grobid.py b/python/extraction_cdx_grobid.py
index 040538c..b27d053 100755
--- a/python/extraction_cdx_grobid.py
+++ b/python/extraction_cdx_grobid.py
@@ -37,7 +37,7 @@ from grobid2json import teixml2json
sentry_client = raven.Client()
# Specific poison-pill rows we should skip
-KEY_BLACKLIST = (
+KEY_DENYLIST = (
'sha1:DLCCSMMVTCCIR6LRXHEQLZ4PWO6NG2YT', # "failed to guess ARC header format"
)
@@ -210,9 +210,9 @@ class MRExtractCdxGrobid(MRJob):
yield _, status
return
key = info['key']
- if key in KEY_BLACKLIST:
- self.increment_counter('lines', 'blacklist')
- yield _, dict(status='blacklist', key=key)
+ if key in KEY_DENYLIST:
+ self.increment_counter('lines', 'denylist')
+ yield _, dict(status='denylist', key=key)
return
# Note: this may not get "cleared" correctly
diff --git a/python/extraction_ungrobided.py b/python/extraction_ungrobided.py
index 4074112..972b8f9 100755
--- a/python/extraction_ungrobided.py
+++ b/python/extraction_ungrobided.py
@@ -37,7 +37,7 @@ from grobid2json import teixml2json
sentry_client = raven.Client()
# Specific poison-pill rows we should skip
-KEY_BLACKLIST = (
+KEY_DENYLIST = (
'sha1:DLCCSMMVTCCIR6LRXHEQLZ4PWO6NG2YT', # "failed to guess ARC header format"
)
@@ -212,9 +212,9 @@ class MRExtractUnGrobided(MRJob):
yield _, status
return
key = info['key']
- if key in KEY_BLACKLIST:
- self.increment_counter('lines', 'blacklist')
- yield _, dict(status='blacklist', key=key)
+ if key in KEY_DENYLIST:
+ self.increment_counter('lines', 'denylist')
+ yield _, dict(status='denylist', key=key)
return
# Note: this may not get "cleared" correctly