index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
14,616
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/tests/test_expiretiles.py
import os from typing import Tuple import psycopg2 import pytest from testfixtures import LogCapture from tilecloud_chain import expiretiles from tilecloud_chain.tests import CompareCase, MatchRegex class TestExpireTiles(CompareCase): def setUp(self) -> None: # noqa self.maxDiff = None @classmetho...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,617
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/__init__.py
import collections import json import logging import logging.config import math import os import pathlib import pkgutil import queue import re import sqlite3 import subprocess # nosec import sys import tempfile import threading import time from argparse import ArgumentParser, Namespace from concurrent.futures import T...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,618
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/tests/test_generate.py
import os import shutil from itertools import product, repeat from typing import List, Tuple import pytest from testfixtures import LogCapture from tilecloud.store.redis import RedisTileStore from tilecloud_chain import controller, generate from tilecloud_chain.tests import CompareCase class TestGenerate(CompareCas...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,619
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/tests/test_serve.py
import os import shutil import pytest from pyramid.httpexceptions import HTTPBadRequest, HTTPNoContent from pyramid.testing import DummyRequest from testfixtures import LogCapture from tilecloud_chain import controller, generate, server from tilecloud_chain.server import PyramidView, app_factory from tilecloud_chain....
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,620
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/internal_mapcache.py
import collections import contextlib import datetime import json import logging import os import struct import sys import threading from typing import TYPE_CHECKING, Any, Dict, Iterator, Optional, TypeVar, cast import redis.sentinel import tilecloud_chain.configuration from tilecloud import Tile, TileCoord, TileStore...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,621
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/timedtilestore.py
import time from typing import Any, Iterable, Iterator, Optional, TypeVar, cast from prometheus_client import Summary from tilecloud import BoundingPyramid, Tile, TileStore _OPTIONAL_TILE_OR_NOT = TypeVar("_OPTIONAL_TILE_OR_NOT", Optional[Tile], Tile) _TILESTORE_OPERATION_SUMMARY = Summary( "tilecloud_chain_til...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,622
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/security.py
import os from typing import Optional, Union import c2cwsgiutils.auth import pyramid.request from c2cwsgiutils.auth import AuthConfig from pyramid.security import Allowed, Denied class User: """The user definition.""" login: Optional[str] name: Optional[str] url: Optional[str] is_auth: bool ...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,623
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/tests/test_cost.py
import os from tilecloud_chain import cost from tilecloud_chain.tests import CompareCase class TestCost(CompareCase): def setUp(self) -> None: # noqa self.maxDiff = None @classmethod def setUpClass(cls): # noqa os.chdir(os.path.dirname(__file__)) @classmethod def tearDownClass...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,624
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/cost.py
import logging import sys from argparse import ArgumentParser, Namespace from datetime import timedelta from typing import Iterable, Iterator, Optional, Tuple from tilecloud import Tile, TileStore from tilecloud_chain import Run, TileGeneration, add_common_options from tilecloud_chain.format import duration_format lo...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,625
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/tests/test_copy.py
import os import shutil import requests from tilecloud_chain import copy_ from tilecloud_chain.tests import CompareCase class TestGenerate(CompareCase): def setUp(self) -> None: # noqa self.maxDiff = None @classmethod def setUpClass(cls): # noqa os.chdir(os.path.dirname(__file__)) ...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,626
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/generate.py
import logging import os import random import socket import sys import threading from argparse import ArgumentParser, Namespace from datetime import datetime from getpass import getuser from typing import IO, Callable, List, Optional, cast import boto3 import prometheus_client import tilecloud.filter.error import til...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,627
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/mapnik_.py
import logging from typing import Any, Callable, List, Optional from tilecloud import Tile, TileStore from tilecloud.store.mapnik_ import MapnikTileStore logger = logging.getLogger(__name__) class MapnikDropActionTileStore(MapnikTileStore): """MapnikTileStore with drop action if the generated tile is empty.""" ...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,628
camptocamp/tilecloud-chain
refs/heads/master
/tilecloud_chain/tests/test_error.py
import os from testfixtures import LogCapture from tilecloud_chain import controller, generate from tilecloud_chain.tests import CompareCase class TestError(CompareCase): def setUp(self) -> None: # noqa self.maxDiff = None @classmethod def setUpClass(cls): # noqa os.chdir(os.path.dirn...
{"/tilecloud_chain/copy_.py": ["/tilecloud_chain/__init__.py", "/tilecloud_chain/format.py"], "/tilecloud_chain/controller.py": ["/tilecloud_chain/__init__.py"], "/tilecloud_chain/views/admin.py": ["/tilecloud_chain/server.py", "/tilecloud_chain/__init__.py", "/tilecloud_chain/controller.py"], "/tilecloud_chain/server....
14,650
sanj909/CollectiWise
refs/heads/main
/trainPlayground.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import pywt import time import os import tensorflow as tf #Importing stock data import yfinance as yf from datetime import date,datetime,timedelta ticker = '^GSPC' first_day = datetime(2000, 1, 3) last_day = datetime(2019, 7, 1) data = yf.Ticker(t...
{"/trainPlayground.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/lstm_train_single.py": ["/dataUtils.py", "/waveletDenoising.py", "/models.py"], "/GAN/GANmodel.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/wdDemo.py": ["/waveletDenoising.py"]}
14,651
sanj909/CollectiWise
refs/heads/main
/models.py
import tensorflow as tf import tensorflow.keras.layers as layers import keras as og_keras from keras_self_attention import SeqSelfAttention # pip install keras_self_attention def build_basic_lstm_model(lstm_input_dim, lstm_output_dim, dense_output_dim, return_sequences): model = tf.keras.models.Sequential() mo...
{"/trainPlayground.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/lstm_train_single.py": ["/dataUtils.py", "/waveletDenoising.py", "/models.py"], "/GAN/GANmodel.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/wdDemo.py": ["/waveletDenoising.py"]}
14,652
sanj909/CollectiWise
refs/heads/main
/dataUtils.py
import numpy as np from sklearn.preprocessing import StandardScaler def split_df_by_asset(df, drop_label_column = True, num_columns_per_asset = 3): if(drop_label_column): df = df.drop(columns = ['label']) asset_dfs = [] for i in range(0, len(df.columns), num_columns_per_asset): asset_dfs.ap...
{"/trainPlayground.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/lstm_train_single.py": ["/dataUtils.py", "/waveletDenoising.py", "/models.py"], "/GAN/GANmodel.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/wdDemo.py": ["/waveletDenoising.py"]}
14,653
sanj909/CollectiWise
refs/heads/main
/lstm_train_single.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import pywt import time import os import tensorflow as tf import argparse from dataUtils import * from waveletDenoising import * from models import * """ RESULTS WE NEED: 1. single asset result: lstm vs wlstm vs wlstm+a 2. one model trained on all...
{"/trainPlayground.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/lstm_train_single.py": ["/dataUtils.py", "/waveletDenoising.py", "/models.py"], "/GAN/GANmodel.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/wdDemo.py": ["/waveletDenoising.py"]}
14,654
sanj909/CollectiWise
refs/heads/main
/GAN/GANmodel.py
import tensorflow as tf import tensorflow.keras.layers as layers import keras as og_keras from keras_self_attention import SeqSelfAttention import pandas as pd import numpy as np import matplotlib.pyplot as plt #BTC.csv data = pd.read_csv('/Users/Sanjit/Google Drive/CollectiWise/Data/BTC.csv').drop(columns=['open', '...
{"/trainPlayground.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/lstm_train_single.py": ["/dataUtils.py", "/waveletDenoising.py", "/models.py"], "/GAN/GANmodel.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/wdDemo.py": ["/waveletDenoising.py"]}
14,655
sanj909/CollectiWise
refs/heads/main
/querying_data.py
import pandas as pd import numpy as np import json from google.cloud import bigquery class SQL: def __init__(self, project = 'development-302415', dataset = 'machine_learning'): self.project = project self.client = bigquery.Client(project = self.project) self.dataset = self.client.dataset(...
{"/trainPlayground.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/lstm_train_single.py": ["/dataUtils.py", "/waveletDenoising.py", "/models.py"], "/GAN/GANmodel.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/wdDemo.py": ["/waveletDenoising.py"]}
14,656
sanj909/CollectiWise
refs/heads/main
/wdDemo.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import pywt ''' #Importing stock data import yfinance as yf from datetime import date,datetime,timedelta ticker = '^GSPC' first_day = datetime(2000, 1, 3) last_day = datetime(2019, 7, 1) data = yf.Ticker(ticker).history(interval = '1d', start=fi...
{"/trainPlayground.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/lstm_train_single.py": ["/dataUtils.py", "/waveletDenoising.py", "/models.py"], "/GAN/GANmodel.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/wdDemo.py": ["/waveletDenoising.py"]}
14,657
sanj909/CollectiWise
refs/heads/main
/waveletDenoising.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import pywt #after running pip install PyWavelets (https://github.com/PyWavelets/pywt, https://pywavelets.readthedocs.io/en/latest/) from sklearn.preprocessing import StandardScaler from skimage.restoration import denoise_wavelet ''' The denoising...
{"/trainPlayground.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/lstm_train_single.py": ["/dataUtils.py", "/waveletDenoising.py", "/models.py"], "/GAN/GANmodel.py": ["/models.py", "/dataUtils.py", "/waveletDenoising.py"], "/wdDemo.py": ["/waveletDenoising.py"]}
14,669
sathyainfotech/CRUD-SQLite-Tkinter
refs/heads/main
/Sqlite.py
from tkinter import * from tkinter import ttk from tkinter import messagebox from database import * db=Database("SqliteDatabase.db") window=Tk() window.title("SQLite") window.geometry("1920x1080") name=StringVar() age=StringVar() gender=StringVar() address=StringVar() contact=StringVar() mail=StringVar() frame1=Fra...
{"/Sqlite.py": ["/database.py"]}
14,670
sathyainfotech/CRUD-SQLite-Tkinter
refs/heads/main
/database.py
import sqlite3 class Database: def __init__(self,db): self.con = sqlite3.connect(db) self.c=self.con.cursor() self.c.execute(""" CREATE TABLE IF NOT EXISTS datas( pid INTEGER PRIMARY KEY, name TEXT NOT NULL, ...
{"/Sqlite.py": ["/database.py"]}
14,681
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/server.py
from flask import Flask, redirect, render_template, jsonify from collections import OrderedDict from .main import InfraScraper import logging logger = logging.getLogger(__name__) app = Flask(__name__, static_folder='./assets/static') @app.route('/') def index(): scraper = InfraScraper() config = scraper....
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,682
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/storage/base.py
import logging logger = logging.getLogger(__name__) class BaseStorage(object): def __init__(self, **kwargs): self.name = kwargs.get('name') self.last_timestamp = None def save_data(self, name, data): raise NotImplementedError def load_data(self, name): raise NotImpleme...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,683
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/utils.py
import os import re import json import yaml import logging _schema_dir = os.path.join( os.path.dirname(os.path.realpath(__file__)), 'schema') def setup_logger(name): msg_format = '%(asctime)s [%(levelname)s] [%(module)s] %(message)s' formatter = logging.Formatter(fmt=msg_format) handler = logging.S...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,684
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/exceptions.py
class InfraScraperException(Exception): """Something went wrong with parsing infra scraper."""
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,685
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/input/openstack.py
# -*- coding: utf-8 -*- import os import yaml import tempfile import os_client_config from os_client_config import cloud_config from heatclient.exc import HTTPBadRequest from infra_scraper.input.base import BaseInput from infra_scraper.utils import setup_logger logger = setup_logger('input.openstack') class OpenSta...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,686
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/tests/test_main.py
import pytest import json import os from infra_scraper.main import _get_module modules_file = os.path.join( os.path.dirname(os.path.realpath('{}/..'.format(__file__))), 'constructors.json') with open(modules_file) as fileneco: modules_dict = json.loads(fileneco.read()) modules_list = [] for module_label,...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,687
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/storage/neo4j.py
from .base import BaseStorage import os import glob import yaml import logging from infra_scraper.utils import to_camel_case, ClassRegistry from neomodel import config, StructuredNode, StringProperty, IntegerProperty, JSONProperty from neomodel.match import OUTGOING, INCOMING, EITHER from neomodel.relationship_manag...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,688
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/input/amazon.py
# -*- coding: utf-8 -*- import boto3 from infra_scraper.input.base import BaseInput from infra_scraper.utils import setup_logger logger = setup_logger('input.aws') class AmazonWebServicesInput(BaseInput): def __init__(self, **kwargs): self.kind = 'aws' self.scope = kwargs.get('scope', 'local') ...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,689
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/output/raw.py
import logging from .base import BaseOutput logger = logging.getLogger(__name__) class RawOutput(BaseOutput): def __init__(self, **kwargs): super(RawOutput, self).__init__(**kwargs) def transform_data(self, data): resources = {} for resource_name, resource_data in data['resources'...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,690
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/input/terraform.py
# -*- coding: utf-8 -*- import io import python_terraform from pydot import graph_from_dot_data from infra_scraper.input.base import BaseInput from infra_scraper.utils import setup_logger logger = setup_logger('input.terraform') relation_mapping = { 'tf_openstack_compute_instance_v2-tf_openstack_compute_keypair_...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,691
slimakcz/infra-scraper
refs/heads/master
/setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages VERSION = '0.4' with open('README.rst') as readme: LONG_DESCRIPTION = ''.join(readme.readlines()) DESCRIPTION = """Infrastrucutre metadata scraper with support for multiple resource providers and tools for relational analysis and visualization....
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,692
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/input/kubernetes.py
# -*- coding: utf-8 -*- import os import yaml import tempfile import pykube from requests.exceptions import HTTPError from infra_scraper.input.base import BaseInput from infra_scraper.utils import setup_logger logger = setup_logger('input.kubernetes') class KubernetesInput(BaseInput): def __init__(self, **kwar...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,693
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/input/saltstack.py
# -*- coding: utf-8 -*- from pepper.libpepper import Pepper from infra_scraper.input.base import BaseInput from infra_scraper.utils import setup_logger logger = setup_logger('input.salt') class SaltStackInput(BaseInput): def __init__(self, **kwargs): self.kind = 'salt' super(SaltStackInput, sel...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,694
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/storage/file.py
from .base import BaseStorage import os import glob import yaml import msgpack import logging logger = logging.getLogger(__name__) class FileStorage(BaseStorage): def __init__(self, **kwargs): super(FileStorage, self).__init__(**kwargs) self.storage_dir = kwargs.get('storage_dir', '/tmp/scraper...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,695
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/storage/etcd.py
from .base import BaseStorage import os import etcd import yaml import logging logger = logging.getLogger(__name__) class EtcdStorage(BaseStorage): def __init__(self, **kwargs): super(EtcdStorage, self).__init__(**kwargs) self.client = etcd.Client( host='127.0.0.1', port=4003) ...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,696
slimakcz/infra-scraper
refs/heads/master
/doc/source/conf.py
# -*- coding: utf-8 -*- import sys import os sys.path.insert(0, os.path.abspath('..')) extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.imgmath', 'sphinx.ext.viewcode', ] templates_path = ['_templat...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,697
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/cli.py
import click import yaml import logging from infra_scraper.main import InfraScraper from infra_scraper.server import run logger = logging.getLogger(__name__) @click.group() def cli(): pass @click.command() @click.argument('name') def scrape(name): scraper = InfraScraper() scraper.scrape_data(name) @...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,698
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/output/base.py
import yaml import json import logging logger = logging.getLogger(__name__) class BaseOutput(object): def __init__(self, **kwargs): pass def get_data(self, data_format='raw', raw_data={}): data = raw_data.copy() if data_format == 'yaml': return self.yaml_output(self.tra...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,699
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/constructors.py
import json import os import threading _json_path = os.path.join( os.path.dirname(os.path.realpath(__file__)), 'constructors.json') _class_mapping = None _class_mapping_lock = threading.Lock() def get_constructor_mapping(): global _class_mapping if _class_mapping is not None: return _class_mappi...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,700
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/output/count.py
from datetime import datetime import logging from .base import BaseOutput logger = logging.getLogger(__name__) class CountOutput(BaseOutput): def __init__(self, **kwargs): super(CountOutput, self).__init__(**kwargs) def transform_data(self, data): resources = {} relations = {} ...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,701
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/input/reclass.py
# -*- coding: utf-8 -*- from infra_scraper.input.saltstack import SaltStackInput from infra_scraper.utils import setup_logger logger = setup_logger('input.reclass') class SaltReclassInput(SaltStackInput): def __init__(self, **kwargs): super(SaltReclassInput, self).__init__(**kwargs) self.kind =...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,702
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/output/vis.py
import logging from .base import BaseOutput from datetime import datetime from infra_scraper.utils import get_node_icon logger = logging.getLogger(__name__) class VisOutput(BaseOutput): def __init__(self, **kwargs): super(VisOutput, self).__init__(**kwargs) def _transform_openstack(self, data): ...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,703
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/input/base.py
import time from infra_scraper.utils import setup_logger, get_graph_schema logger = setup_logger('input.base') class BaseInput(object): def __init__(self, **kwargs): self.name = kwargs['name'] self.config = kwargs['config'] self.resources = {} self.resource_types = {} se...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,704
slimakcz/infra-scraper
refs/heads/master
/infra_scraper/main.py
import os import importlib import time from infra_scraper import constructors from infra_scraper import exceptions from infra_scraper.utils import load_yaml_json_file, setup_logger logger = setup_logger(__name__) config_backend = os.environ.get('INFRA_SCRAPER_CONFIG_BACKEND', 'localf...
{"/infra_scraper/server.py": ["/infra_scraper/main.py"], "/infra_scraper/input/openstack.py": ["/infra_scraper/input/base.py", "/infra_scraper/utils.py"], "/infra_scraper/tests/test_main.py": ["/infra_scraper/main.py"], "/infra_scraper/storage/neo4j.py": ["/infra_scraper/storage/base.py", "/infra_scraper/utils.py"], "/...
14,706
arunpogula/Dvara_project
refs/heads/master
/Taskapp/urls.py
from django.urls import path from .views import Home, sub_category_list urlpatterns = [ path('', Home.as_view(), name="home"), path('ajax/sub_category_list/', sub_category_list, name='sub_category_list'), ]
{"/Taskapp/urls.py": ["/Taskapp/views.py"], "/Taskapp/forms.py": ["/Taskapp/models.py"], "/Taskapp/views.py": ["/Taskapp/forms.py", "/Taskapp/models.py"]}
14,707
arunpogula/Dvara_project
refs/heads/master
/Taskapp/forms.py
from django import forms from .models import Category, SubCategory class UploadFileForm(forms.Form): file = forms.FileField()
{"/Taskapp/urls.py": ["/Taskapp/views.py"], "/Taskapp/forms.py": ["/Taskapp/models.py"], "/Taskapp/views.py": ["/Taskapp/forms.py", "/Taskapp/models.py"]}
14,708
arunpogula/Dvara_project
refs/heads/master
/Taskapp/views.py
from django.shortcuts import render, HttpResponse from django.views import View from .forms import UploadFileForm from .models import * import pandas as pd from django.db import connection from django.conf import settings # Create your views here. def sub_category_list(request): sub_category_list = SubCategory.ob...
{"/Taskapp/urls.py": ["/Taskapp/views.py"], "/Taskapp/forms.py": ["/Taskapp/models.py"], "/Taskapp/views.py": ["/Taskapp/forms.py", "/Taskapp/models.py"]}
14,709
arunpogula/Dvara_project
refs/heads/master
/Taskapp/models.py
from django.db import models # Create your models here. class Category(models.Model): category_name = models.CharField(max_length=50) def __str__(self): return self.category_name class Meta: db_table = "category" class SubCategory(models.Model): cat_id = models.ForeignKey(Category...
{"/Taskapp/urls.py": ["/Taskapp/views.py"], "/Taskapp/forms.py": ["/Taskapp/models.py"], "/Taskapp/views.py": ["/Taskapp/forms.py", "/Taskapp/models.py"]}
14,710
RGunning/Pokemon_Go_API
refs/heads/master
/main.py
import argparse import os import platform from getpass import getpass import dirty import login def get_acces_token(usr, pws, type): access_token = None ltype = None if 'goo' in type: print '[!] Using google as login..' google_data = None if platform.system() == 'Windows': ...
{"/location.py": ["/config.py"]}
14,711
RGunning/Pokemon_Go_API
refs/heads/master
/dirty.py
import time from multiprocessing import Process import api import config import location import logic import main import pokemon_pb2 multi = False argsStored = [] startTime = time.time() accessToken = None globalltype = None def start(): global argsStored while True: if accessT...
{"/location.py": ["/config.py"]}
14,712
RGunning/Pokemon_Go_API
refs/heads/master
/config.py
import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) # urls api_url = 'https://pgorelease.nianticlabs.com/plfe/rpc' login_url = 'https://sso.pokemon.com/sso/oauth2.0/authorize?client_id=mobile-app_pokemon-go&r...
{"/location.py": ["/config.py"]}
14,713
RGunning/Pokemon_Go_API
refs/heads/master
/location.py
import math import struct from math import radians, cos, sin, asin, sqrt from geopy.distance import vincenty from geopy.geocoders import GoogleV3 import config COORDS_LATITUDE = 0 COORDS_LONGITUDE = 0 COORDS_ALTITUDE = 0 FLOAT_LAT = 0 FLOAT_LONG = 0 def get_location_coords(): return (COORDS_LA...
{"/location.py": ["/config.py"]}
14,733
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/services/cashier.py
from datetime import datetime from typing import List from fastapi import Depends, HTTPException, status from sqlalchemy.orm import Session from ..database import tables from ..database.conf_db import get_session from ..models.cashier import ProductListModel, OrderListModel class CashierService: """представлени...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,734
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/models/accountant.py
from .cashier import OrderListModel
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,735
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/services/seller.py
from typing import List from fastapi import Depends, HTTPException, status from sqlalchemy.orm import Session from ..database.conf_db import get_session from ..database import tables from ..models.seller import OrderListModel class SellerService: def __init__(self, session: Session = Depends(get_session)): ...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,736
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/models/cashier.py
from datetime import date from decimal import Decimal from pydantic import BaseModel from . import BaseClassModel class ProductListModel(BaseClassModel): name: str price: Decimal create_product_date: date class OrderListModel(BaseClassModel): id_product: int name_product: str price_order: ...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,737
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/api/accountant.py
from typing import List, Optional from datetime import date, datetime from fastapi import APIRouter, Depends from ..models.accountant import OrderListModel from ..services.accountant import AccountantService router = APIRouter( prefix="/accountant", tags=["Бухгалтер"] ) @router.get("/orders", response_mod...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,738
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/api/cashier.py
from typing import List from fastapi import APIRouter, Depends from ..models.cashier import ProductListModel, CreateOrderModel, OrderListModel, CheckListModel, CreateCheckModel from ..services.cashier import CashierService router = APIRouter( prefix="/cashier", tags=["Кассир"] ) @router.get("/products", r...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,739
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/app.py
# основной файл приложения from fastapi import FastAPI from .api import router tags_metadata = [ { "name": "Кассир", "description": "Добавляет заказ, генерирует счет, закрывает счет и заказ" }, { "name": "Продавец-консультант", "description": "Обрабатывает заказ, меняет ст...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,740
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/services/products.py
from fastapi import Depends from sqlalchemy.orm import Session from ..database import tables from ..database.conf_db import get_session from ..models.products import CreateProductModel class ProductService: def __init__(self, session: Session = Depends(get_session)): self.session = session def creat...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,741
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/api/__init__.py
from fastapi import APIRouter from .cashier import router as cashier_router from .products import router as product_router from .seller import router as seller_router from .accountant import router as accountant_router # корневой роутер router = APIRouter() # подключение роутеров router.include_router(product_route...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,742
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/models/products.py
from decimal import Decimal from pydantic import BaseModel class CreateProductModel(BaseModel): name: str price: Decimal
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,743
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/services/accountant.py
from typing import List, Optional from datetime import date from fastapi import Depends from sqlalchemy.orm import Session from sqlalchemy import and_ from ..database.conf_db import get_session from ..database import tables from ..models.accountant import OrderListModel class AccountantService: def __init__(sel...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,744
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/settings.py
# --- # Конфигурации приложения # --- from pydantic import BaseSettings class Settings(BaseSettings): server_host: str = "127.0.0.1" server_port: int = 8000 # подключение базы данных database_url: str = "sqlite:///db.sqlite3" settings = Settings( # чтение настроек с dotenv _env_file=".env", ...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,745
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/database/tables.py
# --- # описание таблиц базы данных # --- from datetime import datetime from sqlalchemy import Column, Integer, String, Boolean, Numeric, DateTime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.sql import func Base = declarative_base() class ProductDB(Base): """модель товара с бд""" ...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,746
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/models/__init__.py
from pydantic import BaseModel class BaseClassModel(BaseModel): id: int class Config: orm_mode = True
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,747
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/api/seller.py
from typing import List from fastapi import APIRouter, Depends from ..models.seller import OrderListModel from ..services.seller import SellerService router = APIRouter( prefix="/seller", tags=["Продавец-консультант"] ) @router.get("/orders_new", response_model=List[OrderListModel]) def get_orders_status_...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,748
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/models/seller.py
from .cashier import OrderListModel
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,749
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/app.py
from .management_system.app import app
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,750
Rejlentjless/store_order_management_system-heroku
refs/heads/master
/management_system/api/products.py
from fastapi import APIRouter, Depends from ..models.products import CreateProductModel from ..models.cashier import ProductListModel from ..services.products import ProductService router = APIRouter( prefix="/create-product", tags=["Создание товара"] ) @router.post("/", response_model=ProductListModel) def...
{"/management_system/services/cashier.py": ["/management_system/models/cashier.py"], "/management_system/models/accountant.py": ["/management_system/models/cashier.py"], "/management_system/services/seller.py": ["/management_system/models/seller.py"], "/management_system/models/cashier.py": ["/management_system/models/...
14,751
fjcarnevale/studying
refs/heads/master
/Chaper1.py
import sorting def expect_equal(a, b, name): if a == b: print("Pass: " + name) else: print("Fail: " + name) # Question 1.1a def unique_characters(S): chars = {} for c in S: if c in chars: return False chars[c] = True return True # Test 1.1a S = "abcde...
{"/Chaper1.py": ["/sorting.py"]}
14,752
fjcarnevale/studying
refs/heads/master
/sorting.py
def quicksort(A): quicksort_impl(A, 0, len(A) - 1) def quicksort_impl(A, p, r): if p >= r: return pivot = A[r] next_swap = p for i in range(p, r): if A[i] < A[r]: A[next_swap],A[i] = A[i], A[next_swap] next_swap += 1 A[next_swap],A[r] = A[r],...
{"/Chaper1.py": ["/sorting.py"]}
14,753
rageobi/DetectionSystem
refs/heads/master
/densityscan.py
from typing import NamedTuple import math import numpy as np import random count = 0 class Cluster(): def __init__(self, x=None, y=None): global count self.x = x self.y = y self.id = count = count + 1 self.cluster = -2 def __repr__(self): return [self.x], [self...
{"/detectionsystem.py": ["/densityscan.py"]}
14,754
rageobi/DetectionSystem
refs/heads/master
/detectionsystem.py
import argparse import multiprocessing from functools import partial import math from multiprocessing import Pool #from cvlib.object_detection import draw_bbox #import cvlib as cv import glob import cv2 as cv2 import numpy as np import matplotlib.pyplot as plt import random from skimage.feature import hog from scipy.nd...
{"/detectionsystem.py": ["/densityscan.py"]}
14,756
arnoldlayne0/tictactoe
refs/heads/master
/big_board.py
from copy import deepcopy import random # import numpy as np # import pandas as pd from functools import reduce import board class TakenFieldError(Exception): pass class LocalBoardFinishedError(Exception): pass class NotPositiveIntegerError(Exception): pass class BigBoard: def __init__(self, siz...
{"/big_board.py": ["/board.py"], "/mc_big.py": ["/big_board.py"]}
14,757
arnoldlayne0/tictactoe
refs/heads/master
/mc_big.py
import big_board import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns def simulate_n_games(n): cols = ['draw', 'o', 'x'] games_df = pd.DataFrame(0, columns=cols, index=range(n)) for i in range(n): my_board = big_board.BigBoard(3) winner = my_board.pla...
{"/big_board.py": ["/board.py"], "/mc_big.py": ["/big_board.py"]}
14,758
arnoldlayne0/tictactoe
refs/heads/master
/board.py
from copy import deepcopy import random #import numpy as np #import pandas as pd #import matplotlib.pyplot as plt #import seaborn as sns class TakenFieldError(Exception): pass class Board: def __init__(self, size): self.size = size self.board = [['_'] * self.size for i in range(self.size)] ...
{"/big_board.py": ["/board.py"], "/mc_big.py": ["/big_board.py"]}
14,759
nanophyr/osrs_customboard
refs/heads/master
/common.py
from flask import * import os import scrape app = Flask(__name__) @app.route('/') def home(): flash(scrape.getTotal('nanoluck')) return render_template('home.html') if __name__ == '__main__': app.secret_key = os.urandom(24) app.run(debug=True)
{"/common.py": ["/scrape.py"]}
14,760
nanophyr/osrs_customboard
refs/heads/master
/scrape.py
import urllib from bs4 import BeautifulSoup def ripToLines(): # kill all script and style elements for script in soup(["script", "style"]): script.extract() # rip it out text = soup.get_text().splitlines() return text def find_between( s, first, last): try: start = s.index(first...
{"/common.py": ["/scrape.py"]}
14,764
edwinbalani/grov
refs/heads/master
/manual_control.py
""" Demonstrates using custom hillshading in a 3D surface plot. """ from mpl_toolkits.mplot3d import Axes3D from matplotlib import cbook from matplotlib import cm from matplotlib.colors import LightSource import matplotlib.pyplot as plt import numpy as np import matplotlib.animation as animation import time import copy...
{"/friction.py": ["/analysis.py"]}
14,765
edwinbalani/grov
refs/heads/master
/analysis.py
# Copyright 2017 Edwin Bahrami Balani and Qiaochu Jiang # 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/LICENSE-2.0 # Unless required by applicable law or agr...
{"/friction.py": ["/analysis.py"]}
14,766
edwinbalani/grov
refs/heads/master
/util.py
# Copyright 2017 Edwin Bahrami Balani and Qiaochu Jiang # 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/LICENSE-2.0 # Unless required by applicable law or agr...
{"/friction.py": ["/analysis.py"]}
14,767
edwinbalani/grov
refs/heads/master
/autopilot.py
""" Demonstrates using custom hillshading in a 3D surface plot. """ from mpl_toolkits.mplot3d import Axes3D from matplotlib import cbook from matplotlib import cm from matplotlib.colors import LightSource import matplotlib.pyplot as plt import numpy as np import matplotlib.animation as animation import time from math i...
{"/friction.py": ["/analysis.py"]}
14,768
edwinbalani/grov
refs/heads/master
/friction.py
# Copyright 2017 Edwin Bahrami Balani and Qiaochu Jiang # 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/LICENSE-2.0 # Unless required by applicable law or agr...
{"/friction.py": ["/analysis.py"]}
14,772
tingwen0125/L-store-database-management-system
refs/heads/main
/template/index.py
""" A data strucutre holding indices for various columns of a table. Key column should be indexd by default, other columns can be indexed through this object. Indices are usually B-Trees, but other data structures can be used as well. The Index class provides a data structure that allows fast processing of queri...
{"/template/query.py": ["/template/table.py", "/template/index.py"], "/template/db.py": ["/template/table.py"], "/template/table.py": ["/template/index.py", "/template/config.py"]}
14,773
tingwen0125/L-store-database-management-system
refs/heads/main
/template/query.py
from template.table import Table, Record from template.index import Index from template.page import Page, BasePage, PageRange import datetime ''' The Query class provides standard SQL operations such as insert, select, update, delete and sum. The select function returns the specified set of columns from the record with...
{"/template/query.py": ["/template/table.py", "/template/index.py"], "/template/db.py": ["/template/table.py"], "/template/table.py": ["/template/index.py", "/template/config.py"]}
14,774
tingwen0125/L-store-database-management-system
refs/heads/main
/template/db.py
from template.table import Table ''' The Database class is a general interface to the database and handles high-level operations such as starting and shutting down the database instance and loading the database from stored disk files. This class also handles the creation and deletion of tables via the create and...
{"/template/query.py": ["/template/table.py", "/template/index.py"], "/template/db.py": ["/template/table.py"], "/template/table.py": ["/template/index.py", "/template/config.py"]}
14,775
tingwen0125/L-store-database-management-system
refs/heads/main
/template/config.py
# Global Setting for the Database # PageSize, StartRID, etc.. ''' The config.py file is meant to act as centralized storage for all the configuration options and the constant values used in the code. It is good practice to organize such information into a Singleton object accessible from every file in the projec...
{"/template/query.py": ["/template/table.py", "/template/index.py"], "/template/db.py": ["/template/table.py"], "/template/table.py": ["/template/index.py", "/template/config.py"]}
14,776
tingwen0125/L-store-database-management-system
refs/heads/main
/template/table.py
from template.page import PageRange from template.index import Index from template.config import * from time import time INDIRECTION_COLUMN = 0 RID_COLUMN = 1 TIMESTAMP_COLUMN = 2 SCHEMA_ENCODING_COLUMN = 3 ''' The Table class provides the core of our relational storage functionality. All columns are 64...
{"/template/query.py": ["/template/table.py", "/template/index.py"], "/template/db.py": ["/template/table.py"], "/template/table.py": ["/template/index.py", "/template/config.py"]}
14,780
pakalnis92/property_manager
refs/heads/master
/propmanager/forms.py
from django.forms import forms from propmanager.models import Property, Owner class PropertyForm(forms.ModelForm): class Meta: model = Property fields = ('address', 'value', 'location', 'property_type', 'owner') def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) ...
{"/propmanager/forms.py": ["/propmanager/models.py"], "/propmanager/urls.py": ["/propmanager/views.py"], "/propmanager/views.py": ["/propmanager/models.py"], "/propmanager/admin.py": ["/propmanager/models.py"], "/prop_manage/urls.py": ["/propmanager/views.py"]}
14,781
pakalnis92/property_manager
refs/heads/master
/propmanager/urls.py
from django.urls import path from propmanager.views import * from . import views urlpatterns = [ # path('', views.index, name='index'), # path('edit/<int:room_id>/', EditProperty.as_view(), name='show-price_change_data-on-map'), path('properties-list', PropertiesList.as_view(), name='show-price_change_dat...
{"/propmanager/forms.py": ["/propmanager/models.py"], "/propmanager/urls.py": ["/propmanager/views.py"], "/propmanager/views.py": ["/propmanager/models.py"], "/propmanager/admin.py": ["/propmanager/models.py"], "/prop_manage/urls.py": ["/propmanager/views.py"]}
14,782
pakalnis92/property_manager
refs/heads/master
/propmanager/migrations/0001_initial.py
# Generated by Django 2.2.6 on 2019-10-27 11:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Owner', fields=[ ...
{"/propmanager/forms.py": ["/propmanager/models.py"], "/propmanager/urls.py": ["/propmanager/views.py"], "/propmanager/views.py": ["/propmanager/models.py"], "/propmanager/admin.py": ["/propmanager/models.py"], "/prop_manage/urls.py": ["/propmanager/views.py"]}
14,783
pakalnis92/property_manager
refs/heads/master
/propmanager/views.py
from django.http import HttpResponseRedirect from django.shortcuts import render, get_object_or_404 from django.contrib import messages # Create your views here. from django.urls import reverse_lazy, reverse from django.views.generic import TemplateView from propmanager.models import * class PropertiesList(TemplateV...
{"/propmanager/forms.py": ["/propmanager/models.py"], "/propmanager/urls.py": ["/propmanager/views.py"], "/propmanager/views.py": ["/propmanager/models.py"], "/propmanager/admin.py": ["/propmanager/models.py"], "/prop_manage/urls.py": ["/propmanager/views.py"]}
14,784
pakalnis92/property_manager
refs/heads/master
/propmanager/admin.py
from django.contrib import admin from propmanager.models import * # Register your models here. @admin.register(Owner) class OwnerAdmin(admin.ModelAdmin): model = Owner list_display = ('first_name', 'last_name', 'email', 'telephone') @admin.register(PropertyType) class PropertyTypeAdmin(admin.ModelAdmin): ...
{"/propmanager/forms.py": ["/propmanager/models.py"], "/propmanager/urls.py": ["/propmanager/views.py"], "/propmanager/views.py": ["/propmanager/models.py"], "/propmanager/admin.py": ["/propmanager/models.py"], "/prop_manage/urls.py": ["/propmanager/views.py"]}
14,785
pakalnis92/property_manager
refs/heads/master
/propmanager/models.py
from enum import Enum from django.db import models # Create your models here. class Owner(models.Model): first_name = models.CharField(max_length=50, default="N/A") last_name = models.CharField(max_length=50, default="N/A") email = models.CharField(max_length=20, default="N/A") telephone = models.Ch...
{"/propmanager/forms.py": ["/propmanager/models.py"], "/propmanager/urls.py": ["/propmanager/views.py"], "/propmanager/views.py": ["/propmanager/models.py"], "/propmanager/admin.py": ["/propmanager/models.py"], "/prop_manage/urls.py": ["/propmanager/views.py"]}
14,786
pakalnis92/property_manager
refs/heads/master
/prop_manage/urls.py
"""prop_manage URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
{"/propmanager/forms.py": ["/propmanager/models.py"], "/propmanager/urls.py": ["/propmanager/views.py"], "/propmanager/views.py": ["/propmanager/models.py"], "/propmanager/admin.py": ["/propmanager/models.py"], "/prop_manage/urls.py": ["/propmanager/views.py"]}
14,787
pakalnis92/property_manager
refs/heads/master
/propmanager/apps.py
from django.apps import AppConfig class PropmanagerConfig(AppConfig): name = 'propmanager'
{"/propmanager/forms.py": ["/propmanager/models.py"], "/propmanager/urls.py": ["/propmanager/views.py"], "/propmanager/views.py": ["/propmanager/models.py"], "/propmanager/admin.py": ["/propmanager/models.py"], "/prop_manage/urls.py": ["/propmanager/views.py"]}