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
4b0150ee290b442cd65c440717a7b6965f923dc2
9,823
py
Python
gen_config.py
dfresh613/couchbase-python-client
c77af56490ed4c6d364fcf8fc1a374570de0239b
[ "Apache-2.0" ]
null
null
null
gen_config.py
dfresh613/couchbase-python-client
c77af56490ed4c6d364fcf8fc1a374570de0239b
[ "Apache-2.0" ]
null
null
null
gen_config.py
dfresh613/couchbase-python-client
c77af56490ed4c6d364fcf8fc1a374570de0239b
[ "Apache-2.0" ]
null
null
null
import abc import logging import warnings import pathlib import os from abc import abstractmethod from enum import IntEnum import json import sys import ssl import platform import posixpath from enum import Enum import argparse import urllib.request import datetime import time import traceback curdir = pathlib.Path(_...
35.72
174
0.634837
aa123ec8701bca8093bfe1a533ac7750eb85714b
8,986
py
Python
test/offline/test_gail.py
BFAnas/tianshou
6e86a0bed7d1117c5ad6a421b483b45a6adfe336
[ "MIT" ]
null
null
null
test/offline/test_gail.py
BFAnas/tianshou
6e86a0bed7d1117c5ad6a421b483b45a6adfe336
[ "MIT" ]
null
null
null
test/offline/test_gail.py
BFAnas/tianshou
6e86a0bed7d1117c5ad6a421b483b45a6adfe336
[ "MIT" ]
null
null
null
import argparse import os import pickle import pprint import gym import numpy as np import torch from torch.distributions import Independent, Normal from torch.utils.tensorboard import SummaryWriter from tianshou.data import Collector, VectorReplayBuffer from tianshou.env import DummyVectorEnv from tianshou.policy im...
38.566524
87
0.671044
f68929ad3b36d5a0bf145a93b30172f0422dc9f9
1,996
py
Python
python/paddle/fluid/tests/unittests/collective_scatter_api.py
Huangheyl/Paddle
a1b640bc66a5cc9583de503e7406aeba67565e8d
[ "Apache-2.0" ]
8
2019-06-16T12:36:11.000Z
2021-03-05T05:33:21.000Z
python/paddle/fluid/tests/unittests/collective_scatter_api.py
zlsh80826/Paddle
c560a7d57aad990f374ebadd330351f18e2ca65f
[ "Apache-2.0" ]
1
2020-09-10T09:05:52.000Z
2020-09-10T09:06:22.000Z
python/paddle/fluid/tests/unittests/collective_scatter_api.py
zlsh80826/Paddle
c560a7d57aad990f374ebadd330351f18e2ca65f
[ "Apache-2.0" ]
25
2019-12-07T02:14:14.000Z
2021-12-30T06:16:30.000Z
# Copyright (c) 2020 PaddlePaddle 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 appli...
32.721311
78
0.720441
34448367c8aff0711f459de7cc6564e7ce8a3d16
1,219
py
Python
nycrecords_flask/public/forms.py
joelbcastillo/nycrecords_flask
0ee139a632db9a7e1b35875d0dbd05a7dd11f4fa
[ "MIT" ]
null
null
null
nycrecords_flask/public/forms.py
joelbcastillo/nycrecords_flask
0ee139a632db9a7e1b35875d0dbd05a7dd11f4fa
[ "MIT" ]
2
2019-04-13T00:09:11.000Z
2019-04-13T00:09:13.000Z
nycrecords_flask/public/forms.py
joelbcastillo/nycrecords_flask
0ee139a632db9a7e1b35875d0dbd05a7dd11f4fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Public forms.""" from flask_wtf import FlaskForm from wtforms import PasswordField, StringField from wtforms.validators import DataRequired from nycrecords_flask.user.models import User class LoginForm(FlaskForm): """Login form.""" username = StringField("Username", validators=[Da...
30.475
77
0.645611
23d7c308453406890a1db74979d4ac568352f093
7,556
py
Python
tensorflow/compiler/plugin/poplar/tests/casts_elimination_test.py
chenzhengda/tensorflow
8debb698097670458b5f21d728bc6f734a7b5a53
[ "Apache-2.0" ]
74
2020-07-06T17:11:39.000Z
2022-01-28T06:31:28.000Z
tensorflow/compiler/plugin/poplar/tests/casts_elimination_test.py
chenzhengda/tensorflow
8debb698097670458b5f21d728bc6f734a7b5a53
[ "Apache-2.0" ]
9
2020-10-13T23:25:29.000Z
2022-02-10T06:54:48.000Z
tensorflow/compiler/plugin/poplar/tests/casts_elimination_test.py
chenzhengda/tensorflow
8debb698097670458b5f21d728bc6f734a7b5a53
[ "Apache-2.0" ]
12
2020-07-08T07:27:17.000Z
2021-12-27T08:54:27.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.883408
80
0.663579
a798e3c3b06f1c0042644c481274a0c2777ebe13
20,612
py
Python
omni_diff_rl/scripts/TD3-master/real_env.py
CHH3213/two_loggers
11b2016e424753aac85404e6a48f3b15b2448734
[ "MIT" ]
null
null
null
omni_diff_rl/scripts/TD3-master/real_env.py
CHH3213/two_loggers
11b2016e424753aac85404e6a48f3b15b2448734
[ "MIT" ]
null
null
null
omni_diff_rl/scripts/TD3-master/real_env.py
CHH3213/two_loggers
11b2016e424753aac85404e6a48f3b15b2448734
[ "MIT" ]
null
null
null
# encoding: utf-8 #!/usr/bin/env python """ Doubld escape environment with discrete action space """ from __future__ import absolute_import, division, print_function from gym import spaces, core from gym import spaces from gym.envs.registration import EnvSpec import sys import os import math import numpy as np from nu...
39.260952
138
0.566854
67ce3117335de3265c1cd921d9246800c228cd54
13,568
py
Python
shap/explainers/deep/deep_pytorch.py
YONGHAN-KIM/shap
4c76cdb0a5ba2e5769a1d35c22eef117dd65e924
[ "MIT" ]
1
2019-05-22T02:48:13.000Z
2019-05-22T02:48:13.000Z
shap/explainers/deep/deep_pytorch.py
YONGHAN-KIM/shap
4c76cdb0a5ba2e5769a1d35c22eef117dd65e924
[ "MIT" ]
null
null
null
shap/explainers/deep/deep_pytorch.py
YONGHAN-KIM/shap
4c76cdb0a5ba2e5769a1d35c22eef117dd65e924
[ "MIT" ]
1
2018-12-21T16:11:00.000Z
2018-12-21T16:11:00.000Z
import numpy as np import warnings from shap.explainers.explainer import Explainer from distutils.version import LooseVersion torch = None class PyTorchDeepExplainer(Explainer): def __init__(self, model, data): # try and import pytorch global torch if torch is None: import tor...
40.261128
119
0.585938
3b832e24a31f28f2b2bcec5ab6db5263befc1a32
466
py
Python
OpenSeesAPI/Analysis/__init__.py
alok230460/Open
ccd7c43c82c13bc87e6c208302f7448060b856ba
[ "MIT", "Unlicense" ]
41
2015-09-08T09:41:13.000Z
2022-03-26T08:40:02.000Z
OpenSeesAPI/Analysis/__init__.py
alok230460/Open
ccd7c43c82c13bc87e6c208302f7448060b856ba
[ "MIT", "Unlicense" ]
4
2015-09-11T17:20:46.000Z
2016-05-02T20:42:58.000Z
OpenSeesAPI/Analysis/__init__.py
alok230460/Open
ccd7c43c82c13bc87e6c208302f7448060b856ba
[ "MIT", "Unlicense" ]
31
2015-09-11T17:01:36.000Z
2021-11-08T17:48:27.000Z
__author__ = 'Nasser' # Import Folder with Several Classes from OpenSeesAPI.Analysis import Algorithm from OpenSeesAPI.Analysis import Analysis from OpenSeesAPI.Analysis import Analyze from OpenSeesAPI.Analysis import Constraints from OpenSeesAPI.Analysis import Integrator from OpenSeesAPI.Analysis import Numberer fro...
31.066667
44
0.856223
db0e979272b12cfcfe0c1d6ad9676e51616150ff
349
py
Python
toolkit/routes/templates/lib.py
salonimalhotra-ui/seo-audits-toolkit
99af8b53dffad45f679eaf06b4a8080df75fcd72
[ "MIT" ]
1
2020-12-21T18:21:34.000Z
2020-12-21T18:21:34.000Z
toolkit/routes/templates/lib.py
x0rzkov/seo-audits-toolkit
29994cbab51bd0697c717b675df3c176096e4f03
[ "MIT" ]
null
null
null
toolkit/routes/templates/lib.py
x0rzkov/seo-audits-toolkit
29994cbab51bd0697c717b675df3c176096e4f03
[ "MIT" ]
null
null
null
from flask import current_app as app from datetime import datetime @app.template_filter('formatdatetime') def format_datetime(value, format="%d %b %Y %I:%M %p"): """Format a date time to (Default): d Mon YYYY HH:MM P""" if value is None: return "" if isinstance(value, str): return value ...
31.727273
61
0.676218
825a0f9d9e69ca9b0478674e9e5a6275644b13fc
1,148
py
Python
src/zsl/application/modules/logger_module.py
AtteqCom/zsl
0d418ef957c9780263b1031dbc59482cd974bc04
[ "MIT" ]
2
2017-05-17T08:08:52.000Z
2019-03-25T00:24:51.000Z
src/zsl/application/modules/logger_module.py
AtteqCom/zsl
0d418ef957c9780263b1031dbc59482cd974bc04
[ "MIT" ]
100
2017-01-11T13:43:11.000Z
2022-02-10T09:27:18.000Z
src/zsl/application/modules/logger_module.py
AtteqCom/zsl
0d418ef957c9780263b1031dbc59482cd974bc04
[ "MIT" ]
1
2017-05-10T10:27:01.000Z
2017-05-10T10:27:01.000Z
""" :mod:`zsl.application.modules.logger_module` -------------------------------------------- """ from __future__ import unicode_literals import logging.config from injector import Binder, Module from zsl import Config, Zsl, inject class LoggerModule(Module): """Configure the application logger.""" LOGGIN...
28
95
0.629791
a65a9c5af8456d362ca1a18da4440eb522006b49
4,034
py
Python
tests/io_utils_test.py
angelolab/mibi-bin-tools
369f62dfb64af41966d25ca188e96dce676f5e38
[ "Apache-2.0" ]
null
null
null
tests/io_utils_test.py
angelolab/mibi-bin-tools
369f62dfb64af41966d25ca188e96dce676f5e38
[ "Apache-2.0" ]
18
2021-11-23T14:39:27.000Z
2022-03-08T23:52:27.000Z
tests/io_utils_test.py
angelolab/mibi-bin-tools
369f62dfb64af41966d25ca188e96dce676f5e38
[ "Apache-2.0" ]
1
2021-11-21T11:20:36.000Z
2021-11-21T11:20:36.000Z
import os import tempfile import pathlib import pytest from mibi_bin_tools import io_utils as iou def test_list_files(): # test extension matching with tempfile.TemporaryDirectory() as temp_dir: # set up temp_dir files filenames = [ 'tf.txt', 'othertf.txt', ...
31.030769
94
0.619732
d73fec548dd141572c64dd01d3a8193f314ba845
6,297
py
Python
oldclient/models.py
dativebase/oldclient
ac15e0a2d8a84954f40a75ffd86a1aff76af64d5
[ "Apache-2.0" ]
null
null
null
oldclient/models.py
dativebase/oldclient
ac15e0a2d8a84954f40a75ffd86a1aff76af64d5
[ "Apache-2.0" ]
null
null
null
oldclient/models.py
dativebase/oldclient
ac15e0a2d8a84954f40a75ffd86a1aff76af64d5
[ "Apache-2.0" ]
null
null
null
APPLICATION_SETTINGS = { 'object_language_name': u'', 'object_language_id': u'', 'metalanguage_name': u'', 'metalanguage_id': u'', 'metalanguage_inventory': u'', 'orthographic_validation': u'None', # Value should be one of [u'None', u'Warning', u'Error'] 'narrow_phonetic_inventory': u'', ...
21.639175
97
0.522471
56fdf3d490b9eff1f65f1ab36bf1cf5cc01f68fb
19,654
py
Python
mmpose/models/heads/interhand_3d_head.py
SummerVideoAnalysis/mmpose
70d60e03b7eaa0ae1ec66cc7a22c00916f00c9e1
[ "Apache-2.0" ]
38
2021-06-01T01:31:36.000Z
2022-03-23T14:42:20.000Z
mmpose/models/heads/interhand_3d_head.py
connor-john/mmpose
f5eabbf33ba514a1ddaf914e835d6abc7accee39
[ "Apache-2.0" ]
5
2021-07-26T15:43:16.000Z
2021-10-31T07:34:50.000Z
mmpose/models/heads/interhand_3d_head.py
connor-john/mmpose
f5eabbf33ba514a1ddaf914e835d6abc7accee39
[ "Apache-2.0" ]
8
2021-06-22T09:49:23.000Z
2022-02-14T03:45:18.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import (build_conv_layer, build_norm_layer, build_upsample_layer, constant_init, normal_init) from mmpose.core.evaluation.top_down_eval import ( keypoints_from_heatmaps3d, multilabel_classifica...
37.796154
79
0.578254
a192133bb754497c69a441f4900c60afb9bd0a81
2,855
py
Python
src/scenic/simulators/carla/actions.py
BehaviorPredictionTestingPlatform/scenic-1
a2e0d08d8dd0be06aaf0071058ba337209361328
[ "BSD-3-Clause" ]
1
2020-12-02T08:40:23.000Z
2020-12-02T08:40:23.000Z
src/scenic/simulators/carla/actions.py
BehaviorPredictionTestingPlatform/scenic-1
a2e0d08d8dd0be06aaf0071058ba337209361328
[ "BSD-3-Clause" ]
null
null
null
src/scenic/simulators/carla/actions.py
BehaviorPredictionTestingPlatform/scenic-1
a2e0d08d8dd0be06aaf0071058ba337209361328
[ "BSD-3-Clause" ]
4
2021-08-09T18:21:26.000Z
2022-03-22T22:20:02.000Z
import math as _math import carla as _carla from scenic.domains.driving.actions import * import scenic.simulators.carla.utils.utils as _utils import scenic.simulators.carla.model as _carlaModel ################################################ # Actions available to all carla.Actor objects # #########################...
29.739583
72
0.691769
e5d2e848de20341f0d6efd660a72194e3b55ad9f
551
py
Python
1-pack_web_static.py
devephy/AirBnB_clone_v2
b9f0ba65d76f730c0b2ef98b10764424af426570
[ "Apache-2.0" ]
null
null
null
1-pack_web_static.py
devephy/AirBnB_clone_v2
b9f0ba65d76f730c0b2ef98b10764424af426570
[ "Apache-2.0" ]
null
null
null
1-pack_web_static.py
devephy/AirBnB_clone_v2
b9f0ba65d76f730c0b2ef98b10764424af426570
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 '''Fabric script to generate .tgz archive''' from fabric.api import local from datetime import datetime from fabric.decorators import runs_once @runs_once def do_pack(): '''generates .tgz archive from the contents of the web_static folder''' local("mkdir -p versions") path = ("version...
25.045455
75
0.653358
ce61f2a54b9ffc84cbbeef47b59ec06a011ba961
6,211
py
Python
contrib/zmq/zmq_sub3.4.py
zentoshi/zentoshi
99ef65d56ac5d702556f2b718298c34f07168498
[ "MIT" ]
4
2019-12-08T19:54:02.000Z
2020-02-04T20:11:14.000Z
contrib/zmq/zmq_sub3.4.py
zentoshi/zentoshi
99ef65d56ac5d702556f2b718298c34f07168498
[ "MIT" ]
1
2019-11-10T14:06:54.000Z
2019-11-10T14:06:54.000Z
contrib/zmq/zmq_sub3.4.py
zentoshi/zentoshi
99ef65d56ac5d702556f2b718298c34f07168498
[ "MIT" ]
13
2019-11-09T17:09:35.000Z
2021-12-21T07:07:23.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ ZMQ example using python3's asyncio ZenX should be started with the command line arguments: ...
45.007246
107
0.6379
04d599d9d3ee8bb47cbde96c3efed7d13109ebc8
2,957
py
Python
gent/objects/textBox.py
flywinged/TGL
a567ae717e7f9390eb9a5ce3383e5b796389af05
[ "MIT" ]
1
2020-06-19T18:59:02.000Z
2020-06-19T18:59:02.000Z
gent/objects/textBox.py
flywinged/TGL
a567ae717e7f9390eb9a5ce3383e5b796389af05
[ "MIT" ]
16
2020-06-17T22:26:18.000Z
2020-07-28T21:39:10.000Z
gent/objects/textBox.py
flywinged/TGL
a567ae717e7f9390eb9a5ce3383e5b796389af05
[ "MIT" ]
null
null
null
# Copyright Clayton Brown 2019. See LICENSE file. from ..internal import GameObject, Box from ..utilities import recursiveSplit from .textLine import TextLine from typing import List from dataclasses import dataclass @dataclass class TextLineData: ''' Handles the meta information necessary fo...
32.494505
162
0.607711
244a9437bcf6b14bf46f4906632237e5cd0c7d44
4,216
py
Python
gen_SIP.py
thegreatunclean/bloodstained-castle-graph
66301cb3f8103fa36955000700b1eb0d61fd275d
[ "MIT" ]
null
null
null
gen_SIP.py
thegreatunclean/bloodstained-castle-graph
66301cb3f8103fa36955000700b1eb0d61fd275d
[ "MIT" ]
null
null
null
gen_SIP.py
thegreatunclean/bloodstained-castle-graph
66301cb3f8103fa36955000700b1eb0d61fd275d
[ "MIT" ]
null
null
null
def generate_Galleon_Minerva(g): count = g.number_of_nodes() #Galleon Minerva g.add_bi_path(['SIP000_Tutorial','SIP000','SIP001','SIP002','SIP003','SIP005','SIP006','SIP008']) g.add_bi_path(['SIP008-1','SIP009','SIP010','SIP011','SIP012','SIP013','SIP014','SIP015','SIP016','SIP017','SIP018','SIP019','SIP020','V...
47.370787
145
0.625
94c2788fa2959ca57a295cf1003e5bba06629db8
3,530
py
Python
benchmark/compare/Mesa/Flocking/boid.py
Corvince/Agents.jl
6276084756287bd0a7b1e0dc9fcf5638f9840c73
[ "MIT" ]
null
null
null
benchmark/compare/Mesa/Flocking/boid.py
Corvince/Agents.jl
6276084756287bd0a7b1e0dc9fcf5638f9840c73
[ "MIT" ]
null
null
null
benchmark/compare/Mesa/Flocking/boid.py
Corvince/Agents.jl
6276084756287bd0a7b1e0dc9fcf5638f9840c73
[ "MIT" ]
null
null
null
import numpy as np from mesa import Agent class Boid(Agent): """ A Boid-style flocker agent. The agent follows three behaviors to flock: - Cohesion: steering towards neighboring agents. - Separation: avoiding getting too close to any other agent. - Alignment: try to fly in the sa...
32.990654
80
0.607082
c8feb8ad63b5b5de935f1234dda9bea2a69784c4
6,072
py
Python
drawing/drawer/mesh/group/outline.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
drawing/drawer/mesh/group/outline.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
drawing/drawer/mesh/group/outline.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
""" Module for outline of mesh group drawer """ import logging from typing import Dict, List, Optional, Tuple from bmesh.types import BMEdge, BMesh, BMVert from model import CartographyCategory, CartographyGroup, CartographyPoint, CartographyRoom from utils.blender import bmesh as bmesh_utils from utils.collection i...
42.760563
112
0.63307
15316da6dcb46dfb69a6992f854780dd113c431b
18,188
py
Python
cartography/intel/github/repos.py
Relys/cartography
0f71b3f0246665d5fa065afa2e3dc46c22d6c689
[ "Apache-2.0" ]
1
2021-03-26T12:00:26.000Z
2021-03-26T12:00:26.000Z
cartography/intel/github/repos.py
srics/cartography
19a06766e304d657d956246179a2bb01a6d9aef6
[ "Apache-2.0" ]
1
2021-02-23T18:08:04.000Z
2021-03-31T08:17:23.000Z
cartography/intel/github/repos.py
srics/cartography
19a06766e304d657d956246179a2bb01a6d9aef6
[ "Apache-2.0" ]
1
2021-03-31T17:55:31.000Z
2021-03-31T17:55:31.000Z
import logging from string import Template from packaging.requirements import InvalidRequirement from packaging.requirements import Requirement from packaging.utils import canonicalize_name from cartography.intel.github.util import fetch_all from cartography.util import run_cleanup_job from cartography.util import ti...
38.371308
120
0.637453
95fbe0ea61b8aee02b1682cab7eea850dd5ad29b
11,803
py
Python
Python27/Lib/test/test_sysconfig.py
xuyue1998/Json2Lua_Tools
539c4e52cb8ac1257f660bf902d964e1a476257c
[ "MIT" ]
66
2015-01-17T23:13:44.000Z
2018-04-20T21:44:35.000Z
Python27/Lib/test/test_sysconfig.py
xuyue1998/Json2Lua_Tools
539c4e52cb8ac1257f660bf902d964e1a476257c
[ "MIT" ]
20
2015-04-20T12:09:12.000Z
2022-03-12T01:25:04.000Z
Python27/Lib/test/test_sysconfig.py
xuyue1998/Json2Lua_Tools
539c4e52cb8ac1257f660bf902d964e1a476257c
[ "MIT" ]
24
2015-07-22T08:08:54.000Z
2021-12-28T06:56:09.000Z
"""Tests for 'site'. Tests assume the initial paths in sys.path once the interpreter has begun executing have not been removed. """ import unittest import sys import os import shutil import subprocess from copy import copy, deepcopy from test.test_support import run_unittest, TESTFN, unlink, get_attribute import sy...
37.233438
97
0.546895
d4d86e28e8bd5f81ee612d3941b6bab52f203b43
3,027
py
Python
ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/ZOOKEEPER/package/scripts/zookeeper.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
25
2019-12-04T03:09:55.000Z
2022-03-08T10:52:06.000Z
ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/ZOOKEEPER/package/scripts/zookeeper.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
29
2019-12-04T03:00:39.000Z
2022-03-02T06:25:44.000Z
ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/ZOOKEEPER/package/scripts/zookeeper.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
33
2019-12-04T02:51:30.000Z
2022-03-24T02:47:38.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 use this ...
27.27027
93
0.68814
a7ae20e633d4de6682cc5f619088bd79c50d15dc
7,696
py
Python
test/functional/test_framework/test_node.py
SinduNagalingam/Runway
f1c7f6295f03b89358529c18d19c9443d4afb574
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
SinduNagalingam/Runway
f1c7f6295f03b89358529c18d19c9443d4afb574
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
SinduNagalingam/Runway
f1c7f6295f03b89358529c18d19c9443d4afb574
[ "MIT" ]
1
2018-10-08T07:13:43.000Z
2018-10-08T07:13:43.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Class for runwaycoind node under test""" import decimal import errno import http.client import json import ...
40.293194
248
0.641502
6f24f58d5e87916ed6ab6e723a8ee3b9f0859241
21,505
py
Python
coreemu-read-only/daemon/core/services/utility.py
ermin-sakic/Common-Open-Research-Emulator-CORE-
9c246b0ae0e9182dcf61acc4faee41841d5cbd51
[ "BSD-3-Clause" ]
3
2016-05-19T09:46:30.000Z
2021-01-31T16:41:06.000Z
coreemu-read-only/daemon/core/services/utility.py
ermin-sakic/Common-Open-Research-Emulator-CORE-
9c246b0ae0e9182dcf61acc4faee41841d5cbd51
[ "BSD-3-Clause" ]
null
null
null
coreemu-read-only/daemon/core/services/utility.py
ermin-sakic/Common-Open-Research-Emulator-CORE-
9c246b0ae0e9182dcf61acc4faee41841d5cbd51
[ "BSD-3-Clause" ]
1
2018-09-02T09:37:14.000Z
2018-09-02T09:37:14.000Z
# # CORE # Copyright (c)2010-2014 the Boeing Company. # See the LICENSE file included in this distribution. # # author: Jeff Ahrenholz <jeffrey.m.ahrenholz@boeing.com> # ''' utility.py: defines miscellaneous utility services. ''' import os from core.service import CoreService, addservice from core.misc.ipaddr import...
29.785319
102
0.599163
8d61e420089ca748f5ec4826806792fc02c44fc7
703
py
Python
notes/bio/src/py/split-tabfile-by-column1.py
csiu/tokens
8a7f865d921d91aae4019e43677435ad78a8a703
[ "MIT" ]
null
null
null
notes/bio/src/py/split-tabfile-by-column1.py
csiu/tokens
8a7f865d921d91aae4019e43677435ad78a8a703
[ "MIT" ]
1
2015-04-20T03:28:48.000Z
2015-04-20T03:40:44.000Z
notes/bio/src/py/split-tabfile-by-column1.py
csiu/tokens
8a7f865d921d91aae4019e43677435ad78a8a703
[ "MIT" ]
null
null
null
# author: csiu # date: Monday Nov 2, 2015 import sys """ USAGE: python <this-script>.py INFILE Split file by chromosome - Assumes is tab separated - Assumes more than 1 columns - Assumes first column is sorted and is chromosome field - Assumes chromosomes are sorted """ original_file = sys.argv[1] with open(original...
20.676471
56
0.607397
d38264a656f30f2e4bb1f423fd65a2e88f32a00b
1,911
py
Python
Obsidian2Org/obsidian-to-org.py
AnweshGangula/PKMigrator
d6a070eb0453b31505e595191b724fb736c8438a
[ "MIT" ]
24
2021-10-02T11:52:08.000Z
2022-02-28T17:59:58.000Z
Obsidian2Org/obsidian-to-org.py
AnweshGangula/PKMigrator
d6a070eb0453b31505e595191b724fb736c8438a
[ "MIT" ]
null
null
null
Obsidian2Org/obsidian-to-org.py
AnweshGangula/PKMigrator
d6a070eb0453b31505e595191b724fb736c8438a
[ "MIT" ]
3
2021-11-13T16:02:44.000Z
2021-12-12T01:12:01.000Z
#!/usr/bin/python import sys,re,os if not os.path.isdir("out/"): os.mkdir("out/") md_file = sys.argv[1] org_file = md_file[:-3] + ".org" def replace(pattern, substitution, filename): f = open(filename, "r+") content = f.read() content = re.sub(pattern, substitution, content) f.seek(0) f.writ...
29.859375
118
0.581371
124a58fc015de09b942656aa1025cc8edcd8c009
1,754
py
Python
geneticAlgorithm/population.py
Morgan-Dee/VirtualCreatures
fd581687c027bbd50c03cebb75225c9c00f0ffa9
[ "MIT" ]
1
2021-03-18T13:10:33.000Z
2021-03-18T13:10:33.000Z
geneticAlgorithm/population.py
Morgan-Dee/VirtualCreatures
fd581687c027bbd50c03cebb75225c9c00f0ffa9
[ "MIT" ]
null
null
null
geneticAlgorithm/population.py
Morgan-Dee/VirtualCreatures
fd581687c027bbd50c03cebb75225c9c00f0ffa9
[ "MIT" ]
1
2022-02-02T13:09:38.000Z
2022-02-02T13:09:38.000Z
from geneticAlgorithm import individual as I from copy import deepcopy import random as rd class POPULATION: def __init__(self, popSize=5, initialize=True): if initialize: self.p = [I.INDIVIDUAL(i) for i in range(popSize)] else: self.p = [] def print(self, prec...
31.321429
91
0.582098
cef01c48ab61e3602a94bd3d807d68b16da4d429
88,911
py
Python
django/db/models/sql/query.py
brstrat/django
90c76564669fa03caefcf4318ffdf9ba8fa4d40b
[ "BSD-3-Clause" ]
null
null
null
django/db/models/sql/query.py
brstrat/django
90c76564669fa03caefcf4318ffdf9ba8fa4d40b
[ "BSD-3-Clause" ]
null
null
null
django/db/models/sql/query.py
brstrat/django
90c76564669fa03caefcf4318ffdf9ba8fa4d40b
[ "BSD-3-Clause" ]
null
null
null
""" Create SQL statements for QuerySets. The code in here encapsulates all of the SQL construction so that QuerySets themselves do not have to (and could be backed by things other than SQL databases). The abstraction barrier only works one way: this module has to know all about the internals of models in order to get ...
43.690909
133
0.588555
d2786b1195c9145fbc39291d0355ab877150d331
1,589
py
Python
pqviz/check_suppressed.py
mitre/PQViz
229e662c408e0532df44585d134b8e79eb6c4cf8
[ "Apache-2.0" ]
null
null
null
pqviz/check_suppressed.py
mitre/PQViz
229e662c408e0532df44585d134b8e79eb6c4cf8
[ "Apache-2.0" ]
null
null
null
pqviz/check_suppressed.py
mitre/PQViz
229e662c408e0532df44585d134b8e79eb6c4cf8
[ "Apache-2.0" ]
1
2022-01-18T21:00:39.000Z
2022-01-18T21:00:39.000Z
import glob from pathlib import Path from ipywidgets import interact, interactive, fixed, interact_manual import ipywidgets as widgets import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns def check_suppressed(df, attribute): suppressed_values = df.groupby(["Weight Category...
33.808511
88
0.705475
8ccbeb129b8038555fb9c85a50ac7986000415df
294
py
Python
xlrdconvert.py
cropleyc/sturdy-bassoon
4245656753fffeb06e87ae9b6f579a51da1a9e63
[ "MIT" ]
null
null
null
xlrdconvert.py
cropleyc/sturdy-bassoon
4245656753fffeb06e87ae9b6f579a51da1a9e63
[ "MIT" ]
null
null
null
xlrdconvert.py
cropleyc/sturdy-bassoon
4245656753fffeb06e87ae9b6f579a51da1a9e63
[ "MIT" ]
null
null
null
import xlrd import csv with xlrd.open_workbook('Query (2).xls') as wb: sh = wb.sheet_by_index(0) # wb.sheet_by_name('sheet_name') with open('new.csv', 'w', newline="") as f: col = csv.writer(f) for row in range(sh.nrows): col.writerow(sh.row_values(row))
29.4
63
0.615646
45e3628c468b6275f5646d4484a431496e0fca04
2,137
py
Python
tfx/components/bulk_inferrer/component_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1,813
2019-02-04T17:17:30.000Z
2022-03-29T13:39:30.000Z
tfx/components/bulk_inferrer/component_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
2,710
2019-02-14T00:41:00.000Z
2022-03-31T07:23:00.000Z
tfx/components/bulk_inferrer/component_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
731
2019-02-04T17:59:18.000Z
2022-03-31T06:45:51.000Z
# 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 required by applicable law or a...
36.844828
78
0.755264
49e0661732666518e7c0080c1b9b1d2539b97088
1,992
py
Python
Dynamic Programming/unique_binary_search_trees.py
lim1202/LeetCode
931c8d5a8d80206fb329dc7792416d45804d2ba3
[ "MIT" ]
null
null
null
Dynamic Programming/unique_binary_search_trees.py
lim1202/LeetCode
931c8d5a8d80206fb329dc7792416d45804d2ba3
[ "MIT" ]
null
null
null
Dynamic Programming/unique_binary_search_trees.py
lim1202/LeetCode
931c8d5a8d80206fb329dc7792416d45804d2ba3
[ "MIT" ]
null
null
null
r"""Unique Binary Search Trees Given n, how many structurally unique BSTs (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BSTs. 1 3 3 2 1 \ / / / \ \ 3 2 1 1 3 2 / / \ ...
25.21519
95
0.471888
d33328a234f96b34d00e2710300f323f474dcc2c
14,531
py
Python
fixture/contact.py
mlaxmla/python_training
3b6854ca92826d19091aa473ec1ba11e7be7ba56
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
mlaxmla/python_training
3b6854ca92826d19091aa473ec1ba11e7be7ba56
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
mlaxmla/python_training
3b6854ca92826d19091aa473ec1ba11e7be7ba56
[ "Apache-2.0" ]
null
null
null
__author__ = 'mla' from selenium.webdriver.support.ui import Select from model.contact import Contact import re # from fixture.application import Application #ASK4IT: czy tego nie potrzebujemy dzieki temu ze przenieslismy fixtury do conftest.py i 'przedrostek' "app." odwoluje sie do nich? class ContactHelper...
53.422794
231
0.642282
f21fdfd7a07c33781679b9954dcbd99a220196b5
1,061
py
Python
nginx_router/backend/synth_project/urls.py
BennettDixon/sleep_tracker_full_stack
83b46635762db857f0c291c62c4415a1a550ec3d
[ "MIT" ]
null
null
null
nginx_router/backend/synth_project/urls.py
BennettDixon/sleep_tracker_full_stack
83b46635762db857f0c291c62c4415a1a550ec3d
[ "MIT" ]
null
null
null
nginx_router/backend/synth_project/urls.py
BennettDixon/sleep_tracker_full_stack
83b46635762db857f0c291c62c4415a1a550ec3d
[ "MIT" ]
null
null
null
"""synth_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
37.892857
77
0.73327
81fdc3ae15badf96bc94474f9b6e275c73edd415
5,539
py
Python
src_old/tests/scripts/mpi/core/poisson_fd_2d.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
src_old/tests/scripts/mpi/core/poisson_fd_2d.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
src_old/tests/scripts/mpi/core/poisson_fd_2d.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
# coding: utf-8 from pyccel.stdlib.parallel.mpi import mpi_init from pyccel.stdlib.parallel.mpi import mpi_finalize from pyccel.stdlib.parallel.mpi import mpi_comm_size from pyccel.stdlib.parallel.mpi import mpi_comm_rank from pyccel.stdlib.parallel.mpi import mpi_comm_world from pyccel.stdlib.parallel.mpi import mpi_...
28.848958
142
0.674671
331cf383a7d98bda2c88070060e1fab8b16224c7
337
py
Python
src/phocnet/evaluation/time.py
FlorianWestphal/phocnet
737b7bdd58441fc0a1fa35013db885bfa2cfdfe0
[ "BSD-3-Clause" ]
39
2016-09-12T12:58:00.000Z
2021-09-09T01:24:34.000Z
src/phocnet/evaluation/time.py
FlorianWestphal/phocnet
737b7bdd58441fc0a1fa35013db885bfa2cfdfe0
[ "BSD-3-Clause" ]
13
2017-11-07T09:35:11.000Z
2021-02-05T12:13:48.000Z
src/phocnet/evaluation/time.py
FlorianWestphal/phocnet
737b7bdd58441fc0a1fa35013db885bfa2cfdfe0
[ "BSD-3-Clause" ]
32
2016-09-12T12:58:54.000Z
2022-02-20T19:10:54.000Z
''' Created on Jul 10, 2016 @author: ssudholt ''' def convert_secs2HHMMSS(secs): ''' Takes as input a float/int representing a timing interval in seconds and converts it to a string in the format hh:mm:ss ''' secs = int(secs) m, s = divmod(secs, 60) h, m = divmod(m, 60) return'%dh%02dm%...
24.071429
72
0.620178
621383832a66b63d8c9e6e6ea0bc8475b5daee9e
6,292
py
Python
mbbl_envs/mbbl/trainer/mbmf_trainer.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
9
2022-01-16T11:27:00.000Z
2022-03-13T14:04:48.000Z
mbbl_envs/mbbl/trainer/mbmf_trainer.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
null
null
null
mbbl_envs/mbbl/trainer/mbmf_trainer.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
null
null
null
import time import numpy as np from .base_trainer import base_trainer from mbbl.util.common import logger from mbbl.util.common import misc_utils from mbbl.util.common import parallel_util class trainer(base_trainer): def __init__(self, args, network_type, task_queue, result_queue, name_scope=...
38.133333
80
0.582645
e3f25e0f9f933076bed861116b0e4bec5c1c3baf
19,643
py
Python
zaqar/tests/unit/transport/wsgi/v2_0/test_queue_lifecycle.py
mail2nsrajesh/zaqar
a68a03a228732050b33c2a7f35d1caa9f3467718
[ "Apache-2.0" ]
null
null
null
zaqar/tests/unit/transport/wsgi/v2_0/test_queue_lifecycle.py
mail2nsrajesh/zaqar
a68a03a228732050b33c2a7f35d1caa9f3467718
[ "Apache-2.0" ]
null
null
null
zaqar/tests/unit/transport/wsgi/v2_0/test_queue_lifecycle.py
mail2nsrajesh/zaqar
a68a03a228732050b33c2a7f35d1caa9f3467718
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
39.129482
79
0.600672
3b9825f776c01a024ff865d95a1bc16983cf6f46
21,901
py
Python
src/autoencoder.py
pcheng2/SindyAutoencoders
9d6cb364a9806090f0184150818c5fa6c37601f1
[ "MIT" ]
190
2019-05-23T07:04:18.000Z
2022-03-31T13:09:07.000Z
src/autoencoder.py
Jimmy-INL/SindyAutoencoders
d50acb28cb97f2af50a3ef4e1b3fdd0d30d3a6f8
[ "MIT" ]
null
null
null
src/autoencoder.py
Jimmy-INL/SindyAutoencoders
d50acb28cb97f2af50a3ef4e1b3fdd0d30d3a6f8
[ "MIT" ]
61
2019-05-17T09:09:12.000Z
2022-03-18T13:07:02.000Z
import tensorflow as tf def full_network(params): """ Define the full network architecture. Arguments: params - Dictionary object containing the parameters that specify the training. See README file for a description of the parameters. Returns: network - Dictionary containing...
43.714571
176
0.641386
5fa009cfe078a529c246bcfbf937f1affbfd168d
1,813
py
Python
2020/Python/day24/part1.py
tymscar/Advent-Of-Code
cd7b96b0253191e236bd704b0d8b5540fb3e8ef6
[ "MIT" ]
4
2019-12-08T08:20:53.000Z
2021-12-17T12:04:11.000Z
2020/Python/day24/part1.py
tymscar/AdventOfCode2018
9742ddb6bbbc917062baad87d6b6de75375f1ae8
[ "MIT" ]
null
null
null
2020/Python/day24/part1.py
tymscar/AdventOfCode2018
9742ddb6bbbc917062baad87d6b6de75375f1ae8
[ "MIT" ]
4
2020-12-11T22:10:24.000Z
2021-12-25T22:39:05.000Z
class Tile(): def __init__(self, pos): self.white = True self.pos = pos def flip(self): self.white = not self.white def get_new_coord(from_tile, instructions): curr = [from_tile.pos[0], from_tile.pos[1]] for instruction in instructions: if instruction == "ne": ...
27.469697
70
0.506343
4189b8192a7296f660a1c130442ad801cb6f3460
43,622
py
Python
sympy/utilities/enumerative.py
Sushmita10062002/sympy
a6051c36e180e980e9f430502d906ada221f08a2
[ "BSD-3-Clause" ]
1
2022-01-31T16:02:46.000Z
2022-01-31T16:02:46.000Z
sympy/utilities/enumerative.py
Sushmita10062002/sympy
a6051c36e180e980e9f430502d906ada221f08a2
[ "BSD-3-Clause" ]
3
2022-02-04T14:45:16.000Z
2022-02-04T14:45:45.000Z
sympy/utilities/enumerative.py
Sushmita10062002/sympy
a6051c36e180e980e9f430502d906ada221f08a2
[ "BSD-3-Clause" ]
1
2022-02-04T13:50:29.000Z
2022-02-04T13:50:29.000Z
""" Algorithms and classes to support enumerative combinatorics. Currently just multiset partitions, but more could be added. Terminology (following Knuth, algorithm 7.1.2.5M TAOCP) *multiset* aaabbcccc has a *partition* aaabc | bccc The submultisets, aaabc and bccc of the partition are called *parts*, or sometimes ...
37.670121
79
0.590826
9de6d2075fbd9e8a5ba259a8ea1b20e500c79f4d
31,958
py
Python
pysteps/io/exporters.py
wdewettin/pysteps
7a093281ab3e00642054708d5073aef72a134b4a
[ "BSD-3-Clause" ]
285
2018-07-11T10:42:43.000Z
2022-03-23T13:44:54.000Z
pysteps/io/exporters.py
wdewettin/pysteps
7a093281ab3e00642054708d5073aef72a134b4a
[ "BSD-3-Clause" ]
246
2018-07-16T06:17:12.000Z
2022-03-22T15:45:08.000Z
pysteps/io/exporters.py
wdewettin/pysteps
7a093281ab3e00642054708d5073aef72a134b4a
[ "BSD-3-Clause" ]
97
2018-07-12T12:05:45.000Z
2022-03-31T14:56:31.000Z
# -*- coding: utf-8 -*- """ pysteps.io.exporters ==================== Methods for exporting forecasts of 2d precipitation fields into various file formats. Each exporter method in this module has its own initialization function that implements the following interface:: initialize_forecast_exporter_xxx(outpath, out...
35.667411
88
0.577821
8d20716986c50e1cfccaaecd88f6da1c17a05437
848
py
Python
pytknvim/test_screen.py
timeyyy/pytknvim
d5fae053c3d39ded52afeb76b4d0d4d0e28ed20c
[ "0BSD" ]
26
2016-05-23T22:40:14.000Z
2021-11-23T00:46:17.000Z
pytknvim/test_screen.py
timeyyy/pytknvim
d5fae053c3d39ded52afeb76b4d0d4d0e28ed20c
[ "0BSD" ]
12
2016-05-23T22:29:17.000Z
2019-06-24T22:57:53.000Z
pytknvim/test_screen.py
timeyyy/pytknvim
d5fae053c3d39ded52afeb76b4d0d4d0e28ed20c
[ "0BSD" ]
5
2016-05-23T23:18:44.000Z
2016-07-05T08:46:55.000Z
import pytest from pytknvim.screen import DirtyScreen from pytknvim.screen import Screen dscreen = DirtyScreen() def assrt(screen, *values): assert list(dscreen.get()) == [*values] def test_simple(): dscreen.reset() dscreen.changed(1, 1, 1, 2) assrt(dscreen, (1, 1, 1, 2)) def test_second_range_ad...
21.74359
48
0.636792
1680dee33afef206e0805476f390969bb16368e3
4,928
py
Python
test2.py
FCChinen/lab2
b04b4e0788678e4de2365b74db505ef1a72b7103
[ "MIT" ]
1
2020-05-31T20:58:38.000Z
2020-05-31T20:58:38.000Z
test2.py
FCChinen/lab2
b04b4e0788678e4de2365b74db505ef1a72b7103
[ "MIT" ]
null
null
null
test2.py
FCChinen/lab2
b04b4e0788678e4de2365b74db505ef1a72b7103
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import random from collections import OrderedDict from mytcputils import * from mytcp import Servidor class CamadaRede: def __init__(self): self.callback = None self.fila = [] def registrar_recebedor(self, callback): self.callback = callback def envi...
44.396396
160
0.755885
076bf76150dcf7d5313876f896e7365330ae5d99
2,118
py
Python
txstatsd/tests/metrics/test_metermetric.py
drawks/txstatsd
da674d7a86e0e5ec40eaa53fe81310ef19d1ed9e
[ "MIT" ]
null
null
null
txstatsd/tests/metrics/test_metermetric.py
drawks/txstatsd
da674d7a86e0e5ec40eaa53fe81310ef19d1ed9e
[ "MIT" ]
1
2020-07-10T23:35:49.000Z
2020-07-10T23:35:49.000Z
txstatsd/tests/metrics/test_metermetric.py
drawks/txstatsd
da674d7a86e0e5ec40eaa53fe81310ef19d1ed9e
[ "MIT" ]
1
2020-07-13T05:31:58.000Z
2020-07-13T05:31:58.000Z
# Copyright (C) 2011-2012 Canonical Services Ltd # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, ...
38.509091
75
0.702077
2153968cebda82058e392fd9abbff6e95e5da2a4
68,670
py
Python
discord/ext/commands/core.py
TurnrDev/discord.py
4203e7a5a830ee2a05e9642ef83721d05c9e21f6
[ "MIT" ]
null
null
null
discord/ext/commands/core.py
TurnrDev/discord.py
4203e7a5a830ee2a05e9642ef83721d05c9e21f6
[ "MIT" ]
null
null
null
discord/ext/commands/core.py
TurnrDev/discord.py
4203e7a5a830ee2a05e9642ef83721d05c9e21f6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2020 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
33.860947
122
0.608563
b8c459009f6061ebdc23feabd3096598c24025c4
1,041
py
Python
ipython/mcs_pure_python.py
portfolioscout/py4fi
9a65df340189ed52037456da221bf66fe89e787f
[ "CNRI-Python" ]
15
2018-07-10T09:18:23.000Z
2021-12-30T06:35:09.000Z
ipython/mcs_pure_python.py
ioancw/py4fi
bbf7b41d375e4f7b0344bc9b1e97d7910ad1e6ec
[ "CNRI-Python" ]
null
null
null
ipython/mcs_pure_python.py
ioancw/py4fi
bbf7b41d375e4f7b0344bc9b1e97d7910ad1e6ec
[ "CNRI-Python" ]
13
2018-01-08T01:10:22.000Z
2021-05-26T17:35:35.000Z
# # Monte Carlo valuation of European call options with pure Python # mcs_pure_python.py # from time import time from math import exp, sqrt, log from random import gauss, seed seed(20000) t0 = time() # Parameters S0 = 100. # initial value K = 105. # strike price T = 1.0 # maturity r = 0.05 # riskless short rate ...
24.209302
65
0.574448
28381b67299c6f7258a6e74319c83508a527d0ac
16,761
py
Python
openstates/data/tests/test_models.py
twentyforty/openstates-core
af80fa8caa2f435e66bae6d373fb220e24a1e385
[ "MIT" ]
null
null
null
openstates/data/tests/test_models.py
twentyforty/openstates-core
af80fa8caa2f435e66bae6d373fb220e24a1e385
[ "MIT" ]
null
null
null
openstates/data/tests/test_models.py
twentyforty/openstates-core
af80fa8caa2f435e66bae6d373fb220e24a1e385
[ "MIT" ]
null
null
null
import pytest from openstates.data.models import Jurisdiction, Division, Organization, Person, Post from django.core.exceptions import ValidationError def test_division_subtypes_from_id(): # simplest case assert Division.subtypes_from_id("ocd-division/country:us") == ( {"country": "us"}, 1, ...
32.672515
96
0.684506
ee6484e996ac617c7e81832b123b7b407ad856c6
3,377
py
Python
generation/overland/from_platec.py
BenSmithers/MultiHex2
3a241d7b6e8681b56ac8f6dcc7f707bed47420ea
[ "MIT" ]
null
null
null
generation/overland/from_platec.py
BenSmithers/MultiHex2
3a241d7b6e8681b56ac8f6dcc7f707bed47420ea
[ "MIT" ]
null
null
null
generation/overland/from_platec.py
BenSmithers/MultiHex2
3a241d7b6e8681b56ac8f6dcc7f707bed47420ea
[ "MIT" ]
null
null
null
from argparse import ArgumentError from MultiHex2.tools import Clicker from MultiHex2.core import hex_to_screen, screen_to_hex, Hex from MultiHex2.core import DRAWSIZE from ..utils import perlin from PyQt5.QtCore import QPointF from PyQt5.QtGui import QColor import numpy.random as rnd import numpy as np from math im...
35.925532
142
0.596091
6392a470b4c2247a1df0b53f54ca6a4c4557643a
208
py
Python
Recursion/CodingNinjas/5_fibo.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
Recursion/CodingNinjas/5_fibo.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
Recursion/CodingNinjas/5_fibo.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
# 0 1 1 2 3 5 def fibo(n): if n==1 or n==2: return 1 fib_n_1=fibo(n-1) fib_n_2 = fibo(n-2) output= fib_n_1+fib_n_2 return output if __name__ == "__main__": print(fibo(5))
13
27
0.552885
3539842815d4d8ebf7e23967426820b73bc77c94
23,171
py
Python
datacatalog/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2_grpc.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
1
2019-06-14T10:11:59.000Z
2019-06-14T10:11:59.000Z
datacatalog/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2_grpc.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
null
null
null
datacatalog/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2_grpc.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.cloud.datacatalog_v1beta1.proto import ( datacatalog_pb2 as google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2, ) from google.cloud.datacatalog_v1beta1.proto import ( tags_pb2 as google_dot_cloud...
56.652812
152
0.764706
bf917d75e3ced46c1be0743218d8464143236661
2,057
py
Python
run_calendar2.py
themrmax/councilmatic
f8799011d08b9b4355934dd9f2ff31854938deb6
[ "MIT" ]
null
null
null
run_calendar2.py
themrmax/councilmatic
f8799011d08b9b4355934dd9f2ff31854938deb6
[ "MIT" ]
null
null
null
run_calendar2.py
themrmax/councilmatic
f8799011d08b9b4355934dd9f2ff31854938deb6
[ "MIT" ]
null
null
null
import argparse from scraper.controller.calendar import Calendar from scraper.model.calendar import Calendar as CalendarModel def get_args(): parser = argparse.ArgumentParser() parser.add_argument("-sd", "--show_dates", help="show date values", dest='show_dates', action='store_true') ...
26.714286
79
0.606709
bd30f549f513b81730506fa63e54a0a8512fe39d
12,382
py
Python
ci/launcher/utils/ec2.py
vvekic/serve
f02a56bf1f0de1705fd9f399c1115d36e343c90c
[ "Apache-2.0" ]
2
2022-03-26T05:17:45.000Z
2022-03-26T05:44:53.000Z
ci/launcher/utils/ec2.py
vvekic/serve
f02a56bf1f0de1705fd9f399c1115d36e343c90c
[ "Apache-2.0" ]
3
2022-03-12T01:08:09.000Z
2022-03-15T10:56:14.000Z
ci/launcher/utils/ec2.py
vvekic/serve
f02a56bf1f0de1705fd9f399c1115d36e343c90c
[ "Apache-2.0" ]
null
null
null
import boto3 import os import time import re from inspect import signature import random from retrying import retry from fabric2 import Connection from botocore.config import Config from botocore.exceptions import ClientError from invoke import run from invoke.context import Context from . import DEFAULT_REGION, LOGG...
36.417647
102
0.687046
9f2b342e436a1ca71e24af95ee822cf81f350795
3,998
py
Python
src/wagtail_2fa/middleware.py
tcss-tech/wagtail-2fa
1a3fefbfab1515362a4a934ad5b8885d0674fd9c
[ "MIT" ]
55
2018-09-13T15:59:25.000Z
2022-03-23T08:09:25.000Z
src/wagtail_2fa/middleware.py
tcss-tech/wagtail-2fa
1a3fefbfab1515362a4a934ad5b8885d0674fd9c
[ "MIT" ]
108
2018-09-14T11:06:02.000Z
2022-03-18T04:17:55.000Z
src/wagtail_2fa/middleware.py
tcss-tech/wagtail-2fa
1a3fefbfab1515362a4a934ad5b8885d0674fd9c
[ "MIT" ]
27
2018-09-13T14:10:26.000Z
2022-02-21T08:03:41.000Z
from functools import partial import django_otp from django.conf import settings from django.contrib.auth.views import redirect_to_login from django.urls import resolve, reverse from django.utils.functional import SimpleLazyObject from django_otp.middleware import OTPMiddleware as _OTPMiddleware class VerifyUserMidd...
35.070175
88
0.656078
78c18f7c99d14284f13407720c7d16122436a4f4
660
py
Python
settings/production.py
tsatsujnr139/vbs-management-app-api
dbc6360803cec1d100606b759893da747848a32c
[ "MIT" ]
null
null
null
settings/production.py
tsatsujnr139/vbs-management-app-api
dbc6360803cec1d100606b759893da747848a32c
[ "MIT" ]
null
null
null
settings/production.py
tsatsujnr139/vbs-management-app-api
dbc6360803cec1d100606b759893da747848a32c
[ "MIT" ]
null
null
null
""" Django settings for vbs_registration project. Generated by 'django-admin startproject' using Django 2.2.6. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
27.5
66
0.774242
4d48d16f6e693aa3832d630024c64cc7af8668d2
4,954
py
Python
pi/images.py
vmagamedov/pi
6ee98af69b757d96aa4eddc32513309e0fe05d1d
[ "BSD-3-Clause" ]
7
2016-06-24T04:49:48.000Z
2020-06-29T17:34:12.000Z
pi/images.py
vmagamedov/pi
6ee98af69b757d96aa4eddc32513309e0fe05d1d
[ "BSD-3-Clause" ]
11
2016-06-19T13:16:59.000Z
2019-11-02T13:14:19.000Z
pi/images.py
vmagamedov/pi
6ee98af69b757d96aa4eddc32513309e0fe05d1d
[ "BSD-3-Clause" ]
null
null
null
import json import hashlib from .http import HTTPError from .types import DockerImage, Image, ActionType class Hasher: def visit(self, obj): return obj.accept(self) def visit_image(self, obj): yield obj.repository.encode('utf-8') for task in obj.tasks: yield from self.vi...
30.392638
75
0.563585
60a6c34b24b44a8945dc9839b908760aa260358a
417
py
Python
time/calculateRuntime.py
aTechGuide/python
aa4fdfdd1676e3524a14b7e7b694c00672b2980c
[ "MIT" ]
null
null
null
time/calculateRuntime.py
aTechGuide/python
aa4fdfdd1676e3524a14b7e7b694c00672b2980c
[ "MIT" ]
null
null
null
time/calculateRuntime.py
aTechGuide/python
aa4fdfdd1676e3524a14b7e7b694c00672b2980c
[ "MIT" ]
null
null
null
import time def powers(limit): return [x**2 for x in range(limit)] # Decorator Function (HOF) def measure_runtime(func): start = time.time() func() end = time.time() print(end - start) #measure_runtime(lambda : powers(500000)) """ timeit - Average accross many iterations """ import timeit print(timeit.t...
18.954545
61
0.676259
b1224214bb9f63d01f83ffd200abe4e27fd6acdf
1,098
py
Python
app/core/tests/test_models.py
ribicnejc/django-recipe-api
61b123b8b5be455a92c224ba9cf65779730beddb
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
ribicnejc/django-recipe-api
61b123b8b5be455a92c224ba9cf65779730beddb
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
ribicnejc/django-recipe-api
61b123b8b5be455a92c224ba9cf65779730beddb
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_email_successful(self): email = 'test@tiddlylabs.com' password = '123' user = get_user_model().objects.create_user( email=email, pa...
32.294118
69
0.661202
f03ce356e80c9d1af4ac7d6c652df8bcb4e5a69f
29,876
py
Python
cinder/tests/unit/test_hitachi_hbsd_snm2_fc.py
rackerlabs/cinder
4295ff0a64f781c3546f6c6e0816dbb8100133cb
[ "Apache-2.0" ]
1
2019-02-08T05:24:58.000Z
2019-02-08T05:24:58.000Z
cinder/tests/unit/test_hitachi_hbsd_snm2_fc.py
rackerlabs/cinder
4295ff0a64f781c3546f6c6e0816dbb8100133cb
[ "Apache-2.0" ]
1
2021-03-21T11:38:29.000Z
2021-03-21T11:38:29.000Z
cinder/tests/unit/test_hitachi_hbsd_snm2_fc.py
rackerlabs/cinder
4295ff0a64f781c3546f6c6e0816dbb8100133cb
[ "Apache-2.0" ]
15
2017-01-12T10:35:10.000Z
2019-04-19T08:22:10.000Z
# Copyright (C) 2014, Hitachi, 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...
49.876461
79
0.618992
b82d069f11c362e5aa50974e88e0653676e86df9
390
py
Python
v2.5.7/toontown/toonfest/DayAndNightGlobals.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/toonfest/DayAndNightGlobals.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/toonfest/DayAndNightGlobals.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
SUNRISE = 0 MORNING = 1 DAY = 2 SUNSET = 3 NIGHT = 4 TIME_OF_DAY_ZONES = [ 7000, 7100] if config.GetBool('toonfest-short-tod-cycle', True): DAY_TIME = 20.0 SUNSET_TIME = 10.0 NIGHT_TIME = 20.0 SUNRISE_TIME = 10.0 else: DAY_TIME = 1200.0 SUNSET_TIME = 600.0 NIGHT_TIME = 1200.0 SUNRISE_TI...
21.666667
59
0.666667
b1538a6d6a100e912cb21e27fd384d6093ddeab4
4,085
py
Python
src/dataset/prep_splits_BigEarthNet-19.py
kungfuai/d3m-segmentation-research
5bc44ddd0e8522fb2b369866ad47aa62a24a8f63
[ "MIT" ]
1
2020-12-07T02:25:53.000Z
2020-12-07T02:25:53.000Z
src/dataset/prep_splits_BigEarthNet-19.py
kungfuai/d3m-segmentation-research
5bc44ddd0e8522fb2b369866ad47aa62a24a8f63
[ "MIT" ]
null
null
null
src/dataset/prep_splits_BigEarthNet-19.py
kungfuai/d3m-segmentation-research
5bc44ddd0e8522fb2b369866ad47aa62a24a8f63
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # This script creates splits with TFRecord files from 1) BigEarthNet # image patches based on csv files that contain patch names and # 2) the new class nomenclature (BigEarthNet-19) # # prep_splits_BigEarthNet-19.py --help can be used to learn how to use this script. # ...
36.473214
148
0.614933
eb3fb75f5d7a17606cf53586695260aeb45ce2c8
224
py
Python
tests/data/import_self.py
griggheo/cheesecake
2b7aa5c980e8becb163cbcb801b202b17f715054
[ "CNRI-Python-GPL-Compatible" ]
12
2015-01-15T01:13:42.000Z
2022-03-04T21:14:27.000Z
tests/data/import_self.py
griggheo/cheesecake
2b7aa5c980e8becb163cbcb801b202b17f715054
[ "CNRI-Python-GPL-Compatible" ]
6
2015-01-19T19:46:51.000Z
2019-02-05T20:20:26.000Z
tests/data/import_self.py
griggheo/cheesecake
2b7aa5c980e8becb163cbcb801b202b17f715054
[ "CNRI-Python-GPL-Compatible" ]
3
2015-10-24T20:08:09.000Z
2019-02-04T20:53:21.000Z
"""This module will get W0406 warning for importing self, which should be ignored in Cheesecake score. """ __revision__ = 'satisfy pylint checker' import import_self print(import_self.__revision__) # use imported module
22.4
57
0.785714
88d549d84bec79feba1cc2405cd61a83b45953ec
5,532
py
Python
tests/runner/test_runner.py
admariner/datapane
c440eaf07bd1c1f2de3ff952e0fd8c78d636aa8f
[ "Apache-2.0" ]
null
null
null
tests/runner/test_runner.py
admariner/datapane
c440eaf07bd1c1f2de3ff952e0fd8c78d636aa8f
[ "Apache-2.0" ]
7
2021-11-19T21:40:47.000Z
2021-12-24T16:10:06.000Z
tests/runner/test_runner.py
admariner/datapane
c440eaf07bd1c1f2de3ff952e0fd8c78d636aa8f
[ "Apache-2.0" ]
null
null
null
# flake8: noqa isort:skip import os import sys from pathlib import Path from unittest import mock import subprocess import pytest if not (sys.platform == "linux" and sys.version_info.minor >= 7): pytest.skip("skipping linux-only 3.7+ tests", allow_module_level=True) import datapane as dp from datapane.client.api...
34.148148
111
0.662509
59e71317b34e7ead45f7a0a0b792ff1c02c724bf
32,413
py
Python
modules/meta.py
mikenobbs/Plex-Meta-Manager
6788fa8ae4d3fe8ed97ca4d7751397226d02a90a
[ "MIT" ]
null
null
null
modules/meta.py
mikenobbs/Plex-Meta-Manager
6788fa8ae4d3fe8ed97ca4d7751397226d02a90a
[ "MIT" ]
25
2021-11-01T08:23:01.000Z
2022-02-22T08:22:25.000Z
modules/meta.py
mikenobbs/Plex-Meta-Manager
6788fa8ae4d3fe8ed97ca4d7751397226d02a90a
[ "MIT" ]
null
null
null
import logging, os, re from datetime import datetime from modules import plex, util from modules.util import Failed, ImageData from plexapi.exceptions import NotFound from ruamel import yaml logger = logging.getLogger("Plex Meta Manager") github_base = "https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-C...
57.165785
180
0.505229
be2239430d0d812035f5a1f58a5f6d6ac4faeae0
2,253
py
Python
docs/conf.py
tamaswells/pysimm
2586679a9eacdf1046baa2312c8f92c9247ac5be
[ "MIT" ]
55
2017-01-14T09:11:54.000Z
2022-01-28T17:17:34.000Z
docs/conf.py
tamaswells/pysimm
2586679a9eacdf1046baa2312c8f92c9247ac5be
[ "MIT" ]
13
2017-03-27T19:32:57.000Z
2022-01-04T17:49:50.000Z
docs/conf.py
tamaswells/pysimm
2586679a9eacdf1046baa2312c8f92c9247ac5be
[ "MIT" ]
28
2016-08-29T12:30:58.000Z
2021-12-04T07:24:07.000Z
# 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...
33.132353
88
0.669774
880c3c883300df3ccab841510028d60597441875
2,233
py
Python
harvey/containers.py
gurneesh/harvey
393308bfc2a833ddbbfe7aca4ddf157a7593aa73
[ "MIT" ]
null
null
null
harvey/containers.py
gurneesh/harvey
393308bfc2a833ddbbfe7aca4ddf157a7593aa73
[ "MIT" ]
null
null
null
harvey/containers.py
gurneesh/harvey
393308bfc2a833ddbbfe7aca4ddf157a7593aa73
[ "MIT" ]
null
null
null
import requests from harvey.globals import Global class Container: @staticmethod def create_container(container_id): """Create a Docker container. Requires an image tag and container name.""" response = requests.post( f'{Global.BASE_URL}containers/create', params={'nam...
30.589041
85
0.616659
d42ae6e7ed7a365702a95c69d7a29d7c3718f7f1
3,019
py
Python
python/nlusvc/coords/dmo/character_level_tokenizer.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/nlusvc/coords/dmo/character_level_tokenizer.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/nlusvc/coords/dmo/character_level_tokenizer.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import pprint from base import BaseObject class CharacterLevelTokenizer(BaseObject): """ Perform Character Level Tokenization """ def __init__(self, input_text: str, is_debug: bool = False): """ Created: ...
25.369748
81
0.504803
05a9c35b3247ad8af186f013e02aed8784228f58
18,594
py
Python
tests/test_pipeline/test_pipeline.py
bve81/etna
5ef9223ce9c03b4e475ab4277cd2a1d4fde065be
[ "Apache-2.0" ]
null
null
null
tests/test_pipeline/test_pipeline.py
bve81/etna
5ef9223ce9c03b4e475ab4277cd2a1d4fde065be
[ "Apache-2.0" ]
null
null
null
tests/test_pipeline/test_pipeline.py
bve81/etna
5ef9223ce9c03b4e475ab4277cd2a1d4fde065be
[ "Apache-2.0" ]
null
null
null
import re from copy import deepcopy from datetime import datetime from typing import List from typing import Tuple import numpy as np import pandas as pd import pytest from etna.datasets import TSDataset from etna.metrics import MAE from etna.metrics import MSE from etna.metrics import SMAPE from etna.metrics import ...
46.138958
120
0.703184
c51657c8e65e93349a0c71f63ce1c4e048031470
6,632
py
Python
t66y-spider/src/main.py
cd871127/hodgepodge-cloud
3f1c943228d621d5a357bd1aa18ee5af50e2a75e
[ "Apache-2.0" ]
2
2019-01-16T10:02:14.000Z
2020-03-06T18:18:30.000Z
t66y-spider/src/main.py
cd871127/hodgepodge-cloud
3f1c943228d621d5a357bd1aa18ee5af50e2a75e
[ "Apache-2.0" ]
null
null
null
t66y-spider/src/main.py
cd871127/hodgepodge-cloud
3f1c943228d621d5a357bd1aa18ee5af50e2a75e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import getopt import json import sys import pymysql from spider import Spider fid_dict = { "2": "亞洲無碼原創區", "15": "亞洲有碼原創區", "4": "歐美原創區", "25": "國產原創區", "5": "動漫原創區", "26": "中字原創區", "27": "轉帖交流區" } def usage(): print("usage: python package [OPTIONS]") pr...
34.010256
139
0.569361
ba87ce2e87fe4d6ebefda1b964e3ca9ba34e93b9
4,535
py
Python
src/object_detection/builders/optimizer_builder.py
Tobias-Fischer/ros_people_object_detection_tensorflow
2a0af311b4eef55c053bd2349e1dff10abe1f32a
[ "Apache-2.0" ]
null
null
null
src/object_detection/builders/optimizer_builder.py
Tobias-Fischer/ros_people_object_detection_tensorflow
2a0af311b4eef55c053bd2349e1dff10abe1f32a
[ "Apache-2.0" ]
null
null
null
src/object_detection/builders/optimizer_builder.py
Tobias-Fischer/ros_people_object_detection_tensorflow
2a0af311b4eef55c053bd2349e1dff10abe1f32a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.28
80
0.744212
f93a85d864bd22ed0f4b9570c72ec2f6dee31239
37,980
py
Python
instances/passenger_demand/pas-20210421-2109-int2e-1/65.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210421-2109-int2e-1/65.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210421-2109-int2e-1/65.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
""" PASSENGERS """ numPassengers = 475 passenger_arriving = ( (1, 1, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0), # 0 (0, 1, 2, 0, 1, 0, 2, 1, 0, 0, 0, 0), # 1 (0, 3, 1, 4, 1, 0, 1, 1, 2, 1, 0, 0), # 2 (0, 2, 0, 0, 0, 0, 4, 1, 2, 0, 0, 0), # 3 (0, 2, 4, 1, 1, 0, 1, 1, 1, 3, 0, 0), # 4 (1, 2, 2, 2, 2, 0, 2, 0, 0, 1, 1, ...
113.373134
220
0.729753
25ede33468fa00e9ce110dd26b19a90f81697eec
93
py
Python
anuvaad-etl/anuvaad-extractor/content-handler/src/utilities/__init__.py
srihari-nagaraj/anuvaad
b09b01a033a033e97db6e404c088e0e6332053e4
[ "MIT" ]
null
null
null
anuvaad-etl/anuvaad-extractor/content-handler/src/utilities/__init__.py
srihari-nagaraj/anuvaad
b09b01a033a033e97db6e404c088e0e6332053e4
[ "MIT" ]
null
null
null
anuvaad-etl/anuvaad-extractor/content-handler/src/utilities/__init__.py
srihari-nagaraj/anuvaad
b09b01a033a033e97db6e404c088e0e6332053e4
[ "MIT" ]
null
null
null
from .app_context import AppContext from .pymongo_data_handling import normalize_bson_to_json
46.5
57
0.903226
71f3625e1204814d0de5e90dedde32752cb891cb
335
py
Python
src/PriceComparer/price_offer_validation_pipeline.py
bugsancho/PriceComparer
21d1c1b38c1d570c914f5d870ed3f3dedb15a886
[ "MIT" ]
null
null
null
src/PriceComparer/price_offer_validation_pipeline.py
bugsancho/PriceComparer
21d1c1b38c1d570c914f5d870ed3f3dedb15a886
[ "MIT" ]
null
null
null
src/PriceComparer/price_offer_validation_pipeline.py
bugsancho/PriceComparer
21d1c1b38c1d570c914f5d870ed3f3dedb15a886
[ "MIT" ]
null
null
null
from scrapy.exceptions import DropItem class PriceOfferValidationPipeline(object): def process_item(self, item, spider): if not(('discounted_price' in item and item['discounted_price']) or ('price' in item and item['price'])): raise DropItem("Missing price in %s" % item) ...
27.916667
75
0.653731
1cc0c4dfd6efb7bed5953393ff9b3b6f2f744e04
1,238
py
Python
algo/problems/subarray_with_given_sum.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
null
null
null
algo/problems/subarray_with_given_sum.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
null
null
null
algo/problems/subarray_with_given_sum.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
1
2021-11-19T13:45:59.000Z
2021-11-19T13:45:59.000Z
""" http://practice.geeksforgeeks.org/problems/subarray-with-given-sum/0 Example: Input: 2 5 12 1 2 3 7 5 10 15 1 2 3 4 5 6 7 8 9 10 Output: 2 4 1 5 """ def find_sub_array_with_given_sum(arr, expected_sum): added = dict() sum = 0 for i in range(0, len(arr)): if sum > expected_sum: s...
22.509091
105
0.57916
641ae7c537f824c0fddd14768e335d0fcf684e86
183
py
Python
kattis/codetosavelives.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
2
2020-08-01T22:53:32.000Z
2020-08-31T22:45:35.000Z
kattis/codetosavelives.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
null
null
null
kattis/codetosavelives.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
null
null
null
def main(T): for _ in range(T): print(' '.join(list(str(sum([int(''.join(input().split())), int(''.join(input().split()))]))))) if __name__ == '__main__': main(int(input()))
26.142857
99
0.562842
c4fecfbf59b58a9c456179446aa55ccb8ff31281
1,199
py
Python
google/ads/googleads/v9/enums/types/price_extension_price_qualifier.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/enums/types/price_extension_price_qualifier.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/enums/types/price_extension_price_qualifier.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
28.547619
74
0.709758
09b76f24556a8d87a269f2a7638d0a9c92e602d6
861
py
Python
actor_critic/inference.py
novicasarenac/car-racing-rl
5bb3b2c47fb6ceda3e8f2c149485652da5a079ba
[ "MIT" ]
10
2019-08-08T03:17:39.000Z
2021-12-15T08:43:29.000Z
actor_critic/inference.py
novicasarenac/car-racing-rl
5bb3b2c47fb6ceda3e8f2c149485652da5a079ba
[ "MIT" ]
7
2019-11-29T04:00:22.000Z
2022-03-11T23:38:20.000Z
actor_critic/inference.py
novicasarenac/car-racing-rl
5bb3b2c47fb6ceda3e8f2c149485652da5a079ba
[ "MIT" ]
4
2019-11-28T10:14:48.000Z
2020-04-08T08:10:37.000Z
import gym import torch from actor_critic.actor_critic import ActorCritic from actor_critic.actions import get_action_space, get_actions from actor_critic.environment_wrapper import EnvironmentWrapper def actor_critic_inference(params, path): model = ActorCritic(params.stack_size, get_action_space()) model.lo...
29.689655
63
0.706156
de800f23266d71d98d03cf3486e79ca352e3f670
1,939
py
Python
locations/spiders/aldi_nord_be.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
locations/spiders/aldi_nord_be.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
locations/spiders/aldi_nord_be.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re import scrapy from locations.items import GeojsonPointItem class AldiNordBESpider(scrapy.Spider): name = "aldi_nord_be" item_attributes = {"brand": "ALDI Nord", "brand_wikidata": "Q41171373"} allowed_domains = ["www.aldi.be"] start_urls = [ "https://www.aldi...
34.017544
102
0.553894
3217a5470818286008bd1a57b117c9dc0e198b40
1,053
py
Python
docs/core/howto/listings/ssl/check_server_certificate.py
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
1
2019-02-08T18:37:42.000Z
2019-02-08T18:37:42.000Z
docs/core/howto/listings/ssl/check_server_certificate.py
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
5
2020-06-05T18:16:39.000Z
2022-01-13T00:45:49.000Z
docs/core/howto/listings/ssl/check_server_certificate.py
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
1
2019-12-26T21:34:29.000Z
2019-12-26T21:34:29.000Z
from __future__ import print_function import sys from twisted.internet import defer, endpoints, protocol, ssl, task, error def main(reactor, host, port=443): options = ssl.optionsForClientTLS(hostname=host.decode('utf-8')) port = int(port) class ShowCertificate(protocol.Protocol): def connectionMa...
36.310345
78
0.653371
e09303e2ca9d08237bfc99bec93fd7d49d90855a
7,168
py
Python
torba/tests/client_tests/unit/test_ledger.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
null
null
null
torba/tests/client_tests/unit/test_ledger.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
null
null
null
torba/tests/client_tests/unit/test_ledger.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
null
null
null
import os from binascii import hexlify from torba.coin.bitcoinsegwit import MainNetLedger from torba.client.wallet import Wallet from client_tests.unit.test_transaction import get_transaction, get_output from client_tests.unit.test_headers import BitcoinHeadersTestCase, block_bytes class MockNetwork: def __ini...
41.918129
104
0.663504
c1ea031df71c6256704b76bb7dfe252978435fb2
543
py
Python
example/example_heatmap.py
summiee/tof_mass_calibration
39d4248a24cee9ae2461b07cfe323be05bc8dd57
[ "MIT" ]
null
null
null
example/example_heatmap.py
summiee/tof_mass_calibration
39d4248a24cee9ae2461b07cfe323be05bc8dd57
[ "MIT" ]
null
null
null
example/example_heatmap.py
summiee/tof_mass_calibration
39d4248a24cee9ae2461b07cfe323be05bc8dd57
[ "MIT" ]
null
null
null
import numpy as np from camp.utils.mock import create_fake_trace from camp.utils.heatmap import Heatmap scale, offset, quantity = 10, -5, 1000 delays = scale * np.random.random(quantity) + offset keys = ['delay','trace'] data = {key: [] for key in keys} length_of_trace = 300 for delay in delays: trace = create_f...
25.857143
70
0.707182
0c824f73c697deb02abf140e6383967ab5c3ca6e
7,789
py
Python
pyutilib/th/tests/test_misc.py
qtothec/pyutilib
772671aa2a7b263b9a936099e70ec544c7fb397d
[ "BSD-3-Clause" ]
null
null
null
pyutilib/th/tests/test_misc.py
qtothec/pyutilib
772671aa2a7b263b9a936099e70ec544c7fb397d
[ "BSD-3-Clause" ]
null
null
null
pyutilib/th/tests/test_misc.py
qtothec/pyutilib
772671aa2a7b263b9a936099e70ec544c7fb397d
[ "BSD-3-Clause" ]
1
2021-04-01T14:10:30.000Z
2021-04-01T14:10:30.000Z
import os import sys from os.path import abspath, dirname currdir = dirname(abspath(__file__)) + os.sep import pyutilib.th as unittest class Tester(unittest.TestCase): def test1(self): self.assertFileEqualsBaseline( currdir + 'file1.txt', currdir + 'file1.txt', delete=False) self.ass...
40.994737
78
0.616767
54235fdb17cae37c20670e7dbf21de95b230d040
1,760
py
Python
google/ads/googleads/v6/resources/types/carrier_constant.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v6/resources/types/carrier_constant.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v6/resources/types/carrier_constant.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
32
74
0.676136
9bd3831e7e4cbb26c5606e19ed26b4647b80eeac
14,011
py
Python
python/federatedml/feature/hetero_feature_binning/hetero_binning_guest.py
rubenlozanoaht3m/DataDogm
cd605e8072cca31e8418830c3300657ae2fa5b16
[ "Apache-2.0" ]
715
2019-01-24T10:52:03.000Z
2019-10-31T12:19:22.000Z
python/federatedml/feature/hetero_feature_binning/hetero_binning_guest.py
rubenlozanoaht3m/DataDogm
cd605e8072cca31e8418830c3300657ae2fa5b16
[ "Apache-2.0" ]
270
2019-02-11T02:57:36.000Z
2019-08-29T11:22:33.000Z
python/federatedml/feature/hetero_feature_binning/hetero_binning_guest.py
rubenlozanoaht3m/DataDogm
cd605e8072cca31e8418830c3300657ae2fa5b16
[ "Apache-2.0" ]
200
2019-01-26T14:21:35.000Z
2019-11-01T01:14:36.000Z
# # Copyright 2019 The FATE 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 appli...
49.334507
119
0.633716
64167e853825309c41ef17212952c5b95180699c
4,064
py
Python
kubernetes/test/test_custom_objects_api.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_custom_objects_api.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_custom_objects_api.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 """ from __future__ import absolute_import import unittest import kube...
22.831461
124
0.673228
2c1fbeb0e90e2e3f6a1855363944d57ff2c3056e
803
py
Python
examples/Apriori_TEST.py
ProblemTryer/MachineLearning
e3a75d787078da2a03ca1b824a0c319e3020a4cd
[ "Apache-2.0" ]
1
2021-05-11T05:05:29.000Z
2021-05-11T05:05:29.000Z
examples/Apriori_TEST.py
ProblemTryer/MachineLearning
e3a75d787078da2a03ca1b824a0c319e3020a4cd
[ "Apache-2.0" ]
null
null
null
examples/Apriori_TEST.py
ProblemTryer/MachineLearning
e3a75d787078da2a03ca1b824a0c319e3020a4cd
[ "Apache-2.0" ]
null
null
null
""" @ Filename: Apriori_TEST.py @ Author: Danc1elion @ Create Date: 2019-05-28 @ Update Date: 2019-05-31 @ Description: Implement Apriori_TEST """ from AssociationAnalysis import Apriori import numpy as np import pandas as pd import time trainData = [['bread', 'milk', 'vegetable', 'fruit', ...
30.884615
83
0.589041
0723441feaf23343514e031edbc0f847df144e6e
7,630
py
Python
sdk/python/pulumi_aws/servicequotas/get_service_quota.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/servicequotas/get_service_quota.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/servicequotas/get_service_quota.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
39.947644
342
0.667497
258aa8ead1ccab94b35b82fc5b2d676e715d2c1f
2,054
py
Python
salt/executors/sudo.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
5
2017-02-07T05:39:29.000Z
2020-06-13T02:07:33.000Z
salt/executors/sudo.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/executors/sudo.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
11
2017-01-26T19:36:29.000Z
2021-12-11T07:54:16.000Z
# -*- coding: utf-8 -*- ''' Sudo executor module ''' # Import python libs from __future__ import absolute_import, print_function, unicode_literals # Import salt libs import salt.utils.json import salt.utils.path import salt.syspaths from salt.ext import six from salt.ext.six.moves import shlex_quote as _cmd_quote __...
25.675
83
0.621714
cd5ece1d76746855e060929f7693e08840ae3ae9
16,254
py
Python
sdk/python/pulumi_azure_nextgen/cdn/v20190415/endpoint.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/cdn/v20190415/endpoint.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/cdn/v20190415/endpoint.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
55.474403
827
0.685308
46e49334c34fdb71be2db28711d497171703752a
16,078
py
Python
elevenclock/lang/lang_cs.py
mfpx/ElevenClock
9a7dec3654b94c97fffe10f91d8669645413852c
[ "Apache-2.0" ]
null
null
null
elevenclock/lang/lang_cs.py
mfpx/ElevenClock
9a7dec3654b94c97fffe10f91d8669645413852c
[ "Apache-2.0" ]
null
null
null
elevenclock/lang/lang_cs.py
mfpx/ElevenClock
9a7dec3654b94c97fffe10f91d8669645413852c
[ "Apache-2.0" ]
null
null
null
# INSTRUCTIONS # Translate the text and write it between the " # EXAMPLE: original -> "This text is in english: value {0}" # translation -> "Tento text je v angličtině: hodnota {0}" # So it would look like: "ORIGINAL_TEXT" : "TRANSLATED_TEXT", # If you see sth like {0}, {1}, maintain it on t...
68.127119
367
0.662209
ad4dbbfa82965cf582ef0646ff16a51fb5c4d6b6
854
py
Python
stylemotery/ast_generators/DefaultPythonAstGenerator.py
ml-in-programming/ml-on-source-code-models
28f206afcda761320550cefdd53a3f89d206f82f
[ "Apache-2.0" ]
3
2020-07-05T22:21:00.000Z
2021-07-06T08:32:13.000Z
stylemotery/ast_generators/DefaultPythonAstGenerator.py
ml-in-programming/ml-on-source-code-models
28f206afcda761320550cefdd53a3f89d206f82f
[ "Apache-2.0" ]
null
null
null
stylemotery/ast_generators/DefaultPythonAstGenerator.py
ml-in-programming/ml-on-source-code-models
28f206afcda761320550cefdd53a3f89d206f82f
[ "Apache-2.0" ]
3
2019-11-20T14:16:12.000Z
2020-07-05T22:21:02.000Z
import ast class DefaultPythonAstGenerator: NONE = "None" def __init__(self) -> None: super().__init__() self.node_types = [] for x in dir(ast): try: if isinstance(ast.__getattribute__(x)(), ast.AST): self.node_types.append(x) ...
29.448276
79
0.556206
ad34f12c11dd75cb49404833309a57472c7c8a59
2,096
py
Python
projetdrone-ShuttleControll/shuttleFlightcontroller.py
mariusweiler/raspberry-phantom2
39e9a85e6a9163618e4f49402f89dbdf6111dc9f
[ "MIT" ]
null
null
null
projetdrone-ShuttleControll/shuttleFlightcontroller.py
mariusweiler/raspberry-phantom2
39e9a85e6a9163618e4f49402f89dbdf6111dc9f
[ "MIT" ]
null
null
null
projetdrone-ShuttleControll/shuttleFlightcontroller.py
mariusweiler/raspberry-phantom2
39e9a85e6a9163618e4f49402f89dbdf6111dc9f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import de la fonction permettant de detecter une personne # et de renvoyer ses coordonnées from shuttlePersondetection import persondetection # import des fonctions pour la gestion des capteurs from shuttleCaptorManagement import * # impor de la class pour envoyer des donnes a mission control ...
34.360656
171
0.711832
0ae2e6c73d9aac922171a463c1160f05d9ae3017
4,241
py
Python
azure-polaris-annotate-pr.py
synopsys-sig-community/synopsys-azure-tools
4c1eb026f543c6df5b92e3690cca16018423bc3e
[ "Apache-2.0" ]
1
2021-12-03T22:19:25.000Z
2021-12-03T22:19:25.000Z
azure-polaris-annotate-pr.py
synopsys-sig-community/synopsys-azure-tools
4c1eb026f543c6df5b92e3690cca16018423bc3e
[ "Apache-2.0" ]
null
null
null
azure-polaris-annotate-pr.py
synopsys-sig-community/synopsys-azure-tools
4c1eb026f543c6df5b92e3690cca16018423bc3e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import json import sys import os import argparse import urllib import glob import requests import base64 # Parse command line arguments parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, description='Post Coverity issue summary to Azure Repos Pull Request ...
34.479675
176
0.735204
4c3858ebb549d252e37073e6e03df4847c9eefa0
56
py
Python
kubee2etests/exceptions.py
RoseTeague/kube-e2etestapp
210808bcdc585005d59a2fac9223c6a2125931de
[ "Apache-2.0" ]
3
2018-04-10T13:03:10.000Z
2020-02-15T07:03:35.000Z
kubee2etests/exceptions.py
RoseTeague/kube-e2etestapp
210808bcdc585005d59a2fac9223c6a2125931de
[ "Apache-2.0" ]
10
2018-04-12T13:10:01.000Z
2019-05-03T14:21:49.000Z
kubee2etests/exceptions.py
RoseTeague/kube-e2etestapp
210808bcdc585005d59a2fac9223c6a2125931de
[ "Apache-2.0" ]
3
2018-04-19T13:46:59.000Z
2019-02-26T17:22:32.000Z
class PrerequisiteMissingException(Exception): pass
18.666667
46
0.821429
a6ab6500628927f29e8c5ccd0cfa0dbb3726240e
2,688
py
Python
logdevice/ops/ldops/util/convert.py
zhengxiaochuan-3/LogDevice
01e2302a382db1d87f934e305c8cc74ffc0a24a4
[ "BSD-3-Clause" ]
1
2019-12-18T09:07:45.000Z
2019-12-18T09:07:45.000Z
logdevice/ops/ldops/util/convert.py
zhengxiaochuan-3/LogDevice
01e2302a382db1d87f934e305c8cc74ffc0a24a4
[ "BSD-3-Clause" ]
null
null
null
logdevice/ops/ldops/util/convert.py
zhengxiaochuan-3/LogDevice
01e2302a382db1d87f934e305c8cc74ffc0a24a4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # pyre-strict # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. """ ldops.util.convert ~~~~~~~~~~~ A collection of helpful conversion util...
29.866667
80
0.687872
359aa679367cf28d7e936437cc4517dbfee79e07
6,423
py
Python
brainio/lookup.py
dapello/brainio
f8a218f9e796e6eea48edcd67d691c00a9bc5e07
[ "MIT" ]
1
2022-02-04T21:34:07.000Z
2022-02-04T21:34:07.000Z
brainio/lookup.py
dapello/brainio
f8a218f9e796e6eea48edcd67d691c00a9bc5e07
[ "MIT" ]
2
2021-07-23T17:05:30.000Z
2021-09-27T23:38:56.000Z
brainio/lookup.py
dapello/brainio
f8a218f9e796e6eea48edcd67d691c00a9bc5e07
[ "MIT" ]
8
2021-07-30T15:08:54.000Z
2022-03-10T02:04:40.000Z
import hashlib import logging from pathlib import Path import entrypoints import numpy as np import pandas as pd LOOKUP_SOURCE = "lookup_source" ENTRYPOINT = "brainio_lookups" TYPE_ASSEMBLY = 'assembly' TYPE_STIMULUS_SET = 'stimulus_set' CATALOG_PATH_KEY = "catalog_path" _catalogs = {} _concat_catalogs = None _logge...
36.702857
127
0.682703
cb7fcc0b6523329864c122eabcea5bdba4fd84a7
141
py
Python
kelte/procgen/encounters/api.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
kelte/procgen/encounters/api.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
kelte/procgen/encounters/api.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
from pathlib import Path def populate_encounters(): for path in (Path(__file__).parent / 'data').glob('**/*.yml'): print(path)
20.142857
66
0.638298
06f80a8cf904e3f4e6b55f1fa36b981bbbb78e6e
1,631
py
Python
setup.py
eacooper/BerkeleyVisionStats
39192eca0ade05f8a1473cd8032b08c2a1c19e7b
[ "MIT" ]
null
null
null
setup.py
eacooper/BerkeleyVisionStats
39192eca0ade05f8a1473cd8032b08c2a1c19e7b
[ "MIT" ]
12
2015-01-06T19:16:17.000Z
2015-01-14T02:03:23.000Z
setup.py
eacooper/BerkeleyVisionStats
39192eca0ade05f8a1473cd8032b08c2a1c19e7b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # setup.py build file DESCRIPTION = "BinOcular Retinal Image Statistics" LONG_DESCRIPTION = """\ Berkeley BORIS is a project to analyze the statistics of the visual world during natural viewing. """ NAME = "boris" AUTHOR = "Bill Sprague and Emily Cooper" AUTHOR_EMAIL = "bill.sprague@berkeley.edu...
36.244444
74
0.57756
dc13ad02d854c65f8e83630b273733f6f7d417b9
1,208
py
Python
CustomMobjects/CircleCurvy.py
piakos314/mathmizo
c565ea802cca30ac64b66282f11e8ba60b1ad669
[ "MIT" ]
1
2021-06-07T08:22:26.000Z
2021-06-07T08:22:26.000Z
CustomMobjects/CircleCurvy.py
piakos314/mathmizo
c565ea802cca30ac64b66282f11e8ba60b1ad669
[ "MIT" ]
null
null
null
CustomMobjects/CircleCurvy.py
piakos314/mathmizo
c565ea802cca30ac64b66282f11e8ba60b1ad669
[ "MIT" ]
1
2021-06-07T14:08:53.000Z
2021-06-07T14:08:53.000Z
from manim import * ''' class CircleCurvy(VMobject): def __init__( self, theta = 2*PI, step_size =0.05, amplitude = 0.34, radius = 3.1, frequency =4, phase = 0, **kwargs): VMobject.__init__(self, **kwargs) theta = np.arange(0, theta+ste...
32.648649
80
0.51904