hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
308e63c76843dc2c83c6e852f8d1de8f5c88dc24
236
py
Python
thirdweb/modules/__init__.py
princetonwong/python-sdk
f35181d97620e29d055498fca75f3702f3bb2449
[ "Apache-2.0" ]
1
2022-02-18T16:59:12.000Z
2022-02-18T16:59:12.000Z
thirdweb/modules/__init__.py
princetonwong/python-sdk
f35181d97620e29d055498fca75f3702f3bb2449
[ "Apache-2.0" ]
null
null
null
thirdweb/modules/__init__.py
princetonwong/python-sdk
f35181d97620e29d055498fca75f3702f3bb2449
[ "Apache-2.0" ]
null
null
null
"""All Modules""" from .nft import NftModule as NftModuleV2 from .nft_v1 import * from .nft_types import * from .currency import * from .market import * from .pack import * from .collection import CollectionModule from .bundle import *
23.6
41
0.762712
0
0
0
0
0
0
0
0
17
0.072034
30901a41bb25b4bd3ce2983a3e73c05998cafcb0
1,394
py
Python
tests/test_gln.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
17
2020-06-30T08:07:31.000Z
2022-03-26T08:14:24.000Z
tests/test_gln.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
117
2020-08-12T14:32:11.000Z
2022-03-28T04:07:48.000Z
tests/test_gln.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
1
2020-11-23T23:15:58.000Z
2020-11-23T23:15:58.000Z
"""Tests of parsing GLNs.""" import pytest from biip import ParseError from biip.gln import Gln from biip.gs1 import GS1Prefix def test_parse() -> None: gln = Gln.parse("1234567890128") assert gln == Gln( value="1234567890128", prefix=GS1Prefix(value="123", usage="GS1 US"), payload=...
22.852459
80
0.643472
0
0
0
0
0
0
0
0
392
0.281205
30909c4ad0b0995022dfe80c45b1417b387a7f7d
3,523
py
Python
web/views.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
web/views.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
web/views.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.views.decorators.csrf import csrf_exempt import json from django.core import serializers # Create your views here. from django.http import HttpResponse from django.http.response import JsonResponse ...
35.94898
100
0.640931
0
0
0
0
3,011
0.839888
0
0
900
0.251046
3090c8adc1b353688b3835d02eb3cdfdcb57bf29
362
py
Python
pcam/datasets/pcam_dataset.py
valeoai/PCAM
ea810250324f74e5c5769dc747ed08ffc97d6f0e
[ "Apache-2.0" ]
19
2021-10-04T10:44:47.000Z
2022-03-01T06:32:05.000Z
pcam/datasets/pcam_dataset.py
valeoai/PCAM
ea810250324f74e5c5769dc747ed08ffc97d6f0e
[ "Apache-2.0" ]
null
null
null
pcam/datasets/pcam_dataset.py
valeoai/PCAM
ea810250324f74e5c5769dc747ed08ffc97d6f0e
[ "Apache-2.0" ]
3
2021-10-04T10:11:18.000Z
2021-12-06T00:22:23.000Z
import torch from torch.utils.data import Dataset class PCAMDataset(Dataset): def __init__(self, root, phase, voxel_size, num_points): super(PCAMDataset, self).__init__() self.root = root self.phase = phase self.voxel_size = voxel_size self.num_points = num_points def __le...
24.133333
60
0.671271
309
0.853591
0
0
0
0
0
0
0
0
309223f2f8156cc62e0138df83ac0f0153900966
62
py
Python
duckgo.py
yashaka/webdriver-demo
bf1c7d29f54af5e3c77ab2d85bc4bed054a609e1
[ "MIT" ]
null
null
null
duckgo.py
yashaka/webdriver-demo
bf1c7d29f54af5e3c77ab2d85bc4bed054a609e1
[ "MIT" ]
null
null
null
duckgo.py
yashaka/webdriver-demo
bf1c7d29f54af5e3c77ab2d85bc4bed054a609e1
[ "MIT" ]
null
null
null
from selenipupser import element query = element('[name=q]')
15.5
32
0.741935
0
0
0
0
0
0
0
0
10
0.16129
309278752cdbc75820f2505608011313cc6f1b0b
2,017
py
Python
pyclustering/nnet/tests/integration/__init__.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/nnet/tests/integration/__init__.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/nnet/tests/integration/__init__.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief Integration-test runner for tests of oscillatory and neural networks. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ import unittest from pyclustering.tests.suite_holder import suite_holder # Generate images without having a window appear. i...
48.02381
116
0.819534
1,020
0.505702
0
0
855
0.423897
0
0
240
0.118989
3094ceba4f2b42b31ff34703aec38ad0bb23b36e
658
py
Python
tests/unit/utils/test_beta.py
cwegrzyn/records-mover
e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2
[ "Apache-2.0" ]
36
2020-03-17T11:56:51.000Z
2022-01-19T16:03:32.000Z
tests/unit/utils/test_beta.py
cwegrzyn/records-mover
e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2
[ "Apache-2.0" ]
60
2020-03-02T23:13:29.000Z
2021-05-19T15:05:42.000Z
tests/unit/utils/test_beta.py
cwegrzyn/records-mover
e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2
[ "Apache-2.0" ]
4
2020-08-11T13:17:37.000Z
2021-11-05T21:11:52.000Z
from records_mover.utils import beta, BetaWarning import unittest from unittest.mock import patch @patch('records_mover.utils.warnings') class TestBeta(unittest.TestCase): def test_beta(self, mock_warnings): @beta def my_crazy_function(): return 123 out = my_crazy_function() ...
34.631579
90
0.571429
518
0.787234
0
0
557
0.846505
0
0
111
0.168693
309593a460380fa8b25ca8344484335fa4f31aad
8,444
py
Python
creator/organizations/mutations.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
3
2019-05-04T02:07:28.000Z
2020-10-16T17:47:44.000Z
creator/organizations/mutations.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
604
2019-02-21T18:14:51.000Z
2022-02-10T08:13:54.000Z
creator/organizations/mutations.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
null
null
null
import graphene from graphql import GraphQLError from graphql_relay import from_global_id from django.contrib.auth import get_user_model from creator.organizations.models import Organization from creator.organizations.queries import OrganizationNode from creator.events.models import Event User = get_user_model() c...
31.984848
79
0.629678
8,106
0.959972
0
0
0
0
0
0
2,286
0.270725
30959754a6e2c8e563632f08b50d266c0db6795c
4,835
py
Python
msqure.py
Levi-Huynh/JS-INTERVIEW
768e5577fd8f3f26c244154be9d9fd5a348f6171
[ "MIT" ]
null
null
null
msqure.py
Levi-Huynh/JS-INTERVIEW
768e5577fd8f3f26c244154be9d9fd5a348f6171
[ "MIT" ]
null
null
null
msqure.py
Levi-Huynh/JS-INTERVIEW
768e5577fd8f3f26c244154be9d9fd5a348f6171
[ "MIT" ]
null
null
null
""" Mag Square #always do Detective work nm what UNDERSTAND -nxn matrix of distinctive pos INT from 1 to n^2 -Sum of any row, column, or diagonal of length n is always equal to the same number: "Mag" constant -Given: 3x3 matrix s of integers in the inclusive range [1,9] we can convert any digit a to any othe...
24.668367
150
0.535677
0
0
0
0
0
0
0
0
3,790
0.783868
3095b3e9337fe55ac442949b05abdd6196442a62
1,371
py
Python
scripts/common/rename.py
andrewsanchez/GenBankQC-Workflow
8e630ca89c3f1a3cd9d6b2c4987100e3552d831e
[ "MIT" ]
1
2020-03-19T13:00:30.000Z
2020-03-19T13:00:30.000Z
scripts/common/rename.py
andrewsanchez/GenBankQC-Workflow
8e630ca89c3f1a3cd9d6b2c4987100e3552d831e
[ "MIT" ]
null
null
null
scripts/common/rename.py
andrewsanchez/GenBankQC-Workflow
8e630ca89c3f1a3cd9d6b2c4987100e3552d831e
[ "MIT" ]
null
null
null
import re def parse_genome_id(genome): genome_id = re.search("GCA_[0-9]*.[0-9]", genome).group() return genome_id def rm_duplicates(seq): """Remove duplicate strings during renaming """ seen = set() seen_add = seen.add return [x for x in seq if not (x in seen or seen_add(x))] def clean...
30.466667
79
0.648432
0
0
0
0
0
0
0
0
288
0.210066
30963bad8971717768000852380d252200fb7adb
1,598
py
Python
example/fetch.py
bh2smith/duneapi
835d69fc0b62876b1ac313ac5c21faedd80a8350
[ "Apache-2.0" ]
1
2022-03-15T18:58:33.000Z
2022-03-15T18:58:33.000Z
example/fetch.py
bh2smith/duneapi
835d69fc0b62876b1ac313ac5c21faedd80a8350
[ "Apache-2.0" ]
6
2022-03-25T08:18:52.000Z
2022-03-28T13:52:28.000Z
example/fetch.py
bh2smith/duneapi
835d69fc0b62876b1ac313ac5c21faedd80a8350
[ "Apache-2.0" ]
null
null
null
"""Sample Fetch script from DuneAnalytics""" from __future__ import annotations from dataclasses import dataclass from datetime import datetime from src.duneapi.api import DuneAPI from src.duneapi.types import Network, QueryParameter, DuneQuery from src.duneapi.util import open_query @dataclass class Record: ""...
30.730769
85
0.655194
545
0.341051
0
0
556
0.347935
0
0
410
0.256571
3096ae721713437784a75b40a0cbba1472f8290d
696
py
Python
arnold/api.py
hacklabza/arnold
d51f6b751ce6530650555cd33bf707f00b60af59
[ "BSD-3-Clause" ]
2
2021-08-20T05:19:37.000Z
2022-01-11T09:39:39.000Z
arnold/api.py
hacklabza/arnold
d51f6b751ce6530650555cd33bf707f00b60af59
[ "BSD-3-Clause" ]
null
null
null
arnold/api.py
hacklabza/arnold
d51f6b751ce6530650555cd33bf707f00b60af59
[ "BSD-3-Clause" ]
null
null
null
from typing import Optional from bottle import request, route, run import uvicorn from arnold import config from arnold.output.speaker import Speaker API_CONFIG = config.API # Module class instances, rather than init everytime speaker = Speaker() # TODO (qoda): Make this super generic @route('/health') def hea...
19.885714
70
0.698276
0
0
0
0
218
0.313218
0
0
170
0.244253
30989459794313f3040cb1606c1e87631a244492
27,430
py
Python
app/tests/manual/sample_tweet_stream.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
10
2019-03-22T07:07:41.000Z
2022-01-26T00:57:45.000Z
app/tests/manual/sample_tweet_stream.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
70
2017-07-12T19:49:38.000Z
2020-09-02T10:03:28.000Z
app/tests/manual/sample_tweet_stream.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
2
2017-06-30T07:13:39.000Z
2020-12-04T00:39:12.000Z
#!/usr/bin/env python """ Process a sample tweet fetched using streaming API. Usage: $ ipython -i FILENAME >>> data = main() >>> data.keys() # Then explore the `data` object in ipython. ['contributors', 'truncated', 'text', 'is_quote_status', 'in_reply_to_status_id', 'id', 'favorite_count', 'source...
52.347328
9,560
0.537149
0
0
0
0
0
0
0
0
27,345
0.993641
3098faf17a69f75a1483cd08aad053831460cf55
144
py
Python
Prazen Euler.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
Prazen Euler.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
Prazen Euler.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
i = 0 vsota = 0 while i < 1000: if i % 3 == 0: vsota += i elif i % 5 == 0: vsota += i i += 1 print(vsota)
7.2
20
0.375
0
0
0
0
0
0
0
0
0
0
309bdc9a6d187eaaf1d1bd279e7967ac39ed0b19
1,886
py
Python
koabot/patterns.py
luni3359/koa-bot
3faf4af89f2a414313e651088f6fd16d12e298ec
[ "MIT" ]
2
2020-05-05T03:02:39.000Z
2021-07-05T13:38:21.000Z
koabot/patterns.py
luni3359/koa-bot
3faf4af89f2a414313e651088f6fd16d12e298ec
[ "MIT" ]
65
2019-01-05T05:51:47.000Z
2022-03-26T17:39:20.000Z
koabot/patterns.py
luni3359/koa-bot
3faf4af89f2a414313e651088f6fd16d12e298ec
[ "MIT" ]
1
2021-01-06T03:39:00.000Z
2021-01-06T03:39:00.000Z
"""Regex pattern constants""" import re URL_PATTERN = re.compile(r'(http[s]?://(?:[a-zA-Z]|[0-9]|[$-;?-_=@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+)') NUMBER_PATTERN = re.compile(r'(\.\d+|\d[,\d]*(?:\.\d+)?)') UNIT_PATTERN_TUPLE = [ # [length] ('inch', re.compile(r' *("|inch|inches|ins?)(?!\w)')), ('f...
46
116
0.494168
0
0
0
0
0
0
0
0
1,207
0.638624
309c11fc57b0f92270c9e810c9427e1dc68d5961
38
py
Python
apis/resources/__init__.py
Fusemachines/fuse-python-training
939bf935646a60817b1da329791e376c7e59464b
[ "FSFAP" ]
null
null
null
apis/resources/__init__.py
Fusemachines/fuse-python-training
939bf935646a60817b1da329791e376c7e59464b
[ "FSFAP" ]
null
null
null
apis/resources/__init__.py
Fusemachines/fuse-python-training
939bf935646a60817b1da329791e376c7e59464b
[ "FSFAP" ]
null
null
null
from apis.resources.users import user
19
37
0.842105
0
0
0
0
0
0
0
0
0
0
309cb4e46480df6e33282f805360a5aeb8f64ac4
11,873
py
Python
pi_spark/backup_old_spark.py
cybertraining-dsc/sp20-516-246
73e1e9d8ed421d821848cb895368fd0e1c56f343
[ "Apache-2.0" ]
null
null
null
pi_spark/backup_old_spark.py
cybertraining-dsc/sp20-516-246
73e1e9d8ed421d821848cb895368fd0e1c56f343
[ "Apache-2.0" ]
null
null
null
pi_spark/backup_old_spark.py
cybertraining-dsc/sp20-516-246
73e1e9d8ed421d821848cb895368fd0e1c56f343
[ "Apache-2.0" ]
null
null
null
import os import textwrap from pprint import pprint #import cloudmesh.pi.cluster from cloudmesh.pi.cluster.Installer import Installer from cloudmesh.pi.cluster.Installer import Script from cloudmesh.common.Host import Host from cloudmesh.common.Printer import Printer from cloudmesh.common.console import Console from c...
33.44507
133
0.516971
11,368
0.957467
0
0
0
0
0
0
5,651
0.475954
309e29bd5c11a93e22fbf0abbb2d7d78bdce1323
1,321
py
Python
constants.py
tabilab-dip/sentiment-embeddings
8859a19d19cb96ee0b0da5053396a1c54bab5da6
[ "MIT" ]
7
2020-11-18T10:02:22.000Z
2022-01-06T03:24:37.000Z
constants.py
tabilab-dip/sentiment-embeddings
8859a19d19cb96ee0b0da5053396a1c54bab5da6
[ "MIT" ]
1
2020-10-26T18:56:23.000Z
2020-10-26T18:56:23.000Z
constants.py
tabilab-dip/sentiment-embeddings
8859a19d19cb96ee0b0da5053396a1c54bab5da6
[ "MIT" ]
1
2020-12-04T13:51:46.000Z
2020-12-04T13:51:46.000Z
#!/usr/bin/py # -*- coding: utf-8 -*- """ @author: Cem Rıfkı Aydın Constant parameters to be leveraged across the program. """ import os COMMAND = "cross_validate" # Dimension size of embeddings EMBEDDING_SIZE = 100 #Language can be either "turkish" or "english" LANG = "turkish" DATASET_PATH = os.path.join("inpu...
26.42
112
0.7676
0
0
0
0
0
0
0
0
1,041
0.786254
30a148fcef8cc908dd17aa013d41bed192bfd5de
122
py
Python
libraries/website/docs/snippets/cas/overview/evaluate_expression.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
95
2020-01-02T23:02:34.000Z
2022-03-08T18:57:24.000Z
libraries/website/docs/snippets/cas/overview/evaluate_expression.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
44
2020-01-05T03:07:45.000Z
2021-08-11T20:45:53.000Z
libraries/website/docs/snippets/cas/overview/evaluate_expression.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
5
2020-04-04T16:46:36.000Z
2022-03-30T08:10:02.000Z
from mathy_core import ExpressionParser expression = ExpressionParser().parse("4 + 2") assert expression.evaluate() == 6
24.4
46
0.770492
0
0
0
0
0
0
0
0
7
0.057377
30a1b3867be211ebdc0dea68618ce31d72b2a875
352
py
Python
quarkc/test/ffi/expected/py/overlapping_namespaces/setup.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
112
2015-10-02T19:51:51.000Z
2022-03-07T06:29:44.000Z
quarkc/test/ffi/expected/py/overlapping_namespaces/setup.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
181
2015-10-01T20:23:38.000Z
2016-12-07T17:21:26.000Z
quarkc/test/ffi/expected/py/overlapping_namespaces/setup.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
31
2015-10-13T22:10:00.000Z
2020-08-03T02:50:12.000Z
# Setup file for package overlapping_namespace from setuptools import setup setup(name="overlapping_namespace", version="0.1.0", install_requires=["wheel", "quark==0.0.1", "org_example_foo==0.1.0"], setup_requires=["wheel"], py_modules=[], packages=['org', 'org.example', 'org.example.bar...
32
85
0.678977
0
0
0
0
0
0
0
0
189
0.536932
30a37bf131fb4b3429d304093f34cb95cda25236
9,285
py
Python
torpido/io.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
21
2020-12-23T07:13:10.000Z
2022-01-12T10:32:22.000Z
torpido/io.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
2
2020-12-30T10:45:42.000Z
2021-09-25T09:52:00.000Z
torpido/io.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
1
2021-02-06T21:39:41.000Z
2021-02-06T21:39:41.000Z
""" This file contains function to separate out video and audio using ffmpeg. It consists of two functions to split and merge video and audio using ffmpeg. """ import os from torpido.config.constants import (CACHE_DIR, CACHE_NAME, IN_AUDIO_FILE, OUT_AUDIO_FILE, ...
39.510638
125
0.627464
8,698
0.93678
0
0
0
0
0
0
3,555
0.382876
30a405d600ad2e3396405bee7abf07a60fc56839
2,108
py
Python
plugins/callback/human.py
Benoth/projects-installer
0c657fd05c8fa4c38cee35fe3f6a98684a7eddc8
[ "MIT" ]
1
2018-01-04T06:54:32.000Z
2018-01-04T06:54:32.000Z
plugins/callback/human.py
Benoth/projects-installer
0c657fd05c8fa4c38cee35fe3f6a98684a7eddc8
[ "MIT" ]
null
null
null
plugins/callback/human.py
Benoth/projects-installer
0c657fd05c8fa4c38cee35fe3f6a98684a7eddc8
[ "MIT" ]
null
null
null
# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.callback import CallbackBase from ansible.utils.color import stringc class CallbackModule(CallbackBase): CALLBACK_VERSION = 2.0 CALLBACK_TYPE = 'stdout' CALLBACK_NAM...
38.327273
131
0.652277
1,896
0.899431
0
0
0
0
0
0
522
0.247628
30a54810ed9eb56db883cc95109f0ab931d09a5e
605
py
Python
COS120/testPlanet.py
thejayhaykid/Python
641c33b94762f0cace203dcf4cc121571625ab02
[ "MIT" ]
null
null
null
COS120/testPlanet.py
thejayhaykid/Python
641c33b94762f0cace203dcf4cc121571625ab02
[ "MIT" ]
null
null
null
COS120/testPlanet.py
thejayhaykid/Python
641c33b94762f0cace203dcf4cc121571625ab02
[ "MIT" ]
null
null
null
import planetClass def createSomePlanets(): aPlanet=planetClass.Planet("Zorks",2000,30000,100000,5) bPlanet=planetClass.Planet("Zapps",1000,20000,200000,17) print(aPlanet.getName() + " has a radius of " + str(aPlanet.getRadius())) planetList=[aPlanet,bPlanet] for planet in planetList: print...
40.333333
91
0.680992
0
0
0
0
0
0
0
0
92
0.152066
30a588158c50b26b948593296dc5a892bedb5ede
101
py
Python
scripts/fastapi/escuelas.py
HighDeFing/thesis_v4
2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7
[ "Apache-2.0" ]
null
null
null
scripts/fastapi/escuelas.py
HighDeFing/thesis_v4
2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7
[ "Apache-2.0" ]
null
null
null
scripts/fastapi/escuelas.py
HighDeFing/thesis_v4
2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7
[ "Apache-2.0" ]
null
null
null
import json f = open('Thesis_v3/scripts/fastapi/web/static/data/escuelas.json') data = json.load(f)
20.2
67
0.752475
0
0
0
0
0
0
0
0
57
0.564356
30a7222ecfe5a24f86695b0a4cf26331038a5731
1,410
py
Python
Source/mincost.py
aarsheem/696-ds
2d74b1e3f430e369202982d7ad8c56f362b00f76
[ "MIT" ]
2
2020-02-12T22:56:40.000Z
2020-02-17T16:59:05.000Z
Source/mincost.py
aarsheem/696-ds
2d74b1e3f430e369202982d7ad8c56f362b00f76
[ "MIT" ]
null
null
null
Source/mincost.py
aarsheem/696-ds
2d74b1e3f430e369202982d7ad8c56f362b00f76
[ "MIT" ]
2
2020-02-12T17:25:33.000Z
2021-02-01T20:29:17.000Z
import numpy as np from systemrl.agents.q_learning import QLearning import matplotlib.pyplot as plt from helper import decaying_epsilon, evaluate_interventions from tqdm import tqdm #This is not converging def mincost(env, human_policy, min_performance, agent, num_episodes=1000, max_steps=1000): print("mincost") ...
32.790698
90
0.595745
0
0
0
0
0
0
0
0
32
0.022695
30a791a26136890491f10b4931b42e8e670355a5
2,076
py
Python
server/algorithms.py
sebastianfrey/geoio-server
2f127244adda96d54e7a082f8514f9bdc9c8db97
[ "MIT" ]
null
null
null
server/algorithms.py
sebastianfrey/geoio-server
2f127244adda96d54e7a082f8514f9bdc9c8db97
[ "MIT" ]
null
null
null
server/algorithms.py
sebastianfrey/geoio-server
2f127244adda96d54e7a082f8514f9bdc9c8db97
[ "MIT" ]
null
null
null
"""All algorithms used by geoio-server""" import math import functools import geojson def angle(point_1, point_2): """calculates the angle between two points in radians""" return math.atan2(point_2[1] - point_1[1], point_2[0] - point_1[0]) def convex_hull(collection): """Calculates the convex hull of an ...
32.952381
132
0.66474
0
0
0
0
0
0
0
0
335
0.161368
30a8e19c8a3340ed914debb399aef2df50e28dac
2,495
py
Python
First Project/Exercise2/modified_bisection.py
TasosOperatingInBinary/Numerical-Analysis-Projects
61a8014f2b853a646145cea5a4d3655e100be854
[ "MIT" ]
null
null
null
First Project/Exercise2/modified_bisection.py
TasosOperatingInBinary/Numerical-Analysis-Projects
61a8014f2b853a646145cea5a4d3655e100be854
[ "MIT" ]
null
null
null
First Project/Exercise2/modified_bisection.py
TasosOperatingInBinary/Numerical-Analysis-Projects
61a8014f2b853a646145cea5a4d3655e100be854
[ "MIT" ]
null
null
null
import numpy as np def modified_bisection(f, a, b, eps=5e-6): """ Function that finds a root using modified Bisection method for a given function f(x). On each iteration instead of the middle of the interval, a random number is chosen as the next guess for the root. The function fi...
42.288136
119
0.600401
0
0
0
0
0
0
0
0
1,923
0.770741
30a910ea0718b3060e358f1839e61f48a5b25649
8,454
py
Python
dynamic_forms/models.py
juandisay/django-dynamic-forms
761bfea5332fbd4d247a0fa55a19cfc0dd36e3c8
[ "BSD-3-Clause" ]
135
2015-01-16T08:14:23.000Z
2021-12-22T07:21:37.000Z
dynamic_forms/models.py
ayoub-root/django-dynamic-forms
614b9a06f6edfeb3349b7e64cc8820e56535ad59
[ "BSD-3-Clause" ]
33
2015-01-18T13:24:00.000Z
2019-05-03T12:26:17.000Z
dynamic_forms/models.py
ayoub-root/django-dynamic-forms
614b9a06f6edfeb3349b7e64cc8820e56535ad59
[ "BSD-3-Clause" ]
48
2015-01-20T20:04:20.000Z
2022-01-06T10:02:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from collections import OrderedDict from django.core.urlresolvers import reverse from django.db import models from django.db.transaction import atomic from django.template.defaultfilters import slugify from django.utils.crypto import get_rand...
38.427273
88
0.62917
7,657
0.903587
0
0
7,744
0.913854
0
0
2,163
0.255251
30a9ab75ade2dbd70c38b6cd9c991c10b08234de
1,215
py
Python
banshee/tests/pta-bt-test.py
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
2
2017-02-15T23:36:49.000Z
2018-09-11T09:34:14.000Z
banshee/tests/pta-bt-test.py
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
null
null
null
banshee/tests/pta-bt-test.py
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
2
2015-10-15T07:41:09.000Z
2019-10-08T12:55:13.000Z
#!/usr/bin/python import sys import os import string #print sys.argv frontend = "../cparser/parser.exe" flags = "-fprint-results" pta_cmd = "%s %s" % (frontend, flags) prefix = "" prefix_size = int(sys.argv[1]) for x in sys.argv[2:(2+prefix_size)]: prefix = " %s %s" % (prefix, x) filelist = "" for x in sys.ar...
27
123
0.652675
0
0
0
0
0
0
0
0
506
0.416461
30abf6ce8fba41eb376313eba17a397685a314e9
29,178
py
Python
src/pumpwood_djangoviews/views.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
src/pumpwood_djangoviews/views.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
src/pumpwood_djangoviews/views.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
"""Create views using Pumpwood pattern.""" import os import pandas as pd import simplejson as json from io import BytesIO from django.conf import settings from django.http import HttpResponse from rest_framework.parsers import JSONParser from rest_framework import viewsets, status from rest_framework.response import Re...
38.955941
79
0.579512
28,104
0.963191
0
0
5,533
0.189629
0
0
9,194
0.3151
30ac17625116d9c557fcb9f766bc9c4e0e187256
273
py
Python
scripts/scenes/combat/elements/unit_behaviours/heavy.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
12
2022-01-02T11:21:46.000Z
2022-03-12T20:53:40.000Z
scripts/scenes/combat/elements/unit_behaviours/heavy.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
142
2021-07-25T14:05:11.000Z
2022-03-26T21:12:53.000Z
scripts/scenes/combat/elements/unit_behaviours/heavy.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
9
2021-08-25T00:25:24.000Z
2022-03-12T20:53:41.000Z
from .base import Base class Heavy(Base): def complete_init(self): super().complete_init() self.force_regroup = True if self.unit.use_ammo: self.smart_range_retarget = True def process(self, dt): super().process(dt)
18.2
44
0.611722
247
0.904762
0
0
0
0
0
0
0
0
30b094be213a7211a4cc02bd180d2df939d842b1
899
py
Python
tests/test_import_conceptnet.py
vishalbelsare/kgtk
7dbcc901a5d52cc9d1af97715e12697e5b460dc7
[ "MIT" ]
222
2020-03-31T17:45:04.000Z
2022-03-30T22:48:08.000Z
tests/test_import_conceptnet.py
vishalbelsare/kgtk
7dbcc901a5d52cc9d1af97715e12697e5b460dc7
[ "MIT" ]
510
2020-04-02T00:32:44.000Z
2022-03-29T01:20:22.000Z
tests/test_import_conceptnet.py
vishalbelsare/kgtk
7dbcc901a5d52cc9d1af97715e12697e5b460dc7
[ "MIT" ]
41
2020-03-31T17:45:07.000Z
2022-03-22T02:49:44.000Z
import shutil import unittest import tempfile import pandas as pd from kgtk.cli_entry import cli_entry from kgtk.exceptions import KGTKException class TestKGTKImportConceptNet(unittest.TestCase): def setUp(self) -> None: self.temp_dir=tempfile.mkdtemp() def tearDown(self) -> None: shutil.rmtre...
32.107143
134
0.688543
751
0.835373
0
0
0
0
0
0
292
0.324805
30b203119c6c5793b1d0fe751409e9c5ee26bbf6
53
py
Python
lib/__init__.py
jesseokeya/linkedin-scraper
6b9d5af5167c8c936db63a855a9885728efbfeb5
[ "MIT" ]
null
null
null
lib/__init__.py
jesseokeya/linkedin-scraper
6b9d5af5167c8c936db63a855a9885728efbfeb5
[ "MIT" ]
1
2020-01-04T19:33:58.000Z
2021-09-07T15:03:03.000Z
lib/__init__.py
jesseokeya/linkedin-scraper
6b9d5af5167c8c936db63a855a9885728efbfeb5
[ "MIT" ]
1
2021-12-02T06:51:46.000Z
2021-12-02T06:51:46.000Z
from .scrape import Scrape from .helper import Helper
26.5
26
0.830189
0
0
0
0
0
0
0
0
0
0
30b35825288ae55d3b4e9f3fda30cd87266a239e
4,030
py
Python
test_contest/solutions/ladders.py
tbuzzelli/Veris
b2e9bd5f944a60365de8c18f17e041fa65f9e74a
[ "Apache-2.0" ]
7
2018-09-26T17:17:01.000Z
2020-12-20T17:23:33.000Z
test_contest/solutions/ladders.py
tbuzzelli/Veris
b2e9bd5f944a60365de8c18f17e041fa65f9e74a
[ "Apache-2.0" ]
4
2018-09-26T17:49:24.000Z
2020-12-20T17:15:37.000Z
test_contest/solutions/ladders.py
tbuzzelli/Veris
b2e9bd5f944a60365de8c18f17e041fa65f9e74a
[ "Apache-2.0" ]
1
2021-12-03T17:49:50.000Z
2021-12-03T17:49:50.000Z
# Written by Will Cromar # Python 3.6 from collections import deque # DX/DY array. In order of precedence, we'll move # left, right, up, and down DX = [-1, 1, 0, 0] DY = [0, 0, -1, 1] # Constants for types of spaces EMPTY = '.' LADDER = '#' CHUTE = '*' START = 'S' EXIT = 'E' # Primary business fu...
29.416058
77
0.525806
0
0
2,999
0.744169
0
0
0
0
1,603
0.397767
30b3709aef46a9041782b934920c7987f957d49e
1,789
py
Python
fits2fshr.py
rainwoodman/fsfits
e052c159915e7a67f10972c7851d2924afeaa302
[ "MIT" ]
null
null
null
fits2fshr.py
rainwoodman/fsfits
e052c159915e7a67f10972c7851d2924afeaa302
[ "MIT" ]
null
null
null
fits2fshr.py
rainwoodman/fsfits
e052c159915e7a67f10972c7851d2924afeaa302
[ "MIT" ]
null
null
null
import fitsio import fsfits from argparse import ArgumentParser import json import numpy ap = ArgumentParser() ap.add_argument('--check', action='store_true', default=False, help="Test if output contains identical information to input") ap.add_argument('input') ap.add_argument('output') ns = ap.parse_args(...
28.854839
70
0.455562
0
0
0
0
0
0
0
0
156
0.0872
30b43d3abb832538af7887238ea688d9f984e472
4,086
py
Python
window_switcher/window.py
include4eto/linux-appfinder
23b00d7e18760409e53aad7deb0544d7a4850bc3
[ "MIT" ]
2
2018-04-24T22:05:08.000Z
2018-04-25T09:50:37.000Z
window_switcher/window.py
include4eto/linux-appfinder
23b00d7e18760409e53aad7deb0544d7a4850bc3
[ "MIT" ]
1
2018-04-25T09:26:59.000Z
2018-04-25T09:36:43.000Z
window_switcher/window.py
include4eto/window-switcher
23b00d7e18760409e53aad7deb0544d7a4850bc3
[ "MIT" ]
2
2019-11-07T03:43:53.000Z
2021-03-25T12:14:01.000Z
from tkinter import Entry, Listbox, StringVar import sys, tkinter, subprocess from window_switcher.aux import get_windows class Window: FONT = ('Monospace', 11) ITEM_HEIGHT = 22 MAX_FOUND = 10 BG_COLOR = '#202b3a' FG_COLOR = '#ced0db' def resize(self, items): if self.resized: ...
27.986301
98
0.564366
3,962
0.969652
0
0
0
0
0
0
476
0.116495
30b47ce03ab25050c96be917e8653691dbb6ff93
5,292
py
Python
app/udp_comm/proto-py/imu_samples_pb2.py
ewfuentes/esp32_stuff
5bf87555e91ffef48316f85f81d3765a6ef4a2c6
[ "Apache-2.0" ]
null
null
null
app/udp_comm/proto-py/imu_samples_pb2.py
ewfuentes/esp32_stuff
5bf87555e91ffef48316f85f81d3765a6ef4a2c6
[ "Apache-2.0" ]
null
null
null
app/udp_comm/proto-py/imu_samples_pb2.py
ewfuentes/esp32_stuff
5bf87555e91ffef48316f85f81d3765a6ef4a2c6
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: imu_samples.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _r...
42
522
0.74263
0
0
0
0
0
0
0
0
1,320
0.249433
30b4986ed423fc0d856c04b8b25dc611fff18369
3,394
py
Python
imcsdk/mometa/bios/BiosVfSgxLePubKeyHash.py
ecoen66/imcsdk
b10eaa926a5ee57cea7182ae0adc8dd1c818b0ab
[ "Apache-2.0" ]
31
2016-06-14T07:23:59.000Z
2021-09-12T17:17:26.000Z
imcsdk/mometa/bios/BiosVfSgxLePubKeyHash.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
109
2016-05-25T03:56:56.000Z
2021-10-18T02:58:12.000Z
imcsdk/mometa/bios/BiosVfSgxLePubKeyHash.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
67
2016-05-17T05:53:56.000Z
2022-03-24T15:52:53.000Z
"""This module contains the general information for BiosVfSgxLePubKeyHash ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class BiosVfSgxLePubKeyHashConsts: VP_SGX_LE_PUB_KEY_HASH0_PLATFORM_DEFAULT = "platform-default" ...
50.656716
235
0.675015
3,174
0.93518
0
0
0
0
0
0
1,255
0.36977
30b5e4e7800e589009301f09b9320ccd7cff9745
256
py
Python
services/helpers.py
jonti09/postgresql-manager
b41dab209b3b655c71c5e0f36699e63ddba1ad06
[ "MIT" ]
null
null
null
services/helpers.py
jonti09/postgresql-manager
b41dab209b3b655c71c5e0f36699e63ddba1ad06
[ "MIT" ]
null
null
null
services/helpers.py
jonti09/postgresql-manager
b41dab209b3b655c71c5e0f36699e63ddba1ad06
[ "MIT" ]
null
null
null
from configparser import ConfigParser import boto3 class S3Client: @staticmethod def get_client(config: ConfigParser): return boto3.Session( profile_name=config.get('S3', 'profile', fallback='default') ).client('s3')
21.333333
72
0.671875
201
0.785156
0
0
181
0.707031
0
0
26
0.101563
30babde668ddbdfd3b25264b810e1027b167156a
1,791
py
Python
setup.py
naritotakizawa/getsize
25989cdb07e343c6684586768e60363f366f8c71
[ "MIT" ]
1
2017-08-07T18:15:37.000Z
2017-08-07T18:15:37.000Z
setup.py
naritotakizawa/getsize
25989cdb07e343c6684586768e60363f366f8c71
[ "MIT" ]
null
null
null
setup.py
naritotakizawa/getsize
25989cdb07e343c6684586768e60363f366f8c71
[ "MIT" ]
null
null
null
import os import sys from setuptools import find_packages, setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] def initialize_options(self): TestCommand.initialize_options(self) ...
32.563636
82
0.624232
539
0.300949
0
0
0
0
0
0
676
0.377443
30bb85a4d211b4c8e0c05cca0ae92e39839b9906
1,194
py
Python
dockwidgetpluginbase.py
sandroklippel/qgis-dockable-plugin
9410d20646155d1fe90ec44caa7d15a607d1e72d
[ "MIT" ]
null
null
null
dockwidgetpluginbase.py
sandroklippel/qgis-dockable-plugin
9410d20646155d1fe90ec44caa7d15a607d1e72d
[ "MIT" ]
null
null
null
dockwidgetpluginbase.py
sandroklippel/qgis-dockable-plugin
9410d20646155d1fe90ec44caa7d15a607d1e72d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5 import QtCore, QtGui, QtWidgets class Ui_DockWidgetPluginBase(object): def setupUi(self, DockWidgetPluginBase): DockWidgetPluginBase.setObjectName("DockWidgetPluginBase") DockWidgetPluginBase.resize(232, 141) self.dockWidgetContents = QtWidgets.QWidget() ...
42.642857
98
0.741206
1,123
0.940536
0
0
0
0
0
0
262
0.21943
30bc0d5caa2ba95a5a11a4f13508d048a4057cd0
684
py
Python
setup.py
KirstensGitHub/attention-memory-task
c3d4b13e43134d4cc25c277e5f49220ac48ab931
[ "MIT" ]
4
2017-10-30T20:46:25.000Z
2020-10-16T16:28:29.000Z
setup.py
KirstensGitHub/attention-memory-task
c3d4b13e43134d4cc25c277e5f49220ac48ab931
[ "MIT" ]
26
2017-10-30T20:44:07.000Z
2019-10-11T20:07:33.000Z
setup.py
KirstensGitHub/attention-memory-task
c3d4b13e43134d4cc25c277e5f49220ac48ab931
[ "MIT" ]
7
2019-08-21T13:20:41.000Z
2022-03-01T03:25:26.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='attention-memory-task', version='0.1.0', description='Attention and Memory Experiment', long_description='This reposi...
29.73913
170
0.72076
0
0
0
0
0
0
0
0
376
0.549708
30bc925cd0ed0b7b60bfef9a34e4c38e0b3fa974
3,659
py
Python
blue_print/testLogReg.py
yimingq/COMP90051-SML
3e1d93d9b1a8cd23f4c05eeb18d615e87d4d6369
[ "Apache-2.0" ]
1
2020-09-16T04:58:49.000Z
2020-09-16T04:58:49.000Z
blue_print/testLogReg.py
yimingq/COMP90051-SML
3e1d93d9b1a8cd23f4c05eeb18d615e87d4d6369
[ "Apache-2.0" ]
null
null
null
blue_print/testLogReg.py
yimingq/COMP90051-SML
3e1d93d9b1a8cd23f4c05eeb18d615e87d4d6369
[ "Apache-2.0" ]
2
2020-03-31T08:55:45.000Z
2020-09-05T14:02:16.000Z
from numpy import * import matplotlib.pyplot as plt import time from LogReg import trainLogRegres, showLogRegres, predicTestData # from sklearn.datasets import make_circles # from sklearn.model_selection import train_test_split # from sklearn.metrics import accuracy_score import csv def loadTrainData(): train_x =...
28.364341
81
0.608363
0
0
0
0
0
0
0
0
2,273
0.621208
30bcbf7ce957c6c88d400b8fdc56ff1017f41f6b
1,303
py
Python
Pyautogui_tutorial/mousecontrolscipt.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
Pyautogui_tutorial/mousecontrolscipt.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
Pyautogui_tutorial/mousecontrolscipt.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
import pyautogui as pg # 间隔2秒钟将鼠标移动到坐标为100,100的位置 pg.FAILSAFE = False #关掉保护措施,不设置会报下面附录的错误 pg.moveTo(x=100, y=100, duration=2) pg.click() #鼠标左键点击一次, 这个函数有很多参数,参见以下,可以玩看看 #pg.click(x=None, y=None, clicks=1, interval=0.0, button='left', duration=0.0, tween=pg.linear) ''' 第一次执行的时候报了这个错误,搜了一下貌似要关掉 Excepti...
25.54902
175
0.720645
0
0
0
0
0
0
0
0
1,238
0.71685
30bdbe577a5d9d1dbc9a092c3e7fa1f6b9c7256d
9,683
py
Python
Backup/moduleA.py
ejekt/rigging-system
dedf09cc832f56b310587b818deadfd4f8ca7b3b
[ "MIT" ]
3
2019-12-12T03:46:41.000Z
2021-01-16T06:29:45.000Z
Backup/moduleA.py
ejekt/rigging-system
dedf09cc832f56b310587b818deadfd4f8ca7b3b
[ "MIT" ]
null
null
null
Backup/moduleA.py
ejekt/rigging-system
dedf09cc832f56b310587b818deadfd4f8ca7b3b
[ "MIT" ]
null
null
null
import os import naming as n reload(n) import maya.cmds as mc import System.utils as utils reload(utils) CLASS_NAME = 'ModuleA' TITLE = 'Module A' DESCRIPTION = 'Test desc for module A' ICON = os.environ['RIGGING_TOOL_ROOT'] + '/Icons/_hand.xpm' #cNamer = n.Name(type='blueprint', mod=CLASS_NAME) clas...
41.380342
129
0.741402
9,367
0.967365
0
0
0
0
0
0
2,273
0.234741
30bf63f85cca01c1bcc1223cd6e0ff4f4c12199f
7,652
py
Python
tests/exporter/test_metadata.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
tests/exporter/test_metadata.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
tests/exporter/test_metadata.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from mock import Mock from ingest.exporter.metadata import MetadataResource, MetadataService, MetadataParseException, MetadataProvenance class MetadataResourceTest(TestCase): def test_provenance_from_dict(self): # given: uuid_value = '3f3212da-d5d0-4e55-b31d-83243f...
42.748603
119
0.604809
7,477
0.97713
0
0
420
0.054888
0
0
1,872
0.244642
30bfa3735b16a51315054b5acedc817b34e86510
919
py
Python
models.py
tensorway/Neural-cellular-automata-and-Bitcoin
79d19dc036217f93d6845be9ea96c6cc25b23b92
[ "MIT" ]
null
null
null
models.py
tensorway/Neural-cellular-automata-and-Bitcoin
79d19dc036217f93d6845be9ea96c6cc25b23b92
[ "MIT" ]
null
null
null
models.py
tensorway/Neural-cellular-automata-and-Bitcoin
79d19dc036217f93d6845be9ea96c6cc25b23b92
[ "MIT" ]
null
null
null
import torch as th import torch.nn as nn import torch.nn.functional as F import torchvision as tv import matplotlib.pyplot as plt import cv2 from torch.utils.tensorboard import SummaryWriter import time from collections import deque import random import copy from utils import xsobel, ysobel class Cell(nn.Module): ...
34.037037
99
0.660501
626
0.681175
0
0
0
0
0
0
0
0
30c056f49843fec67503aa5c21f43521e60897d9
5,708
py
Python
src/delivery/delivery.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
src/delivery/delivery.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
src/delivery/delivery.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
""" Prototype Delivery Workflow. """ import os import sys import glob import logging import ska_sdp_config import dask import distributed from google.oauth2 import service_account from google.cloud import storage # Initialise logging logging.basicConfig() LOG = logging.getLogger("delivery") LOG.setLevel(logging.INF...
30.201058
86
0.666608
0
0
0
0
0
0
0
0
2,033
0.356167
30c1376c3fde4348e43ee2ba12a8534b910f98c1
1,527
py
Python
dragon/usystem.py
NicEastvillage/RLBot-DropShot-Dragon-Python
b0d94fd054ab410ad02880a3d56e72b5eddd7ba6
[ "MIT" ]
1
2019-08-07T21:38:59.000Z
2019-08-07T21:38:59.000Z
dragon/usystem.py
NicEastvillage/RLBot-DropShot-Dragon-Python
b0d94fd054ab410ad02880a3d56e72b5eddd7ba6
[ "MIT" ]
null
null
null
dragon/usystem.py
NicEastvillage/RLBot-DropShot-Dragon-Python
b0d94fd054ab410ad02880a3d56e72b5eddd7ba6
[ "MIT" ]
null
null
null
from RLUtilities.LinearAlgebra import vec3 from RLUtilities.Maneuvers import Drive class UtilitySystem: def __init__(self, choices, prev_bias=0.15): self.choices = choices self.current_best_index = -1 self.prev_bias = prev_bias def evaluate(self, bot): best_index = -1 ...
29.365385
92
0.611002
1,438
0.941716
0
0
0
0
0
0
56
0.036673
30c246c819da13e7b7505537f7f56ed38dc95334
7,516
py
Python
ands/ds/BinaryHeap.py
bssrdf/ands
504d91abfe12d316119424ddcb0ad3df3207ee73
[ "MIT" ]
50
2016-12-14T15:10:39.000Z
2022-03-05T23:32:19.000Z
ands/ds/BinaryHeap.py
bssrdf/ands
504d91abfe12d316119424ddcb0ad3df3207ee73
[ "MIT" ]
58
2016-11-17T23:27:52.000Z
2020-12-30T13:55:46.000Z
ands/ds/BinaryHeap.py
bssrdf/ands
504d91abfe12d316119424ddcb0ad3df3207ee73
[ "MIT" ]
15
2016-12-11T12:43:18.000Z
2020-12-17T12:44:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ # Meta-info Author: Nelson Brochado Created: 01/07/2015 Updated: 06/04/2018 # Description Contains the abstract class BinaryHeap. # References - Slides by prof. A. Carzaniga - Chapter 13 of Introduction to Algorithms (3rd ed.) - http://www.math.clemson.edu/~war...
29.245136
112
0.608302
5,404
0.718617
0
0
411
0.054654
0
0
4,055
0.539229
30c249456403ba1e6baa94afda95313e18e736de
106
py
Python
textProcessing/urls.py
nvakhilnair/Text-Pre-processing-for-Sentiment-Analysis
646b79258af745ea0cdb623b9763de714717259d
[ "MIT" ]
null
null
null
textProcessing/urls.py
nvakhilnair/Text-Pre-processing-for-Sentiment-Analysis
646b79258af745ea0cdb623b9763de714717259d
[ "MIT" ]
null
null
null
textProcessing/urls.py
nvakhilnair/Text-Pre-processing-for-Sentiment-Analysis
646b79258af745ea0cdb623b9763de714717259d
[ "MIT" ]
null
null
null
from .views import API from django.urls import path urlpatterns = [ path('', API.as_view()), ]
11.777778
28
0.632075
0
0
0
0
0
0
0
0
2
0.018868
30c2fc61b7992bd51c445c7ef21cc3452bd93e85
2,190
py
Python
product.py
trytonus/trytond-customs-value
ce2097fefab714131fae77ec1f49322141051110
[ "BSD-3-Clause" ]
null
null
null
product.py
trytonus/trytond-customs-value
ce2097fefab714131fae77ec1f49322141051110
[ "BSD-3-Clause" ]
1
2016-04-12T18:10:19.000Z
2016-04-12T18:10:19.000Z
product.py
fulfilio/trytond-customs-value
ce2097fefab714131fae77ec1f49322141051110
[ "BSD-3-Clause" ]
6
2015-08-24T12:44:43.000Z
2016-04-12T10:04:08.000Z
# -*- coding: utf-8 -*- from trytond.pool import PoolMeta from trytond.model import fields from trytond.pyson import Eval, Bool, Not __all__ = ['Product'] __metaclass__ = PoolMeta class Product: "Product" __name__ = 'product.product' country_of_origin = fields.Many2One( 'country.country', 'Cou...
27.375
77
0.636986
2,005
0.915525
0
0
752
0.343379
0
0
540
0.246575
30c67023520b45683449e683c5e3f1a8e0df06b5
523
py
Python
samples/indicator/rsi_test.py
gsamarakoon/ParadoxTrading
2c4024e60b14bf630fd141ccd4c77f197b7c901a
[ "MIT" ]
95
2018-01-14T14:35:35.000Z
2021-03-17T02:10:24.000Z
samples/indicator/rsi_test.py
yutiansut/ParadoxTrading
b915d1491663443bedbb048017abeed3f7dcd4e2
[ "MIT" ]
2
2018-01-14T14:35:51.000Z
2018-07-06T02:57:49.000Z
samples/indicator/rsi_test.py
yutiansut/ParadoxTrading
b915d1491663443bedbb048017abeed3f7dcd4e2
[ "MIT" ]
25
2018-01-14T14:38:08.000Z
2020-07-15T16:03:04.000Z
from ParadoxTrading.Chart import Wizard from ParadoxTrading.Fetch.ChineseFutures import FetchDominantIndex from ParadoxTrading.Indicator import RSI fetcher = FetchDominantIndex() market = fetcher.fetchDayData('20100701', '20170101', 'rb') rsi = RSI(14).addMany(market).getAllData() wizard = Wizard() price_view = wiz...
27.526316
66
0.76673
0
0
0
0
0
0
0
0
66
0.126195
30c7a9362a7e00f4dea1c4a3028e5f5f01134985
406
py
Python
Multipliers/mult.py
ThoAppelsin/pure-music
ab1a8604cc24b1dbf329a556154d5f0cc7f2236b
[ "MIT" ]
null
null
null
Multipliers/mult.py
ThoAppelsin/pure-music
ab1a8604cc24b1dbf329a556154d5f0cc7f2236b
[ "MIT" ]
null
null
null
Multipliers/mult.py
ThoAppelsin/pure-music
ab1a8604cc24b1dbf329a556154d5f0cc7f2236b
[ "MIT" ]
null
null
null
import fractions from pprint import pprint lcm_limit = 32 octave_limit = 4 candidates = [(x, y) for x in range(1, lcm_limit + 1) for y in range(1, lcm_limit + 1)] candidates = [c for c in candidates if fractions.gcd(c[0], c[1]) == 1 and c[0] * c[1] <= lcm_limit and 1 / octave_limit <= c[0] / c[1] <= octave_limit] ...
25.375
87
0.672414
0
0
0
0
0
0
0
0
0
0
30c828d9ab280febb16bf5ef11feff5b3f99b8e8
573
py
Python
Python3/24.swap-nodes-in-pairs.py
canhetingsky/LeetCode
67f4eaeb5746d361056d08df828c653f89dd9fdd
[ "MIT" ]
1
2019-09-23T13:25:21.000Z
2019-09-23T13:25:21.000Z
Python3/24.swap-nodes-in-pairs.py
canhetingsky/LeetCode
67f4eaeb5746d361056d08df828c653f89dd9fdd
[ "MIT" ]
6
2019-10-25T10:17:50.000Z
2019-11-17T05:07:19.000Z
Python3/24.swap-nodes-in-pairs.py
canhetingsky/LeetCode
67f4eaeb5746d361056d08df828c653f89dd9fdd
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=24 lang=python3 # # [24] Swap Nodes in Pairs # # @lc code=start # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def swapPairs(self, head: ListNode) -> ListNode: curr = dummyHead =...
19.758621
52
0.556719
332
0.579407
0
0
0
0
0
0
225
0.39267
30cae5fcba520d2336e9de37bde53bf9f641c26d
1,593
py
Python
src/Controllers/CEOControl.py
shulip/ShoppingMallSystem
01e5a04a8353ca319ed2dc002fc358f6e44c33dd
[ "MIT" ]
null
null
null
src/Controllers/CEOControl.py
shulip/ShoppingMallSystem
01e5a04a8353ca319ed2dc002fc358f6e44c33dd
[ "MIT" ]
null
null
null
src/Controllers/CEOControl.py
shulip/ShoppingMallSystem
01e5a04a8353ca319ed2dc002fc358f6e44c33dd
[ "MIT" ]
1
2021-04-22T15:14:21.000Z
2021-04-22T15:14:21.000Z
####################################################### # # CEOControl.py # Python implementation of the Class CEOControl # Generated by Enterprise Architect # Created on: 16-5��-2019 12:06:10 # Original author: ���� # ####################################################### from Models.Statement import Statement...
24.890625
75
0.640301
1,084
0.675389
0
0
0
0
0
0
309
0.192523
30cb99ee5910824c55927f1d17d6bec03ac81d17
2,104
py
Python
apps/plugins/plugin.py
rmdes/tanzawa
d53baa10bd6c217cd18628437a88a43e3bd02b70
[ "Apache-2.0" ]
25
2021-06-13T03:38:44.000Z
2022-03-15T15:53:31.000Z
apps/plugins/plugin.py
rmdes/tanzawa
d53baa10bd6c217cd18628437a88a43e3bd02b70
[ "Apache-2.0" ]
59
2021-06-12T23:35:06.000Z
2022-03-24T21:40:24.000Z
apps/plugins/plugin.py
rmdes/tanzawa
d53baa10bd6c217cd18628437a88a43e3bd02b70
[ "Apache-2.0" ]
null
null
null
import abc import pathlib from importlib import util as importlib_util from typing import Optional, Protocol from plugins.models import MPlugin class TopNavProtocol(Protocol): @property def public_has_top_nav(self) -> bool: """Does this plugin have public facing top nav?""" return False cla...
30.057143
116
0.654943
1,953
0.928232
0
0
1,397
0.663973
0
0
784
0.372624
30cc83890770a4003caacdcf071dce2fdf40b1e0
1,102
py
Python
lesson_01/005.py
amindmobile/geekbrains-python-002
4bc2f7af755d00e73ddc48f1138830cb78e87034
[ "MIT" ]
null
null
null
lesson_01/005.py
amindmobile/geekbrains-python-002
4bc2f7af755d00e73ddc48f1138830cb78e87034
[ "MIT" ]
null
null
null
lesson_01/005.py
amindmobile/geekbrains-python-002
4bc2f7af755d00e73ddc48f1138830cb78e87034
[ "MIT" ]
null
null
null
# Запросите у пользователя значения выручки и издержек фирмы. Определите, с каким финансовым результатом работает фирма # (прибыль — выручка больше издержек, или убыток — издержки больше выручки). Выведите соответствующее сообщение. Если # фирма отработала с прибылью, вычислите рентабельность выручки (соотношение прибы...
55.1
119
0.777677
0
0
0
0
0
0
0
0
1,470
0.847751
30ccc835225f0f39d9631aa44f69223b6d2b4527
5,825
py
Python
ratschlab_common/io/dataframe_formats.py
ratschlab/ratschlab-common
e7d71c3220c8b991d9d1c2f2de5cf393fce8357c
[ "MIT" ]
1
2021-02-01T22:45:24.000Z
2021-02-01T22:45:24.000Z
ratschlab_common/io/dataframe_formats.py
ratschlab/ratschlab-common
e7d71c3220c8b991d9d1c2f2de5cf393fce8357c
[ "MIT" ]
2
2019-11-25T09:10:26.000Z
2020-02-14T13:08:28.000Z
ratschlab_common/io/dataframe_formats.py
ratschlab/ratschlab-common
e7d71c3220c8b991d9d1c2f2de5cf393fce8357c
[ "MIT" ]
1
2018-09-20T01:38:01.000Z
2018-09-20T01:38:01.000Z
import os from abc import ABCMeta, abstractmethod from types import MappingProxyType import dask.dataframe import pandas as pd class AbstractDataFrameFormat: """ Provides helper functions to serialize and deserialize pandas and dask dataframes. Instances of such classes can define their own default ...
36.63522
93
0.633305
5,688
0.976481
0
0
950
0.16309
0
0
759
0.1303
30cd6249b329b46a03cfecc7898ea184033964d2
378
py
Python
HannaL Programming 12 Portfolio/Hanna L Chapter 1 Lab/AreaOfTrapezoidCalculator.py
HannaLuu/Programming12_Portfolio
b6b480b557ab88e428580c40fda2bb8f10ac115a
[ "MIT" ]
null
null
null
HannaL Programming 12 Portfolio/Hanna L Chapter 1 Lab/AreaOfTrapezoidCalculator.py
HannaLuu/Programming12_Portfolio
b6b480b557ab88e428580c40fda2bb8f10ac115a
[ "MIT" ]
null
null
null
HannaL Programming 12 Portfolio/Hanna L Chapter 1 Lab/AreaOfTrapezoidCalculator.py
HannaLuu/Programming12_Portfolio
b6b480b557ab88e428580c40fda2bb8f10ac115a
[ "MIT" ]
null
null
null
print("This program calculates the area of a trapezoid.") height = float(input("Enter height of trapezoid:")) top_base_length = float(input("Enter top length of trapezoid:")) bottom_base_length = float(input("Enter bottom length of trapezoid:")) area_of_trapezoid = .5 * (top_base_length + bottom_base_length) * height p...
63
72
0.769841
0
0
0
0
0
0
0
0
176
0.465608
30d0d4d6a16170d4deabeabcc9a6af64c6ea52e2
5,498
py
Python
src/pumpwood_djangoviews/action.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
src/pumpwood_djangoviews/action.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
src/pumpwood_djangoviews/action.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
"""Define actions decorator.""" import inspect import pandas as pd from typing import cast from datetime import date, datetime from typing import Callable from pumpwood_communication.exceptions import PumpWoodActionArgsException class Action: """Define a Action class to be used in decorator action.""" def _...
35.934641
77
0.591124
1,723
0.313387
0
0
0
0
0
0
1,355
0.246453
30d36f714ffcf578c5b755784494e079e2271651
5,426
py
Python
logistic-regression/mnist_binary_classifier.py
eliben/deep-learning-samples
d5ca86c5db664fabfb302cbbc231c50ec3d6a103
[ "Unlicense" ]
183
2015-12-29T07:21:24.000Z
2022-01-18T01:19:23.000Z
logistic-regression/mnist_binary_classifier.py
eliben/deep-learning-samples
d5ca86c5db664fabfb302cbbc231c50ec3d6a103
[ "Unlicense" ]
null
null
null
logistic-regression/mnist_binary_classifier.py
eliben/deep-learning-samples
d5ca86c5db664fabfb302cbbc231c50ec3d6a103
[ "Unlicense" ]
68
2016-06-02T15:31:51.000Z
2021-09-08T19:58:10.000Z
# A binary linear classifier for MNIST digits. # # Poses a binary classification problem - is this image showing digit D (for # some D, for example "4"); trains a linear classifier to solve the problem. # # Eli Bendersky (http://eli.thegreenplace.net) # This code is in the public domain from __future__ import print_fun...
44.113821
80
0.605418
0
0
0
0
0
0
0
0
1,575
0.290269
30d54fa27b6407cf613e47ef65f685b9f45ab6fc
37
py
Python
src/RGT/userProfile/__init__.py
danrg/RGT-tool
115ba9a93686595699b3e182958921b3d60382b3
[ "MIT" ]
7
2015-02-09T12:12:04.000Z
2019-03-31T08:23:36.000Z
src/RGT/userProfile/__init__.py
danrg/RGT-tool
115ba9a93686595699b3e182958921b3d60382b3
[ "MIT" ]
3
2015-07-05T20:49:14.000Z
2017-07-03T19:45:18.000Z
src/RGT/userProfile/__init__.py
danrg/RGT-tool
115ba9a93686595699b3e182958921b3d60382b3
[ "MIT" ]
1
2021-03-23T14:01:22.000Z
2021-03-23T14:01:22.000Z
from views import displayUserProfile
18.5
36
0.891892
0
0
0
0
0
0
0
0
0
0
30d65ba961b4012c418911d00c91a40240451543
5,409
py
Python
IEEE-ASHRAE_kernel/01_data_minify.py
Daniel1586/Initiative_Kaggle
945e0a2ebe94aa7ee3ed59dd0de53d9a1b82aa05
[ "MIT" ]
1
2019-08-12T14:28:22.000Z
2019-08-12T14:28:22.000Z
IEEE-ASHRAE_kernel/01_data_minify.py
Daniel1586/Initiative_Kaggle
945e0a2ebe94aa7ee3ed59dd0de53d9a1b82aa05
[ "MIT" ]
null
null
null
IEEE-ASHRAE_kernel/01_data_minify.py
Daniel1586/Initiative_Kaggle
945e0a2ebe94aa7ee3ed59dd0de53d9a1b82aa05
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ (https://www.kaggle.com/c/ashrae-energy-prediction). Train shape:(590540,394),identity(144233,41)--isFraud 3.5% Test shape:(506691,393),identity(141907,41) ############### TF Version: 1.13.1/Python Version: 3.7 ############### """ import os import math import random impo...
41.290076
95
0.612683
0
0
0
0
0
0
0
0
1,718
0.306621
30d759a40bbb943fa4065bfc1dc4dff7a8c4a0fa
8,774
py
Python
src/optim/DeepSAD_trainer.py
wych1005/Deep-SAD-PyTorch
af93186a38ed30985dc155d1b00b90aa181cfe0b
[ "MIT" ]
null
null
null
src/optim/DeepSAD_trainer.py
wych1005/Deep-SAD-PyTorch
af93186a38ed30985dc155d1b00b90aa181cfe0b
[ "MIT" ]
null
null
null
src/optim/DeepSAD_trainer.py
wych1005/Deep-SAD-PyTorch
af93186a38ed30985dc155d1b00b90aa181cfe0b
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from base.base_trainer import BaseTrainer from base.base_dataset import BaseADDataset from base.base_net import BaseNet import seaborn as sns from torch.utils.data.dataloader import DataLoader from sklearn.metrics import roc_auc_score, confusion_matrix, average_precision_score, roc_curve...
39.345291
119
0.574652
8,339
0.950422
0
0
0
0
0
0
1,587
0.180875
30d9462a88c0ebc7b1a28e773898227835681362
1,430
py
Python
covidxpert/utils/__init__.py
LucaCappelletti94/covidxpert
8adda25f3d6fb648607c0f8af7d3ff54b42c59fb
[ "MIT" ]
2
2020-05-22T12:50:11.000Z
2021-03-12T01:00:17.000Z
covidxpert/utils/__init__.py
LucaCappelletti94/covidxpert
8adda25f3d6fb648607c0f8af7d3ff54b42c59fb
[ "MIT" ]
6
2020-05-27T19:03:15.000Z
2021-03-02T11:12:06.000Z
covidxpert/utils/__init__.py
LucaCappelletti94/covidxpert
8adda25f3d6fb648607c0f8af7d3ff54b42c59fb
[ "MIT" ]
1
2020-05-27T07:21:02.000Z
2020-05-27T07:21:02.000Z
from .load_image import load_image from .normalize_image import normalize_image from .remove_artefacts import remove_artefacts, fill_small_white_blobs, fill_small_black_blobs from .padding import trim_padding, add_padding from .inpaint import inpaint from .darken import darken from .difference_of_gaussians_pyramid impo...
31.086957
94
0.79021
0
0
0
0
0
0
0
0
406
0.283916
30d9946316ecfd307f0f761701c4aed9a868f4ca
625
py
Python
proxy/python/proxy_client.py
koonchen/awesome-design-patterns
53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1
[ "MIT" ]
5
2018-10-19T15:30:00.000Z
2018-11-30T06:02:12.000Z
proxy/python/proxy_client.py
koonchen/awesome-design-patterns
53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1
[ "MIT" ]
null
null
null
proxy/python/proxy_client.py
koonchen/awesome-design-patterns
53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1
[ "MIT" ]
2
2018-10-19T15:30:08.000Z
2019-02-20T15:28:38.000Z
#!/usr/bin/env python # coding:utf8 # @Date : 2018/8/27 # @Author : Koon # @Link : chenzeping.com # When I wrote this, only God and I understood what I was doing. Now, God only knows. class Subject(object): def request(self): print("Subject instance has been created") class RealSubject(Subject): ...
20.833333
85
0.6544
343
0.5488
0
0
0
0
0
0
269
0.4304
30dd9689a3bf67ed453ecd720684aa2b2390bfa6
4,680
py
Python
authors/apps/articles/tests/test_like_comments.py
andela/ah-codeofduty
ab749037dbb08712a2e47848e31a1ccb14de1165
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/tests/test_like_comments.py
andela/ah-codeofduty
ab749037dbb08712a2e47848e31a1ccb14de1165
[ "BSD-3-Clause" ]
41
2018-10-23T08:45:43.000Z
2022-03-11T23:34:18.000Z
authors/apps/articles/tests/test_like_comments.py
andela/ah-codeofduty
ab749037dbb08712a2e47848e31a1ccb14de1165
[ "BSD-3-Clause" ]
3
2020-05-01T16:21:13.000Z
2021-05-11T08:25:11.000Z
from .base import BaseTest from authors.apps.articles.models import Article from rest_framework.views import status import json class CommentsLikeDislikeTestCase(BaseTest): """test class for liking and disliking comments """ def create_article(self, token, article): """ Method to create an article"""...
47.272727
103
0.640385
4,549
0.972009
0
0
0
0
0
0
826
0.176496
30de8aa4ae6150e3acdc0398071ec1e1b7a6910b
1,577
py
Python
server.py
rikuru-to865/Voyeur-with-python
104d61e189912134f38463842a0ee0834dd31129
[ "MIT" ]
null
null
null
server.py
rikuru-to865/Voyeur-with-python
104d61e189912134f38463842a0ee0834dd31129
[ "MIT" ]
null
null
null
server.py
rikuru-to865/Voyeur-with-python
104d61e189912134f38463842a0ee0834dd31129
[ "MIT" ]
null
null
null
import socket import numpy import cv2 import threading import os BUFFER_SIZE = 4096*10 currentPort = 50001 buf = b'' class capture(): def __init__(self,port): self.port = port def recive(self): global buf with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as s: while T...
26.728814
67
0.496512
824
0.522511
0
0
0
0
0
0
91
0.057705
30deb57c91134b9206c1ecfd63be99c7504cefa8
565
py
Python
machina/apps/forum/receivers.py
BrendaH/django-machina
c75b6f39f61ca92745aebb0bb6ab3c707d88063d
[ "BSD-3-Clause" ]
572
2015-04-10T06:15:43.000Z
2022-03-30T06:40:25.000Z
machina/apps/forum/receivers.py
BrendaH/django-machina
c75b6f39f61ca92745aebb0bb6ab3c707d88063d
[ "BSD-3-Clause" ]
241
2015-10-26T22:23:59.000Z
2022-03-25T12:30:56.000Z
machina/apps/forum/receivers.py
BrendaH/django-machina
c75b6f39f61ca92745aebb0bb6ab3c707d88063d
[ "BSD-3-Clause" ]
156
2015-10-02T19:32:08.000Z
2022-03-30T06:40:11.000Z
""" Forum signal receivers ====================== This module defines signal receivers. """ from django.db.models import F from django.dispatch import receiver from machina.apps.forum.signals import forum_viewed @receiver(forum_viewed) def update_forum_redirects_counter(sender, forum, user, request, r...
26.904762
89
0.707965
0
0
0
0
334
0.59115
0
0
212
0.375221
30df28d88d0e3028115d06d1db6c4ac57bd2c0df
185
py
Python
Google Kickstart/2019/Round C/circuit_board.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
Google Kickstart/2019/Round C/circuit_board.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
Google Kickstart/2019/Round C/circuit_board.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
for t in range(int(input())): r,c,k = map(int , input().split()) circuit_board = [] for i in range(r): circuit_board.append(list(map(int,input().split())))
26.428571
60
0.551351
0
0
0
0
0
0
0
0
0
0
30e0d9aba329cb35b870099915a7b244906f7302
1,978
py
Python
lcm/lcm/nf/serializers/lccn_filter_data.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
1
2019-04-02T03:15:20.000Z
2019-04-02T03:15:20.000Z
lcm/lcm/nf/serializers/lccn_filter_data.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
null
null
null
lcm/lcm/nf/serializers/lccn_filter_data.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
1
2021-10-15T15:26:47.000Z
2021-10-15T15:26:47.000Z
# Copyright (C) 2018 Verizon. 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 ...
46
91
0.761375
1,166
0.589484
0
0
0
0
0
0
929
0.469666
30e38abbdfe5ba2eb3dbe185a3fb1b8a9ce8a9b5
2,213
py
Python
treeNodeTravelThrewTreeNodes.py
GehartM/german-text-watermarking
f9765702225e0cfdce868eec816ed6e6fd4ffc63
[ "MIT" ]
1
2021-04-08T11:23:46.000Z
2021-04-08T11:23:46.000Z
treeNodeTravelThrewTreeNodes.py
GehartM/german-text-watermarking
f9765702225e0cfdce868eec816ed6e6fd4ffc63
[ "MIT" ]
null
null
null
treeNodeTravelThrewTreeNodes.py
GehartM/german-text-watermarking
f9765702225e0cfdce868eec816ed6e6fd4ffc63
[ "MIT" ]
null
null
null
def TravelThrewTreeNodes(currentTreeNode, leftDirections, encodedSign): # Überprüfung, ob die letzte Stelle erreicht wurde. Sollte dies nicht der Fall sein so wird weiter durch den # Baum navigiert if not len(leftDirections) == 1: # Speicherung der nächsten Richtung nextDirection = left...
49.177778
119
0.685043
0
0
0
0
0
0
0
0
1,007
0.451772
30e55d7e04ab513adf991395e8e91f97eaca5c02
5,633
py
Python
jarvis/resume/skillset.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
1
2019-01-03T06:10:04.000Z
2019-01-03T06:10:04.000Z
jarvis/resume/skillset.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
1
2021-03-31T19:11:52.000Z
2021-03-31T19:11:52.000Z
jarvis/resume/skillset.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
null
null
null
skills_list = [ "actionscript", "ado.net", "ajax", "akka", "algorithm", "amazon-ec2", "amazon-s3", "amazon-web-services", "android", "angular", "angularjs", "ansible", "ant", "apache", "apache-camel", "apache-kafka", "apache-poi", "apache-spark", ...
15.867606
32
0.480916
0
0
0
0
0
0
0
0
3,486
0.618853
30e8e22ed734b9dbbb1ecdf7de1dcc755608c15e
40
py
Python
5.3_HANDLER/handler_module.py
pedroMoya/alaska_2_share
a5f958da45b97e8c8cdc0b868e4447dbc500c6f9
[ "MIT" ]
2
2020-06-02T18:39:45.000Z
2021-01-01T19:17:15.000Z
5.3_HANDLER/handler_module.py
pedroMoya/alaska_2_share
a5f958da45b97e8c8cdc0b868e4447dbc500c6f9
[ "MIT" ]
1
2021-01-01T19:17:08.000Z
2021-03-19T00:10:52.000Z
5.3_HANDLER/handler_module.py
pedroMoya/alaska_2_share
a5f958da45b97e8c8cdc0b868e4447dbc500c6f9
[ "MIT" ]
1
2021-01-01T19:17:17.000Z
2021-01-01T19:17:17.000Z
# handler module centralize the control
20
39
0.825
0
0
0
0
0
0
0
0
39
0.975
30ea17aa8e12d9e828b613b0ece0e52f6bb41391
313
py
Python
external/lfp_tools.py
dmartin35/pronosfoot
861ae091fbb65684d00ae8c5ff3726eeaa306ed7
[ "MIT" ]
4
2017-07-09T21:18:18.000Z
2022-02-16T13:05:10.000Z
external/lfp_tools.py
dmartin35/pronosfoot
861ae091fbb65684d00ae8c5ff3726eeaa306ed7
[ "MIT" ]
2
2020-01-16T14:21:42.000Z
2021-03-02T18:34:15.000Z
external/lfp_tools.py
dmartin35/pronosfoot
861ae091fbb65684d00ae8c5ff3726eeaa306ed7
[ "MIT" ]
null
null
null
def escape_team_names(mystr): """ temporary fix for solving ? characters in bad team names encoding from LFP's ICS calendar """ mystr = mystr.replace('N?MES','NÎMES') mystr = mystr.replace('SAINT-?TIENNE','SAINT-ÉTIENNE') mystr = mystr.replace('H?RAULT', 'HÉRAULT') return mystr
26.083333
69
0.654952
0
0
0
0
0
0
0
0
174
0.550633
30eaa9dd3051eaa994ef4cd89b26f3deca2ee553
6,054
py
Python
startup/users/30-user-chen_xpcs.py
NSLS-II-SMI/profile_collection
c1e2236a7520f605ac85e7591f05682add06357c
[ "BSD-3-Clause" ]
null
null
null
startup/users/30-user-chen_xpcs.py
NSLS-II-SMI/profile_collection
c1e2236a7520f605ac85e7591f05682add06357c
[ "BSD-3-Clause" ]
13
2018-09-25T19:35:08.000Z
2021-01-15T20:42:26.000Z
startup/users/30-user-chen_xpcs.py
NSLS-II-SMI/profile_collection
c1e2236a7520f605ac85e7591f05682add06357c
[ "BSD-3-Clause" ]
3
2019-09-06T01:40:59.000Z
2020-07-01T20:27:39.000Z
def grid_scan_xpcs(): folder = "301000_Chen34" xs = np.linspace(-9350, -9150, 2) ys = np.linspace(1220, 1420, 2) names=['PSBMA5_200um_grid'] energies = [2450, 2472, 2476, 2490] x_off = [0, 60, 0, 60] y_off = [0, 0, 60, 60] xxs, yys = np.meshgrid(xs, ys)...
33.633333
146
0.521143
0
0
6,014
0.993393
0
0
0
0
796
0.131483
30efd3e520d72e743da6e55444a12e5dda1b5179
199
py
Python
sdipylib/plot.py
sdrdl/sdipylib
197a6c434d2b34a52e6544973407e92f3561727a
[ "BSD-2-Clause" ]
null
null
null
sdipylib/plot.py
sdrdl/sdipylib
197a6c434d2b34a52e6544973407e92f3561727a
[ "BSD-2-Clause" ]
null
null
null
sdipylib/plot.py
sdrdl/sdipylib
197a6c434d2b34a52e6544973407e92f3561727a
[ "BSD-2-Clause" ]
null
null
null
"""Plotting support""" def source_attribution(ax, text ): ax.text(0, -.05, text, fontsize=14, horizontalalignment='left', verticalalignment='top', transform=ax.transAxes)
33.166667
64
0.643216
0
0
0
0
0
0
0
0
33
0.165829
30f29e0855bb09fb75ab5994617d326c1d54e876
9,298
py
Python
hl7tools.py
cdgramos/Sublime-Text-3---HL7-Plug-In
b4b821f272460fa970c019c261ded552c724fee7
[ "MIT" ]
8
2018-03-01T14:38:01.000Z
2020-02-28T22:41:34.000Z
hl7tools.py
cdgramos/Sublime-Text-3---HL7-Plug-In
b4b821f272460fa970c019c261ded552c724fee7
[ "MIT" ]
19
2018-04-13T21:13:08.000Z
2021-09-02T22:48:53.000Z
hl7tools.py
cdgramos/Sublime-Text-3---HL7-Plug-In
b4b821f272460fa970c019c261ded552c724fee7
[ "MIT" ]
1
2020-05-18T21:43:46.000Z
2020-05-18T21:43:46.000Z
import sublime import sublime_plugin import re import webbrowser from .lib.hl7Event import * from .lib.hl7Segment import * from .lib.hl7TextUtils import * hl7EventList = hl7Event("","") hl7EventList = hl7EventList.loadEventList() hl7SegmentList = hl7Segment("","") hl7SegmentList = hl7SegmentList.loadSegmentList() S...
26.490028
120
0.61766
8,687
0.934287
0
0
0
0
0
0
1,994
0.214455
30f2d2c111d6644e79246c0c70b3eff7c89f77de
218
py
Python
leetcode/hard/1203.py
phantomnat/python-learning
addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a
[ "MIT" ]
null
null
null
leetcode/hard/1203.py
phantomnat/python-learning
addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a
[ "MIT" ]
null
null
null
leetcode/hard/1203.py
phantomnat/python-learning
addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/ # graph, dfs class Solution: def sortItems(self, n: int, m: int, group: List[int], beforeItems: List[List[int]]) -> List[int]:
36.333333
101
0.683486
117
0.536697
0
0
0
0
0
0
89
0.408257
30f2e9dc143ed93952cacd555538c812b12a36a2
8,220
py
Python
gen_data/yolo_label.py
KevinLADLee/CARLA_INVS
b23249500ffbafdb312a71d17b0dfef4191672f0
[ "MIT" ]
null
null
null
gen_data/yolo_label.py
KevinLADLee/CARLA_INVS
b23249500ffbafdb312a71d17b0dfef4191672f0
[ "MIT" ]
null
null
null
gen_data/yolo_label.py
KevinLADLee/CARLA_INVS
b23249500ffbafdb312a71d17b0dfef4191672f0
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import time import cv2 import glob import sys from pathlib import Path import numpy as np import pandas as pd import yaml from multiprocessing.dummy import Pool as ThreadPool sys.path.append(Path(__file__).resolve().parent.parent.as_posix()) # repo path sys.path.append(Path(__file...
40.895522
123
0.550243
5,443
0.662165
0
0
0
0
0
0
2,019
0.24562
30f35ff68fe1eac3b585ba8e3b6bf7e40042a3c9
3,004
py
Python
tr/acs_config_test.py
DentonGentry/gfiber-catawampus
b01e4444f3c7f12b1af7837203b37060fd443bb7
[ "Apache-2.0" ]
2
2017-10-03T16:06:29.000Z
2020-09-08T13:03:13.000Z
tr/acs_config_test.py
DentonGentry/gfiber-catawampus
b01e4444f3c7f12b1af7837203b37060fd443bb7
[ "Apache-2.0" ]
null
null
null
tr/acs_config_test.py
DentonGentry/gfiber-catawampus
b01e4444f3c7f12b1af7837203b37060fd443bb7
[ "Apache-2.0" ]
1
2017-05-07T17:39:02.000Z
2017-05-07T17:39:02.000Z
#!/usr/bin/python # Copyright 2011 Google 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 appli...
31.957447
78
0.734687
1,989
0.662117
0
0
0
0
0
0
1,097
0.36518
30f370fe717239a2c55137458132ce5868ea35e1
337
py
Python
enema/crypto.py
kjczarne/enema
6ac59cb13663f924574846d2558f27e0bb41a92d
[ "MIT" ]
null
null
null
enema/crypto.py
kjczarne/enema
6ac59cb13663f924574846d2558f27e0bb41a92d
[ "MIT" ]
null
null
null
enema/crypto.py
kjczarne/enema
6ac59cb13663f924574846d2558f27e0bb41a92d
[ "MIT" ]
null
null
null
import os from cryptography.fernet import Fernet def encrypt_password(password: str, key): f = Fernet(key) return str(f.encrypt(bytes(password, 'utf-8')), 'utf-8') def decrypt_password(password: str, key): f = Fernet(key) return str(f.decrypt(bytes(password, 'utf-8')), 'utf-8') KEY = os.environ.ge...
22.466667
60
0.68546
0
0
0
0
0
0
0
0
42
0.124629
30f3cfcf7af0bb5923bab6a38ac6e979bd553f2b
275
py
Python
sphinxcontrib/__init__.py
nikicc/anaconda-recipes
9c611a5854bf41bbc5e7ed9853dc71c0851a62ef
[ "BSD-3-Clause" ]
130
2015-07-28T03:41:21.000Z
2022-03-16T03:07:41.000Z
sphinxcontrib/__init__.py
nikicc/anaconda-recipes
9c611a5854bf41bbc5e7ed9853dc71c0851a62ef
[ "BSD-3-Clause" ]
147
2017-08-13T04:31:27.000Z
2022-03-07T11:22:23.000Z
sphinxcontrib/__init__.py
nikicc/anaconda-recipes
9c611a5854bf41bbc5e7ed9853dc71c0851a62ef
[ "BSD-3-Clause" ]
72
2015-07-29T02:35:56.000Z
2022-02-26T14:31:15.000Z
# This empty file makes the sphinxcontrib namespace package work. # It is the only file included in the 'sphinxcontrib' conda package. # Conda packages which use the sphinxcontrib namespace do not include # this file, but depend on the 'sphinxcontrib' conda package instead.
55
69
0.796364
0
0
0
0
0
0
0
0
271
0.985455
30f3fff33de30496fe028fef08f8b083e40facf8
2,941
py
Python
src/tests/integration/api_test_client.py
doitintl/elastic-event-store
ad00f1fbecf430432c306d5917984d9f9ff522f4
[ "MIT" ]
22
2021-02-02T17:11:55.000Z
2021-12-19T15:00:26.000Z
src/tests/integration/api_test_client.py
vladikk/elastic-event-store
ad00f1fbecf430432c306d5917984d9f9ff522f4
[ "MIT" ]
8
2021-02-04T19:21:25.000Z
2021-02-08T07:48:06.000Z
src/tests/integration/api_test_client.py
vladikk/elastic-event-store
ad00f1fbecf430432c306d5917984d9f9ff522f4
[ "MIT" ]
4
2021-02-02T16:58:26.000Z
2021-07-17T04:17:43.000Z
import boto3 import os import requests class ApiTestClient(): api_endpoint: str some_metadata = { 'timestamp': '123123', 'command_id': '456346234', 'issued_by': 'test@test.com' } some_events = [ { "type": "init", "foo": "bar" }, { "type": "update", "foo": ...
35.865854
148
0.615097
2,900
0.986059
0
0
0
0
0
0
822
0.279497
30f4b65b22ebdf31ffa7df998fa1124ad1b7b169
4,076
py
Python
openstack_dashboard/dashboards/project/connections/reachability_tests/bcf_testpath_api.py
xinwu/horizon
0e984a2c75d253dd35ab92e7926021b82d730b26
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/connections/reachability_tests/bcf_testpath_api.py
xinwu/horizon
0e984a2c75d253dd35ab92e7926021b82d730b26
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/connections/reachability_tests/bcf_testpath_api.py
xinwu/horizon
0e984a2c75d253dd35ab92e7926021b82d730b26
[ "Apache-2.0" ]
null
null
null
import eventlet import json import rest_lib import urllib import logging as log from openstack_dashboard.dashboards.project.connections import bsn_api eventlet.monkey_patch() URL_TEST_PATH = ('applications/bcf/test/path/controller-view' '[src-tenant=\"%(src-tenant)s\"]' '[src-segment...
36.720721
79
0.531894
3,643
0.893768
0
0
1,422
0.348871
0
0
643
0.157753
30f4e2ae84a31284f08d9dd4f970283a7dda20d5
40,407
py
Python
pysnmp_mibs/ROHC-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
6
2017-04-21T13:48:08.000Z
2022-01-06T19:42:52.000Z
pysnmp_mibs/ROHC-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
1
2020-05-05T16:42:25.000Z
2020-05-05T16:42:25.000Z
pysnmp_mibs/ROHC-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
6
2020-02-08T20:28:49.000Z
2021-09-14T13:36:46.000Z
# # PySNMP MIB module ROHC-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/ROHC-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:27:00 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52) # ( Integer, O...
246.384146
3,124
0.740144
400
0.009899
0
0
0
0
0
0
23,699
0.586507
30f632315bf80a25755270e8635ee48d72de5b33
3,085
py
Python
features/tests/features/generators/test_datetime.py
daobook/autogluon
7309118f2ab1c9519f25acf61a283a95af95842b
[ "Apache-2.0" ]
1
2022-02-19T13:22:26.000Z
2022-02-19T13:22:26.000Z
features/tests/features/generators/test_datetime.py
daobook/autogluon
7309118f2ab1c9519f25acf61a283a95af95842b
[ "Apache-2.0" ]
3
2021-12-30T20:28:01.000Z
2022-02-09T20:19:21.000Z
features/tests/features/generators/test_datetime.py
daobook/autogluon
7309118f2ab1c9519f25acf61a283a95af95842b
[ "Apache-2.0" ]
null
null
null
from autogluon.features.generators import DatetimeFeatureGenerator def test_datetime_feature_generator(generator_helper, data_helper): # Given input_data = data_helper.generate_multi_feature_full() generator_1 = DatetimeFeatureGenerator() generator_2 = DatetimeFeatureGenerator(features = ['hour']) ...
32.135417
101
0.67812
0
0
0
0
0
0
0
0
743
0.240843
30f6d4afaaa493162b41239409c7176bc51a45d0
2,785
py
Python
validation/synthetic_promoters.py
umarov90/DeepREFind
c3b24b760f3829ea8ed6ba6ed7db76cf90c45a9e
[ "Apache-2.0" ]
1
2022-03-16T07:39:10.000Z
2022-03-16T07:39:10.000Z
validation/synthetic_promoters.py
umarov90/DeepREFind
c3b24b760f3829ea8ed6ba6ed7db76cf90c45a9e
[ "Apache-2.0" ]
2
2021-11-04T14:58:52.000Z
2022-02-11T04:28:32.000Z
validation/synthetic_promoters.py
umarov90/ReFeaFi
c3b24b760f3829ea8ed6ba6ed7db76cf90c45a9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0" import common as cm import tensorflow as tf import numpy as np import math from scipy import stats from Bio.Seq import Seq half_size = 500 batch_size = 128 scan_step = 1 seq_len = 1001 out = [] os.chdi...
39.785714
111
0.596409
0
0
0
0
0
0
0
0
420
0.150808
30f7b5fce84c80a74ad5a056cdaf77b75b688b7c
740
py
Python
tests/test_index.py
cxan96/strong-but-simple-passwords
c7242f870a2968bd40eceb97b163b4ae307cb84c
[ "MIT" ]
2
2021-04-04T03:44:16.000Z
2021-06-04T13:50:29.000Z
tests/test_index.py
cxan96/strong-but-simple-passwords
c7242f870a2968bd40eceb97b163b4ae307cb84c
[ "MIT" ]
null
null
null
tests/test_index.py
cxan96/strong-but-simple-passwords
c7242f870a2968bd40eceb97b163b4ae307cb84c
[ "MIT" ]
1
2021-08-28T03:35:36.000Z
2021-08-28T03:35:36.000Z
from strong_but_simple_passwords import views def test_index_http_ok(client): response = client.get("/") assert response.status_code == 200 def test_empty_post(monkeypatch, client): a_random_sentence = "A random sentence." monkeypatch.setattr(views, "get_random_sentence", lambda: a_random_sentence) ...
28.461538
84
0.736486
0
0
0
0
0
0
0
0
147
0.198649
30f85e513a4285e63e608e0444128184121a5ac0
865
py
Python
dojos/lendico/sinais.py
ramalho/tdd-com-pytest
edae805ddf2267d8e08eea6ab344242217f52043
[ "BSD-3-Clause" ]
15
2018-05-25T16:17:08.000Z
2020-04-02T21:39:41.000Z
dojos/lendico/sinais.py
ramalho/tdd-com-pytest
edae805ddf2267d8e08eea6ab344242217f52043
[ "BSD-3-Clause" ]
null
null
null
dojos/lendico/sinais.py
ramalho/tdd-com-pytest
edae805ddf2267d8e08eea6ab344242217f52043
[ "BSD-3-Clause" ]
1
2021-04-19T21:27:17.000Z
2021-04-19T21:27:17.000Z
#!/usr/bin/env python3 import sys def search(query, data): query = query.replace('-',' ') words = set(query.upper().split()) for code, char, name in data: name = name.replace('-',' ') if words <= set(name.split()): yield f'{code}\t{char}\t{name}' def reader(): with open('U...
23.378378
65
0.543353
0
0
460
0.531792
0
0
0
0
148
0.171098
30f86263cd9609adb5d7644c7670d39fe1c0be15
6,154
py
Python
bms_2/app01/views.py
luyl1017713252/python
3b30cffa85b625e512415fa882b4bc7708a5e0b8
[ "MulanPSL-1.0" ]
null
null
null
bms_2/app01/views.py
luyl1017713252/python
3b30cffa85b625e512415fa882b4bc7708a5e0b8
[ "MulanPSL-1.0" ]
null
null
null
bms_2/app01/views.py
luyl1017713252/python
3b30cffa85b625e512415fa882b4bc7708a5e0b8
[ "MulanPSL-1.0" ]
null
null
null
import json from django.shortcuts import render, redirect, HttpResponse # Create your views here. from django.urls import reverse from app01 import models from app01.models import Book, Publish, Author, AuthorDetail def books(request): book_list = Book.objects.all() publish_list = Publish.objects.all() ...
35.165714
124
0.647221
0
0
0
0
0
0
0
0
945
0.153559
30fcb43dd0f69d332ab19924f865fff8aca3d2e2
3,642
py
Python
chatbot/scripts/interactive_slack.py
check-spelling/learning
a3b031cf8fe766ad97e023ec1f3177389778853b
[ "Apache-2.0" ]
2
2021-08-24T05:20:48.000Z
2021-09-30T18:03:46.000Z
chatbot/scripts/interactive_slack.py
check-spelling/learning
a3b031cf8fe766ad97e023ec1f3177389778853b
[ "Apache-2.0" ]
null
null
null
chatbot/scripts/interactive_slack.py
check-spelling/learning
a3b031cf8fe766ad97e023ec1f3177389778853b
[ "Apache-2.0" ]
3
2021-07-24T23:19:45.000Z
2021-12-27T04:20:45.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. """ Talk with a model using a Slack channel. # Examples ```shell parlai interactive_slack --token xoxb-... --task blend...
33.412844
155
0.7095
182
0.049973
0
0
1,586
0.435475
1,299
0.356672
1,605
0.440692
30fd7f4d4cd4681834c31425f77246c6aabccc27
2,542
py
Python
plywood/plugins/include.py
colinta/plywood
49cf98f198da302ec66e11338320c6b72b642ffa
[ "BSD-2-Clause-FreeBSD" ]
1
2015-06-11T06:17:42.000Z
2015-06-11T06:17:42.000Z
plywood/plugins/include.py
colinta/plywood
49cf98f198da302ec66e11338320c6b72b642ffa
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
plywood/plugins/include.py
colinta/plywood
49cf98f198da302ec66e11338320c6b72b642ffa
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
''' Includes content from another template. If you assign any keyword arguments, those will be available in the scope of that template. ''' import os from plywood import Plywood from plywood.values import PlywoodValue from plywood.exceptions import InvalidArguments from plywood.env import PlywoodEnv @PlywoodEnv.reg...
31
95
0.611723
0
0
0
0
2,233
0.878442
0
0
439
0.172699
30fe3ede542736245b717c523c0b5b49831e3733
1,178
py
Python
m3uragen/m3u.py
TiBeN/m3uragen
45f6f7c76c7a345d01f43a152f1f815a9891441f
[ "Apache-2.0" ]
1
2020-12-19T09:18:13.000Z
2020-12-19T09:18:13.000Z
m3uragen/m3u.py
TiBeN/m3uragen
45f6f7c76c7a345d01f43a152f1f815a9891441f
[ "Apache-2.0" ]
1
2021-10-22T00:38:17.000Z
2021-12-15T13:48:18.000Z
m3uragen/m3u.py
TiBeN/m3uragen
45f6f7c76c7a345d01f43a152f1f815a9891441f
[ "Apache-2.0" ]
null
null
null
"""Handle M3U files generation""" import os import logging def generate(software, out_dir, suffix, dry_run): """Generate M3U file for the given software into out_dir""" m3u_filename = software.name + (suffix if suffix else '') + '.m3u' if not dry_run: m3u_fd = open(os.path.join(out_dir, m3u_file...
31
79
0.633277
0
0
0
0
0
0
0
0
246
0.208829
a5001932f04ab10d0bb10446b772ad4ac5a29053
860
py
Python
Dataset/Leetcode/train/46/7.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/46/7.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/46/7.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution(object): def XXXUnique(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ if not nums: return [] nums.sort() n = len(nums) visited = [0] * n res = [] def helper1(temp_list, length): # if length == n and temp_list not in res: ...
23.888889
79
0.561628
858
0.997674
0
0
0
0
0
0
165
0.19186
a500ed1e01eb7264848c0ee426a0677826902113
7,635
py
Python
tests/test_uvscli.py
kouritron/uvs
42a4241445360fd64fc09f39fb9a4b5e596d622c
[ "BSD-3-Clause" ]
null
null
null
tests/test_uvscli.py
kouritron/uvs
42a4241445360fd64fc09f39fb9a4b5e596d622c
[ "BSD-3-Clause" ]
null
null
null
tests/test_uvscli.py
kouritron/uvs
42a4241445360fd64fc09f39fb9a4b5e596d622c
[ "BSD-3-Clause" ]
null
null
null
import os import sys import shutil import io # if you got module not found errors, uncomment these. PyCharm IDE does not need it. # get the abs version of . and .. and append them to this process's path. sys.path.append(os.path.abspath('..')) sys.path.append(os.path.abspath('.')) #print sys.path import unittest ...
31.549587
117
0.62816
7,153
0.93687
0
0
2,353
0.308186
0
0
2,923
0.382842
a5011c8dc68549aa930d5e1f66b7f91d841322f1
388
py
Python
segundos.py
rafabentoss/courses
ced3f5447dea38220b904678c601ed2bf7f2b0f1
[ "CC0-1.0" ]
null
null
null
segundos.py
rafabentoss/courses
ced3f5447dea38220b904678c601ed2bf7f2b0f1
[ "CC0-1.0" ]
null
null
null
segundos.py
rafabentoss/courses
ced3f5447dea38220b904678c601ed2bf7f2b0f1
[ "CC0-1.0" ]
null
null
null
segundos_str = int(input("Por favor, entre com o número de segundos que deseja converter:")) dias=segundos_str//86400 segs_restantes1=segundos_str%86400 horas=segs_restantes1//3600 segs_restantes2=segs_restantes1%3600 minutos=segs_restantes2//60 segs_restantes_final=segs_restantes2%60 print(dias,"dias,",hora...
38.8
93
0.796392
0
0
0
0
0
0
0
0
103
0.264781
a50155ac15b87a1b73c7f2ca4058bdf66488534d
1,323
py
Python
examples/cheb/example_dft.py
Hadrien-Montanelli/chebpy
c22f1f13b42b3c80f2e34be6e7136ef2d0277971
[ "MIT" ]
1
2020-12-02T10:17:26.000Z
2020-12-02T10:17:26.000Z
examples/cheb/example_dft.py
Hadrien-Montanelli/chebpy
c22f1f13b42b3c80f2e34be6e7136ef2d0277971
[ "MIT" ]
null
null
null
examples/cheb/example_dft.py
Hadrien-Montanelli/chebpy
c22f1f13b42b3c80f2e34be6e7136ef2d0277971
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 2 15:37:10 2020 Copyright 2020 by Hadrien Montanelli. """ # %% Imports. # Standard library imports: import numpy as np # Chebpy imports: from chebpy.cheb import chebpts, coeffs2vals, vals2coeffs # %% Transforms (1D) on [-1,1]. f = lambda x: np....
23.625
57
0.619803
0
0
0
0
0
0
0
0
488
0.368859
a501d89e850c922d43a99061a0daa6321c93954a
870
py
Python
src/balloons.py
cloudzfy/pychallenge
1af98a632021532e136721d282b0e7c2cbc519a3
[ "MIT" ]
3
2016-07-23T03:31:46.000Z
2019-08-22T01:23:07.000Z
src/balloons.py
cloudzfy/pychallenge
1af98a632021532e136721d282b0e7c2cbc519a3
[ "MIT" ]
null
null
null
src/balloons.py
cloudzfy/pychallenge
1af98a632021532e136721d282b0e7c2cbc519a3
[ "MIT" ]
3
2017-05-22T09:41:20.000Z
2018-09-06T02:05:19.000Z
import urllib import StringIO import gzip from difflib import Differ from binascii import unhexlify import Image src = urllib.urlopen('http://huge:file@www.pythonchallenge.com/pc/return/deltas.gz').read() file = gzip.GzipFile(fileobj=StringIO.StringIO(src)) left = [] right = [] for line in file.readlines(): left.ap...
24.166667
91
0.654023
0
0
0
0
0
0
0
0
110
0.126437