hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
2d9da026041108184575b3582f87c61b08909917
25
py
Python
tests/integration/__init__.py
JawboneHealth/jhhalchemy
68854e1ac5ee959287de70fd156d187c9025703c
[ "Apache-2.0" ]
2
2017-09-21T23:10:25.000Z
2018-01-20T16:21:29.000Z
tests/integration/__init__.py
JawboneHealth/jhhalchemy
68854e1ac5ee959287de70fd156d187c9025703c
[ "Apache-2.0" ]
3
2018-06-27T16:13:54.000Z
2018-06-28T20:10:31.000Z
tests/integration/__init__.py
JawboneHealth/jhhalchemy
68854e1ac5ee959287de70fd156d187c9025703c
[ "Apache-2.0" ]
1
2018-01-25T00:09:53.000Z
2018-01-25T00:09:53.000Z
""" Integration tests """
8.333333
17
0.64
2d9da86a000651e675d7a430dbeeb9ea8de81ec0
21,860
py
Python
deltacat/storage/interface.py
rkenmi/deltacat
b1fe11ad2732b0134436b0337e8c4ec84bc19d4a
[ "Apache-2.0" ]
null
null
null
deltacat/storage/interface.py
rkenmi/deltacat
b1fe11ad2732b0134436b0337e8c4ec84bc19d4a
[ "Apache-2.0" ]
null
null
null
deltacat/storage/interface.py
rkenmi/deltacat
b1fe11ad2732b0134436b0337e8c4ec84bc19d4a
[ "Apache-2.0" ]
null
null
null
import pyarrow as pa from deltacat.storage import Delta, DeltaLocator, Partition, \ ListResult, Namespace, Table, TableVersion, Stream, \ StreamLocator, DeltaType, LifecycleState, SchemaConsistencyType, \ LocalTable, LocalDataset, DistributedDataset, Manifest, ManifestAuthor from deltacat.types.media import...
37.176871
80
0.692955
2d9db05f275c25ce3ebf0e98af1b27b82c1229e6
1,187
py
Python
iris_sdk/models/site.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/site.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/site.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from __future__ import division, absolute_import, print_function from future.builtins import super from iris_sdk.models.base_resource import BaseResource, BaseResourceList from iris_sdk.models.data.site import SiteData from iris_sdk.models.orders import Orders from iris_sdk.models.portins import...
25.255319
72
0.707666
2d9db2134723111cd848fd26b6eda8bc147c5f89
18,380
py
Python
odata/odata.py
cknolla/flask-smorest-sqlalchemy-odata
83f52777f6eace8212c2841c2211cebfa79c48f8
[ "MIT" ]
3
2021-05-20T23:48:00.000Z
2022-02-10T04:30:12.000Z
odata/odata.py
cknolla/flask-smorest-sqlalchemy-odata
83f52777f6eace8212c2841c2211cebfa79c48f8
[ "MIT" ]
null
null
null
odata/odata.py
cknolla/flask-smorest-sqlalchemy-odata
83f52777f6eace8212c2841c2211cebfa79c48f8
[ "MIT" ]
null
null
null
"""Odata library for flask-smorest and sqlalchemy.""" import logging import re from collections import OrderedDict, namedtuple from copy import deepcopy from dataclasses import dataclass, field from functools import wraps from http import HTTPStatus from datetime import datetime from typing import Callable import str...
37.056452
120
0.533896
2d9de707d4db75b08ee4ea4ce9c65a9fee3d9c42
90
py
Python
onyx/core/Tokens.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
2
2020-04-14T21:16:07.000Z
2020-07-09T07:30:44.000Z
onyx/core/Tokens.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
2
2020-04-01T12:33:36.000Z
2020-04-01T12:33:49.000Z
onyx/core/Tokens.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
null
null
null
from . import api from onyx.api.tokens import Tokens api.add_resource(Tokens, '/tokens')
18
35
0.766667
2d9df4aef4d812e2f177a4a92ab284b248dc343c
9,333
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# 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 may ...
41.852018
211
0.678989
2d9e3f613e4fd51fa4eee5974df957905a10edb5
744
py
Python
examples/demo_fds_extraction.py
working-girl/OCT-Converter
b6fc55075d2e8551440637825489a9c3ba2a0a9e
[ "MIT" ]
81
2019-07-30T04:51:20.000Z
2022-03-14T19:50:43.000Z
examples/demo_fds_extraction.py
working-girl/OCT-Converter
b6fc55075d2e8551440637825489a9c3ba2a0a9e
[ "MIT" ]
34
2019-08-26T10:05:50.000Z
2022-03-31T14:42:21.000Z
examples/demo_fds_extraction.py
working-girl/OCT-Converter
b6fc55075d2e8551440637825489a9c3ba2a0a9e
[ "MIT" ]
30
2019-09-14T05:11:22.000Z
2022-03-03T20:38:51.000Z
from oct_converter.readers import FDS # An example .fds file can be downloaded from the Biobank website: # https://biobank.ndph.ox.ac.uk/showcase/refer.cgi?id=30 filepath = '/home/mark/Downloads/eg_oct_fds(1).fds' fds = FDS(filepath) oct_volume = fds.read_oct_volume() # returns an OCT volume with additional metadata...
46.5
104
0.780914
2d9e4495b0bbe9733a764c5ba3ea5b88eab37e7b
11,208
py
Python
samples/spotlight/CISA_known_exploited_vulns/known_exploited_vulns.py
rayheffer/falconpy
72abcd07b18f193a1491a4d41a71ce2f1c1e73e6
[ "Unlicense" ]
null
null
null
samples/spotlight/CISA_known_exploited_vulns/known_exploited_vulns.py
rayheffer/falconpy
72abcd07b18f193a1491a4d41a71ce2f1c1e73e6
[ "Unlicense" ]
null
null
null
samples/spotlight/CISA_known_exploited_vulns/known_exploited_vulns.py
rayheffer/falconpy
72abcd07b18f193a1491a4d41a71ce2f1c1e73e6
[ "Unlicense" ]
null
null
null
"""DHS Known Vulnerabilities correlated with CrowdStrike Spotlight. _______ __ __ __ __ __ | _ .-----.-----| |_| |__.-----| |--| |_ | 1___| _ | _ | _| | | _ | | _| |____ | __|_____|____|__|__|___ |__|__|____| |: 1 |__| |_____| |::.. . | `-----...
40.172043
123
0.697091
2d9e4ad53ec8ebda49346a1f9e0240372f3d6719
1,000
py
Python
datasets/DET/seed/COCO.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
datasets/DET/seed/COCO.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
datasets/DET/seed/COCO.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
from datasets.base.factory_seed import BaseSeed from datasets.types.data_split import DataSplit from enum import Flag, auto class COCO_Seed(BaseSeed): def __init__(self, root_path=None, data_split=DataSplit.Training | DataSplit.Validation, version: int = 2014, include_crowd=False): if version == 2014: ...
37.037037
135
0.652
2d9e900e2a0b8094f1ce7e72372d469f453eb8cc
2,785
py
Python
old/spikeforest_batch_run/summarize_sorting.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
old/spikeforest_batch_run/summarize_sorting.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
old/spikeforest_batch_run/summarize_sorting.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
from matplotlib import pyplot as plt from PIL import Image import mlprocessors as mlpr from kbucket import client as kb import spikeextractors as si import spikewidgets as sw import os def summarize_sorting(result): ret={'plots':{}} #unit_waveforms=PlotUnitWaveforms.execute( # recording_dir=result['record...
41.567164
103
0.729982
2d9e96bb0f77064c01d707eddbd230219cad9945
58,954
py
Python
ai4water/hyperopt/hyper_opt.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
12
2020-10-13T08:23:17.000Z
2021-01-22T04:36:21.000Z
ai4water/hyperopt/hyper_opt.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
1
2020-10-15T02:42:52.000Z
2020-10-15T02:51:07.000Z
ai4water/hyperopt/hyper_opt.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
2
2020-11-23T04:45:38.000Z
2020-11-26T10:12:34.000Z
import os import json import copy import inspect import warnings from typing import Union from collections import OrderedDict import sklearn import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import GridSearchCV, RandomizedSearchCV from sklearn.model_selection import Pa...
40.490385
146
0.573379
2d9e9d21504fafa32665bd256c900077892e43e5
1,372
py
Python
zeeguu/core/model/teacher_cohort_map.py
zeeguu-ecosystem/Zeeguu-API
4c4e614003ae5aeb4c4e802cc84602894755d27a
[ "MIT" ]
8
2018-02-06T15:47:55.000Z
2021-05-26T15:24:49.000Z
zeeguu/core/model/teacher_cohort_map.py
zeeguu-ecosystem/Zeeguu-API
4c4e614003ae5aeb4c4e802cc84602894755d27a
[ "MIT" ]
57
2018-02-02T19:54:38.000Z
2021-07-15T15:45:15.000Z
zeeguu/core/model/teacher_cohort_map.py
zeeguu-ecosystem/Zeeguu-API
4c4e614003ae5aeb4c4e802cc84602894755d27a
[ "MIT" ]
13
2017-10-12T09:05:19.000Z
2020-02-19T09:38:01.000Z
import zeeguu.core from sqlalchemy import Column, Integer, ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.orm.exc import NoResultFound from zeeguu.core.model import User from zeeguu.core.model.cohort import Cohort class TeacherCohortMap(zeeguu.core.db.Model): __table_args__ = {'mysql_collate':...
30.488889
95
0.68586
2d9ea59fc5c06640a6eff3ba0ada31b72d29660b
7,290
py
Python
tests/cloudformation/graph/graph_builder/test_local_graph.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
tests/cloudformation/graph/graph_builder/test_local_graph.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
tests/cloudformation/graph/graph_builder/test_local_graph.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
import os from unittest import TestCase from checkov.cloudformation.cfn_utils import create_definitions from checkov.cloudformation.graph_builder.graph_components.block_types import BlockType from checkov.cloudformation.graph_builder.graph_to_definitions import convert_graph_vertices_to_definitions from checkov.cloudf...
55.227273
199
0.713717
2d9eb20ce122fd32075426a09ff3378915d73e75
278
py
Python
Courses/Udacity/CS101/Lesson_3_Problem_Set/04-Greatest/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2019-02-13T12:02:26.000Z
2019-02-13T12:02:26.000Z
Courses/Udacity/CS101/Lesson_3_Problem_Set/04-Greatest/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2018-08-13T15:58:33.000Z
2018-08-13T15:58:33.000Z
Courses/Udacity/CS101/Lesson_3_Problem_Set/04-Greatest/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
2
2017-08-10T20:01:29.000Z
2021-07-01T08:39:13.000Z
# Define a procedure, greatest, # that takes as input a list # of positive numbers, and # returns the greatest number # in that list. If the input # list is empty, the output # should be 0. def greatest(): #print greatest([4,23,1]) #>>> 23 #print greatest([]) #>>> 0
13.9
31
0.654676
2d9ecdfa9e8cfb02ebb513c4ceac79e053a84079
1,493
py
Python
google-cloud-sdk/.install/.backup/lib/surface/compute/accelerator_types/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/compute/accelerator_types/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/compute/accelerator_types/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2017 Google Inc. 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 required by applicable law or ag...
32.456522
74
0.736772
2d9efec9d1281a0078e8cd37c8fe64241a8fb7eb
9,571
py
Python
src/bloombox/schema/analytics/commerce/ShopAnalytics_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
4
2018-01-23T20:13:11.000Z
2018-07-28T22:36:09.000Z
src/bloombox/schema/analytics/commerce/ShopAnalytics_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
159
2018-02-02T09:55:52.000Z
2021-07-21T23:41:59.000Z
src/bloombox/schema/analytics/commerce/ShopAnalytics_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
3
2018-01-23T20:13:15.000Z
2020-01-17T01:07:53.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: analytics/commerce/ShopAnalytics.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.prot...
36.391635
1,111
0.741929
2d9f259cc89d56bf2a724ee2f86b91d775b0dc11
1,290
py
Python
manticore/core/cpu/register.py
evanpjensen/manticore
3f74e3b7f80757b493bdce3d13178043513ea102
[ "Apache-2.0" ]
null
null
null
manticore/core/cpu/register.py
evanpjensen/manticore
3f74e3b7f80757b493bdce3d13178043513ea102
[ "Apache-2.0" ]
null
null
null
manticore/core/cpu/register.py
evanpjensen/manticore
3f74e3b7f80757b493bdce3d13178043513ea102
[ "Apache-2.0" ]
null
null
null
from ..smtlib import Operators, BitVec, Bool class Register(object): ''' Generic variable width register. For 1 bit registers, allows writes of types bool and int, but always reads back bools. ''' def __init__(self, width): self.width = width self.value = 0 def is_flag(self):...
26.875
103
0.578295
2d9f3bdad0bac81690d516618efbd4be63a43737
6,257
py
Python
test/use_case_perf.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
18
2018-04-19T08:30:48.000Z
2022-02-14T11:00:27.000Z
test/use_case_perf.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
15
2018-04-22T00:52:41.000Z
2021-07-05T10:16:38.000Z
test/use_case_perf.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
6
2018-04-22T00:14:12.000Z
2021-12-06T01:42:07.000Z
#!/usr/bin/env python # Copyright 2018 Jérôme Dumonteil # # 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 la...
29.514151
81
0.60716
2d9f42faf8bd80ff4dddc57d9035e5f548cefced
85
py
Python
rest_framework_roles/exceptions.py
Pithikos/rest-framework-roles
97e98b7a1d1689186efbfc397efbcc7076c4571d
[ "MIT" ]
19
2020-02-20T16:35:20.000Z
2022-02-02T18:23:57.000Z
rest_framework_roles/exceptions.py
Pithikos/rest-framework-roles
97e98b7a1d1689186efbfc397efbcc7076c4571d
[ "MIT" ]
null
null
null
rest_framework_roles/exceptions.py
Pithikos/rest-framework-roles
97e98b7a1d1689186efbfc397efbcc7076c4571d
[ "MIT" ]
4
2020-05-14T03:47:32.000Z
2021-07-31T19:15:55.000Z
class Misconfigured(Exception): pass class DoublePatching(Exception): pass
12.142857
32
0.741176
2d9f67bc3ae960f7b35b27c954eb8aaeb95e605f
5,044
py
Python
toontown/coghq/DistributedSinkingPlatform.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/DistributedSinkingPlatform.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/DistributedSinkingPlatform.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from pandac.PandaModules import * from direct.distributed.ClockDelta import * from direct.interval.IntervalGlobal import * from direct.fsm import ClassicFSM, State from direct.fsm import State from otp.level import BasicEntities from toontown.coghq import MovingPlatform from direct.distributed import DistributedObject ...
37.924812
299
0.665543
2d9f8752e156aea14dadd74c924ed353d0a3ba46
1,750
py
Python
patch_utils.py
kamleshpawar17/FeTS2021
95035ee500721e1c3f9c4b7aed3c105f0d499274
[ "MIT" ]
1
2022-02-22T00:38:33.000Z
2022-02-22T00:38:33.000Z
patch_utils.py
kamleshpawar17/FeTS2021
95035ee500721e1c3f9c4b7aed3c105f0d499274
[ "MIT" ]
null
null
null
patch_utils.py
kamleshpawar17/FeTS2021
95035ee500721e1c3f9c4b7aed3c105f0d499274
[ "MIT" ]
null
null
null
import numpy as np def findIndexToCropLenghtN(xmin, xmax, N, Nmax): ''' Given the coordinated (xmin, xmax) of the patch find the new coordinated (xmin_new, xmax_new) such that the length (xmax_new-xmin_new)=N It assumes N > (xmax-xmin), desired length is greater than original length ''' N_curr = xm...
43.75
140
0.680571
2d9fa2da5c0f621de1271fd0f67f05cd1d70b3d0
431
py
Python
examples/simple_distribution.py
Hackathonners/vania
868a38476d36573933a8481dbed2e69150fcbb61
[ "MIT" ]
92
2017-03-25T23:55:21.000Z
2022-03-31T23:04:42.000Z
examples/simple_distribution.py
Hackathonners/vania
868a38476d36573933a8481dbed2e69150fcbb61
[ "MIT" ]
8
2017-03-28T12:57:02.000Z
2017-06-20T08:43:54.000Z
examples/simple_distribution.py
Hackathonners/vania
868a38476d36573933a8481dbed2e69150fcbb61
[ "MIT" ]
8
2017-06-18T18:36:54.000Z
2020-05-11T14:20:25.000Z
from vania import FairDistributor def main(): # User input for the number of targets and objects. users = ['user1', 'user2'] tasks = ['task1', 'task2'] preferences = [ [1, 2], [2, 1], ] # Run solver distributor = FairDistributor(users, tasks, preferences) output = dist...
19.590909
60
0.600928
2d9fa78bfc22f7474e06dfeffba9ad739e71b6d0
359
py
Python
OnshoreBattlebot2018/Controllers/CommunicationController.py
roy-love/BattleCode2018-ReferenceBot
c017cf804728dd1555ab6a60acdd2a6f7a929281
[ "MIT" ]
null
null
null
OnshoreBattlebot2018/Controllers/CommunicationController.py
roy-love/BattleCode2018-ReferenceBot
c017cf804728dd1555ab6a60acdd2a6f7a929281
[ "MIT" ]
null
null
null
OnshoreBattlebot2018/Controllers/CommunicationController.py
roy-love/BattleCode2018-ReferenceBot
c017cf804728dd1555ab6a60acdd2a6f7a929281
[ "MIT" ]
null
null
null
import random import sys import traceback # Manages communications between Earth and Mars # Provides public methods for reading and writing # Messages must be as small and efficient as possible class CommunicationController: """This is the communication controller""" def __init__(self, gameController): ...
29.916667
53
0.785515
2d9fc2eea0c681543a63fcc8c826160a947054df
387
py
Python
instructors/lessons/intro_flask/examples/app/models.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/lessons/intro_flask/examples/app/models.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/lessons/intro_flask/examples/app/models.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
from app import db ROLE_USER = 0 ROLE_ADMIN = 1 class User(db.Model): id = db.Column(db.Integer, primary_key = True) nickname = db.Column(db.String(64), index = True, unique = True) email = db.Column(db.String(120), index = True, unique = True) role = db.Column(db.SmallInteger, default = ROLE_USER) ...
29.769231
68
0.656331
2da018e45620efb59c6a289ffd278c0b1637b5a2
7,702
py
Python
recOrder/pipelines/phase_from_bf_pipeline.py
mehta-lab/recOrder
67f2edb9ab13114dfe41d57e465ae24f961b0004
[ "Unlicense" ]
2
2022-01-19T21:13:32.000Z
2022-02-24T19:40:24.000Z
recOrder/pipelines/phase_from_bf_pipeline.py
mehta-lab/recOrder
67f2edb9ab13114dfe41d57e465ae24f961b0004
[ "Unlicense" ]
55
2021-06-24T18:53:18.000Z
2022-03-30T21:05:14.000Z
recOrder/pipelines/phase_from_bf_pipeline.py
mehta-lab/recOrder
67f2edb9ab13114dfe41d57e465ae24f961b0004
[ "Unlicense" ]
null
null
null
from recOrder.io.config_reader import ConfigReader from waveorder.io.reader import WaveorderReader from waveorder.io.writer import WaveorderWriter from recOrder.compute.qlipp_compute import reconstruct_phase2D, reconstruct_phase3D, initialize_reconstructor import numpy as np from recOrder.pipelines.pipeline_interface i...
43.027933
116
0.556479
2da01ac4f3819ce411300e5c956371d10a783cf2
39
py
Python
dskc/io/__init__.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/io/__init__.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/io/__init__.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
from dskc.io.util import get_root_path
19.5
38
0.846154
2da01e99aafb4c102b814312ba405213264977d7
478
py
Python
robots/LoCoBot/locobot_control/nodes/joystick_robot_teleop_server.py
MarcelTorne/pyrobot
76fb345eee7da5b2801bcfd44a9b0cc9b459a7e8
[ "MIT" ]
null
null
null
robots/LoCoBot/locobot_control/nodes/joystick_robot_teleop_server.py
MarcelTorne/pyrobot
76fb345eee7da5b2801bcfd44a9b0cc9b459a7e8
[ "MIT" ]
null
null
null
robots/LoCoBot/locobot_control/nodes/joystick_robot_teleop_server.py
MarcelTorne/pyrobot
76fb345eee7da5b2801bcfd44a9b0cc9b459a7e8
[ "MIT" ]
2
2022-02-15T21:28:53.000Z
2022-03-21T21:45:55.000Z
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Server script for robot teleoperation """ import signal from locobot_control.joystick_teleoperation import RobotTel...
25.157895
75
0.76569
2da02707d5a7bc1dada50d2074356b99caacdefc
1,308
py
Python
leetcode_python/Linked_list/delete-node-in-a-linked-list.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Linked_list/delete-node-in-a-linked-list.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Linked_list/delete-node-in-a-linked-list.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V1 : dev # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None # class Solution(object): # # @param {ListNode} node # # @return {void} Do not return anything, modify node in-place instead. # def deleteNode(self, node): # output = [] # ...
27.25
76
0.591743
2da034d1fcdfe8e7a125d1c3b10906a383337c68
2,097
py
Python
tests/app/utilities/test_schema.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/app/utilities/test_schema.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/app/utilities/test_schema.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
import os import pytest from app.utilities.schema import ( get_allowed_languages, get_schema_path_map, get_schema_name_from_census_params, get_schema_path_map_for_language, ) def test_valid_schema_names_from_census_params(): assert ( get_schema_name_from_census_params("census", "I", "GB-W...
31.772727
86
0.680496
2da0506b4a895be172a426b742f2d18389f276e6
2,362
py
Python
tfx/dependencies.py
joshtemple/tfx
169519c8149534294f1f9bc39a6597d6a3fcefb2
[ "Apache-2.0" ]
null
null
null
tfx/dependencies.py
joshtemple/tfx
169519c8149534294f1f9bc39a6597d6a3fcefb2
[ "Apache-2.0" ]
null
null
null
tfx/dependencies.py
joshtemple/tfx
169519c8149534294f1f9bc39a6597d6a3fcefb2
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2019 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 req...
32.356164
75
0.640982
2da055679c187f00e6f51887d6a8411319c9d7e5
456
py
Python
noxfile.py
SylvanBrocard/dpu_trees
688f56a89a09469bf84698ed76ea62a5344b2827
[ "MIT" ]
1
2021-11-10T15:14:07.000Z
2021-11-10T15:14:07.000Z
noxfile.py
upmem/dpu_kmeans
cd84ca1cd9b49116aeb22c500f7d1c78600b3269
[ "MIT" ]
4
2021-12-14T23:29:36.000Z
2022-03-18T09:30:39.000Z
noxfile.py
SylvanBrocard/dpu_trees
688f56a89a09469bf84698ed76ea62a5344b2827
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import nox nox.options.sessions = ["lint", "tests"] @nox.session def lint(session: nox.Session) -> None: """ Run the linter. """ session.install("pre-commit") session.run("pre-commit", "run", "--all-files", *session.posargs) @nox.session def tests(session: nox.Session) ...
19
69
0.60307
2da07cbe1bf7c6480ca98f557013ee5fda183801
1,453
py
Python
semesterpage/migrations/0028_auto_20170906_2226.py
JakobGM/WikiLinks
5743b1d4c3fefa66fcaa4d283436d2a3f0490604
[ "MIT" ]
6
2017-08-12T09:55:06.000Z
2019-09-03T08:05:21.000Z
semesterpage/migrations/0028_auto_20170906_2226.py
JakobGM/WikiLinks
5743b1d4c3fefa66fcaa4d283436d2a3f0490604
[ "MIT" ]
57
2017-08-11T23:05:07.000Z
2022-03-11T23:32:12.000Z
semesterpage/migrations/0028_auto_20170906_2226.py
JakobGM/WikiLinks
5743b1d4c3fefa66fcaa4d283436d2a3f0490604
[ "MIT" ]
1
2017-09-27T15:31:15.000Z
2017-09-27T15:31:15.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-09-06 20:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('semesterpage', '0027_options_last_user_modification'), ] operations = [ mig...
46.870968
323
0.698555
2da0a174bc1add328596f3a91379f1f717aea609
164
py
Python
Matthew Jordan - AP Computer Science Principles/Lesson 1.3/MJordan_1_3_5.py
yaboimattj/PLTW-Activities
cacf46badaf7eeb2b947ba232109bcc491f7ff51
[ "MIT" ]
null
null
null
Matthew Jordan - AP Computer Science Principles/Lesson 1.3/MJordan_1_3_5.py
yaboimattj/PLTW-Activities
cacf46badaf7eeb2b947ba232109bcc491f7ff51
[ "MIT" ]
null
null
null
Matthew Jordan - AP Computer Science Principles/Lesson 1.3/MJordan_1_3_5.py
yaboimattj/PLTW-Activities
cacf46badaf7eeb2b947ba232109bcc491f7ff51
[ "MIT" ]
null
null
null
def how_eligible(essay): points = 0 chars = ['?', '"', ',', '!'] for char in chars: if(char in essay): points += 1 return points
23.428571
32
0.47561
2da0b8e12a8d52f748570133f929dd6977a5fee1
9,730
py
Python
jheaps/_internals/_addressable_heaps.py
d-michail/python-jheaps
65e1f4036b125dc065dc4398bf2eac0e95726f7a
[ "Apache-2.0" ]
null
null
null
jheaps/_internals/_addressable_heaps.py
d-michail/python-jheaps
65e1f4036b125dc065dc4398bf2eac0e95726f7a
[ "Apache-2.0" ]
null
null
null
jheaps/_internals/_addressable_heaps.py
d-michail/python-jheaps
65e1f4036b125dc065dc4398bf2eac0e95726f7a
[ "Apache-2.0" ]
null
null
null
from .. import backend from ..types import ( AddressableHeapHandle, DoubleEndedAddressableHeapHandle, AddressableHeap, DoubleEndedAddressableHeap, MergeableHeap, ) from ._wrappers import _HandleWrapper class _BaseLongValueAddressableHeapHandle(_HandleWrapper, AddressableHeapHandle): """A handl...
32.433333
107
0.717266
2da0cce51780085d6fcc5943c8147116f7f03464
468
py
Python
buyer/models.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
1
2021-11-06T12:08:26.000Z
2021-11-06T12:08:26.000Z
buyer/models.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
buyer/models.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
from directory_constants import choices from django.db import models from core.helpers import TimeStampedModel class Buyer(TimeStampedModel): email = models.EmailField() name = models.CharField(max_length=255) sector = models.CharField( choices=choices.INDUSTRIES, max_length=255, ) ...
22.285714
51
0.720085
2da0ed86d4805cc822de290cd4228546fc94abef
187
py
Python
probelib/io/fasta.py
Nanguage/probelib
c9c73d5413e0e159efe6ceac627cc8492f09e3b5
[ "BSD-3-Clause" ]
null
null
null
probelib/io/fasta.py
Nanguage/probelib
c9c73d5413e0e159efe6ceac627cc8492f09e3b5
[ "BSD-3-Clause" ]
null
null
null
probelib/io/fasta.py
Nanguage/probelib
c9c73d5413e0e159efe6ceac627cc8492f09e3b5
[ "BSD-3-Clause" ]
null
null
null
import typing as t from pyfaidx import Fasta def read_fa(path: str) -> t.Iterable[t.Tuple[str, str]]: fa = Fasta(path) for key in fa.keys(): yield key, fa[key][:].seq
17
56
0.620321
2da0f54bf312dee5b9da2126d88b2a7e1de1eb1e
5,556
py
Python
www/api/urls.py
nokitakaze/point
a6a6026462116645c33463e5143b791f462da588
[ "Apache-2.0" ]
null
null
null
www/api/urls.py
nokitakaze/point
a6a6026462116645c33463e5143b791f462da588
[ "Apache-2.0" ]
null
null
null
www/api/urls.py
nokitakaze/point
a6a6026462116645c33463e5143b791f462da588
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- from api import auth, blog, users prefix = r'/api' urls = ( # user blog by id (r'^%s/blog(?:/id/(?P<uid>\d+))?/?$' % prefix, blog.blog_by_id), # user blog by login (DEPRECATED) (r'^%s/blog(?:/(?P<login>[-a-zA-Z0-9]+))?/?$' % prefix, blog.blog), # user blog by login (r'...
45.170732
101
0.561375
2da101e8b1de48215bd289f54fb0af81be02601f
3,824
py
Python
openapi_client_generator/cli/gen.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
6
2021-01-16T21:36:43.000Z
2022-01-24T10:21:14.000Z
openapi_client_generator/cli/gen.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
11
2021-01-17T00:05:44.000Z
2022-01-23T16:13:56.000Z
openapi_client_generator/cli/gen.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
2
2021-11-06T00:07:34.000Z
2022-01-14T01:35:06.000Z
import argparse import json import sys from pathlib import Path from typing import Mapping from shutil import rmtree from itertools import islice from openapi_type import parse_spec from ..common.types import AttrStyle from ..codegen import filegen def is_empty_dir(p: Path) -> bool: return p.is_dir() and not bo...
37.490196
114
0.622123
2da107505cd2a6a1c116590561e29cc51b9cacc1
5,673
py
Python
hops/experiment_impl/distribute/parameter_server.py
robzor92/hops-util-py
88540a0c2b4e366fe6d2acb0441cea9378150c01
[ "Apache-2.0" ]
null
null
null
hops/experiment_impl/distribute/parameter_server.py
robzor92/hops-util-py
88540a0c2b4e366fe6d2acb0441cea9378150c01
[ "Apache-2.0" ]
1
2021-02-25T11:46:54.000Z
2021-02-25T11:46:54.000Z
hops/experiment_impl/distribute/parameter_server.py
robzor92/hops-util-py
88540a0c2b4e366fe6d2acb0441cea9378150c01
[ "Apache-2.0" ]
null
null
null
""" Utility functions to retrieve information about available services and setting up security for the Hops platform. These utils facilitates development by hiding complexity for programs interacting with Hops services. """ import os from hops import devices, tensorboard, hdfs from hops.experiment_impl.util import ex...
31
145
0.592984
2da12ae642e3a2c6725b40485c73999505ddc5d5
13,139
py
Python
convertmusic/tools/xmp_lib/interface.py
groboclown/music-uploader
d73ad811324027f2d1d4292eaa599709f3600b56
[ "MIT" ]
null
null
null
convertmusic/tools/xmp_lib/interface.py
groboclown/music-uploader
d73ad811324027f2d1d4292eaa599709f3600b56
[ "MIT" ]
null
null
null
convertmusic/tools/xmp_lib/interface.py
groboclown/music-uploader
d73ad811324027f2d1d4292eaa599709f3600b56
[ "MIT" ]
null
null
null
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 def _check_range(parm, val, lower, upper): upper = upper - 1 if val < lower or val > upper: raise LookupError( 'Invalid {0} #{1}, valid {0} range is {2} to {3}' .format(parm, val ,lower, upper)) class TestInfo(struct_xmp_tes...
29.459641
77
0.605906
2da132f5ae6243be24c1fb138f2337c59680da9a
11,489
py
Python
support/v8/tools/js2c.py
hflw/Blackpyre-Engine
9cc22f002cb9a4f9c7995232ef92518c039be9ab
[ "AFL-3.0" ]
48
2015-01-09T20:39:35.000Z
2021-12-21T21:17:52.000Z
deps/v8/tools/js2c.py
dalizard/node
776754c33f347ef4827cf2b9d3cea7c1d46be7b5
[ "MIT" ]
2
2016-02-05T10:27:37.000Z
2019-01-22T16:22:51.000Z
deps/v8/tools/js2c.py
dalizard/node
776754c33f347ef4827cf2b9d3cea7c1d46be7b5
[ "MIT" ]
8
2015-01-12T17:14:36.000Z
2018-09-15T14:10:27.000Z
#!/usr/bin/env python # # Copyright 2006-2008 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # ...
30.154856
101
0.648969
2da1360f01fff9f775998e585c728e842baa935e
6,057
py
Python
env/Lib/site-packages/sense_emu/lock.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
null
null
null
env/Lib/site-packages/sense_emu/lock.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
null
null
null
env/Lib/site-packages/sense_emu/lock.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
null
null
null
# vim: set et sw=4 sts=4 fileencoding=utf-8: # # Raspberry Pi Sense HAT Emulator library for the Raspberry Pi # Copyright (c) 2016 Raspberry Pi Foundation <info@raspberrypi.org> # # This package is free software; you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as publ...
30.903061
81
0.585603
2da16bc479790fbeb79fd4978be15a2279b77ac3
8,257
py
Python
pgcontents/tests/test_pgmanager.py
amangarg96/pgcontents
1c69b23836ab453ca80b91f50a09fd27ac9650ed
[ "Apache-2.0" ]
2
2016-06-14T11:35:55.000Z
2018-03-28T09:00:54.000Z
pgcontents/tests/test_pgmanager.py
amangarg96/pgcontents
1c69b23836ab453ca80b91f50a09fd27ac9650ed
[ "Apache-2.0" ]
null
null
null
pgcontents/tests/test_pgmanager.py
amangarg96/pgcontents
1c69b23836ab453ca80b91f50a09fd27ac9650ed
[ "Apache-2.0" ]
2
2019-02-07T07:06:41.000Z
2021-07-16T09:12:56.000Z
# # Copyright 2014 Quantopian, 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 agreed to in writin...
31.757692
79
0.586412
2da1987339682101c3522b4b2bbe6add81777a9a
4,301
py
Python
PythonAPI/examples/tutorial.py
manel-jrad/carla
999fb086b69ed627ed48c1068f181c6213fde046
[ "MIT" ]
null
null
null
PythonAPI/examples/tutorial.py
manel-jrad/carla
999fb086b69ed627ed48c1068f181c6213fde046
[ "MIT" ]
null
null
null
PythonAPI/examples/tutorial.py
manel-jrad/carla
999fb086b69ed627ed48c1068f181c6213fde046
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. from __future__ import print_function import glob import os import s...
20.004651
155
0.649151
2da19b41269919a117a2ffea6f71773b469f4cc1
4,137
py
Python
xlit_s2s_nmt/utils/nmt_utils.py
vsoch/NETransliteration-COLING2018
5d5f59e561ecea45a6d3602121e1049baa7a76c3
[ "MIT" ]
52
2018-06-12T17:08:17.000Z
2022-02-20T11:35:30.000Z
xlit_s2s_nmt/utils/nmt_utils.py
vsoch/NETransliteration-COLING2018
5d5f59e561ecea45a6d3602121e1049baa7a76c3
[ "MIT" ]
2
2018-08-18T20:00:29.000Z
2019-10-03T10:12:26.000Z
xlit_s2s_nmt/utils/nmt_utils.py
vsoch/NETransliteration-COLING2018
5d5f59e561ecea45a6d3602121e1049baa7a76c3
[ "MIT" ]
10
2018-06-12T18:04:37.000Z
2021-04-15T17:32:57.000Z
# Copyright 2017 Google Inc. 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 required by applicable law or a...
34.764706
100
0.606478
2da1c7c967aefc57e16a8e2d8c2a56377a34346b
3,614
py
Python
src/test_only_plugins/pagerduty/plugin.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/test_only_plugins/pagerduty/plugin.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/test_only_plugins/pagerduty/plugin.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import six from sentry.plugins.bases.notify import NotifyPlugin from sentry.utils.http import absolute_uri from test_only_plugins.base import CorePluginMixin from test_only_plugins.utils import get_secret_field_config from .client import PagerDutyClient class PagerDutyPlugin...
36.877551
91
0.55617
2da1f7c4e11d0a0a33c41ebf584787654cf3ddcc
411
py
Python
office365/teams/teamsAsyncOperationCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/teams/teamsAsyncOperationCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/teams/teamsAsyncOperationCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.runtime.client_object_collection import ClientObjectCollection from office365.teams.teamsAsyncOperation import TeamsAsyncOperation class TeamsAsyncOperationCollection(ClientObjectCollection): """TeamsAsyncOperation's collection""" def __init__(self, context, resource_path=None): super(...
41.1
104
0.836983
2da1fbc775e1b8ad9e4f220b33caecdc2dd8ca34
1,306
py
Python
tests/test_shells/postproc.py
pgmillon/powerline
999fad58bd493c0f37233eb7941508af220d945e
[ "MIT" ]
1
2021-07-09T21:46:27.000Z
2021-07-09T21:46:27.000Z
tests/test_shells/postproc.py
pgmillon/powerline
999fad58bd493c0f37233eb7941508af220d945e
[ "MIT" ]
null
null
null
tests/test_shells/postproc.py
pgmillon/powerline
999fad58bd493c0f37233eb7941508af220d945e
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import unicode_literals import os import socket import sys import codecs shell = sys.argv[1] fname = os.path.join('tests', 'shell', shell + '.full.log') new_fname = os.path.join('tests', 'shell', shell + '.log') pid_fname = os.path.join('tests', 'shell', '3rd', 'pid') with op...
25.115385
63
0.603369
2da22b8eaabb66d0f3a70a134e93d54e6b4c9a3f
10,562
py
Python
app.py
ismail424/Digital-Prayer-Time-Flask
bdccab2b988fffe520f0e499c73b2d5bc4f1cc09
[ "CC0-1.0" ]
null
null
null
app.py
ismail424/Digital-Prayer-Time-Flask
bdccab2b988fffe520f0e499c73b2d5bc4f1cc09
[ "CC0-1.0" ]
null
null
null
app.py
ismail424/Digital-Prayer-Time-Flask
bdccab2b988fffe520f0e499c73b2d5bc4f1cc09
[ "CC0-1.0" ]
null
null
null
#Import Flask and SOCKET.IO from flask import Flask, render_template, request, redirect # from flask_socketio import SocketIO, emit from flask_socketio import SocketIO, emit #Import SQL import sqlite3 #import help-functions from another python file from help_functions import * from new_prayer_times import * # impor...
29.016484
140
0.580098
2da2354c7dc9c71da9437180c31f81c7b40e9331
15,608
py
Python
gpMgmt/bin/gppylib/test/unit/test_unit_gpcheckcat.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
gpMgmt/bin/gppylib/test/unit/test_unit_gpcheckcat.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
gpMgmt/bin/gppylib/test/unit/test_unit_gpcheckcat.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
import imp import logging import os import sys from mock import * from gp_unittest import * from gppylib.gpcatalog import GPCatalogTable class GpCheckCatTestCase(GpTestCase): def setUp(self): # because gpcheckcat does not have a .py extension, we have to use imp to import it # if we had a gpcheck...
48.17284
132
0.686763
2da25bf6417f2751830d4fa7b5ab5b22b0e75c95
5,182
py
Python
genrl/utils/data_bandits/mushroom_bandit.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
390
2020-05-03T17:34:02.000Z
2022-03-05T11:29:07.000Z
genrl/utils/data_bandits/mushroom_bandit.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
306
2020-05-03T05:53:53.000Z
2022-03-12T00:27:28.000Z
genrl/utils/data_bandits/mushroom_bandit.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
64
2020-05-05T20:23:30.000Z
2022-03-30T08:43:10.000Z
from typing import Tuple import numpy as np import pandas as pd import torch from genrl.utils.data_bandits.base import DataBasedBandit from genrl.utils.data_bandits.utils import download_data, fetch_data_without_header URL = "https://archive.ics.uci.edu/ml/machine-learning-databases/mushroom/agaricus-lepiota.data" ...
37.824818
96
0.620224
2da2723b5f41b829e03ca843518482709f0739f1
23,268
py
Python
vlcp/event/core.py
hubo1016/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
252
2015-11-17T14:21:50.000Z
2022-03-11T10:19:47.000Z
vlcp/event/core.py
SarahZarei/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
23
2018-01-09T13:28:52.000Z
2019-12-12T06:11:44.000Z
vlcp/event/core.py
SarahZarei/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
37
2016-08-03T04:42:22.000Z
2021-12-30T16:57:10.000Z
''' Created on 2015/6/12 :author: hubo ''' from __future__ import print_function, absolute_import, division from .matchtree import MatchTree, EventTree from .pqueue import CBQueue from .event import Event,withIndices from time import time, sleep from datetime import datetime from signal import signal, SIGTERM, SIGINT...
39.638842
150
0.538293
2da273a93b6f93d2a608af73a21f47251686c1c8
6,773
py
Python
oscar/lib/python2.7/site-packages/faker/providers/address/en_US/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/address/en_US/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/address/en_US/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from collections import OrderedDict from ..en import Provider as AddressProvider class Provider(AddressProvider): city_prefixes = ('North', 'East', 'West', 'South', 'New', 'Lake', 'Port') city_suffixes = ( 'town', 'ton', 'land', 'ville', 'berg', 'bur...
43.140127
120
0.532851
2da2808190e43c6c49de126ba50c612f4218bb07
16,915
py
Python
document_library/south_migrations/0023_auto__del_documenttitle__del_documentcategortitle.py
bitlabstudio/django-document-library
0427687bf601f188e55e6a311af8d8ce34c08432
[ "MIT" ]
6
2016-11-27T13:16:08.000Z
2021-07-14T02:38:00.000Z
document_library/south_migrations/0023_auto__del_documenttitle__del_documentcategortitle.py
bitlabstudio/django-document-library
0427687bf601f188e55e6a311af8d8ce34c08432
[ "MIT" ]
1
2017-09-20T22:31:24.000Z
2020-12-08T17:00:58.000Z
document_library/south_migrations/0023_auto__del_documenttitle__del_documentcategortitle.py
bitlabstudio/django-document-library
0427687bf601f188e55e6a311af8d8ce34c08432
[ "MIT" ]
3
2017-01-11T05:37:40.000Z
2021-01-09T12:12:23.000Z
# flake8: noqa # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models try: from django.contrib.auth import get_user_model except ImportError: # Django < 1.5 from django.contrib.auth.models import User else: User = get_user_model() ...
77.949309
193
0.594206
2da29f7254ff2fdc6f8398de767bb9578c19b9ae
310
py
Python
tests/test_urls.py
unt-libraries/django-accession
042967531d10b894f2ddc044eb44b97382e4b531
[ "BSD-3-Clause" ]
null
null
null
tests/test_urls.py
unt-libraries/django-accession
042967531d10b894f2ddc044eb44b97382e4b531
[ "BSD-3-Clause" ]
23
2015-10-22T19:57:55.000Z
2020-07-22T14:29:24.000Z
tests/test_urls.py
unt-libraries/django-accession
042967531d10b894f2ddc044eb44b97382e4b531
[ "BSD-3-Clause" ]
null
null
null
from django.core.urlresolvers import resolve from accession import admin_views def test_print(): assert resolve('/tfc/admin/accession/Objects/1/print/').func == admin_views.print_view def test_export_csv(): assert resolve('/tfc/admin/accession/Objects/export_csv/').func == admin_views.export_csv
25.833333
93
0.774194
2da2b303f115516956c41ad792498232b69a3ebf
7,134
py
Python
MNIST/MNIST.py
Shylock-Hg/ml
bcba251d42215a4964c953c3ea55ede6d2a13998
[ "Apache-2.0" ]
null
null
null
MNIST/MNIST.py
Shylock-Hg/ml
bcba251d42215a4964c953c3ea55ede6d2a13998
[ "Apache-2.0" ]
null
null
null
MNIST/MNIST.py
Shylock-Hg/ml
bcba251d42215a4964c953c3ea55ede6d2a13998
[ "Apache-2.0" ]
null
null
null
''' @brief: CNNClassifier for MNIST X->CONV->POOL->CONV->POOL->FLAT->DROPOUT->DESEN->LOGITS | OPTIMIZER<-LOSS<-CROSS-ENTROPY<-Y @author: Shylock Hg @time: 2017/8/27 @email: tcath2s@icloud.com ''' import tensorflow...
33.971429
104
0.586347
2da2cfaa744b041629f795e2cd1821920686176c
5,096
py
Python
alipay/aop/api/domain/MedicalNationalPayAuthInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/MedicalNationalPayAuthInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/MedicalNationalPayAuthInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MedicalNationalPayAuthInfo(object): def __init__(self): self._auth_no = None self._auth_stas = None self._auth_time = None self._auth_url = None self._medi...
31.652174
91
0.602433
2da2df17217757d9929de6f71c7c0a37a3477e62
2,271
py
Python
tests/pymath/test_calculate_tax.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/pymath/test_calculate_tax.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/pymath/test_calculate_tax.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
from unittest import TestCase, skip from pymath.calculate_tax import calculate_tax # todo: failing tests @skip("Failing tests, not implemented methods correctly") class CalculateTaxTests(TestCase): def test_it_calculates_tax_for_one_person(self): result = calculate_tax({"James": 20500}) self.asse...
46.346939
102
0.630119
2da306ca45749ac6bb513411d7463242923fe3ca
6,349
py
Python
api/responders/resource/scheduled_scans.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
api/responders/resource/scheduled_scans.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
api/responders/resource/scheduled_scans.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
49.217054
119
0.583871
2da312836adf46e1fa7ffe6b71f802b6fd3bd32d
292
py
Python
haystack/file_converter/__init__.py
fossabot/haystack
785b257fd33f7d092c4414415c5a2552db81fe51
[ "Apache-2.0" ]
1
2021-01-19T00:34:03.000Z
2021-01-19T00:34:03.000Z
haystack/file_converter/__init__.py
fossabot/haystack
785b257fd33f7d092c4414415c5a2552db81fe51
[ "Apache-2.0" ]
null
null
null
haystack/file_converter/__init__.py
fossabot/haystack
785b257fd33f7d092c4414415c5a2552db81fe51
[ "Apache-2.0" ]
null
null
null
from haystack.file_converter.docx import DocxToTextConverter from haystack.file_converter.pdf import PDFToTextConverter from haystack.file_converter.tika import TikaConverter from haystack.file_converter.txt import TextConverter from haystack.file_converter.markdown import MarkdownConverter
48.666667
62
0.89726
2da3185c9497d373f0d8f02d0f12dfdb89ccae62
1,990
py
Python
NN/Plots/Scripts/plot_histories_function of N.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
2
2018-10-10T09:32:34.000Z
2019-03-28T08:42:31.000Z
NN/Plots/Scripts/plot_histories_function of N.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
NN/Plots/Scripts/plot_histories_function of N.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 20 11:49:16 2018 @author: Simon """ import os import pickle import numpy as np import matplotlib.pyplot as plt os.chdir("Saved/histories func of N") files = [file for file in os.listdir() if file!='plots' and file!='.DS_Store'] data={"relu":{0.4:...
30.615385
98
0.653769
2da378e532b363e0a5b3c88a890983e403e51207
1,952
py
Python
tests/fixtures.py
matutter/py-redisrpc
a74fc1c8d14084a55b38562c372c17eadc3d4ece
[ "MIT" ]
2
2021-07-16T06:39:42.000Z
2021-08-07T06:54:08.000Z
tests/fixtures.py
matutter/py-redisrpc
a74fc1c8d14084a55b38562c372c17eadc3d4ece
[ "MIT" ]
null
null
null
tests/fixtures.py
matutter/py-redisrpc
a74fc1c8d14084a55b38562c372c17eadc3d4ece
[ "MIT" ]
null
null
null
import asyncio import logging import signal from inspect import isawaitable from typing import Any, Awaitable, Callable, Tuple import pytest log = logging.getLogger(__name__) pytestmark = pytest.mark.asyncio class AsyncTimer: start: float end: float total: float count: int func: Callable[[], Awaitable] ...
21.932584
79
0.647029
2da396b76cad4683fd69ade6da6080d83cfaa40c
11,451
py
Python
src/genie/telemetry/parser.py
CiscoTestAutomation/genietelemetry
286cd1d281c7375c3d161955fa3ce52e1da52372
[ "Apache-2.0" ]
3
2020-05-24T11:47:53.000Z
2020-09-06T21:22:21.000Z
src/genie/telemetry/parser.py
CiscoTestAutomation/genietelemetry
286cd1d281c7375c3d161955fa3ce52e1da52372
[ "Apache-2.0" ]
null
null
null
src/genie/telemetry/parser.py
CiscoTestAutomation/genietelemetry
286cd1d281c7375c3d161955fa3ce52e1da52372
[ "Apache-2.0" ]
null
null
null
'''Parser Module Module to handle all command-line parsing functionality/behavior (standardization of how parsing at the command line is done, consolidate logic) ''' import os import sys import uuid import logging import re as re from pyats.utils import parser from gettext import gettext from genie.telemetry.email...
36.584665
81
0.507292
2da3a55346389f6ed2656fc37caf117e3e444b86
1,077
py
Python
test/test_service_details.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_service_details.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_service_details.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
1
2020-05-15T04:20:48.000Z
2020-05-15T04:20:48.000Z
# coding: utf-8 """ Container Security APIs All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501 ...
26.925
265
0.72052
2da3ba2964563a6f952d87e779e9d7aac9bf4a0b
483
py
Python
textwiser/embeddings/__init__.py
vishalbelsare/textwiser
da500f24c8d35d29e3ff77702b7c5ece244562cc
[ "Apache-2.0" ]
24
2020-07-02T13:31:46.000Z
2022-03-25T02:27:24.000Z
textwiser/embeddings/__init__.py
fmr-llc/textwiser
2c5bdd73c26bd3fb7bd2f324f57d99233aa9c17f
[ "Apache-2.0" ]
5
2020-07-23T16:43:02.000Z
2022-02-23T17:05:38.000Z
textwiser/embeddings/__init__.py
fmr-llc/textwiser
2c5bdd73c26bd3fb7bd2f324f57d99233aa9c17f
[ "Apache-2.0" ]
6
2021-01-03T08:09:39.000Z
2022-03-25T02:18:59.000Z
# Copyright 2019 FMR LLC <opensource@fidelity.com> # SPDX-License-Identifer: Apache-2.0 from textwiser.embeddings.bow import _BOWEmbeddings from textwiser.embeddings.compound import _CompoundEmbeddings from textwiser.embeddings.doc2vec import _Doc2VecEmbeddings from textwiser.embeddings.random import _RandomEmbeddings...
43.909091
61
0.869565
2da3e7e29035728737e486c5304dea6159dad8b9
1,499
py
Python
skorch/callbacks/regularization.py
TheAutumnOfRice/skorch
6d778fc38d797644c847a9c87dd23299eea63087
[ "BSD-3-Clause" ]
2,748
2019-03-19T11:43:01.000Z
2022-03-31T13:55:28.000Z
skorch/callbacks/regularization.py
TheAutumnOfRice/skorch
6d778fc38d797644c847a9c87dd23299eea63087
[ "BSD-3-Clause" ]
392
2019-03-19T11:17:04.000Z
2022-03-29T21:36:53.000Z
skorch/callbacks/regularization.py
TheAutumnOfRice/skorch
6d778fc38d797644c847a9c87dd23299eea63087
[ "BSD-3-Clause" ]
197
2019-03-27T09:18:25.000Z
2022-03-27T00:15:23.000Z
""" Post-process regularization steps such as gradient normalizing. """ from torch.nn.utils import clip_grad_norm_ from skorch.callbacks import Callback __all__ = ['GradientNormClipping'] class GradientNormClipping(Callback): """Clips gradient norm of a module's parameters. The norm is computed over all ...
30.591837
73
0.686458
2da3f8fbdf1fa6db3d2f5b575c6970b882ab8b35
15,291
py
Python
facebook_business/asyncapi.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/asyncapi.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/asyncapi.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
import re import six import time import json import logging import collections import concurrent.futures import threading from facebook_business.exceptions import FacebookCallFailedError, FacebookBadObjectError from facebook_business.api import FacebookSession, FacebookResponse, \ FacebookAdsApi, _top_level_param_...
37.755556
97
0.588255
2da40453b05bfe42a9f52487393cee3120d8d25e
2,171
py
Python
google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/unmanaged/set_named_ports.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/unmanaged/set_named_ports.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/unmanaged/set_named_ports.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2015 Google Inc. 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 required by applicable law or ag...
36.183333
74
0.766467
2da40619d3fd927b71987763bfe09cfc947eee14
2,955
py
Python
master/searx-master/searx/engines/bing.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/searx-master/searx/engines/bing.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/searx-master/searx/engines/bing.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
""" Bing (Web) @website https://www.bing.com @provide-api yes (http://datamarket.azure.com/dataset/bing/search), max. 5000 query/month @using-api no (because of query limit) @results HTML (using search portal) @stable no (HTML can change) @parse url, title, content @todo ...
28.413462
103
0.600338
2da409a9050c385374fcd22de0708480dc5396a2
2,101
py
Python
pyspot/user_auth.py
EdMan1022/PySpot
e48e1b2bfe2524dc85bff58475383768c1c65501
[ "MIT" ]
null
null
null
pyspot/user_auth.py
EdMan1022/PySpot
e48e1b2bfe2524dc85bff58475383768c1c65501
[ "MIT" ]
null
null
null
pyspot/user_auth.py
EdMan1022/PySpot
e48e1b2bfe2524dc85bff58475383768c1c65501
[ "MIT" ]
null
null
null
import datetime import requests from .auth import Auth class UserAuth(Auth): """ Models OAuth 2.0 token where refresh tokens are used to get a new auth token """ # Subtract buffer from expiration limit when calculating the expiration time # to prevent letting the token expire because of network...
30.897059
80
0.637316
2da420f80976c3aa478ba50ec6bb3a7787ae8081
2,908
py
Python
Tests/test_AlignIO_convert.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
1
2020-02-13T14:32:44.000Z
2020-02-13T14:32:44.000Z
Tests/test_AlignIO_convert.py
EsamTolba/biopython
120616cf0d28cb8e581898afd6604e5a2065a137
[ "BSD-3-Clause" ]
null
null
null
Tests/test_AlignIO_convert.py
EsamTolba/biopython
120616cf0d28cb8e581898afd6604e5a2065a137
[ "BSD-3-Clause" ]
1
2019-03-14T18:59:30.000Z
2019-03-14T18:59:30.000Z
# Copyright 2009 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Unit tests for Bio.SeqIO.convert(...) function.""" import unittest from Bio._py3k import Strin...
37.766234
88
0.67641
2da441229ff74d46d457145ad4292166056ebb07
1,818
py
Python
sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "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 ...
34.961538
76
0.60121
2da4459e05d6f7aba464e1578fd469b72f2a5383
15,843
py
Python
broker/broker.py
davidezagami/ListingStrat
9ad3d5c8215b4486f4bb2a9fa4ee2b85a4a052c5
[ "MIT" ]
null
null
null
broker/broker.py
davidezagami/ListingStrat
9ad3d5c8215b4486f4bb2a9fa4ee2b85a4a052c5
[ "MIT" ]
null
null
null
broker/broker.py
davidezagami/ListingStrat
9ad3d5c8215b4486f4bb2a9fa4ee2b85a4a052c5
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Dict, Any, NoReturn, List import binance.exceptions from ftx.api import FtxClient from binance.client import Client as BinanceClient from datetime import datetime from typing import Union from util.types import BrokerType, Ticker, Order from util.exceptions import...
34.743421
129
0.524206
2da4618059e074c1de590c35a15dab014a2c7651
2,524
py
Python
ForgeUserStats/forgeuserstats/model/stats.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2019-03-17T04:16:15.000Z
2019-03-17T04:16:15.000Z
ForgeUserStats/forgeuserstats/model/stats.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
ForgeUserStats/forgeuserstats/model/stats.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
# 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 (t...
35.549296
71
0.691363
2da48443d669ff54f2d94c8faf82479d21cc5847
2,435
py
Python
archive/nexus-api-v2/Database/Server/Schemas/Server.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/Server/Schemas/Server.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/Server/Schemas/Server.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
1
2022-01-03T05:33:15.000Z
2022-01-03T05:33:15.000Z
# !/usr/bin/env python3 # -*- Coding: UTF-8 -*- # # -*- System: Linux -*- # # -*- Usage: *.py -*- # # Owner: Cloud-Technology LLC. # Source: gitlab.cloud-technology.io # License: BSD 3-Clause License """ ... """ # ============================================================================= # Local Imports ...
31.217949
85
0.550308
2da4a245ce73a139f9255e1852e989a934cd3143
6,403
py
Python
xos/services/mcord/view.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/services/mcord/view.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/services/mcord/view.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponse from django.views.generic import TemplateView, View from django import template from core.models import * from services.helloworld.models import * import json import os import time import tempfile class MCordView(TemplateView): head_template = r"""{% extends "admin/dashboard/d...
59.287037
169
0.501796
2da4a95adf1749472e5e67d5fd1591fd5c03158e
22,382
py
Python
pysal/_version.py
martinfleis/pysal
d2e0667d825d403efe7182ecda210dc152ec206d
[ "BSD-3-Clause" ]
941
2015-01-12T22:25:55.000Z
2022-03-27T15:41:29.000Z
pysal/_version.py
anekekarina99/pysal
bd8c954d34b4694416830a852e26fe40d64424f2
[ "BSD-3-Clause" ]
589
2015-01-09T03:58:03.000Z
2022-02-26T02:17:15.000Z
pysal/_version.py
anekekarina99/pysal
bd8c954d34b4694416830a852e26fe40d64424f2
[ "BSD-3-Clause" ]
303
2015-01-10T02:59:04.000Z
2022-03-05T04:21:55.000Z
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.86859
84
0.581807
2da4ea21338c1960cdd56e9c7661cd1e4f9c0dd9
1,921
py
Python
airsenal/scripts/make_player_history_table.py
tallamjr/AIrsenal
48f223407d806a9a374a406d6fe1289e5a36e48f
[ "MIT" ]
null
null
null
airsenal/scripts/make_player_history_table.py
tallamjr/AIrsenal
48f223407d806a9a374a406d6fe1289e5a36e48f
[ "MIT" ]
null
null
null
airsenal/scripts/make_player_history_table.py
tallamjr/AIrsenal
48f223407d806a9a374a406d6fe1289e5a36e48f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ get values from player_score and match tables to use as input to Empirical Bayes model. """ from airsenal.framework.schema import PlayerScore from airsenal.framework.utils import list_players, get_player_name, session def get_player_history_table(position="all"): """ Query the playe...
34.927273
83
0.593441
2da4ec060074df3675ae68b6cb6972c51de93b86
1,827
py
Python
alipay/aop/api/domain/UserRiskPrediction.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/UserRiskPrediction.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/UserRiskPrediction.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class UserRiskPrediction(object): def __init__(self): self._phone_recycle_risk_leve = None self._refused_payment_risk_level = None @property def phone_recycle_risk_leve(self): ...
32.625
103
0.688013
2da53ae386158d66eebac49a4ecdf4590d870f27
35,484
py
Python
extrap/gui/GraphWidget.py
extra-p/extrap
34f9d8b078aa240defd6ac50203efd44d6f60f79
[ "BSD-3-Clause" ]
13
2020-11-12T21:50:09.000Z
2022-03-03T11:01:27.000Z
extrap/gui/GraphWidget.py
extra-p/extrap
34f9d8b078aa240defd6ac50203efd44d6f60f79
[ "BSD-3-Clause" ]
3
2020-12-04T12:49:37.000Z
2021-05-06T11:41:31.000Z
extrap/gui/GraphWidget.py
extra-p/extrap
34f9d8b078aa240defd6ac50203efd44d6f60f79
[ "BSD-3-Clause" ]
6
2021-01-14T16:06:47.000Z
2021-09-01T09:54:37.000Z
# This file is part of the Extra-P software (http://www.scalasca.org/software/extra-p) # # Copyright (c) 2020-2021, Technical University of Darmstadt, Germany # # This software may be modified and distributed under the terms of a BSD-style license. # See the LICENSE file in the base directory for details. from __futur...
39.959459
118
0.616278
2da5891d2e810299c6f7ee41edd157b6eb3408be
513
py
Python
src/tests/test_active_learning.py
orcasound/orcaal-research
7b9bf14c01b73696fcb604a5318148e6c4f795cd
[ "MIT" ]
7
2020-11-13T17:36:46.000Z
2022-01-27T00:55:40.000Z
src/tests/test_active_learning.py
rahulraikwar00/orcaal-research
1227e61a4535b237cae0f68d7eb25ef2617b06cd
[ "MIT" ]
null
null
null
src/tests/test_active_learning.py
rahulraikwar00/orcaal-research
1227e61a4535b237cae0f68d7eb25ef2617b06cd
[ "MIT" ]
6
2020-08-31T19:12:40.000Z
2021-12-10T01:34:46.000Z
import unittest import os import sys sys.path.append(os.path.abspath(os.path.join('..', 'active_learning_script'))) from active_learning import predict import numpy.testing as npt class TestPreprocess(unittest.TestCase): def test_active_learning(self): probability_last, class_ten = predict('srkw_cnn.h5',...
27
92
0.738791
2da58f7f32d5c05a8c079b61e5dddd742b2bd0d4
333
py
Python
PerformanceImprovementPoC/LearnParallelProgramming/threading_simple.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
null
null
null
PerformanceImprovementPoC/LearnParallelProgramming/threading_simple.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
28
2021-06-20T17:39:00.000Z
2021-09-04T15:03:41.000Z
PerformanceImprovementPoC/LearnParallelProgramming/threading_simple.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
null
null
null
import threading def worker(num): # * thread worker function print(f"worker: {num}") return if __name__ == "__main__": threads = [] for i in range(5): t = threading.Thread(target=worker, args=(i,)) threads.append(t) t.start() #! apparently the multithreading sequence sta...
18.5
57
0.615616
2da5b2dfdf68656b7608c2cb28f027474376a9fd
1,352
py
Python
app/core/tests/test_admin.py
yittoo/python-api-sandbox
9e1538fd9728cd125f450ad8c3fda22f8dc9a202
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
yittoo/python-api-sandbox
9e1538fd9728cd125f450ad8c3fda22f8dc9a202
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
yittoo/python-api-sandbox
9e1538fd9728cd125f450ad8c3fda22f8dc9a202
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='admin@yit.com', ...
31.44186
68
0.635355
2da5da0618b41f7068fc7bcf67e4b2518ba025f5
39,213
py
Python
kubernetes_tests/test_kubernetes_pod_operator.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
kubernetes_tests/test_kubernetes_pod_operator.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
kubernetes_tests/test_kubernetes_pod_operator.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.000Z
# 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 # "License"); you may not u...
38.595472
110
0.550455
2da5f8f8002d94274a4d214c31a321b4b137acbb
1,642
py
Python
amatino/internal/decodable.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
2
2018-07-20T20:00:33.000Z
2020-10-08T15:49:06.000Z
amatino/internal/decodable.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
1
2020-05-21T02:49:29.000Z
2020-05-21T02:49:29.000Z
amatino/internal/decodable.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
3
2018-09-03T09:31:31.000Z
2020-05-21T05:30:00.000Z
""" Amatino Python Decodable Module author: hugh@blinkybeach.com """ from json import loads from typing import Any, Optional, TypeVar, Type, List T = TypeVar('T', bound='Decodable') class Decodable: """Abstract protocol defining an interface for decodable classes""" @classmethod def decode(self, data: A...
28.310345
76
0.625457
2da620acccba43fcd1dd00aead13f65fd5cf097d
4,024
py
Python
kglib/utils/StarData.py
kgullikson88/gullikson-scripts
8a9f00a6977dad8d4477eef1d664fd62e9ecab75
[ "MIT" ]
4
2016-02-22T02:34:32.000Z
2018-11-02T02:31:58.000Z
kglib/utils/StarData.py
kgullikson88/gullikson-scripts
8a9f00a6977dad8d4477eef1d664fd62e9ecab75
[ "MIT" ]
null
null
null
kglib/utils/StarData.py
kgullikson88/gullikson-scripts
8a9f00a6977dad8d4477eef1d664fd62e9ecab75
[ "MIT" ]
1
2018-03-19T13:59:25.000Z
2018-03-19T13:59:25.000Z
from __future__ import print_function import os import logging from astropy.io import fits import numpy as np from astroquery.simbad import Simbad import pandas as pd from kglib import stellar_data from .HelperFunctions import convert_to_hex Simbad.TIMEOUT = 60 try: Simbad.add_votable_fields('sp', 'flux(V)', '...
30.484848
115
0.607356
2da6231cee7ee6584b8602ee757dfd1f6d52d96e
2,003
py
Python
venv/Lib/site-packages/pyrogram/raw/types/input_messages_filter_geo.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/input_messages_filter_geo.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_messages_filter_geo.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.296875
103
0.635047
2da635f052c378a577d77b9b0c20e49d62741de7
12,254
py
Python
examples/steady_horseshoe_vortex_lattice_method_solver_example.py
camUrban/PteraSoftware
cd5163aa2cc5ea76a906b271d9d9958ad99e57bd
[ "MIT" ]
68
2020-07-18T20:49:37.000Z
2022-03-23T21:07:35.000Z
examples/steady_horseshoe_vortex_lattice_method_solver_example.py
camUrban/PteraSoftware
cd5163aa2cc5ea76a906b271d9d9958ad99e57bd
[ "MIT" ]
13
2020-08-20T04:56:44.000Z
2022-03-27T14:34:02.000Z
examples/steady_horseshoe_vortex_lattice_method_solver_example.py
camUrban/PteraSoftware
cd5163aa2cc5ea76a906b271d9d9958ad99e57bd
[ "MIT" ]
17
2020-07-23T22:26:31.000Z
2022-03-27T12:34:27.000Z
"""This is script is an example of how to run Ptera Software's steady horseshoe vortex lattice method solver on a custom airplane.""" # First, import the software's main package. Note that if you wished to import this # software into another package, you would first install the software by running "pip # install pteras...
50.846473
100
0.607802
2da6673efc09c78028b8fa2cfc84c380ff8cde13
7,438
py
Python
dpa/product/version/__init__.py
Clemson-DPA/dpa-pipe
2482b8a0fd96dc19c0be4e82c3eaf0508914a968
[ "MIT" ]
55
2015-07-15T02:33:55.000Z
2020-12-28T08:02:54.000Z
dpa/product/version/__init__.py
Clemson-DPA/dpa-pipe
2482b8a0fd96dc19c0be4e82c3eaf0508914a968
[ "MIT" ]
5
2015-07-11T03:21:10.000Z
2016-12-27T12:20:07.000Z
dpa/product/version/__init__.py
Clemson-DPA/dpa-pipe
2482b8a0fd96dc19c0be4e82c3eaf0508914a968
[ "MIT" ]
12
2015-07-08T04:48:39.000Z
2020-06-27T11:35:58.000Z
"""Classes and functions related to DPA pipeline product versions.""" # ----------------------------------------------------------------------------- # Imports: # ----------------------------------------------------------------------------- from dateutil import parser as date_parser from dpa.ptask.spec import PTaskS...
35.251185
79
0.404813
2da6724993a67ea317848c3b6192baa9f916d01a
1,702
py
Python
config/settings/test.py
rajat-np/notification-django-app
37929b654cc8bceadb73b50897297ef49f1af7c4
[ "MIT" ]
null
null
null
config/settings/test.py
rajat-np/notification-django-app
37929b654cc8bceadb73b50897297ef49f1af7c4
[ "MIT" ]
1
2022-02-28T23:10:02.000Z
2022-02-28T23:10:02.000Z
config/settings/test.py
rajat-np/notification-django-app
37929b654cc8bceadb73b50897297ef49f1af7c4
[ "MIT" ]
null
null
null
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="W24H6bUAr...
32.730769
80
0.49765
2da68465519d90132d3523c9c4ba0d27a3a9b44f
2,150
py
Python
minato_namikaze/bot_files/lib/classes/setup/unban.py
The-4th-Hokage/yondaime-hokage
f2c92a3821cd3d0409c25dafe336f931c7e37324
[ "Apache-2.0" ]
8
2021-05-20T07:32:20.000Z
2022-02-09T17:09:38.000Z
minato_namikaze/bot_files/lib/classes/setup/unban.py
The-4th-Hokage/yondaime-hokage
f2c92a3821cd3d0409c25dafe336f931c7e37324
[ "Apache-2.0" ]
77
2021-06-18T08:55:12.000Z
2022-03-31T07:15:12.000Z
minato_namikaze/bot_files/lib/classes/setup/unban.py
The-4th-Hokage/yondaime-hokage
f2c92a3821cd3d0409c25dafe336f931c7e37324
[ "Apache-2.0" ]
8
2021-08-14T11:29:49.000Z
2022-03-16T17:37:53.000Z
import discord from discord.ext import menus from discord.ext.menus.views import ViewMenu from ...util import SetupVars from ..embed import Embed class Unban(ViewMenu): def __init__(self, bot, timeout, channel): super().__init__(timeout=timeout) self.bot = bot self.channel = channel ...
37.068966
107
0.586512
2da6958c69b04ee63480729889e4047df93bc287
1,374
py
Python
setup.py
justtopich/sphinx_lootnika_theme
c2e9d18921377a37134c17d0e48ae2ad6da2b5cc
[ "BSD-2-Clause" ]
1
2021-03-17T10:55:26.000Z
2021-03-17T10:55:26.000Z
setup.py
justtopich/sphinx_lootnika_theme
c2e9d18921377a37134c17d0e48ae2ad6da2b5cc
[ "BSD-2-Clause" ]
null
null
null
setup.py
justtopich/sphinx_lootnika_theme
c2e9d18921377a37134c17d0e48ae2ad6da2b5cc
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name='sphinx_lootnika_theme', version='0.2.2-beta.0', description='A Sphinx-doc theme created as Vue.js SPA', long_description=long_description, long_description_content_type=...
29.869565
63
0.604076
2da6a179533bb19116f66a9ece18c315c84e34ca
7,252
py
Python
utils/text_featurizers.py
liukai123456789/TensorflowASR
b414f9189a15f0c1b3bdc4d5bf7d9e4a1eab0710
[ "Apache-2.0" ]
1
2021-06-15T01:19:21.000Z
2021-06-15T01:19:21.000Z
utils/text_featurizers.py
liukai123456789/TensorflowASR
b414f9189a15f0c1b3bdc4d5bf7d9e4a1eab0710
[ "Apache-2.0" ]
null
null
null
utils/text_featurizers.py
liukai123456789/TensorflowASR
b414f9189a15f0c1b3bdc4d5bf7d9e4a1eab0710
[ "Apache-2.0" ]
null
null
null
import codecs import tensorflow as tf from utils.tools import preprocess_paths class TextFeaturizer: """ Extract text feature based on char-level granularity. By looking up the vocabulary table, each line of transcript will be converted to a sequence of integer indexes. """ def ...
39.2
96
0.563017
2da6c374491d7e2282ba9df73ec13dba19063d41
14,728
py
Python
VDP_Layers.py
jrepifano/mortality-tool
5503f1cddee5654219ef1aed4d2128e30058ae28
[ "MIT" ]
1
2021-01-28T22:27:55.000Z
2021-01-28T22:27:55.000Z
VDP_Layers.py
jrepifano/mortality-tool
5503f1cddee5654219ef1aed4d2128e30058ae28
[ "MIT" ]
null
null
null
VDP_Layers.py
jrepifano/mortality-tool
5503f1cddee5654219ef1aed4d2128e30058ae28
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.utils.data from torch.autograd import grad torch.set_default_tensor_type(torch.cuda.FloatTensor) #################################################################################################### # # Author: Chris Angelini # # Purpose: Expansion of the Bayesian VDP...
43.445428
140
0.591391
2da6e2b7daf37f5bf0db754cfc12d50d0f0b7bd0
56,838
py
Python
sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.102222
118
0.702857
2da6e51ec2dae5e0538619156537ccef022f912f
3,953
py
Python
registered/merge.py
mbta/registered
f6c7f08cd7b91127795c3e459b4d45da35b35c6e
[ "MIT" ]
null
null
null
registered/merge.py
mbta/registered
f6c7f08cd7b91127795c3e459b4d45da35b35c6e
[ "MIT" ]
2
2021-05-05T13:29:38.000Z
2022-02-10T21:15:59.000Z
registered/merge.py
mbta/registered
f6c7f08cd7b91127795c3e459b4d45da35b35c6e
[ "MIT" ]
1
2021-04-13T12:45:21.000Z
2021-04-13T12:45:21.000Z
""" Merge a given HASTUS export (along with the test files) into one file per type. - NDE: stops - PLC: places - RTE: routes - TRP: trips - PAT: route patterns - PPAT: timepoints - BLK: blocks - CRW: runs """ import argparse import pathlib from datetime import datetime MERGE_DIRECTORIES = [ "HASTUS_export", "...
27.262069
83
0.622818
2da6f4a060365598986f5a052c8976a317a1794a
1,475
py
Python
flexget/tests/test_parsingapi.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/tests/test_parsingapi.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/tests/test_parsingapi.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin from flexget.plugin import get_plugin_by_name, get_plugins from flexget.plugins.parsers import plugin_parsing class TestParsingAPI(object): def test_all_types_handled(self...
42.142857
120
0.696271
2da70a4e11c5ec238848c60be1cc801fe481748b
46,008
py
Python
src/olympia/stats/tests/test_views.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/stats/tests/test_views.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/stats/tests/test_views.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import csv import json from datetime import date from unittest import mock from django.http import Http404 from django.test.client import RequestFactory from django.utils.encoding import force_text from waffle.testutils import override_flag, override_switch from olympia import amo from olympi...
33.075485
95
0.509803
2da70dac02393ce601deb146751bd691ccad8fb9
30,764
py
Python
Python_Code/Backups/Radiosonde_WebDownloader/Radiosonde_WebDownloader_v1.4.py
pacificgilly1992/WC3_InSitu_Electrification
90e75c726811a4639315cab3a06258c711b2dda0
[ "Unlicense" ]
null
null
null
Python_Code/Backups/Radiosonde_WebDownloader/Radiosonde_WebDownloader_v1.4.py
pacificgilly1992/WC3_InSitu_Electrification
90e75c726811a4639315cab3a06258c711b2dda0
[ "Unlicense" ]
null
null
null
Python_Code/Backups/Radiosonde_WebDownloader/Radiosonde_WebDownloader_v1.4.py
pacificgilly1992/WC3_InSitu_Electrification
90e75c726811a4639315cab3a06258c711b2dda0
[ "Unlicense" ]
null
null
null
############################################################################ # Project: Electrical Pre-Conditioning of Convective Clouds, # Title: Collecting Web Data # Author: James Gilmore, # Email: james.gilmore@pgr.reading.ac.uk. # Version: 1.4 # Date: 13/12/2018 # Status: Stable # Change: Added support for PG, Lig...
38.892541
284
0.648583
2da70f7ddf1a8bf5f35eda1232703f933e2ed77b
6,854
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v2alpha1_cron_job.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v2alpha1_cron_job.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v2alpha1_cron_job.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V2alp...
31.013575
295
0.608987