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 |
|---|---|---|---|---|---|---|---|---|
10032150 | <NME> sensor.py
<BEF> import json
import shapely.geometry
import shapely.wkb
import sqlalchemy as sa
from flask import jsonify, make_response, request
from sqlalchemy import Table, func
from sqlalchemy.exc import SQLAlchemyError
from plenario.api.common import CACHE_TIMEOUT, RESPONSE_LIMIT, cache, crossdomain, date_j... | 2 | Get celeryd running with supervisor | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032151 | <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... | 47 | Formalize url parameters for the query endpoint | 36 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032152 | <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... | 47 | Formalize url parameters for the query endpoint | 36 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032153 | <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... | 47 | Formalize url parameters for the query endpoint | 36 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032154 | <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... | 44 | Restructured get_datadump's stream_data to be more readable. | 26 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032155 | <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... | 44 | Restructured get_datadump's stream_data to be more readable. | 26 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032156 | <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... | 44 | Restructured get_datadump's stream_data to be more readable. | 26 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032157 | <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
import calendar
from plenario.database import task_session as session, task_engine as engine, \
Base
from sqlalchemy im... | 85 | Added an extra step to update main table from an incoming file. | 19 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032158 | <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
import calendar
from plenario.database import task_session as session, task_engine as engine, \
Base
from sqlalchemy im... | 85 | Added an extra step to update main table from an incoming file. | 19 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032159 | <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
import calendar
from plenario.database import task_session as session, task_engine as engine, \
Base
from sqlalchemy im... | 85 | Added an extra step to update main table from an incoming file. | 19 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032160 | <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... | 22 | Shapefile submission tests pass | 3 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032161 | <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... | 22 | Shapefile submission tests pass | 3 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032162 | <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... | 22 | Shapefile submission tests pass | 3 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032163 | <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=4)
else:
app_eng... | 2 | Fixed SQL connection limit to avoid overflow. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032164 | <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=4)
else:
app_eng... | 2 | Fixed SQL connection limit to avoid overflow. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032165 | <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=4)
else:
app_eng... | 2 | Fixed SQL connection limit to avoid overflow. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032166 | <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... | 4 | Fix the thing where the METAR data was not getting precipitation | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032167 | <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... | 4 | Fix the thing where the METAR data was not getting precipitation | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032168 | <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... | 4 | Fix the thing where the METAR data was not getting precipitation | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032169 | <NME> shapefile.py
<BEF> import os
import shutil
import tempfile
from plenario.utils.ogr2ogr import OgrError, import_shapefile_to_table
class ShapefileError(Exception):
def __init__(self, message):
Exception.__init__(self, message)
self.message = message
def import_shapefile(shapefile_zip, table... | 2 | Don't name 2 functions import_shapefile | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032170 | <NME> shapefile.py
<BEF> import os
import shutil
import tempfile
from plenario.utils.ogr2ogr import OgrError, import_shapefile_to_table
class ShapefileError(Exception):
def __init__(self, message):
Exception.__init__(self, message)
self.message = message
def import_shapefile(shapefile_zip, table... | 2 | Don't name 2 functions import_shapefile | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032171 | <NME> shapefile.py
<BEF> import os
import shutil
import tempfile
from plenario.utils.ogr2ogr import OgrError, import_shapefile_to_table
class ShapefileError(Exception):
def __init__(self, message):
Exception.__init__(self, message)
self.message = message
def import_shapefile(shapefile_zip, table... | 2 | Don't name 2 functions import_shapefile | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032172 | <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 | Merge remote-tracking branch 'origin' into shape-filter | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032173 | <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 | Merge remote-tracking branch 'origin' into shape-filter | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032174 | <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 | Merge remote-tracking branch 'origin' into shape-filter | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032175 | <NME> weather_metar.py
<BEF> import csv
from plenario.database import app_engine as engine
import requests
import csv
from lxml import etree
from lxml.etree import fromstring
from plenario.database import postgres_engine as engine
# Example METAR URL: 'https://aviationweather.gov/adds/dataserver_current/httpparam?dat... | 76 | Merge branch 'aot-master' into aot-nearest-neighbor | 57 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032176 | <NME> weather_metar.py
<BEF> import csv
from plenario.database import app_engine as engine
import requests
import csv
from lxml import etree
from lxml.etree import fromstring
from plenario.database import postgres_engine as engine
# Example METAR URL: 'https://aviationweather.gov/adds/dataserver_current/httpparam?dat... | 76 | Merge branch 'aot-master' into aot-nearest-neighbor | 57 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032177 | <NME> weather_metar.py
<BEF> import csv
from plenario.database import app_engine as engine
import requests
import csv
from lxml import etree
from lxml.etree import fromstring
from plenario.database import postgres_engine as engine
# Example METAR URL: 'https://aviationweather.gov/adds/dataserver_current/httpparam?dat... | 76 | Merge branch 'aot-master' into aot-nearest-neighbor | 57 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032178 | <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... | 1 | Merge pull request #247 from UrbanCCD-UChicago/fix-timeseries-key-error | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032179 | <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... | 1 | Merge pull request #247 from UrbanCCD-UChicago/fix-timeseries-key-error | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032180 | <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... | 1 | Merge pull request #247 from UrbanCCD-UChicago/fix-timeseries-key-error | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032181 | <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 | Fixed a bug where purging workers would cause them to crash. Updated worker status view to be nicer on long jobs. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032182 | <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 | Fixed a bug where purging workers would cause them to crash. Updated worker status view to be nicer on long jobs. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032183 | <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 | Fixed a bug where purging workers would cause them to crash. Updated worker status view to be nicer on long jobs. | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032184 | <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
cache: pip
env:
global:
- secure: Xp0ClmdKs/OJcm5fZvc65nkorzncxwnbGvBt5jYQxtcoXc3ld9wJhEulHzbMwn4bOP5AKyiipYA... | 3 | Another try. | 3 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10032185 | <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
cache: pip
env:
global:
- secure: Xp0ClmdKs/OJcm5fZvc65nkorzncxwnbGvBt5jYQxtcoXc3ld9wJhEulHzbMwn4bOP5AKyiipYA... | 3 | Another try. | 3 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10032186 | <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
cache: pip
env:
global:
- secure: Xp0ClmdKs/OJcm5fZvc65nkorzncxwnbGvBt5jYQxtcoXc3ld9wJhEulHzbMwn4bOP5AKyiipYA... | 3 | Another try. | 3 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10032187 | <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... | 11 | Merge branch 'unified-jobs' of https://github.com/UrbanCCD-UChicago/plenario into unified-jobs | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032188 | <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... | 11 | Merge branch 'unified-jobs' of https://github.com/UrbanCCD-UChicago/plenario into unified-jobs | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032189 | <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... | 11 | Merge branch 'unified-jobs' of https://github.com/UrbanCCD-UChicago/plenario into unified-jobs | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032190 | <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... | 1 | First pass at self-service weather update | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032191 | <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... | 1 | First pass at self-service weather update | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032192 | <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... | 1 | First pass at self-service weather update | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032193 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 2 | Making capitalization re: PostgreSQL/PostGIS consistent in README | 2 | .md | md | mit | UrbanCCD-UChicago/plenario |
10032194 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 2 | Making capitalization re: PostgreSQL/PostGIS consistent in README | 2 | .md | md | mit | UrbanCCD-UChicago/plenario |
10032195 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 2 | Making capitalization re: PostgreSQL/PostGIS consistent in README | 2 | .md | md | mit | UrbanCCD-UChicago/plenario |
10032196 | <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 | Remove dataset_info from Jinja templates | 7 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032197 | <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 | Remove dataset_info from Jinja templates | 7 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032198 | <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 | Remove dataset_info from Jinja templates | 7 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032199 | <NME> test_point.py
<BEF> import json
import os
import urllib.request, urllib.parse, urllib.error
from io import StringIO
import csv
from tests.fixtures.base_test import BasePlenarioTest, fixtures_path
# Filters
# =======
# Constants holding query string values, helps to have them all in one place.
# The row counts c... | 1 | Merge pull request #323 from UrbanCCD-UChicago/timeries-bucket-format | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032200 | <NME> test_point.py
<BEF> import json
import os
import urllib.request, urllib.parse, urllib.error
from io import StringIO
import csv
from tests.fixtures.base_test import BasePlenarioTest, fixtures_path
# Filters
# =======
# Constants holding query string values, helps to have them all in one place.
# The row counts c... | 1 | Merge pull request #323 from UrbanCCD-UChicago/timeries-bucket-format | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032201 | <NME> test_point.py
<BEF> import json
import os
import urllib.request, urllib.parse, urllib.error
from io import StringIO
import csv
from tests.fixtures.base_test import BasePlenarioTest, fixtures_path
# Filters
# =======
# Constants holding query string values, helps to have them all in one place.
# The row counts c... | 1 | Merge pull request #323 from UrbanCCD-UChicago/timeries-bucket-format | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032202 | <NME> manage.py
<BEF> #!/usr/bin/env python
import logging
import os
import signal
import subprocess
import warnings
from os import getenv
from time import sleep
import sqlalchemy.exc
from flask.exthook import ExtDeprecationWarning
from flask_script import Manager
from kombu.exceptions import OperationalError
from sq... | 4 | Add migration step, alter project structure | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032203 | <NME> manage.py
<BEF> #!/usr/bin/env python
import logging
import os
import signal
import subprocess
import warnings
from os import getenv
from time import sleep
import sqlalchemy.exc
from flask.exthook import ExtDeprecationWarning
from flask_script import Manager
from kombu.exceptions import OperationalError
from sq... | 4 | Add migration step, alter project structure | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032204 | <NME> manage.py
<BEF> #!/usr/bin/env python
import logging
import os
import signal
import subprocess
import warnings
from os import getenv
from time import sleep
import sqlalchemy.exc
from flask.exthook import ExtDeprecationWarning
from flask_script import Manager
from kombu.exceptions import OperationalError
from sq... | 4 | Add migration step, alter project structure | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032205 | <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... | 1 | Merge remote-tracking branch 'origin' into shape-filter | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032206 | <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... | 1 | Merge remote-tracking branch 'origin' into shape-filter | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032207 | <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... | 1 | Merge remote-tracking branch 'origin' into shape-filter | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032208 | <NME> start.sh
<BEF> ADDFILE
<MSG> initial dockerfile stuff
<DFF> @@ -0,0 +1,26 @@
+#!/bin/bash
+
+DATADIR="/var/lib/postgresql/9.3/main"
+CONF="/etc/postgresql/9.3/main/postgresql.conf"
+POSTGRES="/usr/lib/postgresql/9.3/bin/postgres"
+INITDB="/usr/lib/postgresql/9.3/bin/initdb"
+
+# test if DATADIR is existent
+if [... | 26 | initial dockerfile stuff | 0 | .sh | sh | mit | UrbanCCD-UChicago/plenario |
10032209 | <NME> start.sh
<BEF> ADDFILE
<MSG> initial dockerfile stuff
<DFF> @@ -0,0 +1,26 @@
+#!/bin/bash
+
+DATADIR="/var/lib/postgresql/9.3/main"
+CONF="/etc/postgresql/9.3/main/postgresql.conf"
+POSTGRES="/usr/lib/postgresql/9.3/bin/postgres"
+INITDB="/usr/lib/postgresql/9.3/bin/initdb"
+
+# test if DATADIR is existent
+if [... | 26 | initial dockerfile stuff | 0 | .sh | sh | mit | UrbanCCD-UChicago/plenario |
10032210 | <NME> start.sh
<BEF> ADDFILE
<MSG> initial dockerfile stuff
<DFF> @@ -0,0 +1,26 @@
+#!/bin/bash
+
+DATADIR="/var/lib/postgresql/9.3/main"
+CONF="/etc/postgresql/9.3/main/postgresql.conf"
+POSTGRES="/usr/lib/postgresql/9.3/bin/postgres"
+INITDB="/usr/lib/postgresql/9.3/bin/initdb"
+
+# test if DATADIR is existent
+if [... | 26 | initial dockerfile stuff | 0 | .sh | sh | mit | UrbanCCD-UChicago/plenario |
10032211 | <NME> README.md
<BEF> # EAGER API - Phase I
## Dataset
use a unique, non-semantic id for the dataset, we should mint our own ids.
```
https://base_url/dataset-id/
```
Returns all the data limited to 1000 records at the finest spatial resolutions. All responses will be JSON objects.
## Metadata
Each geospatial area... | 4 | Update README.md | 154 | .md | md | mit | UrbanCCD-UChicago/plenario |
10032212 | <NME> README.md
<BEF> # EAGER API - Phase I
## Dataset
use a unique, non-semantic id for the dataset, we should mint our own ids.
```
https://base_url/dataset-id/
```
Returns all the data limited to 1000 records at the finest spatial resolutions. All responses will be JSON objects.
## Metadata
Each geospatial area... | 4 | Update README.md | 154 | .md | md | mit | UrbanCCD-UChicago/plenario |
10032213 | <NME> README.md
<BEF> # EAGER API - Phase I
## Dataset
use a unique, non-semantic id for the dataset, we should mint our own ids.
```
https://base_url/dataset-id/
```
Returns all the data limited to 1000 records at the finest spatial resolutions. All responses will be JSON objects.
## Metadata
Each geospatial area... | 4 | Update README.md | 154 | .md | md | mit | UrbanCCD-UChicago/plenario |
10032214 | <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
cffi==1.10.0
chardet==3.0.4
click==6.7
contextlib2==0.5.5
csvkit... | 0 | Remove pandas | 1 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10032215 | <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
cffi==1.10.0
chardet==3.0.4
click==6.7
contextlib2==0.5.5
csvkit... | 0 | Remove pandas | 1 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10032216 | <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
cffi==1.10.0
chardet==3.0.4
click==6.7
contextlib2==0.5.5
csvkit... | 0 | Remove pandas | 1 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10032217 | <NME> redshift_ops.py
<BEF> import logging
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from plenario.database import redshift_engine
logger = logging.getLogger(__name__)
def create_foi_table(foi_name, properties):
"""Create a new foi table
:param foi_name: name of feature
... | 1 | another redshift table creation fix | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032218 | <NME> redshift_ops.py
<BEF> import logging
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from plenario.database import redshift_engine
logger = logging.getLogger(__name__)
def create_foi_table(foi_name, properties):
"""Create a new foi table
:param foi_name: name of feature
... | 1 | another redshift table creation fix | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032219 | <NME> redshift_ops.py
<BEF> import logging
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from plenario.database import redshift_engine
logger = logging.getLogger(__name__)
def create_foi_table(foi_name, properties):
"""Create a new foi table
:param foi_name: name of feature
... | 1 | another redshift table creation fix | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032220 | <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... | 51 | merged with master and changed shapesList template to allow clicking and view shape details | 25 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032221 | <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... | 51 | merged with master and changed shapesList template to allow clicking and view shape details | 25 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032222 | <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... | 51 | merged with master and changed shapesList template to allow clicking and view shape details | 25 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032223 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 1 | use init_db in setup | 7 | .md | md | mit | UrbanCCD-UChicago/plenario |
10032224 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 1 | use init_db in setup | 7 | .md | md | mit | UrbanCCD-UChicago/plenario |
10032225 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 1 | use init_db in setup | 7 | .md | md | mit | UrbanCCD-UChicago/plenario |
10032226 | <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 | Merge branch 'master' of github.com:UrbanCCD-UChicago/plenario into hash-etl | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032227 | <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 | Merge branch 'master' of github.com:UrbanCCD-UChicago/plenario into hash-etl | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032228 | <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 | Merge branch 'master' of github.com:UrbanCCD-UChicago/plenario into hash-etl | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032229 | <NME> views.py
<BEF> from collections import defaultdict
from flask import Blueprint, make_response, request
from json import dumps, loads
from redis import Redis
from sqlalchemy import Table
from traceback import format_exc
from plenario.database import redshift_session as rshift_session
def index() -> list:
""... | 14 | Add delete from unknownfeature to resolve logic | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032230 | <NME> views.py
<BEF> from collections import defaultdict
from flask import Blueprint, make_response, request
from json import dumps, loads
from redis import Redis
from sqlalchemy import Table
from traceback import format_exc
from plenario.database import redshift_session as rshift_session
def index() -> list:
""... | 14 | Add delete from unknownfeature to resolve logic | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032231 | <NME> views.py
<BEF> from collections import defaultdict
from flask import Blueprint, make_response, request
from json import dumps, loads
from redis import Redis
from sqlalchemy import Table
from traceback import format_exc
from plenario.database import redshift_session as rshift_session
def index() -> list:
""... | 14 | Add delete from unknownfeature to resolve logic | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032232 | <NME> .travis.yml
<BEF> language: python
python:
- '3.4'
addons:
postgresql: '9.4'
apt:
#- postgresql"
#- redis-server
#sudo: required
cache:
### test dependencies ###
#install:
#- pip install celery
- postgresql
- redis-server
sudo: required
dist: trusty
cache: pip
before_install:
- pip install -r requiremen... | 0 | Push trigger. | 1 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10032233 | <NME> .travis.yml
<BEF> language: python
python:
- '3.4'
addons:
postgresql: '9.4'
apt:
#- postgresql"
#- redis-server
#sudo: required
cache:
### test dependencies ###
#install:
#- pip install celery
- postgresql
- redis-server
sudo: required
dist: trusty
cache: pip
before_install:
- pip install -r requiremen... | 0 | Push trigger. | 1 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10032234 | <NME> .travis.yml
<BEF> language: python
python:
- '3.4'
addons:
postgresql: '9.4'
apt:
#- postgresql"
#- redis-server
#sudo: required
cache:
### test dependencies ###
#install:
#- pip install celery
- postgresql
- redis-server
sudo: required
dist: trusty
cache: pip
before_install:
- pip install -r requiremen... | 0 | Push trigger. | 1 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10032235 | <NME> MetaTable.py
<BEF> import json
from collections import namedtuple
from datetime import datetime
from hashlib import md5
from itertools import groupby
from operator import itemgetter
import sqlalchemy as sa
from flask_bcrypt import Bcrypt
from geoalchemy2 import Geometry
from sqlalchemy import Boolean, Column, Da... | 24 | Snap grid alignment to geom if provided! | 9 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032236 | <NME> MetaTable.py
<BEF> import json
from collections import namedtuple
from datetime import datetime
from hashlib import md5
from itertools import groupby
from operator import itemgetter
import sqlalchemy as sa
from flask_bcrypt import Bcrypt
from geoalchemy2 import Geometry
from sqlalchemy import Boolean, Column, Da... | 24 | Snap grid alignment to geom if provided! | 9 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032237 | <NME> MetaTable.py
<BEF> import json
from collections import namedtuple
from datetime import datetime
from hashlib import md5
from itertools import groupby
from operator import itemgetter
import sqlalchemy as sa
from flask_bcrypt import Bcrypt
from geoalchemy2 import Geometry
from sqlalchemy import Boolean, Column, Da... | 24 | Snap grid alignment to geom if provided! | 9 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032238 | <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... | 4 | Contribute/approve for CSV file now works | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032239 | <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... | 4 | Contribute/approve for CSV file now works | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032240 | <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... | 4 | Contribute/approve for CSV file now works | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032241 | <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... | 4 | Add terms of use | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032242 | <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... | 4 | Add terms of use | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032243 | <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... | 4 | Add terms of use | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032244 | <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... | 4 | Button fixes, worker instance protection. | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032245 | <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... | 4 | Button fixes, worker instance protection. | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032246 | <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... | 4 | Button fixes, worker instance protection. | 4 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032247 | <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 | Set start date for the downloads test | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032248 | <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 | Set start date for the downloads test | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10032249 | <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 | Set start date for the downloads test | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |