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 |
|---|---|---|---|---|---|---|---|---|
10033750 | <NME> SensorNetwork.py
<BEF> from geoalchemy2 import Geometry
from sqlalchemy import Table, String, Column, ForeignKey, ForeignKeyConstraint
from sqlalchemy import func as sqla_fn, Boolean, BigInteger, DateTime, Float
from sqlalchemy.dialects.postgresql import JSONB, DOUBLE_PRECISION
from sqlalchemy.orm import relation... | 5 | Add imports for knn | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033751 | <NME> SensorNetwork.py
<BEF> from geoalchemy2 import Geometry
from sqlalchemy import Table, String, Column, ForeignKey, ForeignKeyConstraint
from sqlalchemy import func as sqla_fn, Boolean, BigInteger, DateTime, Float
from sqlalchemy.dialects.postgresql import JSONB, DOUBLE_PRECISION
from sqlalchemy.orm import relation... | 5 | Add imports for knn | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033752 | <NME> SensorNetwork.py
<BEF> from geoalchemy2 import Geometry
from sqlalchemy import Table, String, Column, ForeignKey, ForeignKeyConstraint
from sqlalchemy import func as sqla_fn, Boolean, BigInteger, DateTime, Float
from sqlalchemy.dialects.postgresql import JSONB, DOUBLE_PRECISION
from sqlalchemy.orm import relation... | 5 | Add imports for knn | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033753 | <NME> shape.py
<BEF> import zipfile
from sqlalchemy.exc import ProgrammingError
from plenario.database import postgres_engine, postgres_session
from plenario.etl.common import ETLFile, add_unique_hash
from plenario.utils.shapefile import import_shapefile
class ShapeETL:
def __init__(self, meta, source_path=None... | 15 | Better error handling on ShapeETL.add | 14 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033754 | <NME> shape.py
<BEF> import zipfile
from sqlalchemy.exc import ProgrammingError
from plenario.database import postgres_engine, postgres_session
from plenario.etl.common import ETLFile, add_unique_hash
from plenario.utils.shapefile import import_shapefile
class ShapeETL:
def __init__(self, meta, source_path=None... | 15 | Better error handling on ShapeETL.add | 14 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033755 | <NME> shape.py
<BEF> import zipfile
from sqlalchemy.exc import ProgrammingError
from plenario.database import postgres_engine, postgres_session
from plenario.etl.common import ETLFile, add_unique_hash
from plenario.utils.shapefile import import_shapefile
class ShapeETL:
def __init__(self, meta, source_path=None... | 15 | Better error handling on ShapeETL.add | 14 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033756 | <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 | delete unused method validate_tree_conditions | 21 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033757 | <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 | delete unused method validate_tree_conditions | 21 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033758 | <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 | delete unused method validate_tree_conditions | 21 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033759 | <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 | Only show 1000 most recent ETL results | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033760 | <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 | Only show 1000 most recent ETL results | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033761 | <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 | Only show 1000 most recent ETL results | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033762 | <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... | 4 | Don't send derived geom in /detail | 11 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033763 | <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... | 4 | Don't send derived geom in /detail | 11 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033764 | <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... | 4 | Don't send derived geom in /detail | 11 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033765 | <NME> process_running.py
<BEF> ADDFILE
<MSG> Update to master
<DFF> @@ -0,0 +1,20 @@
+import subprocess
+import re
+
+
+def is_process_running(process_name):
+ ps = subprocess.Popen('ps -ef | grep "{}"'.format(process_name), shell=True, stdout=subprocess.PIPE)
+ output = ps.stdout.read()
+ ps.stdout.close()
+... | 20 | Update to master | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033766 | <NME> process_running.py
<BEF> ADDFILE
<MSG> Update to master
<DFF> @@ -0,0 +1,20 @@
+import subprocess
+import re
+
+
+def is_process_running(process_name):
+ ps = subprocess.Popen('ps -ef | grep "{}"'.format(process_name), shell=True, stdout=subprocess.PIPE)
+ output = ps.stdout.read()
+ ps.stdout.close()
+... | 20 | Update to master | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033767 | <NME> process_running.py
<BEF> ADDFILE
<MSG> Update to master
<DFF> @@ -0,0 +1,20 @@
+import subprocess
+import re
+
+
+def is_process_running(process_name):
+ ps = subprocess.Popen('ps -ef | grep "{}"'.format(process_name), shell=True, stdout=subprocess.PIPE)
+ output = ps.stdout.read()
+ ps.stdout.close()
+... | 20 | Update to master | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033768 | <NME> worker.py
<BEF> ADDFILE
<MSG> Update plenario worker tasks with celery
<DFF> @@ -0,0 +1,33 @@
+from flask import Flask
+
+import plenario.tasks as tasks
+
+
+def create_worker():
+
+ app = Flask(__name__)
+ app.config.from_object('plenario.settings')
+ app.url_map.strict_slashes = False
+
+ @app.rout... | 33 | Update plenario worker tasks with celery | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033769 | <NME> worker.py
<BEF> ADDFILE
<MSG> Update plenario worker tasks with celery
<DFF> @@ -0,0 +1,33 @@
+from flask import Flask
+
+import plenario.tasks as tasks
+
+
+def create_worker():
+
+ app = Flask(__name__)
+ app.config.from_object('plenario.settings')
+ app.url_map.strict_slashes = False
+
+ @app.rout... | 33 | Update plenario worker tasks with celery | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033770 | <NME> worker.py
<BEF> ADDFILE
<MSG> Update plenario worker tasks with celery
<DFF> @@ -0,0 +1,33 @@
+from flask import Flask
+
+import plenario.tasks as tasks
+
+
+def create_worker():
+
+ app = Flask(__name__)
+ app.config.from_object('plenario.settings')
+ app.url_map.strict_slashes = False
+
+ @app.rout... | 33 | Update plenario worker tasks with celery | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033771 | <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... | 28 | Drafte submission through thankyou email | 340 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033772 | <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... | 28 | Drafte submission through thankyou email | 340 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033773 | <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... | 28 | Drafte submission through thankyou email | 340 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033774 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 5 | Update README to thank JetBrains, remove Celery [skip CI] | 21 | .md | md | mit | UrbanCCD-UChicago/plenario |
10033775 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 5 | Update README to thank JetBrains, remove Celery [skip CI] | 21 | .md | md | mit | UrbanCCD-UChicago/plenario |
10033776 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 5 | Update README to thank JetBrains, remove Celery [skip CI] | 21 | .md | md | mit | UrbanCCD-UChicago/plenario |
10033777 | <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... | 12 | Rewrite point in polygon join so test passes | 7 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033778 | <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... | 12 | Rewrite point in polygon join so test passes | 7 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033779 | <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... | 12 | Rewrite point in polygon join so test passes | 7 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033780 | <NME> views.py
<BEF> from flask import make_response, request, redirect, url_for, render_template, current_app, g, \
Blueprint, flash, session as flask_session
from plenario.models import MetaTable, User, ShapeMetadata
from plenario.database import session, Base, app_engine as engine
from collections import namedtu... | 4 | API tests passing | 8 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033781 | <NME> views.py
<BEF> from flask import make_response, request, redirect, url_for, render_template, current_app, g, \
Blueprint, flash, session as flask_session
from plenario.models import MetaTable, User, ShapeMetadata
from plenario.database import session, Base, app_engine as engine
from collections import namedtu... | 4 | API tests passing | 8 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033782 | <NME> views.py
<BEF> from flask import make_response, request, redirect, url_for, render_template, current_app, g, \
Blueprint, flash, session as flask_session
from plenario.models import MetaTable, User, ShapeMetadata
from plenario.database import session, Base, app_engine as engine
from collections import namedtu... | 4 | API tests passing | 8 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033783 | <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... | 2 | Get geom filtering working at all levels | 36 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033784 | <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... | 2 | Get geom filtering working at all levels | 36 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033785 | <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... | 2 | Get geom filtering working at all levels | 36 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033786 | <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 | Changed Socrata contribute to use machine_name instead of human_name in metadata | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033787 | <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 | Changed Socrata contribute to use machine_name instead of human_name in metadata | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033788 | <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 | Changed Socrata contribute to use machine_name instead of human_name in metadata | 2 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033789 | <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... | 0 | Remove windowed query and fast count | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033790 | <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... | 0 | Remove windowed query and fast count | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033791 | <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... | 0 | Remove windowed query and fast count | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033792 | <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... | 0 | Change license to blank terms of use | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033793 | <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... | 0 | Change license to blank terms of use | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033794 | <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... | 0 | Change license to blank terms of use | 5 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033795 | <NME> python.config
<BEF> ADDFILE
<MSG> Try specifying WSGIPath from ebextensions
<DFF> @@ -0,0 +1,5 @@
+option_settings:
+ aws:elasticbeanstalk:container:python:
+ WSGIPath: runserver.py
+ NumProcesses: 3
+ NumThreads: 20
\ No newline at end of file
| 5 | Try specifying WSGIPath from ebextensions | 0 | .config | ebextensions/python | mit | UrbanCCD-UChicago/plenario |
10033796 | <NME> python.config
<BEF> ADDFILE
<MSG> Try specifying WSGIPath from ebextensions
<DFF> @@ -0,0 +1,5 @@
+option_settings:
+ aws:elasticbeanstalk:container:python:
+ WSGIPath: runserver.py
+ NumProcesses: 3
+ NumThreads: 20
\ No newline at end of file
| 5 | Try specifying WSGIPath from ebextensions | 0 | .config | ebextensions/python | mit | UrbanCCD-UChicago/plenario |
10033797 | <NME> python.config
<BEF> ADDFILE
<MSG> Try specifying WSGIPath from ebextensions
<DFF> @@ -0,0 +1,5 @@
+option_settings:
+ aws:elasticbeanstalk:container:python:
+ WSGIPath: runserver.py
+ NumProcesses: 3
+ NumThreads: 20
\ No newline at end of file
| 5 | Try specifying WSGIPath from ebextensions | 0 | .config | ebextensions/python | mit | UrbanCCD-UChicago/plenario |
10033798 | <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 | Pull in validator fix. | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033799 | <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 | Pull in validator fix. | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033800 | <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 | Pull in validator fix. | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033801 | <NME> tasks.py
<BEF> import csv
from datetime import datetime, timedelta
from raven import Client
from plenario.api.jobs import submit_job
from plenario.database import session as session, Base, app_engine as engine
from plenario.etl.point import PlenarioETL
from plenario.etl.shape import ShapeETL
from celery import C... | 0 | Adapt streaming datadump to sensor networks | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033802 | <NME> tasks.py
<BEF> import csv
from datetime import datetime, timedelta
from raven import Client
from plenario.api.jobs import submit_job
from plenario.database import session as session, Base, app_engine as engine
from plenario.etl.point import PlenarioETL
from plenario.etl.shape import ShapeETL
from celery import C... | 0 | Adapt streaming datadump to sensor networks | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033803 | <NME> tasks.py
<BEF> import csv
from datetime import datetime, timedelta
from raven import Client
from plenario.api.jobs import submit_job
from plenario.database import session as session, Base, app_engine as engine
from plenario.etl.point import PlenarioETL
from plenario.etl.shape import ShapeETL
from celery import C... | 0 | Adapt streaming datadump to sensor networks | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033804 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 2 | path fixes, changed default database name to plenario_dev | 2 | .md | md | mit | UrbanCCD-UChicago/plenario |
10033805 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 2 | path fixes, changed default database name to plenario_dev | 2 | .md | md | mit | UrbanCCD-UChicago/plenario |
10033806 | <NME> README.md
<BEF>
[](https://codeclimate.com/github/UrbanCCD-UChicago/plenario)
[](https://travis-ci.org/UrbanCCD-UChicago/plenario)
# Plenar.... | 2 | path fixes, changed default database name to plenario_dev | 2 | .md | md | mit | UrbanCCD-UChicago/plenario |
10033807 | <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 | Maintain shapefile status through clicks | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033808 | <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 | Maintain shapefile status through clicks | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033809 | <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 | Maintain shapefile status through clicks | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033810 | <NME> settings.py
<BEF> ADDFILE
<MSG> Merge remote-tracking branch 'origin/aot-apiary' into aot-ifttt
# Conflicts:
# plenario/sensor_network/api/sensor_networks.py
<DFF> @@ -0,0 +1,44 @@
+import botocore.exceptions
+import boto3
+import requests
+
+
+def get_ec2_instance_id():
+ """Retrieve the instance id for the... | 44 | Merge remote-tracking branch 'origin/aot-apiary' into aot-ifttt | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033811 | <NME> settings.py
<BEF> ADDFILE
<MSG> Merge remote-tracking branch 'origin/aot-apiary' into aot-ifttt
# Conflicts:
# plenario/sensor_network/api/sensor_networks.py
<DFF> @@ -0,0 +1,44 @@
+import botocore.exceptions
+import boto3
+import requests
+
+
+def get_ec2_instance_id():
+ """Retrieve the instance id for the... | 44 | Merge remote-tracking branch 'origin/aot-apiary' into aot-ifttt | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033812 | <NME> settings.py
<BEF> ADDFILE
<MSG> Merge remote-tracking branch 'origin/aot-apiary' into aot-ifttt
# Conflicts:
# plenario/sensor_network/api/sensor_networks.py
<DFF> @@ -0,0 +1,44 @@
+import botocore.exceptions
+import boto3
+import requests
+
+
+def get_ec2_instance_id():
+ """Retrieve the instance id for the... | 44 | Merge remote-tracking branch 'origin/aot-apiary' into aot-ifttt | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033813 | <NME> common.py
<BEF> import requests
import tempfile
from logging import getLogger
from plenario.database import postgres_engine
logger = getLogger(__name__)
class PlenarioETLError(Exception):
def __init__(self, message):
Exception.__init__(self, message)
self.message = message
class ETLFile(... | 5 | Don't kill long-running download requests | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033814 | <NME> common.py
<BEF> import requests
import tempfile
from logging import getLogger
from plenario.database import postgres_engine
logger = getLogger(__name__)
class PlenarioETLError(Exception):
def __init__(self, message):
Exception.__init__(self, message)
self.message = message
class ETLFile(... | 5 | Don't kill long-running download requests | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033815 | <NME> common.py
<BEF> import requests
import tempfile
from logging import getLogger
from plenario.database import postgres_engine
logger = getLogger(__name__)
class PlenarioETLError(Exception):
def __init__(self, message):
Exception.__init__(self, message)
self.message = message
class ETLFile(... | 5 | Don't kill long-running download requests | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033816 | <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... | 14 | Add deletion step to Point ETL | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033817 | <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... | 14 | Add deletion step to Point ETL | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033818 | <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... | 14 | Add deletion step to Point ETL | 6 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033819 | <NME> Dockerfile
<BEF> FROM ubuntu
MAINTAINER hunter@hunterowens.net
# RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y install aptitude
RUN aptitude -y install wget git curl build-essential
RUN aptitude -y install... | 29 | Use Docker's python:2.7 as base | 24 | Dockerfile | mit | UrbanCCD-UChicago/plenario | |
10033820 | <NME> Dockerfile
<BEF> FROM ubuntu
MAINTAINER hunter@hunterowens.net
# RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y install aptitude
RUN aptitude -y install wget git curl build-essential
RUN aptitude -y install... | 29 | Use Docker's python:2.7 as base | 24 | Dockerfile | mit | UrbanCCD-UChicago/plenario | |
10033821 | <NME> Dockerfile
<BEF> FROM ubuntu
MAINTAINER hunter@hunterowens.net
# RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y install aptitude
RUN aptitude -y install wget git curl build-essential
RUN aptitude -y install... | 29 | Use Docker's python:2.7 as base | 24 | Dockerfile | mit | UrbanCCD-UChicago/plenario | |
10033822 | <NME> ogr2ogr.py
<BEF> import os
import shutil
import subprocess
import tempfile
import zipfile
from plenario.settings import DB_HOST, DB_NAME, DB_PASSWORD, DB_PORT, DB_USER
postgres_connection_arg = 'PG:host={} user={} port={} dbname={} password={}'.format(
DB_HOST, DB_USER, DB_PORT, DB_NAME, DB_PASSWORD)
cla... | 0 | refactored shape and point tests to inherit from a single setup class, although tests cannot be run in same session because init_meta will load tables whose metadata persists from the first run of tests. filter points with polygons API can now be called and will return JSON of polygon data with occurrence counts | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033823 | <NME> ogr2ogr.py
<BEF> import os
import shutil
import subprocess
import tempfile
import zipfile
from plenario.settings import DB_HOST, DB_NAME, DB_PASSWORD, DB_PORT, DB_USER
postgres_connection_arg = 'PG:host={} user={} port={} dbname={} password={}'.format(
DB_HOST, DB_USER, DB_PORT, DB_NAME, DB_PASSWORD)
cla... | 0 | refactored shape and point tests to inherit from a single setup class, although tests cannot be run in same session because init_meta will load tables whose metadata persists from the first run of tests. filter points with polygons API can now be called and will return JSON of polygon data with occurrence counts | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033824 | <NME> ogr2ogr.py
<BEF> import os
import shutil
import subprocess
import tempfile
import zipfile
from plenario.settings import DB_HOST, DB_NAME, DB_PASSWORD, DB_PORT, DB_USER
postgres_connection_arg = 'PG:host={} user={} port={} dbname={} password={}'.format(
DB_HOST, DB_USER, DB_PORT, DB_NAME, DB_PASSWORD)
cla... | 0 | refactored shape and point tests to inherit from a single setup class, although tests cannot be run in same session because init_meta will load tables whose metadata persists from the first run of tests. filter points with polygons API can now be called and will return JSON of polygon data with occurrence counts | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033825 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil.parser import parse
from flask import request, make_response
from shapely import wkb
from sqlalchemy import MetaData, Table, func as sqla_fn, and_
from plenario.ap... | 21 | Enable datetime parameter for knn search | 14 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033826 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil.parser import parse
from flask import request, make_response
from shapely import wkb
from sqlalchemy import MetaData, Table, func as sqla_fn, and_
from plenario.ap... | 21 | Enable datetime parameter for knn search | 14 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033827 | <NME> sensor_networks.py
<BEF> import csv
import io
import json
from collections import OrderedDict
from datetime import datetime, timedelta
from dateutil.parser import parse
from flask import request, make_response
from shapely import wkb
from sqlalchemy import MetaData, Table, func as sqla_fn, and_
from plenario.ap... | 21 | Enable datetime parameter for knn search | 14 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033828 | <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... | 1 | Disable archive tests for now till its less spotty | 1 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10033829 | <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... | 1 | Disable archive tests for now till its less spotty | 1 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10033830 | <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... | 1 | Disable archive tests for now till its less spotty | 1 | .yml | travis | mit | UrbanCCD-UChicago/plenario |
10033831 | <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... | 66 | Sketch detail-aggregate | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033832 | <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... | 66 | Sketch detail-aggregate | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033833 | <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... | 66 | Sketch detail-aggregate | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033834 | <NME> worker.py
<BEF> ADDFILE
<MSG> Checkpoint.
<DFF> @@ -0,0 +1,130 @@
+### THIS IS AN INDEPENDENT PYTHON SCRIPT THAT RUNS THE WORKER ###
+### AVOID IMPORTING FROM THIS FILE ###
+
+import datetime, time, signal
+import boto.sqs
+from os import urandom
+from plenario.settings import AWS_ACCE... | 130 | Checkpoint. | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033835 | <NME> worker.py
<BEF> ADDFILE
<MSG> Checkpoint.
<DFF> @@ -0,0 +1,130 @@
+### THIS IS AN INDEPENDENT PYTHON SCRIPT THAT RUNS THE WORKER ###
+### AVOID IMPORTING FROM THIS FILE ###
+
+import datetime, time, signal
+import boto.sqs
+from os import urandom
+from plenario.settings import AWS_ACCE... | 130 | Checkpoint. | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033836 | <NME> worker.py
<BEF> ADDFILE
<MSG> Checkpoint.
<DFF> @@ -0,0 +1,130 @@
+### THIS IS AN INDEPENDENT PYTHON SCRIPT THAT RUNS THE WORKER ###
+### AVOID IMPORTING FROM THIS FILE ###
+
+import datetime, time, signal
+import boto.sqs
+from os import urandom
+from plenario.settings import AWS_ACCE... | 130 | Checkpoint. | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033837 | <NME> post_data.py
<BEF> ADDFILE
<MSG> Merge pull request #246 from UrbanCCD-UChicago/fix-validator-index
Correct a problem where Validator would reject datasets because it was not updated its dataset list. It would do this because the list is created when the __class__ is made, not when it is instantiated.
<DFF> @@ ... | 26 | Merge pull request #246 from UrbanCCD-UChicago/fix-validator-index | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033838 | <NME> post_data.py
<BEF> ADDFILE
<MSG> Merge pull request #246 from UrbanCCD-UChicago/fix-validator-index
Correct a problem where Validator would reject datasets because it was not updated its dataset list. It would do this because the list is created when the __class__ is made, not when it is instantiated.
<DFF> @@ ... | 26 | Merge pull request #246 from UrbanCCD-UChicago/fix-validator-index | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033839 | <NME> post_data.py
<BEF> ADDFILE
<MSG> Merge pull request #246 from UrbanCCD-UChicago/fix-validator-index
Correct a problem where Validator would reject datasets because it was not updated its dataset list. It would do this because the list is created when the __class__ is made, not when it is instantiated.
<DFF> @@ ... | 26 | Merge pull request #246 from UrbanCCD-UChicago/fix-validator-index | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033840 | <NME> coltypes.py
<BEF> ADDFILE
<MSG> Adding a scripts folder
<DFF> @@ -0,0 +1,30 @@
+from sqlalchemy import Table, MetaData
+from sqlalchemy.sql.sqltypes import DATE
+from plenario.database import session, app_engine
+from plenario.models import MetaTable
+from sqlalchemy.exc import NoSuchTableError
+from plenario.ut... | 30 | Adding a scripts folder | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033841 | <NME> coltypes.py
<BEF> ADDFILE
<MSG> Adding a scripts folder
<DFF> @@ -0,0 +1,30 @@
+from sqlalchemy import Table, MetaData
+from sqlalchemy.sql.sqltypes import DATE
+from plenario.database import session, app_engine
+from plenario.models import MetaTable
+from sqlalchemy.exc import NoSuchTableError
+from plenario.ut... | 30 | Adding a scripts folder | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033842 | <NME> coltypes.py
<BEF> ADDFILE
<MSG> Adding a scripts folder
<DFF> @@ -0,0 +1,30 @@
+from sqlalchemy import Table, MetaData
+from sqlalchemy.sql.sqltypes import DATE
+from plenario.database import session, app_engine
+from plenario.models import MetaTable
+from sqlalchemy.exc import NoSuchTableError
+from plenario.ut... | 30 | Adding a scripts folder | 0 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033843 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
from ftplib import FTP
from cStringIO import StringIO
from csvkit.unicsv import UnicodeCSVReader, UnicodeCSVWriter, \
UnicodeCSVDictReader
from dateutil import parser
from datetime import datetime, date, timedelta
impor... | 78 | Iterating incoming weather a bit differently | 61 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033844 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
from ftplib import FTP
from cStringIO import StringIO
from csvkit.unicsv import UnicodeCSVReader, UnicodeCSVWriter, \
UnicodeCSVDictReader
from dateutil import parser
from datetime import datetime, date, timedelta
impor... | 78 | Iterating incoming weather a bit differently | 61 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033845 | <NME> weather.py
<BEF> import calendar
import csv
import operator
import os
import re
import sys
from ftplib import FTP
from cStringIO import StringIO
from csvkit.unicsv import UnicodeCSVReader, UnicodeCSVWriter, \
UnicodeCSVDictReader
from dateutil import parser
from datetime import datetime, date, timedelta
impor... | 78 | Iterating incoming weather a bit differently | 61 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033846 | <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... | 4 | Alter event dataset etl to replace on update | 21 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033847 | <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... | 4 | Alter event dataset etl to replace on update | 21 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033848 | <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... | 4 | Alter event dataset etl to replace on update | 21 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033849 | <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... | 1 | Fix shapely requirement for failing eb deployment | 1 | .txt | txt | mit | UrbanCCD-UChicago/plenario |