index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
48,846
D0cWhats0n/Foodrition_app
refs/heads/master
/foodrition_backend/foodrition_api/migrations/0004_food_ndb_no.py
# Generated by Django 2.1.5 on 2019-02-19 19:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('foodrition_api', '0003_foodimage'), ] operations = [ migrations.AddField( model_name='food', name='ndb_no', ...
{"/foodrition_backend/foodrition_api/tests.py": ["/foodrition_backend/foodrition_api/services/ml_model.py"], "/foodrition_backend/foodrition_api/serializers.py": ["/foodrition_backend/foodrition_api/models.py"]}
48,847
D0cWhats0n/Foodrition_app
refs/heads/master
/foodrition_backend/foodrition_api/migrations/0002_auto_20190206_1142.py
# Generated by Django 2.1.5 on 2019-02-06 10:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('foodrition_api', '0001_initial'), ] operations = [ migrations.AlterField( model_name='food', name='energy_kcal', ...
{"/foodrition_backend/foodrition_api/tests.py": ["/foodrition_backend/foodrition_api/services/ml_model.py"], "/foodrition_backend/foodrition_api/serializers.py": ["/foodrition_backend/foodrition_api/models.py"]}
48,855
yakovdabush1/Ex3_python
refs/heads/main
/src/GraphAlgo.py
from typing import List from src import GraphInterface import json import sys from src.DiGraph import DiGraph import heapq import matplotlib.pyplot as plt class GraphAlgo: def __init__(self, graph=None): self.graph = graph # two "hashmaps" for djikstra self.distance = {} ...
{"/src/GraphAlgo.py": ["/src/DiGraph.py"], "/src/DiGraph.py": ["/src/Node_Data.py"]}
48,856
yakovdabush1/Ex3_python
refs/heads/main
/src/test.py
import unittest import time from GraphAlgo import GraphAlgo import networkx import json class Tests(unittest.TestCase): def test_networkx_load_json(self): print() G_10_80_0 = '../test/G_10_80_0.json' G_100_800_0 = '../test/G_100_800_0.json' G_1000_8000_0 = '../test/...
{"/src/GraphAlgo.py": ["/src/DiGraph.py"], "/src/DiGraph.py": ["/src/Node_Data.py"]}
48,857
yakovdabush1/Ex3_python
refs/heads/main
/src/Node_Data.py
import random class Node_Data: def __init__(self, key, info="", tag=0, pos=None): self.key = key self.info = info self.tag = tag self.pos = pos # this is all out edges self.out_neighbors = {} # this is all in edges self.in_neighbors =...
{"/src/GraphAlgo.py": ["/src/DiGraph.py"], "/src/DiGraph.py": ["/src/Node_Data.py"]}
48,858
yakovdabush1/Ex3_python
refs/heads/main
/src/DiGraph.py
from src.Node_Data import Node_Data class DiGraph: def __init__(self): self.nodes = {} self.mc = 0 self.edge_size = 0 self.node_size = 0 def v_size(self) -> int: """ Returns the number of vertices in this graph @return: The number of ve...
{"/src/GraphAlgo.py": ["/src/DiGraph.py"], "/src/DiGraph.py": ["/src/Node_Data.py"]}
48,859
NKI-AI/dmpnn-matchmaker
refs/heads/master
/train/predict.py
from data_scripts.scaler import StandardScaler from typing import List import torch from tqdm import tqdm import numpy as np from data_scripts import SynergyDataLoader, SynergyDataset, StandardScaler from models import MatchMaker def predict(model: MatchMaker, data_loader: SynergyDataLoader, ...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,860
NKI-AI/dmpnn-matchmaker
refs/heads/master
/args.py
from typing import List, Optional, Tuple from typing_extensions import Literal import os import torch from tap import Tap import re class CommonArgs(Tap): """:class:`CommonArgs` contains arguments that are used in both :class:`TrainArgs` and :class:`PredictArgs`.""" smiles_columns: List[str] = ['drug1', 'dru...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,861
NKI-AI/dmpnn-matchmaker
refs/heads/master
/models/__init__.py
from .model import MatchMaker from .mpn import MPN, MPNEncoder from .nn_utils import NoamLR, compute_gnorm, compute_pnorm
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,862
NKI-AI/dmpnn-matchmaker
refs/heads/master
/train/evaluate.py
from collections import defaultdict import logging from typing import Dict, List from .predict import predict from data_scripts import SynergyDataLoader, StandardScaler from models import MatchMaker from scipy import stats from sklearn.metrics import mean_squared_error import numpy as np import torch def pearson(y : ...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,863
NKI-AI/dmpnn-matchmaker
refs/heads/master
/train/train.py
import logging from typing import Callable from tensorboardX import SummaryWriter import torch import torch.nn as nn from torch.optim import Optimizer from torch.optim.lr_scheduler import _LRScheduler from tqdm import tqdm from args import TrainArgs from data_scripts import SynergyDataLoader, SynergyDataset from mode...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,864
NKI-AI/dmpnn-matchmaker
refs/heads/master
/models/model.py
from typing import List, Union from rdkit import Chem import torch.nn as nn import torch.optim as optim import torch import numpy as np from args import TrainArgs from data_scripts import BatchMolGraph from .nn_utils import initialize_weights from .mpn import MPN def concat(embedding1, embedding2): if torch.ra...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,865
NKI-AI/dmpnn-matchmaker
refs/heads/master
/data_scripts/utils.py
from .data import SynergyDataset from args import TrainArgs from random import Random from typing import List, Optional, Set, Tuple, Union from logging import Logger import numpy as np def split_data(data: SynergyDataset, split_type: str = 'random', sizes: Tuple[float, float, float] = (0...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,866
NKI-AI/dmpnn-matchmaker
refs/heads/master
/data_scripts/data.py
import threading from collections import OrderedDict import csv from logging import Logger import pickle from random import Random from typing import Dict, Iterator, List, Optional, Union from torch.utils.data import Dataset, DataLoader, Sampler import os from rdkit import Chem import numpy as np from tqdm import tqdm ...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,867
NKI-AI/dmpnn-matchmaker
refs/heads/master
/utils.py
from typing import Any, Callable, List, Tuple, Union from functools import wraps from datetime import timedelta import logging import os from time import time from models import MatchMaker from argparse import Namespace import torch import logging from data_scripts import StandardScaler from args import TrainArgs def...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,868
NKI-AI/dmpnn-matchmaker
refs/heads/master
/train/run_training.py
from logging import Logger import os from typing import Dict, List import numpy as np import pandas as pd from tensorboardX import SummaryWriter import torch # from tqdm import trange from torch.optim.lr_scheduler import ExponentialLR import torch.nn as nn from torch.optim import Adam, Optimizer from models import Mat...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,869
NKI-AI/dmpnn-matchmaker
refs/heads/master
/train.py
from args import TrainArgs from data_scripts.data import get_data from utils import timeit, create_logger from constant import TEST_SCORES_FILE_NAME, TRAIN_LOGGER_NAME import os import sys from train import run_training @timeit(logger_name=TRAIN_LOGGER_NAME) def train(args: TrainArgs) -> None: logger = create_lo...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,870
NKI-AI/dmpnn-matchmaker
refs/heads/master
/hyperparameter_optimization.py
from ray import tune from ray.tune.schedulers.async_hyperband import ASHAScheduler from args import HyperoptArgs from utils import timeit, create_logger from copy import deepcopy from train import run_training from ray.tune.schedulers import AsyncHyperBandScheduler from constant import HYPEROPT_LOGGER_NAME from data_sc...
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,871
NKI-AI/dmpnn-matchmaker
refs/heads/master
/data_scripts/__init__.py
from .data import ( SynergyDataset, SynergyDatapoint, SynergyDataLoader, SynergySampler, get_data, BatchMolGraph, ) from .featurization import get_atom_fdim, get_bond_fdim, mol2graph #get_atom_fdim, get_bond_fdim, mol2graph from .utils import split_data from .scaler import StandardScaler
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,872
NKI-AI/dmpnn-matchmaker
refs/heads/master
/train/__init__.py
from .run_training import run_training
{"/train/predict.py": ["/data_scripts/__init__.py", "/models/__init__.py"], "/models/__init__.py": ["/models/model.py"], "/train/evaluate.py": ["/train/predict.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/train/train.py": ["/args.py", "/data_scripts/__init__.py", "/models/__init__.py"], "/models/model.py...
48,873
zy10zm/AI-Motion-Planning
refs/heads/master
/rl/navigation.py
import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" import sys import numpy as np import tensorflow as tf from rl.distributions.categorical import CategoricalPd class normc_initializer(tf.keras.initializers.Initializer): def __init__(self, std=1.0, axis=0): self.std = std self.axis = axis def ...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,874
zy10zm/AI-Motion-Planning
refs/heads/master
/reachability/tracker.py
import numpy as np from copy import deepcopy class Tracker(): def __init__(self): self.size = 6 def dynamics(self, x, u): raise NotImplementedError def optControl(self, x, rnext): raise NotImplementedError class Planner(): def __init__(self): self.size = 3 ...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,875
zy10zm/AI-Motion-Planning
refs/heads/master
/rl/main.py
import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" import sys import time import datetime import numpy as np from mpi4py import MPI from copy import deepcopy from env import make_env from navigation import Navigation comm = MPI.COMM_WORLD rank = comm.Get_rank() actors = [[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]] learn...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,876
zy10zm/AI-Motion-Planning
refs/heads/master
/reachability/rm_tp.py
import numpy as np from copy import deepcopy from scipy.io import loadmat from reachability.tracker import Tracker, Planner, Relative def normalize_angles(angles): '''Puts angles in [-pi, pi] range.''' angles = angles.copy() if angles.size > 0: angles = (angles + np.pi) % (2 * np.pi) - np.pi ...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,877
zy10zm/AI-Motion-Planning
refs/heads/master
/rl/env_pts.py
import math import time import numpy as np import cv2 from copy import deepcopy class Environment(): def __init__(self, MAX_timestep=10000, visualize=False): """ 0 = floor 1 = obstacles 2 = opponent 3 = agents 4 = tracker error bound ...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,878
zy10zm/AI-Motion-Planning
refs/heads/master
/evaluate_rl_planner.py
import numpy as np from rl.env import make_env from rl.navigation import Navigation env = make_env(visualize=True) obs = env.reset() nav = Navigation(1, False) nav.call_build() weights = np.load("./rl/data/nav_model.npy", allow_pickle=True) nav.set_weights(weights) while True: actions, neglogp, entropy, value...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,879
zy10zm/AI-Motion-Planning
refs/heads/master
/simulate.py
import numpy as np from copy import deepcopy from reachability.rm_tp import RmPlanner, RmTracker, RmRelative, Reach def make_planner_env(): from rl.env import make_env env = make_env() return env def make_tracker_env(): from environment.envs.icra import make_env from environment.envhandler impo...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,880
zy10zm/AI-Motion-Planning
refs/heads/master
/rl/test_env.py
import numpy as np import time from copy import deepcopy from env import make_env def test(): env = make_env() obs = env.reset() # Test zero action zero_action = np.array([[0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]) print(f"Before zero action = {obs}") new_obs, rew, done, _ = env.step(zero_action) ...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,881
zy10zm/AI-Motion-Planning
refs/heads/master
/reachability/rm_tp copy.py
import numpy as np from copy import deepcopy from scipy.io import loadmat from tracker import Tracker, Planner, Relative class RmTracker(Tracker): def __init__(self): self.size = 5 self.dt = 0.01 def dynamics(self, x, u): new_x = deepcopy(x) new_x[0] += x[1] * self.dt#(x[1]*...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,882
zy10zm/AI-Motion-Planning
refs/heads/master
/rl/test_architecture.py
import numpy as np from navigation import Navigation def test(): nav = Navigation() actions, neglogp, entropy, value, xyyaw_mean, xyyaw_logstd = nav(np.zeros([1, 10])) print(actions) test()
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,883
zy10zm/AI-Motion-Planning
refs/heads/master
/rl/env.py
import math import time import numpy as np import cv2 from copy import deepcopy from rl.sat import separating_axis_theorem def checkEqual(lst): return lst[1:] == lst[:-1] def normalize_angles(angles): '''Puts angles in [-pi, pi] range.''' angles = angles.copy() if angles.size > 0: angles = (...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,884
zy10zm/AI-Motion-Planning
refs/heads/master
/environment/worldgen/rgbviewer.py
import copy import glfw import imageio import numpy as np import time import sys from mujoco_py.builder import cymj from mujoco_py.generated import const from mujoco_py.utils import rec_copy, rec_assign from multiprocessing import Process, Queue from threading import Lock class RgbViewerBasic(cymj.MjRenderContextWin...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,885
zy10zm/AI-Motion-Planning
refs/heads/master
/reachability/test_ft.py
import numpy as np from fastrack import FastTrack from rm_tp import RmPlanner, RmTracker, RmRelative, Reach tracker = RmTracker() planner = RmPlanner() relative = RmRelative() reach = Reach() ft = FastTrack(tracker, planner, relative, reach) ft.run(100000)
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,886
zy10zm/AI-Motion-Planning
refs/heads/master
/reachability/test_opt_ctrl.py
import numpy as np import cv2 from copy import deepcopy from scipy.io import loadmat grid_max_X = 100 grid_max_Y = 100 grid = np.zeros([grid_max_Y, grid_max_X]) grid = np.stack([grid, grid, grid], axis=-1) eps = 1e-5 dt = 0.002 fst = loadmat('RMAI_FO_dt01_t50_veryHigh_quadratic.mat') eb = 1.2413 vf_X = fst['data...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,887
zy10zm/AI-Motion-Planning
refs/heads/master
/reachability/fastrack.py
import numpy as np import cv2 from copy import deepcopy class FastTrack(): def __init__(self, tracker, planner, relative, reach): self.tracker = tracker self.planner = planner self.relative = relative self.reach = reach grid_max_X = 50 grid_max_Y = 50 ...
{"/reachability/rm_tp.py": ["/reachability/tracker.py"], "/evaluate_rl_planner.py": ["/rl/env.py", "/rl/navigation.py"], "/simulate.py": ["/reachability/rm_tp.py", "/rl/env.py"]}
48,888
oas89/pyuwsgi
refs/heads/master
/pyuwsgi/worker.py
import os import time import mmap import errno import ctypes import signal import socket import logging from . import util logger = logging.getLogger(__name__) class Worker(object): def __init__(self, sock, app, timeout=1, connection_cls=None, handler_cls=None): self.sock = sock ...
{"/pyuwsgi/app.py": ["/pyuwsgi/server.py", "/pyuwsgi/worker.py", "/pyuwsgi/uwsgi.py", "/pyuwsgi/util.py"], "/pyuwsgi/util.py": ["/pyuwsgi/errors.py"]}
48,889
oas89/pyuwsgi
refs/heads/master
/pyuwsgi/errors.py
STOPPING = 10 RELOADING = 20 APPLICATION_ERROR = 30 UNHANDLED_EXCEPTION = 40 class ApplicationError(Exception): pass class ConfigurationError(Exception): pass
{"/pyuwsgi/app.py": ["/pyuwsgi/server.py", "/pyuwsgi/worker.py", "/pyuwsgi/uwsgi.py", "/pyuwsgi/util.py"], "/pyuwsgi/util.py": ["/pyuwsgi/errors.py"]}
48,890
oas89/pyuwsgi
refs/heads/master
/pyuwsgi/server.py
import os import time import errno import select import signal import logging from . import errors, util logger = logging.getLogger(__name__) class Server(object): mercy = 20 def __init__(self, sock, app, timeout=1, processes=1, worker_cls=None, ...
{"/pyuwsgi/app.py": ["/pyuwsgi/server.py", "/pyuwsgi/worker.py", "/pyuwsgi/uwsgi.py", "/pyuwsgi/util.py"], "/pyuwsgi/util.py": ["/pyuwsgi/errors.py"]}
48,891
oas89/pyuwsgi
refs/heads/master
/pyuwsgi/app.py
import socket import logging import argparse from wsgiref.handlers import BaseCGIHandler from .server import Server from .worker import Worker from .uwsgi import Connection from .util import parse_address logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) def make_server(bind, wsgi, ...
{"/pyuwsgi/app.py": ["/pyuwsgi/server.py", "/pyuwsgi/worker.py", "/pyuwsgi/uwsgi.py", "/pyuwsgi/util.py"], "/pyuwsgi/util.py": ["/pyuwsgi/errors.py"]}
48,892
oas89/pyuwsgi
refs/heads/master
/pyuwsgi/uwsgi.py
import struct import logging from . import util logger = logging.getLogger(__name__) HEADER_SIZE = 4 MODIFIER1 = 0 MODIFIER2 = 0 def unpack_header(data): return struct.unpack('<BHB', data) def unpack_pair(data, pos=0): key_length = struct.unpack('<H', data[pos:pos+2])[0] pos += 2 key = data[pos:p...
{"/pyuwsgi/app.py": ["/pyuwsgi/server.py", "/pyuwsgi/worker.py", "/pyuwsgi/uwsgi.py", "/pyuwsgi/util.py"], "/pyuwsgi/util.py": ["/pyuwsgi/errors.py"]}
48,893
oas89/pyuwsgi
refs/heads/master
/pyuwsgi/util.py
import os import re import fcntl import errno import socket import random import ctypes import ctypes.util from .errors import ApplicationError _argv_length = 0 def set_process_title(title, use_all_argv=False): global _argv_length libc = ctypes.CDLL(ctypes.util.find_library('c')) argc = ctypes.c_int()...
{"/pyuwsgi/app.py": ["/pyuwsgi/server.py", "/pyuwsgi/worker.py", "/pyuwsgi/uwsgi.py", "/pyuwsgi/util.py"], "/pyuwsgi/util.py": ["/pyuwsgi/errors.py"]}
48,897
manimaul/mxmcc
refs/heads/master
/tilebuilder.py
#!/usr/bin/env python __author__ = "Will Kamp" __copyright__ = "Copyright 2015, Matrix Mariner Inc." __license__ = "BSD" __email__ = "will@mxmariner.com" __status__ = "Development" # "Prototype", "Development", or "Production" '''Builds zxy map tiles for a single map or all the maps within a map catalog (catalog.py)...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,898
manimaul/mxmcc
refs/heads/master
/lookups.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''This contains methods for looking up information about a region chart file. The look...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,899
manimaul/mxmcc
refs/heads/master
/tilesmerge.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Modified for mxmcc: Will Kamp # Original source: https://code.google.com/p/tilers-tools/ ############################################################################### # Copyright (c) 2010, Vadim Shlyakhov # # Permission is hereby granted, free of charge, to any perso...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,900
manimaul/mxmcc
refs/heads/master
/gemf.py
#!/usr/bin/env python __author__ = 'Will Kamp' __email__ = 'will@mxmariner.com' __license__ = 'BSD' # most of the credit belongs to: __credits__ = ['http://www.cgtk.co.uk/gemf', 'A. Budden'] __copyright__ = 'Copyright (c) 2015, Matrix Mariner Inc.\n' + \ 'A. Budden' __status__ = 'Develop...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,901
manimaul/mxmcc
refs/heads/master
/checkpoint.py
#!/usr/bin/env python __author__ = "Will Kamp" __copyright__ = "Copyright 2015, Matrix Mariner Inc." __license__ = "BSD" __email__ = "will@mxmariner.com" __status__ = "Development" # "Prototype", "Development", or "Production" '''Store tiling process checkpoints, so successful steps don't have to be repeated ''' im...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,902
manimaul/mxmcc
refs/heads/master
/wl_filter_list_generator.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2015, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''Creates dictionary containing a list of charts for each region based on if they are in ...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,903
manimaul/mxmcc
refs/heads/master
/regions.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''This is a database of sorts for nautical chart regions, their providing hydro-graphic o...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,904
manimaul/mxmcc
refs/heads/master
/ukho_crest_burner.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2014, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''Burns (removes images) previously indexed with computer vision from charts. This is ...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,905
manimaul/mxmcc
refs/heads/master
/tilesystem.py
#!/usr/bin/env python # converted to python by (from C# and Java sources): __author__ = 'Will Kamp' __email__ = 'will@mxmariner.com' # most of the credit belongs to: __credits__ = ['http://msdn.microsoft.com/en-us/library/bb259689.aspx', 'http://www.klokan.cz/projects/gdal2tiles/gdal2tiles.py'] __copyri...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,906
manimaul/mxmcc
refs/heads/master
/ukho_remove_duplicates.py
import functools import os import shutil from . import config from .ukho_xlrd_lookup import stamp __author__ = 'Will Kamp' __copyright__ = 'Copyright 2014, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''Removes d...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,907
manimaul/mxmcc
refs/heads/master
/__init__.py
__author__ = "Will Kamp" __copyright__ = "Copyright 2015, Matrix Mariner Inc." __license__ = "BSD" __email__ = "will@mxmariner.com" __status__ = "Development" # "Prototype", "Development", or "Production" VERSION = 1
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,908
manimaul/mxmcc
refs/heads/master
/bsb.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''Scans the header portion of a BSB nautical chart, extracts data and offers convenien...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,909
manimaul/mxmcc
refs/heads/master
/ukho_xlrd_lookup.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2015, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' import os import re import xlrd from . import config def file_name_decoder(file_name): ...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,910
manimaul/mxmcc
refs/heads/master
/region_constants.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2015, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' REGION_WL1 = 'REGION_WL1' REGION_WL2 = 'REGION_WL2' REGION_UK1 = 'REGION_UK1' REGION_UK2 ...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,911
manimaul/mxmcc
refs/heads/master
/tiles_opt.py
#!/usr/bin/env python ############################################################################### # Copyright (c) 2010, Vadim Shlyakhov # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Softwar...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,912
manimaul/mxmcc
refs/heads/master
/manifestjson.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2014, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' import json import hashlib import os from . import config import time from .zdata import g...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,913
manimaul/mxmcc
refs/heads/master
/search.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' import os class MapPathSearch: def __init__(self, directory, map_extensions=['kap', ...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,914
manimaul/mxmcc
refs/heads/master
/noaaxml.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''Downloads noaa product catalog xml by region name and retrieves listing of chart files ...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,915
manimaul/mxmcc
refs/heads/master
/ukho_filter_list_generator.py
import os from shapely.geometry import Polygon from .search import MapPathSearch from .region_constants import * from . import config from . import gdalds from . import ukho_remove_duplicates __author__ = 'Will Kamp' __copyright__ = 'Copyright 2014, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmarin...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,916
manimaul/mxmcc
refs/heads/master
/logger.py
# !/usr/bin/env python __author__ = "Will Kamp" __copyright__ = "Copyright 2015, Matrix Mariner Inc." __credits__ = "http://code.google.com/p/tilers-tools/" __license__ = "BSD" __email__ = "will@mxmariner.com" __status__ = "Development" # "Prototype", "Development", or "Production" import inspect import os OFF = F...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,917
manimaul/mxmcc
refs/heads/master
/catalog.py
__copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''This builds a csv catalog of map information (sorted by scale) as follows: <path, name, zoom, scale, date, depths, outline> (csv ...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,918
manimaul/mxmcc
refs/heads/master
/config.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''This is the global configuration for mxmcc which consists of a directory structure w...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,919
manimaul/mxmcc
refs/heads/master
/faa_fetch.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2016, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''Fetches FAA Raster VFR Charts ''' import os import urllib from .region_constants impor...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,920
manimaul/mxmcc
refs/heads/master
/verify.py
#!/usr/bin/env python __author__ = "Will Kamp" __copyright__ = "Copyright 2014, Matrix Mariner Inc." __license__ = "BSD" __email__ = "will@mxmariner.com" __status__ = "Development" # "Prototype", "Development", or "Production" '''This verifies tiles were created for every chart in a catalog ''' import os.path from...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,921
manimaul/mxmcc
refs/heads/master
/ukho_overrides/togpx.py
__author__ = 'william' template = '''<?xml version="1.0" encoding="utf-8" ?> <gpx version="1.1" creator="MTCW" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xsi:schemaLocation="http://www.topografix.com/GPX...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,922
manimaul/mxmcc
refs/heads/master
/gdalds.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' import math from osgeo import gdal, osr import os '''some convenience methods for inform...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,923
manimaul/mxmcc
refs/heads/master
/encryption_shim.py
#!/usr/bin/env python __author__ = "Will Kamp" __copyright__ = "Copyright 2015, Matrix Mariner Inc." __license__ = "BSD" __email__ = "will@mxmariner.com" __status__ = "Development" # "Prototype", "Development", or "Production" '''Interface to encryption Java encryption source in not publicly published ''' import...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,924
manimaul/mxmcc
refs/heads/master
/zdata.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''MX Mariner zdata generator for regions / catalogs''' import codecs import os.path impo...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,925
manimaul/mxmcc
refs/heads/master
/compiler.py
#!/usr/bin/env python3 __author__ = "Will Kamp" __copyright__ = "Copyright 2013, Matrix Mariner Inc." __license__ = "BSD" __email__ = "will@mxmariner.com" __status__ = "Development" # "Prototype", "Development", or "Production" '''This is the wrapper program that ties it all together to complete this set of programs...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,926
manimaul/mxmcc
refs/heads/master
/file_name_sanitizer.py
__author__ = 'Will Kamp' __copyright__ = 'Copyright 2015, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''Sanitizes chart file names (allows alpha/numeric, last '.' for file extension, replaces whitespace with '...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,927
manimaul/mxmcc
refs/heads/master
/findzoom.py
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' '''This will find the optimal zoom level on a zxy tiled map for a BSB chart. The calcu...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,928
manimaul/mxmcc
refs/heads/master
/test_format_entry.py
from unittest import TestCase from . import zdata class Test_zdata(TestCase): def test_format_entry(self): entry = { "path": "/foo/bar/18476_1.KAP", "name": "PUGET SOUND SHILSHOLE BAY TO COMMENCEMENT BAY\n", "date": "today\n", "scale": 10000, "ou...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,929
manimaul/mxmcc
refs/heads/master
/filler.py
#!/usr/bin/env python __author__ = "Will Kamp" __copyright__ = "Copyright 2014, Matrix Mariner Inc." __license__ = "BSD" __email__ = "will@mxmariner.com" __status__ = "Prototype" # "Prototype", "Development", or "Production" '''Fills the "holes" (transparent portions) in merged tiles using a 1 up, 6 down search patt...
{"/tilebuilder.py": ["/__init__.py"], "/lookups.py": ["/__init__.py"], "/tilesmerge.py": ["/__init__.py", "/tilesystem.py"], "/gemf.py": ["/__init__.py", "/tilesystem.py"], "/checkpoint.py": ["/__init__.py"], "/wl_filter_list_generator.py": ["/noaaxml.py", "/__init__.py", "/region_constants.py", "/search.py"], "/region...
48,938
Steguer/SimpleInject
refs/heads/master
/tests/test_service_provider.py
from typing import cast, ForwardRef import pytest from simpleinject.service_provider import ServicesManager, CircularReferenceError, ServiceWasNotRegistered @pytest.fixture('function') def services_manager(): return ServicesManager() class ServiceB(object): pass class ServiceC(object): pass class ...
{"/tests/test_service_provider.py": ["/simpleinject/service_provider.py"]}
48,939
Steguer/SimpleInject
refs/heads/master
/simpleinject/service_provider.py
import inspect from typing import * class ServiceWrapper(object): def __init__(self, service_type: type, instance: object = None): self.service_type = service_type self.instance: object = instance self.dependencies: List[ServiceWrapper] = [] class Dummy(object): pass class Circular...
{"/tests/test_service_provider.py": ["/simpleinject/service_provider.py"]}
48,959
Toktar/indy-plenum
refs/heads/master
/plenum/server/consensus/checkpoint_service.py
import math import sys from _sha256 import sha256 from typing import Tuple from sortedcontainers import SortedListWithKey from common.exceptions import LogicError from common.serializers.serialization import serialize_msg_for_signing from plenum.common.config_util import getConfig from plenum.common.event_bus import ...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,960
Toktar/indy-plenum
refs/heads/master
/plenum/test/checkpoints/test_discard_old_checkpoint_messages.py
from plenum.server.replica_validator_enums import ALREADY_STABLE from stp_core.loop.eventually import eventually from plenum.common.messages.node_messages import Checkpoint from plenum.test.checkpoints.helper import chkChkpoints, chk_chkpoints_for_instance from plenum.test.helper import checkDiscardMsg from plenum.test...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,961
Toktar/indy-plenum
refs/heads/master
/plenum/hypothesis/helper.py
from typing import Any from hypothesis import strategies as st from plenum.test.simulation.sim_random import SimRandom class HypothesisSimRandom(SimRandom): def __init__(self, data): self._data = data def integer(self, min_value: int, max_value: int) -> int: return self._data.draw(st.intege...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,962
Toktar/indy-plenum
refs/heads/master
/plenum/test/input_validation/fields_validation/test_batch_id_field.py
from plenum.common.messages.fields import BatchIDField validator = BatchIDField() def test_valid(): assert not validator.validate((1, 1, "digest")) assert not validator.validate((0, 1, "digest")) assert not validator.validate((100, 0, "d")) def test_invalid_view_no(): assert validator.validate((-1,...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,963
Toktar/indy-plenum
refs/heads/master
/plenum/common/messages/internal_messages.py
from typing import NamedTuple, List, Any from plenum.common.exceptions import SuspiciousNode HookMessage = NamedTuple('HookMessage', [('hook', int), ('args', tuple)]) RequestPropagates = NamedTuple('RequestPropagates', [('bad_requests'...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,964
Toktar/indy-plenum
refs/heads/master
/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py
from unittest.mock import Mock import pytest from common.exceptions import LogicError from plenum.common.constants import DOMAIN_LEDGER_ID from plenum.common.messages.internal_messages import CheckpointStabilized, NeedBackupCatchup, NeedMasterCatchup from plenum.common.messages.node_messages import Checkpoint, Ordere...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,965
Toktar/indy-plenum
refs/heads/master
/plenum/hypothesis/consensus/hyp_sim_view_change.py
from hypothesis import strategies as st, given from plenum.hypothesis.helper import HypothesisSimRandom from plenum.test.consensus.view_change.test_sim_view_change import check_view_change_completes_under_normal_conditions @given(st.data()) def test_view_change_completes_under_normal_conditions(data): random = H...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,966
Toktar/indy-plenum
refs/heads/master
/plenum/test/consensus/checkpoint_service/test_update_watermarks_api.py
import sys def test_propagate_primary_is_Master_update_watermarks(checkpoint_service): # expected behaviour is that h must be set as last ordered ppSeqNo checkpoint_service._is_master = True checkpoint_service._data.low_watermark = 0 checkpoint_service._data.last_ordered_3pc = (checkpoint_service.view...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,967
Toktar/indy-plenum
refs/heads/master
/plenum/test/replica/test_catchup_after_replica_removing.py
import pytest from plenum.common.constants import STEWARD_STRING, VALIDATOR from pytest import fixture from plenum.common.throughput_measurements import RevivalSpikeResistantEMAThroughputMeasurement from plenum.common.util import getMaxFailures from plenum.test.helper import sdk_send_random_and_check, assertExp, sdk_g...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,968
Toktar/indy-plenum
refs/heads/master
/plenum/test/replica/test_consensus_data_helper.py
import pytest from plenum.common.messages.node_messages import Checkpoint from plenum.server.consensus.consensus_shared_data import ConsensusSharedData, preprepare_to_batch_id from plenum.server.replica import ConsensusDataHelper from plenum.test.consensus.conftest import pre_prepare, validators @pytest.fixture de...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,969
Toktar/indy-plenum
refs/heads/master
/plenum/test/audit_ledger/test_demote_backup_primary.py
from plenum.test.helper import sdk_send_random_and_check from plenum.test.node_catchup.helper import ensure_all_nodes_have_same_data from plenum.test.pool_transactions.helper import demote_node, disconnect_node_and_ensure_disconnected from plenum.test.view_change.helper import start_stopped_node nodeCount = 6 def te...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,970
Toktar/indy-plenum
refs/heads/master
/plenum/test/consensus/order_service/test_ordering_service_on_view_change.py
from plenum.common.messages.internal_messages import ViewChangeStarted, NewViewAccepted, NewViewCheckpointsApplied from plenum.server.consensus.consensus_shared_data import BatchID from plenum.server.consensus.ordering_service import OrderingService from plenum.test.consensus.helper import copy_shared_data, create_batc...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,971
Toktar/indy-plenum
refs/heads/master
/plenum/server/consensus/view_change_service.py
from _sha256 import sha256 from collections import defaultdict from functools import partial from operator import itemgetter from typing import List, Optional, Union, Dict, Any, Tuple from common.serializers.json_serializer import JsonSerializer from plenum.common.config_util import getConfig from plenum.common.event_...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,972
Toktar/indy-plenum
refs/heads/master
/plenum/test/simulation/sim_network.py
from collections import OrderedDict from functools import partial from typing import Any, Iterable from plenum.common.event_bus import ExternalBus from plenum.common.timer import TimerService from plenum.test.simulation.sim_random import SimRandom class SimNetwork: def __init__(self, timer: TimerService, random:...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,973
Toktar/indy-plenum
refs/heads/master
/plenum/test/audit_ledger/test_future_primaries_unit.py
import pytest from plenum.common.constants import TARGET_NYM, DATA, ALIAS, SERVICES, TXN_TYPE, NODE from plenum.common.request import Request from plenum.server.batch_handlers.three_pc_batch import ThreePcBatch from plenum.server.future_primaries_batch_handler import FuturePrimariesBatchHandler from plenum.server.prop...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,974
Toktar/indy-plenum
refs/heads/master
/plenum/test/node/test_api.py
import pytest from common.exceptions import LogicError from plenum.common.constants import TXN_TYPE, TXN_PAYLOAD, TXN_PAYLOAD_METADATA, TXN_PAYLOAD_METADATA_DIGEST, \ TXN_PAYLOAD_TYPE, TXN_PAYLOAD_DATA, TXN_PAYLOAD_METADATA_REQ_ID, TXN_METADATA, TXN_METADATA_SEQ_NO, \ TXN_PAYLOAD_METADATA_PAYLOAD_DIGEST from p...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,975
Toktar/indy-plenum
refs/heads/master
/plenum/test/audit_ledger/test_future_primaries_addition.py
import copy from plenum.test.test_node import ensureElectionsDone from plenum.test.view_change.helper import add_new_node from plenum.test.helper import checkViewNoForNodes from plenum.test.pool_transactions.helper import demote_node nodeCount = 6 old_commit = None def test_future_primaries_replicas_increase(loop...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,976
Toktar/indy-plenum
refs/heads/master
/plenum/test/consensus/view_change/test_sim_view_change.py
from functools import partial import pytest from plenum.common.messages.internal_messages import NeedViewChange from plenum.server.consensus.view_change_service import BatchID from plenum.test.consensus.view_change.helper import some_pool from plenum.test.helper import MockNetwork from plenum.test.simulation.sim_rand...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,977
Toktar/indy-plenum
refs/heads/master
/plenum/test/consensus/view_change/test_primary_selector.py
from plenum.server.consensus.primary_selector import RoundRobinPrimariesSelector import pytest from plenum.test.greek import genNodeNames @pytest.fixture() def primary_selector(): return RoundRobinPrimariesSelector() @pytest.fixture() def instance_count(validators): return (len(validators) - 1) // 3 + 1 ...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,978
Toktar/indy-plenum
refs/heads/master
/plenum/test/consensus/order_service/helper.py
from plenum.common.util import get_utc_epoch def expect_suspicious(orderer, suspicious_code): def reportSuspiciousNodeEx(ex): assert suspicious_code == ex.code raise ex orderer.report_suspicious_node = reportSuspiciousNodeEx def _register_pp_ts(orderer, pp, sender): tpcKey = (pp.viewNo,...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,979
Toktar/indy-plenum
refs/heads/master
/plenum/test/consensus/view_change/helper.py
from typing import Optional, List import base58 from plenum.common.messages.node_messages import PrePrepare, Checkpoint from plenum.server.consensus.view_change_service import ViewChangeService, BatchID from plenum.test.consensus.helper import SimPool from plenum.test.simulation.sim_random import SimRandom def some...
{"/plenum/server/consensus/checkpoint_service.py": ["/plenum/common/messages/internal_messages.py"], "/plenum/test/consensus/checkpoint_service/test_checkpoint_service_unit.py": ["/plenum/common/messages/internal_messages.py", "/plenum/server/consensus/checkpoint_service.py"], "/plenum/hypothesis/consensus/hyp_sim_view...
48,991
KNOT-FIT-BUT/webapi-server
refs/heads/master
/core/api/_JSONRPC/protocol.py
''' Created on 1. 5. 2014 @author: casey ''' import inspect from core.chain import ChainItem, ChainTerminator class AProtocol(ChainItem): ''' classdocs ''' def __init__(self, core): ''' Constructor ''' super(AProtocol, self).__init__() self.core = core ...
{"/core/api/_JSONRPC/protocol.py": ["/core/chain.py"], "/core/api/_REST/_v1/hner.py": ["/core/annotation/annotator.py"], "/core/annotation/tools/tner.py": ["/core/annotation/tools/_abstract.py"], "/core/annotation/tools/_abstract.py": ["/core/pipeline.py"], "/core/annotation/filters/inputFilters.py": ["/core/annotation...
48,992
KNOT-FIT-BUT/webapi-server
refs/heads/master
/core/api/_REST/_v1/hner.py
# -*- coding: utf-8 -*- ''' Created on 28. 10. 2013 @author: xjerab13 ''' import cherrypy from core.annotation.annotator import AnnotationRequest class NERHandler(): ''' NERHandler serve data about available KB for NER and parsing text via NER tool. ''' exposed = True def __init__(self): ...
{"/core/api/_JSONRPC/protocol.py": ["/core/chain.py"], "/core/api/_REST/_v1/hner.py": ["/core/annotation/annotator.py"], "/core/annotation/tools/tner.py": ["/core/annotation/tools/_abstract.py"], "/core/annotation/tools/_abstract.py": ["/core/pipeline.py"], "/core/annotation/filters/inputFilters.py": ["/core/annotation...
48,993
KNOT-FIT-BUT/webapi-server
refs/heads/master
/core/annotation/tools/tner.py
# -*- coding: utf-8 -*- ''' Created on 24. 4. 2014 @author: casey ''' import ner from core.annotation.tools._abstract import AbstractTool import name_recognizer.name_recognizer as name_recognizer class NER(AbstractTool): ''' classdocs ''' toolName = "ner" params=["lower", "remove_accent"] def...
{"/core/api/_JSONRPC/protocol.py": ["/core/chain.py"], "/core/api/_REST/_v1/hner.py": ["/core/annotation/annotator.py"], "/core/annotation/tools/tner.py": ["/core/annotation/tools/_abstract.py"], "/core/annotation/tools/_abstract.py": ["/core/pipeline.py"], "/core/annotation/filters/inputFilters.py": ["/core/annotation...