Search is not available for this dataset
id stringlengths 1 8 | text stringlengths 72 9.81M | addition_count int64 0 10k | commit_subject stringlengths 0 3.7k | deletion_count int64 0 8.43k | file_extension stringlengths 0 32 | lang stringlengths 1 94 | license stringclasses 10
values | repo_name stringlengths 9 59 |
|---|---|---|---|---|---|---|---|---|
10030550 | <NME> __init__.py
<BEF> from common import cache
from shape import get_all_shape_datasets,\
export_shape, aggregate_point_data
from sensor import weather_stations, weather
API_VERSION = '/v1'
resp = make_response(json.dumps({'status': 'ok', 'message': 'cache flushed!'}))
resp.headers['Cont... | 7 | Add sleep endpoint to debug cache | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030551 | <NME> __init__.py
<BEF> from common import cache
from shape import get_all_shape_datasets,\
export_shape, aggregate_point_data
from sensor import weather_stations, weather
API_VERSION = '/v1'
resp = make_response(json.dumps({'status': 'ok', 'message': 'cache flushed!'}))
resp.headers['Cont... | 7 | Add sleep endpoint to debug cache | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030552 | <NME> requirements.txt
<BEF> agate==1.6.0
agate-dbf==0.2.0
agate-excel==0.2.1
agate-sql==0.5.2
alembic==0.9.2
amqp==2.1.4
Babel==2.4.0
bcrypt==3.1.3
billiard==3.5.0.2
blinker==1.4
boto==2.47.0
boto3==1.4.4
botocore==1.5.79
celery==4.0.2
certifi==2017.4.17
redis
pytz
datetime_truncate
csvkit==1.0.2
datetime-truncate==1.... | 1 | Delete button added. Closes #97 | 0 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10030553 | <NME> requirements.txt
<BEF> agate==1.6.0
agate-dbf==0.2.0
agate-excel==0.2.1
agate-sql==0.5.2
alembic==0.9.2
amqp==2.1.4
Babel==2.4.0
bcrypt==3.1.3
billiard==3.5.0.2
blinker==1.4
boto==2.47.0
boto3==1.4.4
botocore==1.5.79
celery==4.0.2
certifi==2017.4.17
redis
pytz
datetime_truncate
csvkit==1.0.2
datetime-truncate==1.... | 1 | Delete button added. Closes #97 | 0 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10030554 | <NME> requirements.txt
<BEF> agate==1.6.0
agate-dbf==0.2.0
agate-excel==0.2.1
agate-sql==0.5.2
alembic==0.9.2
amqp==2.1.4
Babel==2.4.0
bcrypt==3.1.3
billiard==3.5.0.2
blinker==1.4
boto==2.47.0
boto3==1.4.4
botocore==1.5.79
celery==4.0.2
certifi==2017.4.17
redis
pytz
datetime_truncate
csvkit==1.0.2
datetime-truncate==1.... | 1 | Delete button added. Closes #97 | 0 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10030555 | <NME> sample_bench_output.txt
<BEF> ADDFILE
<MSG> Make python benchmark runner
<DFF> @@ -0,0 +1,25 @@
+transaction type: Custom query
+scaling factor: 1
+query mode: simple
+number of clients: 2
+number of threads: 2
+number of transactions per client: 1
+number of transactions actually processed: 2/2
+latency average... | 25 | Make python benchmark runner | 0 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10030556 | <NME> sample_bench_output.txt
<BEF> ADDFILE
<MSG> Make python benchmark runner
<DFF> @@ -0,0 +1,25 @@
+transaction type: Custom query
+scaling factor: 1
+query mode: simple
+number of clients: 2
+number of threads: 2
+number of transactions per client: 1
+number of transactions actually processed: 2/2
+latency average... | 25 | Make python benchmark runner | 0 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10030557 | <NME> sample_bench_output.txt
<BEF> ADDFILE
<MSG> Make python benchmark runner
<DFF> @@ -0,0 +1,25 @@
+transaction type: Custom query
+scaling factor: 1
+query mode: simple
+number of clients: 2
+number of threads: 2
+number of transactions per client: 1
+number of transactions actually processed: 2/2
+latency average... | 25 | Make python benchmark runner | 0 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10030558 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
import tarfile
import zipfile
from datetime import date, datetime, timedelta
from ftplib import FTP
from io import StringIO
import requests
import sqlalchemy
from dateutil import parser, relativedelta
from geoalchemy2 impo... | 46 | Fixed problem with 200512daily.txt being in 200804.tar.gz. Handled mysterious asterisks in temperature fields. Temporarily handled floating point wind direction exception. | 13 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030559 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
import tarfile
import zipfile
from datetime import date, datetime, timedelta
from ftplib import FTP
from io import StringIO
import requests
import sqlalchemy
from dateutil import parser, relativedelta
from geoalchemy2 impo... | 46 | Fixed problem with 200512daily.txt being in 200804.tar.gz. Handled mysterious asterisks in temperature fields. Temporarily handled floating point wind direction exception. | 13 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030560 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
import tarfile
import zipfile
from datetime import date, datetime, timedelta
from ftplib import FTP
from io import StringIO
import requests
import sqlalchemy
from dateutil import parser, relativedelta
from geoalchemy2 impo... | 46 | Fixed problem with 200512daily.txt being in 200804.tar.gz. Handled mysterious asterisks in temperature fields. Temporarily handled floating point wind direction exception. | 13 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030561 | <NME> views.py
<BEF> import math
import itertools
import json
import re
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, redirect, render_template, request, session as flask_session, url_fo... | 4 | Largely working datadump speed optimization via query windowing. | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030562 | <NME> views.py
<BEF> import math
import itertools
import json
import re
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, redirect, render_template, request, session as flask_session, url_fo... | 4 | Largely working datadump speed optimization via query windowing. | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030563 | <NME> views.py
<BEF> import math
import itertools
import json
import re
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, redirect, render_template, request, session as flask_session, url_fo... | 4 | Largely working datadump speed optimization via query windowing. | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030564 | <NME> auth.py
<BEF> from flask import Blueprint, render_template, redirect, request, url_for, \
session as flask_session, flash
from flask_login import LoginManager, login_user, logout_user, login_required
from plenario.database import postgres_session as db_session
from plenario.models import User
from flask_wtf i... | 28 | linted plenario/auth.py | 25 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030565 | <NME> auth.py
<BEF> from flask import Blueprint, render_template, redirect, request, url_for, \
session as flask_session, flash
from flask_login import LoginManager, login_user, logout_user, login_required
from plenario.database import postgres_session as db_session
from plenario.models import User
from flask_wtf i... | 28 | linted plenario/auth.py | 25 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030566 | <NME> auth.py
<BEF> from flask import Blueprint, render_template, redirect, request, url_for, \
session as flask_session, flash
from flask_login import LoginManager, login_user, logout_user, login_required
from plenario.database import postgres_session as db_session
from plenario.models import User
from flask_wtf i... | 28 | linted plenario/auth.py | 25 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030567 | <NME> validator.py
<BEF> import json
import re
from collections import namedtuple
from datetime import datetime, timedelta
import sqlalchemy
from dateutil import parser
from marshmallow import fields, Schema
from marshmallow.fields import Field
from marshmallow.validate import Range, OneOf, ValidationError
from sqlalc... | 1 | Upping the limit to 10000 | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030568 | <NME> validator.py
<BEF> import json
import re
from collections import namedtuple
from datetime import datetime, timedelta
import sqlalchemy
from dateutil import parser
from marshmallow import fields, Schema
from marshmallow.fields import Field
from marshmallow.validate import Range, OneOf, ValidationError
from sqlalc... | 1 | Upping the limit to 10000 | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030569 | <NME> validator.py
<BEF> import json
import re
from collections import namedtuple
from datetime import datetime, timedelta
import sqlalchemy
from dateutil import parser
from marshmallow import fields, Schema
from marshmallow.fields import Field
from marshmallow.validate import Range, OneOf, ValidationError
from sqlalc... | 1 | Upping the limit to 10000 | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030570 | <NME> helpers.py
<BEF> import csv
import math
from collections import namedtuple
import boto3
from slugify import slugify as _slugify
from sqlalchemy import Table
from plenario.settings import ADMIN_EMAILS, AWS_ACCESS_KEY, AWS_REGION_NAME, AWS_SECRET_KEY, MAIL_USERNAME
from plenario.utils.typeinference import normali... | 15 | added hour and quarter aggregation support for dense matrix, fix for UTC timestamps in data explorer | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030571 | <NME> helpers.py
<BEF> import csv
import math
from collections import namedtuple
import boto3
from slugify import slugify as _slugify
from sqlalchemy import Table
from plenario.settings import ADMIN_EMAILS, AWS_ACCESS_KEY, AWS_REGION_NAME, AWS_SECRET_KEY, MAIL_USERNAME
from plenario.utils.typeinference import normali... | 15 | added hour and quarter aggregation support for dense matrix, fix for UTC timestamps in data explorer | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030572 | <NME> helpers.py
<BEF> import csv
import math
from collections import namedtuple
import boto3
from slugify import slugify as _slugify
from sqlalchemy import Table
from plenario.settings import ADMIN_EMAILS, AWS_ACCESS_KEY, AWS_REGION_NAME, AWS_SECRET_KEY, MAIL_USERNAME
from plenario.utils.typeinference import normali... | 15 | added hour and quarter aggregation support for dense matrix, fix for UTC timestamps in data explorer | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030573 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
import tarfile
import zipfile
from datetime import date, datetime, timedelta
from ftplib import FTP
from io import StringIO
import requests
import sqlalchemy
from dateutil import parser, relativedelta
from geoalchemy2 impo... | 34 | Merging in debugging changes from @mccc | 26 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030574 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
import tarfile
import zipfile
from datetime import date, datetime, timedelta
from ftplib import FTP
from io import StringIO
import requests
import sqlalchemy
from dateutil import parser, relativedelta
from geoalchemy2 impo... | 34 | Merging in debugging changes from @mccc | 26 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030575 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
import tarfile
import zipfile
from datetime import date, datetime, timedelta
from ftplib import FTP
from io import StringIO
import requests
import sqlalchemy
from dateutil import parser, relativedelta
from geoalchemy2 impo... | 34 | Merging in debugging changes from @mccc | 26 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030576 | <NME> jobs.py
<BEF> import pickle
from flask import jsonify
import redis
import response as api_response
import time
from flask import request, make_response
from os import urandom
job_meta = dict(query.execute().first().items())
job_meta['result'] = pickle.loads(job_meta['result'])
return job_meta
de... | 45 | Establish local workers for event endpoints | 15 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030577 | <NME> jobs.py
<BEF> import pickle
from flask import jsonify
import redis
import response as api_response
import time
from flask import request, make_response
from os import urandom
job_meta = dict(query.execute().first().items())
job_meta['result'] = pickle.loads(job_meta['result'])
return job_meta
de... | 45 | Establish local workers for event endpoints | 15 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030578 | <NME> jobs.py
<BEF> import pickle
from flask import jsonify
import redis
import response as api_response
import time
from flask import request, make_response
from os import urandom
job_meta = dict(query.execute().first().items())
job_meta['result'] = pickle.loads(job_meta['result'])
return job_meta
de... | 45 | Establish local workers for event endpoints | 15 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030579 | <NME> name_generator.py
<BEF> ADDFILE
<MSG> Merge branch 'origin/unified-jobs' into etl-task-monitoring
<DFF> @@ -0,0 +1,304 @@
+import random
+
+
+def generate_name():
+
+ # Generate a (highly probably) unique name.
+ # References so far:
+ # - The Hitchhiker's Guide to the Galaxy
+ # - Rick and Morty
+
+... | 304 | Merge branch 'origin/unified-jobs' into etl-task-monitoring | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030580 | <NME> name_generator.py
<BEF> ADDFILE
<MSG> Merge branch 'origin/unified-jobs' into etl-task-monitoring
<DFF> @@ -0,0 +1,304 @@
+import random
+
+
+def generate_name():
+
+ # Generate a (highly probably) unique name.
+ # References so far:
+ # - The Hitchhiker's Guide to the Galaxy
+ # - Rick and Morty
+
+... | 304 | Merge branch 'origin/unified-jobs' into etl-task-monitoring | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030581 | <NME> name_generator.py
<BEF> ADDFILE
<MSG> Merge branch 'origin/unified-jobs' into etl-task-monitoring
<DFF> @@ -0,0 +1,304 @@
+import random
+
+
+def generate_name():
+
+ # Generate a (highly probably) unique name.
+ # References so far:
+ # - The Hitchhiker's Guide to the Galaxy
+ # - Rick and Morty
+
+... | 304 | Merge branch 'origin/unified-jobs' into etl-task-monitoring | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030582 | <NME> test_sensor_networks.py
<BEF> import json
import time
import unittest
from .fixtures import Fixtures
from plenario.server import create_app
class TestSensorNetworks(unittest.TestCase):
fixtures = Fixtures()
def get_result(self, url):
response = self.app.get(url)
return response, json... | 28 | Fix bug where aggregate didn't filter on nodes | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030583 | <NME> test_sensor_networks.py
<BEF> import json
import time
import unittest
from .fixtures import Fixtures
from plenario.server import create_app
class TestSensorNetworks(unittest.TestCase):
fixtures = Fixtures()
def get_result(self, url):
response = self.app.get(url)
return response, json... | 28 | Fix bug where aggregate didn't filter on nodes | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030584 | <NME> test_sensor_networks.py
<BEF> import json
import time
import unittest
from .fixtures import Fixtures
from plenario.server import create_app
class TestSensorNetworks(unittest.TestCase):
fixtures = Fixtures()
def get_result(self, url):
response = self.app.get(url)
return response, json... | 28 | Fix bug where aggregate didn't filter on nodes | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030585 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 12 | column_names processing done at the view level, removed from ETL | 8 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030586 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 12 | column_names processing done at the view level, removed from ETL | 8 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030587 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 12 | column_names processing done at the view level, removed from ETL | 8 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030588 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 6 | Reorganization / support for contribute form | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030589 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 6 | Reorganization / support for contribute form | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030590 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 6 | Reorganization / support for contribute form | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030591 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 3 | Admin add_dataset now invokes Celery task | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030592 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 3 | Admin add_dataset now invokes Celery task | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030593 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 3 | Admin add_dataset now invokes Celery task | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030594 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
import traceback
from collections import OrderedDict
import shapely.geometry
import shapely.wkb
import sqlalchemy
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil import parser
from flask import Res... | 2 | add make_key_prefix to datasets and fields | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030595 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
import traceback
from collections import OrderedDict
import shapely.geometry
import shapely.wkb
import sqlalchemy
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil import parser
from flask import Res... | 2 | add make_key_prefix to datasets and fields | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030596 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
import traceback
from collections import OrderedDict
import shapely.geometry
import shapely.wkb
import sqlalchemy
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil import parser
from flask import Res... | 2 | add make_key_prefix to datasets and fields | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030597 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
import traceback
from collections import OrderedDict
import shapely.geometry
import shapely.wkb
import sqlalchemy
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil import parser
from flask import Res... | 3 | Add column filters to detail-aggregate/ | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030598 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
import traceback
from collections import OrderedDict
import shapely.geometry
import shapely.wkb
import sqlalchemy
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil import parser
from flask import Res... | 3 | Add column filters to detail-aggregate/ | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030599 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
import traceback
from collections import OrderedDict
import shapely.geometry
import shapely.wkb
import sqlalchemy
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil import parser
from flask import Res... | 3 | Add column filters to detail-aggregate/ | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030600 | <NME> validator.py
<BEF> import json
import re
from collections import namedtuple
from datetime import datetime, timedelta
import sqlalchemy
from dateutil import parser
from marshmallow import fields, Schema
from marshmallow.fields import Field
from marshmallow.validate import Range, OneOf, ValidationError
from sqlalc... | 7 | parse_tree can now build conditions literally, needed it for /shapes | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030601 | <NME> validator.py
<BEF> import json
import re
from collections import namedtuple
from datetime import datetime, timedelta
import sqlalchemy
from dateutil import parser
from marshmallow import fields, Schema
from marshmallow.fields import Field
from marshmallow.validate import Range, OneOf, ValidationError
from sqlalc... | 7 | parse_tree can now build conditions literally, needed it for /shapes | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030602 | <NME> validator.py
<BEF> import json
import re
from collections import namedtuple
from datetime import datetime, timedelta
import sqlalchemy
from dateutil import parser
from marshmallow import fields, Schema
from marshmallow.fields import Field
from marshmallow.validate import Range, OneOf, ValidationError
from sqlalc... | 7 | parse_tree can now build conditions literally, needed it for /shapes | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030603 | <NME> shape.py
<BEF> import json
from collections import OrderedDict
from flask import make_response, request
from sqlalchemy import func
from sqlalchemy.exc import NoSuchTableError
from plenario.api.common import crossdomain, extract_first_geometry_fragment, make_fragment_str
from plenario.api.condition_builder impo... | 2 | cleaned up endpoint result names | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030604 | <NME> shape.py
<BEF> import json
from collections import OrderedDict
from flask import make_response, request
from sqlalchemy import func
from sqlalchemy.exc import NoSuchTableError
from plenario.api.common import crossdomain, extract_first_geometry_fragment, make_fragment_str
from plenario.api.condition_builder impo... | 2 | cleaned up endpoint result names | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030605 | <NME> shape.py
<BEF> import json
from collections import OrderedDict
from flask import make_response, request
from sqlalchemy import func
from sqlalchemy.exc import NoSuchTableError
from plenario.api.common import crossdomain, extract_first_geometry_fragment, make_fragment_str
from plenario.api.condition_builder impo... | 2 | cleaned up endpoint result names | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030606 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, s... | 3 | Fix column inference | 3 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030607 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, s... | 3 | Fix column inference | 3 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030608 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, s... | 3 | Fix column inference | 3 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030609 | <NME> tasks.py
<BEF> import csv
import logging
import os
import tarfile
from datetime import datetime, timedelta
import boto3
from celery import Celery
from dateutil.parser import parse as date_parse
from raven import Client
from sqlalchemy import Table
from plenario.database import redshift_base, redshift_session, p... | 16 | Drop resolve into a for loop | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030610 | <NME> tasks.py
<BEF> import csv
import logging
import os
import tarfile
from datetime import datetime, timedelta
import boto3
from celery import Celery
from dateutil.parser import parse as date_parse
from raven import Client
from sqlalchemy import Table
from plenario.database import redshift_base, redshift_session, p... | 16 | Drop resolve into a for loop | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030611 | <NME> tasks.py
<BEF> import csv
import logging
import os
import tarfile
from datetime import datetime, timedelta
import boto3
from celery import Celery
from dateutil.parser import parse as date_parse
from raven import Client
from sqlalchemy import Table
from plenario.database import redshift_base, redshift_session, p... | 16 | Drop resolve into a for loop | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030612 | <NME> utilities.py
<BEF> ADDFILE
<MSG> Worker cleanup, removed database connection retry
<DFF> @@ -0,0 +1,105 @@
+"""utilities: helper functions that serve to monitor the health and activity
+of the worker threads."""
+
+import traceback
+from datetime import datetime
+from plenario.database import session
+from plena... | 105 | Worker cleanup, removed database connection retry | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030613 | <NME> utilities.py
<BEF> ADDFILE
<MSG> Worker cleanup, removed database connection retry
<DFF> @@ -0,0 +1,105 @@
+"""utilities: helper functions that serve to monitor the health and activity
+of the worker threads."""
+
+import traceback
+from datetime import datetime
+from plenario.database import session
+from plena... | 105 | Worker cleanup, removed database connection retry | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030614 | <NME> utilities.py
<BEF> ADDFILE
<MSG> Worker cleanup, removed database connection retry
<DFF> @@ -0,0 +1,105 @@
+"""utilities: helper functions that serve to monitor the health and activity
+of the worker threads."""
+
+import traceback
+from datetime import datetime
+from plenario.database import session
+from plena... | 105 | Worker cleanup, removed database connection retry | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030615 | <NME> shape.py
<BEF> import os
import json
import tempfile
from flask import make_response, request
from plenario.api.common import crossdomain, extract_first_geometry_fragment, make_fragment_str
from plenario.api.condition_builder import parse_tree
from plenario.api.jobs import make_job_response
from plenario.api.po... | 14 | basic sanitization of column parameters in export_shape | 9 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030616 | <NME> shape.py
<BEF> import os
import json
import tempfile
from flask import make_response, request
from plenario.api.common import crossdomain, extract_first_geometry_fragment, make_fragment_str
from plenario.api.condition_builder import parse_tree
from plenario.api.jobs import make_job_response
from plenario.api.po... | 14 | basic sanitization of column parameters in export_shape | 9 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030617 | <NME> shape.py
<BEF> import os
import json
import tempfile
from flask import make_response, request
from plenario.api.common import crossdomain, extract_first_geometry_fragment, make_fragment_str
from plenario.api.condition_builder import parse_tree
from plenario.api.jobs import make_job_response
from plenario.api.po... | 14 | basic sanitization of column parameters in export_shape | 9 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030618 | <NME> submit_tests.py
<BEF> import unittest
from plenario.views import process_suggestion
class EvilSubmitTests(unittest.TestCase):
def test_nonsense_url(self):
self.assertRaises(RuntimeError, process_suggestion, 'totes Non$ense')
def test_hopeless_url(self):
self.assertRaises(RuntimeError, p... | 6 | Sketch out Socrata data grabs | 14 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030619 | <NME> submit_tests.py
<BEF> import unittest
from plenario.views import process_suggestion
class EvilSubmitTests(unittest.TestCase):
def test_nonsense_url(self):
self.assertRaises(RuntimeError, process_suggestion, 'totes Non$ense')
def test_hopeless_url(self):
self.assertRaises(RuntimeError, p... | 6 | Sketch out Socrata data grabs | 14 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030620 | <NME> submit_tests.py
<BEF> import unittest
from plenario.views import process_suggestion
class EvilSubmitTests(unittest.TestCase):
def test_nonsense_url(self):
self.assertRaises(RuntimeError, process_suggestion, 'totes Non$ense')
def test_hopeless_url(self):
self.assertRaises(RuntimeError, p... | 6 | Sketch out Socrata data grabs | 14 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030621 | <NME> redshift_ops.py
<BEF> import os, sys
sys.path.insert(0, os.path.abspath('../..'))
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from plenario.database import redshift_engine
def create_foi_table(foi_name, properties):
"""Create a new foi table
:param foi_name: name of fea... | 31 | linted plenario/sensor_network | 20 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030622 | <NME> redshift_ops.py
<BEF> import os, sys
sys.path.insert(0, os.path.abspath('../..'))
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from plenario.database import redshift_engine
def create_foi_table(foi_name, properties):
"""Create a new foi table
:param foi_name: name of fea... | 31 | linted plenario/sensor_network | 20 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030623 | <NME> redshift_ops.py
<BEF> import os, sys
sys.path.insert(0, os.path.abspath('../..'))
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from plenario.database import redshift_engine
def create_foi_table(foi_name, properties):
"""Create a new foi table
:param foi_name: name of fea... | 31 | linted plenario/sensor_network | 20 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030624 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
from collections import OrderedDict
from datetime import datetime
from flask import request, make_response
from itertools import groupby
from operator import itemgetter
from collections import OrderedDict
from datetime import datetime, timed... | 11 | Just an extra date parse to assuage paranoia | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030625 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
from collections import OrderedDict
from datetime import datetime
from flask import request, make_response
from itertools import groupby
from operator import itemgetter
from collections import OrderedDict
from datetime import datetime, timed... | 11 | Just an extra date parse to assuage paranoia | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030626 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
from collections import OrderedDict
from datetime import datetime
from flask import request, make_response
from itertools import groupby
from operator import itemgetter
from collections import OrderedDict
from datetime import datetime, timed... | 11 | Just an extra date parse to assuage paranoia | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030627 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
import traceback
from collections import OrderedDict
import shapely.geometry
import shapely.wkb
import sqlalchemy
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil import parser
from flask import Res... | 2 | Made datadump_cleanup more resilient. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030628 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
import traceback
from collections import OrderedDict
import shapely.geometry
import shapely.wkb
import sqlalchemy
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil import parser
from flask import Res... | 2 | Made datadump_cleanup more resilient. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030629 | <NME> point.py
<BEF> import codecs
import csv
import io
import json
import re
import traceback
from collections import OrderedDict
import shapely.geometry
import shapely.wkb
import sqlalchemy
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil import parser
from flask import Res... | 2 | Made datadump_cleanup more resilient. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030630 | <NME> point.py
<BEF> # import json
# from csvkit.unicsv import UnicodeCSVReader
import csv
from logging import getLogger
from geoalchemy2 import Geometry
from sqlalchemy import TIMESTAMP, Table, Column, MetaData, String
from sqlalchemy import select, func
from sqlalchemy.exc import NoSuchTableError
from plenario.data... | 1 | Escape table name in trigger addition | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030631 | <NME> point.py
<BEF> # import json
# from csvkit.unicsv import UnicodeCSVReader
import csv
from logging import getLogger
from geoalchemy2 import Geometry
from sqlalchemy import TIMESTAMP, Table, Column, MetaData, String
from sqlalchemy import select, func
from sqlalchemy.exc import NoSuchTableError
from plenario.data... | 1 | Escape table name in trigger addition | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030632 | <NME> point.py
<BEF> # import json
# from csvkit.unicsv import UnicodeCSVReader
import csv
from logging import getLogger
from geoalchemy2 import Geometry
from sqlalchemy import TIMESTAMP, Table, Column, MetaData, String
from sqlalchemy import select, func
from sqlalchemy.exc import NoSuchTableError
from plenario.data... | 1 | Escape table name in trigger addition | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030633 | <NME> point.py
<BEF> from plenario.api.common import cache, crossdomain, CACHE_TIMEOUT, make_cache_key, \
dthandler, make_csv, extract_first_geometry_fragment, make_fragment_str, RESPONSE_LIMIT
from flask import request, make_response
import dateutil.parser
from datetime import timedelta, datetime
from collections ... | 37 | added the ability to join with polygon datasets to the points 'detail' API | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030634 | <NME> point.py
<BEF> from plenario.api.common import cache, crossdomain, CACHE_TIMEOUT, make_cache_key, \
dthandler, make_csv, extract_first_geometry_fragment, make_fragment_str, RESPONSE_LIMIT
from flask import request, make_response
import dateutil.parser
from datetime import timedelta, datetime
from collections ... | 37 | added the ability to join with polygon datasets to the points 'detail' API | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030635 | <NME> point.py
<BEF> from plenario.api.common import cache, crossdomain, CACHE_TIMEOUT, make_cache_key, \
dthandler, make_csv, extract_first_geometry_fragment, make_fragment_str, RESPONSE_LIMIT
from flask import request, make_response
import dateutil.parser
from datetime import timedelta, datetime
from collections ... | 37 | added the ability to join with polygon datasets to the points 'detail' API | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030636 | <NME> tasks.py
<BEF> import csv
import logging
import os
import tarfile
from datetime import datetime, timedelta
import boto3
from celery import Celery
from dateutil.parser import parse as date_parse
from raven import Client
from sqlalchemy import Table
from plenario.database import redshift_base, redshift_session, p... | 35 | Make the archiver network agnostic | 30 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030637 | <NME> tasks.py
<BEF> import csv
import logging
import os
import tarfile
from datetime import datetime, timedelta
import boto3
from celery import Celery
from dateutil.parser import parse as date_parse
from raven import Client
from sqlalchemy import Table
from plenario.database import redshift_base, redshift_session, p... | 35 | Make the archiver network agnostic | 30 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030638 | <NME> tasks.py
<BEF> import csv
import logging
import os
import tarfile
from datetime import datetime, timedelta
import boto3
from celery import Celery
from dateutil.parser import parse as date_parse
from raven import Client
from sqlalchemy import Table
from plenario.database import redshift_base, redshift_session, p... | 35 | Make the archiver network agnostic | 30 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030639 | <NME> .travis.yml
<BEF> language: python
python:
- '3.5'
addons:
postgresql: '9.4'
apt:
apt:
packages:
- gdal-bin
- postgresql-9.4-postgis-2.3
- postgresql-9.4-plv8
services:
- postgresql
- redis-server
cache: pip
env:
global:
- JOBS_QUEUE=plenario-queue-test
- secure: G1RWlnwPIPSW2XRD7IIto... | 2 | Update travis to use the manager's init | 9 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10030640 | <NME> .travis.yml
<BEF> language: python
python:
- '3.5'
addons:
postgresql: '9.4'
apt:
apt:
packages:
- gdal-bin
- postgresql-9.4-postgis-2.3
- postgresql-9.4-plv8
services:
- postgresql
- redis-server
cache: pip
env:
global:
- JOBS_QUEUE=plenario-queue-test
- secure: G1RWlnwPIPSW2XRD7IIto... | 2 | Update travis to use the manager's init | 9 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10030641 | <NME> .travis.yml
<BEF> language: python
python:
- '3.5'
addons:
postgresql: '9.4'
apt:
apt:
packages:
- gdal-bin
- postgresql-9.4-postgis-2.3
- postgresql-9.4-plv8
services:
- postgresql
- redis-server
cache: pip
env:
global:
- JOBS_QUEUE=plenario-queue-test
- secure: G1RWlnwPIPSW2XRD7IIto... | 2 | Update travis to use the manager's init | 9 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10030642 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
import tarfile
import zipfile
from datetime import date, datetime, timedelta
UnicodeCSVDictReader, FieldSizeLimitError
from dateutil import parser
from datetime import datetime, date, timedelta
import calendar
from plen... | 38 | Added ability to add monthly data ignoring certain stations (banned_weather_stations_list) | 7 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030643 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
import tarfile
import zipfile
from datetime import date, datetime, timedelta
UnicodeCSVDictReader, FieldSizeLimitError
from dateutil import parser
from datetime import datetime, date, timedelta
import calendar
from plen... | 38 | Added ability to add monthly data ignoring certain stations (banned_weather_stations_list) | 7 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030644 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
import tarfile
import zipfile
from datetime import date, datetime, timedelta
UnicodeCSVDictReader, FieldSizeLimitError
from dateutil import parser
from datetime import datetime, date, timedelta
import calendar
from plen... | 38 | Added ability to add monthly data ignoring certain stations (banned_weather_stations_list) | 7 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030645 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 2 | wordsmithing | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030646 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 2 | wordsmithing | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030647 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 2 | wordsmithing | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030648 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 2 | added attribution column to shape metadata and display attribution in shapes list on explore page | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10030649 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 2 | added attribution column to shape metadata and display attribution in shapes list on explore page | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |