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
578eb4b2256c789d7177ecf50be80f3f522b2335
3,457
py
Python
upstat.py
requiem202/dopa
c0ccf8c4a2b2aa613417d0b4a118597c5b4f80b4
[ "MIT" ]
null
null
null
upstat.py
requiem202/dopa
c0ccf8c4a2b2aa613417d0b4a118597c5b4f80b4
[ "MIT" ]
null
null
null
upstat.py
requiem202/dopa
c0ccf8c4a2b2aa613417d0b4a118597c5b4f80b4
[ "MIT" ]
null
null
null
# http://stat.dopa.go.th/stat/statnew/upstat_age.php import requests import bs4 # import csv # import numpy as np import pandas as pd years = [ '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', ...
28.808333
346
0.599653
6e5fecab0a9337f3bf8a6f93413641d82548be62
712
py
Python
Operator2.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
1
2021-06-07T07:55:28.000Z
2021-06-07T07:55:28.000Z
Operator2.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
Operator2.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
''' class Name : Demo Function Name : __add__() Description : Demonstration Of Operator Overloading V2 Function Date : 15 Mar 2021 Function Author : Prasad Dangare Input : Int Output : Int ''' class Demo: def __init__(self, x, y): self.i = x ...
18.25641
61
0.51264
0720faec38991846e09093ae14fa8c9b37764dc1
1,654
py
Python
annotation/analyze/show_annotated.py
seal-git/chABSA-dataset
a33b59e1101e451495735c69094d4f598d54f6f4
[ "MIT" ]
107
2018-04-10T09:13:57.000Z
2022-03-31T15:21:20.000Z
annotation/analyze/show_annotated.py
seal-git/chABSA-dataset
a33b59e1101e451495735c69094d4f598d54f6f4
[ "MIT" ]
2
2018-10-27T05:47:47.000Z
2022-02-25T10:06:43.000Z
annotation/analyze/show_annotated.py
seal-git/chABSA-dataset
a33b59e1101e451495735c69094d4f598d54f6f4
[ "MIT" ]
9
2018-04-11T00:59:15.000Z
2022-02-25T11:50:33.000Z
import os from collections import Counter import json ANNOTATE_DIR = os.path.join(os.path.dirname(__file__), "../../data/annotated") def print_counter(c): result = c.most_common() result_dict = dict(result) string = json.dumps(result_dict, ensure_ascii=False, indent=2, sort_keys=True) print(string) ...
29.535714
88
0.539903
17529bd778d0956c70d3fdec9734b30a0ab9ff44
2,926
py
Python
addons/Sprytile-6b68d00/rx/subjects/subject.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
733
2017-08-22T09:47:54.000Z
2022-03-27T23:56:52.000Z
rx/subjects/subject.py
asheraryam/Sprytile
c63be50d14b07192ff134ceab256f0d69b9c4c92
[ "MIT" ]
74
2017-08-16T09:13:05.000Z
2022-03-15T02:31:49.000Z
rx/subjects/subject.py
asheraryam/Sprytile
c63be50d14b07192ff134ceab256f0d69b9c4c92
[ "MIT" ]
77
2017-09-14T16:56:11.000Z
2022-03-27T13:55:16.000Z
from rx import config from rx.core import Observer, ObservableBase, Disposable from rx.internal import DisposedException from .anonymoussubject import AnonymousSubject from .innersubscription import InnerSubscription class Subject(ObservableBase, Observer): """Represents an object that is both an observable sequ...
28.134615
77
0.584757
4577b301cd1f052a9ea154cd3758d0af56874e04
442
py
Python
src/mobot/asgi.py
mobilecoinofficial/mobot
4872e4308beb5305d88dcace94394aaa251f65e1
[ "MIT" ]
6
2021-07-28T13:49:16.000Z
2022-02-16T22:08:03.000Z
src/mobot/asgi.py
mobilecoinofficial/mobot
4872e4308beb5305d88dcace94394aaa251f65e1
[ "MIT" ]
10
2021-08-18T15:18:34.000Z
2021-09-27T21:40:24.000Z
mobot/mobot/asgi.py
sugargoat/mobot-1
407ac7fa477a1274bacc718c3080d94c35d40d5c
[ "MIT" ]
3
2021-07-28T01:17:06.000Z
2021-09-20T21:19:50.000Z
# Copyright (c) 2021 MobileCoin. All rights reserved. """ ASGI config for mobot 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_...
23.263158
78
0.778281
c06f1760cbcdb4b1c02885894921d1d6d5cc47cd
3,106
py
Python
fundamentals/dynamic_programming/text_justification.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
fundamentals/dynamic_programming/text_justification.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
fundamentals/dynamic_programming/text_justification.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python class TextJustification(object): """ This is how LateX justifies its text Goal: split text into "good" lines where the text is an array of words, size N Def badness(i,j) = how "bad" it would be to use words i, ..., j-1 as a line INF if the text doesn't fit ...
27.732143
104
0.573406
3c13e98c4c7d8dfdc0ab4e4fa758710d2051ddce
2,317
py
Python
examples/harris/harris_numba.py
uw-ipd/numba
26dde2b28cadda403a5549a84dc1698900b23f74
[ "BSD-2-Clause" ]
140
2017-07-15T21:17:44.000Z
2022-03-19T00:56:05.000Z
examples/harris/harris_numba.py
uw-ipd/numba
26dde2b28cadda403a5549a84dc1698900b23f74
[ "BSD-2-Clause" ]
24
2017-07-24T16:25:35.000Z
2021-12-08T17:54:38.000Z
examples/harris/harris_numba.py
uw-ipd/numba
26dde2b28cadda403a5549a84dc1698900b23f74
[ "BSD-2-Clause" ]
50
2017-07-15T21:15:16.000Z
2021-12-12T15:27:05.000Z
#! /usr/bin/env python # # Copyright (c) 2017 Intel Corporation # SPDX-License-Identifier: BSD-2-Clause # from __future__ import print_function import sys import time import os import numpy as np from numba import njit, stencil try: from PIL import Image except ImportError: raise RuntimeError("Pillow is ne...
26.033708
138
0.577902
e7ba646bb38b9cdc1a47e5067cc1c11892cd14aa
871
py
Python
tests/data/expected/parser/openapi/openapi_parser_parse/with_import_format.py
stevesimmons/datamodel-code-generator
b77009e978607064939333992a28b323b3420579
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/parser/openapi/openapi_parser_parse/with_import_format.py
stevesimmons/datamodel-code-generator
b77009e978607064939333992a28b323b3420579
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/parser/openapi/openapi_parser_parse/with_import_format.py
stevesimmons/datamodel-code-generator
b77009e978607064939333992a28b323b3420579
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
from __future__ import annotations from typing import List, Optional from pydantic import AnyUrl, BaseModel class Pet(BaseModel): id: int name: str tag: Optional[str] = None class Pets(BaseModel): __root__: List[Pet] class User(BaseModel): id: int name: str tag: Optional[str] = None ...
15.017241
48
0.683123
1a59c010099b0c8cde9cdbafa5147927e3d18895
18,914
py
Python
appengine/cr-buildbucket/validation.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/cr-buildbucket/validation.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/cr-buildbucket/validation.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Validates V2 proto messages. Internally, this module is a bit magical. It keeps a stack of fields currently being validated per thread. It is used to con...
30.555735
129
0.694248
2af67d5eb9bf521adcc74c3b5e0e2fc96808e92f
4,418
py
Python
pytorch_lightning/utilities/parsing.py
stas00/pytorch-lightning
84c507c4df5f5c336deb19ce7f70fa02329f39f6
[ "Apache-2.0" ]
1
2021-06-10T07:12:58.000Z
2021-06-10T07:12:58.000Z
pytorch_lightning/utilities/parsing.py
stas00/pytorch-lightning
84c507c4df5f5c336deb19ce7f70fa02329f39f6
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/utilities/parsing.py
stas00/pytorch-lightning
84c507c4df5f5c336deb19ce7f70fa02329f39f6
[ "Apache-2.0" ]
null
null
null
import inspect from argparse import Namespace from typing import Dict def str_to_bool(val): """Convert a string representation of truth to true (1) or false (0). Copied from the python implementation distutils.utils.strtobool True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values are 'n...
30.895105
98
0.615211
ab17b080fb3448654afbb6623fff5a9539f4d1c2
237
py
Python
web_app/forms.py
BuilderTron/torres_yardworks
75f9be62ea9a8a48295836ca5a35121cb1ee0472
[ "MIT" ]
null
null
null
web_app/forms.py
BuilderTron/torres_yardworks
75f9be62ea9a8a48295836ca5a35121cb1ee0472
[ "MIT" ]
null
null
null
web_app/forms.py
BuilderTron/torres_yardworks
75f9be62ea9a8a48295836ca5a35121cb1ee0472
[ "MIT" ]
null
null
null
from django import forms from .models import ClientLeads class ReqForm(forms.ModelForm): class Meta: model = ClientLeads fields = ("first_name", "last_name", "email", "phone", "address", "date", "service", "message")
33.857143
103
0.670886
92413dfc6406e032db9b6f148e26b1323fd36648
396
py
Python
pymath/binary/divisible_by_5/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
pymath/binary/divisible_by_5/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
pymath/binary/divisible_by_5/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
class Divisible5(object): def __init__(self, binary_lst): self.binary_lst = binary_lst def div_five(self): return ",".join([x for x in self.binary_lst.split(",") if int(x, 2) % 5 == 0]) def div_five_tw0(self): lst = [] for x in self.binary_lst.split(","): if int...
28.285714
86
0.527778
a026d8df444f17f36f78d9e5bc91d63b13d363b6
643
py
Python
audiomentations/__init__.py
lixianyi/audiomentations
8bbd26537545c946d306b099aed46edc7dad727a
[ "MIT" ]
1
2021-09-17T09:28:10.000Z
2021-09-17T09:28:10.000Z
audiomentations/__init__.py
lixianyi/audiomentations
8bbd26537545c946d306b099aed46edc7dad727a
[ "MIT" ]
null
null
null
audiomentations/__init__.py
lixianyi/audiomentations
8bbd26537545c946d306b099aed46edc7dad727a
[ "MIT" ]
null
null
null
from .augmentations.spectrogram_transforms import SpecFrequencyMask, SpecChannelShuffle from .augmentations.transforms import ( AddBackgroundNoise, AddGaussianNoise, AddGaussianSNR, AddImpulseResponse, ApplyImpulseResponse, AddShortNoises, BandPassFilter, Clip, ClippingDistortion, ...
20.741935
87
0.723173
7c91c491fae883d1f7cc17aa70fd9f04fd26b208
3,306
py
Python
t5/spider_dataset_utils.py
TomerRonen34/SmBopCompGen
c14d566126951e31dcaa506bbece8d19afe01f33
[ "MIT" ]
null
null
null
t5/spider_dataset_utils.py
TomerRonen34/SmBopCompGen
c14d566126951e31dcaa506bbece8d19afe01f33
[ "MIT" ]
null
null
null
t5/spider_dataset_utils.py
TomerRonen34/SmBopCompGen
c14d566126951e31dcaa506bbece8d19afe01f33
[ "MIT" ]
null
null
null
""" inspired by https://github.com/google-research/language/blob/master/language/nqg/tasks/spider/append_schema.py and https://github.com/google-research/language/blob/master/language/nqg/tasks/spider/write_dataset.py """ from collections import defaultdict from pathlib import Path from typing import Tuple, List, Dict...
37.146067
110
0.713249
8d8cab731b6ce293421afc88be3454b4ae34aa0a
16,783
py
Python
server/app/app.py
prete/cellxgene
11acea86c4b3df334300fac7e9e034c1e61e67bc
[ "MIT" ]
3
2019-11-11T15:41:07.000Z
2020-12-14T08:47:35.000Z
server/app/app.py
prete/cellxgene
11acea86c4b3df334300fac7e9e034c1e61e67bc
[ "MIT" ]
null
null
null
server/app/app.py
prete/cellxgene
11acea86c4b3df334300fac7e9e034c1e61e67bc
[ "MIT" ]
1
2021-05-12T15:15:05.000Z
2021-05-12T15:15:05.000Z
import datetime import logging from functools import wraps from http import HTTPStatus from urllib.parse import urlparse import hashlib import os from flask import ( Flask, redirect, current_app, make_response, render_template, abort, Blueprint, request, send_from_directory, ) from ...
36.484783
118
0.681404
0dce756af4ac34eaddd1baa00507dcd0039cb704
3,137
py
Python
osm/transformers/PreprocessTransformer.py
cjneetha/osm
cc391fbfee8c89a1f15257ea36e6bbc85bbea938
[ "MIT" ]
1
2018-06-12T09:11:34.000Z
2018-06-12T09:11:34.000Z
osm/transformers/PreprocessTransformer.py
cjneetha/osm
cc391fbfee8c89a1f15257ea36e6bbc85bbea938
[ "MIT" ]
null
null
null
osm/transformers/PreprocessTransformer.py
cjneetha/osm
cc391fbfee8c89a1f15257ea36e6bbc85bbea938
[ "MIT" ]
2
2018-10-22T12:32:02.000Z
2018-12-28T11:43:03.000Z
from sklearn.base import TransformerMixin, BaseEstimator import osm.transformers.preprocessor as utils class PreprocessTransformer(BaseEstimator, TransformerMixin): def __init__(self, replace_urls=False, replace_emoticons=False, replace_exclamations=False, ...
48.261538
94
0.586548
baf5a8d244276591b16fcf1676d22e4321272546
22
py
Python
ch01/hungry.py
KevinCarpricorn/Code
8d0164f5b28f937e8891854f86e1a9b584122b48
[ "MIT" ]
null
null
null
ch01/hungry.py
KevinCarpricorn/Code
8d0164f5b28f937e8891854f86e1a9b584122b48
[ "MIT" ]
null
null
null
ch01/hungry.py
KevinCarpricorn/Code
8d0164f5b28f937e8891854f86e1a9b584122b48
[ "MIT" ]
null
null
null
print("I'm hungry!")
11
21
0.590909
f5e938bd6693acdfb11d4c959bf177ca3851066b
1,545
py
Python
chpt4/Lottery.py
GDG-Buea/learn-python
9dfe8caa4b57489cf4249bf7e64856062a0b93c2
[ "Apache-2.0" ]
null
null
null
chpt4/Lottery.py
GDG-Buea/learn-python
9dfe8caa4b57489cf4249bf7e64856062a0b93c2
[ "Apache-2.0" ]
2
2018-05-21T09:39:00.000Z
2018-05-27T15:59:15.000Z
chpt4/Lottery.py
GDG-Buea/learn-python
9dfe8caa4b57489cf4249bf7e64856062a0b93c2
[ "Apache-2.0" ]
2
2018-05-19T14:59:56.000Z
2018-05-19T15:25:48.000Z
# This program prompts the user to enter a three-digit number and determines whether the user wins according # to the following rules: # 1. If the user input matches the lottery number in the exact order, the award is # $10,000. # 2. If all the digits in the user input match all the digits in the lottery number, the #...
38.625
108
0.752104
bb56dbf0d869f5260249c7ad71880d92819a38a3
910
py
Python
packages/pyright-internal/src/tests/samples/annotatedVar5.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
4,391
2019-05-07T01:18:57.000Z
2022-03-31T20:45:44.000Z
packages/pyright-internal/src/tests/samples/annotatedVar5.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
2,740
2019-05-07T03:29:30.000Z
2022-03-31T12:57:46.000Z
packages/pyright-internal/src/tests/samples/annotatedVar5.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
455
2019-05-07T12:55:14.000Z
2022-03-31T17:09:15.000Z
# This sample tests type annotations for instance variables. class ClassC(object): def __init__(self): self.inst_var1 = 3 @property def prop1(self): return 1 @prop1.setter def prop1(self, val): pass def foo(self): # This should generate an error because the a...
23.947368
60
0.616484
bf4de26e1b105a29e681e61163c98b1535def1b9
3,541
py
Python
roccclient/models/page_of_persons_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
roccclient/models/page_of_persons_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
14
2020-12-06T23:54:23.000Z
2021-02-03T18:35:02.000Z
roccclient/models/page_of_persons_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Registry of Open Community Challenge API The OpenAPI specification implemented by the Challenge Registries. # Introduction TBA # noqa: E501 The version of the OpenAPI document: 0.1.4 Contact: thomas.schaffter@sagebionetworks.org Generated by: https://openapi-generator.tech "...
28.556452
104
0.586275
9edcb9e090c6785a9096b3736757a151a54dce98
20,253
py
Python
mmtbx/maps/mtriage.py
gbunkoczi/cctbx_project
2b330def68e362f838d93abe2eb2a8bc6d650408
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/maps/mtriage.py
gbunkoczi/cctbx_project
2b330def68e362f838d93abe2eb2a8bc6d650408
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/maps/mtriage.py
gbunkoczi/cctbx_project
2b330def68e362f838d93abe2eb2a8bc6d650408
[ "BSD-3-Clause-LBNL" ]
1
2021-03-26T12:52:30.000Z
2021-03-26T12:52:30.000Z
from __future__ import absolute_import, division, print_function import sys from libtbx import group_args from cctbx import maptbx import iotbx.phil from libtbx import adopt_init_args from cctbx.maptbx import resolution_from_map_and_model from libtbx import group_args from cctbx import miller, adptbx from mmtbx import ...
36.62387
85
0.662075
31a4fc6272833a2fd8f8ded5ca66dd5ad3b78a50
204
py
Python
app/entrypoint/operator/__init__.py
globocom/enforcement
004ff545d6d61b95b555d9981525510496862b3e
[ "BSD-3-Clause" ]
7
2020-11-08T18:02:26.000Z
2021-10-15T21:40:35.000Z
app/entrypoint/operator/__init__.py
globocom/enforcement
004ff545d6d61b95b555d9981525510496862b3e
[ "BSD-3-Clause" ]
19
2020-11-19T20:57:20.000Z
2021-09-03T14:53:34.000Z
app/entrypoint/operator/__init__.py
globocom/enforcement-service
004ff545d6d61b95b555d9981525510496862b3e
[ "BSD-3-Clause" ]
3
2020-10-03T02:40:34.000Z
2020-10-19T10:17:06.000Z
from app.entrypoint.operator.base_controller import BaseController from app.entrypoint.operator.cluster_rule_controller import ClusterRuleController __all__ = ['ClusterRuleController', 'BaseController']
40.8
81
0.867647
2671a12137caa28aed8305be2b721b4431af6359
1,475
py
Python
samples/generated_samples/retail_v2_generated_catalog_service_list_catalogs_sync.py
tetiana-karasova/python-retail
b834c1fb16212e59241267e18d38b490e962af7f
[ "Apache-2.0" ]
1
2022-02-11T14:00:31.000Z
2022-02-11T14:00:31.000Z
samples/generated_samples/retail_v2_generated_catalog_service_list_catalogs_sync.py
tetiana-karasova/python-retail
b834c1fb16212e59241267e18d38b490e962af7f
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/retail_v2_generated_catalog_service_list_catalogs_sync.py
tetiana-karasova/python-retail
b834c1fb16212e59241267e18d38b490e962af7f
[ "Apache-2.0" ]
2
2022-01-28T09:53:16.000Z
2022-02-07T14:27:38.000Z
# -*- coding: utf-8 -*- # Copyright 2022 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...
31.382979
85
0.754576
f7baddc3fb92b8a125421774d798390ea89f7e60
14,539
py
Python
src/examplePlugins/update_timecode_values.py
darkvertex/shotgunEvents
453005e6b4ec42031102f032ff8cfb73709bbcef
[ "MIT" ]
null
null
null
src/examplePlugins/update_timecode_values.py
darkvertex/shotgunEvents
453005e6b4ec42031102f032ff8cfb73709bbcef
[ "MIT" ]
null
null
null
src/examplePlugins/update_timecode_values.py
darkvertex/shotgunEvents
453005e6b4ec42031102f032ff8cfb73709bbcef
[ "MIT" ]
null
null
null
# Copyright 2018 Autodesk, Inc. All rights reserved. # # Use of this software is subject to the terms of the Autodesk license agreement # provided at the time of installation or download, or which otherwise accompanies # this software in either electronic or hard copy form. # # See docs folder for detailed usage info...
32.024229
89
0.596877
ccd53a8d3862ef5c6d2753c2286b26b68df9b5ca
2,204
py
Python
pebm/ebm/WavesCharacteristics.py
SheinaG/pebm_new
ab5822a66c18d18dcf52e1b6af8b1bd515462fd2
[ "MIT" ]
null
null
null
pebm/ebm/WavesCharacteristics.py
SheinaG/pebm_new
ab5822a66c18d18dcf52e1b6af8b1bd515462fd2
[ "MIT" ]
null
null
null
pebm/ebm/WavesCharacteristics.py
SheinaG/pebm_new
ab5822a66c18d18dcf52e1b6af8b1bd515462fd2
[ "MIT" ]
null
null
null
import numpy as np def compute_amp(ecg, features_dict): amp = np.ones(len(features_dict[0])) * -1 if len(features_dict) == 1: amp[features_dict[0] != -1] = ecg[features_dict[0][features_dict[0] != -1]] else: begin_amp = np.ones(len(features_dict[0])) * -1 end_amp = np.ones(len(fea...
36.733333
89
0.604809
77dffec983e941c840257d45e516e4a1ee1abac5
145
py
Python
src/cms/views/offer_templates/__init__.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
4
2019-12-05T16:45:17.000Z
2020-05-09T07:26:34.000Z
src/cms/views/offer_templates/__init__.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
56
2019-12-05T12:31:37.000Z
2021-01-07T15:47:45.000Z
src/cms/views/offer_templates/__init__.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
2
2019-12-11T09:52:26.000Z
2020-05-09T07:26:38.000Z
""" Python standard Init-File """ from .offer_template_list_view import OfferTemplateListView from .offer_template_view import OfferTemplateView
24.166667
59
0.848276
1717c2dfe8ff950225a3e707cf5448cf3e647835
1,122
py
Python
ofx2xlsmbr/tests/BankStatementAdderTest.py
rmusmanno/ofx2xlsmbr
15d45148f6ad77ee300a42215c3098576ff9d7c4
[ "MIT" ]
null
null
null
ofx2xlsmbr/tests/BankStatementAdderTest.py
rmusmanno/ofx2xlsmbr
15d45148f6ad77ee300a42215c3098576ff9d7c4
[ "MIT" ]
1
2021-03-31T19:12:01.000Z
2021-03-31T19:12:01.000Z
ofx2xlsmbr/tests/BankStatementAdderTest.py
rmusmanno/ofx2xlsmbr
15d45148f6ad77ee300a42215c3098576ff9d7c4
[ "MIT" ]
null
null
null
from ..utils.BankStatementAdder import BankStatementAdder from ..model.BankStatement import BankStatement from ..model.CashFlow import CashFlow, CashFlowType import datetime import logging logger = logging.getLogger(__name__) def bankStatementAdderTest(): outflow = [CashFlow('debit 1', CashFlowType.DEBIT, -100....
38.689655
98
0.688948
3ae52b5097ceb7e3b0fcd3d887855006ae286b30
53,352
py
Python
acapi2/tests/test_environments.py
pmatias/acapi2
06df9f7e0ebf77c01aa05572d6c9a21e5ca0a353
[ "MIT" ]
null
null
null
acapi2/tests/test_environments.py
pmatias/acapi2
06df9f7e0ebf77c01aa05572d6c9a21e5ca0a353
[ "MIT" ]
null
null
null
acapi2/tests/test_environments.py
pmatias/acapi2
06df9f7e0ebf77c01aa05572d6c9a21e5ca0a353
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Test Acquia Environments""" import requests_mock from acapi2.tests import BaseTest @requests_mock.Mocker() class TestEnvironments(BaseTest): def test_backups(self, mocker): env_id = "1-a47ac10b-58cc-4372-a567-0e02b2c3d470" db_name = "db_name" ...
40.296073
141
0.452504
2f5bf1a750e849a158abb9b14e152caf1234c7b9
1,699
py
Python
umatobi/mock_studying/mock_study.py
umedoblock/umatobi
d0c6bcb350dc951e8f57a0c03389082902803165
[ "MIT" ]
3
2019-08-18T19:02:57.000Z
2020-02-17T03:23:24.000Z
umatobi/mock_studying/mock_study.py
umedoblock/umatobi
d0c6bcb350dc951e8f57a0c03389082902803165
[ "MIT" ]
227
2018-11-25T12:04:42.000Z
2019-12-26T14:18:32.000Z
umatobi/mock_studying/mock_study.py
umedoblock/umatobi
d0c6bcb350dc951e8f57a0c03389082902803165
[ "MIT" ]
null
null
null
import unittest from unittest.mock import MagicMock from unittest.mock import patch class Bar(object): def __init__(self): self.bar = 'bar __init__()' # __init__() kill bar() function print('bar __init__()') def bar(self): # self.bar = 'bar bar()' # bar() suiside ageint Bar class ...
24.623188
76
0.569747
e97a1567e97e7b1d3c5ebb9a1cb3d66d98d68683
2,035
py
Python
src/easynlp/summarization.py
easynlp/easynlp
4b3b405a64ca166cc19ee9c43b79a475cf699996
[ "MIT" ]
6
2021-07-09T08:13:44.000Z
2021-11-10T04:09:33.000Z
src/easynlp/summarization.py
easynlp/easynlp
4b3b405a64ca166cc19ee9c43b79a475cf699996
[ "MIT" ]
1
2021-07-09T17:18:16.000Z
2021-07-09T17:18:16.000Z
src/easynlp/summarization.py
easynlp/easynlp
4b3b405a64ca166cc19ee9c43b79a475cf699996
[ "MIT" ]
1
2022-02-09T15:37:14.000Z
2022-02-09T15:37:14.000Z
from easynlp.data import handle_data import transformers from typing import Dict, List, Optional, Union import pandas as pd import datasets def summarization( data: Union[List[Dict[str, str]], Dict[str, List], pd.DataFrame, datasets.Dataset], input_column: str = "text", output_column: str = "summarization...
29.071429
87
0.681572
11b762101cf7e8617b08ab5ba049aa7807fd0459
832
py
Python
translate/google/cloud/translate_v2/__init__.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
1
2021-01-04T11:40:17.000Z
2021-01-04T11:40:17.000Z
translate/google/cloud/translate_v2/__init__.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
translate/google/cloud/translate_v2/__init__.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
# 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 agreed to in writing, ...
29.714286
74
0.759615
51174e9b44c78a24c965e9df5abc942953b0e3a7
88,372
py
Python
sekoia.io/lib/stix2patterns/v20/grammars/STIXPatternParser.py
cdc-eba/SEKOIA.IO-for-Splunk
329fefe08bba6c90a90dcfaa3ab5d9c4d1c8670f
[ "Apache-2.0" ]
3
2021-01-06T06:14:56.000Z
2021-01-29T16:01:20.000Z
sekoia.io/lib/stix2patterns/v20/grammars/STIXPatternParser.py
cdc-eba/SEKOIA.IO-for-Splunk
329fefe08bba6c90a90dcfaa3ab5d9c4d1c8670f
[ "Apache-2.0" ]
3
2021-06-10T15:05:26.000Z
2021-11-10T11:31:08.000Z
sekoia.io/lib/stix2patterns/v20/grammars/STIXPatternParser.py
cdc-eba/SEKOIA.IO-for-Splunk
329fefe08bba6c90a90dcfaa3ab5d9c4d1c8670f
[ "Apache-2.0" ]
1
2021-06-22T12:25:05.000Z
2021-06-22T12:25:05.000Z
# Generated from STIXPattern.g4 by ANTLR 4.8 # encoding: utf-8 from __future__ import print_function from antlr4 import * from io import StringIO import sys def serializedATN(): with StringIO() as buf: buf.write(u"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3") buf.write(u"\67\u00e9\4\2\t\2...
39.504694
399
0.60621
20f6f8511b493f65d1edfb25d769e7fe98ade580
479
py
Python
app/app/urls.py
pinussilvestrus/django-solid-app
de3f450a0e1c283e86e067ce4d78cbd22da7c394
[ "MIT" ]
null
null
null
app/app/urls.py
pinussilvestrus/django-solid-app
de3f450a0e1c283e86e067ce4d78cbd22da7c394
[ "MIT" ]
null
null
null
app/app/urls.py
pinussilvestrus/django-solid-app
de3f450a0e1c283e86e067ce4d78cbd22da7c394
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include # add this from rest_framework import routers # add this from todo import views # add this router = routers.DefaultRouter() # add this router.register(r'todos', view...
43.545455
105
0.565762
b213380ca7e6972830c5d13bc7b06bee5a640aed
1,914
py
Python
official/cv/MCNN/preprocess.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/MCNN/preprocess.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/MCNN/preprocess.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.061224
107
0.655695
d94ba05c01e974d4d7cae916196ddc5bfbe664ca
496
py
Python
roles/diodonfrost.terraform/filter_plugins/sort_versions.py
justin-p/ansible-my-linux-workstation
3f1173f859442f3d5717c839b737a4a13628ce54
[ "MIT" ]
8
2019-05-03T00:08:39.000Z
2021-02-18T14:25:00.000Z
filter_plugins/sort_versions.py
diodonfrost/ansible-role-jetbrains-toolbox
e52bb48d991eb4ffa5097c860939937bb5be639d
[ "Apache-2.0" ]
5
2020-10-08T19:25:41.000Z
2020-10-08T19:26:55.000Z
filter_plugins/sort_versions.py
diodonfrost/ansible-role-jetbrains-toolbox
e52bb48d991eb4ffa5097c860939937bb5be639d
[ "Apache-2.0" ]
6
2020-11-25T23:27:30.000Z
2022-03-28T09:37:16.000Z
"""Sort complex versions""" from distutils.version import LooseVersion def filter_sort_versions(value): """ Ansible entrypoint function """ return sorted(value, key=LooseVersion) class FilterModule(object): """ Sort complex versions like 0.10.2, 0.1.1, 0.10.12 """ filter_sor...
19.076923
57
0.604839
5f1c9159d690df35b1299e502a552dd8aa7a672c
6,889
py
Python
vv_create.py
y-chan/amitaro-ita-corpus
16b3a4473c9c4bf68d1eb30b980ccb1828668e40
[ "Unlicense" ]
null
null
null
vv_create.py
y-chan/amitaro-ita-corpus
16b3a4473c9c4bf68d1eb30b980ccb1828668e40
[ "Unlicense" ]
null
null
null
vv_create.py
y-chan/amitaro-ita-corpus
16b3a4473c9c4bf68d1eb30b980ccb1828668e40
[ "Unlicense" ]
null
null
null
import copy import uuid import json vowel_phoneme_list = ["a", "i", "u", "e", "o", "N", "A", "I", "U", "E", "O", "cl"] _mora_list_minimum = [ ["ヴォ", "v", "o"], ["ヴェ", "v", "e"], ["ヴィ", "v", "i"], ["ヴァ", "v", "a"], ["ヴ", "v", "u"], ["ン", "", "N"], ["ワ", "w", "a"], ["ロ", "r", "o"], ["...
26.394636
91
0.367397
9938c8fac9e196a561aef5a58f306bf1da4cb7f5
9,188
py
Python
pyPLANES/utils/io.py
matael/pyPLANES
7f591090446303884c9a3d049e42233efae0b7f4
[ "MIT" ]
null
null
null
pyPLANES/utils/io.py
matael/pyPLANES
7f591090446303884c9a3d049e42233efae0b7f4
[ "MIT" ]
null
null
null
pyPLANES/utils/io.py
matael/pyPLANES
7f591090446303884c9a3d049e42233efae0b7f4
[ "MIT" ]
1
2020-12-15T16:24:08.000Z
2020-12-15T16:24:08.000Z
#! /usr/bin/env python # -*- coding:utf8 -*- # # utils_io.py # # This file is part of pyplanes, a software distributed under the MIT license. # For any question, please contact one of the authors cited below. # # Copyright (c) 2020 # Olivier Dazel <olivier.dazel@univ-lemans.fr> # Mathieu Gaborit <gaborit@kth.se> # P...
37.655738
149
0.556922
83db61cc5fb33cd485a1668387c1886716867da4
7,385
py
Python
morpheus/app/utils.py
alextford11/morpheus
74cd3482e06b66316847587dcdd124ac989f809d
[ "MIT" ]
null
null
null
morpheus/app/utils.py
alextford11/morpheus
74cd3482e06b66316847587dcdd124ac989f809d
[ "MIT" ]
null
null
null
morpheus/app/utils.py
alextford11/morpheus
74cd3482e06b66316847587dcdd124ac989f809d
[ "MIT" ]
null
null
null
from dataclasses import dataclass import base64 import hashlib import hmac import re import secrets import ujson from aiohttp.hdrs import METH_GET, METH_HEAD, METH_OPTIONS from aiohttp.web import Application, Request, Response from aiohttp.web_exceptions import HTTPException from aiohttp_jinja2 import render_template ...
31.559829
111
0.64807
b486f76ee0d686b9aed85f8bba9f703f30c9de6d
805
py
Python
electrum_mona/scripts/get_history.py
david4neblio/electrum-mona
2d13b066be2d6205aeaa7ca859884c3ec1b92e83
[ "MIT" ]
61
2017-08-06T08:51:49.000Z
2021-12-28T06:25:36.000Z
electrum_mona/scripts/get_history.py
david4neblio/electrum-mona
2d13b066be2d6205aeaa7ca859884c3ec1b92e83
[ "MIT" ]
15
2017-09-12T07:15:01.000Z
2021-12-28T06:25:15.000Z
electrum_mona/scripts/get_history.py
david4neblio/electrum-mona
2d13b066be2d6205aeaa7ca859884c3ec1b92e83
[ "MIT" ]
27
2017-08-18T19:40:30.000Z
2021-03-01T11:16:02.000Z
#!/usr/bin/env python3 import sys import asyncio from electrum_mona import bitcoin from electrum_mona.network import Network from electrum_mona.util import json_encode, print_msg, create_and_start_event_loop, log_exceptions from electrum_mona.simple_config import SimpleConfig try: addr = sys.argv[1] except Exce...
23.676471
98
0.761491
952ffcb57709b8f488f0edffb0695aea7ef16fc0
1,837
py
Python
eval_main_local.py
googleinterns/humangps
ce279292adfbf3f7f700f3f5889014be64bbc544
[ "Apache-2.0" ]
37
2021-05-14T05:35:51.000Z
2022-03-30T02:46:33.000Z
eval_main_local.py
googleinterns/humangps
ce279292adfbf3f7f700f3f5889014be64bbc544
[ "Apache-2.0" ]
6
2021-05-28T10:05:47.000Z
2021-11-17T15:23:08.000Z
eval_main_local.py
googleinterns/humangps
ce279292adfbf3f7f700f3f5889014be64bbc544
[ "Apache-2.0" ]
5
2021-05-23T21:50:06.000Z
2022-02-09T13:42:21.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.135593
74
0.74687
ae294e72120eaf1f6485a035710a2a4d7778c9a5
101
py
Python
run.py
easystef/covid-webapp
a0c6a303a4a275c8fdfc169ce73f3ce8c94cbfa5
[ "MIT" ]
null
null
null
run.py
easystef/covid-webapp
a0c6a303a4a275c8fdfc169ce73f3ce8c94cbfa5
[ "MIT" ]
null
null
null
run.py
easystef/covid-webapp
a0c6a303a4a275c8fdfc169ce73f3ce8c94cbfa5
[ "MIT" ]
null
null
null
from app import app if __name__ == "__main__": app.run(host="127.0.0.1", port=8080, debug=True)
20.2
52
0.663366
d5cfecfd726e8f6859348f743c6474fda8de6765
1,878
py
Python
flask-jwt/jwt_util.py
hmtmcse/flask-exp
b3dd28b0f283ada7e1ea81f2627678e6ce4ce6a8
[ "Apache-2.0" ]
3
2021-02-16T10:05:40.000Z
2022-03-08T12:45:50.000Z
flask-jwt/jwt_util.py
hmtmcse/flask-exp
b3dd28b0f283ada7e1ea81f2627678e6ce4ce6a8
[ "Apache-2.0" ]
null
null
null
flask-jwt/jwt_util.py
hmtmcse/flask-exp
b3dd28b0f283ada7e1ea81f2627678e6ce4ce6a8
[ "Apache-2.0" ]
1
2021-02-16T10:05:55.000Z
2021-02-16T10:05:55.000Z
import datetime import jwt class JWTUtil: ALGORITHMS: str = "HS256" JWT_ACCESS_TOKEN_VALIDITY_MIN = 1 JWT_REFRESH_TOKEN_VALIDITY_MIN = 60 SECRET = "SECRET____KEY" def get_token(self, exp: datetime, payload: dict = None, iss=None): if not payload: payload = {} payload["...
34.777778
147
0.696486
1522c371cd2520dce444393c2e70a1f09d267ed9
3,922
py
Python
jittermodel/tests/test_base.py
ryanpdwyer/jittermodel
de0c230e242517442b8a6d98512eaa15386b7ce5
[ "MIT" ]
1
2015-07-16T23:24:49.000Z
2015-07-16T23:24:49.000Z
jittermodel/tests/test_base.py
ryanpdwyer/jittermodel
de0c230e242517442b8a6d98512eaa15386b7ce5
[ "MIT" ]
null
null
null
jittermodel/tests/test_base.py
ryanpdwyer/jittermodel
de0c230e242517442b8a6d98512eaa15386b7ce5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Test UnitBase Classes ========================= 2013-12-12 Ryan Dwyer """ from jittermodel.base import (u, SimpleCantilever, Cantilever, Experiment, Transistor) from jittermodel.tests import pint_assert_almost_equal from nose.tools import assert_raises from p...
35.654545
78
0.539776
b26f454d0bec0cf0a48053621fd5f917a8cbace5
4,619
py
Python
code/tasks/REGEX/misc/util.py
khanhptnk/iliad
3eb4f11c1d3cdb6784fd2f78a83ce07f984d3825
[ "MIT" ]
7
2021-06-10T22:17:13.000Z
2022-03-03T05:58:55.000Z
code/tasks/REGEX/misc/util.py
khanhptnk/iliad
3eb4f11c1d3cdb6784fd2f78a83ce07f984d3825
[ "MIT" ]
null
null
null
code/tasks/REGEX/misc/util.py
khanhptnk/iliad
3eb4f11c1d3cdb6784fd2f78a83ce07f984d3825
[ "MIT" ]
null
null
null
import re import os import math import time import logging import sys from datetime import datetime class Struct: def __init__(self, **entries): rec_entries = {} for k, v in entries.items(): if isinstance(v, dict): rv = Struct(**v) elif isinstance(v, list): ...
26.545977
81
0.560294
b9bae777c2dd900f4077cb59d1dc13a3880b3273
2,285
py
Python
plugins/swap_pagefault.py
Book-smile-man/lmp
02095421036bc48af06b4e6c63567cc7f5e2d92a
[ "Apache-2.0" ]
null
null
null
plugins/swap_pagefault.py
Book-smile-man/lmp
02095421036bc48af06b4e6c63567cc7f5e2d92a
[ "Apache-2.0" ]
null
null
null
plugins/swap_pagefault.py
Book-smile-man/lmp
02095421036bc48af06b4e6c63567cc7f5e2d92a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from __future__ import print_function from bcc import BPF from time import sleep, strftime # for influxdb from influxdb import InfluxDBClient import lmp_influxdb as db from db_modules import write2db from datetime import datetime DBNAME = 'lmp' client = db.connect(DBNAME,user=...
24.308511
81
0.498031
1255212df4a1ff8e180a984ccf5dfbc1de5742b0
1,546
py
Python
response/zoom/client.py
dmichau85/response
672a675660400766286628c349f324bff56e986c
[ "MIT" ]
2
2020-09-17T17:24:32.000Z
2020-10-16T10:49:03.000Z
response/zoom/client.py
dmichau85/response
672a675660400766286628c349f324bff56e986c
[ "MIT" ]
39
2020-10-02T15:56:55.000Z
2022-01-19T11:58:41.000Z
response/zoom/client.py
dmichau85/response
672a675660400766286628c349f324bff56e986c
[ "MIT" ]
3
2020-10-30T19:46:31.000Z
2021-05-14T04:59:39.000Z
import json import time import requests from jose import jwt API_BASE_URI = "https://api.zoom.us/v2" class ZoomClient: """Simple HTTP Client for Zoom Calls.""" def __init__(self, api_key, api_secret): self.api_key = api_key self.api_secret = api_secret self.token = generate_jwt(self...
27.122807
74
0.578913
cf993c1477a1442fbe75449ff11b7f386a4dab66
14,969
py
Python
python/paddle/fluid/transpiler/collective.py
laipaang/Paddle
d7f35434b761707a8479b75636546a624399369a
[ "Apache-2.0" ]
10
2021-05-12T07:20:32.000Z
2022-03-04T08:21:56.000Z
python/paddle/fluid/transpiler/collective.py
laipaang/Paddle
d7f35434b761707a8479b75636546a624399369a
[ "Apache-2.0" ]
1
2021-01-07T11:00:58.000Z
2021-01-07T11:00:58.000Z
python/paddle/fluid/transpiler/collective.py
laipaang/Paddle
d7f35434b761707a8479b75636546a624399369a
[ "Apache-2.0" ]
18
2021-05-19T08:01:49.000Z
2022-02-11T03:11:32.000Z
# 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 License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
35.811005
83
0.523949
4f9a7cac0d7c3290c7f6ecd897f741a62d87167b
15,454
py
Python
tests/contrib/pymysql/test_pymysql.py
someboredkiddo/dd-trace-py
2e1b1b43ffb60f3f26981eb6d9cfe7f26b9285cb
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/pymysql/test_pymysql.py
someboredkiddo/dd-trace-py
2e1b1b43ffb60f3f26981eb6d9cfe7f26b9285cb
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-12-22T16:56:55.000Z
2020-12-22T16:56:55.000Z
tests/contrib/pymysql/test_pymysql.py
kenferrara/dd-trace-py
12e52e0ab804061e72b0f76214f5e4bb475ae20f
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-12-22T16:54:02.000Z
2020-12-22T16:54:02.000Z
# 3p import pymysql # project from ddtrace import Pin from ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY from ddtrace.compat import PY2 from ddtrace.compat import stringify from ddtrace.contrib.pymysql.patch import patch, unpatch # testing from tests.opentracer.utils import init_tracer from ... import TracerTest...
33.964835
87
0.571891
5c267c09bbdd0e9bc1ccf9596bea7ec58d3c959e
6,961
py
Python
archivesspace_export/harvest_oai_eads.py
ndlib/mellon-manifest-pipeline
aa90494e73fbc30ce701771ac653d28d533217db
[ "Apache-2.0" ]
1
2021-06-27T15:16:13.000Z
2021-06-27T15:16:13.000Z
archivesspace_export/harvest_oai_eads.py
ndlib/marble-manifest-pipeline
abc036e4c81a8a5e938373a43153e2492a17cbf8
[ "Apache-2.0" ]
8
2019-11-05T18:58:23.000Z
2021-09-03T14:54:42.000Z
archivesspace_export/harvest_oai_eads.py
ndlib/mellon-manifest-pipeline
aa90494e73fbc30ce701771ac653d28d533217db
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import os import requests # noqa: E402 from xml.etree import ElementTree from create_json_from_xml import createJsonFromXml from dependencies.sentry_sdk import capture_exception from dynamo_query_functions import get_item_record class HarvestOaiEads(): """ This performs all EAD-rela...
57.057377
194
0.680075
a8b69e48e5e64fa478e412b0b6dc0f2d71868087
141
py
Python
bestiary/context_processors.py
Itori/swarfarm
7192e2d8bca093b4254023bbec42b6a2b1887547
[ "Apache-2.0" ]
66
2017-09-11T04:46:00.000Z
2021-03-13T00:02:42.000Z
bestiary/context_processors.py
Itori/swarfarm
7192e2d8bca093b4254023bbec42b6a2b1887547
[ "Apache-2.0" ]
133
2017-09-24T21:28:59.000Z
2021-04-02T10:35:31.000Z
bestiary/context_processors.py
Itori/swarfarm
7192e2d8bca093b4254023bbec42b6a2b1887547
[ "Apache-2.0" ]
28
2017-08-30T19:04:32.000Z
2020-11-16T04:09:00.000Z
from .forms import BestiaryQuickSearchForm def quick_search_form(request): return {'bestiary_quick_search': BestiaryQuickSearchForm()}
23.5
63
0.815603
e2a8579efd49a087eabe44b939399b1af6d15bfa
1,555
py
Python
we_do_secure/urls.py
Kou-Guandong/NYU_CS_6083_Database_Project_Part2
0e1bef0dd1d747c54e278363a773aac3826ab30b
[ "OML" ]
null
null
null
we_do_secure/urls.py
Kou-Guandong/NYU_CS_6083_Database_Project_Part2
0e1bef0dd1d747c54e278363a773aac3826ab30b
[ "OML" ]
null
null
null
we_do_secure/urls.py
Kou-Guandong/NYU_CS_6083_Database_Project_Part2
0e1bef0dd1d747c54e278363a773aac3826ab30b
[ "OML" ]
null
null
null
from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from rest_framework import routers from insurance import views from django.conf.urls import include, url from django_registration.backends.one_step.views import RegistrationView from django.urls import include,...
40.921053
81
0.710611
15105d1c08d8e11e7aa68a516584b51cb578fc66
1,302
py
Python
studies/SmartFitting/lasso.py
peterdsharpe/FastFlow3D
d02c8ff97fa84adcd9db988b09157695d9e2b318
[ "MIT" ]
1
2021-11-01T22:48:12.000Z
2021-11-01T22:48:12.000Z
studies/SmartFitting/lasso.py
peterdsharpe/FastFlow3D
d02c8ff97fa84adcd9db988b09157695d9e2b318
[ "MIT" ]
null
null
null
studies/SmartFitting/lasso.py
peterdsharpe/FastFlow3D
d02c8ff97fa84adcd9db988b09157695d9e2b318
[ "MIT" ]
null
null
null
from data import x, y_data import aerosandbox as asb import aerosandbox.numpy as np degree = 10 opti = asb.Opti() coeffs = opti.variable(init_guess=np.zeros(degree + 1)) vandermonde = np.ones((len(x), degree + 1)) for j in range(1, degree + 1): vandermonde[:, j] = vandermonde[:, j - 1] * x y_model = vandermond...
24.111111
68
0.631336
972c3f478f1ce14d8510c11a61807b1d39b6cdba
114
py
Python
nsxsdk/__init__.py
purple-dbu/nsx-python-sdk
76f6dc3de874bd761f9eb07cbe5dede92fe91ecd
[ "MIT" ]
7
2015-03-16T19:03:26.000Z
2018-01-06T18:57:58.000Z
nsxsdk/__init__.py
rvichery/nsx-python-sdk
76f6dc3de874bd761f9eb07cbe5dede92fe91ecd
[ "MIT" ]
null
null
null
nsxsdk/__init__.py
rvichery/nsx-python-sdk
76f6dc3de874bd761f9eb07cbe5dede92fe91ecd
[ "MIT" ]
5
2015-04-07T16:04:38.000Z
2019-07-31T11:32:10.000Z
"""NSX Python SDK""" from . import edge from . import utils from . import firewall from . import logicalswitches
16.285714
29
0.736842
8461cd26b275b1be82bebe649069e56e4c42e507
335
py
Python
python/prob050.py
ChihoWon/Project-Euler
5b645248ce79c1d7546243a1e4edf4b3d8b915e8
[ "MIT" ]
2
2017-06-29T11:42:18.000Z
2019-04-07T23:20:31.000Z
python/prob050.py
ChihoWon/Project-Euler
5b645248ce79c1d7546243a1e4edf4b3d8b915e8
[ "MIT" ]
null
null
null
python/prob050.py
ChihoWon/Project-Euler
5b645248ce79c1d7546243a1e4edf4b3d8b915e8
[ "MIT" ]
null
null
null
from math import sqrt def Sieve_of_Eratosthenes(n): sieve = range(n + 1) sieve[1] = 0 rn = int(round(sqrt(n))) for x in range(2, rn + 1): if sieve[x]: sieve[x*x:n+1:x] = [0] * len(sieve[x*x:n+1:x]) return filter(lambda x: x != 0, sieve) l = Sieve_of_Eratosthenes(100) print sum(...
22.333333
58
0.570149
82ce84c5ed3ca208f501c45dcd358fe2607c7ef6
50,194
py
Python
src/sage/quivers/morphism.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage/quivers/morphism.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage/quivers/morphism.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
""" Quiver Morphisms """ # **************************************************************************** # Copyright (C) 2012 Jim Stark <jstarx@gmail.com> # 2013 Simon King <simon.king@uni-jena.de> # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed i...
38.141337
130
0.474758
8e81f1ce69d881eb7628d1980132933650fd559b
9,118
py
Python
main.py
ktrips/InstaChange
0e8834b3ef103f245602862d2ed2094d62519733
[ "Apache-2.0" ]
null
null
null
main.py
ktrips/InstaChange
0e8834b3ef103f245602862d2ed2094d62519733
[ "Apache-2.0" ]
null
null
null
main.py
ktrips/InstaChange
0e8834b3ef103f245602862d2ed2094d62519733
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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 ...
33.77037
122
0.621518
78963c0a67655bb281073e7478b971d3f41dc6f2
3,378
py
Python
aea/cli/registry/fetch.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
aea/cli/registry/fetch.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
aea/cli/registry/fetch.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
33.445545
83
0.656898
e492ac628030b0d15392c27945fbd7070ac23423
2,203
py
Python
modules/text/embedding/glove_twitter_target_word-word_dim50_en/module.py
tjy1985001/PaddleHub
28a57e1649fcb2927c5c4f631a9f8a29ba17bc54
[ "Apache-2.0" ]
1
2021-01-27T09:15:58.000Z
2021-01-27T09:15:58.000Z
modules/text/embedding/glove_twitter_target_word-word_dim50_en/module.py
chenyao821/PaddleHub
12267027796103c53e869936fa24290615abbc9b
[ "Apache-2.0" ]
null
null
null
modules/text/embedding/glove_twitter_target_word-word_dim50_en/module.py
chenyao821/PaddleHub
12267027796103c53e869936fa24290615abbc9b
[ "Apache-2.0" ]
null
null
null
# 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...
39.339286
114
0.64503
f390a3e5e31d2ff280859557bbe2488e5499a1f4
7,103
py
Python
trinity/components/eth2/beacon/component.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
null
null
null
trinity/components/eth2/beacon/component.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
null
null
null
trinity/components/eth2/beacon/component.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
null
null
null
from argparse import ArgumentParser, _SubParsersAction import asyncio import contextlib import logging from typing import Set, Tuple from lahja import EndpointAPI from libp2p.crypto.keys import KeyPair from libp2p.crypto.secp256k1 import create_new_key_pair from eth2.beacon.typing import SubnetId from p2p.service imp...
39.243094
94
0.652823
1e318ca2924aa9bf233e5c3158b6bc40a82e018e
151
py
Python
Automation/Verify_Stripping.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
Automation/Verify_Stripping.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
Automation/Verify_Stripping.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from Automation import Publishing def Run () -> bool: Publishing.VerifyStripping() return True if __name__ == "__main__": if not Run(): exit(1)
15.1
33
0.701987
868f553ad3ceda940d91dc597dd2125ef79932dd
3,469
py
Python
.history/my_classes/FirstClassFunctions/reducing_functions_20210707181058.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/reducing_functions_20210707181058.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/reducing_functions_20210707181058.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
"""Reducing Functions in Python These are functions that recombine an iterable recursively, ending up with a single return value Also called accumulators, aggregators, or folding functions Example: Finding the maximum value in an iterable a0, a1, a2, ...,, aN-1 max(a, b) _> maximum of a and b result =a0 r...
25.507353
105
0.473047
bb69a79a45a594fadb46ad18b38c594d39ff770e
24,439
py
Python
discord/voice_client.py
Alcamoru/discord.py
670256b924324f91f19bf5e5c6234c72897cbb11
[ "MIT" ]
1
2021-08-31T11:28:42.000Z
2021-08-31T11:28:42.000Z
discord/voice_client.py
Alcamoru/discord.py
670256b924324f91f19bf5e5c6234c72897cbb11
[ "MIT" ]
null
null
null
discord/voice_client.py
Alcamoru/discord.py
670256b924324f91f19bf5e5c6234c72897cbb11
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present 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 use, copy, modify, merg...
36.152367
148
0.629854
31c3eb2ba3182f248a73ce4415282f50c4d40ac5
222
py
Python
backuppc_clone/__init__.py
SetBased/BackupPC-Clone
73a71fcb8caefed7b0ea6f4d86b87863ec9e79a4
[ "MIT" ]
6
2019-04-17T12:16:46.000Z
2022-02-08T17:39:24.000Z
backuppc_clone/__init__.py
SetBased/BackupPC-Clone
73a71fcb8caefed7b0ea6f4d86b87863ec9e79a4
[ "MIT" ]
null
null
null
backuppc_clone/__init__.py
SetBased/BackupPC-Clone
73a71fcb8caefed7b0ea6f4d86b87863ec9e79a4
[ "MIT" ]
null
null
null
""" BackupPC Clone """ from backuppc_clone.application.BackupPcCloneApplication import BackupPcCloneApplication def main() -> int: application = BackupPcCloneApplication() ret = application.run() return ret
18.5
88
0.752252
0da7a1bd42f1b29cee94598462b5fdffecd1fb37
3,531
py
Python
cryptoquant/app/cta_strategy/strategies/boll_channel_strategy.py
studyquant/StudyQuant
24790634ac320b25361672754558c3797f4fc9e3
[ "Apache-2.0" ]
74
2018-08-10T17:05:57.000Z
2022-03-26T07:06:02.000Z
cryptoquant/app/cta_strategy/strategies/boll_channel_strategy.py
ezailwoo/studyquant
24790634ac320b25361672754558c3797f4fc9e3
[ "Apache-2.0" ]
1
2022-03-24T06:42:00.000Z
2022-03-24T06:42:00.000Z
cryptoquant/app/cta_strategy/strategies/boll_channel_strategy.py
ezailwoo/studyquant
24790634ac320b25361672754558c3797f4fc9e3
[ "Apache-2.0" ]
18
2020-09-22T09:03:49.000Z
2022-03-31T20:48:54.000Z
from cryptoquant.app.cta_strategy import ( CtaTemplate, StopOrder, TickData, BarData, TradeData, OrderData, BarGenerator, ArrayManager, ) class BollChannelStrategy(CtaTemplate): """""" author = "用Python的交易员" boll_window = 18 boll_dev = 3.4 cci_window = 10 atr_...
24.020408
88
0.566129
dff190ae6c6588d95e2cae9bb6008e7bf4e708fd
2,713
py
Python
test/rules/resources/codepipeline/test_stages.py
KeyCore/cfn-python-lint
342ac61db052224314ca1219a7a073b45841d78e
[ "MIT-0" ]
1
2020-05-28T00:00:56.000Z
2020-05-28T00:00:56.000Z
test/rules/resources/codepipeline/test_stages.py
eshack94/cfn-python-lint
9ec44f41ae24b9d62576aed53efa888b00641e04
[ "MIT-0" ]
null
null
null
test/rules/resources/codepipeline/test_stages.py
eshack94/cfn-python-lint
9ec44f41ae24b9d62576aed53efa888b00641e04
[ "MIT-0" ]
null
null
null
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 ...
46.775862
126
0.740877
68f1fcfa71d3303afe10d78d08c42025e38e8f59
3,231
py
Python
src/djangoreactredux/settings/base.py
TehThreeMusketeers/happy-kowalevski
b82aed72a1fe3dec8dec64dabda6807dfa5f987a
[ "MIT" ]
null
null
null
src/djangoreactredux/settings/base.py
TehThreeMusketeers/happy-kowalevski
b82aed72a1fe3dec8dec64dabda6807dfa5f987a
[ "MIT" ]
13
2018-01-28T15:39:32.000Z
2018-02-23T16:05:18.000Z
src/djangoreactredux/settings/base.py
TehThreeMusketeers/happy-kowalevski
b82aed72a1fe3dec8dec64dabda6807dfa5f987a
[ "MIT" ]
null
null
null
"""Django settings for djangoreactredux project.""" import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) # remove /sswmain/settings to get base folder # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'ajsdgas7&*kosdsa21[]jaksdhlka-;kmcv8l$#diepsm8&ah^' DEB...
27.615385
117
0.692974
aa4bc076b67f7d7b86ba2b8daf32413c8a007c47
316
py
Python
tests/test_qt.py
ancasag/labelDetection_2
96dc7447e5fc27f27371e07dc9edb4fb7a4de94f
[ "MIT" ]
1
2020-12-10T09:26:27.000Z
2020-12-10T09:26:27.000Z
tests/test_qt.py
ancasag/labelDetection_2
96dc7447e5fc27f27371e07dc9edb4fb7a4de94f
[ "MIT" ]
25
2020-09-25T22:33:07.000Z
2022-03-12T00:15:27.000Z
tests/test_qt.py
ancasag/labelDetection_2
96dc7447e5fc27f27371e07dc9edb4fb7a4de94f
[ "MIT" ]
null
null
null
from unittest import TestCase from labelDetection import get_main_app class TestMainWindow(TestCase): app = None win = None def setUp(self): self.app, self.win = get_main_app() def tearDown(self): self.win.close() self.app.quit() def test_noop(self): pass
15.047619
43
0.629747
c830de705323715d7a28867e34943bdf06bc9b77
3,335
py
Python
othello/tensorflow/OthelloNNet.py
mchaney22/alpha-zero-general
8705c9ebff6a4af7eaf9229b3ab61c2305fa5b4e
[ "MIT" ]
null
null
null
othello/tensorflow/OthelloNNet.py
mchaney22/alpha-zero-general
8705c9ebff6a4af7eaf9229b3ab61c2305fa5b4e
[ "MIT" ]
null
null
null
othello/tensorflow/OthelloNNet.py
mchaney22/alpha-zero-general
8705c9ebff6a4af7eaf9229b3ab61c2305fa5b4e
[ "MIT" ]
null
null
null
import sys sys.path.append('..') from utils import * import tensorflow as tf ## Code based on OthelloNNet with minimal changes. class OthelloNNet(): def __init__(self, game, args): # game params self.board_x, self.board_y = game.getBoardSize() self.action_size = game.getActionSize() ...
58.508772
191
0.642879
54b2205673c0127fdd08b0ef62f65ebd331e6a91
280
py
Python
automation/tincrepo/main/pxf/features/hdfs/readable/text/wildcard/runTest.py
lchx1010/pxf
f6e11f91fb8c01ed27fc829beb3800f3b253c209
[ "Apache-2.0" ]
46
2018-10-22T23:34:03.000Z
2022-03-31T09:31:34.000Z
automation/tincrepo/main/pxf/features/hdfs/readable/text/wildcard/runTest.py
lchx1010/pxf
f6e11f91fb8c01ed27fc829beb3800f3b253c209
[ "Apache-2.0" ]
317
2018-10-05T23:51:48.000Z
2022-03-22T17:38:52.000Z
automation/tincrepo/main/pxf/features/hdfs/readable/text/wildcard/runTest.py
lchx1010/pxf
f6e11f91fb8c01ed27fc829beb3800f3b253c209
[ "Apache-2.0" ]
46
2018-10-10T18:55:00.000Z
2022-03-28T07:27:04.000Z
from mpp.models import SQLTestCase from mpp.models import SQLConcurrencyTestCase class PxfHdfsReadWildcard(SQLConcurrencyTestCase): """ @db_name pxfautomation @concurrency 1 @gpdiff True """ sql_dir = 'sql' ans_dir = 'expected' out_dir = 'output'
21.538462
50
0.703571
2779a35a208de817b112715049009cfd41d66547
895
py
Python
tests/unit/v0x04/test_controller2switch/test_group_stats_request.py
josemauro/python-openflow
0537c626f3aeb4c53995b65e0783f09ad5e63101
[ "MIT" ]
48
2016-06-09T14:36:22.000Z
2021-11-11T16:05:19.000Z
tests/unit/v0x04/test_controller2switch/test_group_stats_request.py
josemauro/python-openflow
0537c626f3aeb4c53995b65e0783f09ad5e63101
[ "MIT" ]
338
2016-05-06T18:42:36.000Z
2021-04-29T17:57:09.000Z
tests/unit/v0x04/test_controller2switch/test_group_stats_request.py
josemauro/python-openflow
0537c626f3aeb4c53995b65e0783f09ad5e63101
[ "MIT" ]
46
2016-05-24T15:32:56.000Z
2021-06-01T12:16:17.000Z
"""Group stats request message.""" from pyof.v0x04.controller2switch.common import MultipartType from pyof.v0x04.controller2switch.multipart_request import ( GroupStatsRequest, MultipartRequest) from tests.unit.test_struct import TestStruct class TestGroupStatsRequest(TestStruct): """Group stats request messa...
35.8
77
0.67933
d03fe5fa3e29094a9bdd409b235485ed657f385d
105
py
Python
edge/model/__init__.py
Data-Science-in-Mechanical-Engineering/edge
586eaba2f0957e75940f4f19fa774603f57eae89
[ "MIT" ]
null
null
null
edge/model/__init__.py
Data-Science-in-Mechanical-Engineering/edge
586eaba2f0957e75940f4f19fa774603f57eae89
[ "MIT" ]
null
null
null
edge/model/__init__.py
Data-Science-in-Mechanical-Engineering/edge
586eaba2f0957e75940f4f19fa774603f57eae89
[ "MIT" ]
null
null
null
from .models import Model, ContinuousModel, DiscreteModel, GPModel from .ground_truth import GroundTruth
35
66
0.847619
01c8e83d55c886bf3ba688881bad87c697309987
5,419
py
Python
benchmarks/ltl_maxplus/f3/maxplus_4_20.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/ltl_maxplus/f3/maxplus_4_20.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/ltl_maxplus/f3/maxplus_4_20.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from collections import Iterable from mathsat import msat_term, msat_env from mathsat import msat_make_true, msat_make_false from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_rational_type from mathsat import msat_make_and as _msat_make_and from mathsat import msat_make_or as _...
37.372414
226
0.617826
aa2d8a019471397f0a10d3e4700dcf4f8e141a71
104
py
Python
setup.py
adornetejr/manim
e0715ceeff4778d11ef4ac31f8f8f2b56a2187ad
[ "MIT" ]
658
2018-04-06T19:14:03.000Z
2022-03-31T14:48:39.000Z
setup.py
im-AMS/manim
19e3c97589181ffd43ef14d9169af4e40e054664
[ "MIT" ]
783
2018-04-06T16:47:30.000Z
2022-03-31T14:24:18.000Z
setup.py
im-AMS/manim
19e3c97589181ffd43ef14d9169af4e40e054664
[ "MIT" ]
249
2018-04-06T16:44:34.000Z
2022-03-28T10:26:19.000Z
#!/usr/bin/env python from setuptools import setup setup( setup_requires=['pbr'], pbr=True, )
11.555556
28
0.663462
b96972bca1e42363e5dae94c9b13b464bebbc0bc
7,533
py
Python
diagnostics_tools/src/diagnostic_tools/periodic_event_status.py
ChrisScianna/ROS-Underwater-RnD
f928bcc6b19a830b98e2cc2aedd65ff35b887901
[ "BSD-3-Clause" ]
null
null
null
diagnostics_tools/src/diagnostic_tools/periodic_event_status.py
ChrisScianna/ROS-Underwater-RnD
f928bcc6b19a830b98e2cc2aedd65ff35b887901
[ "BSD-3-Clause" ]
85
2020-10-05T11:44:46.000Z
2021-09-08T14:31:07.000Z
diagnostics_tools/src/diagnostic_tools/periodic_event_status.py
ChrisScianna/ROS-Underwater-RnD
f928bcc6b19a830b98e2cc2aedd65ff35b887901
[ "BSD-3-Clause" ]
1
2021-11-04T13:18:17.000Z
2021-11-04T13:18:17.000Z
""" * Software License Agreement (BSD License) * * Copyright (c) 2020, QinetiQ, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must re...
45.379518
92
0.646887
dffabe7fcee90488c421029df8799a35806fcfd1
15,450
py
Python
lib-python/3/distutils/unixccompiler.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
lib-python/3/distutils/unixccompiler.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
lib-python/3/distutils/unixccompiler.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
"""distutils.unixccompiler Contains the UnixCCompiler class, a subclass of CCompiler that handles the "typical" Unix-style command-line C compiler: * macros defined with -Dname[=value] * macros undefined with -Uname * include search directories specified with -Idir * libraries specified with -lllib * library...
44.396552
87
0.583689
09adff637390f1dab9df9472164a458a30b1f885
14,023
py
Python
LightField.py
dscran/tango-lightfield
4e519e9d3a7de9f5ddda24f2e60eb30f355ae7dc
[ "MIT" ]
null
null
null
LightField.py
dscran/tango-lightfield
4e519e9d3a7de9f5ddda24f2e60eb30f355ae7dc
[ "MIT" ]
null
null
null
LightField.py
dscran/tango-lightfield
4e519e9d3a7de9f5ddda24f2e60eb30f355ae7dc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu May 21 10:31:21 2020 @author: Michael Schneider, Max Born Institut Berlin """ import ctypes import sys import os import clr sys.path.append(os.environ['LIGHTFIELD_ROOT']) sys.path.append(os.environ['LIGHTFIELD_ROOT'] + '\\AddInViews') clr.AddReference('PrincetonInstruments....
41.123167
84
0.628468
482331f120ee367b9690e4773d331b58739431be
8,275
py
Python
aawork/proj0/stage1/train.py
mayi140611/mayiutils
5340d7bd4590e2a41afd5d02ffc569745d67c866
[ "Apache-2.0" ]
null
null
null
aawork/proj0/stage1/train.py
mayi140611/mayiutils
5340d7bd4590e2a41afd5d02ffc569745d67c866
[ "Apache-2.0" ]
null
null
null
aawork/proj0/stage1/train.py
mayi140611/mayiutils
5340d7bd4590e2a41afd5d02ffc569745d67c866
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # encoding: utf-8 """ @author: Ian @file: train.py @time: 2019-04-19 11:52 """ import pandas as pd import numpy as np from mayiutils.file_io.pickle_wrapper import PickleWrapper as picklew from mayiutils.algorithm.algorithmset.calcPearson import calcPearson from sklearn.tree import DecisionTreeClassif...
34.479167
99
0.556133
d069cc25cf456921bd3959cd95bcb961faf21b30
2,400
py
Python
research/ConsoleAppTest.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
research/ConsoleAppTest.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
research/ConsoleAppTest.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
from selenium import webdriver #import socketserver import socket import webbrowser import os.path portListen = 1337 testIP = '127.0.0.1' server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((testIP, portListen)) server.listen(5) size = 1024 conn, client_addr = server.accept() dr...
31.168831
140
0.641667
639a4874d5fb7669e11620bfd712c207e2c604ae
1,103
py
Python
jtyoui/reflex/FucStr.py
Abcbaisan/Jtyoui
96b8eebc3c42eaf337221d6485ba8395f07af821
[ "MIT" ]
2
2019-11-06T01:47:17.000Z
2019-11-06T01:48:19.000Z
jtyoui/reflex/FucStr.py
yy1244/Jtyoui
d3c212ed9d6ffa6b37a8ca49098ab59c89216f09
[ "MIT" ]
null
null
null
jtyoui/reflex/FucStr.py
yy1244/Jtyoui
d3c212ed9d6ffa6b37a8ca49098ab59c89216f09
[ "MIT" ]
null
null
null
#!/usr/bin/python3.7 # -*- coding: utf-8 -*- # @Time : 2019/8/16 17:45 # @Author: Jtyoui@qq.com from types import FunctionType, ModuleType def string_function(module: [str, ModuleType], func: str, *args, **kwargs): """根据字符串方法名来进行调用模块方法 :param module: 模块名 :param func: 模块中的方法名字 :param args:方法里面的参数值 ...
29.810811
75
0.611061
ff1ce04e08bef0b027e8e120145e479b81ec538e
39,803
py
Python
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/tgrep.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/tgrep.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/tgrep.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Natural Language Toolkit: TGrep search # # Copyright (C) 2001-2015 NLTK Project # Author: Will Roberts <wildwilhelm@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT ''' ============================================ TGrep searc...
42.433902
104
0.55335
e9e07c0c0480c73c1ba036cfb943f57413c566b9
346
py
Python
tfidf_tokenizer/Tokenizer.py
koaNam/YATA2
59608eed03df5ed4fc4eb5c3e75c448bd26e30b0
[ "MIT" ]
null
null
null
tfidf_tokenizer/Tokenizer.py
koaNam/YATA2
59608eed03df5ed4fc4eb5c3e75c448bd26e30b0
[ "MIT" ]
null
null
null
tfidf_tokenizer/Tokenizer.py
koaNam/YATA2
59608eed03df5ed4fc4eb5c3e75c448bd26e30b0
[ "MIT" ]
null
null
null
import abc class Tokenizer(abc.ABC): @abc.abstractmethod def fit(self, corpus): pass @abc.abstractmethod def transform(self, input_text, value_count): return @abc.abstractmethod def save_model(self, filepath): return @abc.abstractmethod def load_model(self, ...
16.47619
49
0.641618
bc0534af55bbae0e10d5efd6afbe8be1bd93bf13
23,014
py
Python
simpleeval.py
bozokopic/simpleeval
e41a216c6e63517739cac95561d1fc48623b2cd8
[ "MIT" ]
null
null
null
simpleeval.py
bozokopic/simpleeval
e41a216c6e63517739cac95561d1fc48623b2cd8
[ "MIT" ]
null
null
null
simpleeval.py
bozokopic/simpleeval
e41a216c6e63517739cac95561d1fc48623b2cd8
[ "MIT" ]
null
null
null
""" SimpleEval - (C) 2013-2022 Daniel Fairhead ------------------------------------- An short, easy to use, safe and reasonably extensible expression evaluator. Designed for things like in a website where you want to allow the user to generate a string, or a number from some other input, without allowing full eval() o...
32.097629
99
0.611019
6e7a29b7051cf63d729d38ae942ab26b7b3fef23
3,519
py
Python
eend/bin/infer.py
PierreTsr/EEND
bbaf8286f83c05c65c73d2820601a117b8faa382
[ "MIT" ]
null
null
null
eend/bin/infer.py
PierreTsr/EEND
bbaf8286f83c05c65c73d2820601a117b8faa382
[ "MIT" ]
null
null
null
eend/bin/infer.py
PierreTsr/EEND
bbaf8286f83c05c65c73d2820601a117b8faa382
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2019 Hitachi, Ltd. (author: Yusuke Fujita) # Licensed under the MIT license. # import yamlargparse from eend import system_info parser = yamlargparse.ArgumentParser(description='decoding') parser.add_argument('-c', '--config', help='config file path', action=yam...
46.302632
94
0.662404
3f8cc18d15276f24acc4a12a81887838b6670bb5
1,445
py
Python
src/infrastructure/clients/provider/mock/requests.py
sdediego/forex-django-clean-architecture
915a8d844a8db5a40c726fe4cf9f6d50f7c95275
[ "MIT" ]
8
2021-11-09T16:43:38.000Z
2022-03-25T16:04:26.000Z
src/infrastructure/clients/provider/mock/requests.py
sdediego/forex-django-clean-architecture
915a8d844a8db5a40c726fe4cf9f6d50f7c95275
[ "MIT" ]
null
null
null
src/infrastructure/clients/provider/mock/requests.py
sdediego/forex-django-clean-architecture
915a8d844a8db5a40c726fe4cf9f6d50f7c95275
[ "MIT" ]
2
2021-11-16T21:17:31.000Z
2022-02-11T11:15:29.000Z
# coding: utf-8 import json import random from typing import List from src.domain.exchange_rate import CurrencyEntity, CurrencyExchangeRateEntity from src.infrastructure.clients.provider.utils import ( get_business_days, get_last_business_day) def currencies() -> List[CurrencyEntity]: with open('../xchange_...
36.125
83
0.725952
45a8e3bf36bd811fc2ee4659901e718a9e4be8f0
6,304
py
Python
extensions/reactroles.py
ooxxe04/Merely-Framework
94a6456b82b00d25904465df877110c0ef4ea6e9
[ "MIT" ]
null
null
null
extensions/reactroles.py
ooxxe04/Merely-Framework
94a6456b82b00d25904465df877110c0ef4ea6e9
[ "MIT" ]
null
null
null
extensions/reactroles.py
ooxxe04/Merely-Framework
94a6456b82b00d25904465df877110c0ef4ea6e9
[ "MIT" ]
null
null
null
import nextcord, asyncio from nextcord.ext import commands class ReactRoles(commands.Cog): """allows admins to set up messages where reacting grants users roles""" def __init__(self, bot:commands.Bot): self.bot = bot if not bot.config.getboolean('extensions', 'auth', fallback=False): raise Exception(...
44.394366
160
0.653395
828cf2676b7b44570e1543aa3ebe4ab3751a8158
5,463
py
Python
tests/test_huggingfacemodel.py
L-Net-1992/sahi
43f008948419ebff1e0c1861c3cee4ead23fcad1
[ "MIT" ]
null
null
null
tests/test_huggingfacemodel.py
L-Net-1992/sahi
43f008948419ebff1e0c1861c3cee4ead23fcad1
[ "MIT" ]
null
null
null
tests/test_huggingfacemodel.py
L-Net-1992/sahi
43f008948419ebff1e0c1861c3cee4ead23fcad1
[ "MIT" ]
null
null
null
# OBSS SAHI Tool # Code written by Devrim Cavusoglu, 2022. import unittest import pybboxes.functional as pbf from sahi.utils.cv import read_image from sahi.utils.huggingface import HuggingfaceTestConstants MODEL_DEVICE = "cpu" CONFIDENCE_THRESHOLD = 0.3 IMAGE_SIZE = 320 class TestHuggingfaceDetectionModel(unittes...
37.675862
119
0.688083
cfb8cb56e561e01f4cb03dc1d009436000ac7419
1,204
py
Python
apps/users/models.py
Niracler/website_py
4c28f82a34122e4a02cc1f940e14f43ee0a4571d
[ "MIT" ]
1
2018-11-21T08:31:37.000Z
2018-11-21T08:31:37.000Z
apps/users/models.py
Niracler/website_py
4c28f82a34122e4a02cc1f940e14f43ee0a4571d
[ "MIT" ]
6
2018-09-21T12:34:58.000Z
2018-09-22T12:05:01.000Z
apps/users/models.py
niracler/django-blog
4c28f82a34122e4a02cc1f940e14f43ee0a4571d
[ "MIT" ]
1
2018-11-14T01:09:46.000Z
2018-11-14T01:09:46.000Z
from datetime import datetime from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class UserProfile(AbstractUser): """ 用户 """ name = models.CharField(max_length=30, null=True, blank=True, verbose_name="姓名") birthday = models.DateField(null=...
30.1
123
0.686877
ccacb700822fb032e2a8b954c0ecd834c42fa5a9
83
py
Python
01-meet_python/fact.py
palmieric/Tecnologie_Web-Introduzione_a_Python
b10ce49a947b239ca2af1938248f7191937b2f89
[ "CC0-1.0" ]
3
2021-05-17T14:48:42.000Z
2021-05-24T10:12:06.000Z
01-meet_python/fact.py
palmieric/Tecnologie_Web-Introduzione_a_Python
b10ce49a947b239ca2af1938248f7191937b2f89
[ "CC0-1.0" ]
null
null
null
01-meet_python/fact.py
palmieric/Tecnologie_Web-Introduzione_a_Python
b10ce49a947b239ca2af1938248f7191937b2f89
[ "CC0-1.0" ]
2
2021-05-17T13:52:15.000Z
2021-05-24T10:44:54.000Z
def fact(n): if n==0: return 1 else: return n * fact(n - 1) print(fact(3))
10.375
25
0.554217
8e679365622092dff88d78a2e03607e87b21df3a
1,228
py
Python
roboticstoolbox/models/DH/Planar2.py
LabRobPL/robotics-toolbox-python
4fe4d8a23bda77f5fde39c5d7b53dc953c2a07dd
[ "MIT" ]
1
2021-07-02T09:08:06.000Z
2021-07-02T09:08:06.000Z
roboticstoolbox/models/DH/Planar2.py
LabRobPL/robotics-toolbox-python
4fe4d8a23bda77f5fde39c5d7b53dc953c2a07dd
[ "MIT" ]
null
null
null
roboticstoolbox/models/DH/Planar2.py
LabRobPL/robotics-toolbox-python
4fe4d8a23bda77f5fde39c5d7b53dc953c2a07dd
[ "MIT" ]
1
2022-02-02T20:27:58.000Z
2022-02-02T20:27:58.000Z
""" @author: Luis Fernando Lara Tobar @author: Peter Corke @author: Samuel Drew """ from roboticstoolbox import DHRobot, RevoluteDH from math import pi class Planar2(DHRobot): """ Class that models a planar 2-link robot ``Planar2()`` is a class which models a 2-link planar robot and describes its ki...
22.327273
71
0.602606
8d8cf6cb899f4c35e4aea8552c7bdb91734b00ca
9,158
py
Python
lib/hmmlearn/tests/test_base.py
mvaliadis/hmmlearn
a401dfa854a111138f95e368cd0441dc266ca2c0
[ "BSD-3-Clause" ]
null
null
null
lib/hmmlearn/tests/test_base.py
mvaliadis/hmmlearn
a401dfa854a111138f95e368cd0441dc266ca2c0
[ "BSD-3-Clause" ]
null
null
null
lib/hmmlearn/tests/test_base.py
mvaliadis/hmmlearn
a401dfa854a111138f95e368cd0441dc266ca2c0
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numpy.testing import assert_allclose import pytest from scipy import special from hmmlearn.base import BaseHMM, ConvergenceMonitor class TestMonitor: def test_converged_by_iterations(self): m = ConvergenceMonitor(tol=1e-3, n_iter=2, verbose=False) assert not m.converged ...
37.687243
79
0.586045
4a03abd6550d92cf8ff4230f0f29b12cb96f51ee
34,484
py
Python
arc/species/speciesTest.py
goldmanm/ARC
e2fd97942cb50e3ccbf80ee344c8c9ca83f195de
[ "MIT" ]
null
null
null
arc/species/speciesTest.py
goldmanm/ARC
e2fd97942cb50e3ccbf80ee344c8c9ca83f195de
[ "MIT" ]
null
null
null
arc/species/speciesTest.py
goldmanm/ARC
e2fd97942cb50e3ccbf80ee344c8c9ca83f195de
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module contains unit tests of the arc.species.species module """ from __future__ import (absolute_import, division, print_function, unicode_literals) import unittest import os import shutil from rmgpy.molecule.molecule import Molecule from rmgpy.species import S...
51.855639
119
0.570699
44b658bf197d830cb682edb1f3d375c4e6a59e2f
1,413
py
Python
bert-ranker/experiment/sentence_embeddings/evaluation/evaluation_use_qa.py
UKPLab/emnlp2020-multicqa
9d08a89dba5e51786bb3153ca3733b23006eb628
[ "Apache-2.0" ]
14
2020-09-23T11:47:05.000Z
2022-01-10T07:18:55.000Z
bert-ranker/experiment/sentence_embeddings/evaluation/evaluation_use_qa.py
UKPLab/emnlp2020-multicqa
9d08a89dba5e51786bb3153ca3733b23006eb628
[ "Apache-2.0" ]
null
null
null
bert-ranker/experiment/sentence_embeddings/evaluation/evaluation_use_qa.py
UKPLab/emnlp2020-multicqa
9d08a89dba5e51786bb3153ca3733b23006eb628
[ "Apache-2.0" ]
2
2021-03-05T05:19:10.000Z
2021-09-13T08:26:39.000Z
import numpy as np import tensorflow as tf import tensorflow_hub as hub from numpy.linalg import norm from experiment.qa.evaluation import BasicQAEvaluation class QAEvaluationUSEQA(BasicQAEvaluation): def __init__(self, config, config_global, logger): super(QAEvaluationUSEQA, self).__init__(config, confi...
35.325
101
0.675867
86692b6ec6cd814bf04258dc9a3c24202e80cdd4
17,125
py
Python
slybot/slybot/tests/test_multiple_item_extraction.py
coolkunal64/ht
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
[ "BSD-3-Clause" ]
null
null
null
slybot/slybot/tests/test_multiple_item_extraction.py
coolkunal64/ht
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
[ "BSD-3-Clause" ]
null
null
null
slybot/slybot/tests/test_multiple_item_extraction.py
coolkunal64/ht
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json import re from unittest import TestCase from scrapy import Request, Item from scrapy.settings import Settings from scrapy.http.response.html import HtmlResponse from slybot.plugins.scrapely_annotations.extraction import ( TemplatePageMultiItemExtractor, SlybotIBLExtractor) f...
48.103933
83
0.60146
8aaac2f1ac6285129e1478d009a7f06189fbfe1d
413
py
Python
extra/matplotlib-bare-minimum/hists_plot.py
cookieblues/cookieblues.github.io
9b570d83887eb2d6f92cfaa927a1adf136124a90
[ "MIT" ]
null
null
null
extra/matplotlib-bare-minimum/hists_plot.py
cookieblues/cookieblues.github.io
9b570d83887eb2d6f92cfaa927a1adf136124a90
[ "MIT" ]
2
2020-03-30T14:58:30.000Z
2020-12-10T15:15:06.000Z
extra/matplotlib-bare-minimum/hists_plot.py
cookieblues/cookieblues.github.io
9b570d83887eb2d6f92cfaa927a1adf136124a90
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np x1 = np.random.randn(10000)-1 x2 = np.random.randn(10000)+1 fig = plt.figure(figsize=(8, 5)) ax = fig.add_subplot() ax.hist(x1, color='turquoise', edgecolor='none', bins=50, alpha=0.5, density=True) ax.hist(x2, color='magenta', edgecolor='none', bins=200, alpha=0.5...
24.294118
82
0.711864
3684ac7c4b8b21a49e00f52668a30d6d57639388
8,474
py
Python
setup.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
2
2019-08-18T11:05:25.000Z
2019-11-17T02:07:18.000Z
setup.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
1
2019-02-19T17:11:38.000Z
2019-02-19T17:11:38.000Z
setup.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import ez_setup ez_setup.use_setuptools() from setuptools import setup, Extension, Command from setuptools.command.test import test as TestCommand from setuptools.command.sdist import sdist from setuptools.command.build_ext import build_ext from distutils.errors import CCompilerError, Distutils...
29.838028
87
0.559712
6b2b0945ad4f9ce7d6f435f6ff27cb8b8c6d4fc0
14,170
py
Python
brownie/network/account.py
Skyge/brownie
01785c803155d340fd0ea1bcfdf1b5e2670470d5
[ "MIT" ]
null
null
null
brownie/network/account.py
Skyge/brownie
01785c803155d340fd0ea1bcfdf1b5e2670470d5
[ "MIT" ]
156
2020-07-20T21:23:47.000Z
2021-07-27T21:21:46.000Z
brownie/network/account.py
Skyge/brownie
01785c803155d340fd0ea1bcfdf1b5e2670470d5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import json import os import threading from getpass import getpass from pathlib import Path from typing import Any, Dict, Iterator, List, Optional, Tuple, Union import eth_keys from eth_hash.auto import keccak from hexbytes import HexBytes from brownie._config import CONFIG, _get_data_folder from ...
34.309927
99
0.600071
33660a3b30ef8d36b7d9062f1604032212d0b3f7
4,663
py
Python
projects/self_feeding/scripts/convert_rated_to_polarized.py
min942773/parlai_wandb
1d9ba1a0df2199d0247cee8c4929a2598ac7e41a
[ "MIT" ]
2
2017-09-20T21:49:51.000Z
2018-08-12T06:58:10.000Z
projects/self_feeding/scripts/convert_rated_to_polarized.py
min942773/parlai_wandb
1d9ba1a0df2199d0247cee8c4929a2598ac7e41a
[ "MIT" ]
7
2021-01-12T01:07:03.000Z
2022-03-12T00:50:45.000Z
projects/self_feeding/scripts/convert_rated_to_polarized.py
min942773/parlai_wandb
1d9ba1a0df2199d0247cee8c4929a2598ac7e41a
[ "MIT" ]
2
2020-10-29T18:14:33.000Z
2020-11-07T09:46:23.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from argparse import ArgumentParser import json from parlai.projects.self_feeding.utils import ( Parley, extract...
34.798507
86
0.620416
a56ed868570dc21397155a34a2e3aea272b13c20
3,194
py
Python
openpyxl/tests/test_named_range.py
Zhaoxun/openpyxl-1
a483787c1bf3b167582e97bdbd5b695b402367da
[ "MIT" ]
76
2015-08-01T06:06:39.000Z
2021-12-09T15:14:39.000Z
openpyxl/tests/test_named_range.py
Zhaoxun/openpyxl-1
a483787c1bf3b167582e97bdbd5b695b402367da
[ "MIT" ]
68
2015-08-20T04:30:14.000Z
2021-08-02T21:07:40.000Z
openpyxl/tests/test_named_range.py
Zhaoxun/openpyxl-1
a483787c1bf3b167582e97bdbd5b695b402367da
[ "MIT" ]
29
2015-08-26T18:35:20.000Z
2022-03-30T06:21:28.000Z
# file openpyxl/tests/test_named_range.py # Copyright (c) 2010 openpyxl # # 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...
31.009709
83
0.706324
7eac52c4193e92b031e59d37ce8dad7c0423290c
700
py
Python
colors.py
Kobemeka/lambda-clock
bc0c8f5cbe4dc87664bd4667e73a8c11f2b85bb0
[ "MIT" ]
null
null
null
colors.py
Kobemeka/lambda-clock
bc0c8f5cbe4dc87664bd4667e73a8c11f2b85bb0
[ "MIT" ]
null
null
null
colors.py
Kobemeka/lambda-clock
bc0c8f5cbe4dc87664bd4667e73a8c11f2b85bb0
[ "MIT" ]
null
null
null
Stop = '\033[0m' colors={ "Black":'\033[0;30m', "Red":'\033[0;31m', "Green":'\033[0;32m', "Yellow":'\033[0;33m', "Blue":'\033[0;34m', "Purple":'\033[0;35m', "Cyan":'\033[0;36m', "White":'\033[0;37m', # custom rgb colors "LightBlue": '\033[38;2;69;80;230m', "Pink": '\033...
20
43
0.474286
a8b6c46a5e78b65b106b41e1fda0fc07139e86cc
82
py
Python
dj_highcharts/views.py
oscarmcm/django-highcharts
f6b3b36113a8569b168f9f394873af2f87048ff0
[ "MIT" ]
1
2016-12-30T21:32:32.000Z
2016-12-30T21:32:32.000Z
dj_highcharts/views.py
oscarmcm/django-highcharts
f6b3b36113a8569b168f9f394873af2f87048ff0
[ "MIT" ]
null
null
null
dj_highcharts/views.py
oscarmcm/django-highcharts
f6b3b36113a8569b168f9f394873af2f87048ff0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .models import ( Chart, Data, Config, )
10.25
23
0.5