hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
f8ac5fabe068225bc64ed71253c98847458bd024
813
py
Python
media_management_lti/settings/local.py
Harvard-ATG/media_management_lti
a4b89c3e1c5f7a8adc31a258413b512507916a94
[ "BSD-3-Clause" ]
5
2017-09-25T19:55:50.000Z
2020-11-14T23:39:31.000Z
media_management_lti/settings/local.py
Harvard-ATG/media_management_lti
a4b89c3e1c5f7a8adc31a258413b512507916a94
[ "BSD-3-Clause" ]
105
2016-01-25T19:00:40.000Z
2021-02-23T18:57:38.000Z
media_management_lti/settings/local.py
Harvard-ATG/media_management_lti
a4b89c3e1c5f7a8adc31a258413b512507916a94
[ "BSD-3-Clause" ]
5
2016-03-08T14:28:31.000Z
2020-11-14T23:39:32.000Z
from .base import * from logging.config import dictConfig ALLOWED_HOSTS = ['*'] EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' SESSION_ENGINE = 'django.contrib.sessions.backends.file' #INSTALLED_APPS += ('debug_toolbar',) #MIDDLEWARE += ('debug_toolbar.middleware.DebugToolbarMiddleware',) # For D...
23.911765
92
0.730627
c7a6af7c3b468b76f48484949321cf5df195841a
3,217
py
Python
unlocode.py
bhaumikmistry/pyairports
70e482491ca45848cb0c944214fb6c9954359418
[ "Apache-2.0" ]
null
null
null
unlocode.py
bhaumikmistry/pyairports
70e482491ca45848cb0c944214fb6c9954359418
[ "Apache-2.0" ]
null
null
null
unlocode.py
bhaumikmistry/pyairports
70e482491ca45848cb0c944214fb6c9954359418
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple from pyairports import airports import os import io import csv other = namedtuple('other', ['iata', 'name', 'country', 'subdiv', 'type', 'lat', 'lon']) def is_port(f): # 1 = port, as defined in Rec. 16 # 2 = rail terminal # 3 = road terminal # 4 = airport # 5 =...
25.736
126
0.507616
a5773b7dee292917c9c3ec3feb77c4f0c8c4b985
1,720
py
Python
tests/test_maximum_x_projection.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
2
2020-07-01T06:20:44.000Z
2020-07-01T09:36:48.000Z
tests/test_maximum_x_projection.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
null
null
null
tests/test_maximum_x_projection.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
1
2020-06-29T18:40:54.000Z
2020-06-29T18:40:54.000Z
import pyclesperanto_prototype as cle import numpy as np def test_maximum_x_projection(): test1 = cle.push(np.asarray([ [ [1, 0, 0, 0, 9], [0, 2, 0, 8, 0], [3, 0, 1, 0, 10], [0, 4, 0, 7, 0], [5, 0, 6, 0, 10] ], [ [0, 2, 0, 8, ...
21.5
59
0.37907
bd597009651752f3e370448c33891d921388c3e4
479
py
Python
examples/simple/simple.py
anisehsani/yahp
47326c39df9dcc64dcb62071f62898bb52105b21
[ "Apache-2.0" ]
null
null
null
examples/simple/simple.py
anisehsani/yahp
47326c39df9dcc64dcb62071f62898bb52105b21
[ "Apache-2.0" ]
null
null
null
examples/simple/simple.py
anisehsani/yahp
47326c39df9dcc64dcb62071f62898bb52105b21
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. import os from dataclasses import dataclass from typing import Optional import yahp as hp @dataclass class SimpleExample(hp.Hparams): foo: int = hp.required("foo field") bar: float = hp.optional("bar field", default=1.0) baz: Optional[str] = hp.optional("b...
22.809524
86
0.73904
f29c35abb1b9b6d5df65f690ae7d4cd169dd3d8b
3,506
py
Python
pyreversi/args.py
thib1984/pyreversi
3e71f86d46c84daeaba35abea743943505f3c643
[ "MIT" ]
null
null
null
pyreversi/args.py
thib1984/pyreversi
3e71f86d46c84daeaba35abea743943505f3c643
[ "MIT" ]
null
null
null
pyreversi/args.py
thib1984/pyreversi
3e71f86d46c84daeaba35abea743943505f3c643
[ "MIT" ]
null
null
null
""" pygitscrum argparse gestion """ import argparse import sys class CustomHelpFormatter(argparse.HelpFormatter): def _format_action_invocation(self, action): if not action.option_strings or action.nargs == 0: return super()._format_action_invocation(action) default = self._get_defaul...
28.737705
91
0.564461
10d1cddf2d8d42b52012aadf7a7bd5cc17e4096e
865
py
Python
tests/test_depth.py
n-Holmes/multiter
d09a11028d4d8ac415adf8be3b7442a675bcc3cb
[ "MIT" ]
null
null
null
tests/test_depth.py
n-Holmes/multiter
d09a11028d4d8ac415adf8be3b7442a675bcc3cb
[ "MIT" ]
null
null
null
tests/test_depth.py
n-Holmes/multiter
d09a11028d4d8ac415adf8be3b7442a675bcc3cb
[ "MIT" ]
null
null
null
"""Tests for depth-based iterators.""" import pytest from multiter import depthflatten, depthenum def test_correct_depth(): """Check that depth based iterators stop at the desired depth. Given a three-dimensional iterable. When depthflatten or depthenum are called on the iterable with specified depth. ...
34.6
83
0.700578
267bd4ba4d424587bc0b619e66ede0e171e4acb6
5,238
py
Python
trans.py
darkchii/English2Chinese
190e0a7f0c996ec6900c8e41789b566e8935c22a
[ "MIT" ]
4
2018-03-06T15:42:31.000Z
2018-06-21T10:00:12.000Z
trans.py
darkchii/English2Chinese
190e0a7f0c996ec6900c8e41789b566e8935c22a
[ "MIT" ]
null
null
null
trans.py
darkchii/English2Chinese
190e0a7f0c996ec6900c8e41789b566e8935c22a
[ "MIT" ]
null
null
null
from requests import Session from bs4 import BeautifulSoup import re version = 'v0.0.8' url = 'https://www.baidu.com/s' User_Agent = 'Chrome/64.0.3282.168' # 改为自己使用的浏览器 headers = { 'User-Agent': User_Agent, } s = Session() ''' 利用百度搜索的特点: 把输入的词加上'百度翻译'进行关键字搜索 就可以翻译英文句子了 ''' def English2Chinese(word=''): p...
23.176991
99
0.550019
24ab335c8ee50f8ca65fa9961af50d40601212b4
9,438
py
Python
stage_pd.py
nicod-man/Person-Detection-and-Tracking
a76b01792ee43d293c952f2527c0a2c6d2514efe
[ "MIT" ]
null
null
null
stage_pd.py
nicod-man/Person-Detection-and-Tracking
a76b01792ee43d293c952f2527c0a2c6d2514efe
[ "MIT" ]
null
null
null
stage_pd.py
nicod-man/Person-Detection-and-Tracking
a76b01792ee43d293c952f2527c0a2c6d2514efe
[ "MIT" ]
null
null
null
from tensorflow import keras from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array from cv2 import * import Person_det_track import detector import keras import os, sys, time, socket import threading import argparse import numpy as np import cv2 modelsdir = 'models' default_server_port = 925...
33.827957
105
0.495232
9efcd7f855f8708f629d904eb7e1e8b6720ec19d
6,028
py
Python
python/smqtk/representation/detection_element/_interface.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
82
2015-01-07T15:33:29.000Z
2021-08-11T18:34:05.000Z
python/smqtk/representation/detection_element/_interface.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
230
2015-04-08T14:36:51.000Z
2022-03-14T17:55:30.000Z
python/smqtk/representation/detection_element/_interface.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
65
2015-01-04T15:00:16.000Z
2021-11-19T18:09:11.000Z
import abc from smqtk.exceptions import NoDetectionError from smqtk.representation import SmqtkRepresentation from smqtk.utils.dict import merge_dict from smqtk.utils.plugin import Pluggable class DetectionElement (SmqtkRepresentation, Pluggable): """ Representation of a spatial detection. """ __slo...
31.233161
81
0.640511
56b186ba86a6b9a2488d72ea50b0c1eda385af91
1,975
py
Python
lib/controllers/table/Vocabulary.py
dpozorski/TuringMachine
99bc55d69c644f06c752c1e92e6f3366ec8777fe
[ "MIT" ]
null
null
null
lib/controllers/table/Vocabulary.py
dpozorski/TuringMachine
99bc55d69c644f06c752c1e92e6f3366ec8777fe
[ "MIT" ]
null
null
null
lib/controllers/table/Vocabulary.py
dpozorski/TuringMachine
99bc55d69c644f06c752c1e92e6f3366ec8777fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Vocabulary Docstring The Vocabulary class represents a collection of words that should be considered as the domain of words that may be written to or present on the machine's tape. """ from lib.controllers.table.Word import Word from typing import Set __author__ = "Dylan Pozorski" __proj...
17.477876
49
0.682025
afc6b8d4036e0ac300c442bd9c3d6f9222d2c0c8
572
py
Python
tests/conftest.py
georgealton/iam-policy-validator-to-sarif
a753c9b1c41ae1250ed24cdd64f9eab5d98d678d
[ "MIT" ]
3
2021-11-17T10:37:48.000Z
2022-01-17T11:03:05.000Z
tests/conftest.py
georgealton/iam-policy-validator-to-sarif
a753c9b1c41ae1250ed24cdd64f9eab5d98d678d
[ "MIT" ]
null
null
null
tests/conftest.py
georgealton/iam-policy-validator-to-sarif
a753c9b1c41ae1250ed24cdd64f9eab5d98d678d
[ "MIT" ]
null
null
null
import json import pytest from iam_sarif_report.adapters import checks from iam_sarif_report.domain import converter @pytest.fixture(name="sarif_schema") def _sarif_schema(shared_datadir): schema_path = shared_datadir / "sarif-schema-2.1.0.json" yield json.loads(schema_path.read_text()) @pytest.fixture(na...
24.869565
71
0.807692
095961bb5b76c758e4fb8a209e996656d76beaf8
161
py
Python
genes/views.py
moonso/phizz-genes
5a907bf3ce544a7d3b5b0054000eb8a91d13de04
[ "MIT" ]
null
null
null
genes/views.py
moonso/phizz-genes
5a907bf3ce544a7d3b5b0054000eb8a91d13de04
[ "MIT" ]
null
null
null
genes/views.py
moonso/phizz-genes
5a907bf3ce544a7d3b5b0054000eb8a91d13de04
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse def index(request): return HttpResponse("Hello, world. You're at the genes index.")
32.2
67
0.782609
add4bca79b31d50809f7d54f1b77242df977de98
1,400
py
Python
tests/client/lcd/api/auth_test.py
terra-money/terra.py
d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d
[ "MIT" ]
66
2021-10-21T23:29:38.000Z
2022-03-30T15:58:13.000Z
tests/client/lcd/api/auth_test.py
terra-money/terra.py
d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d
[ "MIT" ]
50
2021-10-19T06:11:56.000Z
2022-03-31T17:06:57.000Z
tests/client/lcd/api/auth_test.py
terra-money/terra.py
d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d
[ "MIT" ]
39
2021-11-07T17:28:31.000Z
2022-03-31T15:03:57.000Z
from terra_sdk.client.lcd import LCDClient, PaginationOptions from terra_sdk.core import Coins terra = LCDClient( url="https://pisco-lcd.terra.dev/", chain_id="pisco-1", ) def test_account_info(): # base_account result = terra.auth.account_info("terra14c64c9wdmnz9n8e9uyvtg70755zn377eyf0s4x") ass...
31.818182
84
0.754286
cb9a9c02048d8448477484e3dc49129bae5d66a5
1,461
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/GL/EXT/texture_compression_latc.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GL/EXT/texture_compression_latc.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GL/EXT/texture_compression_latc.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension EXT.texture_compression_latc This module customises the behaviour of the OpenGL.raw.GL.EXT.texture_compression_latc to provide a more Python-friendly API Overview (from the spec) This extension introduces four new block-based texture compression formats suited for unsigned and signed luminan...
37.461538
71
0.819302
08176a658566134d0bc6398df8568596e270a11e
1,269
py
Python
TrackerState.py
BlendOSVR/OSVR-Python-FFI
30371fdb00f89c28c765f450d0784f469f497711
[ "Apache-2.0" ]
null
null
null
TrackerState.py
BlendOSVR/OSVR-Python-FFI
30371fdb00f89c28c765f450d0784f469f497711
[ "Apache-2.0" ]
1
2015-11-06T20:14:49.000Z
2015-11-06T20:14:49.000Z
TrackerState.py
BlendOSVR/osvrffi
30371fdb00f89c28c765f450d0784f469f497711
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Sensics and OSVR community # 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 ...
40.935484
272
0.710008
6edf9543ac00f21117f877bd56ba70a6c0fe3bda
3,208
py
Python
etw/GUID.py
tyh2333/pywintrace
a8d42b4d705b817810b9640a4bf7ea032792a3a0
[ "Apache-2.0" ]
247
2017-09-19T20:34:22.000Z
2022-03-21T21:56:38.000Z
etw/GUID.py
tyh2333/pywintrace
a8d42b4d705b817810b9640a4bf7ea032792a3a0
[ "Apache-2.0" ]
29
2017-09-29T18:31:38.000Z
2021-05-10T08:36:10.000Z
etw/GUID.py
tyh2333/pywintrace
a8d42b4d705b817810b9640a4bf7ea032792a3a0
[ "Apache-2.0" ]
66
2017-09-19T23:21:05.000Z
2022-03-09T16:13:04.000Z
######################################################################## # Copyright 2017 FireEye 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/L...
26.957983
74
0.59788
c0e51a4fdac7b7cab77fcb8a42acc7efd368fee3
3,123
py
Python
CSE321-Operating Systems/Lab-4/Task 1 (SJF Scheduling-SRTF )/task1.py
AIM3r4j/BRACU
8f3973ca8226a496914f825a2d295d25dd5b4a4d
[ "MIT" ]
null
null
null
CSE321-Operating Systems/Lab-4/Task 1 (SJF Scheduling-SRTF )/task1.py
AIM3r4j/BRACU
8f3973ca8226a496914f825a2d295d25dd5b4a4d
[ "MIT" ]
null
null
null
CSE321-Operating Systems/Lab-4/Task 1 (SJF Scheduling-SRTF )/task1.py
AIM3r4j/BRACU
8f3973ca8226a496914f825a2d295d25dd5b4a4d
[ "MIT" ]
null
null
null
# Function to calculate the waiting time of each process def calculateWaiting(processes, n, waiting): process_check = False current_time = 0 completed = 0 #completed process count minm = 99999 shortest_remaining = 0 # Array for remaining times remaining = [0] * n for i in range(n):...
32.873684
115
0.600704
e526ace8825d594dddd95adfde7e6993616d12d2
9,246
py
Python
Advantech ADAM 6050 6060 relay module/legacy/pymodbus/datastore/modredis.py
scroix/nodel-recipes
3aa26de380d13957ae96d85befe00de6289d2687
[ "MIT" ]
8
2017-04-22T15:34:23.000Z
2022-02-03T20:00:20.000Z
Advantech ADAM 6050 6060 relay module/legacy/pymodbus/datastore/modredis.py
scroix/nodel-recipes
3aa26de380d13957ae96d85befe00de6289d2687
[ "MIT" ]
48
2016-12-01T19:25:53.000Z
2021-11-24T04:23:53.000Z
Advantech ADAM 6050 6060 relay module/legacy/pymodbus/datastore/modredis.py
scroix/nodel-recipes
3aa26de380d13957ae96d85befe00de6289d2687
[ "MIT" ]
10
2017-04-05T09:51:43.000Z
2021-07-23T04:50:41.000Z
import redis from pymodbus.exceptions import NotImplementedException, ParameterException from pymodbus.interfaces import IModbusSlaveContext from pymodbus.utilities import pack_bitstring, unpack_bitstring #---------------------------------------------------------------------------# # Logging #-------------------------...
37.738776
90
0.547372
e37c47f431121d7b436b9bc7267d6847aa1ad9f5
2,383
py
Python
particle_world.ut.py
davemenc/ParticleWorld
d518229874f932addac1b26ee140826efc24a045
[ "Apache-2.0" ]
1
2019-11-12T17:19:30.000Z
2019-11-12T17:19:30.000Z
particle_world.ut.py
davemenc/ParticleWorld
d518229874f932addac1b26ee140826efc24a045
[ "Apache-2.0" ]
null
null
null
particle_world.ut.py
davemenc/ParticleWorld
d518229874f932addac1b26ee140826efc24a045
[ "Apache-2.0" ]
null
null
null
import unittest import math import sys from particle_world import World from particle_world import Particle sys.path.insert(0, '../vector3dm') from vector3dm import Vector3dm class test_world(unittest.TestCase): def test_aero_acc(self): p = Particle(Vector3dm(10,10,10,"c"),Vector3dm(0,10,0,"c")) drag = p.aero_ac...
38.435484
129
0.715485
eb8f04d9487aba8df1d2231dd3f5f15e01dead95
2,700
py
Python
pylatex/config.py
vikorbit/PyLaTeX
9dee695c88857b4894ec110765a4b3c7f84ca853
[ "MIT" ]
4
2019-10-12T21:36:01.000Z
2021-12-21T10:03:31.000Z
pylatex/config.py
vikorbit/PyLaTeX
9dee695c88857b4894ec110765a4b3c7f84ca853
[ "MIT" ]
null
null
null
pylatex/config.py
vikorbit/PyLaTeX
9dee695c88857b4894ec110765a4b3c7f84ca853
[ "MIT" ]
1
2020-11-25T08:47:30.000Z
2020-11-25T08:47:30.000Z
# -*- coding: utf-8 -*- """ This module implements the ability to use of different configurations. The current active configuration is `pylatex.config.active`. This variable can simply be changed to another configuration and that will be used. It is also possible to use the `~.Version1.use` method to do this temporar...
23.275862
79
0.595185
d967e959057799a6eef695c7cd4d708e0a010909
1,991
py
Python
sharpy/plans/acts/protoss/chrono_unit.py
DuncanDHall/sharpy-sc2
7a47a7538ad99214e3f0288b6213cac882551180
[ "MIT" ]
null
null
null
sharpy/plans/acts/protoss/chrono_unit.py
DuncanDHall/sharpy-sc2
7a47a7538ad99214e3f0288b6213cac882551180
[ "MIT" ]
null
null
null
sharpy/plans/acts/protoss/chrono_unit.py
DuncanDHall/sharpy-sc2
7a47a7538ad99214e3f0288b6213cac882551180
[ "MIT" ]
null
null
null
import warnings from sc2.ids.ability_id import AbilityId from sc2.ids.unit_typeid import UnitTypeId from sc2.ids.buff_id import BuffId from sc2.unit import Unit, UnitOrder from sharpy.plans.acts.act_base import ActBase class ChronoUnit(ActBase): # Use Chronoboost on unit production def __init__(self, name: ...
40.632653
103
0.635861
289020e153c5719161bc8c3287414e352e8df689
3,154
py
Python
finalytics/utils/dbhelper.py
indiquant/finalytics
df0d3f715510ecb3a1c2fb41b18d893e448f46ac
[ "MIT" ]
null
null
null
finalytics/utils/dbhelper.py
indiquant/finalytics
df0d3f715510ecb3a1c2fb41b18d893e448f46ac
[ "MIT" ]
null
null
null
finalytics/utils/dbhelper.py
indiquant/finalytics
df0d3f715510ecb3a1c2fb41b18d893e448f46ac
[ "MIT" ]
null
null
null
__author__ = 'indiquant' import os import sqlite3 from enum import Enum from qrymaker import qry_createtable _DB = r'C:\temp\strat\webdata.sqlite3' _db = r'C:\temp\webdata.sqlite3' class EnumDBOptionTable(Enum): undl = 1 opt_type = 2 exc_type = 3 expiry = 4 strike = 5 recdate = 6 rectim...
19.836478
111
0.593849
fc9b2d56a76e3c8d9b5cc8625411ea6f23ebb4e1
274
py
Python
tests/artificial/transf_Difference/trend_ConstantTrend/cycle_30/ar_/test_artificial_32_Difference_ConstantTrend_30__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_Difference/trend_ConstantTrend/cycle_30/ar_/test_artificial_32_Difference_ConstantTrend_30__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_Difference/trend_ConstantTrend/cycle_30/ar_/test_artificial_32_Difference_ConstantTrend_30__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 30, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 0);
39.142857
169
0.737226
bc093be8e51d2e9aa7279bd6a23de9981dd04bcc
1,104
py
Python
gizmo/test/integration/tinkerpop.py
emehrkay/gizmo
01db2f51118f7d746061ace0b491237481949bad
[ "MIT" ]
19
2015-10-06T12:55:09.000Z
2021-01-09T09:53:38.000Z
gizmo/test/integration/tinkerpop.py
emehrkay/Gizmo
01db2f51118f7d746061ace0b491237481949bad
[ "MIT" ]
2
2016-01-21T02:55:55.000Z
2020-08-16T23:05:07.000Z
gizmo/test/integration/tinkerpop.py
emehrkay/gizmo
01db2f51118f7d746061ace0b491237481949bad
[ "MIT" ]
3
2016-01-21T02:18:41.000Z
2018-04-25T06:06:25.000Z
import asyncio import unittest import random from gremlinpy import Gremlin from . import ConnectionTestCases, EntityTestCases, MapperTestCases from gizmo import Mapper, Request, Collection, Vertex, Edge from gizmo.mapper import EntityMapper class BaseTests(unittest.TestCase): def setUp(self): self.requ...
20.830189
67
0.703804
eb6c36d643a403781f34b9f3161d4e676908e23c
4,865
py
Python
rnntutor/lib/python2.7/site-packages/notebook/services/kernels/tests/test_kernels_api.py
lucaskingjade/RNNTutorial
b641e50014b56bb8e0f8762c76f1178a9a7c911f
[ "Apache-2.0" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
rnntutor/lib/python2.7/site-packages/notebook/services/kernels/tests/test_kernels_api.py
lucaskingjade/RNNTutorial
b641e50014b56bb8e0f8762c76f1178a9a7c911f
[ "Apache-2.0" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
rnntutor/lib/python2.7/site-packages/notebook/services/kernels/tests/test_kernels_api.py
lucaskingjade/RNNTutorial
b641e50014b56bb8e0f8762c76f1178a9a7c911f
[ "Apache-2.0" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
"""Test the kernels service API.""" import json import requests from jupyter_client.kernelspec import NATIVE_KERNEL_NAME from notebook.utils import url_path_join from notebook.tests.launchnotebook import NotebookTestBase, assert_http_error class KernelAPI(object): """Wrapper for kernel REST API requests""" ...
33.784722
78
0.589928
54f66447d132d8d8353a92fb5516f5fc9688de65
621
py
Python
ex069.py
Alisson7Kruger/python-exercises
3be863613d47a6ed77086c8f0b791822d7c0082f
[ "MIT" ]
1
2021-08-19T20:43:29.000Z
2021-08-19T20:43:29.000Z
ex069.py
Alisson7Kruger/python-exercises
3be863613d47a6ed77086c8f0b791822d7c0082f
[ "MIT" ]
null
null
null
ex069.py
Alisson7Kruger/python-exercises
3be863613d47a6ed77086c8f0b791822d7c0082f
[ "MIT" ]
null
null
null
tot18 = totH = totM20 = 0 while True: idade = int(input("Idade: ")) sexo = " " while sexo not in "MF": sexo = str(input("Sexo: ")).strip().upper()[0] if idade >= 18: tot18 += 1 if sexo == "M": totH += 1 if sexo == "F" and idade < 20: totM20 += 1 resp = " " ...
27
70
0.541063
c757939fd5285680584dfa0d1d9c2b1e26f0f6d9
1,596
py
Python
Latest/venv/Lib/site-packages/pyface/tree/trait_dict_node_type.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/pyface/tree/trait_dict_node_type.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/pyface/tree/trait_dict_node_type.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
""" The node type for a trait dictionary. """ # Enthought library imports. from traits.api import Any, Str # Local imports. from .node_type import NodeType class TraitDictNodeType(NodeType): """ The node type for a trait dictionary. """ #### 'TraitDictNodeType' interface ##################################...
26.6
79
0.494361
8f0a4b7f94fbec3a0fe1ab3e3181502f1ccf63a3
6,224
py
Python
modules/analysis/gaussian.py
CoCoMol/CoCoPy
66bd4deda4b80eca65ceb0660f940214e4b457fb
[ "MIT" ]
1
2017-11-15T14:40:01.000Z
2017-11-15T14:40:01.000Z
modules/analysis/gaussian.py
CoCoMol/CoCoPy
66bd4deda4b80eca65ceb0660f940214e4b457fb
[ "MIT" ]
1
2017-11-15T14:39:38.000Z
2017-11-15T14:39:38.000Z
modules/analysis/gaussian.py
CoCoMol/CoCoPy
66bd4deda4b80eca65ceb0660f940214e4b457fb
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # # CoCoPy - A python toolkit for rotational spectroscopy # # Copyright (c) 2013 by David Schmitz (david.schmitz@chasquiwan.de). # # Permission is hereby granted, free of charge, to any person obt...
42.630137
99
0.449068
1d4fadd8e6b0e13b1a52053d2385fab4f49532a9
4,017
py
Python
gen_graph.py
tedzhouhk/tgl-1
4858e678cf1fed2e1728cf62ef879dcedb0310d1
[ "Apache-2.0" ]
9
2022-03-16T04:47:45.000Z
2022-03-31T20:02:26.000Z
gen_graph.py
tedzhouhk/tgl-1
4858e678cf1fed2e1728cf62ef879dcedb0310d1
[ "Apache-2.0" ]
1
2022-03-31T22:34:54.000Z
2022-03-31T22:34:54.000Z
gen_graph.py
tedzhouhk/tgl-1
4858e678cf1fed2e1728cf62ef879dcedb0310d1
[ "Apache-2.0" ]
2
2022-02-25T23:40:44.000Z
2022-02-26T00:41:05.000Z
import argparse import itertools import pandas as pd import numpy as np from tqdm import tqdm parser=argparse.ArgumentParser() parser.add_argument('--data', type=str, help='dataset name') parser.add_argument('--add_reverse', default=False, action='store_true') args=parser.parse_args() df = pd.read_csv('DATA/{}/edges....
41.84375
139
0.700025
f97b635e47141c84825fac432da8a2336d00cffb
629
py
Python
2021/buckeye-ctf/staff/solve.py
HaroldHH/My-CTF-Solutions
7baca0df1ca96a00de77a1a113a0011c43ad6ab8
[ "MIT" ]
null
null
null
2021/buckeye-ctf/staff/solve.py
HaroldHH/My-CTF-Solutions
7baca0df1ca96a00de77a1a113a0011c43ad6ab8
[ "MIT" ]
null
null
null
2021/buckeye-ctf/staff/solve.py
HaroldHH/My-CTF-Solutions
7baca0df1ca96a00de77a1a113a0011c43ad6ab8
[ "MIT" ]
null
null
null
import sys from pwn import * # Flag : buckeye{if_0n1y_th15_w0rk3d} elf = ELF("./chall") proc = elf.process() res = proc.recvuntil("\n").decode() res += proc.recvuntil("\n").decode() res += proc.recvuntil("\n").decode() print(res) proc.sendline("1") print(proc.recvuntil("\n").decode()) payload = b"FLAG 1337" proc.sen...
22.464286
37
0.674086
0fa4c7da36f9a94a877164dfc8177bc6cd7e374f
26,985
py
Python
saleor/graphql/order/tests/test_discount_order.py
gustavoarmoa/saleor
f81b2f347e4c7a624cd68a1eca3b0a5611498f6e
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/order/tests/test_discount_order.py
gustavoarmoa/saleor
f81b2f347e4c7a624cd68a1eca3b0a5611498f6e
[ "CC-BY-4.0" ]
40
2022-01-17T04:39:16.000Z
2022-03-27T17:08:42.000Z
saleor/graphql/order/tests/test_discount_order.py
gustavoarmoa/saleor
f81b2f347e4c7a624cd68a1eca3b0a5611498f6e
[ "CC-BY-4.0" ]
null
null
null
from decimal import Decimal from functools import partial from unittest.mock import patch import graphene import pytest from prices import Money, TaxedMoney, fixed_discount, percentage_discount from ....core.prices import quantize_price from ....discount import DiscountValueType from ....order import OrderEvents, Ord...
33.858218
88
0.731518
647e5ef76b23a9f98769a10cd1808aeff4c08aaa
3,985
py
Python
usecases/extasy_gromacs_lsdmap_adaptive/custom_kernels/pre_lsdmap.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
usecases/extasy_gromacs_lsdmap_adaptive/custom_kernels/pre_lsdmap.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
usecases/extasy_gromacs_lsdmap_adaptive/custom_kernels/pre_lsdmap.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
#!/usr/bin/env python """A kernel that creates a new ASCII file with a given size and name. """ __author__ = "Vivek <vivek.balasubramanian@rutgers.edu>" __copyright__ = "Copyright 2014, http://radical.rutgers.edu" __license__ = "MIT" from copy import deepcopy from radical.ensemblemd.exceptions import ArgumentE...
33.208333
117
0.451945
79e0fe165c813827363bffa37ffc109c489318d6
1,570
py
Python
setup.py
svenXY/prometheus-mysql-exporter
a7e5c126fee234f95a8c5b2eb2390c4f9268d5ea
[ "MIT" ]
35
2017-01-25T06:50:01.000Z
2021-12-23T15:44:46.000Z
setup.py
weiya1990/prometheus-mysql-exporter
52f2ac4c8dfa30d9dced98a137e89441581d527c
[ "MIT" ]
17
2018-01-18T09:55:45.000Z
2021-08-03T09:08:21.000Z
setup.py
weiya1990/prometheus-mysql-exporter
52f2ac4c8dfa30d9dced98a137e89441581d527c
[ "MIT" ]
18
2017-06-12T08:44:11.000Z
2021-12-23T15:44:58.000Z
from setuptools import setup, find_packages from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='prometheus-mysql-exporter', version='0.5.0', description='MySQL quer...
31.4
73
0.618471
f0a6e907a4002adce858b6a2965b85278f09d927
33,723
py
Python
authors/apps/articles/views.py
andela/ah-codeofduty
ab749037dbb08712a2e47848e31a1ccb14de1165
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/views.py
andela/ah-codeofduty
ab749037dbb08712a2e47848e31a1ccb14de1165
[ "BSD-3-Clause" ]
41
2018-10-23T08:45:43.000Z
2022-03-11T23:34:18.000Z
authors/apps/articles/views.py
andela/ah-codeofduty
ab749037dbb08712a2e47848e31a1ccb14de1165
[ "BSD-3-Clause" ]
3
2020-05-01T16:21:13.000Z
2021-05-11T08:25:11.000Z
'''articles/views.py''' import django_filters from django.contrib.postgres.fields import ArrayField from django.contrib.sites.shortcuts import get_current_site from django.core.mail import send_mail from django.shortcuts import get_object_or_404 from django.template.loader import render_to_string from django_filters im...
41.684796
115
0.62192
d97421b4eaa6348a591632b7e918ebe984508a4b
10,674
py
Python
tests/unit/remoteworker/test_remote_worker.py
FG-AI4H/health-aiaudit-platform
8eebe55c2aadcc70719b1288466639b5036f7efb
[ "BSD-3-Clause" ]
3
2021-06-14T11:45:51.000Z
2022-02-08T09:41:18.000Z
tests/unit/remoteworker/test_remote_worker.py
FG-AI4H/health-aiaudit-platform
8eebe55c2aadcc70719b1288466639b5036f7efb
[ "BSD-3-Clause" ]
null
null
null
tests/unit/remoteworker/test_remote_worker.py
FG-AI4H/health-aiaudit-platform
8eebe55c2aadcc70719b1288466639b5036f7efb
[ "BSD-3-Clause" ]
1
2021-08-20T13:38:55.000Z
2021-08-20T13:38:55.000Z
import mock import os import responses import shutil import tempfile from os.path import join from unittest import TestCase from scripts.workers.remote_submission_worker import ( create_dir_as_python_package, make_request, get_message_from_sqs_queue, delete_message_from_sqs_queue, download_and_ex...
36.430034
97
0.707045
eba7fdc9bee7f9f1ebdda035d35ae16f2ef5f6ad
1,661
py
Python
6-1.py
xeno14/advent_of_code2018
87d0f4dc76ca9cd82d68618255709e446cf09b37
[ "MIT" ]
null
null
null
6-1.py
xeno14/advent_of_code2018
87d0f4dc76ca9cd82d68618255709e446cf09b37
[ "MIT" ]
null
null
null
6-1.py
xeno14/advent_of_code2018
87d0f4dc76ca9cd82d68618255709e446cf09b37
[ "MIT" ]
null
null
null
import re import numpy as np def dist(p, q): return np.abs(p[0]-q[0]) + np.abs(p[1]-q[1]) assert dist((2,3), (4,5)) == 4 assert dist((1,1), (4,1)) == 3 if __name__ == '__main__': with open("input/6.txt") as f: # with open("input/6.test") as f: points = [] for l in f: p ...
24.426471
62
0.494281
e15c07a945216165929ec9a0fcfe69c72450f130
4,574
py
Python
userbot/modules/snips.py
hemantsachdeva/oub-remix
0db69fb8b7e98dcfaed18ac0583d50ed1f73178d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/snips.py
hemantsachdeva/oub-remix
0db69fb8b7e98dcfaed18ac0583d50ed1f73178d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/snips.py
hemantsachdeva/oub-remix
0db69fb8b7e98dcfaed18ac0583d50ed1f73178d
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-07-06T12:14:07.000Z
2020-07-06T12:14:07.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. """ Userbot module containing commands for keeping global notes. """ from userbot.events import register from userbot im...
35.457364
109
0.609095
dc281a611632733c1f8b11896da70161437af130
25,182
py
Python
msgraph-cli-extensions/v1_0/directoryobjects_v1_0/azext_directoryobjects_v1_0/vendored_sdks/directoryobjects/operations/_directory_objects_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/directoryobjects_v1_0/azext_directoryobjects_v1_0/vendored_sdks/directoryobjects/operations/_directory_objects_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
22
2022-03-29T22:54:37.000Z
2022-03-29T22:55:27.000Z
msgraph-cli-extensions/v1_0/directoryobjects_v1_0/azext_directoryobjects_v1_0/vendored_sdks/directoryobjects/operations/_directory_objects_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "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 may ...
48.6139
173
0.694067
e3726772770451c5e851e01698e366f5e571fc55
809
py
Python
Lib/corpuscrawler/crawl_anv.py
cash/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
95
2019-06-13T23:34:21.000Z
2022-03-12T05:22:49.000Z
Lib/corpuscrawler/crawl_anv.py
sahwar/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
31
2019-06-02T18:56:53.000Z
2021-08-10T20:16:02.000Z
Lib/corpuscrawler/crawl_anv.py
sahwar/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
35
2019-06-18T08:26:24.000Z
2022-01-11T13:59:40.000Z
# Copyright 2018 Google LLC # # 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 writing, ...
36.772727
74
0.770087
7e880823ee82f82a745a1e472f0308d07c08367c
681
py
Python
src/compas_view2/objects/sphereobject.py
selinabitting/compas_view2
cac8abaf8fbde13ceabe35324be92779ea2e535f
[ "MIT" ]
5
2021-03-03T13:07:31.000Z
2022-02-05T01:07:31.000Z
src/compas_view2/objects/sphereobject.py
selinabitting/compas_view2
cac8abaf8fbde13ceabe35324be92779ea2e535f
[ "MIT" ]
91
2021-01-29T14:26:28.000Z
2022-03-22T17:15:58.000Z
src/compas_view2/objects/sphereobject.py
selinabitting/compas_view2
cac8abaf8fbde13ceabe35324be92779ea2e535f
[ "MIT" ]
6
2021-01-29T11:13:45.000Z
2022-02-05T00:56:24.000Z
from compas.datastructures import Mesh from compas.geometry import Sphere from .meshobject import MeshObject class SphereObject(MeshObject): """Object for displaying COMPAS sphere geometry.""" def __init__(self, data, u=16, v=16, **kwargs): super().__init__(Mesh.from_shape(data, u=u, v=v), **kwargs) ...
25.222222
68
0.615272
aab5c97913c980a18f0db9a067f0e500ac83e61b
408
py
Python
eu-structural-funds/tests/processors/test_fill_in_constant_values.py
transpresupuestaria/os-data-importers
929e07aefc98ae4788e75c682d4c3adc014bf6ce
[ "MIT" ]
null
null
null
eu-structural-funds/tests/processors/test_fill_in_constant_values.py
transpresupuestaria/os-data-importers
929e07aefc98ae4788e75c682d4c3adc014bf6ce
[ "MIT" ]
null
null
null
eu-structural-funds/tests/processors/test_fill_in_constant_values.py
transpresupuestaria/os-data-importers
929e07aefc98ae4788e75c682d4c3adc014bf6ce
[ "MIT" ]
null
null
null
"""Test module for the `fill_in_constant_fields` processor.""" from common.processors.fill_in_constant_fields import fill_columns def test_fill_columns_without_constants_returns_identical_row(): assert fill_columns({'foo': 'bar'}) == {'foo': 'bar'} def test_fill_columns_returns_correct_row(): new_row = fil...
31.384615
67
0.732843
b6aec15be2dd3e9cf1592e8bdc312b371d44008b
352
py
Python
fibonacci.py
ANITHARANGANATHAN/python
5f4976341a94aa28b16410349e52cd4fc5865292
[ "MIT" ]
null
null
null
fibonacci.py
ANITHARANGANATHAN/python
5f4976341a94aa28b16410349e52cd4fc5865292
[ "MIT" ]
null
null
null
fibonacci.py
ANITHARANGANATHAN/python
5f4976341a94aa28b16410349e52cd4fc5865292
[ "MIT" ]
null
null
null
nterms = int(input("how many terms?")) n1,n2=0,1 count = 0 if nterms <= 0: print("please enter a positive integer") elif nterms == 1: print("fibonacci sequence upto",nterms,":") print(n1) else: print("fibonacci sequence:") while count < nterms: print(n1) nth = n1+n2 n...
20.705882
47
0.553977
61571e0894dfea56222d0b461debfdf1cd9c3bb2
4,945
py
Python
kolla_mesos/service_definition.py
nhlfr/kolla-mesos
a0ffda04aedf02fb2ed10218b87b4ed4eb5aa5f7
[ "Apache-2.0" ]
null
null
null
kolla_mesos/service_definition.py
nhlfr/kolla-mesos
a0ffda04aedf02fb2ed10218b87b4ed4eb5aa5f7
[ "Apache-2.0" ]
null
null
null
kolla_mesos/service_definition.py
nhlfr/kolla-mesos
a0ffda04aedf02fb2ed10218b87b4ed4eb5aa5f7
[ "Apache-2.0" ]
null
null
null
# 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 writing, software # distributed under th...
37.462121
79
0.594742
9599fa16175bb8321f78e1b6f6862b75d383a7cd
22,646
py
Python
src/_pytest/main.py
kalekundert/pytest
253419316ce09b952862811db229a9e9383a332b
[ "MIT" ]
1
2018-08-01T09:32:16.000Z
2018-08-01T09:32:16.000Z
src/_pytest/main.py
Jacklibobo/pytest
253419316ce09b952862811db229a9e9383a332b
[ "MIT" ]
null
null
null
src/_pytest/main.py
Jacklibobo/pytest
253419316ce09b952862811db229a9e9383a332b
[ "MIT" ]
null
null
null
""" core implementation of testing process: init, session, runtest loop. """ from __future__ import absolute_import, division, print_function import contextlib import functools import os import pkgutil import six import sys import _pytest from _pytest import nodes import _pytest._code import py from _pytest.config i...
34.260212
109
0.592423
6e4673b7d92e5792fda28b6efd0785c3de795621
2,049
py
Python
novaagent/xenstore/xenstore.py
JourdanClark/nova-agent
cccea98bc5b55982352ab50d751907eb5465e675
[ "Apache-2.0" ]
2
2017-08-08T21:46:02.000Z
2018-01-24T21:40:15.000Z
novaagent/xenstore/xenstore.py
JourdanClark/nova-agent
cccea98bc5b55982352ab50d751907eb5465e675
[ "Apache-2.0" ]
27
2017-08-07T13:51:51.000Z
2021-05-22T23:46:57.000Z
novaagent/xenstore/xenstore.py
JourdanClark/nova-agent
cccea98bc5b55982352ab50d751907eb5465e675
[ "Apache-2.0" ]
13
2017-09-16T12:12:05.000Z
2021-03-04T21:41:16.000Z
from subprocess import PIPE from subprocess import Popen import json def xenstore_read(path, client, to_json=False): result = None if client is None: p = Popen( ['xenstore-read', path], stdout=PIPE, stderr=PIPE ) output, _ = p.communicate() ...
23.022472
75
0.507565
f31a7d17386531baa5db378d386b993fb404cff8
54,893
py
Python
tensorflow/python/distribute/mirrored_strategy_test.py
vladbataev/tensorflow
139cc09ea1cee1c69bcb27022199899db5cdd9e5
[ "Apache-2.0" ]
1
2020-03-02T20:45:18.000Z
2020-03-02T20:45:18.000Z
tensorflow/python/distribute/mirrored_strategy_test.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
2
2021-08-25T15:58:27.000Z
2022-02-10T02:04:40.000Z
tensorflow/python/distribute/mirrored_strategy_test.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
2
2021-04-28T20:57:17.000Z
2022-01-11T13:05:41.000Z
# Copyright 2018 The TensorFlow 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 required by applica...
39.237312
113
0.715956
41f0a016fcc4f446dc414074472959db2aff82eb
46,721
py
Python
shotgun/external_libs/libevent/event_rpcgen.py
tqrg-bot/rubinius
beb0fe3968ea7ff3c09e192605eef066136105c8
[ "BSD-3-Clause" ]
null
null
null
shotgun/external_libs/libevent/event_rpcgen.py
tqrg-bot/rubinius
beb0fe3968ea7ff3c09e192605eef066136105c8
[ "BSD-3-Clause" ]
null
null
null
shotgun/external_libs/libevent/event_rpcgen.py
tqrg-bot/rubinius
beb0fe3968ea7ff3c09e192605eef066136105c8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2005 Niels Provos <provos@citi.umich.edu> # All rights reserved. # # Generates marshaling code based on libevent. import sys import re # _NAME = "event_rpcgen.py" _VERSION = "0.1" _STRUCT_RE = '[a-z][a-z_0-9]*' # Globals line_count = 0 white = re.compile(r'^\s+') cppcomment =...
33.419886
79
0.452088
30478ca1221294a1b71b05f889f991a719892e4f
3,484
py
Python
kospeech/models/decoder.py
Rhcsky/KoSpeech
dbff78140d150dcc71d14d65f81c011847e9574d
[ "Apache-2.0" ]
null
null
null
kospeech/models/decoder.py
Rhcsky/KoSpeech
dbff78140d150dcc71d14d65f81c011847e9574d
[ "Apache-2.0" ]
null
null
null
kospeech/models/decoder.py
Rhcsky/KoSpeech
dbff78140d150dcc71d14d65f81c011847e9574d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, Soohwan Kim. 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 appli...
37.869565
120
0.641217
73b00b39357e15f4cf1d3bc77bd5ea4f3ad63bc8
47,275
py
Python
Ctrax/tracking_settings.py
johnabender/ctrax-tmp
3e326ca9d00472dff0dbaea6528f349a5225ad90
[ "Unlicense" ]
null
null
null
Ctrax/tracking_settings.py
johnabender/ctrax-tmp
3e326ca9d00472dff0dbaea6528f349a5225ad90
[ "Unlicense" ]
null
null
null
Ctrax/tracking_settings.py
johnabender/ctrax-tmp
3e326ca9d00472dff0dbaea6528f349a5225ad90
[ "Unlicense" ]
null
null
null
import copy import os import sys import motmot.wxvideo.wxvideo as wxvideo import motmot.wxvalidatedtext.wxvalidatedtext as wxvt # part of Motmot import numpy as num #from scipy.misc.pilutil import imresize import wx from wx import xrc import codedir import params import ellipsesk as ell from ellipses_draw import dra...
43.21298
146
0.628683
c2687c842573c8e780aca2c0602919b9514fe940
4,837
py
Python
test/functional/mempool_reorg.py
daface45/cerebralcoin
0ea3caf2b22113c31c8fd3672f9dc6fa092ffd29
[ "MIT" ]
1
2021-10-07T01:18:40.000Z
2021-10-07T01:18:40.000Z
test/functional/mempool_reorg.py
daface45/cerebralcoin
0ea3caf2b22113c31c8fd3672f9dc6fa092ffd29
[ "MIT" ]
null
null
null
test/functional/mempool_reorg.py
daface45/cerebralcoin
0ea3caf2b22113c31c8fd3672f9dc6fa092ffd29
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Cerebralcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool re-org scenarios. Test re-org scenarios with a mempool that contains transactions th...
47.891089
122
0.704155
8a9bff77db967acf8a1eceba26397dfcade23476
896
py
Python
download_assets.py
nikitablack/vulkan
cac1d2e850bb0ac5d4d6fa6949faabdc57b82c21
[ "MIT" ]
11
2019-06-27T19:29:09.000Z
2021-03-03T18:24:49.000Z
download_assets.py
nikitablack/vulkan
cac1d2e850bb0ac5d4d6fa6949faabdc57b82c21
[ "MIT" ]
1
2020-02-16T03:51:47.000Z
2020-02-16T03:51:47.000Z
download_assets.py
nikitablack/vulkan
cac1d2e850bb0ac5d4d6fa6949faabdc57b82c21
[ "MIT" ]
3
2019-08-21T14:04:02.000Z
2020-11-12T07:27:42.000Z
#!/usr/bin/env python3 import sys from urllib.request import urlretrieve from zipfile import ZipFile ASSET_PACK_URL = 'http://vulkan.gpuinfo.org/downloads/vulkan_asset_pack.zip' ASSET_PACK_FILE_NAME = 'vulkan_asset_pack.zip' print("Downloading asset pack from '%s'" % ASSET_PACK_URL) def reporthook(blocknum, blo...
28
95
0.690848
2a3d9131c07795a539b35be2070754add94f6692
15,520
py
Python
python/pyarrow/__init__.py
cool-RR/arrow
e78aa4c986e6f0b58d857b55997955ba3dc10b02
[ "Apache-2.0" ]
1
2020-06-06T16:16:14.000Z
2020-06-06T16:16:14.000Z
python/pyarrow/__init__.py
ysriram/arrow
2bff6138b5e97b5e94ebf6fe6a5a9f61ba2c80a0
[ "Apache-2.0" ]
null
null
null
python/pyarrow/__init__.py
ysriram/arrow
2bff6138b5e97b5e94ebf6fe6a5a9f61ba2c80a0
[ "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 (the # "License"); you may not u...
40.949868
83
0.605026
9bd58c4dd1d6cf103b6de7779b798cdb5b41f7bf
7,249
py
Python
accelbyte_py_sdk/api/iam/operations/users/get_publisher_user.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/iam/operations/users/get_publisher_user.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/iam/operations/users/get_publisher_user.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
# Auto-generated at 2021-09-27T17:01:24.686781+08:00 # from: Justice Iam Service (4.1.0) # Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # pylint: disable=duplicate-code # pylint: ...
28.880478
172
0.620499
940ff0a9407c9528e1e47319ca65c67b88467888
1,142
py
Python
config/views.py
jlillest/geodjango-tigerleaflet-example
f1b6ba178193c235f9740fece578deb09b149d98
[ "MIT" ]
1
2016-12-25T15:32:50.000Z
2016-12-25T15:32:50.000Z
config/views.py
jlillest/geodjango-tigerleaflet-example
f1b6ba178193c235f9740fece578deb09b149d98
[ "MIT" ]
null
null
null
config/views.py
jlillest/geodjango-tigerleaflet-example
f1b6ba178193c235f9740fece578deb09b149d98
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView from tigerleaflet.models import State class Index(TemplateView): template_name = "pages/country.html" def get_context_data(self, **kwargs): return { 'title': "Welcome to the tigerleaflet demo!"} class StateView(TemplateView): template_name = "pages/st...
33.588235
73
0.609457
1c7853e01dee23841d010c8878e7a6c8a668d467
4,575
py
Python
qa/rpc-tests/multi_rpc.py
r3vcoin-project/r3vcoin
6f72edb47bae7011a08c9e2621c3955d3bb7ed26
[ "MIT" ]
null
null
null
qa/rpc-tests/multi_rpc.py
r3vcoin-project/r3vcoin
6f72edb47bae7011a08c9e2621c3955d3bb7ed26
[ "MIT" ]
null
null
null
qa/rpc-tests/multi_rpc.py
r3vcoin-project/r3vcoin
6f72edb47bae7011a08c9e2621c3955d3bb7ed26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test multiple rpc user config option rpcauth # from test_framework.test_framework import BitcoinTest...
37.809917
129
0.645246
24b6e9d5f861960514e136f950d7b77a4c2dd0f7
13,523
py
Python
{{cookiecutter.repo_name}}/utilities.py
Bhaskers-Blu-Org2/deep_bait
8caa5a7b0472be09d8bea700f4c031273682d375
[ "MIT" ]
14
2017-12-03T15:59:28.000Z
2019-04-17T12:55:00.000Z
{{cookiecutter.repo_name}}/utilities.py
microsoft/deep_bait
8caa5a7b0472be09d8bea700f4c031273682d375
[ "MIT" ]
6
2017-11-29T09:33:59.000Z
2017-12-05T01:11:17.000Z
{{cookiecutter.repo_name}}/utilities.py
Microsoft/deep_bait
8caa5a7b0472be09d8bea700f4c031273682d375
[ "MIT" ]
7
2017-11-29T14:47:22.000Z
2018-06-21T00:53:32.000Z
from __future__ import print_function import json import logging import os import pprint import time import azure.mgmt.batchai as training import azure.mgmt.batchai.models as models import requests from azure.common.credentials import ServicePrincipalCredentials from azure.storage.file import FileService logger = lo...
39.540936
142
0.658656
3d064b81294e09c43270d3a34f1f507298b9739b
1,214
py
Python
run.py
iamsushanth/Automating-Real-World-Tasks-with-Python
eb471866a26043e18cf92f65a26abd8e498b61b2
[ "MIT" ]
null
null
null
run.py
iamsushanth/Automating-Real-World-Tasks-with-Python
eb471866a26043e18cf92f65a26abd8e498b61b2
[ "MIT" ]
null
null
null
run.py
iamsushanth/Automating-Real-World-Tasks-with-Python
eb471866a26043e18cf92f65a26abd8e498b61b2
[ "MIT" ]
2
2020-07-19T10:46:53.000Z
2020-08-21T08:27:22.000Z
"""Automate Updating Catalog Information - run.py""" #! /usr/bin/env python3 import os import requests BASEPATH_SUPPLIER_TEXT_DES = os.path.expanduser('~') + '/supplier-data/descriptions/' list_text_files = os.listdir(BASEPATH_SUPPLIER_TEXT_DES) BASEPATH_SUPPLIER_IMAGE = os.path.expanduser('~') + '/supplier-da...
35.705882
86
0.652389
2453495e645e6fd08d607afd46926c51472350a8
1,869
py
Python
cotaau/urls.py
dezcor/Cotaau
1914e5fac77734a9e82c3b49110da3ebe079d618
[ "Apache-2.0" ]
null
null
null
cotaau/urls.py
dezcor/Cotaau
1914e5fac77734a9e82c3b49110da3ebe079d618
[ "Apache-2.0" ]
null
null
null
cotaau/urls.py
dezcor/Cotaau
1914e5fac77734a9e82c3b49110da3ebe079d618
[ "Apache-2.0" ]
null
null
null
"""cotaau URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
50.513514
140
0.742108
df99bb7c1c6b4e51138d42504a4807e6fcc0e0c9
3,189
py
Python
toktak_slam/scripts/ObstacleAvoidance.py
chatreejs/assistiverobot.ros
4644d17cb657d5a72e48e712abf00f190bedfe07
[ "MIT" ]
null
null
null
toktak_slam/scripts/ObstacleAvoidance.py
chatreejs/assistiverobot.ros
4644d17cb657d5a72e48e712abf00f190bedfe07
[ "MIT" ]
null
null
null
toktak_slam/scripts/ObstacleAvoidance.py
chatreejs/assistiverobot.ros
4644d17cb657d5a72e48e712abf00f190bedfe07
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan class ObstacleAvoidance(): def __init__(self): rospy.init_node('ObstacleAvoidance', anonymous=False) rospy.loginfo("Press CTRL+c to stop Kobuki") rospy.on_shutdown(self.shutdown...
32.540816
85
0.556914
5f82dc4b36d1c6107e54903e90a01ed1523b2ce4
632
py
Python
backend/manage.py
crowdbotics-apps/docter-28901
0e51cc9aa99b6ca391431be9c7c1e29dce952371
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/docter-28901
0e51cc9aa99b6ca391431be9c7c1e29dce952371
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/docter-28901
0e51cc9aa99b6ca391431be9c7c1e29dce952371
[ "FTL", "AML", "RSA-MD" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'docter_28901.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise I...
28.727273
76
0.685127
76cb9144fb79a893f119334f33d49725c27a84df
15,534
py
Python
transformations/manual_composition.py
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
9
2021-03-31T20:27:50.000Z
2022-01-07T21:52:47.000Z
transformations/manual_composition.py
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
2
2021-06-21T15:38:07.000Z
2021-11-08T09:10:09.000Z
transformations/manual_composition.py
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
4
2021-07-17T15:04:14.000Z
2022-02-09T17:51:39.000Z
from typing import Union, List import numpy as np from relaxations import interval as iv from relaxations.interval import Interval from transformations.rotation import RotationZ from transformations.tapering import TaperingZ from transformations.transformation import Transformation class TaperingRotation(Transforma...
40.036082
155
0.406785
3bfaa99e5056403c2ef3843a8927aa3c9bfe9a2e
1,552
py
Python
kratos/apps/task/views.py
cipher-ops/backend-kts
7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319
[ "MIT" ]
1
2020-11-30T09:53:40.000Z
2020-11-30T09:53:40.000Z
kratos/apps/task/views.py
cipher-ops/backend-kts
7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319
[ "MIT" ]
null
null
null
kratos/apps/task/views.py
cipher-ops/backend-kts
7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319
[ "MIT" ]
null
null
null
from rest_framework import viewsets from kratos.apps.task.serializers import TaskSerializer from rest_framework.response import Response from kratos.apps.task import models from rest_framework import status class TaskViewSet(viewsets.GenericViewSet): ''' 任务 ''' serializer_class = TaskSerializer qu...
28.740741
96
0.648196
d87cfe480a16ac9102e6af5de87b7bcd0c1a5b09
10,090
py
Python
test_leonardo.py
chahyon1998/sornet-ku
87a4479368c95e4d3d59863a4329b2b77f184218
[ "MIT" ]
null
null
null
test_leonardo.py
chahyon1998/sornet-ku
87a4479368c95e4d3d59863a4329b2b77f184218
[ "MIT" ]
null
null
null
test_leonardo.py
chahyon1998/sornet-ku
87a4479368c95e4d3d59863a4329b2b77f184218
[ "MIT" ]
null
null
null
''' MIT License Copyright (c) 2022 Wentao Yuan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
38.957529
118
0.614866
49ded194b13efd73afb070c9bbb6d7674b37801b
5,063
py
Python
lib/JumpScale/clients/oauth/OauthInstance.py
Jumpscale/jumpscale_core8
f80ac9b1ab99b833ee7adb17700dcf4ef35f3734
[ "Apache-2.0" ]
8
2016-04-14T14:04:57.000Z
2020-06-09T00:24:34.000Z
lib/JumpScale/clients/oauth/OauthInstance.py
Jumpscale/jumpscale_core8
f80ac9b1ab99b833ee7adb17700dcf4ef35f3734
[ "Apache-2.0" ]
418
2016-01-25T10:30:00.000Z
2021-09-08T12:29:13.000Z
lib/JumpScale/clients/oauth/OauthInstance.py
Jumpscale/jumpscale_core8
f80ac9b1ab99b833ee7adb17700dcf4ef35f3734
[ "Apache-2.0" ]
9
2016-04-21T07:21:17.000Z
2022-01-24T10:35:54.000Z
import urllib.request import urllib.parse import urllib.error import string import requests import time import random from JumpScale import j class AuthError(Exception): pass class UserInfo(object): def __init__(self, username, emailaddress, groups): self.username = username self.emailadd...
37.783582
116
0.61031
b399b85f64b91f5b0202a535568fe79e5dfa9e53
931
py
Python
sample/_test_sender_request.py
cilame/vredis
7c884ab29d9e3094003eb96f8ecedfed5ba51079
[ "MIT" ]
4
2019-01-05T17:51:55.000Z
2019-11-18T08:12:40.000Z
sample/_test_sender_request.py
cilame/vredis
7c884ab29d9e3094003eb96f8ecedfed5ba51079
[ "MIT" ]
1
2021-03-18T10:13:54.000Z
2021-03-23T06:15:41.000Z
sample/_test_sender_request.py
cilame/vredis
7c884ab29d9e3094003eb96f8ecedfed5ba51079
[ "MIT" ]
null
null
null
# 增加环境变量,仅测试使用 import os import sys p = os.path.split(os.getcwd())[0] sys.path.append(p) from _test_config import host,password from vredis import pipe pipe.connect(host=host,port=6379,password=password) pipe.DEBUG = True # worker端是否进行控制台打印。(默认False) #pipe.DUMPING = True # 是否进行item数据本地存储。(默认False) pipe.KEEPALIVE =...
22.707317
82
0.703545
3a82b912025f90e1d8d184536da05115cb517380
513
py
Python
220.py
RafaelHuang87/Leet-Code-Practice
7754dcee38ffda18a5759113ef06d7becf4fe728
[ "MIT" ]
null
null
null
220.py
RafaelHuang87/Leet-Code-Practice
7754dcee38ffda18a5759113ef06d7becf4fe728
[ "MIT" ]
null
null
null
220.py
RafaelHuang87/Leet-Code-Practice
7754dcee38ffda18a5759113ef06d7becf4fe728
[ "MIT" ]
null
null
null
class Solution: def containsNearbyAlmostDuplicate(self, nums: [int], k: int, t: int) -> bool: lenth = len(nums) a = set() for i in range(lenth): if t == 0: if nums[i] in a: return True else: for atem in a: ...
30.176471
81
0.397661
8627b0fbdee4ed4268e39be6ee734bdeee1fd615
8,937
py
Python
seq2seq_keras/seq2seq.py
vladcioaba/text_simplification
4f1a56b91c2b7b9212b6b5f3303c1b14e351c855
[ "MIT" ]
null
null
null
seq2seq_keras/seq2seq.py
vladcioaba/text_simplification
4f1a56b91c2b7b9212b6b5f3303c1b14e351c855
[ "MIT" ]
null
null
null
seq2seq_keras/seq2seq.py
vladcioaba/text_simplification
4f1a56b91c2b7b9212b6b5f3303c1b14e351c855
[ "MIT" ]
null
null
null
from __future__ import print_function from keras.models import Model from keras.models import load_model from keras.layers import Input, LSTM, Dense import numpy as np def initCorpus(num_samples = 10000, data_path = ''): # Vectorize the data. input_texts = [] target_texts = [] input_characters = set()...
41.761682
261
0.668681
330e8d16318b9df3d8c1a274cde325ffe1925085
5,456
py
Python
slaves/api.py
Phinnik/slaves_api
075ce21a917f42974be73845d920a62f5e323ced
[ "MIT" ]
13
2021-03-24T15:53:02.000Z
2021-03-31T08:37:23.000Z
slaves/api.py
Phinnik/slaves_api
075ce21a917f42974be73845d920a62f5e323ced
[ "MIT" ]
4
2021-03-26T17:30:40.000Z
2021-03-31T21:16:11.000Z
slaves/api.py
Phinnik/slaves_api
075ce21a917f42974be73845d920a62f5e323ced
[ "MIT" ]
5
2021-03-24T20:12:41.000Z
2021-03-28T15:21:32.000Z
import pydantic import requests from typing import List from slaves import responses from slaves import exceptions import json import time class Api: def __init__(self, authorization: str): self._authorization = authorization def _call(self, method: str, api_method: str, response_type, payload=None):...
35.894737
143
0.616569
3ce5bbd71206babd67103686127870f8795d3eba
2,464
bzl
Python
tensorflow_lite_support/tools/build_rules/android_test/generate_instrumentation_tests.bzl
BruceDai/tflite-support
ca36eacbc37b05a9347c428ea6c1e49311505d26
[ "Apache-2.0" ]
null
null
null
tensorflow_lite_support/tools/build_rules/android_test/generate_instrumentation_tests.bzl
BruceDai/tflite-support
ca36eacbc37b05a9347c428ea6c1e49311505d26
[ "Apache-2.0" ]
null
null
null
tensorflow_lite_support/tools/build_rules/android_test/generate_instrumentation_tests.bzl
BruceDai/tflite-support
ca36eacbc37b05a9347c428ea6c1e49311505d26
[ "Apache-2.0" ]
2
2021-06-23T01:14:12.000Z
2021-06-28T15:12:49.000Z
"""Internal helper function for generating instrumentation tests .""" load( "//tensorflow_lite_support/tools/build_rules/android_test:android_multidevice_instrumentation_test.bzl", "android_multidevice_instrumentation_test", ) def generate_instrumentation_tests( name, srcs, deps, ...
39.111111
150
0.708604
2576b0c75e8f9de42b4a0042806c5366c7f26c0e
2,249
py
Python
python/GafferSceneUI/SceneWriterUI.py
davidsminor/gaffer
64f75654ce778105dd93fbaad0e4486a5577cd09
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/SceneWriterUI.py
davidsminor/gaffer
64f75654ce778105dd93fbaad0e4486a5577cd09
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/SceneWriterUI.py
davidsminor/gaffer
64f75654ce778105dd93fbaad0e4486a5577cd09
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2013, Image Engine Design inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Red...
43.25
93
0.690084
6367608cc755b28f4444470b39345a7b306c54bc
4,431
py
Python
self-paced-labs/cloud-hero/optional-kubernetes-engine/tests/test_auth.py
laurenzberger/training-data-analyst
3e2ef4668c5088ab50ad50a4f29673c88fb1bcd3
[ "Apache-2.0" ]
6,140
2016-05-23T16:09:35.000Z
2022-03-30T19:00:46.000Z
self-paced-labs/cloud-hero/optional-kubernetes-engine/tests/test_auth.py
laurenzberger/training-data-analyst
3e2ef4668c5088ab50ad50a4f29673c88fb1bcd3
[ "Apache-2.0" ]
1,384
2016-07-08T22:26:41.000Z
2022-03-24T16:39:43.000Z
self-paced-labs/cloud-hero/optional-kubernetes-engine/tests/test_auth.py
laurenzberger/training-data-analyst
3e2ef4668c5088ab50ad50a4f29673c88fb1bcd3
[ "Apache-2.0" ]
5,110
2016-05-27T13:45:18.000Z
2022-03-31T18:40:42.000Z
# Copyright 2015 Google 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 writing, ...
32.343066
76
0.62469
4ca104fa30c16f7861f8d934fef6e8eafd501be2
15,069
py
Python
sdk/python/pulumi_azure_nextgen/network/v20181101/public_ip_address.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20181101/public_ip_address.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20181101/public_ip_address.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
53.43617
2,603
0.682063
f0a57014b9f9c3cdad14a8ee7d64607e8d2e2b67
1,151
py
Python
django_qbe/savedqueries/models.py
maxwell-k/qbe
7efee0b33130bca81fb903249771480f4c3711ee
[ "MIT" ]
37
2015-01-05T09:28:46.000Z
2020-10-25T08:35:30.000Z
django_qbe/savedqueries/models.py
maxwell-k/qbe
7efee0b33130bca81fb903249771480f4c3711ee
[ "MIT" ]
17
2015-01-05T00:54:06.000Z
2020-12-17T05:00:16.000Z
django_qbe/savedqueries/models.py
maxwell-k/qbe
7efee0b33130bca81fb903249771480f4c3711ee
[ "MIT" ]
16
2015-01-19T20:16:46.000Z
2021-10-03T16:48:17.000Z
from builtins import object import pickle from django.db import models from django.utils.translation import ugettext_lazy as _ try: from django.utils.timezone import now except ImportError: from datetime import datetime now = datetime.now from picklefield.fields import PickledObjectField class SavedQuer...
32.885714
77
0.677672
408fdb9caebbfcbb0963fdc75234f0e39eafa321
6,044
py
Python
ucsmsdk/mometa/vnic/VnicFcGroupDef.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/vnic/VnicFcGroupDef.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/vnic/VnicFcGroupDef.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for VnicFcGroupDef ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class VnicFcGroupDefConsts: INT_ID_NONE = "none" POLICY_OWNER_LOCAL = "local" POLICY_OWNER_PENDING_P...
68.681818
270
0.662641
499d92ee41dffb52a4c464216678f7802166e423
4,755
py
Python
sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py
mccoyp/azure-keyvault-7.3-preview
da351753a9d3d2bf97c27566865cd88bae7faa55
[ "MIT" ]
null
null
null
sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py
mccoyp/azure-keyvault-7.3-preview
da351753a9d3d2bf97c27566865cd88bae7faa55
[ "MIT" ]
null
null
null
sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py
mccoyp/azure-keyvault-7.3-preview
da351753a9d3d2bf97c27566865cd88bae7faa55
[ "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 ...
45.285714
98
0.651735
9470846f6ae9dcf1d43cd6d17f043ec0c931b1a9
2,661
py
Python
rboost/source/document/remark.py
SimoneGasperini/rboost
5e0108d821077da76964e1e797f0d775b3999f56
[ "MIT" ]
1
2021-02-06T17:44:00.000Z
2021-02-06T17:44:00.000Z
rboost/source/document/remark.py
SimoneGasperini/rboost
5e0108d821077da76964e1e797f0d775b3999f56
[ "MIT" ]
null
null
null
rboost/source/document/remark.py
SimoneGasperini/rboost
5e0108d821077da76964e1e797f0d775b3999f56
[ "MIT" ]
null
null
null
import os import sys from stat import S_IREAD, S_IWUSR from gensim.parsing.preprocessing import strip_punctuation from gensim.parsing.preprocessing import strip_non_alphanum from rboost.source.document.base import Document class Remark (Document): """ Class for the Remark object Parameters -------...
24.638889
70
0.56708
f49386e5fa38c1ff28fa7b43406d7bf2ae69402f
21,900
py
Python
tests/tests.py
gescheit/fastsnmp
e4a5d2c704c875c598a3001becf392879414a0b4
[ "MIT" ]
18
2015-04-10T10:10:34.000Z
2021-05-09T17:22:29.000Z
tests/tests.py
gescheit/fastsnmp
e4a5d2c704c875c598a3001becf392879414a0b4
[ "MIT" ]
6
2015-06-18T10:51:52.000Z
2021-11-11T17:11:37.000Z
tests/tests.py
gescheit/fastsnmp
e4a5d2c704c875c598a3001becf392879414a0b4
[ "MIT" ]
8
2016-02-13T21:02:23.000Z
2021-12-28T22:43:10.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- import unittest import pstats import cProfile from fastsnmp import snmp_parser OID1 = "1.2.1" OID2 = "1.2.2" OID3 = "1.2.3" class TestSnmpParser(unittest.TestCase): strs = [ [b'56', b'\x35\x36'], # str [b'\x00\x80\xeaB^7', b'\x00\x80\xea\x42\x5e\x37'], ...
61.344538
127
0.517032
e5a9ce326921245e63a4085bc707aa0820ba3f38
1,959
py
Python
aiohttp_login/decorators.py
kirlf/aiohttp-login
7e52ea4ef694b6bfe2ad19b0a3d1077b04cfe221
[ "0BSD" ]
61
2017-01-24T13:13:22.000Z
2021-09-23T06:39:38.000Z
aiohttp_login/decorators.py
kirlf/aiohttp-login
7e52ea4ef694b6bfe2ad19b0a3d1077b04cfe221
[ "0BSD" ]
13
2017-01-28T00:13:37.000Z
2021-11-25T05:11:59.000Z
aiohttp_login/decorators.py
kirlf/aiohttp-login
7e52ea4ef694b6bfe2ad19b0a3d1077b04cfe221
[ "0BSD" ]
27
2017-01-27T21:14:25.000Z
2021-11-24T14:46:57.000Z
from functools import wraps from aiohttp.abc import AbstractView from aiohttp.web import HTTPForbidden, json_response, StreamResponse try: import ujson as json except ImportError: import json from .cfg import cfg from .utils import url_for, redirect, get_cur_user def _get_request(args): # Supports class...
27.985714
72
0.686064
f94bf4a984d178ee95bc5f85dad2f6dfcb01ebde
584
py
Python
src/11-plotly-bubble-chart.py
paiboon15721/clusterkit-dash-training
66012eafc8737f1fdf1e26ada17c2927c3a03922
[ "MIT" ]
2
2019-11-26T06:38:26.000Z
2021-05-31T06:28:39.000Z
src/11-plotly-bubble-chart.py
paiboon15721/clusterkit-dash-training
66012eafc8737f1fdf1e26ada17c2927c3a03922
[ "MIT" ]
12
2020-02-12T02:55:00.000Z
2022-02-10T08:51:26.000Z
src/11-plotly-bubble-chart.py
paiboon15721/clusterkit-dash-training
66012eafc8737f1fdf1e26ada17c2927c3a03922
[ "MIT" ]
null
null
null
import pandas as pd import plotly.graph_objects as go import plotly.offline as pyo df = pd.read_csv('../dataset/mpg.csv') data = [go.Scatter( # start with a normal scatter plot x=df['horsepower'], y=df['mpg'], text=df['name'], mode='markers', marker=dict(size=1.5*df['cylinders']) # set t...
25.391304
64
0.643836
01a34e2da17902a84bccf85634c5d6fd8ecd7e47
4,980
py
Python
tests/lump/test_csv.py
viaacode/lump
02f669f7f25c2a123bc118b23dcc3d53d4cdf424
[ "MIT" ]
1
2021-02-01T08:07:00.000Z
2021-02-01T08:07:00.000Z
tests/lump/test_csv.py
viaacode/lump
02f669f7f25c2a123bc118b23dcc3d53d4cdf424
[ "MIT" ]
4
2020-03-12T18:06:32.000Z
2022-03-25T10:47:48.000Z
tests/lump/test_csv.py
viaacode/lump
02f669f7f25c2a123bc118b23dcc3d53d4cdf424
[ "MIT" ]
null
null
null
import benchmarkstt.csv as csv import pytest from io import StringIO # Code copied from ebu/benchmarkstt (by original author), see # https://github.com/ebu/benchmarkstt/blob/master/LICENCE.md example1 = ''' Some line, some other \t \t dsfgdsg \n \t \r \n \r "stay","togther " # commented out fsdss ''' ...
29.642857
106
0.562651
a337dbb65f49a4c85b1c2f42146a8a8c5e3377bd
1,050
py
Python
net/data/verify_certificate_chain_unittest/incorrect-trust-anchor/generate-chains.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
net/data/verify_certificate_chain_unittest/incorrect-trust-anchor/generate-chains.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
net/data/verify_certificate_chain_unittest/incorrect-trust-anchor/generate-chains.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2015 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. """Certificate chain where the supposed root certificate is wrong: * The intermediate's "issuer" does not match the root's "subject"...
32.8125
79
0.778095
cb88b3c2d18e0e7a91660c93511665de09f3b073
744
py
Python
server/conf/secret_settings.py
frastlin/ICAD-map
014dac99cec5cd25cca08adcc0dee8877790fdb1
[ "BSD-3-Clause" ]
null
null
null
server/conf/secret_settings.py
frastlin/ICAD-map
014dac99cec5cd25cca08adcc0dee8877790fdb1
[ "BSD-3-Clause" ]
null
null
null
server/conf/secret_settings.py
frastlin/ICAD-map
014dac99cec5cd25cca08adcc0dee8877790fdb1
[ "BSD-3-Clause" ]
null
null
null
""" This file is meant for when you want to share your game dir with others but don't want to share all details of your specific game or local server setup. The settings in this file will override those in settings.py and is in .gitignore by default. A good guideline when sharing your game dir is that you want your ga...
41.333333
69
0.778226
ce5b329bd53e34d132df93216d2fcaea1bd19e10
853
py
Python
oneflow/python/framework/parallel_conf_util.py
xxg1413/oneflow
f2e3c85a25b8aecfb6c0c0af1737833b1a77e135
[ "Apache-2.0" ]
1
2020-12-04T03:06:16.000Z
2020-12-04T03:06:16.000Z
oneflow/python/framework/parallel_conf_util.py
xxg1413/oneflow
f2e3c85a25b8aecfb6c0c0af1737833b1a77e135
[ "Apache-2.0" ]
null
null
null
oneflow/python/framework/parallel_conf_util.py
xxg1413/oneflow
f2e3c85a25b8aecfb6c0c0af1737833b1a77e135
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 required by applicable law or agr...
35.541667
72
0.785463
7051affb00f342601c01459d278827fef952851d
8,916
py
Python
themes/default/base16-equilibrium-dark.config.py
knezi/base16-qutebrowser
d1d63d1e2f16fd03cd88ec7006c0d885da06dcb8
[ "MIT" ]
null
null
null
themes/default/base16-equilibrium-dark.config.py
knezi/base16-qutebrowser
d1d63d1e2f16fd03cd88ec7006c0d885da06dcb8
[ "MIT" ]
null
null
null
themes/default/base16-equilibrium-dark.config.py
knezi/base16-qutebrowser
d1d63d1e2f16fd03cd88ec7006c0d885da06dcb8
[ "MIT" ]
null
null
null
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser) # Base16 qutebrowser template by theova # Equilibrium Dark scheme by Carlo Abelli base00 = "#0c1118" base01 = "#181c22" base02 = "#22262d" base03 = "#7b776e" base04 = "#949088" base05 = "#afaba2" base06 = "#cac6bd" base07 = "#e7e2d9" base08 = "#f04339...
29.919463
95
0.771534
f1e23816e3246a50d9e33537a2721370b34d5224
937
py
Python
src/users/views.py
SerhatTeker/django-rest-filtering-tutorial
b02cd9c14cceddbf604cee83026f7134f8109d75
[ "BSD-3-Clause" ]
null
null
null
src/users/views.py
SerhatTeker/django-rest-filtering-tutorial
b02cd9c14cceddbf604cee83026f7134f8109d75
[ "BSD-3-Clause" ]
null
null
null
src/users/views.py
SerhatTeker/django-rest-filtering-tutorial
b02cd9c14cceddbf604cee83026f7134f8109d75
[ "BSD-3-Clause" ]
null
null
null
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets from rest_framework.filters import OrderingFilter, SearchFilter from rest_framework import status from rest_framework.decorators import action from rest_framework.response import Response from src.users.serializers import...
33.464286
86
0.745998
a84ea398c60e883f96dbee92755f43bded9e6489
167
py
Python
komtek/asgi.py
afrlv1/Komtek_test
13afd6e15ebe299f38d968106b8aef66211c01fd
[ "MIT" ]
null
null
null
komtek/asgi.py
afrlv1/Komtek_test
13afd6e15ebe299f38d968106b8aef66211c01fd
[ "MIT" ]
null
null
null
komtek/asgi.py
afrlv1/Komtek_test
13afd6e15ebe299f38d968106b8aef66211c01fd
[ "MIT" ]
null
null
null
import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'komtek.settings') application = get_asgi_application()
20.875
66
0.826347
5692f0f919a5b5cfaf81403adee27c0233c683be
4,735
py
Python
tool/common.py
shreyas269/Gradient-Adversarial-Transformation-Network
913cfa904b644c4ba304300402d4130874e467c1
[ "MIT" ]
null
null
null
tool/common.py
shreyas269/Gradient-Adversarial-Transformation-Network
913cfa904b644c4ba304300402d4130874e467c1
[ "MIT" ]
null
null
null
tool/common.py
shreyas269/Gradient-Adversarial-Transformation-Network
913cfa904b644c4ba304300402d4130874e467c1
[ "MIT" ]
null
null
null
''' this file contains functions that may be used by many people ''' import numpy as np import torch import torchvision import matplotlib.pyplot as plt tv = torchvision tc = torch def load_data(dataset_name ): ''' USAGE: x_data, y_train, x_test, y_test = load_data('mnist') INPUT: a string, naming '...
42.276786
120
0.636748
7637888efa1057be74cd07a337656d827f47312e
1,826
py
Python
ftests/test_all.py
tbproject/tbpr02
da4df9d148222724633de3b66500e80786f19eac
[ "MIT" ]
null
null
null
ftests/test_all.py
tbproject/tbpr02
da4df9d148222724633de3b66500e80786f19eac
[ "MIT" ]
1
2020-02-12T01:25:15.000Z
2020-02-12T01:25:15.000Z
ftests/test_all.py
tbproject/tbpr02
da4df9d148222724633de3b66500e80786f19eac
[ "MIT" ]
null
null
null
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 # -*- coding: utf-8 -*- from selenium import webdriver from django.core.urlresolvers import reverse from django.contrib.staticfiles.testing import LiveServerTestCase class HomeNewVisitorTest(LiveServerTestCase): def setUp(self): self.br...
22.825
73
0.658269
d2a5c70c4feeb2512ad84fcbdf515622497f30ef
3,179
py
Python
starthinker/task/cm_to_dv/cm_account.py
arbrown/starthinker
1a14664fb1a8f2a757b100363ea8958833b7754c
[ "Apache-2.0" ]
138
2018-11-28T21:42:44.000Z
2022-03-30T17:26:35.000Z
starthinker/task/cm_to_dv/cm_account.py
arbrown/starthinker
1a14664fb1a8f2a757b100363ea8958833b7754c
[ "Apache-2.0" ]
36
2019-02-19T18:33:20.000Z
2022-01-24T18:02:44.000Z
starthinker/task/cm_to_dv/cm_account.py
arbrown/starthinker
1a14664fb1a8f2a757b100363ea8958833b7754c
[ "Apache-2.0" ]
54
2018-12-06T05:47:32.000Z
2022-02-21T22:01:01.000Z
########################################################################### # # Copyright 2020 Google LLC # # 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 # # https://www.apache.org/l...
26.272727
118
0.600189
f8962fca2a6957b609af43b68fb3c533a95a3e01
119
py
Python
build/lib/FinanceHub/dataapi/__init__.py
VFermat/FinanceHub
bf55ec39ae75ecdccf35381fd23e5f604115cbf8
[ "MIT" ]
null
null
null
build/lib/FinanceHub/dataapi/__init__.py
VFermat/FinanceHub
bf55ec39ae75ecdccf35381fd23e5f604115cbf8
[ "MIT" ]
null
null
null
build/lib/FinanceHub/dataapi/__init__.py
VFermat/FinanceHub
bf55ec39ae75ecdccf35381fd23e5f604115cbf8
[ "MIT" ]
null
null
null
from .getsgsdata import SGS from .getfreddata import FRED from .getimfdata import IMF __all__ = ['SGS', 'FRED', 'IMF']
23.8
32
0.739496
38f9880da430103e4e2d9b9670d0267db7497a0b
145
py
Python
ServerDev/init.py
NigelChen/Polar-Server
06b217584f39f9091fcc8e0f3ce41d3594fdb726
[ "MIT" ]
1
2017-03-16T17:26:09.000Z
2017-03-16T17:26:09.000Z
ServerDev/init.py
NigelChen/Polar-Server
06b217584f39f9091fcc8e0f3ce41d3594fdb726
[ "MIT" ]
null
null
null
ServerDev/init.py
NigelChen/Polar-Server
06b217584f39f9091fcc8e0f3ce41d3594fdb726
[ "MIT" ]
null
null
null
import Server, Client try: print "Starting up Polar Chat" server = Server.server() except KeyboardInterrupt: print "Shutting down server..\n"
20.714286
33
0.758621
1c6acbdd98f022c659390916d7200ffa2aa26768
1,032
py
Python
codingame/utils.py
DevHyperCoder/codingame
7a370fa47b4eff2c88680c76cd2c6bc795420fff
[ "MIT" ]
null
null
null
codingame/utils.py
DevHyperCoder/codingame
7a370fa47b4eff2c88680c76cd2c6bc795420fff
[ "MIT" ]
null
null
null
codingame/utils.py
DevHyperCoder/codingame
7a370fa47b4eff2c88680c76cd2c6bc795420fff
[ "MIT" ]
null
null
null
from typing import get_type_hints from functools import wraps def validate_args(func): @wraps(func) def wrapper(*args, **kwargs): hints = get_type_hints(func) all_args = dict(zip(func.__code__.co_varnames, args)) all_args.update(kwargs.copy()) for arg, arg_type in ((i, type(j...
31.272727
85
0.528101
487e4fe8019b6a30f2778a47f71a1900aeb0e72c
2,450
py
Python
No_0061_Rotate List/rotate_list_by_link_and_break.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
32
2020-01-05T13:37:16.000Z
2022-03-26T07:27:09.000Z
No_0061_Rotate List/rotate_list_by_link_and_break.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
null
null
null
No_0061_Rotate List/rotate_list_by_link_and_break.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
8
2020-06-18T16:17:27.000Z
2022-03-15T23:58:18.000Z
''' Description: Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = 2 Output: 4->5->1->2->3->NULL Explanation: rotate 1 steps to the right: 5->1->2->3->4->NULL rotate 2 steps to the right: 4->5->1->2->3->NULL Example 2: Input: 0->1...
20.247934
96
0.562449
9579f5c721a4921a916f95090d3578157afbb138
1,585
py
Python
Pegasus/Stage2/Stage2.py
esha-singh/Stackoverflow_BigData
20abf97c8325f8a932e4a0238eb1eb9981405441
[ "MIT" ]
null
null
null
Pegasus/Stage2/Stage2.py
esha-singh/Stackoverflow_BigData
20abf97c8325f8a932e4a0238eb1eb9981405441
[ "MIT" ]
null
null
null
Pegasus/Stage2/Stage2.py
esha-singh/Stackoverflow_BigData
20abf97c8325f8a932e4a0238eb1eb9981405441
[ "MIT" ]
null
null
null
import os import sys import shutil import xml.etree.ElementTree as xml from urlparse import urlparse from pyunpack import Archive import random class Stage2: def filterUnwantedSources(self, data_source_directory, data_destination_directory, required_file_names): # get domain directories from source ...
46.617647
213
0.684543
a584ed39af22c509cd74e24379b68539d0814498
6,005
py
Python
kerastuner/engine/hypermodel.py
stefanvasilev/keras-tuner
5c402b02af9a2a98ab5eece802f1ec7ca5331379
[ "Apache-2.0" ]
1
2021-05-07T17:12:41.000Z
2021-05-07T17:12:41.000Z
kerastuner/engine/hypermodel.py
stefanvasilev/keras-tuner
5c402b02af9a2a98ab5eece802f1ec7ca5331379
[ "Apache-2.0" ]
null
null
null
kerastuner/engine/hypermodel.py
stefanvasilev/keras-tuner
5c402b02af9a2a98ab5eece802f1ec7ca5331379
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Keras Tuner Authors # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
32.994505
82
0.615487
d7bc74bf7715fefa02b9a0a1a753d2bf0411422f
1,174
py
Python
app/report/routes.py
rrsk/hiwayPay
c84b7581475164751f64540a521b803bdf08a9fb
[ "MIT" ]
31
2020-07-01T06:40:16.000Z
2022-03-30T18:49:02.000Z
app/report/routes.py
rrsk/hiwayPay
c84b7581475164751f64540a521b803bdf08a9fb
[ "MIT" ]
2
2020-11-02T06:21:23.000Z
2021-06-02T00:31:06.000Z
app/report/routes.py
rrsk/hiwayPay
c84b7581475164751f64540a521b803bdf08a9fb
[ "MIT" ]
13
2020-07-02T07:06:05.000Z
2022-03-15T11:34:41.000Z
from flask import Blueprint, render_template from flask import render_template, redirect, url_for, request, session , jsonify from flask_login import login_user, logout_user, current_user , login_required from app.report import bp from app.model import User , Role from app import db @bp.route('/salary_slips' , metho...
33.542857
88
0.734242
60c2dfaad4093db31f5afa89c7e0ba7d1a320896
2,677
py
Python
2019/day12.py
okomarov/aoc
e6e90d09fd52b8b1b2104b3db8ba5a980c8d6c79
[ "MIT" ]
null
null
null
2019/day12.py
okomarov/aoc
e6e90d09fd52b8b1b2104b3db8ba5a980c8d6c79
[ "MIT" ]
null
null
null
2019/day12.py
okomarov/aoc
e6e90d09fd52b8b1b2104b3db8ba5a980c8d6c79
[ "MIT" ]
1
2020-04-03T16:51:43.000Z
2020-04-03T16:51:43.000Z
from itertools import combinations import math with open('data/day12.txt', 'r') as f: # with open('data/day12_test.txt', 'r') as f: data = f.read().splitlines() data = [''.join(c for c in line if c not in set('<>xyz= ')) for line in data] data = [[int(c) for c in l.split(',')] for l in data] all_comb = [c...
26.77
81
0.540904
4c8b1e56fb1d4c607d70bddc9dc391ef7ac03003
14,101
py
Python
mne/tests/test_bem.py
candleinwindsteve/mne-python
a361dced7663c616ac1fd184f7eed183d2b71580
[ "BSD-3-Clause" ]
1
2021-03-08T22:53:49.000Z
2021-03-08T22:53:49.000Z
mne/tests/test_bem.py
frentesteven/mne-python
a361dced7663c616ac1fd184f7eed183d2b71580
[ "BSD-3-Clause" ]
null
null
null
mne/tests/test_bem.py
frentesteven/mne-python
a361dced7663c616ac1fd184f7eed183d2b71580
[ "BSD-3-Clause" ]
1
2017-04-20T12:21:15.000Z
2017-04-20T12:21:15.000Z
# Authors: Marijn van Vliet <w.m.vanvliet@gmail.com> # # License: BSD 3 clause from copy import deepcopy import os.path as op import warnings import numpy as np from nose.tools import assert_raises, assert_true from numpy.testing import assert_equal, assert_allclose from mne import (make_bem_model, read_bem_surfaces...
41.84273
78
0.642649
f72796cfdb731f2805f402a224271fe7a843f908
3,858
py
Python
tests/test_similarity.py
dhimmel/sematch
7e92b171c27a8b25e844a467554fe4bb2adfb883
[ "Apache-2.0" ]
397
2015-05-30T11:02:28.000Z
2022-03-09T01:39:31.000Z
tests/test_similarity.py
dhimmel/sematch
7e92b171c27a8b25e844a467554fe4bb2adfb883
[ "Apache-2.0" ]
32
2015-04-27T21:26:29.000Z
2021-08-19T10:20:45.000Z
tests/test_similarity.py
dhimmel/sematch
7e92b171c27a8b25e844a467554fe4bb2adfb883
[ "Apache-2.0" ]
110
2015-11-06T17:01:48.000Z
2022-02-17T05:09:02.000Z
# -*- coding: utf-8 -*- def test_word_similarity(): from sematch.semantic.similarity import WordNetSimilarity wns = WordNetSimilarity() dog = wns.word2synset('dog') cat = wns.word2synset('cat') # Measuring semantic similarity between concepts using Path method assert wns.similarity(dog[0], cat[...
52.849315
126
0.736133
024ceabe749710cae0bf2e32650291db5d290478
4,484
py
Python
src/climsoft_api/api/physicalfeature/router.py
openclimateinitiative/climsoft-api
3591d7499dd7777617b8086332dc83fab1af9588
[ "MIT" ]
null
null
null
src/climsoft_api/api/physicalfeature/router.py
openclimateinitiative/climsoft-api
3591d7499dd7777617b8086332dc83fab1af9588
[ "MIT" ]
2
2022-03-01T13:10:22.000Z
2022-03-24T08:47:20.000Z
src/climsoft_api/api/physicalfeature/router.py
openclimateinitiative/climsoft-api
3591d7499dd7777617b8086332dc83fab1af9588
[ "MIT" ]
2
2021-12-22T21:50:19.000Z
2022-01-28T12:53:32.000Z
import logging import climsoft_api.api.physicalfeature.schema as physicalfeature_schema from climsoft_api.api import deps from climsoft_api.services import physicalfeature_service from climsoft_api.utils.exception import handle_exceptions from climsoft_api.utils.response import get_success_response, \ get_success_...
28.379747
101
0.676405