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 |
|---|---|---|---|---|---|---|---|---|
10031750 | <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... | 150 | Merge branch 'master' into shape-update | 148 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031751 | <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... | 150 | Merge branch 'master' into shape-update | 148 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031752 | <NME> weather_metar.py
<BEF> import csv
import os
import requests
from lxml import etree, objectify
from lxml.etree import fromstring
from metar.metar import Metar
from plenario.database import postgres_engine as engine
# Example METAR URL: 'https://aviationweather.gov/adds/dataserver_current/httpparam?datasource=me... | 1 | fixing wind_speed_int error | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031753 | <NME> weather_metar.py
<BEF> import csv
import os
import requests
from lxml import etree, objectify
from lxml.etree import fromstring
from metar.metar import Metar
from plenario.database import postgres_engine as engine
# Example METAR URL: 'https://aviationweather.gov/adds/dataserver_current/httpparam?datasource=me... | 1 | fixing wind_speed_int error | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031754 | <NME> weather_metar.py
<BEF> import csv
import os
import requests
from lxml import etree, objectify
from lxml.etree import fromstring
from metar.metar import Metar
from plenario.database import postgres_engine as engine
# Example METAR URL: 'https://aviationweather.gov/adds/dataserver_current/httpparam?datasource=me... | 1 | fixing wind_speed_int error | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031755 | <NME> settings.py
<BEF> from os import environ
get = environ.get
SECRET_KEY = get('SECRET_KEY', 'abcdefghijklmnop')
PLENARIO_SENTRY_URL = get('PLENARIO_SENTRY_URL', None)
DATA_DIR = '/tmp'
# Travis CI relies on the default values to build correctly,
# just keep in mind that if you push changes to the default
# v... | 5 | Address missing DSN travis failure | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031756 | <NME> settings.py
<BEF> from os import environ
get = environ.get
SECRET_KEY = get('SECRET_KEY', 'abcdefghijklmnop')
PLENARIO_SENTRY_URL = get('PLENARIO_SENTRY_URL', None)
DATA_DIR = '/tmp'
# Travis CI relies on the default values to build correctly,
# just keep in mind that if you push changes to the default
# v... | 5 | Address missing DSN travis failure | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031757 | <NME> settings.py
<BEF> from os import environ
get = environ.get
SECRET_KEY = get('SECRET_KEY', 'abcdefghijklmnop')
PLENARIO_SENTRY_URL = get('PLENARIO_SENTRY_URL', None)
DATA_DIR = '/tmp'
# Travis CI relies on the default values to build correctly,
# just keep in mind that if you push changes to the default
# v... | 5 | Address missing DSN travis failure | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031758 | <NME> Dockerfile
<BEF> FROM python:3.6
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y install wget
RUN wget --quiet --no-check-certificate -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN echo "deb http://apt... | 18 | dockerfile changes | 19 | Dockerfile | mit | UrbanCCD-UChicago/plenario | |
10031759 | <NME> Dockerfile
<BEF> FROM python:3.6
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y install wget
RUN wget --quiet --no-check-certificate -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN echo "deb http://apt... | 18 | dockerfile changes | 19 | Dockerfile | mit | UrbanCCD-UChicago/plenario | |
10031760 | <NME> Dockerfile
<BEF> FROM python:3.6
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y install wget
RUN wget --quiet --no-check-certificate -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN echo "deb http://apt... | 18 | dockerfile changes | 19 | Dockerfile | mit | UrbanCCD-UChicago/plenario | |
10031761 | <NME> settings.py
<BEF> from os import environ
get = environ.get
SECRET_KEY = get('SECRET_KEY', 'abcdefghijklmnop')
PLENARIO_SENTRY_URL = get('PLENARIO_SENTRY_URL', None)
DB_USER = get('DB_USER', '')
DB_PASSWORD = get('DB_PASSWORD', '')
DB_HOST = get('DB_HOST', '')
DB_PORT = get('DB_PORT', '')
DB_NAME = get('DB_N... | 2 | Merge branch 'aot-prototype' of github.com:UrbanCCD-UChicago/plenario into aot-prototype | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031762 | <NME> settings.py
<BEF> from os import environ
get = environ.get
SECRET_KEY = get('SECRET_KEY', 'abcdefghijklmnop')
PLENARIO_SENTRY_URL = get('PLENARIO_SENTRY_URL', None)
DB_USER = get('DB_USER', '')
DB_PASSWORD = get('DB_PASSWORD', '')
DB_HOST = get('DB_HOST', '')
DB_PORT = get('DB_PORT', '')
DB_NAME = get('DB_N... | 2 | Merge branch 'aot-prototype' of github.com:UrbanCCD-UChicago/plenario into aot-prototype | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031763 | <NME> settings.py
<BEF> from os import environ
get = environ.get
SECRET_KEY = get('SECRET_KEY', 'abcdefghijklmnop')
PLENARIO_SENTRY_URL = get('PLENARIO_SENTRY_URL', None)
DB_USER = get('DB_USER', '')
DB_PASSWORD = get('DB_PASSWORD', '')
DB_HOST = get('DB_HOST', '')
DB_PORT = get('DB_PORT', '')
DB_NAME = get('DB_N... | 2 | Merge branch 'aot-prototype' of github.com:UrbanCCD-UChicago/plenario into aot-prototype | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031764 | <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... | 1 | minor layout changes to data explorer | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031765 | <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... | 1 | minor layout changes to data explorer | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031766 | <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... | 1 | minor layout changes to data explorer | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031767 | <NME> database.py
<BEF> import subprocess
from contextlib import contextmanager
from logging import getLogger
from sqlalchemy import create_engine
from plenario.settings import DATABASE_CONN
if os.environ.get('WORKER'):
app_engine = create_engine(DATABASE_CONN, convert_unicode=True, pool_size=8, max_overflow=4, p... | 2 | Tweaked poolsizes and process counts. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031768 | <NME> database.py
<BEF> import subprocess
from contextlib import contextmanager
from logging import getLogger
from sqlalchemy import create_engine
from plenario.settings import DATABASE_CONN
if os.environ.get('WORKER'):
app_engine = create_engine(DATABASE_CONN, convert_unicode=True, pool_size=8, max_overflow=4, p... | 2 | Tweaked poolsizes and process counts. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031769 | <NME> database.py
<BEF> import subprocess
from contextlib import contextmanager
from logging import getLogger
from sqlalchemy import create_engine
from plenario.settings import DATABASE_CONN
if os.environ.get('WORKER'):
app_engine = create_engine(DATABASE_CONN, convert_unicode=True, pool_size=8, max_overflow=4, p... | 2 | Tweaked poolsizes and process counts. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031770 | <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... | 77 | removed last contribute api function, form workin on admin side, refactored add_dataset_to_metatable, socrata validation fixes | 55 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031771 | <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... | 77 | removed last contribute api function, form workin on admin side, refactored add_dataset_to_metatable, socrata validation fixes | 55 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031772 | <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... | 77 | removed last contribute api function, form workin on admin side, refactored add_dataset_to_metatable, socrata validation fixes | 55 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031773 | <NME> dog_park_permits.csv
<BEF> ADDFILE
<MSG> Restructure ETL to cut out Master, intermediate tables
Rebase on master
Add constructor for point metadata
Add failing etl tests
Move shape etl
Test table metadata inference. START BREAKING dat_ CONVENTION
Ingest staging table
Can ingest when table already exists
Re... | 6 | Restructure ETL to cut out Master, intermediate tables | 0 | .csv | csv | mit | UrbanCCD-UChicago/plenario |
10031774 | <NME> dog_park_permits.csv
<BEF> ADDFILE
<MSG> Restructure ETL to cut out Master, intermediate tables
Rebase on master
Add constructor for point metadata
Add failing etl tests
Move shape etl
Test table metadata inference. START BREAKING dat_ CONVENTION
Ingest staging table
Can ingest when table already exists
Re... | 6 | Restructure ETL to cut out Master, intermediate tables | 0 | .csv | csv | mit | UrbanCCD-UChicago/plenario |
10031775 | <NME> dog_park_permits.csv
<BEF> ADDFILE
<MSG> Restructure ETL to cut out Master, intermediate tables
Rebase on master
Add constructor for point metadata
Add failing etl tests
Move shape etl
Test table metadata inference. START BREAKING dat_ CONVENTION
Ingest staging table
Can ingest when table already exists
Re... | 6 | Restructure ETL to cut out Master, intermediate tables | 0 | .csv | csv | mit | UrbanCCD-UChicago/plenario |
10031776 | <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... | 102 | Seems legit. Merging weather_etl_subset | 64 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031777 | <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... | 102 | Seems legit. Merging weather_etl_subset | 64 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031778 | <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... | 102 | Seems legit. Merging weather_etl_subset | 64 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031779 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 1 | switch lat and lon | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031780 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 1 | switch lat and lon | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031781 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 1 | switch lat and lon | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031782 | <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.utils.ogr2ogr import OgrEx... | 3 | changed ogr2ogr utility object to accept sql query parameters, applied this change to run filter queries on shapes to filter with a bounding_box | 3 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031783 | <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.utils.ogr2ogr import OgrEx... | 3 | changed ogr2ogr utility object to accept sql query parameters, applied this change to run filter queries on shapes to filter with a bounding_box | 3 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031784 | <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.utils.ogr2ogr import OgrEx... | 3 | changed ogr2ogr utility object to accept sql query parameters, applied this change to run filter queries on shapes to filter with a bounding_box | 3 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031785 | <NME> cache_builder.py
<BEF> ADDFILE
<MSG> created a script to hit primary API endpoints to populate cache and determine response time
<DFF> @@ -0,0 +1,37 @@
+import sys
+import requests
+import json
+
+def main():
+ base_url = 'http://plenar.io'
+ date_start = '2014-03-27'
+ date_end = '2014-09-23'
+
+ fe... | 37 | created a script to hit primary API endpoints to populate cache and determine response time | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031786 | <NME> cache_builder.py
<BEF> ADDFILE
<MSG> created a script to hit primary API endpoints to populate cache and determine response time
<DFF> @@ -0,0 +1,37 @@
+import sys
+import requests
+import json
+
+def main():
+ base_url = 'http://plenar.io'
+ date_start = '2014-03-27'
+ date_end = '2014-09-23'
+
+ fe... | 37 | created a script to hit primary API endpoints to populate cache and determine response time | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031787 | <NME> cache_builder.py
<BEF> ADDFILE
<MSG> created a script to hit primary API endpoints to populate cache and determine response time
<DFF> @@ -0,0 +1,37 @@
+import sys
+import requests
+import json
+
+def main():
+ base_url = 'http://plenar.io'
+ date_start = '2014-03-27'
+ date_end = '2014-09-23'
+
+ fe... | 37 | created a script to hit primary API endpoints to populate cache and determine response time | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031788 | <NME> settings.py
<BEF> from os import environ
get = environ.get
SECRET_KEY = get('SECRET_KEY', 'abcdefghijklmnop')
PLENARIO_SENTRY_URL = get('PLENARIO_SENTRY_URL', None)
DATA_DIR = '/tmp'
# Travis CI relies on the default values to build correctly,
# just keep in mind that if you push changes to the default
# v... | 10 | Clean config files | 8 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031789 | <NME> settings.py
<BEF> from os import environ
get = environ.get
SECRET_KEY = get('SECRET_KEY', 'abcdefghijklmnop')
PLENARIO_SENTRY_URL = get('PLENARIO_SENTRY_URL', None)
DATA_DIR = '/tmp'
# Travis CI relies on the default values to build correctly,
# just keep in mind that if you push changes to the default
# v... | 10 | Clean config files | 8 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031790 | <NME> settings.py
<BEF> from os import environ
get = environ.get
SECRET_KEY = get('SECRET_KEY', 'abcdefghijklmnop')
PLENARIO_SENTRY_URL = get('PLENARIO_SENTRY_URL', None)
DATA_DIR = '/tmp'
# Travis CI relies on the default values to build correctly,
# just keep in mind that if you push changes to the default
# v... | 10 | Clean config files | 8 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031791 | <NME> views.py
<BEF> from json import dumps, loads
from flask import Blueprint
from redis import Redis
from sqlalchemy import desc, select
from plenario.database import redshift_base as rshift_base
from plenario.models.SensorNetwork import SensorMeta
from plenario.settings import REDIS_HOST
blueprint = Blueprint('ap... | 4 | Update mapper errors with delete feature and link | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031792 | <NME> views.py
<BEF> from json import dumps, loads
from flask import Blueprint
from redis import Redis
from sqlalchemy import desc, select
from plenario.database import redshift_base as rshift_base
from plenario.models.SensorNetwork import SensorMeta
from plenario.settings import REDIS_HOST
blueprint = Blueprint('ap... | 4 | Update mapper errors with delete feature and link | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031793 | <NME> views.py
<BEF> from json import dumps, loads
from flask import Blueprint
from redis import Redis
from sqlalchemy import desc, select
from plenario.database import redshift_base as rshift_base
from plenario.models.SensorNetwork import SensorMeta
from plenario.settings import REDIS_HOST
blueprint = Blueprint('ap... | 4 | Update mapper errors with delete feature and link | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031794 | <NME> Distance.js
<BEF> ADDFILE
<MSG> added distance measurement and scale legend to map
<DFF> @@ -0,0 +1,128 @@
+/* global console: true */
+L.Control.Distance = L.Control.extend({
+ options: {
+ position: 'topleft',
+ popups: true
+ },
+
+ initialize: function (options) {
+ L.Util.setOptions(this, options);
+ th... | 128 | added distance measurement and scale legend to map | 0 | .js | js | mit | UrbanCCD-UChicago/plenario |
10031795 | <NME> Distance.js
<BEF> ADDFILE
<MSG> added distance measurement and scale legend to map
<DFF> @@ -0,0 +1,128 @@
+/* global console: true */
+L.Control.Distance = L.Control.extend({
+ options: {
+ position: 'topleft',
+ popups: true
+ },
+
+ initialize: function (options) {
+ L.Util.setOptions(this, options);
+ th... | 128 | added distance measurement and scale legend to map | 0 | .js | js | mit | UrbanCCD-UChicago/plenario |
10031796 | <NME> Distance.js
<BEF> ADDFILE
<MSG> added distance measurement and scale legend to map
<DFF> @@ -0,0 +1,128 @@
+/* global console: true */
+L.Control.Distance = L.Control.extend({
+ options: {
+ position: 'topleft',
+ popups: true
+ },
+
+ initialize: function (options) {
+ L.Util.setOptions(this, options);
+ th... | 128 | added distance measurement and scale legend to map | 0 | .js | js | mit | UrbanCCD-UChicago/plenario |
10031797 | <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... | 56 | Consolidate submission templates | 51 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031798 | <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... | 56 | Consolidate submission templates | 51 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031799 | <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... | 56 | Consolidate submission templates | 51 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031800 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 6 | Change API aggregate endpoint, update node validator, fix result filtering | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031801 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 6 | Change API aggregate endpoint, update node validator, fix result filtering | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031802 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 6 | Change API aggregate endpoint, update node validator, fix result filtering | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031803 | <NME> helpers.py
<BEF> import csv
import math
from collections import namedtuple
import boto3
from slugify import slugify as _slugify
from sqlalchemy import Table
AWS_ACCESS_KEY, AWS_SECRET_KEY, AWS_REGION_NAME
import math
from collections import namedtuple
def get_size_in_degrees(meters, latitude):
degrees_... | 16 | combined validators | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031804 | <NME> helpers.py
<BEF> import csv
import math
from collections import namedtuple
import boto3
from slugify import slugify as _slugify
from sqlalchemy import Table
AWS_ACCESS_KEY, AWS_SECRET_KEY, AWS_REGION_NAME
import math
from collections import namedtuple
def get_size_in_degrees(meters, latitude):
degrees_... | 16 | combined validators | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031805 | <NME> helpers.py
<BEF> import csv
import math
from collections import namedtuple
import boto3
from slugify import slugify as _slugify
from sqlalchemy import Table
AWS_ACCESS_KEY, AWS_SECRET_KEY, AWS_REGION_NAME
import math
from collections import namedtuple
def get_size_in_degrees(meters, latitude):
degrees_... | 16 | combined validators | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031806 | <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... | 8 | Edits to the admin page, update button and row count. | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031807 | <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... | 8 | Edits to the admin page, update button and row count. | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031808 | <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... | 8 | Edits to the admin page, update button and row count. | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031809 | <NME> python.config
<BEF> option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: wsgi.py
<MSG> Add run celery conditional
<DFF> @@ -1,3 +1,10 @@
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: wsgi.py
+
+commands:
+ RunCeleryWorker:
+ command: |
+ if [ $(env | grep... | 7 | Add run celery conditional | 0 | .config | ebextensions/python | mit | UrbanCCD-UChicago/plenario |
10031810 | <NME> python.config
<BEF> option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: wsgi.py
<MSG> Add run celery conditional
<DFF> @@ -1,3 +1,10 @@
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: wsgi.py
+
+commands:
+ RunCeleryWorker:
+ command: |
+ if [ $(env | grep... | 7 | Add run celery conditional | 0 | .config | ebextensions/python | mit | UrbanCCD-UChicago/plenario |
10031811 | <NME> python.config
<BEF> option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: wsgi.py
<MSG> Add run celery conditional
<DFF> @@ -1,3 +1,10 @@
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: wsgi.py
+
+commands:
+ RunCeleryWorker:
+ command: |
+ if [ $(env | grep... | 7 | Add run celery conditional | 0 | .config | ebextensions/python | mit | UrbanCCD-UChicago/plenario |
10031812 | <NME> .travis.yml
<BEF> language: python
python:
- '3.4'
addons:
postgresql: '9.4'
apt:
packages:
- gdal-bin
- postgresql-9.4-postgis-2.3
- postgresql-9.4-plv8
services:
- postgresql
- redis-server
sudo: required
dist: trusty
cache: pip
before_install:
- pip install -r requirements.txt
# inst... | 8 | Extended test job timeouts. Also removed tests that depended on response order. | 4 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10031813 | <NME> .travis.yml
<BEF> language: python
python:
- '3.4'
addons:
postgresql: '9.4'
apt:
packages:
- gdal-bin
- postgresql-9.4-postgis-2.3
- postgresql-9.4-plv8
services:
- postgresql
- redis-server
sudo: required
dist: trusty
cache: pip
before_install:
- pip install -r requirements.txt
# inst... | 8 | Extended test job timeouts. Also removed tests that depended on response order. | 4 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10031814 | <NME> .travis.yml
<BEF> language: python
python:
- '3.4'
addons:
postgresql: '9.4'
apt:
packages:
- gdal-bin
- postgresql-9.4-postgis-2.3
- postgresql-9.4-plv8
services:
- postgresql
- redis-server
sudo: required
dist: trusty
cache: pip
before_install:
- pip install -r requirements.txt
# inst... | 8 | Extended test job timeouts. Also removed tests that depended on response order. | 4 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10031815 | <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... | 48 | Merge branch 'dataset-meta-filter' | 30 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031816 | <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... | 48 | Merge branch 'dataset-meta-filter' | 30 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031817 | <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... | 48 | Merge branch 'dataset-meta-filter' | 30 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031818 | <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... | 0 | Remove deletion step from ETL. Too fragile | 31 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031819 | <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... | 0 | Remove deletion step from ETL. Too fragile | 31 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031820 | <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... | 0 | Remove deletion step from ETL. Too fragile | 31 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031821 | <NME> views.py
<BEF> import itertools
import json
import re
import traceback
import dateutil.relativedelta
from cStringIO import StringIO
from collections import namedtuple
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, redirect, render_template, request, ... | 3 | Merge branch 'unified-jobs' of https://github.com/UrbanCCD-UChicago/plenario into unified-jobs | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031822 | <NME> views.py
<BEF> import itertools
import json
import re
import traceback
import dateutil.relativedelta
from cStringIO import StringIO
from collections import namedtuple
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, redirect, render_template, request, ... | 3 | Merge branch 'unified-jobs' of https://github.com/UrbanCCD-UChicago/plenario into unified-jobs | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031823 | <NME> views.py
<BEF> import itertools
import json
import re
import traceback
import dateutil.relativedelta
from cStringIO import StringIO
from collections import namedtuple
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, redirect, render_template, request, ... | 3 | Merge branch 'unified-jobs' of https://github.com/UrbanCCD-UChicago/plenario into unified-jobs | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031824 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 1 | Remove redundant features from result meta | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031825 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 1 | Remove redundant features from result meta | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031826 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 1 | Remove redundant features from result meta | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031827 | <NME> requirements.txt
<BEF> Flask
Flask-Cache
flask_sqlalchemy
gunicorn
psycopg2
geoalchemy2
boto
shapely
requests
raven
blinker
Flask-WTF
Flask-Login
flask-bcrypt
csvkit
redis
pytz
datetime_truncate
pyshp==1.2.3
git+https://github.com/datamade/python-metar.git#egg=metar
lxml
alembic
boto3
marshmallow
functools32
leat... | 48 | Revert bcrypt version to 3.1.0 to fix deployment | 24 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10031828 | <NME> requirements.txt
<BEF> Flask
Flask-Cache
flask_sqlalchemy
gunicorn
psycopg2
geoalchemy2
boto
shapely
requests
raven
blinker
Flask-WTF
Flask-Login
flask-bcrypt
csvkit
redis
pytz
datetime_truncate
pyshp==1.2.3
git+https://github.com/datamade/python-metar.git#egg=metar
lxml
alembic
boto3
marshmallow
functools32
leat... | 48 | Revert bcrypt version to 3.1.0 to fix deployment | 24 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10031829 | <NME> requirements.txt
<BEF> Flask
Flask-Cache
flask_sqlalchemy
gunicorn
psycopg2
geoalchemy2
boto
shapely
requests
raven
blinker
Flask-WTF
Flask-Login
flask-bcrypt
csvkit
redis
pytz
datetime_truncate
pyshp==1.2.3
git+https://github.com/datamade/python-metar.git#egg=metar
lxml
alembic
boto3
marshmallow
functools32
leat... | 48 | Revert bcrypt version to 3.1.0 to fix deployment | 24 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10031830 | <NME> ifttt.py
<BEF> import json
import time
import uuid
from os import environ
from dateutil.parser import parse
from flask import make_response, request
from plenario.api.common import crossdomain, unknown_object_json_handler
from plenario.api.response import bad_request
from plenario.api.validator import IFTTTVali... | 3 | Merge branch 'aot-apiary' of github.com:UrbanCCD-UChicago/plenario into aot-apiary | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031831 | <NME> ifttt.py
<BEF> import json
import time
import uuid
from os import environ
from dateutil.parser import parse
from flask import make_response, request
from plenario.api.common import crossdomain, unknown_object_json_handler
from plenario.api.response import bad_request
from plenario.api.validator import IFTTTVali... | 3 | Merge branch 'aot-apiary' of github.com:UrbanCCD-UChicago/plenario into aot-apiary | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031832 | <NME> ifttt.py
<BEF> import json
import time
import uuid
from os import environ
from dateutil.parser import parse
from flask import make_response, request
from plenario.api.common import crossdomain, unknown_object_json_handler
from plenario.api.response import bad_request
from plenario.api.validator import IFTTTVali... | 3 | Merge branch 'aot-apiary' of github.com:UrbanCCD-UChicago/plenario into aot-apiary | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031833 | <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... | 42 | Start sketching column inference | 27 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031834 | <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... | 42 | Start sketching column inference | 27 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031835 | <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... | 42 | Start sketching column inference | 27 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031836 | <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
fr... | 43 | linted plenario/tasks.py | 46 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031837 | <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
fr... | 43 | linted plenario/tasks.py | 46 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031838 | <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
fr... | 43 | linted plenario/tasks.py | 46 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031839 | <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... | 1 | Don't form shape URL for point datasets | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031840 | <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... | 1 | Don't form shape URL for point datasets | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031841 | <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... | 1 | Don't form shape URL for point datasets | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031842 | <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 | cleaned up print statements, all tests pass | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031843 | <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 | cleaned up print statements, all tests pass | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031844 | <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 | cleaned up print statements, all tests pass | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031845 | <NME> workerloop.py
<BEF> ADDFILE
<MSG> Imported files from my experiments.
<DFF> @@ -0,0 +1,45 @@
+from os.path import isfile
+import datetime, time, random, sys
+import boto.sqs
+from plenario.settings import AWS_ACCESS_KEY, AWS_SECRET_KEY, REDIS_HOST
+
+conn = boto.sqs.connect_to_region(
+ "us-east-1",
+ ... | 45 | Imported files from my experiments. | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031846 | <NME> workerloop.py
<BEF> ADDFILE
<MSG> Imported files from my experiments.
<DFF> @@ -0,0 +1,45 @@
+from os.path import isfile
+import datetime, time, random, sys
+import boto.sqs
+from plenario.settings import AWS_ACCESS_KEY, AWS_SECRET_KEY, REDIS_HOST
+
+conn = boto.sqs.connect_to_region(
+ "us-east-1",
+ ... | 45 | Imported files from my experiments. | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031847 | <NME> workerloop.py
<BEF> ADDFILE
<MSG> Imported files from my experiments.
<DFF> @@ -0,0 +1,45 @@
+from os.path import isfile
+import datetime, time, random, sys
+import boto.sqs
+from plenario.settings import AWS_ACCESS_KEY, AWS_SECRET_KEY, REDIS_HOST
+
+conn = boto.sqs.connect_to_region(
+ "us-east-1",
+ ... | 45 | Imported files from my experiments. | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031848 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 14 | lower() | 17 | .py | py | mit | UrbanCCD-UChicago/plenario |
10031849 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from datetime import datetime, timedelta
import boto3
from flask import Response, jsonify, redirect, request, stream_with_context
from marshmallow import Schema
from marshmallow.exceptions import ValidationError
from marshmallow.fields import DateTime, Fi... | 14 | lower() | 17 | .py | py | mit | UrbanCCD-UChicago/plenario |