hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a050a4b872072ed8a56d1d982d0727510675e73
7,233
py
Python
tests/particles/setplot.py
jkapilian/geoclaw
89edf01902848529949b85c50a85b987ec869c9e
[ "BSD-3-Clause" ]
null
null
null
tests/particles/setplot.py
jkapilian/geoclaw
89edf01902848529949b85c50a85b987ec869c9e
[ "BSD-3-Clause" ]
1
2020-06-28T21:28:49.000Z
2020-06-28T21:28:49.000Z
tests/particles/setplot.py
jkapilian/geoclaw
89edf01902848529949b85c50a85b987ec869c9e
[ "BSD-3-Clause" ]
2
2015-12-09T18:49:46.000Z
2016-05-18T20:44:18.000Z
""" Set up the plot figures, axes, and items to be done for each frame. This module is imported by the plotting routines and then the function setplot is called to set the plot parameters. """ from __future__ import absolute_import from __future__ import print_function from clawpack.visclaw import gaugetool...
34.279621
80
0.609982
4a050a55b8290f3b9c0515a5e786efbf837b71c7
22,884
py
Python
stable_baselines/deepq_poher/dqn.py
kevslinger/stable-baselines
4bf9f3c1db49f462f5fb35df967d836d92a3dbcd
[ "MIT" ]
null
null
null
stable_baselines/deepq_poher/dqn.py
kevslinger/stable-baselines
4bf9f3c1db49f462f5fb35df967d836d92a3dbcd
[ "MIT" ]
null
null
null
stable_baselines/deepq_poher/dqn.py
kevslinger/stable-baselines
4bf9f3c1db49f462f5fb35df967d836d92a3dbcd
[ "MIT" ]
null
null
null
from functools import partial import tensorflow as tf import numpy as np import gym # KEVIN ADD import csv import os from stable_baselines import logger from stable_baselines.common import tf_util, SetVerbosity, TensorboardWriter from stable_baselines.common.vec_env import VecEnv from stable_baselines.common.schedule...
52.728111
129
0.602517
4a050a5c1682d36af4fc5ea55eedb6f0188cff80
10,124
py
Python
isi_sdk/models/quota_notification_extended.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
isi_sdk/models/quota_notification_extended.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
isi_sdk/models/quota_notification_extended.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 applica...
29.516035
96
0.600454
4a050b874875af324414776040125aee96270dbd
294
py
Python
neovim_pytc/__init__.py
mvilim/neovim-pytc-example
5d0927c7eb57a14813900a4b142b8640a7963cfe
[ "MIT" ]
21
2019-04-03T09:59:13.000Z
2022-03-09T06:38:10.000Z
neovim_pytc/__init__.py
mvilim/neovim-pytc-example
5d0927c7eb57a14813900a4b142b8640a7963cfe
[ "MIT" ]
null
null
null
neovim_pytc/__init__.py
mvilim/neovim-pytc-example
5d0927c7eb57a14813900a4b142b8640a7963cfe
[ "MIT" ]
3
2020-02-01T03:42:02.000Z
2021-04-22T13:24:18.000Z
# This file is part of the neovim-pytc-example. It is currently hosted at # https://github.com/mvilim/neovim-pytc-example # # neovim-pytc-example is licensed under the MIT license. A copy of the license can be # found in the root folder of the project. from neovim_pytc.neovim_pytc import run
36.75
85
0.77551
4a050da756379e11c19ca6efff7eb72539c598ed
3,450
py
Python
GPF/NE/graph.py
seeker1943/GPF
478e3c121f8ca774b9c6fefcfe1180ab4b7aa918
[ "MIT" ]
104
2018-11-04T04:47:13.000Z
2022-02-26T11:52:47.000Z
GPF/NE/graph.py
seeker1943/GPF
478e3c121f8ca774b9c6fefcfe1180ab4b7aa918
[ "MIT" ]
4
2019-03-03T01:35:57.000Z
2021-05-08T13:59:44.000Z
GPF/NE/graph.py
seeker1943/GPF
478e3c121f8ca774b9c6fefcfe1180ab4b7aa918
[ "MIT" ]
25
2019-02-01T07:19:18.000Z
2022-01-25T06:11:29.000Z
"""Graph utilities.""" # from time import time import networkx as nx import pickle as pkl import numpy as np import scipy.sparse as sp class Graph(object): def __init__(self): self.G = None self.look_up_dict = {} self.look_back_list = [] self.node_size = 0 def encode_node(self...
30
79
0.484348
4a050e5a99a6c3753a582f688f1d4ff35ed20a00
8,973
py
Python
samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py
gasugesu/openapi-generator
e1c43f135639b9f300350f788fec98bbc375c932
[ "Apache-2.0" ]
3
2021-05-19T03:12:48.000Z
2022-01-28T19:15:42.000Z
samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py
gasugesu/openapi-generator
e1c43f135639b9f300350f788fec98bbc375c932
[ "Apache-2.0" ]
3
2021-05-11T23:55:26.000Z
2022-02-27T11:17:21.000Z
samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py
gasugesu/openapi-generator
e1c43f135639b9f300350f788fec98bbc375c932
[ "Apache-2.0" ]
1
2020-10-05T11:13:04.000Z
2020-10-05T11:13:04.000Z
""" OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noq...
47.226316
193
0.607378
4a050f468ccf0764081362bfd073f88f0cbe7701
2,750
py
Python
common/jsonn.py
wood-j/clipboard-py
4001e92c26279b28b55bd75d8627036ac436c1e1
[ "MIT" ]
1
2019-11-28T15:48:07.000Z
2019-11-28T15:48:07.000Z
common/jsonn.py
wood-j/clipboard-py
4001e92c26279b28b55bd75d8627036ac436c1e1
[ "MIT" ]
null
null
null
common/jsonn.py
wood-j/clipboard-py
4001e92c26279b28b55bd75d8627036ac436c1e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json from datetime import datetime, date, time from common.log import logger class JsonSerializable(object): def dump_json(self): # return json.dumps(self, indent=4, ensure_ascii=False, cls=DefaultEncoder) dic = self.dump_dict() return json.dumps(dic, indent=...
30.898876
105
0.557455
4a050fd181300f5e725afac84cd0d1615d6d4dd5
14,187
py
Python
main.py
tileb1/LearnTrajDep
65849984fde5064974e06e6571688d8fed7a4794
[ "MIT" ]
null
null
null
main.py
tileb1/LearnTrajDep
65849984fde5064974e06e6571688d8fed7a4794
[ "MIT" ]
null
null
null
main.py
tileb1/LearnTrajDep
65849984fde5064974e06e6571688d8fed7a4794
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """overall code framework is adapped from https://github.com/weigq/3d_pose_baseline_pytorch""" from __future__ import print_function, absolute_import, division import os import time import torch import torch.nn as nn import torch.optim from torch.utils.data import DataLoad...
38.868493
120
0.57306
4a051042028528ddf47b6de5902273a353d537be
3,563
py
Python
Exercise-2/sensor_stick/scripts/segmentation.py
congthanh184/RoboND-Perception-Exercises
2716a2681e9c5718064bff296eb865bfba821f4f
[ "MIT" ]
null
null
null
Exercise-2/sensor_stick/scripts/segmentation.py
congthanh184/RoboND-Perception-Exercises
2716a2681e9c5718064bff296eb865bfba821f4f
[ "MIT" ]
null
null
null
Exercise-2/sensor_stick/scripts/segmentation.py
congthanh184/RoboND-Perception-Exercises
2716a2681e9c5718064bff296eb865bfba821f4f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Import modules from pcl_helper import * # TODO: Define functions as required # Callback function for your Point Cloud Subscriber def pcl_callback(pcl_msg): # TODO: Convert ROS msg to PCL data cloud = ros_to_pcl(pcl_msg) # TODO: Voxel Grid Downsampling vox = cloud.make_voxel_...
33.933333
104
0.708672
4a0510c605adfe7d00fa90eee8e7d300882a753f
1,946
py
Python
physbryk/da_bin/sensor_test.py
Geoffysicist/PhysBryk
a3e5684bf9f12df49ad34a536ef6cc23f7473982
[ "CC0-1.0" ]
null
null
null
physbryk/da_bin/sensor_test.py
Geoffysicist/PhysBryk
a3e5684bf9f12df49ad34a536ef6cc23f7473982
[ "CC0-1.0" ]
10
2020-10-19T10:02:59.000Z
2020-11-24T08:18:30.000Z
physbryk/da_bin/sensor_test.py
Geoffysicist/PhysBryk
a3e5684bf9f12df49ad34a536ef6cc23f7473982
[ "CC0-1.0" ]
null
null
null
"""Sensor demo for Adafruit Feather Sense. Prints data from each of the sensors.""" import time import array import math import board import audiobusio import adafruit_apds9960.apds9960 import adafruit_bmp280 import adafruit_lis3mdl import adafruit_lsm6ds.lsm6ds33 import adafruit_sht31d i2c = board.I2C() apds9960 = a...
37.423077
96
0.688592
4a0510ee9ae92b1506305063f85688d07ea35197
5,146
py
Python
2algo/results and data complilation/cpu_comparison_latest.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
2algo/results and data complilation/cpu_comparison_latest.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
2algo/results and data complilation/cpu_comparison_latest.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
1
2021-03-21T17:54:26.000Z
2021-03-21T17:54:26.000Z
import matplotlib.pyplot as plt import data as rd import redo_for_cpu_data as redo fig = plt.figure() ax1 = fig.add_subplot(141) ax2 = fig.add_subplot(142) ax3 = fig.add_subplot(143) ax4 = fig.add_subplot(144) style = ['g--^', 'r:o', 'b-.s', 'm--*', 'k-.>', 'c-.s'] names = ('RMS + Bankers', 'EDF + Bankers',...
22.669604
66
0.495919
4a05111c1d4f8d967aec49b2a423b1b3b6ab37e5
293
py
Python
xendit/models/_base_query.py
adyaksaw/xendit-python
47b05f2a6582104a274dc12a172c6421de86febc
[ "MIT" ]
10
2020-10-31T23:34:34.000Z
2022-03-08T19:08:55.000Z
xendit/models/_base_query.py
adyaksaw/xendit-python
47b05f2a6582104a274dc12a172c6421de86febc
[ "MIT" ]
22
2020-07-30T14:25:07.000Z
2022-03-31T03:55:46.000Z
xendit/models/_base_query.py
adyaksaw/xendit-python
47b05f2a6582104a274dc12a172c6421de86febc
[ "MIT" ]
11
2020-07-28T08:09:40.000Z
2022-03-18T00:14:02.000Z
class BaseQuery(dict): """Abstract class for query with object type""" def __init__(self, **kwargs): dict_params = {} for key, value in kwargs.items(): if value is not None: dict_params[key] = value dict.__init__(self, dict_params)
29.3
51
0.583618
4a051141e5a213bbb2370294e5af91b1ead0e957
2,103
py
Python
ranking_policies/config.py
acwatt/karp_ranking_policies
6672e510398dd8253d9bc3d7f845ac4aac0822ea
[ "MIT" ]
null
null
null
ranking_policies/config.py
acwatt/karp_ranking_policies
6672e510398dd8253d9bc3d7f845ac4aac0822ea
[ "MIT" ]
null
null
null
ranking_policies/config.py
acwatt/karp_ranking_policies
6672e510398dd8253d9bc3d7f845ac4aac0822ea
[ "MIT" ]
null
null
null
# Python 3.7 # File name: # Authors: Aaron Watt # Date: 2021-07-05 """Module to be imported for project settings.""" # Standard library imports from pathlib import Path import sys # CLASSES -------------------------- class Paths: """Inner paths class to store project paths commonly used. This will search t...
31.863636
97
0.611507
4a0511c6d86b73d1de1ce8632b0dddf9bb28c9fa
19,345
py
Python
tensorflow/example3_resnet/tf_resnet.py
BrianKmdy/mantaflow
273d6c148374316e4d04cae4f46fed56a630e183
[ "Apache-2.0" ]
95
2019-12-04T21:39:51.000Z
2022-03-12T01:03:36.000Z
tensorflow/example3_resnet/tf_resnet.py
BrianKmdy/mantaflow
273d6c148374316e4d04cae4f46fed56a630e183
[ "Apache-2.0" ]
4
2019-12-21T15:08:54.000Z
2021-02-28T19:40:08.000Z
tensorflow/example3_resnet/tf_resnet.py
BrianKmdy/mantaflow
273d6c148374316e4d04cae4f46fed56a630e183
[ "Apache-2.0" ]
26
2020-01-21T00:48:47.000Z
2022-01-14T06:04:20.000Z
#****************************************************************************** # # simplified L2 conv net training examples # Copyright 2018 Nils Thuerey, You Xie, Erik Franz, Mengyu Chu # # This program is free software, distributed under the terms of the # Apache License, Version 2.0 # http://www.apache.org/license...
41.247335
283
0.684776
4a0512c06d9fba44fe83b7b445e99bade4f56291
17,112
py
Python
phagraphnn/utilities.py
spudlig/PhaGraphNN
af95d5570aa14df4c2b05a400d46e01f245428f8
[ "MIT" ]
1
2020-09-21T01:19:50.000Z
2020-09-21T01:19:50.000Z
phagraphnn/utilities.py
spudlig/PhaGraphNN
af95d5570aa14df4c2b05a400d46e01f245428f8
[ "MIT" ]
null
null
null
phagraphnn/utilities.py
spudlig/PhaGraphNN
af95d5570aa14df4c2b05a400d46e01f245428f8
[ "MIT" ]
null
null
null
import logging log = logging.getLogger(__name__) import numpy as np import xlrd import os import pickle import CDPL.Chem as Chem import CDPL.Biomol as Biomol import CDPL.Util as Util import CDPL.Pharm as Pharm import CDPL.Base as Base import CDPL.ConfGen as ConfGen import CDPL.Math as Math import tensorflow as tf i...
34.155689
151
0.694951
4a051412ae400cb0e882d714bd536db6736e9584
1,186
py
Python
tests/test_linechart.py
MrHemlock/pglet-python
0d8dd2bb07effdd1a09836641ffa9c7e4271b907
[ "MIT" ]
null
null
null
tests/test_linechart.py
MrHemlock/pglet-python
0d8dd2bb07effdd1a09836641ffa9c7e4271b907
[ "MIT" ]
4
2022-01-14T19:30:49.000Z
2022-01-19T15:59:03.000Z
tests/test_linechart.py
MrHemlock/pglet-python
0d8dd2bb07effdd1a09836641ffa9c7e4271b907
[ "MIT" ]
null
null
null
import pglet from pglet import LineChart from pglet.linechart import Data, Point def test_verticalbarchart_add(): lc = LineChart( legend=True, tooltips=True, stroke_width=4, y_min=0, y_max=100, y_ticks=2, y_format="{y}%", x_type="number", lin...
28.926829
81
0.48398
4a051422645db56d606c929467405bc572046cf6
9,308
py
Python
ml3d/datasets/semantic3d.py
MSaeedMp/Open3D-ML
5e6a007bbe8423291b8c4c760688975c95d2d5c1
[ "MIT" ]
346
2021-07-27T20:14:47.000Z
2022-03-31T12:19:39.000Z
ml3d/datasets/semantic3d.py
MSaeedMp/Open3D-ML
5e6a007bbe8423291b8c4c760688975c95d2d5c1
[ "MIT" ]
179
2021-07-27T15:32:33.000Z
2022-03-30T14:32:53.000Z
ml3d/datasets/semantic3d.py
MSaeedMp/Open3D-ML
5e6a007bbe8423291b8c4c760688975c95d2d5c1
[ "MIT" ]
92
2021-07-28T13:50:52.000Z
2022-03-30T09:24:33.000Z
import numpy as np import pandas as pd import os, sys, glob, pickle from pathlib import Path from os.path import join, exists, dirname, abspath from sklearn.neighbors import KDTree import logging from .utils import DataProcessing as DP from .base_dataset import BaseDataset, BaseDatasetSplit from ..utils import make_di...
34.095238
106
0.568006
4a051540b874277b0509cfd739f942608dab4d92
385
py
Python
catalogue/migrations/0003_contact_message_read.py
bodealamu/fullstackninja
bcb61a49fc6921c8b5a3f50c408ba6d366a287d9
[ "MIT" ]
null
null
null
catalogue/migrations/0003_contact_message_read.py
bodealamu/fullstackninja
bcb61a49fc6921c8b5a3f50c408ba6d366a287d9
[ "MIT" ]
8
2021-03-19T07:54:07.000Z
2022-03-12T00:35:32.000Z
catalogue/migrations/0003_contact_message_read.py
bodealamu/fullstackninja
bcb61a49fc6921c8b5a3f50c408ba6d366a287d9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-06-27 16:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalogue', '0002_contact'), ] operations = [ migrations.AddField( model_name='contact', name='message_read', ...
20.263158
53
0.597403
4a0515c4bc21d5b75f3979995e986c9e98d86175
3,132
py
Python
moto/core/responses.py
tinyclues/moto
8612e9d78223d56949eba53ef32bedc4bde0e7de
[ "Apache-2.0" ]
null
null
null
moto/core/responses.py
tinyclues/moto
8612e9d78223d56949eba53ef32bedc4bde0e7de
[ "Apache-2.0" ]
null
null
null
moto/core/responses.py
tinyclues/moto
8612e9d78223d56949eba53ef32bedc4bde0e7de
[ "Apache-2.0" ]
null
null
null
import datetime import json from urlparse import parse_qs, urlparse from moto.core.utils import camelcase_to_underscores, method_names_from_class class BaseResponse(object): def dispatch(self, request, full_url, headers): querystring = {} if hasattr(request, 'body'): # Boto ...
31.959184
91
0.61143
4a0515e3ebdc81679a3f7927abb851dac853a9f0
20,237
py
Python
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/scipy/optimize/slsqp.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/scipy/optimize/slsqp.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/scipy/optimize/slsqp.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
""" This module implements the Sequential Least Squares Programming optimization algorithm (SLSQP), originally developed by Dieter Kraft. See http://www.netlib.org/toms/733 Functions --------- .. autosummary:: :toctree: generated/ approx_jacobian fmin_slsqp """ __all__ = ['approx_jacobian', 'fmin_slsqp']...
36.463063
80
0.574986
4a05177431255b72e9dc5e52c0ac20db04577ad7
1,966
py
Python
deeplearning/fashion-mnist/casplt.py
c964309085/sas-viya-programming
0332ddc3670bfe9043d1fc9d41e346f5eae59994
[ "Apache-2.0" ]
128
2016-07-09T16:44:31.000Z
2022-03-31T22:01:35.000Z
deeplearning/fashion-mnist/casplt.py
c964309085/sas-viya-programming
0332ddc3670bfe9043d1fc9d41e346f5eae59994
[ "Apache-2.0" ]
14
2017-01-06T14:02:17.000Z
2022-02-10T02:28:41.000Z
deeplearning/fashion-mnist/casplt.py
c964309085/sas-viya-programming
0332ddc3670bfe9043d1fc9d41e346f5eae59994
[ "Apache-2.0" ]
141
2016-07-08T19:52:16.000Z
2022-03-01T03:30:33.000Z
import pandas as pd import matplotlib import numpy as np import matplotlib.pyplot as plt def plot_imgs(cas_table, class_list=range(10), images_per_class=2, figsize=(20,20), query_condition=None, font_size=12): """Function for plotting image data from a CASTable object""" class_description = {'class0':'T-s...
35.107143
124
0.62411
4a0518cbc3961ba337b888b4d96cdb8615611a4f
2,846
py
Python
user/user.py
rhysflook/progress-sockets
b155b7bd60ad8ed82da5f7afda3a86ee0b460729
[ "MIT" ]
null
null
null
user/user.py
rhysflook/progress-sockets
b155b7bd60ad8ed82da5f7afda3a86ee0b460729
[ "MIT" ]
null
null
null
user/user.py
rhysflook/progress-sockets
b155b7bd60ad8ed82da5f7afda3a86ee0b460729
[ "MIT" ]
null
null
null
import websockets import asyncio import requests import os import json class User: def __init__(self, id, websocket, app): self.id = id self.websocket = websocket self.app = app self.in_game = False self.opponent = None self.active = True def get_friends(sel...
30.276596
121
0.549192
4a051964290c5f53c61d5a05bb7cba77c18981e8
9,802
py
Python
Lib/test/test_site.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
3
2015-09-22T14:04:54.000Z
2021-07-15T07:07:11.000Z
Lib/test/test_site.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
1
2020-09-07T15:33:56.000Z
2020-09-07T15:33:56.000Z
Lib/test/test_site.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
2
2015-09-22T14:05:27.000Z
2015-11-08T20:15:42.000Z
"""Tests for 'site'. Tests assume the initial paths in sys.path once the interpreter has begun executing have not been removed. """ import unittest from test.test_support import TestSkipped, run_unittest, TESTFN, EnvironmentVarGuard import __builtin__ import os import sys import encodings import subprocess # Need to ...
37.128788
84
0.620486
4a05197ad8d4ba33745cac275574adeb772b8e41
14,818
py
Python
A3C/agent/manager/basic_manager.py
sarikayamehmet/Framework-for-Actor-Critic-deep-reinforcement-learning-algorithms
a2902f903956427074769b71b41ddc81e10276c3
[ "MIT" ]
8
2018-10-12T09:05:52.000Z
2021-07-28T11:08:35.000Z
A3C/agent/manager/basic_manager.py
sarikayamehmet/Framework-for-Actor-Critic-deep-reinforcement-learning-algorithms
a2902f903956427074769b71b41ddc81e10276c3
[ "MIT" ]
null
null
null
A3C/agent/manager/basic_manager.py
sarikayamehmet/Framework-for-Actor-Critic-deep-reinforcement-learning-algorithms
a2902f903956427074769b71b41ddc81e10276c3
[ "MIT" ]
1
2019-12-31T10:55:49.000Z
2019-12-31T10:55:49.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import deque import tensorflow as tf import numpy as np from agent.network import * from utils.buffer import Buffer, PrioritizedBuffer # from utils.schedules import Line...
42.096591
250
0.759414
4a051a8af348e91fcfdc8179ae1de62f09647f97
1,746
py
Python
test/_cythonize.py
jtwires/pystreaming
71c80557d32302895b9e0d18aaf5fe54d5b0b612
[ "MIT" ]
null
null
null
test/_cythonize.py
jtwires/pystreaming
71c80557d32302895b9e0d18aaf5fe54d5b0b612
[ "MIT" ]
null
null
null
test/_cythonize.py
jtwires/pystreaming
71c80557d32302895b9e0d18aaf5fe54d5b0b612
[ "MIT" ]
null
null
null
import unittest from streaming._cythonize import cythonize def load_tests(_, tests, __): import doctest import streaming._cythonize # pylint: disable=W0212 tests.addTests(doctest.DocTestSuite(streaming._cythonize)) return tests def _cyfunction(): """cydocs""" return 'cython' class _CyCla...
28.16129
72
0.636312
4a051ab54fcb7ef8182523e2647428679339979d
6,143
py
Python
mne/commands/mne_report.py
abramhindle/mne-python
989390a484cba219aae74c778b71568586f9edb2
[ "BSD-3-Clause" ]
null
null
null
mne/commands/mne_report.py
abramhindle/mne-python
989390a484cba219aae74c778b71568586f9edb2
[ "BSD-3-Clause" ]
1
2019-09-17T23:54:38.000Z
2019-09-17T23:54:38.000Z
mne/commands/mne_report.py
abramhindle/mne-python
989390a484cba219aae74c778b71568586f9edb2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python r"""Create mne report for a folder. Examples -------- Before getting started with ``mne report``, make sure the files you want to render follow the filename conventions defined by MNE: .. highlight:: console .. cssclass:: table-bordered .. rst-class:: midvalign ============ ===================...
39.127389
78
0.61159
4a051b8bfd8ef91d0dbe6001b4c2e790ad58adf7
12,275
py
Python
lib/googlecloudsdk/command_lib/domains/contacts_util.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/command_lib/domains/contacts_util.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/domains/contacts_util.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC. All Rights Reserved. # # 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 requir...
39.092357
139
0.72391
4a051bbf7a6b6ec2964f0017c63a128df1cf6886
12,234
py
Python
test/forward_backward_compatibility/check_forward_backward_compatibility.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
1
2022-03-16T06:35:10.000Z
2022-03-16T06:35:10.000Z
test/forward_backward_compatibility/check_forward_backward_compatibility.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
null
null
null
test/forward_backward_compatibility/check_forward_backward_compatibility.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
null
null
null
import argparse import datetime import re import sys import warnings from collections import defaultdict import torch from torch._C import parse_schema # The date specifies how long the allowlist exclusion should apply to. # # - If we NEVER give BC guarantee for an operator, you can put the # date arbitrarily ...
44.326087
102
0.646641
4a051bc2695c336640fb0949003881783bbf059e
2,398
py
Python
src/si/util/util.py
minimum16/SIB_MachineLearning
e032ce15d96a096a3ca57ba8318d3787755534e2
[ "Apache-2.0" ]
null
null
null
src/si/util/util.py
minimum16/SIB_MachineLearning
e032ce15d96a096a3ca57ba8318d3787755534e2
[ "Apache-2.0" ]
null
null
null
src/si/util/util.py
minimum16/SIB_MachineLearning
e032ce15d96a096a3ca57ba8318d3787755534e2
[ "Apache-2.0" ]
null
null
null
import itertools import numpy as np import pandas as pd # Y is reserved to idenfify dependent variables ALPHA = 'ABCDEFGHIJKLMNOPQRSTUVWXZ' __all__ = ['label_gen', 'euclidean', 'manhattan', 'sigmoid', 'train_test_split', 'add_intersect', 'to_categorical'] def label_gen(n): """ Generates a list of n d...
27.563218
116
0.609258
4a051c9d4abb08e05f46d16b8a7a346014f5f680
4,963
py
Python
game/data/scripts/quests/48_ToTheImmortalPlateau/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
10
2019-07-27T13:12:11.000Z
2022-01-15T19:13:26.000Z
game/data/scripts/quests/48_ToTheImmortalPlateau/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
1
2021-08-06T12:15:01.000Z
2021-08-09T10:18:47.000Z
game/data/scripts/quests/48_ToTheImmortalPlateau/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
2
2020-02-20T23:02:26.000Z
2020-11-22T09:27:51.000Z
# Created by CubicVirtuoso # Any problems feel free to drop by #l2j-datapack on irc.freenode.net import sys from ru.catssoftware.gameserver.model.quest import State from ru.catssoftware.gameserver.model.quest import QuestState from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest qn = "48_ToT...
40.024194
157
0.605279
4a051cc52d09b077fff1fdd3368177cf10e51d93
8,032
py
Python
test/neo4j_test.py
dhimmel/hetnetpy
aa16e6a7092c039a6b175a73a35c006e53acee20
[ "BSD-2-Clause-Patent", "CC0-1.0" ]
4
2018-09-29T03:29:59.000Z
2019-04-21T06:48:36.000Z
test/neo4j_test.py
dhimmel/hetnetpy
aa16e6a7092c039a6b175a73a35c006e53acee20
[ "BSD-2-Clause-Patent", "CC0-1.0" ]
null
null
null
test/neo4j_test.py
dhimmel/hetnetpy
aa16e6a7092c039a6b175a73a35c006e53acee20
[ "BSD-2-Clause-Patent", "CC0-1.0" ]
1
2019-05-24T08:56:18.000Z
2019-05-24T08:56:18.000Z
import pathlib import textwrap from neo4j import GraphDatabase import pytest import hetnetpy.neo4j import hetnetpy.readwrite def test_construct_pdp_query(): """ Test the pdp computation on the metapath from https://doi.org/10.1371/journal.pcbi.1004259.g002 """ # Since we're working on a known nicot...
34.324786
139
0.616534
4a051d2e7bb655e174c7daa4c75ba6064ba5156c
382
py
Python
setup.py
rmyers/stashboard
1fc025e895fdd96949364b0c323677680024f5de
[ "Apache-2.0" ]
null
null
null
setup.py
rmyers/stashboard
1fc025e895fdd96949364b0c323677680024f5de
[ "Apache-2.0" ]
null
null
null
setup.py
rmyers/stashboard
1fc025e895fdd96949364b0c323677680024f5de
[ "Apache-2.0" ]
null
null
null
import setuptools VERSION = '0.0.1' setuptools.setup( name='stashboard', version=VERSION, description='Stash Horizon Dashboard', author='Rackspace', author_email='stash-devs@rackspace.com', packages=setuptools.find_packages(exclude=['test']), include_package_data=True, install_requires...
21.222222
56
0.67801
4a051d7684c9a13adf1c0b4298237714f6b8c4fa
2,207
py
Python
Examples/Segmentation/NeighborhoodConnectedImageFilter.py
SimpleITK/Staging
905519b916f985db6573afa347143722b0aa9710
[ "Apache-2.0" ]
null
null
null
Examples/Segmentation/NeighborhoodConnectedImageFilter.py
SimpleITK/Staging
905519b916f985db6573afa347143722b0aa9710
[ "Apache-2.0" ]
null
null
null
Examples/Segmentation/NeighborhoodConnectedImageFilter.py
SimpleITK/Staging
905519b916f985db6573afa347143722b0aa9710
[ "Apache-2.0" ]
null
null
null
'''========================================================================= ' ' Copyright Insight Software Consortium ' ' 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 ' ' ...
26.914634
138
0.648391
4a051d97babb00953109011e49f892614b9750ec
8,670
py
Python
plot_mean_prob_dist_678_for_flux_YSO.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
null
null
null
plot_mean_prob_dist_678_for_flux_YSO.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
10
2018-03-14T08:44:12.000Z
2018-11-13T13:45:53.000Z
plot_mean_prob_dist_678_for_flux_YSO.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' Abstract: This is a program for ploting probability distribution of labels. Usage: plot_prob_dist.py [AI dir list] Editor and Practicer: Jacob975 ################################## # Python3 # # This code is made in python3 # ################################...
36.582278
94
0.580854
4a051e08a7d604d564584c34f4c3600acd20dc9e
20,433
py
Python
src/robot/parsing/model.py
gdw2/robot-framework
f25068edf1502e76ba8664d4b5ed1aebe0ee2434
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/parsing/model.py
gdw2/robot-framework
f25068edf1502e76ba8664d4b5ed1aebe0ee2434
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/parsing/model.py
gdw2/robot-framework
f25068edf1502e76ba8664d4b5ed1aebe0ee2434
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2010 Nokia Siemens Networks Oyj # # 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...
35.910369
89
0.577497
4a051e8a11b875f3c19bb1fb82d12a764c6df0a3
520
py
Python
data.py
1Dennis-Hosea/opinion
2e38d71c98803c294fea62b9cdc062ff02dee504
[ "MIT" ]
null
null
null
data.py
1Dennis-Hosea/opinion
2e38d71c98803c294fea62b9cdc062ff02dee504
[ "MIT" ]
null
null
null
data.py
1Dennis-Hosea/opinion
2e38d71c98803c294fea62b9cdc062ff02dee504
[ "MIT" ]
null
null
null
def Articles(): articles = [ { 'id': 1, 'title':'Article One', 'body':'The crying bood, sadness and anger, the weeping shore' }, { 'id': 2, 'title':'Article Two', 'body':'The crying bood, sadness and anger, the weeping ...
24.761905
76
0.442308
4a051e9f9f3c7f9b936849b4c32b6bc17ab97795
1,541
py
Python
Chapter13/educa/courses/urls.py
kableson/panda
dbcc112ce02fb7a5bb0acb84041d28c7caed9a2b
[ "Apache-2.0" ]
639
2018-05-31T22:28:21.000Z
2022-03-21T16:49:47.000Z
Chapter13/educa/courses/urls.py
kableson/panda
dbcc112ce02fb7a5bb0acb84041d28c7caed9a2b
[ "Apache-2.0" ]
43
2018-06-26T06:56:28.000Z
2022-03-31T18:32:57.000Z
Chapter13/educa/courses/urls.py
kableson/panda
dbcc112ce02fb7a5bb0acb84041d28c7caed9a2b
[ "Apache-2.0" ]
644
2018-06-10T22:37:24.000Z
2022-03-04T18:34:01.000Z
from django.urls import path from . import views urlpatterns = [ path('mine/', views.ManageCourseListView.as_view(), name='manage_course_list'), path('create/', views.CourseCreateView.as_view(), name='course_create'), path('<pk>/edit/', views.CourseUpdateView.a...
33.5
63
0.619079
4a05208f5c3bcbbc24a65c9a2c0c9384faac5d1d
1,757
py
Python
winregrc/application_identifiers.py
fengjixuchui/winreg-kb
3e793bee8806f980fe0cce6ad91cb474911a1fb1
[ "Apache-2.0" ]
1
2021-02-04T05:32:26.000Z
2021-02-04T05:32:26.000Z
winregrc/application_identifiers.py
scudette/winreg-kb
f81b8bcaef8365d0c52bf3c87af2bccb4274bece
[ "Apache-2.0" ]
null
null
null
winregrc/application_identifiers.py
scudette/winreg-kb
f81b8bcaef8365d0c52bf3c87af2bccb4274bece
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Windows application identifiers (AppID) collector.""" from __future__ import unicode_literals from winregrc import interface class ApplicationIdentifier(object): """Application identifier Attributes: description (str): description. guid (str): identifier. """ def __init_...
27.453125
77
0.708025
4a05214af516ce0800aa05118e4f1ca8281129c3
1,670
py
Python
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/large_face_list_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/large_face_list_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/large_face_list_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
37.954545
106
0.616766
4a0522ad7fb794b12b930c934903f842e5b0329e
653
py
Python
other/dingding/dingtalk/api/rest/OapiImChatScenegroupCreateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiImChatScenegroupCreateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiImChatScenegroupCreateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2021.03.01 ''' from dingtalk.api.base import RestApi class OapiImChatScenegroupCreateRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.chat_banned_type = None self.icon = None self.management_type = None self.mention_all_authority = None self.owner_us...
24.185185
50
0.750383
4a0522b7975cb85c28718d329951027700919a9a
4,990
py
Python
staff/tests.py
Gouldian0120/ascii_creator
9bcb9ca642dbdacc10cdc942ecb58ede65aa2539
[ "MIT" ]
null
null
null
staff/tests.py
Gouldian0120/ascii_creator
9bcb9ca642dbdacc10cdc942ecb58ede65aa2539
[ "MIT" ]
null
null
null
staff/tests.py
Gouldian0120/ascii_creator
9bcb9ca642dbdacc10cdc942ecb58ede65aa2539
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from django.contrib.auth.models import User from unittest import mock def _create_staff_user(username='admin', password='admin'): user = User.objects.create_user(username=username, password=password) user.is_staff = True user.save() retu...
41.932773
97
0.673146
4a05230cf6b931b4583207c98efc10acb5ea5be7
226
py
Python
video_production/annotations/venue.py
OddballSports-tv/obies-eyes
2dd4fc9686f852b9adf89edd3246ad642063ac8b
[ "Apache-2.0" ]
null
null
null
video_production/annotations/venue.py
OddballSports-tv/obies-eyes
2dd4fc9686f852b9adf89edd3246ad642063ac8b
[ "Apache-2.0" ]
1
2022-02-19T20:40:44.000Z
2022-02-19T20:40:44.000Z
video_production/annotations/venue.py
OddballSports-tv/obies-eyes
2dd4fc9686f852b9adf89edd3246ad642063ac8b
[ "Apache-2.0" ]
null
null
null
# imports from .annotation import Annotation import cv2 class Venue(Annotation): def __init__(self): super(Venue, self).__init__() def _annotate(self, frame, venue=None, *args, **kwargs): return frame
22.6
60
0.681416
4a05231eba1a0b716e4bd48641f8a390834d6ddf
23,793
py
Python
pybind/slxos/v17r_1_01a/openflow_state/interface/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_1_01a/openflow_state/interface/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_1_01a/openflow_state/interface/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
64.654891
810
0.704619
4a05232714d01b2f3f53df38c445a06fb6d6b6b7
11,589
py
Python
src/h3sed/lib/util.py
suurjaak/h3sed
e86e83d91bea0332493bf3b123c8e6071a27bd4b
[ "MIT" ]
null
null
null
src/h3sed/lib/util.py
suurjaak/h3sed
e86e83d91bea0332493bf3b123c8e6071a27bd4b
[ "MIT" ]
null
null
null
src/h3sed/lib/util.py
suurjaak/h3sed
e86e83d91bea0332493bf3b123c8e6071a27bd4b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Miscellaneous utility functions. ------------------------------------------------------------------------------ This file is part of h3sed - Heroes3 Savegame Editor. Released under the MIT License. @created 19.11.2011 @modified 15.01.2022 ----------------------------------...
37.872549
82
0.59056
4a05235186cffd316eced119a3e5b41907a65701
7,223
py
Python
lib/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
7
2019-12-21T00:14:14.000Z
2021-03-11T14:51:37.000Z
lib/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
29
2019-10-09T11:16:21.000Z
2020-06-23T09:32:09.000Z
lib/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
1
2021-05-07T10:13:31.000Z
2021-05-07T10:13:31.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteri...
34.070755
282
0.615534
4a05254bb96d1f61dbc3830207fc9ba77f1f8ed3
13,541
py
Python
cyclopeps/algs/simple_update.py
philliphelms/cyclopeps
f024d827a7412f4d9df10d6b9453c2692b1a74c3
[ "MIT" ]
null
null
null
cyclopeps/algs/simple_update.py
philliphelms/cyclopeps
f024d827a7412f4d9df10d6b9453c2692b1a74c3
[ "MIT" ]
null
null
null
cyclopeps/algs/simple_update.py
philliphelms/cyclopeps
f024d827a7412f4d9df10d6b9453c2692b1a74c3
[ "MIT" ]
null
null
null
from cyclopeps.tools.utils import * from cyclopeps.tools.peps_tools import * from cyclopeps.tools.ops_tools import * from numpy import float_ def absorb_lambdas(row,peps_col,vert_lambdas,left_lambdas,right_lambdas): """ """ peps1 = peps_col[row].copy() peps2 = peps_col[row+1].copy() # Absorb Bottom...
36.013298
108
0.518352
4a0525b4782ada53f72af5dcbe490ddab47f1fc2
5,615
py
Python
pyglet/gl/glu_info.py
pvcraven/pyglet
c967c4ab62b7e128107a64622fbfe0f029b10c52
[ "BSD-3-Clause" ]
null
null
null
pyglet/gl/glu_info.py
pvcraven/pyglet
c967c4ab62b7e128107a64622fbfe0f029b10c52
[ "BSD-3-Clause" ]
null
null
null
pyglet/gl/glu_info.py
pvcraven/pyglet
c967c4ab62b7e128107a64622fbfe0f029b10c52
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # Copyright (c) 2008-2020 pyglet contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the follo...
35.314465
95
0.666963
4a05266c07b0731d0ddc820a8f2cffa4684a8e4c
38
py
Python
proton/__init__.py
sergedroz/proton-python-client
4557a1c50706b8c66593524df0997fcc3f742f6f
[ "MIT" ]
3
2020-10-22T03:06:59.000Z
2020-10-22T10:19:07.000Z
proton/__init__.py
umair-akbar/proton-python-client
5746825d9b134c430678c36d986dae624fe8a407
[ "MIT" ]
null
null
null
proton/__init__.py
umair-akbar/proton-python-client
5746825d9b134c430678c36d986dae624fe8a407
[ "MIT" ]
null
null
null
from .api import Session, ProtonError
19
37
0.815789
4a05275d3a3c4fc5297d04e0dcd37813e1de9a1f
19,925
py
Python
postgresqleu/invoices/views.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
11
2020-08-20T11:16:02.000Z
2022-03-12T23:25:04.000Z
postgresqleu/invoices/views.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
71
2019-11-18T10:11:22.000Z
2022-03-27T16:12:57.000Z
postgresqleu/invoices/views.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
18
2019-11-18T09:56:31.000Z
2022-01-08T03:16:43.000Z
from django.shortcuts import render, get_object_or_404 from django.forms.models import inlineformset_factory from django.forms import ModelMultipleChoiceField from django.http import HttpResponseRedirect, HttpResponse, HttpResponseForbidden from django.contrib.auth.decorators import login_required from django.db import...
39.691235
252
0.665245
4a05276a817543a45d6b97cd32d9497504ffae1c
1,916
py
Python
limix_qep/moments/poisson/poisson_moments.py
Horta/limix-qep
b7f537396efb5cf0911f1870469eb02f2657a3b8
[ "MIT" ]
null
null
null
limix_qep/moments/poisson/poisson_moments.py
Horta/limix-qep
b7f537396efb5cf0911f1870469eb02f2657a3b8
[ "MIT" ]
null
null
null
limix_qep/moments/poisson/poisson_moments.py
Horta/limix-qep
b7f537396efb5cf0911f1870469eb02f2657a3b8
[ "MIT" ]
null
null
null
from __future__ import division from numpy import arange from numpy import sqrt from numpy import log from numpy import exp from limix_math.special import normal_pdf from limix_math.special import normal_logpdf class PoissonMoments(object): def __init__(self, nintervals): super(PoissonMoments, self)._...
30.412698
71
0.463987
4a0528120f8d26557e2caccfda192303ef9897f5
2,581
py
Python
src/model.py
marekgalovic/ray-qmix-sc2
e999939c3a827d4c64b29b3f99eb0342a0708233
[ "Apache-2.0" ]
4
2021-11-15T06:46:26.000Z
2022-02-22T06:31:45.000Z
src/model.py
marekgalovic/ray-qmix-sc2
e999939c3a827d4c64b29b3f99eb0342a0708233
[ "Apache-2.0" ]
null
null
null
src/model.py
marekgalovic/ray-qmix-sc2
e999939c3a827d4c64b29b3f99eb0342a0708233
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn.functional as F class AgentNet(torch.nn.Module): def __init__(self, obs_dim, n_actions, hidden_dim, **kwargs): super().__init__(**kwargs) self._obs_dim = obs_dim self._hidden_dim = hidden_dim self._n_actions = n_actions self.l1 = torch.nn.Lin...
30.364706
104
0.622239
4a05286380eb2b421e337bff8ec53a97de4a4d25
40
py
Python
voxblox_tango_interface/python/voxblox_tango_interface/__init__.py
ethz-asl/voxblox_deprecated
9833ea48584e5189e3edfa33f18bf536f64b1488
[ "BSD-3-Clause" ]
2
2021-03-24T03:40:17.000Z
2021-05-17T10:23:20.000Z
voxblox_tango_interface/python/voxblox_tango_interface/__init__.py
WANG-KX/voxblox
915410e8d6ce77300a8118419cb919176c9100b9
[ "BSD-3-Clause" ]
1
2018-09-18T13:56:48.000Z
2018-09-18T13:56:48.000Z
voxblox_tango_interface/python/voxblox_tango_interface/__init__.py
WANG-KX/voxblox
915410e8d6ce77300a8118419cb919176c9100b9
[ "BSD-3-Clause" ]
1
2018-04-18T19:34:48.000Z
2018-04-18T19:34:48.000Z
from voxblox_tango_interfacepy import *
20
39
0.875
4a0528902e979386cf34ad7d8213f445233f1418
7,752
py
Python
fluent.syntax/fluent/syntax/serializer.py
olleolleolle/python-fluent
9730d3f90a4bff7f43614d85b5c9e20205c10d3b
[ "Apache-2.0" ]
null
null
null
fluent.syntax/fluent/syntax/serializer.py
olleolleolle/python-fluent
9730d3f90a4bff7f43614d85b5c9e20205c10d3b
[ "Apache-2.0" ]
null
null
null
fluent.syntax/fluent/syntax/serializer.py
olleolleolle/python-fluent
9730d3f90a4bff7f43614d85b5c9e20205c10d3b
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from . import ast def indent(content): return " ".join( content.splitlines(True) ) def includes_new_line(elem): return isinstance(elem, ast.TextElement) and "\n" in elem.value def is_select_expr(elem): return ( isinstance(elem, ast.Placeab...
30.163424
79
0.653638
4a05289a5a8419799ba562eea00de25afd9b6fb2
1,048
py
Python
pe-solution/src/main/python/pep_719.py
filippovitale/pe
b036acb164bc0efce18299341b04a7acf226c7db
[ "MIT" ]
null
null
null
pe-solution/src/main/python/pep_719.py
filippovitale/pe
b036acb164bc0efce18299341b04a7acf226c7db
[ "MIT" ]
6
2021-08-16T05:50:40.000Z
2021-08-16T05:50:41.000Z
pe-solution/src/main/python/pep_719.py
filippovitale/pe
b036acb164bc0efce18299341b04a7acf226c7db
[ "MIT" ]
null
null
null
from functools import cache from math import sqrt tot, miss = 0, 0 @cache def is_split_and_addable(remaining: int, expected: int): global miss global tot miss += 1 remaining_digits = str(remaining) for i in range(1, len(remaining_digits)): left_split = int(remaining_digits[:i]) r...
22.297872
58
0.557252
4a0529c741ad857293e064fb5b35a7721c81c5c9
106,592
py
Python
circles/__init__.py
Mrjoulin/exam-project
9796b4de0344a66264093579cd6643735b8d6e68
[ "MIT" ]
null
null
null
circles/__init__.py
Mrjoulin/exam-project
9796b4de0344a66264093579cd6643735b8d6e68
[ "MIT" ]
null
null
null
circles/__init__.py
Mrjoulin/exam-project
9796b4de0344a66264093579cd6643735b8d6e68
[ "MIT" ]
null
null
null
import sys import sip import random import smtplib as smtp from PIL import Image, ImageDraw, ImageFont import logging from functools import partial from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import Qt, pyqtSlot, QEvent from circles.utils.utils import * from circles.db.db import * loggin...
43.25974
124
0.597418
4a052cb3d4b9137cec8e595a7a7641f18f91e274
400
py
Python
device/actuator/ACDCI_UC8/act_server/actions/delete.py
seanbrhn3/openc2-oif-device
805c55e44f59f7c86c5bf347a6fc3787e6903df4
[ "Apache-2.0" ]
null
null
null
device/actuator/ACDCI_UC8/act_server/actions/delete.py
seanbrhn3/openc2-oif-device
805c55e44f59f7c86c5bf347a6fc3787e6903df4
[ "Apache-2.0" ]
null
null
null
device/actuator/ACDCI_UC8/act_server/actions/delete.py
seanbrhn3/openc2-oif-device
805c55e44f59f7c86c5bf347a6fc3787e6903df4
[ "Apache-2.0" ]
null
null
null
""" Delete Target functions """ from ..utils import Dispatch, exceptions Delete = Dispatch("delete") @Delete.register def default(*extra_args, **extra_kwargs): return exceptions.target_not_implemented() @Delete.register(key="acdci_lw:drone") def drone(act, target=[], args={}, *extra_args, **extra_kwargs): ...
20
64
0.7025
4a052cbda8b72bff502871302d3c6770e741140d
4,719
py
Python
pontoon/teams/tests/test_utils.py
udacity/pontoon
e15a03a0c987615385b2a8c537bb18c99567f77e
[ "BSD-3-Clause" ]
1
2018-12-24T11:15:35.000Z
2018-12-24T11:15:35.000Z
pontoon/teams/tests/test_utils.py
udacity/pontoon
e15a03a0c987615385b2a8c537bb18c99567f77e
[ "BSD-3-Clause" ]
9
2020-09-06T05:18:03.000Z
2022-02-26T14:28:38.000Z
pontoon/teams/tests/test_utils.py
udacity/pontoon
e15a03a0c987615385b2a8c537bb18c99567f77e
[ "BSD-3-Clause" ]
1
2019-05-25T23:24:42.000Z
2019-05-25T23:24:42.000Z
""" Tests related to the utils provided in pontoon.teams.libraries """ import pytest from pontoon.base.models import ( PermissionChangelog, ) from pontoon.teams.utils import ( log_user_groups, log_group_members, ) from pontoon.test.factories import ( GroupFactory, UserFactory, ) @pytest.fixture ...
21.352941
74
0.667726
4a052d4b4af247f8ac768384357c005bc5d64405
4,320
py
Python
airflow/contrib/operators/mongo_to_s3.py
ltxhxpdd123/gateway-airflow
b839509d21a985c7a46fb5c6d54a4b77f1bbc4ae
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-08-21T07:30:14.000Z
2019-08-21T07:30:14.000Z
airflow/contrib/operators/mongo_to_s3.py
ltxhxpdd123/gateway-airflow
b839509d21a985c7a46fb5c6d54a4b77f1bbc4ae
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
6
2020-07-07T20:12:49.000Z
2021-09-29T17:26:42.000Z
airflow/contrib/operators/mongo_to_s3.py
ltxhxpdd123/gateway-airflow
b839509d21a985c7a46fb5c6d54a4b77f1bbc4ae
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-10-25T04:22:14.000Z
2019-10-25T04:22:14.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
33.488372
88
0.639815
4a052e47a7d9949161fd4edbc12c0d5faa27ff82
295
py
Python
tests/eth2/beacon/types/test_voluntary_exits.py
mhchia/trinity
e40e475064ca4605887706e9b0e4f8e2349b10cd
[ "MIT" ]
2
2020-01-30T21:51:00.000Z
2020-07-22T14:51:05.000Z
tests/eth2/beacon/types/test_voluntary_exits.py
mhchia/trinity
e40e475064ca4605887706e9b0e4f8e2349b10cd
[ "MIT" ]
null
null
null
tests/eth2/beacon/types/test_voluntary_exits.py
mhchia/trinity
e40e475064ca4605887706e9b0e4f8e2349b10cd
[ "MIT" ]
null
null
null
import ssz from eth2.beacon.types.voluntary_exits import ( VoluntaryExit, ) def test_defaults(sample_voluntary_exit_params): exit = VoluntaryExit(**sample_voluntary_exit_params) assert exit.signature[0] == sample_voluntary_exit_params['signature'][0] assert ssz.encode(exit)
22.692308
76
0.772881
4a052ec8886c45f8ccdcc1be948c69b89e08fcf7
2,478
py
Python
taxamo/models/refunds.py
javor/taxamo-python
47696115fa76c0f6950717132eee2b39c9fdbce7
[ "Apache-2.0" ]
null
null
null
taxamo/models/refunds.py
javor/taxamo-python
47696115fa76c0f6950717132eee2b39c9fdbce7
[ "Apache-2.0" ]
null
null
null
taxamo/models/refunds.py
javor/taxamo-python
47696115fa76c0f6950717132eee2b39c9fdbce7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2014-2020 by Taxamo 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 applic...
36.441176
81
0.621872
4a052f2034db86c68cc9923083e58aea1fb770c5
1,705
py
Python
config/wsgi.py
b3h3rkz/deven
27991dfae7e6e4851622edeac5efae8a2ff11a1c
[ "MIT" ]
1
2016-08-29T12:18:02.000Z
2016-08-29T12:18:02.000Z
config/wsgi.py
b3h3rkz/deven
27991dfae7e6e4851622edeac5efae8a2ff11a1c
[ "MIT" ]
null
null
null
config/wsgi.py
b3h3rkz/deven
27991dfae7e6e4851622edeac5efae8a2ff11a1c
[ "MIT" ]
null
null
null
""" WSGI config for deven project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` se...
46.081081
79
0.801173
4a052f6ec6f3227f609a1aff67e2878c9dff1a77
9,932
py
Python
conda/cli/main_clean.py
zdog234/conda
0fb7eedfa6a55668be50b388f9a7e05facda756b
[ "BSD-3-Clause" ]
null
null
null
conda/cli/main_clean.py
zdog234/conda
0fb7eedfa6a55668be50b388f9a7e05facda756b
[ "BSD-3-Clause" ]
null
null
null
conda/cli/main_clean.py
zdog234/conda
0fb7eedfa6a55668be50b388f9a7e05facda756b
[ "BSD-3-Clause" ]
1
2019-11-13T04:22:14.000Z
2019-11-13T04:22:14.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import, division, print_function, unicode_literals from collections import defaultdict import fnmatch from logging import getLogger from os import listdir, lstat, walk, unlink from os.path...
34.013699
99
0.591019
4a0530a16aa769aa8fa0e19bf307c4d0c5f89216
19,767
py
Python
manila_ui/tests/dashboards/project/test_data.py
dinaSap/manila-ui
3b8d685dd7830da3c8c703bab3355902dcb1e610
[ "Apache-2.0" ]
null
null
null
manila_ui/tests/dashboards/project/test_data.py
dinaSap/manila-ui
3b8d685dd7830da3c8c703bab3355902dcb1e610
[ "Apache-2.0" ]
null
null
null
manila_ui/tests/dashboards/project/test_data.py
dinaSap/manila-ui
3b8d685dd7830da3c8c703bab3355902dcb1e610
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 NetApp, Inc. # # 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 a...
36.47048
78
0.677645
4a05315aa7f03de64adc96679942bfa7e3457b0a
2,378
py
Python
pytudes/_2021/educative/grokking_the_coding_interview/in_place_reversal_of_a_linked_list/_2__reverse_a_sublist__medium.py
TeoZosa/pytudes
4f01ab20f936bb4b3f42d1946180d4a20fd95fbf
[ "Apache-2.0" ]
1
2022-02-08T09:47:35.000Z
2022-02-08T09:47:35.000Z
pytudes/_2021/educative/grokking_the_coding_interview/in_place_reversal_of_a_linked_list/_2__reverse_a_sublist__medium.py
TeoZosa/pytudes
4f01ab20f936bb4b3f42d1946180d4a20fd95fbf
[ "Apache-2.0" ]
62
2021-04-02T23:41:16.000Z
2022-03-25T13:16:10.000Z
pytudes/_2021/educative/grokking_the_coding_interview/in_place_reversal_of_a_linked_list/_2__reverse_a_sublist__medium.py
TeoZosa/pytudes
4f01ab20f936bb4b3f42d1946180d4a20fd95fbf
[ "Apache-2.0" ]
null
null
null
"""https://www.educative.io/courses/grokking-the-coding-interview/qVANqMonoB2 Categories: - Linked List - Blind 75 Examples: >>> assert (reverse_sub_list(None,0,0) is None) """ from pytudes._2021.utils.linked_list import NodeType, convert_list_to_linked_list def reverse_sub_list(head: NodeType, p: int...
29.358025
81
0.620269
4a0531ddec4e16f50fabe366772c119799bb10b2
12,361
py
Python
kenshi.py
Nattfarinn/kenshi-data-extractor
6cd7e726b3d51872f2742c90557b0a288552120d
[ "MIT" ]
null
null
null
kenshi.py
Nattfarinn/kenshi-data-extractor
6cd7e726b3d51872f2742c90557b0a288552120d
[ "MIT" ]
null
null
null
kenshi.py
Nattfarinn/kenshi-data-extractor
6cd7e726b3d51872f2742c90557b0a288552120d
[ "MIT" ]
1
2020-12-01T01:49:37.000Z
2020-12-01T01:49:37.000Z
import struct def flip_dict(input_dict): return {value: key for key, value in input_dict.items()} EXTRA_ITEM_REMOVED = (2147483647, 2147483647, 2147483647) FILE_TYPE = { 15: "SAVE", 16: "MOD" } FILE_TYPE_MAPPING = flip_dict(FILE_TYPE) RECORD_DATATYPE = { -2147483646: "NEW", ...
29.713942
73
0.551654
4a053247fb1ed6f42e7772f470b8f13a010b2c33
19,345
py
Python
src/prefect/agent/agent.py
louisditzel/prefect
b1a02fee623b965e756a38aa09059db780ab67eb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/prefect/agent/agent.py
louisditzel/prefect
b1a02fee623b965e756a38aa09059db780ab67eb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/prefect/agent/agent.py
louisditzel/prefect
b1a02fee623b965e756a38aa09059db780ab67eb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import ast import functools import logging import math import os import signal import sys import threading import time from concurrent.futures import Future, ThreadPoolExecutor from contextlib import contextmanager from typing import Any, Generator, Iterable, Set import pendulum from prefect import config from prefec...
38.080709
144
0.537193
4a053265c70730b62a3db8cc282ec8bc01edd1ce
64,015
py
Python
tools/latseq_logs.py
Orange-OpenSource/LatSeq
14c3bd210c4f9502c353a6de59be8e54435e6869
[ "BSD-3-Clause" ]
null
null
null
tools/latseq_logs.py
Orange-OpenSource/LatSeq
14c3bd210c4f9502c353a6de59be8e54435e6869
[ "BSD-3-Clause" ]
null
null
null
tools/latseq_logs.py
Orange-OpenSource/LatSeq
14c3bd210c4f9502c353a6de59be8e54435e6869
[ "BSD-3-Clause" ]
2
2021-06-22T09:32:45.000Z
2021-11-11T12:57:06.000Z
#!/usr/bin/python3 ################################################################################# # Software Name : LatSeq # Version: 1.0 # SPDX-FileCopyrightText: Copyright (c) 2020-2021 Orange Labs # SPDX-License-Identifier: BSD-3-Clause # # This software is distributed under the BSD 3-clause, # the text of which...
43.224173
182
0.523471
4a053301f9c15d49a1f3b6a6cadee33bdaac002a
7,724
py
Python
AirzoneCloud/Zone.py
max13fr/AirzoneCloud
ffeeb3b0bb47cc44eb8f7b45772aef0ef7a04d12
[ "MIT" ]
14
2020-04-22T22:44:49.000Z
2022-02-15T06:50:25.000Z
AirzoneCloud/Zone.py
max13fr/AirzoneCloud
ffeeb3b0bb47cc44eb8f7b45772aef0ef7a04d12
[ "MIT" ]
8
2020-04-29T18:09:40.000Z
2022-01-02T07:35:50.000Z
AirzoneCloud/Zone.py
max13fr/AirzoneCloud
ffeeb3b0bb47cc44eb8f7b45772aef0ef7a04d12
[ "MIT" ]
9
2020-05-13T20:02:05.000Z
2021-12-28T15:01:15.000Z
import logging from .contants import MODES_CONVERTER _LOGGER = logging.getLogger(__name__) class Zone: """Manage a Airzonecloud zone""" _api = None _system = None _data = {} def __init__(self, api, system, data): self._api = api self._system = system self._data = data ...
26.542955
144
0.537934
4a0533080af1c954bc764a3a8b5ec2bcd30f6b62
14,814
py
Python
sunpy/coordinates/tests/test_frames.py
ShubhamPandey28/sunpy
04d61f4cfce52032a342b0dcd3809260367a9939
[ "BSD-2-Clause" ]
null
null
null
sunpy/coordinates/tests/test_frames.py
ShubhamPandey28/sunpy
04d61f4cfce52032a342b0dcd3809260367a9939
[ "BSD-2-Clause" ]
null
null
null
sunpy/coordinates/tests/test_frames.py
ShubhamPandey28/sunpy
04d61f4cfce52032a342b0dcd3809260367a9939
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pytest from sunpy.time import parse_time import astropy.units as u from astropy.tests.helper import assert_quantity_allclose from astropy.coordinates import (UnitSphericalRepresentation, SphericalRepresentation, ...
35.782609
98
0.609964
4a05352d871bda0229c893c6aef06610b6a6e7ca
2,116
py
Python
utils/json_handler.py
AnyKeyShik/Kektor3000
3d1735bf82cabbeafe2593ef36fa23ae135a4940
[ "MIT" ]
null
null
null
utils/json_handler.py
AnyKeyShik/Kektor3000
3d1735bf82cabbeafe2593ef36fa23ae135a4940
[ "MIT" ]
4
2020-04-06T23:46:14.000Z
2020-04-07T00:57:18.000Z
utils/json_handler.py
AnyKeyShik/Kektor3000
3d1735bf82cabbeafe2593ef36fa23ae135a4940
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import pkg_resources from utils import debug class JsonHandler(object): """ Handler for simple get messages and consts for auth """ _resource_package = None _resource_path = None _tags = None _tags_user = None _commands = None _commands_user...
23.511111
93
0.610586
4a05353dbf07816718fbbf358e1c2f5679470058
6,145
py
Python
tests/test_dagfactory.py
coopergillan/dag-factory
0f95ef49473264d2cc9695b3833ebdf41ad759db
[ "MIT" ]
null
null
null
tests/test_dagfactory.py
coopergillan/dag-factory
0f95ef49473264d2cc9695b3833ebdf41ad759db
[ "MIT" ]
null
null
null
tests/test_dagfactory.py
coopergillan/dag-factory
0f95ef49473264d2cc9695b3833ebdf41ad759db
[ "MIT" ]
null
null
null
import os import datetime import pytest from dagfactory import dagfactory here = os.path.dirname(__file__) TEST_DAG_FACTORY = os.path.join(here, "fixtures/dag_factory.yml") INVALID_YAML = os.path.join(here, "fixtures/invalid_yaml.yml") INVALID_DAG_FACTORY = os.path.join(here, "fixtures/invalid_dag_factory.yml") ...
33.037634
79
0.523678
4a05360d8ccb06f1e2662826f1085fc5a034833d
521
py
Python
cacahuate/indexes.py
categulario/cacahuate
830b1656c8b5d183af637a47f9f3bcd04287f6b4
[ "MIT" ]
null
null
null
cacahuate/indexes.py
categulario/cacahuate
830b1656c8b5d183af637a47f9f3bcd04287f6b4
[ "MIT" ]
null
null
null
cacahuate/indexes.py
categulario/cacahuate
830b1656c8b5d183af637a47f9f3bcd04287f6b4
[ "MIT" ]
null
null
null
from pymongo import MongoClient def create_indexes(config): # Create index mongo = MongoClient(config['MONGO_URI']) db = getattr(mongo, config['MONGO_DBNAME']) db.execution.create_index("id", unique=True) db.execution.create_index("status") db.execution.create_index("started_at") db.execu...
28.944444
48
0.725528
4a05364f872b9177150debf55d79c3194a6b0438
17,479
py
Python
doc/conf.py
richardsimko/salt
a5fef269068c5bf8dba654b9060ef6ba0ccca31e
[ "Apache-2.0" ]
null
null
null
doc/conf.py
richardsimko/salt
a5fef269068c5bf8dba654b9060ef6ba0ccca31e
[ "Apache-2.0" ]
null
null
null
doc/conf.py
richardsimko/salt
a5fef269068c5bf8dba654b9060ef6ba0ccca31e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=C0103,W0622 ''' Sphinx documentation for Salt ''' import sys import os import re import types import time from sphinx.directives import TocTree class Mock(object): ''' Mock out specified imports. This allows autodoc to do its thing without having oodles of req'd...
30.664912
147
0.647863
4a05369a804d14051c7af57ebfb320fd22e1c098
71,982
py
Python
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/operations/_database_accounts_operations.py
ConnectionMaster/azure-cli-extensions
08d184f4efeac397c1ffcd21a83d651f4fad2782
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/operations/_database_accounts_operations.py
ConnectionMaster/azure-cli-extensions
08d184f4efeac397c1ffcd21a83d651f4fad2782
[ "MIT" ]
1
2020-06-12T01:39:40.000Z
2020-06-12T01:39:40.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/operations/_database_accounts_operations.py
ConnectionMaster/azure-cli-extensions
08d184f4efeac397c1ffcd21a83d651f4fad2782
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.883576
202
0.672418
4a0537f68f1de664e2dd07e3231f6bad343789bc
1,379
py
Python
setup.py
nschloe/launchpad-tools
20b178cd5851c6a23b95eeb957ac98fdebd8c5a1
[ "MIT" ]
null
null
null
setup.py
nschloe/launchpad-tools
20b178cd5851c6a23b95eeb957ac98fdebd8c5a1
[ "MIT" ]
null
null
null
setup.py
nschloe/launchpad-tools
20b178cd5851c6a23b95eeb957ac98fdebd8c5a1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # from setuptools import setup, find_packages import os import codecs # https://packaging.python.org/single_source_version/ base_dir = os.path.abspath(os.path.dirname(__file__)) about = {} with open(os.path.join(base_dir, "launchpadtools", "__about__.py"), "rb") as f: exec(f.read(), about) ...
32.069767
85
0.672951
4a053bf3aa5971c7c21c6bd256d53d0a0629b745
3,696
py
Python
webui/src/config/script/list_values.py
ptriolo/eve-pi
71d5452b83884bf0437340c2264056ebe4a27021
[ "MIT" ]
8
2020-06-12T13:10:51.000Z
2022-03-12T01:24:27.000Z
webui/src/config/script/list_values.py
ptriolo/eve-pi
71d5452b83884bf0437340c2264056ebe4a27021
[ "MIT" ]
9
2019-07-24T13:46:43.000Z
2020-07-23T02:30:34.000Z
webui/src/config/script/list_values.py
ptriolo/eve-pi
71d5452b83884bf0437340c2264056ebe4a27021
[ "MIT" ]
17
2019-07-03T14:00:42.000Z
2022-03-12T01:25:21.000Z
import abc import logging import re from model.model_helper import is_empty, fill_parameter_values, InvalidFileException, list_files from utils import process_utils from utils.file_utils import FileMatcher LOGGER = logging.getLogger('list_values') class ValuesProvider(metaclass=abc.ABCMeta): def get_required_p...
29.333333
96
0.639069
4a053d8a7fd09677f52e71295e6cafef2fddbe1a
1,219
py
Python
qutipy/Pauli/nQubit_Pauli_coeff.py
sumeetkhatri/QuTIPy
ca2a3344c1caa818504425496ea37278d80b1c44
[ "Apache-2.0" ]
null
null
null
qutipy/Pauli/nQubit_Pauli_coeff.py
sumeetkhatri/QuTIPy
ca2a3344c1caa818504425496ea37278d80b1c44
[ "Apache-2.0" ]
null
null
null
qutipy/Pauli/nQubit_Pauli_coeff.py
sumeetkhatri/QuTIPy
ca2a3344c1caa818504425496ea37278d80b1c44
[ "Apache-2.0" ]
null
null
null
''' This code is part of QuTIpy. (c) Copyright Sumeet Khatri, 2021 This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license in the LICENSE.txt file in the root directory of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. Any modifications or derivative wor...
25.395833
75
0.704676
4a053e03109d6f84e72810ac7620d1add74532ec
3,438
py
Python
lapsolver/tests/test_dense.py
cheind/py-hungarian-c
69f6e55efe1c1cd2e30139cc68c49e20a4fc3f49
[ "MIT" ]
110
2018-02-10T18:28:41.000Z
2022-03-23T19:26:13.000Z
lapsolver/tests/test_dense.py
cheind/py-hungarian-c
69f6e55efe1c1cd2e30139cc68c49e20a4fc3f49
[ "MIT" ]
16
2018-02-12T09:18:25.000Z
2021-04-29T02:07:23.000Z
lapsolver/tests/test_dense.py
cheind/py-hungarian-c
69f6e55efe1c1cd2e30139cc68c49e20a4fc3f49
[ "MIT" ]
20
2018-07-18T15:05:53.000Z
2022-03-18T09:36:27.000Z
import pytest import numpy as np import lapsolver as lap @pytest.mark.parametrize('dtype', ['float', 'int', 'float32', 'float64', 'int32', 'int64']) def test_small(dtype): costs = np.array([[6, 9, 1],[10, 3, 2],[8, 7, 4]], dtype=dtype) r = lap.solve_dense(costs) expected = np.array([[0, 1, 2], [2, 1, 0]]) ...
35.443299
91
0.588424
4a053e3acc06b9fdacb9c2c6e9d947a458371885
1,433
py
Python
bakery_lint/tests/upstream/__init__.py
anthrotype/fontbakery
5717c39e9c999b62cacbdfde1fc1ee96ae049e5a
[ "Apache-2.0" ]
null
null
null
bakery_lint/tests/upstream/__init__.py
anthrotype/fontbakery
5717c39e9c999b62cacbdfde1fc1ee96ae049e5a
[ "Apache-2.0" ]
null
null
null
bakery_lint/tests/upstream/__init__.py
anthrotype/fontbakery
5717c39e9c999b62cacbdfde1fc1ee96ae049e5a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright 2013 The Font Bakery Authors. All Rights Reserved. # # 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 re...
38.72973
93
0.699232
4a053f2f264d4588cae54475ad6a02736657882a
973
py
Python
models/gfnn.py
0penDynamic/GNN_models_pytorch_geometric
2e4c6f39ff28744245cc8ba4e31a6e8e512565be
[ "MIT" ]
16
2020-07-18T01:01:17.000Z
2021-10-22T03:19:07.000Z
models/gfnn.py
0penDynamic/GNN_models_pytorch_geometric
2e4c6f39ff28744245cc8ba4e31a6e8e512565be
[ "MIT" ]
1
2020-07-17T09:20:00.000Z
2020-08-06T00:26:06.000Z
models/gfnn.py
0penDynamic/GNN_models_pytorch_geometric
2e4c6f39ff28744245cc8ba4e31a6e8e512565be
[ "MIT" ]
2
2020-07-23T02:22:10.000Z
2020-09-16T14:58:20.000Z
import torch.nn as nn import torch.nn.functional as F from torch.optim import Adam from torch_geometric.nn import SGConv from datasets import get_planetoid_dataset class GFNN(nn.Module): def __init__(self, dataset, nhid, K): super(GFNN, self).__init__() self.gc1 = SGConv(dataset.num_features, nhi...
30.40625
74
0.681398
4a053f33179499ff3912ce11d20c3d7699fbd949
1,886
py
Python
sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/automl/nlp/nlp_limit_settings.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/automl/nlp/nlp_limit_settings.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/automl/nlp/nlp_limit_settings.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from azure.ai.ml._restclient.v2022_02_01_preview.models import ( NlpVerticalLimitSettings as RestNlpLimitSettings, ) from azure.ai.ml._...
33.678571
80
0.64316
4a053f3d13e307eef0e2b7a7a645141ce0453b1a
397
py
Python
randomuuid/wsgi.py
danielcoker/random-uuid
0cf459eb2a838923e9ee5f17e20dbd9ece27a4ce
[ "MIT" ]
null
null
null
randomuuid/wsgi.py
danielcoker/random-uuid
0cf459eb2a838923e9ee5f17e20dbd9ece27a4ce
[ "MIT" ]
null
null
null
randomuuid/wsgi.py
danielcoker/random-uuid
0cf459eb2a838923e9ee5f17e20dbd9ece27a4ce
[ "MIT" ]
null
null
null
""" WSGI config for randomuuid project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
4a053f9cd75b45ff164af226015ac8fde0011308
4,785
py
Python
autolens/mock/mock.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
autolens/mock/mock.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
autolens/mock/mock.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
import autofit as af from autofit.mock.mock import MockSearch, MockSamples class MockResult(af.MockResult): def __init__( self, samples=None, instance=None, model=None, analysis=None, search=None, mask=None, model_image=None, ma...
31.480263
118
0.627795
4a0544d7ff32bcbf3697dbbe98dfd3cf50721237
829
py
Python
tests/utils/tensorflow/test_numpy.py
orcaformation/chatbot_widget
cdbc0db5103a5a701878804ba183d5448823c798
[ "Apache-2.0" ]
37
2019-06-07T07:39:00.000Z
2022-01-27T08:32:57.000Z
tests/utils/tensorflow/test_numpy.py
orcaformation/chatbot_widget
cdbc0db5103a5a701878804ba183d5448823c798
[ "Apache-2.0" ]
50
2021-03-05T04:13:48.000Z
2022-03-01T13:36:06.000Z
tests/utils/tensorflow/test_numpy.py
orcaformation/chatbot_widget
cdbc0db5103a5a701878804ba183d5448823c798
[ "Apache-2.0" ]
65
2019-05-21T12:16:53.000Z
2022-02-23T10:54:15.000Z
import pytest import tensorflow as tf import numpy as np import rasa.utils.tensorflow.numpy from typing import Optional, Dict, Any @pytest.mark.parametrize( "value, expected_result", [ ({}, {}), ({"a": 1}, {"a": 1}), ({"a": tf.zeros((2, 3))}, {"a": np.zeros((2, 3))}), ], ) def test...
29.607143
78
0.670688
4a054595b354fc56a93e4664562ef67d04d9e103
1,765
py
Python
esp32_ulp/definesdb.py
wnienhaus/micropython-esp32-ulp
19d4b98d41fae74062d855760d7aaef1988804f6
[ "MIT" ]
63
2018-03-11T20:28:18.000Z
2022-02-03T15:03:24.000Z
esp32_ulp/definesdb.py
wnienhaus/micropython-esp32-ulp
19d4b98d41fae74062d855760d7aaef1988804f6
[ "MIT" ]
56
2018-03-11T18:48:18.000Z
2022-03-01T00:16:26.000Z
esp32_ulp/definesdb.py
wnienhaus/micropython-esp32-ulp
19d4b98d41fae74062d855760d7aaef1988804f6
[ "MIT" ]
14
2018-03-13T07:33:39.000Z
2022-02-03T15:03:27.000Z
import os import btree from .util import file_exists DBNAME = 'defines.db' class DefinesDB: def __init__(self): self._file = None self._db = None self._db_exists = None def clear(self): self.close() try: os.remove(DBNAME) self._db_exists = Fals...
22.341772
52
0.538244
4a0545ca86f36df53587ac4dd543ad4514c3f2fb
2,990
py
Python
cogs/quotes.py
darklink2458/Poggy
5a28aa0ea2dd16b323e377906d9eae456dbfda0e
[ "MIT" ]
1
2020-12-28T09:53:16.000Z
2020-12-28T09:53:16.000Z
cogs/quotes.py
darklink2458/Poggy
5a28aa0ea2dd16b323e377906d9eae456dbfda0e
[ "MIT" ]
4
2020-12-28T09:49:11.000Z
2020-12-29T22:49:36.000Z
cogs/quotes.py
darklink2458/Poggy
5a28aa0ea2dd16b323e377906d9eae456dbfda0e
[ "MIT" ]
null
null
null
import discord import random import json import os from discord.ext import commands,tasks class Quotes(commands.Cog): def __init__(self, client): self.client = client @commands.Cog.listener() async def on_ready(self): print('quotes Loaded!') @commands.command() async def ting(sel...
34.367816
137
0.619064
4a05476f63a5e010cc63750ca80bb63e37a079c2
3,306
py
Python
src1/profiles/cmb_functions.py
mlares/CBR_CrossCorr
f3599aed997e003d2d838ba5ad345d2f783a5bda
[ "MIT" ]
null
null
null
src1/profiles/cmb_functions.py
mlares/CBR_CrossCorr
f3599aed997e003d2d838ba5ad345d2f783a5bda
[ "MIT" ]
null
null
null
src1/profiles/cmb_functions.py
mlares/CBR_CrossCorr
f3599aed997e003d2d838ba5ad345d2f783a5bda
[ "MIT" ]
null
null
null
def readmap(filename): import healpy as hp hp_data, hp_header = hp.read_map(filename, h=True,field=(0,3))#, nest=None) # estoy leyendo la columna cero Y la tres #hp_data, hp_header = hp.read_map(filename, h=True)#, nest=None) hp_data_sel=hp_data[0] # <---- elijo la columna de los datos hp_mas...
26.238095
161
0.548094
4a05493dfc73a6a73a86d1b58e58d9cf424f2ad0
5,141
py
Python
cqr/get_meps_data/meps_dataset_panel19_fy2015_reg.py
allenbai01/cp-gen
41c81feda79400979a4b9fd6fc33c68d8a8d6fd8
[ "MIT" ]
86
2019-05-15T10:23:11.000Z
2022-03-05T23:10:17.000Z
get_meps_data/meps_dataset_panel19_fy2015_reg.py
chrinide/cqr
27f56e274fac9b41a7bc639490868c3ae7d627dc
[ "MIT" ]
2
2021-06-03T17:19:24.000Z
2021-11-25T17:26:19.000Z
get_meps_data/meps_dataset_panel19_fy2015_reg.py
chrinide/cqr
27f56e274fac9b41a7bc639490868c3ae7d627dc
[ "MIT" ]
30
2019-05-10T07:11:52.000Z
2022-03-10T15:34:51.000Z
# This code is a variant of # https://github.com/IBM/AIF360/blob/master/aif360/datasets/meps_dataset_panel19_fy2015.py from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import pandas as pd from save_dataset import Save...
49.432692
137
0.573429
4a0549ca9e298615c94ca69550bda72e7390bff9
6,864
py
Python
docker/context/context.py
wpjunior/docker-py
030af62dca982e62ed418314c857da1f90ce4282
[ "Apache-2.0" ]
2
2020-03-09T03:39:05.000Z
2020-03-23T09:56:09.000Z
docker/context/context.py
wpjunior/docker-py
030af62dca982e62ed418314c857da1f90ce4282
[ "Apache-2.0" ]
6
2021-03-02T01:30:46.000Z
2022-02-26T03:15:16.000Z
docker/context/context.py
wpjunior/docker-py
030af62dca982e62ed418314c857da1f90ce4282
[ "Apache-2.0" ]
3
2020-03-23T09:56:08.000Z
2020-06-14T05:30:17.000Z
import os import json from shutil import copyfile, rmtree from docker.tls import TLSConfig from docker.errors import ContextException from docker.context.config import get_meta_dir from docker.context.config import get_meta_file from docker.context.config import get_tls_dir from docker.context.config import get_context...
32.842105
78
0.540938
4a0549f31e0495e639a599202b126a13266033ba
6,281
py
Python
bcbio/ngsalign/novoalign.py
markdunning/bcbio-nextgen
37b69efcc5b2b3713b8d5cd207cece4cb343380d
[ "MIT" ]
1
2021-11-11T18:49:15.000Z
2021-11-11T18:49:15.000Z
bcbio/ngsalign/novoalign.py
karegapauline/bcbio-nextgen
9be442305a54c601e4d3f5c7b09d8f9835c677fd
[ "MIT" ]
null
null
null
bcbio/ngsalign/novoalign.py
karegapauline/bcbio-nextgen
9be442305a54c601e4d3f5c7b09d8f9835c677fd
[ "MIT" ]
null
null
null
"""Next-gen sequencing alignment with Novoalign: http://www.novocraft.com For BAM input handling this requires: novoalign (with license for multicore) samtools """ import os import subprocess from bcbio import bam, utils from bcbio.ngsalign import alignprep, postalign from bcbio.pipeline import config_utils from ...
43.020548
105
0.649578
4a054acfd79f55324a66a45f692cccaf924458fa
834
py
Python
users/forms.py
cantoniazzi/me-too
557987d4863061b81c82e38875edeeb05fcae8c9
[ "MIT" ]
null
null
null
users/forms.py
cantoniazzi/me-too
557987d4863061b81c82e38875edeeb05fcae8c9
[ "MIT" ]
null
null
null
users/forms.py
cantoniazzi/me-too
557987d4863061b81c82e38875edeeb05fcae8c9
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User class UserRegisterForm(forms.Form): name = forms.CharField(required = True) email = forms.CharField(required = True) password = forms.CharField(required = True) fone = forms.CharField(required = True) company_name = forms...
30.888889
88
0.726619
4a054b9f2be2085448d8a80d0c40d59d271bfffd
7,516
py
Python
datasets/loaders.py
fbuchert/mixmatch-pytorch
5dc989432bf26561b3c40ea03b319d12c7ace20b
[ "MIT" ]
null
null
null
datasets/loaders.py
fbuchert/mixmatch-pytorch
5dc989432bf26561b3c40ea03b319d12c7ace20b
[ "MIT" ]
null
null
null
datasets/loaders.py
fbuchert/mixmatch-pytorch
5dc989432bf26561b3c40ea03b319d12c7ace20b
[ "MIT" ]
null
null
null
from typing import Union, Tuple, NamedTuple, List import numpy as np from torch.utils.data import ( Dataset, DataLoader, Sampler, RandomSampler, WeightedRandomSampler, ) def get_sampler( dataset: Dataset, num_samples: int, reweighted: bool = False, median_freq: bool = False, r...
37.58
120
0.696381
4a054bb8b23dcaa57064a88846828347c1119eae
3,017
py
Python
ttp/src/iam_backdoor_users_password_src.py
blackbotinc/AWS-Attack
ad4668ab60173aabce3c6b9c7685160be5e3f14d
[ "Apache-2.0", "BSD-3-Clause" ]
26
2021-03-29T13:39:28.000Z
2022-03-21T10:57:58.000Z
ttp/src/iam_backdoor_users_password_src.py
blackbotinc/AWS-Attack
ad4668ab60173aabce3c6b9c7685160be5e3f14d
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ttp/src/iam_backdoor_users_password_src.py
blackbotinc/AWS-Attack
ad4668ab60173aabce3c6b9c7685160be5e3f14d
[ "Apache-2.0", "BSD-3-Clause" ]
8
2021-02-23T12:17:04.000Z
2022-02-25T13:28:14.000Z
#!/usr/bin/env python3 import datetime import argparse from random import choice import string from botocore.exceptions import ClientError def main(args, awsattack_main, data=None): session = awsattack_main.get_active_session() print = awsattack_main.print users = data summary_data = {} client = ...
37.246914
94
0.628107
4a054be41d8b24b50078921e01a3437e85b8ea2a
204,121
py
Python
git_cl.py
iamanother/depot_tools
3b563091836025e39b6b44ec0fbdde2d7ba36024
[ "BSD-3-Clause" ]
null
null
null
git_cl.py
iamanother/depot_tools
3b563091836025e39b6b44ec0fbdde2d7ba36024
[ "BSD-3-Clause" ]
null
null
null
git_cl.py
iamanother/depot_tools
3b563091836025e39b6b44ec0fbdde2d7ba36024
[ "BSD-3-Clause" ]
1
2021-06-29T00:41:44.000Z
2021-06-29T00:41:44.000Z
#!/usr/bin/env vpython # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Copyright (C) 2008 Evan Martin <martine@danga.com> """A git-command for integrating reviews on Gerrit.""" from __future__ impo...
37.460268
97
0.653485
4a054d21a70c794b56caa69afea63198cb3f598a
59,918
py
Python
androguard/core/bytecodes/axml.py
xiaopiandao/androguard
abed877951cd91cb2cf523447ff12f3bb38f8d2a
[ "Apache-2.0" ]
3
2015-10-23T13:36:07.000Z
2021-07-22T23:30:41.000Z
androguard/core/bytecodes/axml.py
xiaopiandao/androguard
abed877951cd91cb2cf523447ff12f3bb38f8d2a
[ "Apache-2.0" ]
null
null
null
androguard/core/bytecodes/axml.py
xiaopiandao/androguard
abed877951cd91cb2cf523447ff12f3bb38f8d2a
[ "Apache-2.0" ]
1
2019-11-28T05:03:18.000Z
2019-11-28T05:03:18.000Z
from __future__ import division from __future__ import print_function from future import standard_library standard_library.install_aliases() from builtins import chr from builtins import range from builtins import object from androguard.core import bytecode from androguard.core.resources import public from struct i...
34.836047
186
0.551537
4a054e62161e2e97a1cee6995013ebee68189c19
1,517
py
Python
src/selectedtests/task_mappings/version_limit.py
isabella232/selected-tests
890cd5f39f5571d50f0406b4c25a1a2eef1006a3
[ "Apache-2.0" ]
2
2020-04-13T11:26:57.000Z
2022-01-21T00:03:52.000Z
src/selectedtests/task_mappings/version_limit.py
mongodb/selected-tests
467f71f1d45b06ac3cc5db252f18658f8cd93083
[ "Apache-2.0" ]
54
2019-09-26T18:56:34.000Z
2022-03-12T01:07:00.000Z
src/selectedtests/task_mappings/version_limit.py
isabella232/selected-tests
890cd5f39f5571d50f0406b4c25a1a2eef1006a3
[ "Apache-2.0" ]
6
2019-10-01T14:24:27.000Z
2020-02-13T15:53:47.000Z
"""VersionLimit class used to determine whether an Evergreen version is out of the desired range.""" from datetime import datetime from typing import Optional from evergreen.api import Version class VersionLimit(object): """Represents the point in time at which to start analyzing versions of an evergreen project...
37
100
0.675016
4a054e7b889a780c685e8a2fffca50f286e86d5a
10,493
py
Python
corehq/apps/reports/standard/cases/basic.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/reports/standard/cases/basic.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/reports/standard/cases/basic.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals from django.contrib import messages from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy from elasticsearch import TransportError from corehq.ap...
36.947183
223
0.635852
4a054ec76f9b310f6f902721917ae7bc225bf8fa
2,312
py
Python
PiCN/Layers/ICNLayer/ForwardingInformationBase/ForwardingInformationBaseMemoryPrefix.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
PiCN/Layers/ICNLayer/ForwardingInformationBase/ForwardingInformationBaseMemoryPrefix.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
PiCN/Layers/ICNLayer/ForwardingInformationBase/ForwardingInformationBaseMemoryPrefix.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
""" A in memory Forwarding Information Base using longest matching""" from typing import List from PiCN.Layers.ICNLayer.ForwardingInformationBase.BaseForwardingInformationBase import BaseForwardingInformationBase, \ ForwardingInformationBaseEntry from PiCN.Packets import Name class ForwardingInformationBaseMemo...
39.186441
121
0.639706
4a054f1862debf693dd99b6edd4f4c2685cae27b
2,087
py
Python
thesis/introspect_i2a.py
Driesssens/ppo-a2c-thesis
4f7b8c8290940bb4dc40cf067a99b890655c55ec
[ "MIT" ]
1
2021-03-22T15:01:04.000Z
2021-03-22T15:01:04.000Z
thesis/introspect_i2a.py
Driesssens/ppo-a2c-thesis
4f7b8c8290940bb4dc40cf067a99b890655c55ec
[ "MIT" ]
null
null
null
thesis/introspect_i2a.py
Driesssens/ppo-a2c-thesis
4f7b8c8290940bb4dc40cf067a99b890655c55ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import gym import time from gym_minigrid.minigrid import Grid try: import gym_minigrid except ImportError: pass import utils from thesis.environments import SmallUnlock8x8 from thesis.wrappers import MyFullyObservableWrapperBroadcast, MyFullyObservableWrapper, MyFullyOb...
27.103896
173
0.714902
4a054f2a580870ad82eb41ebd8eeb9a0da85cd92
3,704
py
Python
Lib/distutils/tests/test_build_py.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
3
2015-09-22T14:04:54.000Z
2021-07-15T07:07:11.000Z
Lib/distutils/tests/test_build_py.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
1
2020-09-07T15:33:56.000Z
2020-09-07T15:33:56.000Z
Lib/distutils/tests/test_build_py.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
2
2015-09-22T14:05:27.000Z
2015-11-08T20:15:42.000Z
"""Tests for distutils.command.build_py.""" import os import sys import StringIO import unittest from distutils.command.build_py import build_py from distutils.core import Distribution from distutils.errors import DistutilsFileError from distutils.tests import support class BuildPyTestCase(support.TempdirManager, ...
32.491228
76
0.590173