hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a07ac0d9bb2955a02af37b63e53a1f87c387621
2,479
py
Python
tests/test_toolbox.py
lejmr/prometheus-ecs-discoverer
d4968c6e3f8588a9f64157462a82420d099ac583
[ "Apache-2.0" ]
12
2020-08-06T15:17:47.000Z
2021-10-06T05:21:06.000Z
tests/test_toolbox.py
lejmr/prometheus-ecs-discoverer
d4968c6e3f8588a9f64157462a82420d099ac583
[ "Apache-2.0" ]
11
2020-08-01T22:13:29.000Z
2021-10-08T06:17:34.000Z
tests/test_toolbox.py
lejmr/prometheus-ecs-discoverer
d4968c6e3f8588a9f64157462a82420d099ac583
[ "Apache-2.0" ]
3
2021-04-19T20:47:10.000Z
2021-10-01T14:29:09.000Z
import pytest from prometheus_ecs_discoverer import toolbox def test_chunk_list_with_even_size(): big_list = list(range(100)) chunks = toolbox.chunk_list(big_list, 10) assert len(chunks) == 10 for chunk in chunks: assert len(chunk) <= 10 def test_chunk_list_with_uneven_size(): big_list ...
26.37234
88
0.567568
4a07ac850b9e6883d26af6f9d28ab85e817e612e
10,183
py
Python
crf-seq/sets/sets/2/seq_detect_1o.py
roma-patel/lstm-crf
25012b1218b60090f467fe5ed5a15d7a28b3134c
[ "Apache-2.0" ]
1
2020-02-24T06:25:17.000Z
2020-02-24T06:25:17.000Z
crf-seq/sets/sets/2/seq_detect_1o.py
roma-patel/lstm-crf
25012b1218b60090f467fe5ed5a15d7a28b3134c
[ "Apache-2.0" ]
null
null
null
crf-seq/sets/sets/2/seq_detect_1o.py
roma-patel/lstm-crf
25012b1218b60090f467fe5ed5a15d7a28b3134c
[ "Apache-2.0" ]
null
null
null
import pycrfsuite import sklearn from itertools import chain from sklearn.metrics import classification_report, confusion_matrix from sklearn.preprocessing import LabelBinarizer import re import json annotypes = ['Participants', 'Intervention', 'Outcome'] annotype = annotypes[2] path = '/nlp/data/romap/crf/' #path = '...
38.426415
130
0.578022
4a07ac85e1dd6a28b82dfdeb1af6ecb560da1b4f
1,588
py
Python
tests/test_match.py
atagen/xparser
35e6d5aecd7a7c775309a206e457ee3a00c3fc53
[ "MIT" ]
2
2018-05-28T20:16:18.000Z
2021-06-30T02:39:52.000Z
tests/test_match.py
atagen/xparser
35e6d5aecd7a7c775309a206e457ee3a00c3fc53
[ "MIT" ]
4
2021-01-28T14:05:17.000Z
2021-12-15T23:05:09.000Z
tests/test_match.py
atagen/xparser
35e6d5aecd7a7c775309a206e457ee3a00c3fc53
[ "MIT" ]
2
2019-06-24T20:56:34.000Z
2021-12-15T23:08:51.000Z
import pytest import xrp.match class Test_MatchResource: @pytest.mark.parametrize('resource_id,components', [ ('*color0', ['*', 'color0']), ('?.color0', ['?', 'color0']), ('URxvt*foreground', ['URxvt', '*', 'foreground']), ('comp_a.*.comp_d.attribute', ['comp_a', '*', 'comp_d', '...
38.731707
89
0.604534
4a07acc95882ce20e1dbf86d22afb6b05e9a8741
12,581
py
Python
notus/gtk_dbus/gtk_toaster.py
cnheider/notus
f284132e87d7b274c3ea239f216959987e670910
[ "Apache-2.0" ]
null
null
null
notus/gtk_dbus/gtk_toaster.py
cnheider/notus
f284132e87d7b274c3ea239f216959987e670910
[ "Apache-2.0" ]
null
null
null
notus/gtk_dbus/gtk_toaster.py
cnheider/notus
f284132e87d7b274c3ea239f216959987e670910
[ "Apache-2.0" ]
2
2021-02-04T15:04:16.000Z
2021-02-04T15:05:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import gi gi.require_version("Gtk", "3.0") from gi.repository import GdkPixbuf import time import dbus __author__ = "Christian Heider Nielsen" __doc__ = ( "Based on the notifications spec at: http://developer.gnome.org/notification-spec/" ) __version__ = "0.0.1" EX...
30.835784
111
0.642636
4a07ad6444cdc64ed80ffb255dddff83b553abea
147,637
py
Python
python/tvm/relay/frontend/pytorch.py
T-head-Semi/tvm
c1b8e06685c92fb7cacbe989e147b0622aee4503
[ "Apache-2.0" ]
4
2021-10-19T06:22:55.000Z
2022-03-17T22:55:12.000Z
python/tvm/relay/frontend/pytorch.py
T-head-Semi/tvm
c1b8e06685c92fb7cacbe989e147b0622aee4503
[ "Apache-2.0" ]
null
null
null
python/tvm/relay/frontend/pytorch.py
T-head-Semi/tvm
c1b8e06685c92fb7cacbe989e147b0622aee4503
[ "Apache-2.0" ]
2
2021-10-19T03:28:37.000Z
2022-03-17T22:55:14.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...
37.566667
120
0.579753
4a07ade329559516e35a4362e760d0684458baef
1,977
py
Python
bindings/python/doc-converter/test/run.py
sys-bio/sbml2matlab
3e957c3508f85e55cfd4564230240467a55d9c27
[ "BSD-3-Clause" ]
1
2021-03-25T23:13:45.000Z
2021-03-25T23:13:45.000Z
bindings/python/doc-converter/test/run.py
luciansmith/sbml2matlab
bcc2ec734caacb3b30556d527f2bf8a6f9f57950
[ "BSD-3-Clause" ]
2
2016-01-19T18:02:13.000Z
2016-02-13T23:07:45.000Z
bindings/python/doc-converter/test/run.py
sys-bio/sbml2matlab
3e957c3508f85e55cfd4564230240467a55d9c27
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ## ## @file run.py ## @brief Unit test runner for libSBML Python doc converter ## @author Mike Hucka ## ## <!-------------------------------------------------------------------------- ## This file is part of libSBML. Please visit http://sbml.org for more ## information about SBML, and the ...
39.54
79
0.682347
4a07ae326e068ff0b206e445bee89e06a314dacb
3,619
py
Python
acapy_client/models/indy_ge_proof.py
dbluhm/acapy-client
d92ef607ba2ff1152ec15429f2edb20976991424
[ "Apache-2.0" ]
4
2021-08-05T09:20:34.000Z
2021-08-08T19:37:29.000Z
acapy_client/models/indy_ge_proof.py
dbluhm/acapy-client
d92ef607ba2ff1152ec15429f2edb20976991424
[ "Apache-2.0" ]
null
null
null
acapy_client/models/indy_ge_proof.py
dbluhm/acapy-client
d92ef607ba2ff1152ec15429f2edb20976991424
[ "Apache-2.0" ]
2
2021-08-12T18:18:45.000Z
2021-08-14T13:22:28.000Z
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.indy_ge_proof_pred import IndyGEProofPred from ..models.indy_ge_proof_r import IndyGEProofR from ..models.indy_ge_proof_t import IndyGEProofT from ..models.indy_ge_proof_u import IndyGEProofU from ..types import UNSET, Unset T = TypeV...
28.952
77
0.581376
4a07af55d008c61f7b313b89f3c6b29773d9f8c9
70,615
py
Python
keras/backend/theano_backend.py
bjerva/keras
8d34e8a362f516b09a6e9f52f07264c9f1e088a9
[ "MIT" ]
null
null
null
keras/backend/theano_backend.py
bjerva/keras
8d34e8a362f516b09a6e9f52f07264c9f1e088a9
[ "MIT" ]
null
null
null
keras/backend/theano_backend.py
bjerva/keras
8d34e8a362f516b09a6e9f52f07264c9f1e088a9
[ "MIT" ]
1
2020-06-11T02:11:58.000Z
2020-06-11T02:11:58.000Z
import theano from theano import tensor as T from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams from theano.tensor.signal import pool from theano.tensor.nnet import conv3d2d from theano.printing import Print try: import theano.sparse as th_sparse_module except ImportError: th_sparse_module = ...
33.787081
125
0.601572
4a07b003c8d845afc73bfa6e59ebfbaf3584af25
947
py
Python
source/lib/MediaReplayEngineWorkflowHelper/setup.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
22
2021-11-24T01:23:07.000Z
2022-03-26T23:24:46.000Z
source/lib/MediaReplayEngineWorkflowHelper/setup.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
null
null
null
source/lib/MediaReplayEngineWorkflowHelper/setup.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
3
2021-12-10T09:42:51.000Z
2022-02-16T02:22:50.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="Media Replay Engine Workflow Helper", version="1.0.0", author="Aravindharaj Rajen...
31.566667
126
0.695882
4a07b014b3f45af3b623d5626c483a845b5faa88
112
py
Python
__init__.py
sheepmen/pbase
6ea54bea91cd9f32cbf73899cbb01f7dddd434ce
[ "MIT" ]
null
null
null
__init__.py
sheepmen/pbase
6ea54bea91cd9f32cbf73899cbb01f7dddd434ce
[ "MIT" ]
null
null
null
__init__.py
sheepmen/pbase
6ea54bea91cd9f32cbf73899cbb01f7dddd434ce
[ "MIT" ]
1
2018-07-26T01:42:02.000Z
2018-07-26T01:42:02.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- from connection import Connection from pool import ConnectionPool
18.666667
33
0.741071
4a07b113ac259650f9a915f5dd3a8f391e0d877a
204
py
Python
samcli/lib/utils/defaults.py
torresxb1/aws-sam-cli
d307f2eb6e1a91a476a5e2ca6070f974b0c913f1
[ "BSD-2-Clause", "Apache-2.0" ]
2,959
2018-05-08T21:48:56.000Z
2020-08-24T14:35:39.000Z
samcli/lib/utils/defaults.py
torresxb1/aws-sam-cli
d307f2eb6e1a91a476a5e2ca6070f974b0c913f1
[ "BSD-2-Clause", "Apache-2.0" ]
1,469
2018-05-08T22:44:28.000Z
2020-08-24T20:19:24.000Z
samcli/lib/utils/defaults.py
torresxb1/aws-sam-cli
d307f2eb6e1a91a476a5e2ca6070f974b0c913f1
[ "BSD-2-Clause", "Apache-2.0" ]
642
2018-05-08T22:09:19.000Z
2020-08-17T09:04:37.000Z
""" Contains helpers for providing default values """ from botocore.session import get_session def get_default_aws_region() -> str: return get_session().get_config_variable("region") or "us-east-1"
22.666667
69
0.759804
4a07b11f571514006a50bc61964c8db10ad02fde
464
py
Python
data/scripts/templates/object/draft_schematic/clothing/shared_clothing_ith_hat_casual_01.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/draft_schematic/clothing/shared_clothing_ith_hat_casual_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/draft_schematic/clothing/shared_clothing_ith_hat_casual_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/clothing/shared_clothing_ith_hat_casual_01.iff" result.att...
27.294118
90
0.737069
4a07b1416e99ca56cc5bac659f688589c43cae82
1,914
py
Python
ssidstat/ssidstatd/ssidstatd.py
putrasattvika/ssidstat
90bc4a52702ec314a0385f669d68446fa46fe153
[ "Apache-2.0" ]
null
null
null
ssidstat/ssidstatd/ssidstatd.py
putrasattvika/ssidstat
90bc4a52702ec314a0385f669d68446fa46fe153
[ "Apache-2.0" ]
null
null
null
ssidstat/ssidstatd/ssidstatd.py
putrasattvika/ssidstat
90bc4a52702ec314a0385f669d68446fa46fe153
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 import monitor import argparse import ssidstat __DEFAULT_INTERVAL = 10 __DEFAULT_PID_FILE = '/var/lib/ssidstat/ssidstatd.pid' __DEFAULT_OUT_FILE = '/var/lib/ssidstat/ssidstatd.out' __DEFAULT_ERR_FILE = '/var/lib/ssidstat/ssidstatd.err' __DEFAULT_DB_FILE = '/var/lib/ssidstat/ssidstatd.db' ...
38.28
144
0.757576
4a07b19861e12b9191d5e01b29c82f7c59eb2ce0
3,552
py
Python
ST_DM/KDD2021-MSTPAC/code/ST-PAC/frame/core/dataset_reader.py
zhangyimi/Research
866f91d9774a38d205d6e9a3b1ee6293748261b3
[ "Apache-2.0" ]
1,319
2020-02-14T10:42:07.000Z
2022-03-31T15:42:18.000Z
ST_DM/KDD2021-MSTPAC/code/ST-PAC/frame/core/dataset_reader.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
192
2020-02-14T02:53:34.000Z
2022-03-31T02:25:48.000Z
ST_DM/KDD2021-MSTPAC/code/ST-PAC/frame/core/dataset_reader.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
720
2020-02-14T02:12:38.000Z
2022-03-31T12:21:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # Copyright (c) 2019 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 Lic...
32.290909
100
0.593468
4a07b2a357f2014f411627b7a49fe1edaea23259
14,976
py
Python
master/pyext/src/validation/Report.py
salilab/IHMValidation
ddf1a080a4b7f66c2f067312f5f4a5c6584848d1
[ "MIT" ]
null
null
null
master/pyext/src/validation/Report.py
salilab/IHMValidation
ddf1a080a4b7f66c2f067312f5f4a5c6584848d1
[ "MIT" ]
23
2020-12-09T22:27:29.000Z
2022-03-30T18:01:43.000Z
master/pyext/src/validation/Report.py
salilab/IHMValidation
ddf1a080a4b7f66c2f067312f5f4a5c6584848d1
[ "MIT" ]
1
2022-03-21T22:55:24.000Z
2022-03-21T22:55:24.000Z
################################### # Script : # 1) Contains class to write dictionary # for jinja2/write HTML files/PDF files # and supplementary table # # ganesans - Salilab - UCSF # ganesans@salilab.org ################################### import pytz import jinja2 import pandas as pd import sys,os,glob import nump...
48.466019
213
0.744324
4a07b387c1938b173c936db8cac73e19817fbbe6
98,974
py
Python
manim/mobject/geometry.py
vagrid/manim
723e645abce9c86cdf40c98959157e6ff93896a0
[ "MIT" ]
null
null
null
manim/mobject/geometry.py
vagrid/manim
723e645abce9c86cdf40c98959157e6ff93896a0
[ "MIT" ]
null
null
null
manim/mobject/geometry.py
vagrid/manim
723e645abce9c86cdf40c98959157e6ff93896a0
[ "MIT" ]
1
2021-08-23T06:57:07.000Z
2021-08-23T06:57:07.000Z
r"""Mobjects that are simple geometric shapes. Examples -------- .. manim:: UsefulAnnotations :save_last_frame: class UsefulAnnotations(Scene): def construct(self): m0 = Dot() m1 = AnnotationDot() m2 = LabeledDot("ii") m3 = LabeledDot(MathTex(r"\alpha")...
32.707865
148
0.565997
4a07b3da1e3175e195466aa9e2b4a84af426d6e7
2,094
py
Python
src/api/python/pxapi/utils.py
hangqiu/pixie
1dd4af47d40ff856c4d52a1d6de81f78a76ff31e
[ "Apache-2.0" ]
1,821
2020-04-08T00:45:27.000Z
2021-09-01T14:56:25.000Z
src/api/python/pxapi/utils.py
hangqiu/pixie
1dd4af47d40ff856c4d52a1d6de81f78a76ff31e
[ "Apache-2.0" ]
142
2020-04-09T06:23:46.000Z
2021-08-24T06:02:12.000Z
src/api/python/pxapi/utils.py
hangqiu/pixie
1dd4af47d40ff856c4d52a1d6de81f78a76ff31e
[ "Apache-2.0" ]
105
2021-09-08T10:26:50.000Z
2022-03-29T09:13:36.000Z
# Copyright 2018- The Pixie 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 agreed to in w...
32.71875
81
0.708691
4a07b46b70027acb016053375d1c103fc1cf1a20
2,537
py
Python
stock/tushare_ShareBonus.py
vyouzhis/energy
c9c9b0c7dc2e85a093fb531f80c3aa6f458e8b6e
[ "Apache-2.0" ]
null
null
null
stock/tushare_ShareBonus.py
vyouzhis/energy
c9c9b0c7dc2e85a093fb531f80c3aa6f458e8b6e
[ "Apache-2.0" ]
null
null
null
stock/tushare_ShareBonus.py
vyouzhis/energy
c9c9b0c7dc2e85a093fb531f80c3aa6f458e8b6e
[ "Apache-2.0" ]
1
2019-07-19T03:03:43.000Z
2019-07-19T03:03:43.000Z
#!/usr/bin/python2 # -*- coding: utf-8 -*- # mongo_data # # use mongodb pyalgotrade and sz50 # # vim:fileencoding=utf-8:sw=4:et -*- coding: utf-8 -*- import json import sys import pandas as pd import lxml.html from lxml import etree from pandas.compat import StringIO import _index from energy.db.emongo import emo...
22.855856
99
0.558928
4a07b5f44c91cfdddf1e5d87905a7ef961658a62
3,290
py
Python
python/sqlflow_submitter/pai/utils.py
MATRIX4284/sqlflow
eba7efd0d23c26c9c7f93526faddeba24ea3274f
[ "Apache-2.0" ]
1
2019-12-24T01:38:17.000Z
2019-12-24T01:38:17.000Z
python/sqlflow_submitter/pai/utils.py
MATRIX4284/sqlflow
eba7efd0d23c26c9c7f93526faddeba24ea3274f
[ "Apache-2.0" ]
null
null
null
python/sqlflow_submitter/pai/utils.py
MATRIX4284/sqlflow
eba7efd0d23c26c9c7f93526faddeba24ea3274f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The SQLFlow Authors. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
51.40625
123
0.712462
4a07b7478e174cdc3445431af833137e81ea847f
958
py
Python
fHandleConnectionToServerTerminated.py
SkyLined/HTTP
f4e895508494dc007acd3ad011465a174e12ad88
[ "CC-BY-4.0" ]
2
2020-06-25T03:51:05.000Z
2021-01-30T07:27:08.000Z
fHandleConnectionToServerTerminated.py
SkyLined/HTTP
f4e895508494dc007acd3ad011465a174e12ad88
[ "CC-BY-4.0" ]
null
null
null
fHandleConnectionToServerTerminated.py
SkyLined/HTTP
f4e895508494dc007acd3ad011465a174e12ad88
[ "CC-BY-4.0" ]
null
null
null
from mConsole import oConsole; from mColorsAndChars import *; from mCP437 import fsCP437FromBytesString; from mNotProvided import *; def fHandleConnectionToServerTerminated(oClient, oConnection, sbHostnameOrIPAddress): # We only show this message if the user provided a hostname instead of an IP address. sHostnam...
36.846154
89
0.723382
4a07b773ec3db9836ede919159be18ee26791d32
7,209
py
Python
Cryptography/3.Password Cracking/passDriver.py
swethapraba/SeniorYearCSElectives
67b989ffecd5cf7508258783b0ec26468cdf94fc
[ "CNRI-Python" ]
null
null
null
Cryptography/3.Password Cracking/passDriver.py
swethapraba/SeniorYearCSElectives
67b989ffecd5cf7508258783b0ec26468cdf94fc
[ "CNRI-Python" ]
null
null
null
Cryptography/3.Password Cracking/passDriver.py
swethapraba/SeniorYearCSElectives
67b989ffecd5cf7508258783b0ec26468cdf94fc
[ "CNRI-Python" ]
null
null
null
#issues: it's not actually finding a match :( so the decryption matrix never gets set right :( """ Assignment: Instructions from Blackboard You have breached security in the TJ syslab and acquired the passwords.txt file for the class of 2018. The format of the file is userid encPwd where encPwd is an encryption of th...
51.863309
148
0.746012
4a07b88e142893dd3e525ab91da5a15878f25da1
435
py
Python
output/models/ms_data/datatypes/facets/g_year_month/g_year_month_pattern001_xsd/g_year_month_pattern001.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/datatypes/facets/g_year_month/g_year_month_pattern001_xsd/g_year_month_pattern001.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/datatypes/facets/g_year_month/g_year_month_pattern001_xsd/g_year_month_pattern001.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional @dataclass class FooType: class Meta: name = "fooType" foo: Optional[str] = field( default=None, metadata={ "type": "Element", "namespace": "", "required": True, "patte...
17.4
44
0.51954
4a07b9968a1aa701265e61983f5fb36991703d21
1,709
py
Python
app/core/migrations/0001_initial.py
miguelcdpmarques/django-recipes-api
0f318809c03644d917e1aa68d8d34a3fd3b4b613
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
miguelcdpmarques/django-recipes-api
0f318809c03644d917e1aa68d8d34a3fd3b4b613
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
miguelcdpmarques/django-recipes-api
0f318809c03644d917e1aa68d8d34a3fd3b4b613
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-04-22 17:38 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.264706
266
0.63897
4a07ba6b408e0030c48f5ea193b532796ebe32da
9,234
py
Python
src/briefcase/platforms/android/gradle.py
pybee/briefcase
d7e9aa7bf15aa2abbc71e97aef9bea287129fdaa
[ "BSD-3-Clause" ]
522
2015-07-28T16:06:18.000Z
2019-03-25T17:16:55.000Z
src/briefcase/platforms/android/gradle.py
pybee/briefcase
d7e9aa7bf15aa2abbc71e97aef9bea287129fdaa
[ "BSD-3-Clause" ]
154
2015-09-17T02:50:55.000Z
2019-03-22T07:10:34.000Z
src/briefcase/platforms/android/gradle.py
pybee/briefcase
d7e9aa7bf15aa2abbc71e97aef9bea287129fdaa
[ "BSD-3-Clause" ]
105
2015-09-25T08:43:26.000Z
2019-03-25T15:59:27.000Z
import re import subprocess from briefcase.commands import ( BuildCommand, CreateCommand, PackageCommand, PublishCommand, RunCommand, UpdateCommand, ) from briefcase.config import BaseConfig, parsed_version from briefcase.exceptions import BriefcaseCommandError from briefcase.integrations.andro...
34.327138
87
0.615551
4a07bb353a629c0e2742aa7f35c3e16a7ab45b57
19,549
py
Python
thelma/repositories/rdb/mappers/__init__.py
fogathmann/TheLMA
ac330a0005da4fea2f1387da9ff9938611ad1481
[ "MIT" ]
1
2020-07-12T22:47:58.000Z
2020-07-12T22:47:58.000Z
thelma/repositories/rdb/mappers/__init__.py
papagr/TheLMA
d2dc7a478ee5d24ccf3cc680888e712d482321d0
[ "MIT" ]
null
null
null
thelma/repositories/rdb/mappers/__init__.py
papagr/TheLMA
d2dc7a478ee5d24ccf3cc680888e712d482321d0
[ "MIT" ]
1
2020-07-12T22:40:36.000Z
2020-07-12T22:40:36.000Z
from thelma.repositories.rdb.mappers import amplicondesign from thelma.repositories.rdb.mappers import antimirdesign from thelma.repositories.rdb.mappers import barcodedlocation from thelma.repositories.rdb.mappers import barcodedlocationrack from thelma.repositories.rdb.mappers import barcodedlocationtype from thelma....
59.239394
79
0.705765
4a07bb4334769c21fc325a37522548e1626d2d04
231
py
Python
caffshop/webshop/filters.py
Jezus-es-a-haverok/CaffShop
222f9945e77228ecc8fa73c9bb4fad8799af0825
[ "MIT" ]
null
null
null
caffshop/webshop/filters.py
Jezus-es-a-haverok/CaffShop
222f9945e77228ecc8fa73c9bb4fad8799af0825
[ "MIT" ]
null
null
null
caffshop/webshop/filters.py
Jezus-es-a-haverok/CaffShop
222f9945e77228ecc8fa73c9bb4fad8799af0825
[ "MIT" ]
null
null
null
import django_filters from .models import CAFF class CAFFFilter(django_filters.FilterSet): class Meta: model = CAFF fields = { 'creator': ['icontains'], 'name': ['icontains'], }
21
43
0.5671
4a07bb47dd2f03440f474b08d1d2d90cac942e8f
7,182
py
Python
python/prepare_debian.py
zarmomin/mrpt
1baff7cf8ec9fd23e1a72714553bcbd88c201966
[ "BSD-3-Clause" ]
1
2020-02-01T15:43:00.000Z
2020-02-01T15:43:00.000Z
python/prepare_debian.py
gao-ouyang/mrpt
4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7
[ "BSD-3-Clause" ]
1
2017-11-30T19:51:29.000Z
2018-02-01T08:15:36.000Z
python/prepare_debian.py
gao-ouyang/mrpt
4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7
[ "BSD-3-Clause" ]
2
2017-01-12T02:08:10.000Z
2018-02-14T23:05:10.000Z
#!/usr/bin/env python import argparse import os import platform import sys import shutil import subprocess DEFAULT_MRPT_VERSION = '1:1.3.0-1' # args parser = argparse.ArgumentParser() parser.add_argument('-b', '--build_dir', help='Path to the build directory.') parser.add_argument('-m', '--mrpt_version', help='The M...
35.205882
160
0.699248
4a07bbb5556699727833cc32456b99614745a791
509
py
Python
src/software/backend/backend/asgi.py
ObaraEmmanuel/votingBooth
53cc59e617e0d2b47fbefb48f6e5a096c74f1ad9
[ "MIT" ]
2
2021-06-06T05:07:34.000Z
2021-08-30T08:56:41.000Z
src/software/backend/backend/asgi.py
bytecod3/votingBooth
6a248833b34885a1d6b62b5d1ee7a60baba769e9
[ "MIT" ]
44
2021-05-24T18:43:56.000Z
2021-07-29T21:05:02.000Z
src/software/backend/backend/asgi.py
bytecod3/votingBooth
6a248833b34885a1d6b62b5d1ee7a60baba769e9
[ "MIT" ]
3
2021-06-05T19:53:32.000Z
2021-06-11T11:29:22.000Z
""" ASGI config for backend project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application import dotenv dotenv.load_dotenv( ...
22.130435
78
0.772102
4a07bc300b1d414ac6853b49f920c7bce7cf1d34
667
py
Python
app/news.py
farzana583/News-API
68744239399e79bcd1fceb9d58e825982b359dbd
[ "Unlicense" ]
1
2022-03-15T17:01:58.000Z
2022-03-15T17:01:58.000Z
app/news.py
farzana583/News-API
68744239399e79bcd1fceb9d58e825982b359dbd
[ "Unlicense" ]
null
null
null
app/news.py
farzana583/News-API
68744239399e79bcd1fceb9d58e825982b359dbd
[ "Unlicense" ]
null
null
null
class News: ''' News source class to define sources' objects ''' def __init__(self,id,name,description,url,category,country): self.id = id self.name = name self.description = description self.url = url self.category = category self.country = country clas...
29
86
0.626687
4a07bc91545eb2001c7957ac2bdf1058054766e3
6,731
py
Python
util/image_comp_tool.py
deay0ung/HalloPy
652902ed95627496d280eb48f0cef8dade76701d
[ "MIT" ]
60
2018-09-01T08:27:32.000Z
2022-03-09T21:42:54.000Z
util/image_comp_tool.py
deay0ung/HalloPy
652902ed95627496d280eb48f0cef8dade76701d
[ "MIT" ]
3
2019-06-15T10:08:25.000Z
2020-04-13T16:34:24.000Z
util/image_comp_tool.py
deay0ung/HalloPy
652902ed95627496d280eb48f0cef8dade76701d
[ "MIT" ]
24
2018-09-01T08:27:49.000Z
2021-06-15T00:14:04.000Z
# import the necessary packages from skimage.measure import compare_ssim import numpy as np import cv2 from hallopy import utils class ImageTestTool: """This class contain tools that helps test functionality""" @staticmethod def compare_imaged(img1, img2): """This function compare 2 images. ...
38.244318
120
0.576883
4a07bc9f90286e676d31f9f9a9fb46259f679a93
726
py
Python
alipay/aop/api/response/AlipayInsMarketingLifeAccessQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayInsMarketingLifeAccessQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayInsMarketingLifeAccessQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayInsMarketingLifeAccessQueryResponse(AlipayResponse): def __init__(self): super(AlipayInsMarketingLifeAccessQueryResponse, self).__init__() self._a...
27.923077
114
0.716253
4a07bcf7df785e31db1ee115a62ea9309efb4207
2,479
py
Python
rlkit/torch/url/discriminator.py
hsukyle/rlkit
613eaa1a634dd08996557cff966d3be2fa8f78a3
[ "MIT" ]
null
null
null
rlkit/torch/url/discriminator.py
hsukyle/rlkit
613eaa1a634dd08996557cff966d3be2fa8f78a3
[ "MIT" ]
null
null
null
rlkit/torch/url/discriminator.py
hsukyle/rlkit
613eaa1a634dd08996557cff966d3be2fa8f78a3
[ "MIT" ]
1
2020-10-22T05:05:48.000Z
2020-10-22T05:05:48.000Z
from rlkit.torch.networks import Mlp from torch.optim import Adam import torch.nn as nn from rlkit.torch.torch_rl_algorithm import np_to_pytorch_batch from rlkit.util.meter import AverageMeter from rlkit.torch import pytorch_util as ptu import torch from tqdm import tqdm class Discriminator(Mlp): def __init__( ...
34.430556
92
0.626462
4a07be561b737d9a7e9e84ec0ef5c73dbbbe8153
3,162
py
Python
app/recipe/tests/test_tags_api.py
havenvo/recipe-app-api
9c489ece49f7ff131549c0caf193afb8cf6a9cbe
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
havenvo/recipe-app-api
9c489ece49f7ff131549c0caf193afb8cf6a9cbe
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
havenvo/recipe-app-api
9c489ece49f7ff131549c0caf193afb8cf6a9cbe
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag, Recipe from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class Pub...
30.699029
71
0.63599
4a07be9921b5382ead26f715329997afdacaf2ec
7,745
py
Python
completed_numberplate/Main.py
supersetdashboard/eindopdracht
0d2b7f4bd9b132c823dae170dffc85451e8b2171
[ "Apache-2.0" ]
null
null
null
completed_numberplate/Main.py
supersetdashboard/eindopdracht
0d2b7f4bd9b132c823dae170dffc85451e8b2171
[ "Apache-2.0" ]
null
null
null
completed_numberplate/Main.py
supersetdashboard/eindopdracht
0d2b7f4bd9b132c823dae170dffc85451e8b2171
[ "Apache-2.0" ]
null
null
null
# Main.py import cv2 import numpy as np import os import DetectChars import DetectPlates import PossiblePlate import xlwt from xlwt import Workbook wbr = Workbook() sheet1 = wbr.add_sheet('Sheet 1') # module level variables ########################################################################## SCALA...
41.864865
162
0.577534
4a07bf6a724e005ab50605c7ba553ecde8b4ac50
6,850
py
Python
forcing/dot_in/cas6_v3_lo8b/make_dot_in.py
parkermac/LiveOcean
bef3e1e729ada1069853dd4f57f79f452b54f4fa
[ "MIT" ]
4
2015-06-09T18:53:11.000Z
2021-08-19T01:39:38.000Z
forcing/dot_in/cas6_v3_lo8b/make_dot_in.py
parkermac/LiveOcean
bef3e1e729ada1069853dd4f57f79f452b54f4fa
[ "MIT" ]
null
null
null
forcing/dot_in/cas6_v3_lo8b/make_dot_in.py
parkermac/LiveOcean
bef3e1e729ada1069853dd4f57f79f452b54f4fa
[ "MIT" ]
1
2017-03-07T01:28:49.000Z
2017-03-07T01:28:49.000Z
""" This creates and poulates directories for ROMS runs on gaggle. It is designed to work with the "BLANK" version of the .in file, replacing things like $whatever$ with meaningful values. """ import os import sys fpth = os.path.abspath('../../') if fpth not in sys.path: sys.path.append(fpth) import forcing_func...
32.159624
91
0.644088
4a07c1195a6f004b79e20eb89b6ddb058d73cf4b
370
py
Python
libunittest/test_tile.py
Shathra/puzzlib
98c63e69cb6c3de0aa3167a8834c224f7f25f6a7
[ "BSD-2-Clause" ]
1
2016-06-19T04:25:35.000Z
2016-06-19T04:25:35.000Z
libunittest/test_tile.py
Shathra/puzzlib
98c63e69cb6c3de0aa3167a8834c224f7f25f6a7
[ "BSD-2-Clause" ]
null
null
null
libunittest/test_tile.py
Shathra/puzzlib
98c63e69cb6c3de0aa3167a8834c224f7f25f6a7
[ "BSD-2-Clause" ]
null
null
null
import unittest from puzz import * class TestTile( unittest.TestCase): def test_const(self): t = Tile() self.assertEqual( t.get_value(), Tile.DEFAULT_VALUE) t = Tile(5) self.assertEqual( t.get_value(), 5) def test_set_get( self): t = Tile() t.set_value( 3) self.assertEqual( t.get_value(), 3) t.s...
18.5
54
0.678378
4a07c16e567ad2f4cf041a00a0a2539edb2409ea
3,978
py
Python
supervised_cifar10.py
luyuzhe111/simsiam
ced608e8e9ff51f431f52d7da10d25e68b516b79
[ "MIT" ]
3
2021-05-25T08:35:55.000Z
2021-08-02T02:26:06.000Z
supervised_cifar10.py
luyuzhe111/simsiam
ced608e8e9ff51f431f52d7da10d25e68b516b79
[ "MIT" ]
null
null
null
supervised_cifar10.py
luyuzhe111/simsiam
ced608e8e9ff51f431f52d7da10d25e68b516b79
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import os import argparse from models.backbones.resnet import resnet50 parser = argparse.ArgumentParser(description='PyTo...
30.366412
89
0.632227
4a07c2c03c68b56f0a4584f9d3842daa680dfd09
10,069
py
Python
report/article.py
RaphaelaHeil/Variational-Sparse-Coding
8c90d91d1e8f0d2c2534b02c580365d2e96cc812
[ "MIT" ]
48
2018-11-01T22:04:27.000Z
2021-12-08T12:16:03.000Z
report/article.py
RaphaelaHeil/Variational-Sparse-Coding
8c90d91d1e8f0d2c2534b02c580365d2e96cc812
[ "MIT" ]
3
2019-12-05T04:27:27.000Z
2020-05-22T02:46:55.000Z
report/article.py
RaphaelaHeil/Variational-Sparse-Coding
8c90d91d1e8f0d2c2534b02c580365d2e96cc812
[ "MIT" ]
5
2019-01-07T19:16:12.000Z
2021-06-02T14:52:12.000Z
# ReScience yaml parser # Released under the BSD two-clauses licence import yaml class Contributor: def __init__(self, role, name, orcid="", email="", affiliations=[]): self.role = role self.name = name self.fullname = name self.lastname = self.get_lastname(name) self.abbrv...
34.482877
80
0.500844
4a07c42037d9b9b9b66be958efb165302f00935b
1,112
py
Python
chhotu/orders/apis.py
roshan007/chhout.web.backend
a952a53d908fb0c648b8b7279130166c2054f502
[ "MIT" ]
null
null
null
chhotu/orders/apis.py
roshan007/chhout.web.backend
a952a53d908fb0c648b8b7279130166c2054f502
[ "MIT" ]
null
null
null
chhotu/orders/apis.py
roshan007/chhout.web.backend
a952a53d908fb0c648b8b7279130166c2054f502
[ "MIT" ]
null
null
null
from rest_framework import generics, response, status from .models import Cart from .serializers import CartSerializer class AddToCart(generics.ListCreateAPIView): """ api to support adding products to cart """ model = Cart serializer_class = CartSerializer def get_queryset(self): p...
34.75
124
0.698741
4a07c4272d7ad81095e001f791aad691676c7796
708
py
Python
views/grades.py
MatthewKosloski/student-information-system
a3469647298d62c45c793e70a3ac70c0524340e2
[ "CECILL-B" ]
null
null
null
views/grades.py
MatthewKosloski/student-information-system
a3469647298d62c45c793e70a3ac70c0524340e2
[ "CECILL-B" ]
null
null
null
views/grades.py
MatthewKosloski/student-information-system
a3469647298d62c45c793e70a3ac70c0524340e2
[ "CECILL-B" ]
null
null
null
from .base import BaseView from table import Table class GradesView(BaseView): def __init__(self, controller): super().__init__(controller) self.set_choices([ 'Back' ]) ''' Creates a table listing the student's grades for each section. @param grades {list} @return Table ''' def get_grades_tabl...
17.7
49
0.672316
4a07c63add5abc7ad9451d054d9385cd5e5d4161
7,694
py
Python
yanrin/topic_modeling.py
jaideep2/yanrin
ba34f7f1c9d7f43f4800ea5cc25a333553ce9186
[ "Apache-2.0" ]
null
null
null
yanrin/topic_modeling.py
jaideep2/yanrin
ba34f7f1c9d7f43f4800ea5cc25a333553ce9186
[ "Apache-2.0" ]
null
null
null
yanrin/topic_modeling.py
jaideep2/yanrin
ba34f7f1c9d7f43f4800ea5cc25a333553ce9186
[ "Apache-2.0" ]
null
null
null
import gensim from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer from gensim.corpora import Dictionary from gensim.models import CoherenceModel, LdaModel, TfidfModel import operator import psycopg2 from sql.statements import create_new_record, update_news_id, find_record from utils.helper import ...
37.169082
118
0.661944
4a07c6f5fda6ab717d55307d3d3c68b196c81732
123,870
py
Python
python/pyarrow/tests/test_pandas.py
jsternberg/arrow
a241cf60d1a5d485a95dfe95bbdc5bdcaadfd213
[ "Apache-2.0" ]
null
null
null
python/pyarrow/tests/test_pandas.py
jsternberg/arrow
a241cf60d1a5d485a95dfe95bbdc5bdcaadfd213
[ "Apache-2.0" ]
null
null
null
python/pyarrow/tests/test_pandas.py
jsternberg/arrow
a241cf60d1a5d485a95dfe95bbdc5bdcaadfd213
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "...
35.564169
79
0.561048
4a07c8a001592b32331e309880d98d36f88abe8c
155,686
py
Python
sdk/python/pulumi_azure_native/containerservice/_inputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/_inputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/_inputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# 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, overload from .. import _utilities from...
43.18613
551
0.672328
4a07c8d8e1e39931d599b59717771dd57278d90a
25,108
py
Python
ryu/contrib/_eventlet/websocket.py
umkcdcrg01/ryu_openflow
37ed5b88f7d119344e07c95314a7450235c037a8
[ "Apache-2.0" ]
269
2015-03-08T11:32:45.000Z
2022-03-30T11:18:16.000Z
ryu/contrib/_eventlet/websocket.py
umkcdcrg01/ryu_openflow
37ed5b88f7d119344e07c95314a7450235c037a8
[ "Apache-2.0" ]
2
2018-12-23T13:52:26.000Z
2021-10-31T13:01:43.000Z
ryu/contrib/_eventlet/websocket.py
umkcdcrg01/ryu_openflow
37ed5b88f7d119344e07c95314a7450235c037a8
[ "Apache-2.0" ]
205
2015-01-13T04:52:25.000Z
2022-03-30T13:37:33.000Z
import base64 import codecs import collections import errno from random import Random import string import struct import sys import time from socket import error as SocketError try: from hashlib import md5, sha1 except ImportError: #pragma NO COVER from md5 import md5 from sha import sha as sha1 import ev...
38.216134
109
0.561614
4a07c93eac8c767581676ac9281a379f9bdf0c47
338
py
Python
ankipandas/__init__.py
khonkhortisan/AnkiPandas
44ca736a46b22fb2ffb200cc4f2c3184184ee29d
[ "MIT" ]
1
2020-05-20T18:35:20.000Z
2020-05-20T18:35:20.000Z
ankipandas/__init__.py
andrewsanchez/AnkiPandas
3f6e2309493b73237b89ddf76561694c940871ca
[ "MIT" ]
null
null
null
ankipandas/__init__.py
andrewsanchez/AnkiPandas
3f6e2309493b73237b89ddf76561694c940871ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import ankipandas.raw import ankipandas.paths import ankipandas.util import ankipandas.paths import ankipandas.collection from ankipandas.collection import Collection from ankipandas.paths import find_db, db_path_input from ankipandas.ankidf import AnkiDataFrame from ankipandas.util.log import l...
28.166667
51
0.857988
4a07c991c88432477757d3982978944d1d0f22c0
8,645
py
Python
spark_fhir_schemas/r4/complex_types/quantity.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
2
2020-10-31T23:25:01.000Z
2021-06-09T14:12:42.000Z
spark_fhir_schemas/r4/complex_types/quantity.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/r4/complex_types/quantity.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
null
null
null
from typing import Union, List, Optional from pyspark.sql.types import StructType, StructField, StringType, ArrayType, DataType # This file is auto-generated by generate_schema so do not edit it manually # noinspection PyPep8Naming class QuantitySchema: """ A measured amount (or an amount that can potentiall...
46.983696
97
0.575824
4a07c9b4a8081aa1f2c3f5af8cd2748db63dc82a
3,490
py
Python
entities.py
gjwgit/aztext
a3a824fe82402bafe9a7360ec84c00bc90326cde
[ "MIT" ]
null
null
null
entities.py
gjwgit/aztext
a3a824fe82402bafe9a7360ec84c00bc90326cde
[ "MIT" ]
1
2019-03-28T00:47:28.000Z
2019-10-08T23:11:38.000Z
entities.py
gjwgit/aztext
a3a824fe82402bafe9a7360ec84c00bc90326cde
[ "MIT" ]
1
2021-05-13T04:42:16.000Z
2021-05-13T04:42:16.000Z
# -*- coding: utf-8 -*- # # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # Author: Graham.Williams@microsoft.com # # A command line script to analyze text. # # ml analyze entities <sentence> # # https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/ # ...
29.083333
108
0.488252
4a07cad3729bb6d70305250b4bad59c6c3986e8b
5,478
py
Python
runs/rwip12/Pendulum.py
drib861204/Soft-Actor-Critic-and-Extensions
3075df7430c1c49177b3798d753a9e3f6226672e
[ "MIT" ]
null
null
null
runs/rwip12/Pendulum.py
drib861204/Soft-Actor-Critic-and-Extensions
3075df7430c1c49177b3798d753a9e3f6226672e
[ "MIT" ]
null
null
null
runs/rwip12/Pendulum.py
drib861204/Soft-Actor-Critic-and-Extensions
3075df7430c1c49177b3798d753a9e3f6226672e
[ "MIT" ]
null
null
null
""" Title: pendulum_pygame Author: [jadenhensley](https://github.com/jadenhensley) Last modified: 2021/10/18 Description: Pendulum project, built using pygame and math modules. Title: wheelPole Author: [aimetz](https://github.com/aimetz) Last modified: 2021/04/20 Title: gym/gym/envs/classic_control/pendulum.py Author...
34.45283
149
0.606061
4a07cafd2d288e185520b6aac23a4f9fd46f699b
3,701
py
Python
awx/main/tests/unit/models/test_ha.py
tongtie/awx
1f34d4c1346cb2d79f0f13727d9d823d7df9ad6f
[ "Apache-2.0" ]
1
2020-03-03T10:15:32.000Z
2020-03-03T10:15:32.000Z
awx/main/tests/unit/models/test_ha.py
tongtie/awx
1f34d4c1346cb2d79f0f13727d9d823d7df9ad6f
[ "Apache-2.0" ]
35
2019-04-04T16:53:20.000Z
2021-06-02T04:31:23.000Z
awx/main/tests/unit/models/test_ha.py
akus062381/awx
0ac3a377fdb74acb2ecbeb286bd1998d6d72a42a
[ "Apache-2.0" ]
null
null
null
import pytest from unittest import mock from unittest.mock import Mock from decimal import Decimal from awx.main.models import InstanceGroup, Instance @pytest.mark.parametrize('capacity_adjustment', [0.0, 0.25, 0.5, 0.75, 1, 1.5, 3]) def test_capacity_adjustment_no_save(capacity_adjustment): inst = Instance(host...
40.228261
150
0.636044
4a07cc6a3df5f8ffe171c1e54131fb6c7ae69d78
601
py
Python
env/lib/python3.8/site-packages/plotly/validators/streamtube/lighting/_facenormalsepsilon.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/streamtube/lighting/_facenormalsepsilon.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/streamtube/lighting/_facenormalsepsilon.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="facenormalsepsilon", parent_name="streamtube.lighting", **kwargs ): super(FacenormalsepsilonValidator, self).__init__( ...
30.05
80
0.607321
4a07ccbb39f5c328690fe7feca5b30efa8f5e709
5,778
py
Python
portal/capstone/models.py
LDSSA/portal
9561da1e262678fe68dcf51c66007c0fb13eb51a
[ "MIT" ]
2
2020-11-09T03:48:36.000Z
2021-07-02T14:30:09.000Z
portal/capstone/models.py
LDSSA/portal
9561da1e262678fe68dcf51c66007c0fb13eb51a
[ "MIT" ]
132
2020-04-25T15:57:56.000Z
2022-03-10T19:15:51.000Z
portal/capstone/models.py
LDSSA/portal
9561da1e262678fe68dcf51c66007c0fb13eb51a
[ "MIT" ]
1
2020-10-24T16:15:57.000Z
2020-10-24T16:15:57.000Z
import logging from datetime import datetime, timezone from urllib.parse import urljoin from django.db import models from django.conf import settings from portal.hackathons.models import random_path from portal.users.models import User logger = logging.getLogger(__name__) class Capstone(models.Model): name = ...
31.922652
77
0.624264
4a07ccdffe18e08c8f4b3b3a5a5949c3f078e928
4,323
py
Python
demos/odyssey/odyssey.py
sbluen/reportlab
98758940eeae30db80bbc9c555e42b8c89b86be8
[ "BSD-3-Clause" ]
8
2018-11-01T10:40:18.000Z
2021-12-16T03:20:48.000Z
demos/odyssey/odyssey.py
sbluen/reportlab
98758940eeae30db80bbc9c555e42b8c89b86be8
[ "BSD-3-Clause" ]
2
2015-03-16T18:32:58.000Z
2019-03-20T07:17:04.000Z
demos/odyssey/odyssey.py
sbluen/reportlab
98758940eeae30db80bbc9c555e42b8c89b86be8
[ "BSD-3-Clause" ]
26
2015-03-16T18:27:04.000Z
2022-03-25T10:08:33.000Z
#Copyright ReportLab Europe Ltd. 2000-2012 #see license.txt for license details __version__=''' $Id$ ''' ___doc__='' #odyssey.py # #Demo/benchmark of PDFgen rendering Homer's Odyssey. #results on my humble P266 with 64MB: # Without page compression: # 239 pages in 3.76 seconds = 77 pages per second # With textOut r...
29.408163
109
0.647698
4a07cd41ba079b24efc37fcd542877b1a58c8803
3,977
py
Python
fetch_missing_matomo_requests.py
alphagov/verify-matomo-tool
b3461f56c38ec4c004b3d3c73d26b986154136ac
[ "MIT" ]
1
2019-10-22T11:29:31.000Z
2019-10-22T11:29:31.000Z
fetch_missing_matomo_requests.py
alphagov/verify-matomo-tool
b3461f56c38ec4c004b3d3c73d26b986154136ac
[ "MIT" ]
1
2021-06-01T23:49:20.000Z
2021-06-01T23:49:20.000Z
fetch_missing_matomo_requests.py
alphagov/verify-matomo-tool
b3461f56c38ec4c004b3d3c73d26b986154136ac
[ "MIT" ]
2
2019-08-29T14:01:57.000Z
2021-04-10T19:34:26.000Z
from datetime import datetime, timedelta, timezone import os import boto3 import time from _decimal import Decimal NUM_OF_DAYS = 'NUM_OF_DAYS' START_DATE = 'START_DATE' def print_unset_env_variable_error_and_exit(environment_variable): print(environment_variable, " environment variable is not set.") exit(1) ...
35.828829
118
0.665829
4a07cdabb48f3e641cbfa7a14b9a8d8c7a9719b8
574
py
Python
2021-04-Python-SEA-ENGRSL-Workshops/Workshop_1-Python-for-Automation/s06a_Activity.py
shawnduong/manimations
1d36d9d1e7dff90a1a8da1e687ef442f750e29c5
[ "MIT" ]
null
null
null
2021-04-Python-SEA-ENGRSL-Workshops/Workshop_1-Python-for-Automation/s06a_Activity.py
shawnduong/manimations
1d36d9d1e7dff90a1a8da1e687ef442f750e29c5
[ "MIT" ]
null
null
null
2021-04-Python-SEA-ENGRSL-Workshops/Workshop_1-Python-for-Automation/s06a_Activity.py
shawnduong/manimations
1d36d9d1e7dff90a1a8da1e687ef442f750e29c5
[ "MIT" ]
null
null
null
from manim import * class s06a_Activity(Scene): def construct(self): mainTitle = Text("Activity: Automate Work Tasks") subtitleA = Text("Prepare to split into groups").scale(0.75) subtitleB = Text("and gain hands-on experience!").scale(0.75) mainTitle.shift(0.25*UP) subtitleA.next_to(mainTitle, DOWN) s...
22.96
63
0.71777
4a07cec93de9105014339fe3755d5dc199389df5
183
py
Python
library/demo/main.py
park-sungmoo/jquery.flowchart_ultide
873b1b00caf832b67f9261d076ec71e61a64c513
[ "MIT" ]
81
2016-09-11T22:45:27.000Z
2022-02-22T15:12:21.000Z
library/tcl_procs/main.py
Cupidazul/ultide
6eac864540e19b23f30bd387310d09b84a3b1cf4
[ "MIT" ]
2
2019-01-26T20:39:14.000Z
2020-08-01T13:14:19.000Z
library/tcl_procs/main.py
Cupidazul/ultide
6eac864540e19b23f30bd387310d09b84a3b1cf4
[ "MIT" ]
34
2016-12-25T12:23:51.000Z
2021-06-11T10:12:57.000Z
import time def on_demo_ping(data, response, session_data): response['demo_response'] = 'Your message was "' + data['message'] + '". Time on server is: ' + str(time.time()) + '.'
45.75
122
0.655738
4a07cf2ed5de7eafb72da8c71569cb044f80ae51
8,431
py
Python
src/pagure/lib/tasks_mirror.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/pagure/lib/tasks_mirror.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/pagure/lib/tasks_mirror.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ (c) 2018 - Copyright Red Hat Inc Authors: Pierre-Yves Chibon <pingou@pingoured.fr> """ from __future__ import unicode_literals, absolute_import import base64 import datetime import logging import os import stat import struct import six import werkzeug.utils from celery import Cel...
33.062745
141
0.689717
4a07cf31d0d44829ed4d57c80790ad3980cdbc25
3,980
py
Python
lte/gateway/python/magma/enodebd/devices/device_utils.py
rdefosse/magma
d12ac827d0cdb39f499ce202e9e1196cc50b68d7
[ "BSD-3-Clause" ]
1
2021-11-03T21:37:26.000Z
2021-11-03T21:37:26.000Z
lte/gateway/python/magma/enodebd/devices/device_utils.py
rdefosse/magma
d12ac827d0cdb39f499ce202e9e1196cc50b68d7
[ "BSD-3-Clause" ]
36
2020-08-06T21:08:00.000Z
2021-05-21T05:51:23.000Z
lte/gateway/python/magma/enodebd/devices/device_utils.py
rdefosse/magma
d12ac827d0cdb39f499ce202e9e1196cc50b68d7
[ "BSD-3-Clause" ]
1
2021-07-12T09:37:07.000Z
2021-07-12T09:37:07.000Z
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
34.310345
78
0.668593
4a07d03fdb2dd4ebb408abd5d47a6f9ffbb7f1ce
2,663
py
Python
Raspberry/Stereo/StereoCamera.py
TUM-AERIUS/Aerius
be0ba4dd119b2ae1ba9fdea3a98d1757ef0d7e82
[ "MIT" ]
6
2017-06-05T10:39:37.000Z
2018-05-07T12:03:04.000Z
Raspberry/Stereo/StereoCamera.py
TUM-AERIUS/Aerius
be0ba4dd119b2ae1ba9fdea3a98d1757ef0d7e82
[ "MIT" ]
18
2017-07-08T21:04:48.000Z
2022-03-11T23:14:34.000Z
Raspberry/Stereo/StereoCamera.py
TUM-AERIUS/Aerius
be0ba4dd119b2ae1ba9fdea3a98d1757ef0d7e82
[ "MIT" ]
1
2017-06-16T16:43:20.000Z
2017-06-16T16:43:20.000Z
from matplotlib import pyplot as plt import numpy as np import cv2 import socket import struct import io import json import os import sys # Useful references: # http://docs.opencv.org/3.0-beta/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#reprojectimageto3d # use StereoMatcher::compute to get the d...
30.261364
118
0.732257
4a07d099ee3a16317f81e818608a893acb08fb39
1,482
py
Python
{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/app.py
srikiran1/cookiecutter-connexion-microcosm-service
da1dea38e08379e8415202b6aed23f79d2d9d24d
[ "MIT" ]
2
2019-12-10T03:08:09.000Z
2019-12-10T03:08:11.000Z
{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/app.py
srikiran1/cookiecutter-connexion-microcosm-service
da1dea38e08379e8415202b6aed23f79d2d9d24d
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/app.py
srikiran1/cookiecutter-connexion-microcosm-service
da1dea38e08379e8415202b6aed23f79d2d9d24d
[ "MIT" ]
1
2019-12-10T03:08:03.000Z
2019-12-10T03:08:03.000Z
""" Create the application. """ import pkg_resources from microcosm.api import create_object_graph from microcosm.loaders import load_each, load_from_environ from microcosm_connexion.resolver import MicrocosmResolver from {{ cookiecutter.project_name }}.config import load_default_config import {{ cookiecutter.project...
27.444444
117
0.617409
4a07d10bcf59ec46014f0a66f7b548473a6e9a4a
3,202
py
Python
nuforc_reports/nuforc_reports/settings.py
internet-ufo-database/nuforc_sightings_data
cc1299b32e198dfa3c4428d3a3824925cd5dd1c2
[ "MIT" ]
null
null
null
nuforc_reports/nuforc_reports/settings.py
internet-ufo-database/nuforc_sightings_data
cc1299b32e198dfa3c4428d3a3824925cd5dd1c2
[ "MIT" ]
null
null
null
nuforc_reports/nuforc_reports/settings.py
internet-ufo-database/nuforc_sightings_data
cc1299b32e198dfa3c4428d3a3824925cd5dd1c2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for nuforc_reports project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en...
35.186813
109
0.78326
4a07d1c108f493bec4c778931b0e32272b4e5794
267
py
Python
temperatureConversion.py
flyingsonu122/Python
f7649615882b77c8fdbd8dc20e954266ee8d1fc2
[ "MIT" ]
1
2020-10-06T12:40:00.000Z
2020-10-06T12:40:00.000Z
temperatureConversion.py
flyingsonu122/Python
f7649615882b77c8fdbd8dc20e954266ee8d1fc2
[ "MIT" ]
null
null
null
temperatureConversion.py
flyingsonu122/Python
f7649615882b77c8fdbd8dc20e954266ee8d1fc2
[ "MIT" ]
null
null
null
fahrenheit = input('What is the temperature in Fahrenheit? ') if fahrenheit.isnumeric() == False: print('Input is not a number.') exit() fahrenheit = int(fahrenheit) celsius = int((fahrenheit - 32) * 5/9) print('Temperature in celsius is ' + str(celsius))
26.7
62
0.685393
4a07d2949a8ad44454ef4d4f15255a14a8f66734
26,559
py
Python
tensorflow/python/ops/math_grad_test.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/ops/math_grad_test.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/python/ops/math_grad_test.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.699552
97
0.680108
4a07d2a4ce8c4b81c551dea0466994b0ceeade50
4,127
py
Python
experiments/vitchyr/rig/reset-free/pusher_xyz_many_objs/online_vae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/vitchyr/rig/reset-free/pusher_xyz_many_objs/online_vae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/vitchyr/rig/reset-free/pusher_xyz_many_objs/online_vae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
import railrl.misc.hyperparameter as hyp from multiworld.envs.mujoco.cameras import sawyer_pusher_camera_upright_v2 from multiworld.envs.mujoco.sawyer_xyz.sawyer_push_many_env import ( SawyerPushManyXyEnv, ) from railrl.launchers.launcher_util import run_experiment from railrl.torch.grill.launcher import grill_her_...
33.282258
80
0.542767
4a07d355293680de3d819e97122de65349434919
592
py
Python
tests/test_trie.py
scottwedge/Python-Datastructures
3ea489ac54c64d57fe25d974250bf19fa5f8898d
[ "MIT" ]
null
null
null
tests/test_trie.py
scottwedge/Python-Datastructures
3ea489ac54c64d57fe25d974250bf19fa5f8898d
[ "MIT" ]
null
null
null
tests/test_trie.py
scottwedge/Python-Datastructures
3ea489ac54c64d57fe25d974250bf19fa5f8898d
[ "MIT" ]
null
null
null
import unittest from python_datastructures.trie import Trie class Test_Trie(unittest.TestCase): def setUp(self): words = ['apple', 'app', 'android', 'and'] self.trie = Trie() self.trie.build(words) def test_add(self): self.trie.add("amazon") self.assertEqual(self.trie...
23.68
61
0.641892
4a07d3c52852ea729f862476ab0c3adb5fc47adb
157
py
Python
01_Language/01_Functions/python/date_date_set.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
3
2020-06-28T07:42:51.000Z
2021-01-15T10:32:11.000Z
01_Language/01_Functions/python/date_date_set.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
9
2021-03-10T22:45:40.000Z
2022-02-27T06:53:20.000Z
01_Language/01_Functions/python/date_date_set.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
1
2021-01-15T10:51:24.000Z
2021-01-15T10:51:24.000Z
# coding: utf-8 import datetime if __name__ == '__main__': d = datetime.datetime.now() d = d.replace(2001, 2, 3) print(d.strftime("%Y-%m-%d"))
17.444444
33
0.598726
4a07d4916f78db80fac2c116e5cc938e01dadfbb
15,729
py
Python
decode.py
exeex/PytorchWaveNetVocoder
c21556026ebeac4fdb9e2f4ccb707d7db23114f2
[ "Apache-2.0" ]
null
null
null
decode.py
exeex/PytorchWaveNetVocoder
c21556026ebeac4fdb9e2f4ccb707d7db23114f2
[ "Apache-2.0" ]
null
null
null
decode.py
exeex/PytorchWaveNetVocoder
c21556026ebeac4fdb9e2f4ccb707d7db23114f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 Tomoki Hayashi (Nagoya University) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import argparse import logging import math import os import sys import numpy as np import soundfile as sf import torch import torch.multiprocessing as mp from...
36.4942
114
0.610401
4a07d4fdb65e870f524bdfa87d9abe5d5ec73f34
13,971
py
Python
deps/smbexec1.py
IMULMUL/portia-1
2e6e608d926026ec63e151dfd23ea5bead9307bb
[ "Apache-2.0" ]
514
2017-07-23T09:29:52.000Z
2022-03-30T16:45:01.000Z
deps/smbexec1.py
crypticterminal/portia-1
36b974a9f48fc73f1306640e85554c3ceda1c825
[ "Apache-2.0" ]
9
2017-08-02T05:01:19.000Z
2018-12-27T14:40:26.000Z
deps/smbexec1.py
crypticterminal/portia-1
36b974a9f48fc73f1306640e85554c3ceda1c825
[ "Apache-2.0" ]
137
2017-07-29T23:41:38.000Z
2022-03-21T03:50:03.000Z
#!/usr/bin/env python # Copyright (c) 2003-2016 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # A similar approach to psexec w/o using RemComSvc. The technique is described he...
38.593923
138
0.621001
4a07d5a9e65e5c19a47a1d4edee2d5658d8cf8d7
3,951
py
Python
api_examples/design_advanced_functions.py
popupcad/popupcad
d3da448260cd5cb9e05417b0a723d7f73ae4e06e
[ "MIT" ]
19
2015-08-01T22:13:39.000Z
2020-03-07T03:55:46.000Z
api_examples/design_advanced_functions.py
CadQuery/popupcad
b0c7b406d4b288c7cb375340323bba0252aedbfb
[ "MIT" ]
106
2015-07-23T19:58:01.000Z
2019-05-14T03:46:08.000Z
api_examples/design_advanced_functions.py
CadQuery/popupcad
b0c7b406d4b288c7cb375340323bba0252aedbfb
[ "MIT" ]
9
2015-10-04T23:38:41.000Z
2020-07-16T03:50:34.000Z
# -*- coding: utf-8 -*- """ Written by Daniel M. Aukes and CONTRIBUTORS Email: danaukes<at>asu.edu. Please see LICENSE for full license. """ def remap_subdesign_ids(design): subdesigns_orig = design.subdesigns.copy() subdesign_mapping = [] subdesigns_new = {} for key,subdesign in subdesigns_orig.items(...
34.657895
101
0.704126
4a07d5dbfe208f07693094b74dc340bb2cd5b2c3
1,114
py
Python
axelrod/strategies/gradualkiller.py
t0nyt93/Axelroddd
66d95378d3ece8b32afeb1c77d305397bd9a815e
[ "MIT" ]
null
null
null
axelrod/strategies/gradualkiller.py
t0nyt93/Axelroddd
66d95378d3ece8b32afeb1c77d305397bd9a815e
[ "MIT" ]
null
null
null
axelrod/strategies/gradualkiller.py
t0nyt93/Axelroddd
66d95378d3ece8b32afeb1c77d305397bd9a815e
[ "MIT" ]
1
2019-03-11T08:56:09.000Z
2019-03-11T08:56:09.000Z
from axelrod.actions import Actions from axelrod.player import Player from axelrod.strategy_transformers import InitialTransformer from axelrod.actions import Action C, D = Actions.C, Actions.D @InitialTransformer((D, D, D, D, D, C, C), name_prefix=None) class GradualKiller(Player): """ It begins by defectin...
28.564103
78
0.664273
4a07d67bbb8d22e391a3fae7fcdd93ebc3f35549
2,209
py
Python
doc/test/test-data-provider/weibo_spider/downloader/downloader.py
baijunhan/data-flow
7cba999c49dd38a4d4afe9f9076cda80b3c6ea7c
[ "Apache-2.0" ]
6
2021-01-25T17:36:17.000Z
2021-05-18T12:14:02.000Z
doc/test/test-data-provider/weibo_spider/downloader/downloader.py
baijunhan/data-flow
7cba999c49dd38a4d4afe9f9076cda80b3c6ea7c
[ "Apache-2.0" ]
6
2021-08-31T21:49:48.000Z
2022-03-02T10:13:08.000Z
doc/test/test-data-provider/weibo_spider/downloader/downloader.py
baijunhan/data-flow
7cba999c49dd38a4d4afe9f9076cda80b3c6ea7c
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import logging import os import sys from abc import ABC, abstractmethod import requests from requests.adapters import HTTPAdapter from tqdm import tqdm logger = logging.getLogger('spider.downloader') class Downloader(ABC): def __init__(self, file_dir, file_download_timeout): self...
35.629032
79
0.550475
4a07d6a1f492398096bebfa7adad4fd17ffffb64
2,275
py
Python
sympy/matrices/expressions/trace.py
JMSS-Unknown/sympy
cd98ba006b5c6d6a6d072eafa28ea6d0ebdaf0e7
[ "BSD-3-Clause" ]
null
null
null
sympy/matrices/expressions/trace.py
JMSS-Unknown/sympy
cd98ba006b5c6d6a6d072eafa28ea6d0ebdaf0e7
[ "BSD-3-Clause" ]
null
null
null
sympy/matrices/expressions/trace.py
JMSS-Unknown/sympy
cd98ba006b5c6d6a6d072eafa28ea6d0ebdaf0e7
[ "BSD-3-Clause" ]
1
2018-10-21T06:32:46.000Z
2018-10-21T06:32:46.000Z
from __future__ import print_function, division from sympy import Basic, Expr, sympify from sympy.matrices.matrices import MatrixBase from .matexpr import ShapeError class Trace(Expr): """Matrix Trace Represents the trace of a matrix expression. >>> from sympy import MatrixSymbol, Trace, eye >>> A ...
24.728261
90
0.553407
4a07d7a3c10390c181db9ad5c1ab33aed0a28853
2,609
py
Python
tests/test_cache.py
asellappen/lark
da6a4e4d00022452abf59df4b4232480608d4f7d
[ "MIT" ]
1
2020-12-04T09:16:33.000Z
2020-12-04T09:16:33.000Z
tests/test_cache.py
asellappen/lark
da6a4e4d00022452abf59df4b4232480608d4f7d
[ "MIT" ]
null
null
null
tests/test_cache.py
asellappen/lark
da6a4e4d00022452abf59df4b4232480608d4f7d
[ "MIT" ]
null
null
null
from __future__ import absolute_import import sys from unittest import TestCase, main from lark import Lark, Tree from lark.lexer import Lexer, Token import lark.lark as lark_module try: from StringIO import StringIO except ImportError: from io import BytesIO as StringIO import tempfile, os class MockFile...
25.578431
74
0.549636
4a07d900ad7b599f70e637c4d796bad04485147c
23,786
py
Python
04_logreg_vis/main3b.py
cxrodgers/Rodgers2021
cbcc166f9c06b18022cec91a289a1e84ece791ae
[ "MIT" ]
null
null
null
04_logreg_vis/main3b.py
cxrodgers/Rodgers2021
cbcc166f9c06b18022cec91a289a1e84ece791ae
[ "MIT" ]
null
null
null
04_logreg_vis/main3b.py
cxrodgers/Rodgers2021
cbcc166f9c06b18022cec91a289a1e84ece791ae
[ "MIT" ]
null
null
null
## Heatmap the contacts and anti-contacts in the warped plot by their evidence # Uses data: # big_weights_part # reduced_model_results_sbrc/no_opto/contact_binarized+anti_contact_count+angle+anti_angle_max """ 4A, bottom; S4A, bottom PLOT_EDGE_SUMMARY_ONLY Image of the different shape positions in the co...
31.338603
106
0.68616
4a07d9cf9dc8c2e7f0d63fb5fbeb352e3eda6e73
50,208
py
Python
networking_cisco/tests/unit/ml2/drivers/cisco/ucsm/test_cisco_ucsm_driver.py
Tehsmash/networking-cisco
fdbd79a832fe090f3c4c7bd7a4f0ec0c349d4d16
[ "Apache-2.0" ]
null
null
null
networking_cisco/tests/unit/ml2/drivers/cisco/ucsm/test_cisco_ucsm_driver.py
Tehsmash/networking-cisco
fdbd79a832fe090f3c4c7bd7a4f0ec0c349d4d16
[ "Apache-2.0" ]
null
null
null
networking_cisco/tests/unit/ml2/drivers/cisco/ucsm/test_cisco_ucsm_driver.py
Tehsmash/networking-cisco
fdbd79a832fe090f3c4c7bd7a4f0ec0c349d4d16
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Cisco Systems, Inc. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
41.944862
79
0.650056
4a07da572cce21f339ac55c7a21fc0797da17e24
5,162
py
Python
multifasta2clades.py
tkchafin/file_converters
635beec418bd4593bb6f724e289ab939633c00c3
[ "MIT" ]
1
2020-11-17T06:19:29.000Z
2020-11-17T06:19:29.000Z
multifasta2clades.py
tkchafin/file_converters
635beec418bd4593bb6f724e289ab939633c00c3
[ "MIT" ]
2
2018-11-03T20:50:31.000Z
2021-09-15T15:18:11.000Z
multifasta2clades.py
tkchafin/file_converters
635beec418bd4593bb6f724e289ab939633c00c3
[ "MIT" ]
1
2020-06-22T20:51:46.000Z
2020-06-22T20:51:46.000Z
#!/usr/bin/env python # Script written by Bradley T. Martin, PhD Candidate, University of Arkansas. # Please report any issues or bugs to btm002@email.uark.edu import argparse # parse command-line arguments. import os # needed for listing directory of fasta files. import sys # used for exiting if conditions not met. ...
37.955882
151
0.591437
4a07dadf8d4d47a51dde0ead2a3a18540ebd394d
2,228
py
Python
rodan/models/input.py
carrieeex/Rodan
458e72990c2571fa727a0d026fb235faf30bffec
[ "MIT" ]
31
2015-01-06T17:23:45.000Z
2022-03-30T02:46:16.000Z
rodan/models/input.py
carrieeex/Rodan
458e72990c2571fa727a0d026fb235faf30bffec
[ "MIT" ]
258
2015-01-02T19:34:57.000Z
2022-01-19T16:34:21.000Z
rodan/models/input.py
carrieeex/Rodan
458e72990c2571fa727a0d026fb235faf30bffec
[ "MIT" ]
8
2015-08-19T16:09:31.000Z
2021-10-03T23:46:46.000Z
from django.db import models from rodan.models.inputporttype import InputPortType import uuid class Input(models.Model): """ Links a `RunJob` to one of its input `Resource`s. There must be one `Input` for each `InputPort` of the `WorkflowJob`. **Fields** - `uuid` - `input_port` -- a referenc...
30.520548
90
0.635099
4a07db19fb38a0ae86fefce2f12e8482e213f03d
17,783
py
Python
test/test_individual_module_mounting_backend.py
nus-mtp/another-cs-study-planner
02b52871a34f580b779ede08750f2d4e887bcf65
[ "MIT" ]
1
2017-04-30T17:59:08.000Z
2017-04-30T17:59:08.000Z
test/test_individual_module_mounting_backend.py
nus-mtp/another-cs-study-planner
02b52871a34f580b779ede08750f2d4e887bcf65
[ "MIT" ]
87
2017-02-13T09:06:13.000Z
2017-04-14T09:23:08.000Z
test/test_individual_module_mounting_backend.py
nus-mtp/another-cs-study-planner
02b52871a34f580b779ede08750f2d4e887bcf65
[ "MIT" ]
1
2017-04-11T05:26:00.000Z
2017-04-11T05:26:00.000Z
''' test_individual_module_mounting_backend.py Contains test cases related to backened functions for displaying an individual module's mounting ''' from nose.tools import assert_equal, assert_true from components.handlers.module_overview import ViewMod from components.handlers.module_view_in_ay_sem import Indiv...
48.32337
100
0.714503
4a07dbd2759e1adc3cea2779e0b4dbe21b23ca02
39
py
Python
lang/py/cookbook/v2/source/cb2_19_4_exm_3.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_19_4_exm_3.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_19_4_exm_3.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
c = iter(t5) a = c.next() b = c.next()
9.75
12
0.487179
4a07dc31aec5bc3107b692bc44cb4849f5a82f1b
985
py
Python
iotronic_ui/enabled/_6030_iot_services_panel.py
smartmeio/stack4things-iotronic-ui
b0324c020bb4d5d74cfa9795f90c02fadae4fa8b
[ "Apache-2.0" ]
1
2021-11-03T12:00:44.000Z
2021-11-03T12:00:44.000Z
iotronic_ui/enabled/_6030_iot_services_panel.py
smartmeio/stack4things-iotronic-ui
b0324c020bb4d5d74cfa9795f90c02fadae4fa8b
[ "Apache-2.0" ]
1
2018-10-17T10:59:55.000Z
2018-10-30T11:58:40.000Z
iotronic_ui/enabled/_6030_iot_services_panel.py
smartmeio/stack4things-iotronic-ui
b0324c020bb4d5d74cfa9795f90c02fadae4fa8b
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
41.041667
74
0.763452
4a07dc9eb9317135abe983bf307ea03b02545093
10,018
py
Python
management/web_update.py
doofpot/mailinabox
421846f06736b1af5fcb0e6dfdb731c90077f8fa
[ "CC0-1.0" ]
null
null
null
management/web_update.py
doofpot/mailinabox
421846f06736b1af5fcb0e6dfdb731c90077f8fa
[ "CC0-1.0" ]
null
null
null
management/web_update.py
doofpot/mailinabox
421846f06736b1af5fcb0e6dfdb731c90077f8fa
[ "CC0-1.0" ]
null
null
null
# Creates an nginx configuration file so we serve HTTP/HTTPS on all # domains for which a mail account has been set up. ######################################################################## import os.path, re, rtyaml from mailconfig import get_mail_domains from dns_update import get_custom_dns_config, get_dns_zone...
41.741667
128
0.729387
4a07dcaeb700f605cea63b1f679a5579981351cf
899
py
Python
flask/code/P6.FlaskDotEnvJwtCrud/controllers/likes_controller.py
santiagovj22/python-training
3fbcc9e5df22432c6e75d80c90d1c235652354df
[ "MIT" ]
null
null
null
flask/code/P6.FlaskDotEnvJwtCrud/controllers/likes_controller.py
santiagovj22/python-training
3fbcc9e5df22432c6e75d80c90d1c235652354df
[ "MIT" ]
null
null
null
flask/code/P6.FlaskDotEnvJwtCrud/controllers/likes_controller.py
santiagovj22/python-training
3fbcc9e5df22432c6e75d80c90d1c235652354df
[ "MIT" ]
null
null
null
from flask import request from flask_restx import Resource from flask_jwt_extended import jwt_required, get_jwt_identity from services.likes_service import init_service, get_likes, add_likes, remove_likes def init_likes_controller(api, app): init_service(app) #game_model = get_game_model(api) class User...
31
83
0.681869
4a07ddae2836d5fab1fcbcffe6348e9eec4dc484
9,893
py
Python
higherorlower/core.py
kreus7/HigherOrLower
a1189f7c26e1f6bb7e68e122b24433d8390c5f23
[ "MIT" ]
null
null
null
higherorlower/core.py
kreus7/HigherOrLower
a1189f7c26e1f6bb7e68e122b24433d8390c5f23
[ "MIT" ]
1
2021-01-31T12:37:06.000Z
2021-01-31T12:37:06.000Z
higherorlower/core.py
kreus7/HigherOrLower
a1189f7c26e1f6bb7e68e122b24433d8390c5f23
[ "MIT" ]
null
null
null
import discord from typing import Literal from random import randint from asyncio import sleep, TimeoutError from redbot.core import bank, commands, Config from redbot.core.i18n import Translator, cog_i18n from .generators import embed from .cards import BACKALL _ = Translator("HigherOrLower", __file__) @cog_i18n(_)...
45.800926
139
0.585363
4a07ded362ec5d0241f53ffe7d71f90a0bd04903
907
py
Python
src/tools.py
nkashy1/mockingbird
89c6c669c7ea879a8dd986bf3a2f66d7deb7fbe9
[ "MIT" ]
null
null
null
src/tools.py
nkashy1/mockingbird
89c6c669c7ea879a8dd986bf3a2f66d7deb7fbe9
[ "MIT" ]
null
null
null
src/tools.py
nkashy1/mockingbird
89c6c669c7ea879a8dd986bf3a2f66d7deb7fbe9
[ "MIT" ]
null
null
null
# Standard modules # External modules # Internal modules def patch_returner(obj, name, fake_method_return_value): fake_returner = create_fake_returner(fake_method_return_value) monkey_patch(obj, name, fake_returner) def patch_caller(obj, name, function_to_call, *args, **kwargs): fake_caller = create_...
25.914286
71
0.757442
4a07ded3ca997fbbd62c475abf683131d9220196
16,708
py
Python
spanner/cloud-client/snippets.py
arbatovdan/new
f36d2bf4846061ea22b35775c8074bcd5bec3788
[ "Apache-2.0" ]
1
2017-06-28T13:04:34.000Z
2017-06-28T13:04:34.000Z
spanner/cloud-client/snippets.py
Acidburn0zzz/python-docs-samples
bc0924a6826cbdb669415b58fd5b2d8534d87aa1
[ "Apache-2.0" ]
null
null
null
spanner/cloud-client/snippets.py
Acidburn0zzz/python-docs-samples
bc0924a6826cbdb669415b58fd5b2d8534d87aa1
[ "Apache-2.0" ]
1
2021-01-13T21:45:31.000Z
2021-01-13T21:45:31.000Z
#!/usr/bin/env python # Copyright 2016 Google, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
35.473461
79
0.672253
4a07e0e40f46587fd9d86ecaa7cfd6a18e85c85d
467
py
Python
modules/app/admin/admin.py
uwrit/kpmp-user-portal
d20ce6290a0ad64f63a6f043bf6ff061b4968953
[ "BSD-3-Clause" ]
1
2019-05-01T00:43:59.000Z
2019-05-01T00:43:59.000Z
modules/app/admin/admin.py
uwrit/kpmp-user-portal
d20ce6290a0ad64f63a6f043bf6ff061b4968953
[ "BSD-3-Clause" ]
7
2019-03-17T02:19:21.000Z
2019-03-29T15:11:53.000Z
modules/app/admin/admin.py
uwrit/kpmp_user_portal
d20ce6290a0ad64f63a6f043bf6ff061b4968953
[ "BSD-3-Clause" ]
null
null
null
from flask_admin import Admin from modules.app import mongo, app from .user import UserView from .client import ClientView from .org import OrganizationView from .group import GroupView admin = Admin(app, name='KPMP User Portal Admin Panel') admin.add_view(UserView(mongo.db.users, 'Users')) admin.add_view(Organization...
35.923077
64
0.796574
4a07e0f35ede05e1e3742646f24f0e40ebee555f
2,041
py
Python
Analysis/Plot_Spect.py
ry-dgel/self-phase
d55167d4ed5430cde52fa54b738d5b209a44582c
[ "MIT" ]
null
null
null
Analysis/Plot_Spect.py
ry-dgel/self-phase
d55167d4ed5430cde52fa54b738d5b209a44582c
[ "MIT" ]
null
null
null
Analysis/Plot_Spect.py
ry-dgel/self-phase
d55167d4ed5430cde52fa54b738d5b209a44582c
[ "MIT" ]
null
null
null
import sys from itertools import groupby import yaml import matplotlib from matplotlib import pyplot as plt import numpy as np font = {'family' : 'normal', 'size' : 22} matplotlib.rc('font', **font) cf = 6.626e-34 * 6.242e18 def norm_spectrum(data_set): re, im = data_set.T Ef = np.fft.fftshift(np....
31.890625
95
0.631063
4a07e176d7a518415f0fdc673f4a603df30b77c5
33,048
py
Python
test/unit/__init__.py
hbhdytf/mac
51252356b22a792599a401f40ede0b9fda9fccdc
[ "Apache-2.0" ]
null
null
null
test/unit/__init__.py
hbhdytf/mac
51252356b22a792599a401f40ede0b9fda9fccdc
[ "Apache-2.0" ]
null
null
null
test/unit/__init__.py
hbhdytf/mac
51252356b22a792599a401f40ede0b9fda9fccdc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
32.14786
79
0.593682
4a07e214da6559f1f21091fb34de43b34c2eb016
1,201
py
Python
tests/models/test_model.py
yecharlie/convnet3d
0b2771eec149b196ef59b58d09eef71c9b201d40
[ "MIT" ]
6
2020-03-12T10:28:41.000Z
2021-11-18T16:17:20.000Z
tests/models/test_model.py
yecharlie/convnet3d
0b2771eec149b196ef59b58d09eef71c9b201d40
[ "MIT" ]
null
null
null
tests/models/test_model.py
yecharlie/convnet3d
0b2771eec149b196ef59b58d09eef71c9b201d40
[ "MIT" ]
1
2019-08-01T02:50:05.000Z
2019-08-01T02:50:05.000Z
import keras import pytest from convnet3d.models import ( reductionModel, submodels, convnet3dModel ) class TestReductionModel(object): def test_TimeDistributed(self): with pytest.raises(TypeError) : roi_input = keras.layers.Input(shape=(10, 25, 60, 60, 1)) fpr_model =...
32.459459
99
0.679434
4a07e3151369586ee287d1e30f50749534a9506b
2,599
py
Python
examples/CV2_quantum-neural-net.py
AroosaIjaz/Mypennylane
40f2219b5e048d4bd93df815811ca5ed3f5327fa
[ "Apache-2.0" ]
1
2019-05-12T22:43:42.000Z
2019-05-12T22:43:42.000Z
examples/CV2_quantum-neural-net.py
shashanka300/pennylane
194ccd00a9a7f7075c37680c970e56bab4808e60
[ "Apache-2.0" ]
null
null
null
examples/CV2_quantum-neural-net.py
shashanka300/pennylane
194ccd00a9a7f7075c37680c970e56bab4808e60
[ "Apache-2.0" ]
1
2022-03-04T02:17:11.000Z
2022-03-04T02:17:11.000Z
"""Continuous-variable quantum neural network example. In this demo we implement the photonic quantum neural net model from Killoran et al. (arXiv:1806.06871) with the example of function fitting. """ import pennylane as qml from pennylane import numpy as np from pennylane.optimize import AdamOptimizer try: dev ...
23.414414
80
0.643324
4a07e3654c70c74eac4bf358a32f3b3bb49e3d31
2,993
py
Python
scripts/views.py
sul-cidr/scriptchart-backend
38bb4139d77d683d85f31839a1a06096fe2fabbc
[ "MIT" ]
1
2019-06-05T23:05:32.000Z
2019-06-05T23:05:32.000Z
scripts/views.py
sul-cidr/scriptchart-backend
38bb4139d77d683d85f31839a1a06096fe2fabbc
[ "MIT" ]
42
2019-01-24T23:51:42.000Z
2021-09-08T01:04:45.000Z
scripts/views.py
sul-cidr/scriptchart-backend
38bb4139d77d683d85f31839a1a06096fe2fabbc
[ "MIT" ]
1
2019-08-05T12:47:57.000Z
2019-08-05T12:47:57.000Z
import pathlib import requests from io import BytesIO from django.conf import settings from django.http import HttpResponse from rest_framework import generics from PIL import Image from scripts.models import Manuscript, Page, Coordinates from scripts.serializers import ( ManuscriptSerializer, PageSerializer, C...
31.840426
76
0.683261
4a07e3b2f1fba58965908d71d6306afa3a4d15e3
227
py
Python
tests/__init__.py
idealist/Alfajor
340ed875fd36a2b4aab0caba686dd189cc43f5bd
[ "BSD-3-Clause" ]
2
2015-11-01T22:29:54.000Z
2018-02-15T15:54:30.000Z
tests/__init__.py
jek/alfajor
867f66ea1a9306fe24a0498215d2c9b83d43188d
[ "BSD-3-Clause" ]
1
2015-10-14T08:02:50.000Z
2020-04-26T06:18:48.000Z
tests/__init__.py
idealist/Alfajor
340ed875fd36a2b4aab0caba686dd189cc43f5bd
[ "BSD-3-Clause" ]
3
2015-09-16T14:31:23.000Z
2020-09-08T06:34:12.000Z
# Copyright Action Without Borders, Inc., the Alfajor authors and contributors. # All rights reserved. See AUTHORS. # # This file is part of 'alfajor' and is distributed under the BSD license. # See LICENSE for more details.
32.428571
79
0.757709
4a07e441bf3a004bd2a8796ba5df82c34106dff7
8,859
py
Python
envs/EpidemicMultiEnv.py
covidmulator/EpidemicEnv
d9caf28d2636c1c852cb01e669a038d7a466fc3e
[ "MIT" ]
4
2020-10-29T14:47:15.000Z
2021-11-17T13:51:13.000Z
envs/EpidemicMultiEnv.py
covidmulator/EpidemicEnv
d9caf28d2636c1c852cb01e669a038d7a466fc3e
[ "MIT" ]
1
2020-10-10T16:44:08.000Z
2020-10-19T06:07:03.000Z
envs/EpidemicMultiEnv.py
covidmulator/EpidemicEnv
d9caf28d2636c1c852cb01e669a038d7a466fc3e
[ "MIT" ]
1
2020-10-29T12:25:29.000Z
2020-10-29T12:25:29.000Z
import gym import numpy as np from gym import spaces from sklearn.preprocessing import MinMaxScaler from random import choice, randint, random from typing import List, Tuple # encoding for q table # entity에 개개인의 값을 가지도록 만들면 좋을 듯 EMPTY = 0 COMMON = 2 VIRUS = 1 ISOLATION = 3 AGENT_MATRIX = [ [0, 0, 0, 0, 0, 0, 0, 0, ...
31.193662
144
0.590134
4a07e512d01c66e5bd778c0ab11a00f78fb138a0
5,988
py
Python
PaddleRec/ctr/Paddle_baseline_KDD2019/map_reader.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
5
2021-09-28T13:28:01.000Z
2021-12-21T07:25:44.000Z
PaddleRec/ctr/Paddle_baseline_KDD2019/map_reader.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
2
2019-06-26T03:21:49.000Z
2019-09-19T09:43:42.000Z
PaddleRec/ctr/Paddle_baseline_KDD2019/map_reader.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
3
2021-09-28T15:33:45.000Z
2021-09-29T01:44:32.000Z
# Copyright (c) 2016 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 applic...
41.013699
106
0.616232
4a07e558df59373c4d7dbfa6fe224c4d73a940c2
322
py
Python
bookshop/sqlalchemy/fixture/BookGenre.py
robyoung/genyrator
849f2ec83ef6dd9e2e5928cb58f747cc40016f2a
[ "MIT" ]
null
null
null
bookshop/sqlalchemy/fixture/BookGenre.py
robyoung/genyrator
849f2ec83ef6dd9e2e5928cb58f747cc40016f2a
[ "MIT" ]
9
2019-09-13T09:31:55.000Z
2021-01-11T11:09:17.000Z
bookshop/sqlalchemy/fixture/BookGenre.py
robyoung/genyrator
849f2ec83ef6dd9e2e5928cb58f747cc40016f2a
[ "MIT" ]
1
2020-07-22T15:03:41.000Z
2020-07-22T15:03:41.000Z
import factory from bookshop.sqlalchemy import db from bookshop.sqlalchemy.model.BookGenre import BookGenre class BookGenreFactory(factory.alchemy.SQLAlchemyModelFactory): class Meta: model = BookGenre sqlalchemy_session = db.session book_genre_id = factory.Faker('uuid4', cast_to=lambda x: x...
24.769231
63
0.763975
4a07e570a298bd36f26c458c30ec6c6ed1b923c2
1,981
py
Python
extras/pokemontools/vba/keyboard.py
longlostsoul/EvoYellow
fe5d0d372c4e90d384c4005a93f19d7968f2ff13
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
extras/pokemontools/vba/keyboard.py
longlostsoul/EvoYellow
fe5d0d372c4e90d384c4005a93f19d7968f2ff13
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
extras/pokemontools/vba/keyboard.py
longlostsoul/EvoYellow
fe5d0d372c4e90d384c4005a93f19d7968f2ff13
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
# -*- coding: utf-8 -*- """ This file constructs a networkx.DiGraph object called graph, which can be used to find the shortest path of keypresses on the keyboard to type a word. """ import os import itertools import networkx graph = networkx.DiGraph() # load graph data from file data_path = os.path.join(os.path.dir...
30.476923
142
0.64109
4a07e6f8bca5d0956fdd8a936991d3cfb5100f9f
902
py
Python
zerver/webhooks/yo/view.py
roberthoenig/zulip
5d6724345a8ba4896d21478be2e33e624f8ac8ab
[ "Apache-2.0" ]
null
null
null
zerver/webhooks/yo/view.py
roberthoenig/zulip
5d6724345a8ba4896d21478be2e33e624f8ac8ab
[ "Apache-2.0" ]
null
null
null
zerver/webhooks/yo/view.py
roberthoenig/zulip
5d6724345a8ba4896d21478be2e33e624f8ac8ab
[ "Apache-2.0" ]
null
null
null
# Webhooks for external integrations. from __future__ import absolute_import from zerver.lib.actions import check_send_message from zerver.lib.response import json_success from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view from zerver.models import UserProfile from django.http import Htt...
41
104
0.752772
4a07e785696f3520085a40999762215510eb5bb1
55,884
py
Python
flask/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py
blackbliss/callme
fe254ef4c3af36ab7a65f3de0071d2c79375e3e0
[ "MIT" ]
null
null
null
flask/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py
blackbliss/callme
fe254ef4c3af36ab7a65f3de0071d2c79375e3e0
[ "MIT" ]
4
2017-10-24T22:44:01.000Z
2017-10-24T22:44:19.000Z
flask/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py
blackbliss/callme
fe254ef4c3af36ab7a65f3de0071d2c79375e3e0
[ "MIT" ]
1
2021-04-16T11:10:59.000Z
2021-04-16T11:10:59.000Z
# orm/strategies.py # Copyright (C) 2005-2014 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """sqlalchemy.orm.interfaces.LoaderStrategy implementations, and related MapperOp...
38.276712
85
0.568249
4a07e7f2daa5a4b8726f1363698797ba9c2bb0f7
2,837
py
Python
vendor-local/lib/python/celery/exceptions.py
Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695
bf6a382913901ad193d907f022086931df0de8c4
[ "BSD-3-Clause" ]
1
2015-07-13T03:29:04.000Z
2015-07-13T03:29:04.000Z
vendor-local/lib/python/celery/exceptions.py
Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695
bf6a382913901ad193d907f022086931df0de8c4
[ "BSD-3-Clause" ]
2
2015-03-03T23:02:19.000Z
2019-03-30T04:45:51.000Z
vendor-local/lib/python/celery/exceptions.py
Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695
bf6a382913901ad193d907f022086931df0de8c4
[ "BSD-3-Clause" ]
2
2016-04-15T11:43:05.000Z
2016-04-15T11:43:15.000Z
# -*- coding: utf-8 -*- """ celery.exceptions ~~~~~~~~~~~~~~~~~ This module contains all exceptions used by the Celery API. """ from __future__ import absolute_import from billiard.exceptions import ( # noqa SoftTimeLimitExceeded, TimeLimitExceeded, WorkerLostError, Terminated, ) UNREGISTERED_FMT =...
24.042373
78
0.670779
4a07e855f1f11c1aca7ba2a099f714fc1fb80962
6,505
py
Python
strategy.py
Pyprohly/powershell-bot
8da0831f09af95b2524a1988c44b6d6cb6d0ae0b
[ "MIT" ]
4
2019-02-03T21:01:30.000Z
2019-04-15T19:09:27.000Z
strategy.py
Pyprohly/powershell-bot
8da0831f09af95b2524a1988c44b6d6cb6d0ae0b
[ "MIT" ]
null
null
null
strategy.py
Pyprohly/powershell-bot
8da0831f09af95b2524a1988c44b6d6cb6d0ae0b
[ "MIT" ]
null
null
null
import os import time import logging from pathlib import Path import re import praw, prawcore from reddit import reddit import db_services from regex_checks import TopicFlags, ExtraFlags, match_control from messages import get_message from powershell_bot import register script_path = Path(__file__).resolve() os.chdi...
30.97619
120
0.725749
4a07e87c0d7748807e21b23b77e5c528c9d2598f
7,839
py
Python
dataset/cifar10_rmlabel.py
blackcow/Fair-AT
62fc269fedd4b63c4b48ae390d494b3832e65fa8
[ "Apache-2.0" ]
null
null
null
dataset/cifar10_rmlabel.py
blackcow/Fair-AT
62fc269fedd4b63c4b48ae390d494b3832e65fa8
[ "Apache-2.0" ]
null
null
null
dataset/cifar10_rmlabel.py
blackcow/Fair-AT
62fc269fedd4b63c4b48ae390d494b3832e65fa8
[ "Apache-2.0" ]
null
null
null
""" 对 training load data 改写 按比例删除某 label 下的数据 """ from __future__ import print_function from PIL import Image import os import os.path import numpy as np import sys if sys.version_info[0] == 2: import cPickle as pickle else: import pickle import torch.utils.data as data from torchvision.datasets.utils import ...
34.685841
110
0.589871