index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
1,313
AlexsandroMO/Bitcoin
refs/heads/master
/Read_SQL.py
import pandas as pd import pandasql as pdsql import sqlite3 from datetime import date from datetime import datetime def read_sql_btc(): conn = sqlite3.connect('DB/DB_COINS.db') sql_datas = f""" SELECT * FROM VARBTC; """ read_db = pd.read_sql_query(sql_datas, conn) co...
{"/Write_SQL.py": ["/CreateTable_SQL.py"]}
1,314
AlexsandroMO/Bitcoin
refs/heads/master
/coin/tests.py
from django.test import TestCase # pip install django-crispy-forms '''Upload documents on Github git clone <nome> <entra na pasta criada> git add . git commit -m "texto" git push '''
{"/Write_SQL.py": ["/CreateTable_SQL.py"]}
1,332
glorizen/hi10enc
refs/heads/master
/app.py
import os from flask import Flask from flask import request from flask import jsonify from flask import render_template from flask import send_from_directory from parsers import MediaParser from parsers import AvsParser app = Flask(__name__) app.config['UPLOAD_FOLDER'] = 'd:/temp' @app.route('/static/metronic_v5.0.2...
{"/app.py": ["/parsers.py"]}
1,333
glorizen/hi10enc
refs/heads/master
/parsers.py
from pymediainfo import MediaInfo class MediaParser(object): def __init__(self, xml_string): self.mediainfo = MediaInfo(xml_string) self.metadata = self.mediainfo.to_data() #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< def get_gen...
{"/app.py": ["/parsers.py"]}
1,336
briis/unifiprotect
refs/heads/master
/custom_components/unifiprotect/__init__.py
"""UniFi Protect Platform.""" from __future__ import annotations import asyncio from datetime import timedelta import logging from aiohttp import CookieJar from aiohttp.client_exceptions import ServerDisconnectedError from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_HOST...
{"/custom_components/unifiprotect/__init__.py": ["/custom_components/unifiprotect/services.py"], "/custom_components/unifiprotect/binary_sensor.py": ["/custom_components/unifiprotect/models.py", "/custom_components/unifiprotect/utils.py"], "/custom_components/unifiprotect/models.py": ["/custom_components/unifiprotect/u...
1,337
briis/unifiprotect
refs/heads/master
/custom_components/unifiprotect/binary_sensor.py
"""This component provides binary sensors for UniFi Protect.""" from __future__ import annotations from copy import copy from dataclasses import dataclass import logging from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from ...
{"/custom_components/unifiprotect/__init__.py": ["/custom_components/unifiprotect/services.py"], "/custom_components/unifiprotect/binary_sensor.py": ["/custom_components/unifiprotect/models.py", "/custom_components/unifiprotect/utils.py"], "/custom_components/unifiprotect/models.py": ["/custom_components/unifiprotect/u...
1,338
briis/unifiprotect
refs/heads/master
/custom_components/unifiprotect/services.py
"""UniFi Protect Integration services.""" from __future__ import annotations import asyncio import functools from typing import Any from homeassistant.config_entries import ConfigEntryState from homeassistant.const import ATTR_DEVICE_ID from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassi...
{"/custom_components/unifiprotect/__init__.py": ["/custom_components/unifiprotect/services.py"], "/custom_components/unifiprotect/binary_sensor.py": ["/custom_components/unifiprotect/models.py", "/custom_components/unifiprotect/utils.py"], "/custom_components/unifiprotect/models.py": ["/custom_components/unifiprotect/u...
1,339
briis/unifiprotect
refs/heads/master
/custom_components/unifiprotect/button.py
"""Support for Ubiquiti's UniFi Protect NVR.""" from __future__ import annotations import logging from homeassistant.components.button import ButtonDeviceClass, ButtonEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform imp...
{"/custom_components/unifiprotect/__init__.py": ["/custom_components/unifiprotect/services.py"], "/custom_components/unifiprotect/binary_sensor.py": ["/custom_components/unifiprotect/models.py", "/custom_components/unifiprotect/utils.py"], "/custom_components/unifiprotect/models.py": ["/custom_components/unifiprotect/u...
1,340
briis/unifiprotect
refs/heads/master
/custom_components/unifiprotect/utils.py
"""UniFi Protect Integration utils.""" from __future__ import annotations from enum import Enum from typing import Any def get_nested_attr(obj: Any, attr: str) -> Any: """Fetch a nested attribute.""" attrs = attr.split(".") value = obj for key in attrs: if not hasattr(value, key): ...
{"/custom_components/unifiprotect/__init__.py": ["/custom_components/unifiprotect/services.py"], "/custom_components/unifiprotect/binary_sensor.py": ["/custom_components/unifiprotect/models.py", "/custom_components/unifiprotect/utils.py"], "/custom_components/unifiprotect/models.py": ["/custom_components/unifiprotect/u...
1,341
briis/unifiprotect
refs/heads/master
/custom_components/unifiprotect/models.py
"""The unifiprotect integration models.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass import logging from typing import Any from homeassistant.helpers.entity import EntityDescription from pyunifiprotect.data import NVR, ProtectAdoptableDeviceMo...
{"/custom_components/unifiprotect/__init__.py": ["/custom_components/unifiprotect/services.py"], "/custom_components/unifiprotect/binary_sensor.py": ["/custom_components/unifiprotect/models.py", "/custom_components/unifiprotect/utils.py"], "/custom_components/unifiprotect/models.py": ["/custom_components/unifiprotect/u...
1,343
kawa-kokosowa/urlink
refs/heads/master
/models.py
# builtin import datetime # 3rd party import flask_sqlalchemy import flask_user db = flask_sqlalchemy.SQLAlchemy() class User(db.Model, flask_user.UserMixin): """Generic User data model for flask_user as seen in their documentation. http://pythonhosted.org/Flask-User/basic_app.html """ id = ...
{"/app.py": ["/models.py", "/config.py", "/urlhelper.py"], "/tests.py": ["/app.py"]}
1,344
kawa-kokosowa/urlink
refs/heads/master
/app.py
"""urlink Flask App """ # builtin import os # local import models import config import urlhelper # 3rd party/pip import flask import flask_mail import flask_user import flask_login import flask_script import flask_migrate import sqlalchemy import wtforms # flask app setup app = flask.Flask(__name__) app.config.fr...
{"/app.py": ["/models.py", "/config.py", "/urlhelper.py"], "/tests.py": ["/app.py"]}
1,345
kawa-kokosowa/urlink
refs/heads/master
/migrations/versions/a77719286100_.py
"""empty message Revision ID: a77719286100 Revises: ae0cb4fef303 Create Date: 2016-10-03 13:03:02.448316 """ # revision identifiers, used by Alembic. revision = 'a77719286100' down_revision = 'ae0cb4fef303' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/app.py": ["/models.py", "/config.py", "/urlhelper.py"], "/tests.py": ["/app.py"]}
1,346
kawa-kokosowa/urlink
refs/heads/master
/urlhelper.py
"""Get as much info as possible about a URL. """ import mimetypes import requests import bs4 MAXIMUM_REDIRECTS = 4 FIELDS = [ { 'name': 'title', 'soup_find': ('title', {}), }, ] _session = requests.Session() class MaxRedirectError(Exception): def __init__(self): self.message...
{"/app.py": ["/models.py", "/config.py", "/urlhelper.py"], "/tests.py": ["/app.py"]}
1,347
kawa-kokosowa/urlink
refs/heads/master
/config.py
"""Really sloppy configuration that will be overhauled to include environment-specific configs (develop, test, production). Mostly due to a Heroku headache. """ import os DEBUG = False TESTING = False SECRET_KEY = os.getenv('SECRET_KEY') SQLALCHEMY_DATABASE_URI = os.getenv( 'SQLALCHEMY_DATABASE_URI', # if no...
{"/app.py": ["/models.py", "/config.py", "/urlhelper.py"], "/tests.py": ["/app.py"]}
1,348
kawa-kokosowa/urlink
refs/heads/master
/tests.py
import unittest import os import tempfile import app class UrlinkTestCase(unittest.TestCase): def setUp(self): """Deploy the test DB (sqlite). """ self.db_handle, app.app.config['DATABASE'] = tempfile.mkstemp() self.app = app.app.test_client() with app.app.app_context(...
{"/app.py": ["/models.py", "/config.py", "/urlhelper.py"], "/tests.py": ["/app.py"]}
1,356
tartaruz/Stein-saks-papir
refs/heads/master
/stein-saks-papir.py
import funk from time import sleep import os clear = lambda: os.system('cls') valg = 0 while (valg!="avslutt"): sleep(1) print() funk.velkommen() funk.meny() print() valg = funk.valg() clear() if valg=="1": print("--------------Spiller 1's tur--------------") pvalg=funk....
{"/stein-saks-papir.py": ["/funk.py"]}
1,357
tartaruz/Stein-saks-papir
refs/heads/master
/funk.py
import random from time import sleep#for stein saks papir def velkommen(): print("§-----------------------------------------------------------§") print("§-----| VELKOMMEN TIL STEIN/SAKS/PAPIR! |-----§") print("§-----------------------------------------------------------§") print() def va...
{"/stein-saks-papir.py": ["/funk.py"]}
1,358
KagenLH/forme-app
refs/heads/main
/app/forms/signup_form.py
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField from wtforms.validators import Email, ValidationError, InputRequired, Length, EqualTo from app.models import User def user_exists(form, field): # Checking if user exists email = field.data user = User.query.filter(User.email ==...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,359
KagenLH/forme-app
refs/heads/main
/migrations/versions/20210816_135552_.py
"""empty message Revision ID: fa590b961f4f Revises: ffdc0a98111c Create Date: 2021-08-16 13:55:52.581549 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'fa590b961f4f' down_revision = 'ffdc0a98111c' branch_labels = None depends_on = None def upgrade(): # ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,360
KagenLH/forme-app
refs/heads/main
/app/seeds/forms.py
from app.models import db, Form def seed_forms(): test = Form( title = "Test Form Render", owner_id = 1, description = "", label_placement = "", description_align = "", title_align = "", ) db.session.add(test) db.session.commit()...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,361
KagenLH/forme-app
refs/heads/main
/migrations/versions/20210820_171546_.py
"""empty message Revision ID: 94f5eda37179 Revises: b3e721c02f48 Create Date: 2021-08-20 17:15:46.455809 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '94f5eda37179' down_revision = 'b3e721c02f48' branch_labels = None depends_on = None def upgrade(): # ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,362
KagenLH/forme-app
refs/heads/main
/migrations/versions/20210821_113310_.py
"""empty message Revision ID: d0c387e43ca4 Revises: 94f5eda37179 Create Date: 2021-08-21 11:33:10.206199 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd0c387e43ca4' down_revision = '94f5eda37179' branch_labels = None depends_on = None def upgrade(): # ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,363
KagenLH/forme-app
refs/heads/main
/migrations/versions/20210820_103408_.py
"""empty message Revision ID: b05fdd14ae4f Revises: 4563136888fd Create Date: 2021-08-20 10:34:08.171553 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b05fdd14ae4f' down_revision = '4563136888fd' branch_labels = None depends_on = None def upgrade(): # ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,364
KagenLH/forme-app
refs/heads/main
/app/seeds/users.py
from app.models import db, User # Adds a demo user, you can add other users here if you want def seed_users(): demo = User( username='Demo', email='demo@aa.io', password='password') marnie = User( username='marnie', email='marnie@aa.io', password='password') bobbie = User( username...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,365
KagenLH/forme-app
refs/heads/main
/migrations/versions/20210820_100009_.py
"""empty message Revision ID: beeeac90e4ba Revises: d25f4d1b7ea0 Create Date: 2021-08-20 10:00:09.924819 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'beeeac90e4ba' down_revision = 'd25f4d1b7ea0' branch_labels = None depends_on = None def upgrade(): # ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,366
KagenLH/forme-app
refs/heads/main
/migrations/versions/20210821_161057_.py
"""empty message Revision ID: 4df12f583573 Revises: 2453c767d036 Create Date: 2021-08-21 16:10:57.556468 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4df12f583573' down_revision = '2453c767d036' branch_labels = None depends_on = None def upgrade(): # ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,367
KagenLH/forme-app
refs/heads/main
/app/models/__init__.py
from .db import db from .user import User from .form import Form from .field import Field
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,368
KagenLH/forme-app
refs/heads/main
/migrations/versions/20210820_100524_.py
"""empty message Revision ID: b8ec5632d693 Revises: beeeac90e4ba Create Date: 2021-08-20 10:05:24.638509 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b8ec5632d693' down_revision = 'beeeac90e4ba' branch_labels = None depends_on = None def upgrade(): # ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,369
KagenLH/forme-app
refs/heads/main
/migrations/versions/20210821_145311_.py
"""empty message Revision ID: 2453c767d036 Revises: d0c387e43ca4 Create Date: 2021-08-21 14:53:11.208418 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '2453c767d036' down_revision = 'd0c387e43ca4' branch_labels = None depends_on = None def upgrade(): # ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,370
KagenLH/forme-app
refs/heads/main
/app/models/form.py
from .db import db class Form(db.Model): __tablename__ = 'forms' id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(50), nullable=False) owner_id = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False) description = db.Column(db.Text) label_placement = db.Colu...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,371
KagenLH/forme-app
refs/heads/main
/app/api/form_routes.py
from flask import Blueprint, jsonify, request, session from flask_login import login_required, current_user from app.models import Form, db, Field form_routes = Blueprint("forms", __name__) # get all forms --- remove this route? @form_routes.route('/') # @login_required def get_forms(): forms = Form.query.all() ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,372
KagenLH/forme-app
refs/heads/main
/migrations/versions/20210820_133516_.py
"""empty message Revision ID: b3e721c02f48 Revises: 9aec744a6b98 Create Date: 2021-08-20 13:35:16.871785 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b3e721c02f48' down_revision = '9aec744a6b98' branch_labels = None depends_on = None def upgrade(): # ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,373
KagenLH/forme-app
refs/heads/main
/app/api/field_routes.py
# from flask import Blueprint, jsonify, request # from flask_login import login_required # from app.models import Field, db # field_routes = Blueprint('fields', __name__) # @field_routes.route('/', methods=['POST']) # def fields(): # if request.method == 'POST': # # get fields data from request body # ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,374
KagenLH/forme-app
refs/heads/main
/app/models/field.py
from .db import db class Field(db.Model): __tablename__ = 'fields' id = db.Column(db.Integer, primary_key=True) type = db.Column(db.String(255), nullable=False) label = db.Column(db.String(55), nullable=False) max_length = db.Column(db.Integer) required = db.Column(db.Boolean, nullable=False)...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,375
KagenLH/forme-app
refs/heads/main
/app/seeds/fields.py
from app.models import db, Field from app.models import Form def seed_fields(): form = Form( title='To Test Fields', owner_id=1 ) db.session.add(form) testField = Field( type="text", label="Test Field", required=False, form=form, # creates the form_id ...
{"/app/forms/signup_form.py": ["/app/models/__init__.py"], "/app/seeds/forms.py": ["/app/models/__init__.py"], "/app/seeds/users.py": ["/app/models/__init__.py"], "/app/models/__init__.py": ["/app/models/form.py", "/app/models/field.py"], "/app/api/form_routes.py": ["/app/models/__init__.py"], "/app/seeds/fields.py": [...
1,383
rlebras/pytorch-pretrained-BERT
refs/heads/master
/examples/run_classifier.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
{"/examples/run_classifier.py": ["/pytorch_pretrained_bert/file_utils.py"], "/examples/test_data_processor.py": ["/examples/run_classifier.py"]}
1,384
rlebras/pytorch-pretrained-BERT
refs/heads/master
/pytorch_pretrained_bert/file_utils.py
""" Utilities for working with the local dataset cache. This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp Copyright by the AllenNLP authors. """ import gzip import csv import os import logging import shutil import tempfile import json from urllib.parse import urlparse from pathlib im...
{"/examples/run_classifier.py": ["/pytorch_pretrained_bert/file_utils.py"], "/examples/test_data_processor.py": ["/examples/run_classifier.py"]}
1,385
rlebras/pytorch-pretrained-BERT
refs/heads/master
/examples/test_data_processor.py
from examples.run_classifier import AnliWithCSKProcessor, convert_examples_to_features_mc from pytorch_pretrained_bert import BertTokenizer dir = "../../abductive-nli/data/abductive_nli/one2one-correspondence/anli_with_csk/" processor = AnliWithCSKProcessor() examples = processor.get_train_examples(dir) tokenizer =...
{"/examples/run_classifier.py": ["/pytorch_pretrained_bert/file_utils.py"], "/examples/test_data_processor.py": ["/examples/run_classifier.py"]}
1,391
RoboBrainCode/Backend
refs/heads/master
/feed/views.py
from django.http import HttpResponse from feed.models import BrainFeeds, ViewerFeed, GraphFeedback import json import numpy as np from django.core import serializers import dateutil.parser from django.views.decorators.csrf import ensure_csrf_cookie from django.db.transaction import commit_on_success # This is a tempor...
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,392
RoboBrainCode/Backend
refs/heads/master
/rest_api/serializer.py
from django.forms import widgets from rest_framework import serializers from feed.models import JsonFeeds from djangotoolbox.fields import ListField import drf_compound_fields.fields as drf from datetime import datetime class TagFieldS(serializers.Serializer): media = serializers.CharField(required=False) c...
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,393
RoboBrainCode/Backend
refs/heads/master
/auth/auth.py
from django.http import HttpResponse import json from django.contrib.auth.models import User from django.views.decorators.csrf import ensure_csrf_cookie from django import forms from django.contrib.auth import login, logout from django.contrib.auth import authenticate from base64 import b64decode @ensure_csrf_cookie ...
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,394
RoboBrainCode/Backend
refs/heads/master
/UpdateViewerFeeds/updateViewerFeed.py
import ConfigParser import pymongo as pm from datetime import datetime import numpy as np import importlib import sys sys.path.insert(0,'/var/www/Backend/Backend/') def readConfigFile(): """ Reading the setting file to use. Different setting files are used on Production and Test robo brain """...
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,395
RoboBrainCode/Backend
refs/heads/master
/rest_api/views.py
# Create your views here. from rest_framework import status from rest_framework.decorators import api_view from rest_framework.response import Response from feed.models import JsonFeeds from rest_api.serializer import FeedSerializer from datetime import datetime from rest_framework import permissions @api_view(['...
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,396
RoboBrainCode/Backend
refs/heads/master
/feed/models.py
from django.db import models from djangotoolbox.fields import ListField from datetime import datetime from django.db.models.signals import post_save from queue_util import add_feed_to_queue #from feed.models import BrainFeeds class GraphFeedback(models.Model): id_node = models.TextField() feedback_type = model...
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,397
RoboBrainCode/Backend
refs/heads/master
/feed/urls.py
from django.conf.urls import patterns, url from feed import views urlpatterns = patterns('', url(r'most_recent/', views.return_top_k_feeds, name='most_recent'), url(r'infinite_scroll/', views.infinite_scrolling, name='infinite_scrolling'), url(r'filter/', views.filter_feeds_with_hashtags, name='filter'), ...
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,398
RoboBrainCode/Backend
refs/heads/master
/auth/urls.py
from django.conf.urls import patterns, url import auth urlpatterns = patterns('', url(r'create_user/', auth.create_user_rb, name='create_user'), url(r'login/', auth.login_rb, name='login'), url(r'logout/', auth.logout_rb, name='logout') )
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,399
RoboBrainCode/Backend
refs/heads/master
/fabfile.py
from __future__ import with_statement from fabric.api import cd, env, local, settings, run, sudo from fabric.colors import green, red from fabric.contrib.console import confirm def prod_deploy(user='ubuntu'): print(red('Deploying to production at robobrain.me...')) if not confirm('Are you sure you want to deploy t...
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,400
RoboBrainCode/Backend
refs/heads/master
/rest_api/urls.py
from django.conf.urls import patterns, url from rest_framework.urlpatterns import format_suffix_patterns urlpatterns = patterns('rest_api.views', url(r'^feeds/$', 'feed_list'), #url(r'^snippets/(?P<pk>[0-9]+)$', 'snippet_detail'), ) urlpatterns = format_suffix_patterns(urlpatterns)
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,401
RoboBrainCode/Backend
refs/heads/master
/feed/queue_util.py
#!/usr/bin/python import boto import json import traceback from boto.sqs.message import RawMessage from bson import json_util conn = boto.sqs.connect_to_region( "us-west-2", aws_access_key_id='AKIAIDKZIEN24AUR7CJA', aws_secret_access_key='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') feed_queue = conn.cre...
{"/feed/views.py": ["/feed/models.py"], "/rest_api/serializer.py": ["/feed/models.py"], "/rest_api/views.py": ["/feed/models.py", "/rest_api/serializer.py"]}
1,410
thevaccinetracker/data_engine
refs/heads/master
/web_scrap/raps_org.py
from settings import GOOGLE_DRIVER, DATA_PATH import time def WebScrap(): print("Raps webscrap: Started...") driver = GOOGLE_DRIVER driver.get('https://www.raps.org/news-and-articles/news-articles/2020/3/covid-19-vaccine-tracker') table = driver.find_element_by_id("vax_wrapper") table.find_eleme...
{"/web_scrap/raps_org.py": ["/settings.py"], "/web_scrap/airtable_com.py": ["/settings.py"], "/web_scrap/who_int.py": ["/settings.py"], "/main_exce.py": ["/googleDb.py"], "/googleDb.py": ["/settings.py", "/get_cosine/get_cosine.py"], "/preprocess_data/airtable.py": ["/settings.py"], "/preprocess_data/pdf_read_table.py"...
1,411
thevaccinetracker/data_engine
refs/heads/master
/web_scrap/airtable_com.py
import time from settings import GOOGLE_DRIVER def WebScrap(): print("Airtable webscrap: Started...") driver = GOOGLE_DRIVER driver.get('https://airtable.com/shrSAi6t5WFwqo3GM/tblEzPQS5fnc0FHYR/viweyymxOAtNvo7yH?blocks=bipZFzhJ7wHPv7x9z') table = driver.find_element_by_id("table") table.find_el...
{"/web_scrap/raps_org.py": ["/settings.py"], "/web_scrap/airtable_com.py": ["/settings.py"], "/web_scrap/who_int.py": ["/settings.py"], "/main_exce.py": ["/googleDb.py"], "/googleDb.py": ["/settings.py", "/get_cosine/get_cosine.py"], "/preprocess_data/airtable.py": ["/settings.py"], "/preprocess_data/pdf_read_table.py"...
1,412
thevaccinetracker/data_engine
refs/heads/master
/web_scrap/who_int.py
from settings import GOOGLE_DRIVER, DATA_PATH import time def WebScrap(): print("WHO webscrap: Started...") driver = GOOGLE_DRIVER driver.get('https://www.who.int/publications/m/item/draft-landscape-of-covid-19-candidate-vaccines') body = driver.find_element_by_tag_name("body") body.find_elemen...
{"/web_scrap/raps_org.py": ["/settings.py"], "/web_scrap/airtable_com.py": ["/settings.py"], "/web_scrap/who_int.py": ["/settings.py"], "/main_exce.py": ["/googleDb.py"], "/googleDb.py": ["/settings.py", "/get_cosine/get_cosine.py"], "/preprocess_data/airtable.py": ["/settings.py"], "/preprocess_data/pdf_read_table.py"...
1,413
thevaccinetracker/data_engine
refs/heads/master
/main_exce.py
from web_scrap import airtable_com, raps_org, who_int import time airtable_com.WebScrap() raps_org.WebScrap() who_int.WebScrap() print("Sleep for 1 min") time.sleep(60 * 1) from preprocess_data import pdf_read_table,airtable pdf_read_table.TransformPDFData() airtable.PreProcessAirtableData() print("Sleep for 1 min...
{"/web_scrap/raps_org.py": ["/settings.py"], "/web_scrap/airtable_com.py": ["/settings.py"], "/web_scrap/who_int.py": ["/settings.py"], "/main_exce.py": ["/googleDb.py"], "/googleDb.py": ["/settings.py", "/get_cosine/get_cosine.py"], "/preprocess_data/airtable.py": ["/settings.py"], "/preprocess_data/pdf_read_table.py"...
1,414
thevaccinetracker/data_engine
refs/heads/master
/googleDb.py
import gspread from oauth2client.service_account import ServiceAccountCredentials import time from settings import GSHEET_CRED_FILE, GSHEET_SCOPE, GSHEET_FILE, GSHEET_WORKSHEET from settings import WHO_INPUT_DATA, RAPS_INPUT_DATA, AIRTABLE_INPUT_DATA from settings import VT_CORPS import get_cosine.get_cosine # use c...
{"/web_scrap/raps_org.py": ["/settings.py"], "/web_scrap/airtable_com.py": ["/settings.py"], "/web_scrap/who_int.py": ["/settings.py"], "/main_exce.py": ["/googleDb.py"], "/googleDb.py": ["/settings.py", "/get_cosine/get_cosine.py"], "/preprocess_data/airtable.py": ["/settings.py"], "/preprocess_data/pdf_read_table.py"...
1,415
thevaccinetracker/data_engine
refs/heads/master
/settings.py
import sys sys.path.append(r'C:\Users\v-shvi\Desktop\Personal\VT\data_engine') sys.path.append(r'C:\Users\v-shvi\Desktop\Personal\VT\data_engine\web_scrap_data') sys.path.append(r'C:\Users\v-shvi\Desktop\Personal\VT\data_engine\get_cosine') sys.path.append(r'C:\Users\v-shvi\Desktop\Personal\VT\data_engine\preprocess_d...
{"/web_scrap/raps_org.py": ["/settings.py"], "/web_scrap/airtable_com.py": ["/settings.py"], "/web_scrap/who_int.py": ["/settings.py"], "/main_exce.py": ["/googleDb.py"], "/googleDb.py": ["/settings.py", "/get_cosine/get_cosine.py"], "/preprocess_data/airtable.py": ["/settings.py"], "/preprocess_data/pdf_read_table.py"...
1,416
thevaccinetracker/data_engine
refs/heads/master
/preprocess_data/airtable.py
from settings import DATA_PATH import csv def parseRowToCell(row): isSingleWord = False; word = "" rowArray = [] for letter in row: if letter == "\"" and not isSingleWord: isSingleWord = True elif letter == "\"" and isSingleWord: isSingleWord = False eli...
{"/web_scrap/raps_org.py": ["/settings.py"], "/web_scrap/airtable_com.py": ["/settings.py"], "/web_scrap/who_int.py": ["/settings.py"], "/main_exce.py": ["/googleDb.py"], "/googleDb.py": ["/settings.py", "/get_cosine/get_cosine.py"], "/preprocess_data/airtable.py": ["/settings.py"], "/preprocess_data/pdf_read_table.py"...
1,417
thevaccinetracker/data_engine
refs/heads/master
/preprocess_data/pdf_read_table.py
import tabula from settings import DATA_PATH file = DATA_PATH + "/novel-coronavirus-landscape-covid-19-(1).pdf" tabula.convert_into(file, DATA_PATH + "/who_covid_data.csv", output_format="csv", pages='all') import csv file_CSV = open(DATA_PATH + '/who_covid_data.csv') data_CSV = csv.reader(file_CSV) list_CSV = list(...
{"/web_scrap/raps_org.py": ["/settings.py"], "/web_scrap/airtable_com.py": ["/settings.py"], "/web_scrap/who_int.py": ["/settings.py"], "/main_exce.py": ["/googleDb.py"], "/googleDb.py": ["/settings.py", "/get_cosine/get_cosine.py"], "/preprocess_data/airtable.py": ["/settings.py"], "/preprocess_data/pdf_read_table.py"...
1,418
thevaccinetracker/data_engine
refs/heads/master
/test.py
statement = """"Institute of Medical Biology, Chinese Academy of Medical Sciences",Vaccine,Inactivated virus,Phase II,Phase II began June 2020,Inactivated,NCT04412538,Unknown,,,N/A,https://docs.google.com/document/d/1Y4nCJJ4njzD1wiHbufCY6gqfRmj49Qn_qNgOJD62Wik/edit,6/23/2020""" def parseRowToCell(row): isSingleWo...
{"/web_scrap/raps_org.py": ["/settings.py"], "/web_scrap/airtable_com.py": ["/settings.py"], "/web_scrap/who_int.py": ["/settings.py"], "/main_exce.py": ["/googleDb.py"], "/googleDb.py": ["/settings.py", "/get_cosine/get_cosine.py"], "/preprocess_data/airtable.py": ["/settings.py"], "/preprocess_data/pdf_read_table.py"...
1,419
thevaccinetracker/data_engine
refs/heads/master
/get_cosine/get_cosine.py
import string from sklearn.metrics.pairwise import cosine_similarity from sklearn.feature_extraction.text import CountVectorizer from nltk.corpus import stopwords from settings import STOPWORDS stopwords = stopwords.words(STOPWORDS) def cosine_sim_vectors(vec1, vec2): vec1 = vec1.reshape(1, -1) vec2 = vec2....
{"/web_scrap/raps_org.py": ["/settings.py"], "/web_scrap/airtable_com.py": ["/settings.py"], "/web_scrap/who_int.py": ["/settings.py"], "/main_exce.py": ["/googleDb.py"], "/googleDb.py": ["/settings.py", "/get_cosine/get_cosine.py"], "/preprocess_data/airtable.py": ["/settings.py"], "/preprocess_data/pdf_read_table.py"...
1,432
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/test.py
import torch import numpy as np import os l = [{'test': 0, 'test2': 1}, {'test': 3, 'test2': 4}] print(l) for i, j in enumerate(l): print(i) print(l)
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,433
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/dataprep/processing.py
import os, shutil, gc from argparse import ArgumentParser from time import sleep import h5py import numpy as np import scipy as sp from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D from scipy import io, signal from scipy.signal.windows import nuttall, taylor from .util import * def proc(ar...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,434
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/dataprep/truth.py
import os # import shutil, time, pickle # from argparse import ArgumentParser # import matplotlib import matplotlib.patches as patches from matplotlib import pyplot as plt # from matplotlib import rc import numpy as np from sklearn.cluster import DBSCAN # from .channel_extraction import ChannelExtraction from .util i...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,435
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/dataprep/channel_extraction.py
import h5py import numpy as np import os, shutil def chext(args): rawpath = f'raw/{args.pathin}' savepath = f'dataset/{args.pathout}/chext' if args.pathout else f'dataset/{args.pathin}/chext' print(f'[LOG] ChExt | Starting: {args.pathin}') # Create the subsequent save folders # if os.path.isdir(sa...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,436
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/dataprep/util.py
import os import shutil from dataclasses import dataclass, field from typing import List import h5py import matplotlib.patches as patches import matplotlib.pyplot as plt import numpy as np import pandas as pd @dataclass class Cluster: # cluster object, contains detected cluster points and additional ...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,437
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/dataprep/__init__.py
import argparse import sys, gc from .channel_extraction import chext from .processing import proc from .truth import truth def parse_arg(): parser = argparse.ArgumentParser(description='Data preprocessing module', add_help=True) parser.add_argument('--pathin', type=str, required=True, help="Path for ...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,438
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/yolo/predict.py
import torch # import torch.nn as nn # import torch.nn.functional as F # import torch.optim as optim # import torchvision import torchvision.transforms as transforms import os, sys # import pickle, time, random import numpy as np # from PIL import Image import argparse from .darknet import DarkNet from .dataset imp...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,439
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/yolo/util.py
from __future__ import division import torch import os from operator import itemgetter import numpy as np import cv2 from PIL import Image, ImageDraw import matplotlib.pyplot as plt def draw_prediction(img_path, prediction, target, reso, names, pathout, savename): """Draw prediction result Args - img_pat...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,440
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/yolo/darknet.py
from __future__ import division import torch, torch.nn as nn, torch.nn.functional as F # from torch.autograd import Variable import numpy as np # import cv2 # from pprint import pprint from .util import * # ================================================================= # MAXPOOL (with stride = 1, NOT SURE IF NEE...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,441
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/__main__.py
import argparse import sys import yolo import dataprep def parse_arg(): parser = argparse.ArgumentParser(description='mmWave YOLOv3', add_help=True, usage='''python . <action> [<args>] Actions: train Network training module predict Object detection module ...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,442
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/yolo/dataset.py
import torch import torch.utils.data from torch.utils.data.dataloader import default_collate # from torchvision import transforms import os # import random import numpy as np from PIL import Image # anchors_wh = np.array([[10, 13], [16, 30], [33, 23], [30, 61], [62, 45], # [59, 119], [116, 90],...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,443
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/yolo/__init__.py
import gc from .train import train from .predict import predict def main(args): gc.collect() if args.Action == 'train': train() elif args.Action == 'predict': predict() gc.collect()
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,444
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/yolo/train.py
import torch import torch.nn as nn # import torch.nn.functional as F import torch.optim as optim # import torchvision import torchvision.transforms as transforms # import os, pickle, random import time, sys import numpy as np # from PIL import Image import argparse from .darknet import DarkNet from .dataset import *...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,445
enverbashirov/YOLOv3-mMwave-Radar
refs/heads/master
/dataprep/kalman_tracker.py
import matplotlib.animation as animation import numpy as np import scipy as sp from matplotlib import pyplot as plt class KalmanTracker: def __init__(self, id_, s0=None, disable_rejection_check=False): # Filter-related parameters self.dt = 66.667e-3 # T_int of the radar TX # s...
{"/dataprep/processing.py": ["/dataprep/util.py"], "/dataprep/truth.py": ["/dataprep/util.py", "/dataprep/kalman_tracker.py"], "/dataprep/__init__.py": ["/dataprep/channel_extraction.py", "/dataprep/processing.py", "/dataprep/truth.py"], "/yolo/predict.py": ["/yolo/darknet.py", "/yolo/dataset.py", "/yolo/util.py"], "/y...
1,446
scissorhands/pynal
refs/heads/master
/index.py
from __future__ import print_function import json from etl import Etl def lambda_connect(event, context): etl = Etl() etl.retrieve_all_stats() return 'pickle rick' if __name__ == '__main__': lambda_connect(None, None)
{"/index.py": ["/etl.py"], "/etl.py": ["/requester.py", "/dbconnector.py"], "/index_microservice.py": ["/requester.py"]}
1,447
scissorhands/pynal
refs/heads/master
/requester.py
import analytics as service class Requester: def __init__(self): self.analytics = service.initialize_analyticsreporting() self.general_stats_metrics = [ {'expression': 'ga:sessions'}, {'expression': 'ga:pageViews'}, {'expression': 'ga:avgTimeOnPage'}, {'expression': 'ga:exits'}, {'expression': 'ga:...
{"/index.py": ["/etl.py"], "/etl.py": ["/requester.py", "/dbconnector.py"], "/index_microservice.py": ["/requester.py"]}
1,448
scissorhands/pynal
refs/heads/master
/dbconnector.py
import dbconfig import mysql.connector as _connector from mysql.connector import errorcode as dberror class Connector: def __init__(self): self.cnx = self.cur = None try: self.cnx = _connector.connect(**dbconfig.config) except _connector.Error as e: if(e.errno == dberror.ER_ACCESS_DENIED_ERROR): prin...
{"/index.py": ["/etl.py"], "/etl.py": ["/requester.py", "/dbconnector.py"], "/index_microservice.py": ["/requester.py"]}
1,449
scissorhands/pynal
refs/heads/master
/etl.py
from requester import Requester from dbconnector import Connector import json import datetime as dt class Etl: def __init__(self): self.req = Requester() self.connector = Connector() def get_report_dictionary(self, report): columnHeader = report.get('columnHeader', {}) return { 'columnHeader': columnHea...
{"/index.py": ["/etl.py"], "/etl.py": ["/requester.py", "/dbconnector.py"], "/index_microservice.py": ["/requester.py"]}
1,450
scissorhands/pynal
refs/heads/master
/index_microservice.py
from requester import Requester import json req = Requester() localTest = False print('Loading function') def respond(err, res=None): return { 'statusCode': '400' if err else '200', 'body': err.message if err else json.dumps(res), 'headers': { 'Content-Type': 'application/json...
{"/index.py": ["/etl.py"], "/etl.py": ["/requester.py", "/dbconnector.py"], "/index_microservice.py": ["/requester.py"]}
1,472
jessehylton/Podrum
refs/heads/master
/src/podrum/network/protocol/ServerToClientHandshakePacket.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,473
jessehylton/Podrum
refs/heads/master
/src/podrum/math/Facing.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,474
jessehylton/Podrum
refs/heads/master
/src/podrum/network/protocol/ClientToServerHandshakePacket.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,475
jessehylton/Podrum
refs/heads/master
/src/podrum/Podrum.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Pub...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,476
jessehylton/Podrum
refs/heads/master
/src/podrum/network/PacketPool.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,477
jessehylton/Podrum
refs/heads/master
/src/podrum/utils/Utils.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU L...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,478
jessehylton/Podrum
refs/heads/master
/src/podrum/utils/BinaryStream.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,479
jessehylton/Podrum
refs/heads/master
/src/podrum/utils/Binary.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,480
jessehylton/Podrum
refs/heads/master
/src/podrum/wizard/Parser.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of t...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,481
jessehylton/Podrum
refs/heads/master
/src/podrum/nbt/tag/NamedTag.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,482
jessehylton/Podrum
refs/heads/master
/src/podrum/utils/UUID.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,483
jessehylton/Podrum
refs/heads/master
/src/podrum/network/protocol/ResourcePacksInfoPacket.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,484
jessehylton/Podrum
refs/heads/master
/src/podrum/Server.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Pub...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,485
jessehylton/Podrum
refs/heads/master
/src/podrum/resourcepacks/ResourcePack.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,486
jessehylton/Podrum
refs/heads/master
/src/podrum/Player.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,487
jessehylton/Podrum
refs/heads/master
/src/podrum/nbt/NBT.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,488
jessehylton/Podrum
refs/heads/master
/src/podrum/utils/bcmath.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,489
jessehylton/Podrum
refs/heads/master
/src/podrum/utils/Config.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU L...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,490
jessehylton/Podrum
refs/heads/master
/src/podrum/network/protocol/DisconnectPacket.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,491
jessehylton/Podrum
refs/heads/master
/src/podrum/command/Command.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lice...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}
1,492
jessehylton/Podrum
refs/heads/master
/src/podrum/utils/Logger.py
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU L...
{"/src/podrum/utils/Binary.py": ["/src/podrum/utils/bcmath.py"]}