hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
72dd5926f9f4a1575f0f1e927b5f0603edb50527
16,898
py
Python
synapse/config/tls.py
skalarproduktraum/synapse
c831748f4d243d74e9a3fd2042bc2b35cc30f961
[ "Apache-2.0" ]
null
null
null
synapse/config/tls.py
skalarproduktraum/synapse
c831748f4d243d74e9a3fd2042bc2b35cc30f961
[ "Apache-2.0" ]
null
null
null
synapse/config/tls.py
skalarproduktraum/synapse
c831748f4d243d74e9a3fd2042bc2b35cc30f961
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # # 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 applicab...
41.62069
90
0.626583
3a8405111146eaa7a243b216c491e25be7d8ec59
30,972
py
Python
src/genie/libs/parser/nxos/show_mld.py
Drey/genieparser
f16649efabf1f3c892bcaad340ae24ce5403ba6b
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/nxos/show_mld.py
Drey/genieparser
f16649efabf1f3c892bcaad340ae24ce5403ba6b
[ "Apache-2.0" ]
1
2019-04-02T16:51:56.000Z
2019-04-02T16:51:56.000Z
src/genie/libs/parser/nxos/show_mld.py
Drey/genieparser
f16649efabf1f3c892bcaad340ae24ce5403ba6b
[ "Apache-2.0" ]
1
2021-01-29T17:31:33.000Z
2021-01-29T17:31:33.000Z
"""show_mld.py NXOS parsers for the following show commands: * show ipv6 mld interface * show ipv6 mld interface vrf all * show ipv6 mld interface detail vrf <WORD> * show ipv6 mld groups * show ipv6 mld groups vrf all * show ipv6 mld groups vrf <WORD> * show ipv6 mld local-groups * sh...
43.994318
117
0.437912
1aaa48e7977a27568ad852991a00f484917cd435
833
py
Python
test_builds/20_stack.test/codegen.py
gycsaba96/P4RROT
aa10d2063d566450674e4798e6f713e49877a604
[ "MIT" ]
null
null
null
test_builds/20_stack.test/codegen.py
gycsaba96/P4RROT
aa10d2063d566450674e4798e6f713e49877a604
[ "MIT" ]
null
null
null
test_builds/20_stack.test/codegen.py
gycsaba96/P4RROT
aa10d2063d566450674e4798e6f713e49877a604
[ "MIT" ]
null
null
null
import sys sys.path.append('../../src') from p4rrot.v1model.stateful import PopFromStack, PushToStack, SharedStack from p4rrot.generator_tools import * from p4rrot.known_types import * from p4rrot.core.commands import * UID.reset() fp = FlowProcessor( istruct=[('a',uint32_t), ('aa', uint32_t)], os...
26.03125
74
0.67467
1b061d1dfc8e2dd43ebe273b4dae4b374b3c5af6
89
py
Python
time_out.py
simonholmes001/structure_prediction-
6468267b9973422c169fb0a25a27f62e89b85d3d
[ "BSD-3-Clause" ]
null
null
null
time_out.py
simonholmes001/structure_prediction-
6468267b9973422c169fb0a25a27f62e89b85d3d
[ "BSD-3-Clause" ]
null
null
null
time_out.py
simonholmes001/structure_prediction-
6468267b9973422c169fb0a25a27f62e89b85d3d
[ "BSD-3-Clause" ]
null
null
null
import time print("TIME OUT") time.sleep(30) print("TIME OUT FINISHED, lets get going")
14.833333
42
0.730337
55aa8cc026d26e69dae396db3a4c177d2fa5b983
8,417
py
Python
src/main.py
JulianErnest/Python-Word-Search
73d9ce89f5aebdfcb60c7b3080e6b428576bf58a
[ "MIT" ]
null
null
null
src/main.py
JulianErnest/Python-Word-Search
73d9ce89f5aebdfcb60c7b3080e6b428576bf58a
[ "MIT" ]
null
null
null
src/main.py
JulianErnest/Python-Word-Search
73d9ce89f5aebdfcb60c7b3080e6b428576bf58a
[ "MIT" ]
null
null
null
import tkinter as tk import string import random from words import ALL_WORDS from solver import * from PIL import Image, ImageTk window = tk.Tk() direction = ['h', 'v', 'd', 'rh', 'rv', 'rd'] MAX = 15 # * Color theme: https://coolors.co/03045e-023e8a-0077b6-0096c7-00b4d8-48cae4-90e0ef-ade8f4-caf0f8 light_blue = "#...
38.967593
192
0.605323
868f2c0f907f1906746ac6ea7ff8ae0044e9684e
411
py
Python
experiments/fdtd-2d/tmp_files/8918.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/8918.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/8918.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/8918.c') procedure('kernel_fdtd_2d') loop(0) known(' nx > 1 ') known(' ny > 1 ') ti...
22.833333
116
0.720195
9a5c3232f2ff746e73eeb4a7775027796dd20969
1,495
py
Python
data/single_dataset.py
kevtran23/pytorch-CycleGAN-and-pix2pix
58c9aa1e55bb2c6bbb30512f46e2cb6504be64cc
[ "BSD-3-Clause" ]
18,193
2017-04-18T11:38:27.000Z
2022-03-31T20:59:46.000Z
data/single_dataset.py
jayin92/TerrainGAN
e5bcee80b5438b3aed86308bbf92746a49418c72
[ "BSD-3-Clause" ]
1,320
2017-04-18T21:55:42.000Z
2022-03-30T14:11:58.000Z
data/single_dataset.py
jayin92/TerrainGAN
e5bcee80b5438b3aed86308bbf92746a49418c72
[ "BSD-3-Clause" ]
5,949
2017-04-18T11:41:26.000Z
2022-03-31T08:20:22.000Z
from data.base_dataset import BaseDataset, get_transform from data.image_folder import make_dataset from PIL import Image class SingleDataset(BaseDataset): """This dataset class can load a set of images specified by the path --dataroot /path/to/data. It can be used for generating CycleGAN results only for on...
36.463415
105
0.652843
d4fabf5a86c9ec4e647067425b812c3349cbe6ce
16,977
py
Python
Old Friar stuff/Friars_Simulator.py
Aenimus/Pythonic-Simulators
d74233e82c66dc814244da14ec24cb477e337926
[ "MIT" ]
1
2020-02-07T13:21:51.000Z
2020-02-07T13:21:51.000Z
Old Friar stuff/Friars_Simulator.py
Aenimus/Pythonic-Simulators
d74233e82c66dc814244da14ec24cb477e337926
[ "MIT" ]
null
null
null
Old Friar stuff/Friars_Simulator.py
Aenimus/Pythonic-Simulators
d74233e82c66dc814244da14ec24cb477e337926
[ "MIT" ]
null
null
null
import collections import random import math import statistics class Utils(): def log(message): print(message) class Simulator(): def do_quest(self, player_state): heart = FriarLoc() neck = FriarLoc() elbow = FriarLoc() while heart.progress < 4: #1 progress for each ...
33.954
193
0.611121
a1162efdd7454e07ea4aed7ddb5deefe111c4ba7
4,878
py
Python
tweet_cleaner_english.py
ahayek84/tweets-collector
1bc36c10b7d94b3fee35a394584587a8281da271
[ "Apache-2.0" ]
20
2018-12-25T07:56:26.000Z
2022-01-27T18:23:59.000Z
tweet_cleaner_english.py
ahayek84/tweets-collector
1bc36c10b7d94b3fee35a394584587a8281da271
[ "Apache-2.0" ]
4
2018-07-21T06:18:30.000Z
2020-05-18T14:14:11.000Z
tweet_cleaner_english.py
ahayek84/tweets-collector
1bc36c10b7d94b3fee35a394584587a8281da271
[ "Apache-2.0" ]
15
2018-02-16T11:49:18.000Z
2022-01-27T18:23:55.000Z
from alphabet_detector import AlphabetDetector import preprocessor as tweet_processor import re from itertools import groupby rx = re.compile(r'(.)\1{1,}') # check if there is repeated consecutive characters more than once emoticons_str = r""" (?: [:=;] # Eyes [oO\-]? # Nose (optional) [D...
32.304636
115
0.53813
60d4512d4aae05660ec2c606e3789387a93f9705
4,368
py
Python
crazyflie_demo/scripts/array_broadcaster_rotem.py
wydmynd/crazyflie_tom
0d1cc63dcd0f055d78da82515729ce2098e086cf
[ "MIT" ]
null
null
null
crazyflie_demo/scripts/array_broadcaster_rotem.py
wydmynd/crazyflie_tom
0d1cc63dcd0f055d78da82515729ce2098e086cf
[ "MIT" ]
null
null
null
crazyflie_demo/scripts/array_broadcaster_rotem.py
wydmynd/crazyflie_tom
0d1cc63dcd0f055d78da82515729ce2098e086cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from crazyflie_driver.msg import GenericLogData from std_msgs.msg import Float64MultiArray from crazyflie_demo.msg import crazyflie_sensors from crazyflie_demo.msg import crazyflie_sensors_rotem from geometry_msgs.msg import PointStamped from sensor_msgs.msg import Imu import geom...
26.155689
116
0.635989
a1957631c42f894d9e6be56fa5f299a00a7aece6
585
py
Python
features/support/database_helper.py
horsewithnoname1985/packit-app
afe83472f092ff1447ae8ae56c99d78792d5bc59
[ "MIT" ]
null
null
null
features/support/database_helper.py
horsewithnoname1985/packit-app
afe83472f092ff1447ae8ae56c99d78792d5bc59
[ "MIT" ]
null
null
null
features/support/database_helper.py
horsewithnoname1985/packit-app
afe83472f092ff1447ae8ae56c99d78792d5bc59
[ "MIT" ]
null
null
null
from packit_app import database class DatabaseHelper: def __init__(self) -> None: self.db = database.Database() self.conn = self.db.connection self.cur = self.db.cur def print_table(self, table_name: str) -> None: if self.db.cur is not None: self.db.cur.execute( ...
25.434783
58
0.529915
1cfa4a055c4efeba796927171559e2c53ecbe8b6
3,730
py
Python
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/traefik/Traefik.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
1
2020-10-05T08:53:57.000Z
2020-10-05T08:53:57.000Z
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/traefik/Traefik.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
17
2019-11-14T08:41:37.000Z
2020-05-27T09:23:51.000Z
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/traefik/Traefik.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
import time from Jumpscale import j from .. import templates from ..abstracts import Nics, Service from ..globals import TIMEOUT_DEPLOY DEFAULT_PORT_HTTP = 80 DEFAULT_PORT_HTTPS = 443 class Traefik(Service): """ Traefik a modern HTTP reverse proxy """ def __init__(self, name, node, etcd_endpoint, e...
34.537037
113
0.63244
076fc662a5f4e38ec40c63eafdf7b8890595abdd
96
py
Python
tests/fixtures/experiment/__init__.py
blacksph3re/garage
b4abe07f0fa9bac2cb70e4a3e315c2e7e5b08507
[ "MIT" ]
1,500
2018-06-11T20:36:24.000Z
2022-03-31T08:29:01.000Z
tests/fixtures/experiment/__init__.py
blacksph3re/garage
b4abe07f0fa9bac2cb70e4a3e315c2e7e5b08507
[ "MIT" ]
2,111
2018-06-11T04:10:29.000Z
2022-03-26T14:41:32.000Z
tests/fixtures/experiment/__init__.py
blacksph3re/garage
b4abe07f0fa9bac2cb70e4a3e315c2e7e5b08507
[ "MIT" ]
309
2018-07-24T11:18:48.000Z
2022-03-30T16:19:48.000Z
from tests.fixtures.experiment.fixture_experiment import fixture_exp __all__ = ['fixture_exp']
24
68
0.833333
3a2d02582253ce0ba3f82d445e83f753cbc90e27
931
py
Python
app/user/views.py
APPIAHTECH/recipe-app-api
1de64b7fe66d19607be1eac56ac055a294b89529
[ "MIT" ]
null
null
null
app/user/views.py
APPIAHTECH/recipe-app-api
1de64b7fe66d19607be1eac56ac055a294b89529
[ "MIT" ]
null
null
null
app/user/views.py
APPIAHTECH/recipe-app-api
1de64b7fe66d19607be1eac56ac055a294b89529
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import generics, authentication, permissions from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings import api_settings from user.serializers import UserSerializer, AuthTokenSerializer # Create your views here. class CreateUserV...
33.25
66
0.804511
3632257ea815e725170913221f859eea5b25612f
698
py
Python
QUANTAXIS_Test/QAUtil_Test/parallelism_test.py
sjtututu/QUANTAXIS
e9e20cdeda8b8d132433037b639a7e60f286a190
[ "MIT" ]
1
2019-11-02T14:42:52.000Z
2019-11-02T14:42:52.000Z
QUANTAXIS_Test/QAUtil_Test/parallelism_test.py
sjtututu/QUANTAXIS
e9e20cdeda8b8d132433037b639a7e60f286a190
[ "MIT" ]
null
null
null
QUANTAXIS_Test/QAUtil_Test/parallelism_test.py
sjtututu/QUANTAXIS
e9e20cdeda8b8d132433037b639a7e60f286a190
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from unittest import TestCase from QUANTAXIS.QAUtil import Parallelism def add(x, y): return x + y class TestParallelSim(TestCase): def test_get_results(self): # 多进程加法计算测试 pl = Parallelism() counts = 5000 aiter = [(x, x + 1) for x in ra...
29.083333
96
0.578797
8918ddc234df68a2f5a15a22348889b49e88e8d9
480
py
Python
konker.samples/prestashop-cart-orchestrator/orchestrator.py
sonecabr/konker-platform
12f6307cb5125ab58788972957e1e6fee29ff0c4
[ "Apache-2.0" ]
34
2017-02-06T12:31:29.000Z
2021-11-03T18:39:50.000Z
konker.samples/prestashop-cart-orchestrator/orchestrator.py
rzarref/konker-platform
4485490b41bf4db34a0e919c5863a9cc3dff3504
[ "Apache-2.0" ]
15
2017-02-07T12:10:00.000Z
2021-11-10T13:28:45.000Z
konker.samples/prestashop-cart-orchestrator/orchestrator.py
rzarref/konker-platform
4485490b41bf4db34a0e919c5863a9cc3dff3504
[ "Apache-2.0" ]
11
2017-02-16T08:50:03.000Z
2021-06-22T23:57:45.000Z
import logging from config import * from prestashop.repositories import gateway from prestashop.repositories import * logger = logging.getLogger(__name__) gateway.APIKEY = CONFIG['APIKEY'] def add_to_cart(email,reference,quantity): customer = customers.get_customer_code(email) product = products.get_product_c...
32
53
0.766667
50ce2d9f57e77649f21c97973b6d5d0bc4762ea3
2,250
py
Python
tests/ut/debugger/stream_handler/test_tensor_handler.py
fapbatista/mindinsight
db5769eb80cbd13a2a9af7682c11f5667d8bf141
[ "Apache-2.0" ]
null
null
null
tests/ut/debugger/stream_handler/test_tensor_handler.py
fapbatista/mindinsight
db5769eb80cbd13a2a9af7682c11f5667d8bf141
[ "Apache-2.0" ]
null
null
null
tests/ut/debugger/stream_handler/test_tensor_handler.py
fapbatista/mindinsight
db5769eb80cbd13a2a9af7682c11f5667d8bf141
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
41.666667
112
0.702222
89a998ffaac4df7af10d76701e5a83608039387b
229
py
Python
python/scrutiny/server/protocol/commands/__init__.py
scrutinydebugger/scrutiny
7530790ae40f20c3008fe196e39cab07c4b73445
[ "MIT" ]
1
2021-04-18T02:58:59.000Z
2021-04-18T02:58:59.000Z
python/scrutiny/server/protocol/commands/__init__.py
scrutinydebugger/scrutiny
7530790ae40f20c3008fe196e39cab07c4b73445
[ "MIT" ]
null
null
null
python/scrutiny/server/protocol/commands/__init__.py
scrutinydebugger/scrutiny
7530790ae40f20c3008fe196e39cab07c4b73445
[ "MIT" ]
null
null
null
from .base_command import DatalogControl from .base_command import GetInfo from .base_command import MemoryControl from .base_command import CommControl from .base_command import UserCommand from .base_command import DummyCommand
38.166667
40
0.873362
7e1cc472a7d62708e0e98774ad10ad661bf11139
5,322
py
Python
utils/nn.py
zisang0210/flickr8k-im2txt
0dac312ad2822161f7233ac67495684ea19bb5aa
[ "MIT" ]
3
2019-03-02T09:09:01.000Z
2019-11-15T02:09:50.000Z
utils/nn.py
zisang0210/flickr8k-im2txt
0dac312ad2822161f7233ac67495684ea19bb5aa
[ "MIT" ]
null
null
null
utils/nn.py
zisang0210/flickr8k-im2txt
0dac312ad2822161f7233ac67495684ea19bb5aa
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.contrib.layers as layers class NN(object): def __init__(self, config): self.config = config self.is_train = config.phase == 'train' and config.joint_train self.train_cnn = False self.prepare() def prepare(self): """ Setup the we...
35.48
91
0.571026
29a2700e1f297e31ac287e73fb6caf8bdd65645e
9,226
py
Python
pylj/util.py
sansona/pylj
932cb724a9564470e0fbba9f568505c9413dca97
[ "MIT" ]
null
null
null
pylj/util.py
sansona/pylj
932cb724a9564470e0fbba9f568505c9413dca97
[ "MIT" ]
null
null
null
pylj/util.py
sansona/pylj
932cb724a9564470e0fbba9f568505c9413dca97
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np import webbrowser from pylj import md, mc from numba import jit class System: """Simulation system. This class is designed to store all of the information about the job that is being run. This includes the particles object, as will as sampling objects...
33.306859
87
0.585086
12b5c6d30a2eef97aeaf9029286fba847ccf03fd
3,802
py
Python
code/plots/plots_dataset_overview.py
mspp-data-studio-2021/aptitude-analysis
90a7fc8655650f8166d530d325b963b93a42f311
[ "MIT" ]
null
null
null
code/plots/plots_dataset_overview.py
mspp-data-studio-2021/aptitude-analysis
90a7fc8655650f8166d530d325b963b93a42f311
[ "MIT" ]
null
null
null
code/plots/plots_dataset_overview.py
mspp-data-studio-2021/aptitude-analysis
90a7fc8655650f8166d530d325b963b93a42f311
[ "MIT" ]
null
null
null
"""This module creates some basic figures describing the dataset.""" # %% import os from matplotlib import font_manager import matplotlib.pyplot as plt import numpy as np import matplotlib from mpl_toolkits.axisartist.axislines import Subplot from setup_fin_dataset import SURVEY_YEARS from setup_fin_dataset import ge...
30.66129
95
0.718832
c737d9cf635a652938673d887809028e29c94626
3,497
py
Python
src/data_preparation/scripts/graph_generator/typeparsing/pruneannotations.py
JetBrains-Research/typilus
c52e61bc2dd43e98f575c9d45cdf108060034994
[ "MIT" ]
4
2021-05-10T10:56:13.000Z
2022-02-18T00:21:33.000Z
src/data_preparation/scripts/graph_generator/typeparsing/pruneannotations.py
JetBrains-Research/typilus
c52e61bc2dd43e98f575c9d45cdf108060034994
[ "MIT" ]
6
2020-11-26T18:21:03.000Z
2021-05-25T09:04:14.000Z
src/data_preparation/scripts/graph_generator/typeparsing/pruneannotations.py
JetBrains-Research/typilus
c52e61bc2dd43e98f575c9d45cdf108060034994
[ "MIT" ]
3
2020-12-07T17:06:09.000Z
2022-02-18T00:21:37.000Z
from graph_generator.typeparsing.nodes import TypeAnnotationNode, SubscriptAnnotationNode, TupleAnnotationNode, \ ElipsisAnnotationNode, ListAnnotationNode, AttributeAnnotationNode, IndexAnnotationNode from graph_generator.typeparsing.visitor import TypeAnnotationVisitor __all__ = ['PruneAnnotationVisitor'] ...
43.7125
114
0.693166
d1ebe7d0f1366896d17e0ef835f5a4a315305799
14,070
py
Python
sanic_limiter/extension.py
alisaifee/sanic-limiter
025b12d428165485f1c425992f4ad5f11d44729a
[ "MIT" ]
92
2017-02-28T13:22:37.000Z
2022-01-02T11:31:28.000Z
sanic_limiter/extension.py
alisaifee/sanic-limiter
025b12d428165485f1c425992f4ad5f11d44729a
[ "MIT" ]
15
2017-03-21T20:44:04.000Z
2021-11-28T09:57:15.000Z
sanic_limiter/extension.py
alisaifee/sanic-limiter
025b12d428165485f1c425992f4ad5f11d44729a
[ "MIT" ]
18
2017-02-28T15:01:38.000Z
2022-03-02T09:14:53.000Z
""" the sanic extension """ import logging import six import sys import inspect from limits.errors import ConfigurationError from limits.storage import storage_from_string from limits.strategies import STRATEGIES from limits.util import parse_many from sanic.blueprints import Blueprint from .errors import RateLimitE...
39.301676
104
0.56425
8a921b1d58f71ca4085f4693b4aa2720c1cc3830
433
py
Python
Practice_problems/Edabit/Calculate using string operation.py
riyabhatia26/Python-Programming
2882728982c15c3b6380033eb2e90761b538dd93
[ "MIT" ]
3
2020-08-07T04:33:19.000Z
2021-10-06T08:58:01.000Z
Practice_problems/Edabit/Calculate using string operation.py
riyabhatia26/Python-Programming
2882728982c15c3b6380033eb2e90761b538dd93
[ "MIT" ]
null
null
null
Practice_problems/Edabit/Calculate using string operation.py
riyabhatia26/Python-Programming
2882728982c15c3b6380033eb2e90761b538dd93
[ "MIT" ]
2
2021-10-06T08:58:05.000Z
2021-10-06T09:46:42.000Z
# Calculate Using String Operation # Create a function that takes two numbers and a mathematical operator and returns the result. def calculate(num1, num2, op): str1 = '{0} {1} {2}'.format(num1,op,num2) return eval(str1) print(calculate(4, 9, "+")) def bitAnd(n1, n2): val = int(n1 and n2) def decimalToBinary(nu...
22.789474
94
0.69515
e289db994d7eaba157e11e85f1bc94ae193130ba
32,667
py
Python
salt/modules/boto_lambda.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
salt/modules/boto_lambda.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
salt/modules/boto_lambda.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
2
2017-01-05T16:14:59.000Z
2019-01-31T23:15:25.000Z
# -*- coding: utf-8 -*- ''' Connection module for Amazon Lambda .. versionadded:: 2016.3.0 :configuration: This module accepts explicit Lambda credentials but can also utilize IAM roles assigned to the instance through Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no ...
34.42255
119
0.612545
5a9d6318db4021415fba711b0487c8ce77ce9805
266
py
Python
WebCrawler/WebCrawler/items.py
ThomasFavrel/Intro_to_Scrapy
cddd6d5eb71d65bae4104470c2eb3be58b950ba4
[ "Apache-2.0" ]
null
null
null
WebCrawler/WebCrawler/items.py
ThomasFavrel/Intro_to_Scrapy
cddd6d5eb71d65bae4104470c2eb3be58b950ba4
[ "Apache-2.0" ]
null
null
null
WebCrawler/WebCrawler/items.py
ThomasFavrel/Intro_to_Scrapy
cddd6d5eb71d65bae4104470c2eb3be58b950ba4
[ "Apache-2.0" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class WebcrawlerItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
20.461538
53
0.718045
4bad2da879fb70af826bf25f2bb684b03812439d
4,107
py
Python
properties/CPI.py
WilliamArnone/Tallulah
4c3b37ef579398719e2331f241d9ed0364a783ca
[ "MIT" ]
1
2022-03-24T15:08:47.000Z
2022-03-24T15:08:47.000Z
properties/CPI.py
WilliamArnone/Tallulah
4c3b37ef579398719e2331f241d9ed0364a783ca
[ "MIT" ]
null
null
null
properties/CPI.py
WilliamArnone/Tallulah
4c3b37ef579398719e2331f241d9ed0364a783ca
[ "MIT" ]
null
null
null
from Graph import EdgeToString, Graph, ReverseEdge #t: P-α->Q and u: P-β->R and u': Q-β->S and t': R-α->S with t ι u => u' ι nt class CPI: name = "CPI - Coinitial Propagation of Independence" def Check(graph:Graph): """Check CPI property and return true if holds""" errors = set() #i...
44.641304
167
0.502557
2a22b5606dd8c7d097f800404dccddd254960176
5,254
py
Python
analysis/study_definition.py
clearyb1/OPENSAFELYIntro
c001bc60aee588065109b5e27589d1779a56142b
[ "MIT" ]
null
null
null
analysis/study_definition.py
clearyb1/OPENSAFELYIntro
c001bc60aee588065109b5e27589d1779a56142b
[ "MIT" ]
null
null
null
analysis/study_definition.py
clearyb1/OPENSAFELYIntro
c001bc60aee588065109b5e27589d1779a56142b
[ "MIT" ]
null
null
null
from cohortextractor import StudyDefinition, patients, codelist, codelist_from_csv # NOQA from codelists import * from study_definition_delivery_common import common_variables, index_date study = StudyDefinition( default_expectations={ "date": {"earliest": "1976-01-01", "latest": "2006-01-01"}, "...
37.798561
157
0.579368
d0db35f46085168a395f8d51041be2da0e4d38d0
9,683
py
Python
airflow/providers/google/cloud/transfers/s3_to_gcs.py
wegamekinglc/incubator-airflow
fc174635b0729253a86e8c877d6d8551a815a2cb
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2021-07-30T16:46:46.000Z
2021-10-19T07:18:47.000Z
airflow/providers/google/cloud/transfers/s3_to_gcs.py
wegamekinglc/incubator-airflow
fc174635b0729253a86e8c877d6d8551a815a2cb
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
6
2019-03-16T02:09:30.000Z
2019-06-27T03:27:34.000Z
airflow/providers/google/cloud/transfers/s3_to_gcs.py
wegamekinglc/incubator-airflow
fc174635b0729253a86e8c877d6d8551a815a2cb
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-05-05T07:36:36.000Z
2021-11-10T17:32:39.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...
41.917749
110
0.636786
d4f676d67987d508c30e815c38d8f9f13452ecaa
5,124
py
Python
LIMS_RNA_Pipeline/BackupQCReport.py
NCI-CGR/RNA_CGR_Pipeline
307107eb0753087f7abd0b9d8fc3906ddfdac33a
[ "MIT" ]
null
null
null
LIMS_RNA_Pipeline/BackupQCReport.py
NCI-CGR/RNA_CGR_Pipeline
307107eb0753087f7abd0b9d8fc3906ddfdac33a
[ "MIT" ]
null
null
null
LIMS_RNA_Pipeline/BackupQCReport.py
NCI-CGR/RNA_CGR_Pipeline
307107eb0753087f7abd0b9d8fc3906ddfdac33a
[ "MIT" ]
1
2021-12-14T17:16:17.000Z
2021-12-14T17:16:17.000Z
import sys import pandas import os import subprocess ROOTDropBoxDir = "/CGF/Laboratory/LIMS/drop-box-prod/RNAsequenceqc" ROOTProjDir = "/CGF/Laboratory/Projects" class ClsSample: def __init__(self): self.strName = "" self.strBarcode = "" self.strProjID = "" def GetProjectList(strSampl...
37.130435
133
0.626269
ac2c605b7b8d1ef41cb1c50ecee8c6b778e30ff1
12,312
py
Python
train_cmplt.py
columbia-robovision/SSCNav
0e781a350cddb68c499402d6468ad1adcfb1759d
[ "MIT" ]
1
2021-04-02T04:05:19.000Z
2021-04-02T04:05:19.000Z
train_cmplt.py
columbia-robovision/SSCNav
0e781a350cddb68c499402d6468ad1adcfb1759d
[ "MIT" ]
null
null
null
train_cmplt.py
columbia-robovision/SSCNav
0e781a350cddb68c499402d6468ad1adcfb1759d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.utils.data import DataLoader from torch.optim.lr_scheduler import LambdaLR import torch.backends.cudnn as cudnn #from utils.dataloader_cmplt import CompletionDataset, MultiViewDataset #from models import SegNet, ConfNet, ResNet, Bottleneck, DeconvBottleneck from utils.data...
35.895044
409
0.599903
5269febbbd2f01e788028c57689cb6b4cc369e84
446
py
Python
graphstore/rule-runner/setup.py
kltm/go-site
fe6797ed1291bd0d12df83b7c9d670c91a0fb526
[ "BSD-3-Clause" ]
31
2016-11-01T13:11:43.000Z
2022-02-28T05:05:16.000Z
graphstore/rule-runner/setup.py
kltm/go-site
fe6797ed1291bd0d12df83b7c9d670c91a0fb526
[ "BSD-3-Clause" ]
1,172
2015-01-29T23:47:53.000Z
2022-03-30T05:22:01.000Z
graphstore/rule-runner/setup.py
kltm/go-site
fe6797ed1291bd0d12df83b7c9d670c91a0fb526
[ "BSD-3-Clause" ]
92
2015-02-11T03:10:55.000Z
2022-03-01T08:16:02.000Z
from setuptools import setup, find_packages setup( name="rule-runner", version="0.2.1", packages=find_packages(), include_package_data=True, install_requires=[ "click", "requests", "pyYaml==5.4.1", "pykwalify==1.6.0", "SPARQLWrapper==1.8.0", "yamldown...
20.272727
43
0.549327
8ef1663a12f1418311dd9680a03c0898bc53777b
172,843
py
Python
lib/sqlalchemy/orm/query.py
dima-starosud/sqlalchemy
142c94348ad4a341f7cbff3d76bf0df397fa782f
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/query.py
dima-starosud/sqlalchemy
142c94348ad4a341f7cbff3d76bf0df397fa782f
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/query.py
dima-starosud/sqlalchemy
142c94348ad4a341f7cbff3d76bf0df397fa782f
[ "MIT" ]
null
null
null
# orm/query.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """The Query class and support. Defines the :class:`.Query` class, the central constru...
36.449388
85
0.592653
e7bfe7b0ed222b4df6c7a6f14b8eabbaa383d2bb
267
py
Python
app/playlist_generation/src/track.py
AndrewKassab/groupify
d01ae0e2baeaa7d83d035667009456fcf76da700
[ "MIT" ]
null
null
null
app/playlist_generation/src/track.py
AndrewKassab/groupify
d01ae0e2baeaa7d83d035667009456fcf76da700
[ "MIT" ]
8
2020-06-25T07:56:47.000Z
2022-02-18T10:57:59.000Z
app/playlist_generation/src/track.py
AndrewKassab/groupify
d01ae0e2baeaa7d83d035667009456fcf76da700
[ "MIT" ]
null
null
null
class Track: def __init__(self, id, name, artists, duration): self.id = id self.name = name self.artists = artists self.duration = duration self.amt_saved = 1 def increment_amt_saved(self): self.amt_saved += 1
24.272727
52
0.59176
1f3254efa8ad80c8971598aeb3ed4d96a6908aec
4,435
py
Python
gRNAScores/gRNAScoreDB.py
pablocarderam/genetargeter
4cd257d02e0753c1be9fa339aa505bb895315a6d
[ "MIT" ]
null
null
null
gRNAScores/gRNAScoreDB.py
pablocarderam/genetargeter
4cd257d02e0753c1be9fa339aa505bb895315a6d
[ "MIT" ]
2
2021-06-02T15:28:52.000Z
2021-06-17T12:08:53.000Z
gRNAScores/gRNAScoreDB.py
pablocarderam/genetargeter
4cd257d02e0753c1be9fa339aa505bb895315a6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Jun 5 2017 Python functions used to get gRNA info according to Hsu et al. (2013) and Doench et al. (2016) algorithms from a pre-calculated database. @author: Pablo CR """ def searchDB(searchSeq,dbFilePath): returnInfo = []; with open(dbFilePath) as fp: for i,r...
45.255102
110
0.596392
6a7d833555754a88d7040638338dba5140daa511
811
py
Python
src/django-nonrel/tests/modeltests/validation/validators.py
adamjmcgrath/glancydesign
826ede7c639879d5b79ee730eb5e91422768cb02
[ "BSD-3-Clause" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
tests/modeltests/validation/validators.py
mradziej/django
5d38965743a369981c9a738a298f467f854a2919
[ "BSD-3-Clause" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
tests/modeltests/validation/validators.py
mradziej/django
5d38965743a369981c9a738a298f467f854a2919
[ "BSD-3-Clause" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
from django.utils.unittest import TestCase from modeltests.validation import ValidationTestCase from models import * class TestModelsWithValidators(ValidationTestCase): def test_custom_validator_passes_for_correct_value(self): mtv = ModelToValidate(number=10, name='Some Name', f_with_custom_validator=42)...
40.55
86
0.74476
c11aff7eeebee2977b8ec9d62cbfc637a8bb69bf
4,266
py
Python
source/util/architecture/architecture.py
seemir/stressa
7c3b178cf13f74ee010dbd44ce99188de3862ef7
[ "MIT" ]
null
null
null
source/util/architecture/architecture.py
seemir/stressa
7c3b178cf13f74ee010dbd44ce99188de3862ef7
[ "MIT" ]
337
2019-09-27T12:26:14.000Z
2022-03-31T04:13:04.000Z
source/util/architecture/architecture.py
seemir/stressa
7c3b178cf13f74ee010dbd44ce99188de3862ef7
[ "MIT" ]
1
2019-11-08T13:40:30.000Z
2019-11-08T13:40:30.000Z
# -*- coding: utf-8 -*- """ Architecture diagram """ __author__ = 'Samir Adrik' __email__ = 'samir.adrik@gmail.com' from diagrams.aws.database import DocumentdbMongodbCompatibility from diagrams.programming.language import Python, Bash from diagrams.oci.storage import FilestorageGrey from diagrams import Cluster, Di...
34.682927
99
0.629864
4fddef9e9e6f7310136926befa802de43043cd07
1,013
py
Python
panopuppet/pano/models.py
propyless/panopuppet
6beea45ad25ea1e2ed7dbd5b60210880cd8aab2a
[ "Apache-2.0" ]
60
2015-03-26T14:24:47.000Z
2016-08-09T17:48:00.000Z
panopuppet/pano/models.py
propyless/panopuppet
6beea45ad25ea1e2ed7dbd5b60210880cd8aab2a
[ "Apache-2.0" ]
108
2015-04-17T12:05:46.000Z
2016-08-23T14:42:19.000Z
panopuppet/pano/models.py
propyless/panopuppet
6beea45ad25ea1e2ed7dbd5b60210880cd8aab2a
[ "Apache-2.0" ]
27
2015-03-30T13:23:03.000Z
2016-10-25T20:18:27.000Z
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible # Create your models here. @python_2_unicode_compatible class LdapGroupPermissions(models.Model): ldap_group_name = models.CharField(max_length=200, primary_key=True, unique=True) ...
30.69697
85
0.7769
673b678ca8112f483077b3e5f6070a58b82e258f
2,707
py
Python
src/visuanalytics/tests/analytics/transform/types/test_transform_add_symbol.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_add_symbol.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_add_symbol.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import unittest from visuanalytics.tests.analytics.transform.transform_test_helper import prepare_test class TestTransformAddSymbol(unittest.TestCase): def setUp(self): self.data = { "test": "test", "hallo": "Hallo", "test2": "visuanalytics" } def test_tra...
28.797872
86
0.451792
daf1c544ba95304e12fb14bf781c63b3e535b75b
14,920
py
Python
src/add.py
wangyipengw1p/VHDL-Xgen
9dd76319ffef8a3415b35fdd7344d7404fd7c4d5
[ "MIT" ]
1
2019-06-01T13:20:15.000Z
2019-06-01T13:20:15.000Z
src/add.py
wangyipengw1p/VHDL-Xgen
9dd76319ffef8a3415b35fdd7344d7404fd7c4d5
[ "MIT" ]
null
null
null
src/add.py
wangyipengw1p/VHDL-Xgen
9dd76319ffef8a3415b35fdd7344d7404fd7c4d5
[ "MIT" ]
null
null
null
from math import * import shutil import os #import os.path.join as join #----------------------------- #Functions: # addComponents(arg) # findEntityHead(data) # findArchBegin(data) # findArchHead(data) # findArchEnd(data) # addcounter(writename, countnum) # addclkdiv(writefile, divnum) # addfsm(writefile, arg) ...
30.141414
156
0.635523
a21bcb5599937f6e830d3701b16e69abacb40479
2,503
py
Python
order/migrations/0004_auto_20211016_1847.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
16
2021-09-22T19:08:28.000Z
2022-03-18T18:57:02.000Z
order/migrations/0004_auto_20211016_1847.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-09-30T12:36:02.000Z
2022-03-18T22:18:00.000Z
order/migrations/0004_auto_20211016_1847.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-12-06T02:04:51.000Z
2022-03-13T14:38:14.000Z
# Generated by Django 3.2.6 on 2021-10-16 12:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('customers', '0005_customer_image'), ('order', '0003_auto_20211013_2140'), ] operations = [ ...
39.109375
143
0.564523
7496ea7a2f04e36c96d0012eaf0258620943b5d7
8,766
py
Python
google-cloud-sdk/lib/surface/compute/instances/import.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/compute/instances/import.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
google-cloud-sdk/lib/surface/compute/instances/import.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
# -*- coding: utf-8 -*- # # 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 requir...
39.309417
141
0.716632
6da56cddaa34143a974a95acf52bb2df29a59bb3
5,123
py
Python
src/doing/open/commands.py
tijlk/doing-cli
048e04aaa9f3f99f1a8013fe4cd8a488180f5f2b
[ "MIT" ]
null
null
null
src/doing/open/commands.py
tijlk/doing-cli
048e04aaa9f3f99f1a8013fe4cd8a488180f5f2b
[ "MIT" ]
null
null
null
src/doing/open/commands.py
tijlk/doing-cli
048e04aaa9f3f99f1a8013fe4cd8a488180f5f2b
[ "MIT" ]
null
null
null
import os import click from urllib.parse import quote from rich.console import Console from doing.utils import get_repo_name, run_command, get_current_work_item_id, get_current_pr_id from doing.options import get_config from doing.pr.open_pr import cmd_open_pr from doing.issue.open_issue import cmd_open_issue from do...
26.963158
116
0.675386
49a7e44dab5e1b93fe31e4853415ba4f9eec2c5d
8,688
py
Python
hypertools/_shared/helpers.py
lucywowen/hypertools
cd3a9571d53aefdfc3c44d69c6db459da71fc60e
[ "MIT" ]
1
2019-03-30T03:22:35.000Z
2019-03-30T03:22:35.000Z
hypertools/_shared/helpers.py
darthvader2/hypertools
1bd82af844b52da028160c29c9d5d8645f85a2ec
[ "MIT" ]
null
null
null
hypertools/_shared/helpers.py
darthvader2/hypertools
1bd82af844b52da028160c29c9d5d8645f85a2ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Helper functions """ ##PACKAGES## from __future__ import division from __future__ import print_function import functools import sys import warnings import numpy as np import six import copy from scipy.interpolate import PchipInterpolator as pchip import seaborn as sns import itertools import...
31.592727
127
0.603361
8b9cc41d9b6634c06381f9ae713416480974b162
29,329
py
Python
pxr/usd/lib/usdGeom/testenv/testUsdGeomXformable.py
YuqiaoZhang/USD
bf3a21e6e049486441440ebf8c0387db2538d096
[ "BSD-2-Clause" ]
5
2017-11-06T10:21:18.000Z
2020-04-02T13:20:55.000Z
pxr/usd/lib/usdGeom/testenv/testUsdGeomXformable.py
YuqiaoZhang/USD
bf3a21e6e049486441440ebf8c0387db2538d096
[ "BSD-2-Clause" ]
1
2020-07-07T22:39:42.000Z
2020-07-07T22:39:42.000Z
pxr/usd/lib/usdGeom/testenv/testUsdGeomXformable.py
YuqiaoZhang/USD
bf3a21e6e049486441440ebf8c0387db2538d096
[ "BSD-2-Clause" ]
null
null
null
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
43.258112
116
0.608919
15fbf0f5b41df42343e82aa0199824f9ff7b4f45
1,157
py
Python
projects/FastFace/fastface/modeling/face_head.py
UU-tracktech/fast-reid
8e367315fc3b95d326fc37a9bde7b83f90eaf825
[ "Apache-2.0" ]
null
null
null
projects/FastFace/fastface/modeling/face_head.py
UU-tracktech/fast-reid
8e367315fc3b95d326fc37a9bde7b83f90eaf825
[ "Apache-2.0" ]
null
null
null
projects/FastFace/fastface/modeling/face_head.py
UU-tracktech/fast-reid
8e367315fc3b95d326fc37a9bde7b83f90eaf825
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @author: xingyu liao @contact: sherlockliao01@gmail.com """ from fastreid.config import configurable from processor.pipeline.reidentification.fastreid.fastreid.modeling.heads import EmbeddingHead from processor.pipeline.reidentification.fastreid.fastreid.modeling.heads.build import REID_HEADS_RE...
34.029412
106
0.67675
92924b1e442c2e70c2ece4386e0b731d3ae43de0
23,673
py
Python
.venv/lib/python3.10/site-packages/nltk/collections.py
plocandido/docinfrati
ad563c93efed1d6909a7650d299cac9adf8a1348
[ "MIT" ]
null
null
null
.venv/lib/python3.10/site-packages/nltk/collections.py
plocandido/docinfrati
ad563c93efed1d6909a7650d299cac9adf8a1348
[ "MIT" ]
null
null
null
.venv/lib/python3.10/site-packages/nltk/collections.py
plocandido/docinfrati
ad563c93efed1d6909a7650d299cac9adf8a1348
[ "MIT" ]
null
null
null
# Natural Language Toolkit: Collections # # Copyright (C) 2001-2022 NLTK Project # Author: Steven Bird <stevenbird1@gmail.com> # URL: <https://www.nltk.org/> # For license information, see LICENSE.TXT import bisect # this unused import is for python 2.7 from collections import Counter, defaultdict, deque f...
35.759819
90
0.563131
e48921dc6357be67acc2c2d79ab05b380da879a2
382
py
Python
packages/python/plotly/plotly/validators/contour/_z.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/contour/_z.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/contour/_z.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="z", parent_name="contour", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type=kwa...
31.833333
73
0.659686
efc7980adadc3355c7ae73acb8c8c81878d0008a
3,042
py
Python
scipy/optimize/tests/test_slsqp.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-10-07T00:37:32.000Z
2022-01-21T17:02:33.000Z
scipy/optimize/tests/test_slsqp.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
null
null
null
scipy/optimize/tests/test_slsqp.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-05-09T14:23:57.000Z
2018-11-15T05:56:00.000Z
from numpy.testing import assert_array_almost_equal, TestCase, run_module_suite import numpy as np from scipy.optimize import fmin_slsqp class TestSLSQP(TestCase): """Test fmin_slsqp using Example 14.4 from Numerical Methods for Engineers by Steven Chapra and Raymond Canale. This example maximizes the ...
34.179775
85
0.528928
4a66871c8aedc0f1803348d14de14a489c5ae0f2
254
py
Python
RecursiveLoad.py
nemOoO-wang/RandomizeOC
c91f454cebc1041555d60c54218d0de00bfc53ce
[ "MIT" ]
null
null
null
RecursiveLoad.py
nemOoO-wang/RandomizeOC
c91f454cebc1041555d60c54218d0de00bfc53ce
[ "MIT" ]
null
null
null
RecursiveLoad.py
nemOoO-wang/RandomizeOC
c91f454cebc1041555d60c54218d0de00bfc53ce
[ "MIT" ]
null
null
null
from InsertCode import tweek_file import glob Work_Directory = '/Users/Nemo/Desktop/XCodeTest/Origin/MingYaDianZhu/MingYa/entrance' dir_list = glob.glob(Work_Directory+'/**/*.m', recursive=True) for m_file_path in dir_list: tweek_file(m_file_path)
28.222222
85
0.791339
57cee3e18c08f64c909ff4906f8c5dcd92d037d4
1,796
py
Python
www/orm.py
chengxiaoming/webapp
92b8f9c97a250108315301698caa3e027ac76cac
[ "Apache-2.0" ]
null
null
null
www/orm.py
chengxiaoming/webapp
92b8f9c97a250108315301698caa3e027ac76cac
[ "Apache-2.0" ]
null
null
null
www/orm.py
chengxiaoming/webapp
92b8f9c97a250108315301698caa3e027ac76cac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin # -*- coding=utf-8 -*- __author__ = 'Michael' ''' orm ''' import asyncio,logging import aiomysql async def create_pool(loop,**kw): logging.info('create database connection pool') global __pool __pool = await aiomysql.create_pool( host=kw.get('host','localhost'), prot=kw.get('po...
26.028986
60
0.58853
9be8b578879506a9dcfa99291ad99f3ee1705d12
4,342
py
Python
src/user_service/user_cli/user_service.py
Forcepoint/fp-bd-microsoft-graph-azure
89808dbbacd6f1129a47d74f37e349ba9272259b
[ "Apache-2.0" ]
null
null
null
src/user_service/user_cli/user_service.py
Forcepoint/fp-bd-microsoft-graph-azure
89808dbbacd6f1129a47d74f37e349ba9272259b
[ "Apache-2.0" ]
null
null
null
src/user_service/user_cli/user_service.py
Forcepoint/fp-bd-microsoft-graph-azure
89808dbbacd6f1129a47d74f37e349ba9272259b
[ "Apache-2.0" ]
null
null
null
import yaml import sys import json from multiprocessing import Process from time import sleep from service_api.flask_api import * from user_lib.log_consumer import LogConsumer class FlaskProcess(Process): def __init__(self, flask_app, ip_address, port): super().__init__() self._flask_app = flask_...
37.431034
101
0.599033
ff2e573c3d37c1d1443522db70ae787b4e3303c0
218
py
Python
core/context_processor.py
fliptrail/GSoC-Contribution-Leaderboard
ab6a66a8a793ab987f388cc2a10f0bd569193b0e
[ "MIT" ]
17
2019-02-12T04:44:21.000Z
2020-09-21T17:45:28.000Z
core/context_processor.py
fliptrail/GSoC-Contribution-Leaderboard
ab6a66a8a793ab987f388cc2a10f0bd569193b0e
[ "MIT" ]
50
2019-02-12T19:41:34.000Z
2019-04-22T08:39:44.000Z
core/context_processor.py
fliptrail/GSoC-Contribution-Leaderboard
ab6a66a8a793ab987f388cc2a10f0bd569193b0e
[ "MIT" ]
21
2019-02-09T23:16:18.000Z
2020-09-22T16:58:06.000Z
from django.conf import settings def global_settings(request): return { 'ORG_LOGO': settings.ORGANIZATION_LOGO, 'ORG_SITE': settings.ORGANIZATION_SITE, 'ORG': settings.ORGANIZATION, }
21.8
47
0.678899
d8887a69b567a69e1813c0d9ff93f595325b2dd8
4,244
py
Python
src/command_modules/azure-cli-cloud/azure/cli/command_modules/cloud/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-cloud/azure/cli/command_modules/cloud/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-cloud/azure/cli/command_modules/cloud/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
55.116883
116
0.670594
a0387014f1f384e8201bfdb7cb3a15433fd606e6
6,358
py
Python
tf_agents/networks/sequential_test.py
isabella232/agents
b2ed02d20c43a4b789a4711f4653e8421f8ba526
[ "Apache-2.0" ]
null
null
null
tf_agents/networks/sequential_test.py
isabella232/agents
b2ed02d20c43a4b789a4711f4653e8421f8ba526
[ "Apache-2.0" ]
1
2021-02-24T00:52:43.000Z
2021-02-24T00:52:43.000Z
tf_agents/networks/sequential_test.py
isabella232/agents
b2ed02d20c43a4b789a4711f4653e8421f8ba526
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TF-Agents 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 la...
36.331429
86
0.669078
57758f2d3359abd70dbe0a55b7ec61688d4dadfe
179
py
Python
configs/resnet/resnet101_b16x8_cifar10.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1
2022-03-07T13:55:57.000Z
2022-03-07T13:55:57.000Z
configs/resnet/resnet101_b16x8_cifar10.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
5
2022-03-02T02:58:56.000Z
2022-03-23T05:51:53.000Z
configs/resnet/resnet101_b16x8_cifar10.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1
2022-01-04T03:19:50.000Z
2022-01-04T03:19:50.000Z
_base_ = 'resnet101_8xb16_cifar10.py' _deprecation_ = dict( expected='resnet101_8xb16_cifar10.py', reference='https://github.com/open-mmlab/mmclassification/pull/508', )
25.571429
72
0.759777
ded98c1c55ff4d50e5dcbc790ae490afcdb906ce
30,794
py
Python
packages/mysql/connector/protocol.py
okemenlandz/discordpy-startup
45d37d1ff85fa92773b0038afc933a9c14f60989
[ "MIT" ]
null
null
null
packages/mysql/connector/protocol.py
okemenlandz/discordpy-startup
45d37d1ff85fa92773b0038afc933a9c14f60989
[ "MIT" ]
2
2021-07-20T15:49:23.000Z
2021-08-15T07:46:47.000Z
packages/mysql/connector/protocol.py
okemenlandz/discordpy-startup
45d37d1ff85fa92773b0038afc933a9c14f60989
[ "MIT" ]
4
2021-07-13T19:44:06.000Z
2021-08-13T07:49:35.000Z
# Copyright (c) 2009, 2020, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, as # published by the Free Software Foundation. # # This program is also distributed with certain software (including # ...
38.68593
80
0.547964
d1e2932cc6ed4b127745ddcd1191613326868250
2,301
py
Python
catalog/models.py
LaksVister/Light
7f6df9b0dd767ab49b293d49c871806430af8ff4
[ "MIT" ]
1
2019-10-29T11:26:35.000Z
2019-10-29T11:26:35.000Z
catalog/models.py
LaksVister/Light
7f6df9b0dd767ab49b293d49c871806430af8ff4
[ "MIT" ]
null
null
null
catalog/models.py
LaksVister/Light
7f6df9b0dd767ab49b293d49c871806430af8ff4
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Category(models.Model): name = models.CharField(max_length=255) slug = models.CharField(max_length=255, unique=True) description = models.TextField() objects = models.Manager() def __str__(self): return self.name class Auth...
27.392857
81
0.71143
429b84c47c7bb1d0236a511a637bb935635a7405
8,460
py
Python
ctseg/config.py
sandialabs/mcdn-3d-seg
6b6a234719d37a11f3f997568c32ca04d62a4b18
[ "MIT" ]
4
2021-01-21T21:28:12.000Z
2021-09-27T19:39:34.000Z
ctseg/config.py
sandialabs/mcdn-3d-seg
6b6a234719d37a11f3f997568c32ca04d62a4b18
[ "MIT" ]
null
null
null
ctseg/config.py
sandialabs/mcdn-3d-seg
6b6a234719d37a11f3f997568c32ca04d62a4b18
[ "MIT" ]
2
2021-09-01T11:44:49.000Z
2022-01-04T02:01:28.000Z
""" """ import os from sacred.observers import FileStorageObserver from sacred import Experiment from ctseg.ctutil.utils import read_json def initialize_experiment(): """Initialize the Sacred Experiment This method reads a JSON config from mcdn-3d-seg/sacred_config.json with the following entries: ...
36.943231
89
0.610757
55225c92aeb6a3c163d1d04af941781ef97fa353
4,773
py
Python
kubernetes/client/models/extensions_v1beta1_http_ingress_path.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/extensions_v1beta1_http_ingress_path.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/extensions_v1beta1_http_ingress_path.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
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: v1.15.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Extensions...
33.612676
421
0.616803
58373fd5c8b511439e281106434a3e515e22a4d7
2,605
py
Python
promgen/tests/test_silence.py
PeterDaveHello/promgen
45bfd728748b371af758a7c7f3c341900e8425fd
[ "MIT" ]
null
null
null
promgen/tests/test_silence.py
PeterDaveHello/promgen
45bfd728748b371af758a7c7f3c341900e8425fd
[ "MIT" ]
null
null
null
promgen/tests/test_silence.py
PeterDaveHello/promgen
45bfd728748b371af758a7c7f3c341900e8425fd
[ "MIT" ]
null
null
null
# Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import datetime from unittest import mock from django.contrib.auth.models import User from django.test import override_settings from django.urls import reverse from promgen.tests import PromgenTest TES...
37.753623
97
0.62572
c86df1c69558925b33353182dde595de6046ff9e
196
py
Python
recyclingplant/__init__.py
hitman-resources/evolution
25044635f9ed94a9622dd62130f1cc44c89ff5f8
[ "MIT" ]
null
null
null
recyclingplant/__init__.py
hitman-resources/evolution
25044635f9ed94a9622dd62130f1cc44c89ff5f8
[ "MIT" ]
1
2021-09-30T14:31:48.000Z
2021-09-30T14:31:48.000Z
recyclingplant/__init__.py
hitman-resources/evolution
25044635f9ed94a9622dd62130f1cc44c89ff5f8
[ "MIT" ]
1
2021-09-30T14:24:20.000Z
2021-09-30T14:24:20.000Z
from redbot.core import data_manager from .recyclingplant import RecyclingPlant def setup(bot): plant = RecyclingPlant(bot) data_manager.bundled_data_path(plant) bot.add_cog(plant)
19.6
42
0.77551
026e8847412a720c575ed0edb0e02884a54c1341
22,337
py
Python
solaris/eval/vector.py
NKWBTB/solaris
998735d7661a7faa7bfde8968396e823a22ad1ec
[ "Apache-2.0" ]
1
2021-12-13T12:56:40.000Z
2021-12-13T12:56:40.000Z
solaris/eval/vector.py
avanetten/solaris
998735d7661a7faa7bfde8968396e823a22ad1ec
[ "Apache-2.0" ]
null
null
null
solaris/eval/vector.py
avanetten/solaris
998735d7661a7faa7bfde8968396e823a22ad1ec
[ "Apache-2.0" ]
null
null
null
import os import glob from tqdm import tqdm import numpy as np import geopandas as gpd from .iou import calculate_iou def average_score_by_class(ious, threshold=0.5): """ for a list of object ious by class, test if they are a counted as a positive or a negative. Arguments --------- ious : list...
43.457198
180
0.617093
f5047bbdf66bede2f99f67d9fc2d668e1711f358
3,490
py
Python
test/regression/test_deploy.py
wb-droid/cortx-k8s
874e823e1024343a3c3ef35819552bda1853aec3
[ "Apache-2.0" ]
null
null
null
test/regression/test_deploy.py
wb-droid/cortx-k8s
874e823e1024343a3c3ef35819552bda1853aec3
[ "Apache-2.0" ]
null
null
null
test/regression/test_deploy.py
wb-droid/cortx-k8s
874e823e1024343a3c3ef35819552bda1853aec3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import argparse import sys from checker import Checker from cluster import Cluster from utils import Logger, StopWatch def run_deploy_test(cluster, logger, checker, shutdown=False): sw = StopWatch() logger.logheader('Generated Solution File for Test') logger.logfile(cluster.solution...
31.160714
79
0.627221
fc826e34cbcb2aaa492adea7b14e3f468ba13d3c
14,914
py
Python
sdks/python/apache_beam/runners/interactive/dataproc/dataproc_cluster_manager_test.py
harrydrippin/beam
4b413bbb5f8807b0f7a284fd818f2772f036fe55
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/runners/interactive/dataproc/dataproc_cluster_manager_test.py
harrydrippin/beam
4b413bbb5f8807b0f7a284fd818f2772f036fe55
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/runners/interactive/dataproc/dataproc_cluster_manager_test.py
harrydrippin/beam
4b413bbb5f8807b0f7a284fd818f2772f036fe55
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
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 us...
41.659218
100
0.745809
2add44125e2bc9ff4f0af538bd644868e91403bb
1,797
py
Python
prim.py
mathleite/python-prim
4e38cc476ebab470f066851a071647b6649bf832
[ "MIT" ]
null
null
null
prim.py
mathleite/python-prim
4e38cc476ebab470f066851a071647b6649bf832
[ "MIT" ]
null
null
null
prim.py
mathleite/python-prim
4e38cc476ebab470f066851a071647b6649bf832
[ "MIT" ]
1
2020-04-14T19:25:37.000Z
2020-04-14T19:25:37.000Z
from sys import argv from src.node.node_handler import NodeHandler file = open(argv[1], "r") # n = number max of nodes node_handler = NodeHandler(file) node_handler.node_roaming() nodes = node_handler.greatest_node + 1 # Set MST with a random value # List with the result prim = [] # Auxiliar JSON to find the closes...
30.457627
109
0.603228
9179ad019e6cf1027fbf0b9987b9d52dc00589ec
17,571
py
Python
openstackclient/shell.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/shell.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/shell.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2013 OpenStack Foundation # Copyright 2015 Dean Troyer # # 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 # # U...
36.682672
79
0.588014
624832f643c4ab917b3bc865c9fed5fc4679420a
24,212
py
Python
mmf/modules/losses.py
sonuagarwal1008/mmf
21ba4308e07c4d0c933a5f8b98fbc823f78c653a
[ "BSD-3-Clause" ]
null
null
null
mmf/modules/losses.py
sonuagarwal1008/mmf
21ba4308e07c4d0c933a5f8b98fbc823f78c653a
[ "BSD-3-Clause" ]
null
null
null
mmf/modules/losses.py
sonuagarwal1008/mmf
21ba4308e07c4d0c933a5f8b98fbc823f78c653a
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. """ Losses module contains implementations for various losses used generally in vision and language space. One can register custom losses to be detected by MMF using the following example. .. code:: from mmf.common.registry import registry from torch import nn ...
32.763194
88
0.623286
ca696a7e984105ea4835a061c2d9729b7299ce53
790
py
Python
showml/examples/linear_regression.py
hasnainroopawalla/ShowML
bbaacc81779437ea2ef09d7869b1f8a824f80353
[ "MIT" ]
14
2022-01-02T13:53:39.000Z
2022-01-30T16:12:20.000Z
showml/examples/linear_regression.py
hasnainroopawalla/ShowML
bbaacc81779437ea2ef09d7869b1f8a824f80353
[ "MIT" ]
8
2021-11-10T15:38:57.000Z
2022-01-05T15:52:36.000Z
showml/examples/linear_regression.py
hasnainroopawalla/ShowML
bbaacc81779437ea2ef09d7869b1f8a824f80353
[ "MIT" ]
2
2021-11-04T14:24:03.000Z
2022-01-05T14:33:38.000Z
from showml.losses import MeanSquaredError from showml.optimizers import SGD from showml.linear_model.regression import LinearRegression from showml.utils.dataset import Dataset from showml.losses.metrics import mean_squared_error, r2_score from showml.utils.plots import plot_actual_vs_predicted from showml.utils.prepr...
31.6
88
0.829114
6cdd329b43c4e10a74d5342890c1951c764611e5
1,020
py
Python
samples/faces/FaceConfig.py
SlipknotTN/Mask_RCNN
686f7eb43c7f88fe568e8ed0ef743d95070b57d4
[ "MIT" ]
null
null
null
samples/faces/FaceConfig.py
SlipknotTN/Mask_RCNN
686f7eb43c7f88fe568e8ed0ef743d95070b57d4
[ "MIT" ]
null
null
null
samples/faces/FaceConfig.py
SlipknotTN/Mask_RCNN
686f7eb43c7f88fe568e8ed0ef743d95070b57d4
[ "MIT" ]
null
null
null
from mrcnn.config import Config class FaceConfig(Config): """ Configuration for training on the face dataset. """ # Give the configuration a recognizable name NAME = "face" GPU_COUNT = 1 IMAGES_PER_GPU = 16 # Number of classes (including background) NUM_CLASSES = 6 # background ...
30
76
0.697059
8ad52f36f8d4f9ecc944e46f30121386d73d7908
278
py
Python
src/lib/reportlab/pdfgen/__init__.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
1
2018-06-15T09:42:22.000Z
2018-06-15T09:42:22.000Z
src/lib/reportlab/pdfgen/__init__.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
src/lib/reportlab/pdfgen/__init__.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
#Copyright ReportLab Europe Ltd. 2000-2004 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/pdfgen/__init__.py __version__=''' $Id: __init__.py,v 1.1 2006/05/26 19:19:47 thomas Exp $ ''' __doc__=''
55.6
108
0.751799
df5be5dac50aac449bd09a5eeb455af300e8c910
13,447
py
Python
test/mpc.py
katana17/pensieve-dev
ccad1f64d2c50a0346ccce91c8c3b10eac08c30a
[ "MIT" ]
null
null
null
test/mpc.py
katana17/pensieve-dev
ccad1f64d2c50a0346ccce91c8c3b10eac08c30a
[ "MIT" ]
null
null
null
test/mpc.py
katana17/pensieve-dev
ccad1f64d2c50a0346ccce91c8c3b10eac08c30a
[ "MIT" ]
null
null
null
import numpy as np import fixed_env as env import load_trace import matplotlib.pyplot as plt import itertools S_INFO = 5 # bit_rate, buffer_size, rebuffering_time, bandwidth_measurement, chunk_til_video_end S_LEN = 8 # take how many frames in the past A_DIM = 6 MPC_FUTURE_CHUNK_COUNT = 5 ACTOR_LR_RATE = 0.0001 CRITI...
45.429054
120
0.621551
7b7ece9dbdd93a9e089d20d663c0cbd03626b043
13,244
py
Python
testsmainnet/staking/test_0-Staking.py
DryptoBZX/contractsV2
3ee0b7669902ff6b9422440289ddc52f679e636b
[ "Apache-2.0" ]
177
2020-06-13T01:41:04.000Z
2022-03-28T06:26:53.000Z
testsmainnet/staking/test_0-Staking.py
DryptoBZX/contractsV2
3ee0b7669902ff6b9422440289ddc52f679e636b
[ "Apache-2.0" ]
31
2020-08-14T14:30:37.000Z
2022-03-15T15:36:25.000Z
testsmainnet/staking/test_0-Staking.py
DryptoBZX/contractsV2
3ee0b7669902ff6b9422440289ddc52f679e636b
[ "Apache-2.0" ]
38
2020-06-24T22:24:40.000Z
2022-03-26T00:27:14.000Z
#!/usr/bin/python3 import pytest from brownie import network, Contract, Wei, chain @pytest.fixture(scope="module") def requireMainnetFork(): assert (network.show_active() == "mainnet-fork" or network.show_active() == "mainnet-fork-alchemy") def loadContractFromAbi(address, alias, abi): try: return ...
38.725146
148
0.689897
af68b1c1152b2ff6d7d43dbcc070adceb467405b
17,897
py
Python
pytpp/properties/resultcodes.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
4
2022-02-04T23:58:55.000Z
2022-02-15T18:53:08.000Z
pytpp/properties/resultcodes.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
pytpp/properties/resultcodes.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
class ResultCodes: Client = { 0 : 'Success, the operation succeeded, however, the client entry is untrusted', 1 : 'SuccessButUntrusted', 2 : 'ArgumentInvalidValue', 3 : 'ArgumentUnsupportedDerivingClass', 4 : 'ArgumentIsEmpty', 5 : 'ArgumentIsNull', 6 : 'BadAu...
36.901031
124
0.588758
046e2317d1165db76ea83231cd357d793686c137
6,106
py
Python
qa/rpc-tests/proxy_test.py
tutidap/chunicoin
c487565c5bdec3d4ab0bb3100725e2ff992c9d54
[ "MIT" ]
null
null
null
qa/rpc-tests/proxy_test.py
tutidap/chunicoin
c487565c5bdec3d4ab0bb3100725e2ff992c9d54
[ "MIT" ]
null
null
null
qa/rpc-tests/proxy_test.py
tutidap/chunicoin
c487565c5bdec3d4ab0bb3100725e2ff992c9d54
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import socket import traceback, sys from binascii import hexlify import time, os from socks5 import Socks5Conf...
41.821918
145
0.653456
4fb23c83d2eb1eb73cbadfbc197eacaab52ec800
322
py
Python
python/foo/package/py3-doc/sound/formats/wavwrite.py
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
1
2020-01-09T03:22:09.000Z
2020-01-09T03:22:09.000Z
python/foo/package/py3-doc/sound/formats/wavwrite.py
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
null
null
null
python/foo/package/py3-doc/sound/formats/wavwrite.py
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
null
null
null
"""The module wavwrite This is the "wavwrite" module, providing some useless functions! """ def func1(): print("Funktion func1 has been called!") def func2(): print("Funktion func2 has been called!") def func3(): print("Funktion func3 has been called!") print("Module wavwrite.py has been loaded!"...
14.636364
64
0.68323
611effbfa8d4b200ce8f130a3c9598d7c0171b42
7,809
py
Python
tests/www/test_security.py
andyh1203/airflow
0f02e45b7e127da3539752607ab02347d9fcd733
[ "Apache-2.0" ]
null
null
null
tests/www/test_security.py
andyh1203/airflow
0f02e45b7e127da3539752607ab02347d9fcd733
[ "Apache-2.0" ]
1
2020-10-14T16:40:36.000Z
2020-10-14T16:40:36.000Z
tests/www/test_security.py
andyh1203/airflow
0f02e45b7e127da3539752607ab02347d9fcd733
[ "Apache-2.0" ]
2
2020-04-24T10:51:17.000Z
2020-05-26T01:50:29.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
40.046154
90
0.685235
d02a866a9512ae228a17058984b56f94a5fbc480
15
py
Python
qqq.py
libin-c/Git_Test
ef3e369f77d88a69fb0a402536df4131b1f6dd33
[ "MIT" ]
null
null
null
qqq.py
libin-c/Git_Test
ef3e369f77d88a69fb0a402536df4131b1f6dd33
[ "MIT" ]
null
null
null
qqq.py
libin-c/Git_Test
ef3e369f77d88a69fb0a402536df4131b1f6dd33
[ "MIT" ]
null
null
null
sadasdasdasdas
7.5
14
0.933333
dd28df8354c57909275ee763f1bc284e836ead69
4,448
py
Python
pypy/module/cpyext/test/test_contextvars.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/cpyext/test/test_contextvars.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/cpyext/test/test_contextvars.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2022-03-30T11:42:37.000Z
2022-03-30T11:42:37.000Z
import pytest import sys import StringIO from pypy.module.cpyext.state import State from pypy.module.cpyext.pyobject import make_ref from pypy.module.cpyext.test.test_api import BaseApiTest from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase from rpython.rtyper.lltypesystem import rffi class A...
35.301587
85
0.489433
987abec0ff2b844c2a1c52d13f604fc4fd9af825
1,255
py
Python
Medium/Score_of_Parentheses.py
dianjiaogit/LeetCode_Python_solution
390693c839d1be8802c21ea81062443b6d5ea36f
[ "MIT" ]
null
null
null
Medium/Score_of_Parentheses.py
dianjiaogit/LeetCode_Python_solution
390693c839d1be8802c21ea81062443b6d5ea36f
[ "MIT" ]
null
null
null
Medium/Score_of_Parentheses.py
dianjiaogit/LeetCode_Python_solution
390693c839d1be8802c21ea81062443b6d5ea36f
[ "MIT" ]
null
null
null
# Given a balanced parentheses string S, compute the score of the string based on the following rule: # () has score 1 # AB has score A + B, where A and B are balanced parentheses strings. # (A) has score 2 * A, where A is a balanced parentheses string. # Example 1: # Input: "()" # Output: 1 # Example 2: # Input:...
22.017544
101
0.422311
a53c8d3cc190382696861fdcdb825d9893a67ac8
121
py
Python
test.py
shoy160/python-tools
4212322ec5c18f559417fe9e1381328e7ec333ab
[ "Apache-2.0" ]
null
null
null
test.py
shoy160/python-tools
4212322ec5c18f559417fe9e1381328e7ec333ab
[ "Apache-2.0" ]
5
2020-06-17T08:16:56.000Z
2022-02-10T01:49:30.000Z
test.py
shoy160/python-tools
4212322ec5c18f559417fe9e1381328e7ec333ab
[ "Apache-2.0" ]
null
null
null
if __name__ == "__main__": city = '510100' print(city[:4]) t = '510110213' print(t.startswith(city[:4]))
20.166667
33
0.570248
6142c729e0e0b935359a95cedf6e3a8e8424040e
323
py
Python
cab/urls/bookmarks.py
vivekthedev/djangosnippets.org
1bb3446de36ec5e4135dc9946eb8902875890a6c
[ "BSD-3-Clause" ]
244
2016-08-26T05:25:48.000Z
2022-03-17T22:51:58.000Z
cab/urls/bookmarks.py
vivekthedev/djangosnippets.org
1bb3446de36ec5e4135dc9946eb8902875890a6c
[ "BSD-3-Clause" ]
193
2016-08-25T15:38:20.000Z
2022-03-01T11:02:22.000Z
cab/urls/bookmarks.py
vivekthedev/djangosnippets.org
1bb3446de36ec5e4135dc9946eb8902875890a6c
[ "BSD-3-Clause" ]
67
2016-10-22T10:43:09.000Z
2022-03-23T23:15:59.000Z
from django.urls import path from ..views import bookmarks urlpatterns = [ path("", bookmarks.user_bookmarks, name="cab_user_bookmarks"), path("add/<int:snippet_id>/", bookmarks.add_bookmark, name="cab_bookmark_add"), path("delete/<int:snippet_id>/", bookmarks.delete_bookmark, name="cab_bookmark_delete"),...
32.3
92
0.739938
8ef469b5903a4acd4a8d7cb3dc19adc113e315c2
14,459
py
Python
modules/transformer.py
cuhksz-nlp/SANER
ac30f441be615de5224411816935283eddfbe330
[ "MIT" ]
34
2020-10-13T04:29:50.000Z
2021-12-09T07:18:17.000Z
modules/transformer.py
cuhksz-nlp/SANER
ac30f441be615de5224411816935283eddfbe330
[ "MIT" ]
17
2020-10-15T03:05:32.000Z
2021-12-05T09:31:28.000Z
modules/transformer.py
cuhksz-nlp/SANER
ac30f441be615de5224411816935283eddfbe330
[ "MIT" ]
6
2020-12-21T09:08:43.000Z
2021-11-27T00:13:44.000Z
import torch import torch.nn.functional as F from torch import nn import math from copy import deepcopy from .relative_transformer import RelativeMultiHeadAttn import numpy as np class MultiHeadAttn(nn.Module): def __init__(self, d_model, n_head, dropout=0.1, scale=False): """ :param d_model...
36.329146
121
0.612629
37827fccbb773043f070fc671d1ea7e694f6e6a6
2,693
py
Python
code/OCTA-Net/options.py
Andres-c-Diaz/OCTA-Net-OCTA-Vessel-Segmentation-Network
2176600460d157e444e22e44b09eb7163c9bbe95
[ "Apache-2.0" ]
64
2020-10-15T12:56:45.000Z
2022-03-27T12:16:35.000Z
code/OCTA-Net/options.py
Andres-c-Diaz/OCTA-Net-OCTA-Vessel-Segmentation-Network
2176600460d157e444e22e44b09eb7163c9bbe95
[ "Apache-2.0" ]
13
2020-12-17T12:36:02.000Z
2022-03-12T13:21:48.000Z
code/OCTA-Net/options.py
Andres-c-Diaz/OCTA-Net-OCTA-Vessel-Segmentation-Network
2176600460d157e444e22e44b09eb7163c9bbe95
[ "Apache-2.0" ]
13
2020-12-18T01:11:58.000Z
2022-03-29T13:01:47.000Z
# -*- coding: utf-8 -*- import argparse parser = argparse.ArgumentParser() parser.add_argument("--gpu_id", type=str, default="0", help="device") parser.add_argument("--dataset", type=str, default="cria", choices=["rose", "cria", "drive"], help="dataset") # choices可扩展 parser.add_argument("--mode", type=str, default=...
65.682927
154
0.745637
3538ec6a93670fbfe6cbc19782b5156bdd6ca9fd
4,974
py
Python
src/bindings/python/src/openvino/runtime/utils/tensor_iterator_types.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
1
2019-09-22T01:05:07.000Z
2019-09-22T01:05:07.000Z
src/bindings/python/src/openvino/runtime/utils/tensor_iterator_types.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
58
2020-11-06T12:13:45.000Z
2022-03-28T13:20:11.000Z
src/bindings/python/src/openvino/runtime/utils/tensor_iterator_types.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
2
2021-07-14T07:40:50.000Z
2021-07-27T01:40:03.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """Helper classes for aggregating TensorIterator input/output desciptor attributes.""" from typing import List from openvino.runtime import Node from openvino.runtime.op import Parameter class GraphBody(object): """Class containi...
32.090323
98
0.655006
ed130fb67cad6a4eabf082f283ff8836af28938c
1,515
py
Python
plugins/dm/waste.py
ilhamshff/development-tele-pdf
a969d6c9bc789b7ca56d64e21430e5f0296345dd
[ "Apache-2.0" ]
null
null
null
plugins/dm/waste.py
ilhamshff/development-tele-pdf
a969d6c9bc789b7ca56d64e21430e5f0296345dd
[ "Apache-2.0" ]
null
null
null
plugins/dm/waste.py
ilhamshff/development-tele-pdf
a969d6c9bc789b7ca56d64e21430e5f0296345dd
[ "Apache-2.0" ]
null
null
null
''' █ █▄ █ █▄█ ▄▀▄ █▄ ▄█ ██▀ █▀▄ █▀▄ █▀ █ █ ▀█ █ █ █▀█ █ ▀ █ █▄▄ █▀ █▄▀ █▀ Dev : IlhamGUD ''' from pyrogram import filters from Configs.dm import Config from pyrogram import Client as InHamePDF from pyrogram.types import InlineKeyboardButton from pyrogram.types import InlineKey...
22.279412
117
0.512211
4af13b898dd10f4079ab08eb1cbd6203ea457558
1,375
py
Python
Calculator/StatisticalCalculator.py
jerilj/stats_calculator
d24987631b7b880b45091639386de77d8e97cde7
[ "MIT" ]
null
null
null
Calculator/StatisticalCalculator.py
jerilj/stats_calculator
d24987631b7b880b45091639386de77d8e97cde7
[ "MIT" ]
6
2020-11-07T20:40:34.000Z
2020-11-08T18:45:00.000Z
Calculator/StatisticalCalculator.py
jerilj/stats_calculator
d24987631b7b880b45091639386de77d8e97cde7
[ "MIT" ]
null
null
null
# coding: utf-8 # import function to read csv file from FileReader import readCSV # import math library import math # get numbers from dataset dataSet = readCSV('csv/test.csv') ################################################################################# choice = '' print('Select operation!') print('1.Populat...
34.375
89
0.68
9b6d5c49b16a42bbcc7572ad066a73704c0fbb6a
10,697
py
Python
pynamodb/connection/table.py
sodre/PynamoDB
12d8fd23025c4b6a1f4ec2a98b14d2f8277e1782
[ "MIT" ]
null
null
null
pynamodb/connection/table.py
sodre/PynamoDB
12d8fd23025c4b6a1f4ec2a98b14d2f8277e1782
[ "MIT" ]
null
null
null
pynamodb/connection/table.py
sodre/PynamoDB
12d8fd23025c4b6a1f4ec2a98b14d2f8277e1782
[ "MIT" ]
null
null
null
""" PynamoDB Connection classes ~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ from pynamodb.connection.base import Connection from pynamodb.constants import DEFAULT_BILLING_MODE, KEY class TableConnection(object): """ A higher level abstraction over botocore """ def __init__(self, table_name, ...
37.533333
112
0.577171
d277781a0120f62f032179bc42d4e1fd55cc1d3c
775
py
Python
dennis2/src/sample_loader.py
DarkElement75/dennis
411153b374c48a1e268dd0adffc5d9e5dc84c2c8
[ "MIT" ]
2
2016-08-09T21:29:46.000Z
2016-09-17T23:42:06.000Z
dennis2/src/sample_loader.py
DarkElement75/dennis
411153b374c48a1e268dd0adffc5d9e5dc84c2c8
[ "MIT" ]
null
null
null
dennis2/src/sample_loader.py
DarkElement75/dennis
411153b374c48a1e268dd0adffc5d9e5dc84c2c8
[ "MIT" ]
null
null
null
import cPickle, gzip import pickle import theano import theano.tensor as T import numpy as np def load_data_shared(filename="../data/samples.pkl.gz"): f = gzip.open(filename, 'rb') training_data, validation_data, test_data = cPickle.load(f) f.close() def shared(data): """Place the data into s...
32.291667
78
0.668387
d7bf009701d0ca3241704e0f1391b43b7807529d
1,616
py
Python
homeassistant/components/android_ip_webcam/binary_sensor.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
2
2019-10-19T15:07:32.000Z
2022-01-29T10:33:20.000Z
homeassistant/components/android_ip_webcam/binary_sensor.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
4
2021-02-08T21:05:14.000Z
2021-09-08T02:57:03.000Z
homeassistant/components/android_ip_webcam/binary_sensor.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
2
2019-01-21T05:49:23.000Z
2019-02-19T16:30:48.000Z
"""Support for Android IP Webcam binary sensors.""" from homeassistant.components.binary_sensor import BinarySensorDevice from . import CONF_HOST, CONF_NAME, DATA_IP_WEBCAM, KEY_MAP, AndroidIPCamEntity async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): """Set up the IP Webcam ...
31.686275
88
0.673267
a456c8551b0c738be794d01626c9e6e699b9bbd1
3,501
py
Python
api_tests/nodes/views/test_node_citations.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
api_tests/nodes/views/test_node_citations.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
5
2017-09-14T18:04:12.000Z
2017-10-03T17:43:55.000Z
api_tests/nodes/views/test_node_citations.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
1
2019-07-16T00:14:49.000Z
2019-07-16T00:14:49.000Z
import pytest from api.base.settings.defaults import API_BASE from framework.auth.core import Auth from rest_framework import exceptions from osf_tests.factories import ( ProjectFactory, AuthUserFactory, ) @pytest.fixture() def admin_contributor(): return AuthUserFactory() @pytest.fixture() def write_con...
36.46875
125
0.742931
76ca233c18ce52bc8d63a804b7c7b80f55b1f42a
2,696
py
Python
core/settings.py
andripurba28/DjangoMusic
c6419b5179c48d596e7d841dcb23bcbb694b4686
[ "MIT" ]
12
2018-02-08T13:29:54.000Z
2020-11-03T14:01:23.000Z
core/settings.py
andripurba28/DjangoMusic
c6419b5179c48d596e7d841dcb23bcbb694b4686
[ "MIT" ]
null
null
null
core/settings.py
andripurba28/DjangoMusic
c6419b5179c48d596e7d841dcb23bcbb694b4686
[ "MIT" ]
11
2018-10-29T03:45:48.000Z
2021-12-29T14:22:24.000Z
""" Django settings for website project. Generated by 'django-admin startproject' using Django 1.8. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths ...
25.923077
71
0.701409
1ce4aa40c34ec150e6f587a031baebc266084190
362
py
Python
app/recipe/urls.py
Islam1Samir/recipe-app-api
8b6765ead005194ad1fdedb33373273d102f78aa
[ "MIT" ]
null
null
null
app/recipe/urls.py
Islam1Samir/recipe-app-api
8b6765ead005194ad1fdedb33373273d102f78aa
[ "MIT" ]
null
null
null
app/recipe/urls.py
Islam1Samir/recipe-app-api
8b6765ead005194ad1fdedb33373273d102f78aa
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from recipe import views router = DefaultRouter() router.register('tags', views.TagViewSet) router.register('ingredients', views.IngredientViewSet) router.register('recipes', views.RecipeViewSet) app_name = 'recipe' urlpattern...
20.111111
55
0.773481
aa4a2b9c139223b4b07b7ada757f806497687b41
15,803
py
Python
pymatgen/io/tests/test_gaussian.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
1
2021-11-02T21:10:11.000Z
2021-11-02T21:10:11.000Z
pymatgen/io/tests/test_gaussian.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
5
2018-08-07T23:00:23.000Z
2021-01-05T22:46:23.000Z
pymatgen/io/tests/test_gaussian.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
6
2019-04-26T18:50:41.000Z
2020-03-29T17:58:34.000Z
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest from pymatgen.core.structure import Molecule from pymatgen.electronic_structure.core import Spin from pymatgen.io.gaussian import GaussianInput, GaussianOutput from pymatgen.util.testing import Pymat...
34.579869
99
0.566854
d5462bc6246413ebeb18279884ba8779c8fff645
63,032
py
Python
mathics/builtin/files_io/filesystem.py
tirkarthi/mathics-core
6b07500b935f23dc332f4ec3fac1d71ac4c8fc04
[ "Apache-2.0" ]
null
null
null
mathics/builtin/files_io/filesystem.py
tirkarthi/mathics-core
6b07500b935f23dc332f4ec3fac1d71ac4c8fc04
[ "Apache-2.0" ]
null
null
null
mathics/builtin/files_io/filesystem.py
tirkarthi/mathics-core
6b07500b935f23dc332f4ec3fac1d71ac4c8fc04
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Filesystem Operations """ import os import os.path as osp import pathlib import re import shutil import tempfile import time from mathics.builtin.base import Builtin, MessageException, Predefined from mathics.builtin.files_io.files import INITIAL_DIR # noqa is used via global from mathic...
28.444043
200
0.564094
7227384b7bb7bb6f81d503359a85e3bce15a5142
4,711
py
Python
zonal_stats_by_raster.py
therealspring/raster_zonal_stats
e8a2ba0f30734b196060d0ee0b9629dfa23be405
[ "MIT" ]
null
null
null
zonal_stats_by_raster.py
therealspring/raster_zonal_stats
e8a2ba0f30734b196060d0ee0b9629dfa23be405
[ "MIT" ]
null
null
null
zonal_stats_by_raster.py
therealspring/raster_zonal_stats
e8a2ba0f30734b196060d0ee0b9629dfa23be405
[ "MIT" ]
null
null
null
"""Calculate stats per landcover code type.""" import argparse import datetime import glob import os import logging import shutil import sys import tempfile from osgeo import gdal import pygeoprocessing import numpy # set a 1GB limit for the cache gdal.SetCacheMax(2**30) logging.basicConfig( level=logging.DEBUG...
38.933884
79
0.660157
56ec88022881391bce36031cb862ca44499f8222
290
py
Python
atest/testdata/parsing/escaping_variables.py
rdagum/robotframework
b7069d505374e9f09a140ed5a9727d2a40716446
[ "ECL-2.0", "Apache-2.0" ]
7,073
2015-01-01T17:19:16.000Z
2022-03-31T22:01:29.000Z
atest/testdata/parsing/escaping_variables.py
imust6226/robotframework
08c56fef2ebc64d682c7f99acd77c480d8d0e028
[ "ECL-2.0", "Apache-2.0" ]
2,412
2015-01-02T09:29:05.000Z
2022-03-31T13:10:46.000Z
atest/testdata/parsing/escaping_variables.py
3mdeb/robotframework
6006ce0b3d5fc6b45c5eb040dc859acd64bfa846
[ "ECL-2.0", "Apache-2.0" ]
2,298
2015-01-03T02:47:15.000Z
2022-03-31T02:00:16.000Z
sp = ' ' hash = '#' bs = '\\' tab = '\t' nl = '\n' cr = '\r' x00 = '\x00' xE4 = '\xE4' xFF = '\xFF' u2603 = '\u2603' # SNOWMAN uFFFF = '\uFFFF' U00010905 = '\U00010905' # PHOENICIAN LETTER WAU U0010FFFF = '\U0010FFFF' # Biggest valid Unicode character var = '${non_existing}' pipe = '|'
18.125
59
0.568966
9bc7cf0c306f05b032286961dbbb0f28d59e0d32
39,514
py
Python
futureWork/bertConstitution/pybert/model/albert/modeling_utils.py
multimedia-application-course/HeyConstitution
c8a12e38bc48bf8b7d816508b24e428c251f3bad
[ "MIT" ]
1
2021-01-28T08:16:15.000Z
2021-01-28T08:16:15.000Z
futureWork/bertConstitution/pybert/model/albert/modeling_utils.py
multimedia-application-course/HeyConstitution
c8a12e38bc48bf8b7d816508b24e428c251f3bad
[ "MIT" ]
null
null
null
futureWork/bertConstitution/pybert/model/albert/modeling_utils.py
multimedia-application-course/HeyConstitution
c8a12e38bc48bf8b7d816508b24e428c251f3bad
[ "MIT" ]
1
2021-05-10T09:50:12.000Z
2021-05-10T09:50:12.000Z
"""PyTorch BERT model.""" from __future__ import (absolute_import, division, print_function, unicode_literals) import logging import os import torch from torch import nn from torch.nn import CrossEntropyLoss from torch.nn import functional as F from .configuration_utils import PretrainedConf...
52.267196
480
0.654401
f7f22b903387f3193bbbfcca5036f317d4d6b1af
11,862
py
Python
golosbase/account.py
golos-blockchain/golos-python
1d88bdad700a5196175605ae6b6a61415bb0c29f
[ "MIT" ]
2
2020-11-04T12:54:07.000Z
2021-04-25T16:27:06.000Z
golosbase/account.py
golos-blockchain/golos-python
1d88bdad700a5196175605ae6b6a61415bb0c29f
[ "MIT" ]
null
null
null
golosbase/account.py
golos-blockchain/golos-python
1d88bdad700a5196175605ae6b6a61415bb0c29f
[ "MIT" ]
1
2021-04-25T16:27:12.000Z
2021-04-25T16:27:12.000Z
import hashlib import os import re from binascii import hexlify, unhexlify import ecdsa from golosbase.base58 import Base58, ripemd160 from golosbase.dictionary import words as BrainKeyDictionary class PasswordKey(object): """ This class derives a private key given the account name, the role and a password....
34.785924
117
0.628309
b9ac5fdc2471bf099a7d6462bc960b4832a1541b
6,788
py
Python
openmdao/utils/mpi.py
naylor-b/blue
d7d7e8d63212c047a7a9b0625da98aa29ddc39b4
[ "Apache-2.0" ]
null
null
null
openmdao/utils/mpi.py
naylor-b/blue
d7d7e8d63212c047a7a9b0625da98aa29ddc39b4
[ "Apache-2.0" ]
null
null
null
openmdao/utils/mpi.py
naylor-b/blue
d7d7e8d63212c047a7a9b0625da98aa29ddc39b4
[ "Apache-2.0" ]
null
null
null
"""A bunch of MPI utilities.""" from contextlib import contextmanager import io import os import sys import traceback import unittest from six import PY3 from openmdao.core.analysis_error import AnalysisError def _redirect_streams(to_fd): """ Redirect stdout/stderr to the given file descriptor. Based ...
28.885106
92
0.582057