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
aa063c8fe24a2414d08f79391cfa01c347db328a
655
py
Python
sitewebapp/migrations/0014_auto_20210130_0425.py
deucaleon18/debsoc-nitdgp-website
41bd6ade7f4af143ef34aff01848f830cc533add
[ "MIT" ]
2
2020-12-05T05:34:56.000Z
2020-12-09T10:27:43.000Z
sitewebapp/migrations/0014_auto_20210130_0425.py
deucaleon18/debsoc-nitdgp-website
41bd6ade7f4af143ef34aff01848f830cc533add
[ "MIT" ]
3
2021-06-28T16:47:23.000Z
2021-06-28T16:48:51.000Z
sitewebapp/migrations/0014_auto_20210130_0425.py
deucaleon18/debsoc-nitdgp-website
41bd6ade7f4af143ef34aff01848f830cc533add
[ "MIT" ]
9
2021-01-29T17:06:30.000Z
2021-08-21T18:23:26.000Z
# Generated by Django 2.2.15 on 2021-01-29 22:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('sitewebapp', '0013_auto_20210130_0409'), ] operations = [ migrations.RemoveField( model_name='...
27.291667
159
0.638168
528
0.806107
0
0
0
0
0
0
174
0.265649
aa071d641c21c8126205d398a23afa6631e2eb94
1,144
py
Python
tests/micropython/heapalloc_exc_compressed.py
andihoff98/micropython
b0ef4364db9a75f761adf07c0f300cb0704fdf19
[ "MIT" ]
2
2022-03-10T03:17:48.000Z
2022-03-10T03:17:58.000Z
tests/micropython/heapalloc_exc_compressed.py
andihoff98/micropython
b0ef4364db9a75f761adf07c0f300cb0704fdf19
[ "MIT" ]
19
2022-01-31T20:43:43.000Z
2022-03-30T18:26:37.000Z
tests/micropython/heapalloc_exc_compressed.py
andihoff98/micropython
b0ef4364db9a75f761adf07c0f300cb0704fdf19
[ "MIT" ]
1
2022-03-30T18:38:08.000Z
2022-03-30T18:38:08.000Z
import micropython # Tests both code paths for built-in exception raising. # mp_obj_new_exception_msg_varg (exception requires decompression at raise-time to format) # mp_obj_new_exception_msg (decompression can be deferred) # NameError uses mp_obj_new_exception_msg_varg for NameError("name '%q' isn't defined") # `ra...
24.340426
106
0.740385
0
0
0
0
0
0
0
0
659
0.576049
aa07eb294a968be138419270910fe3769b70aebc
2,464
py
Python
scripts/plot/klt_track_length.py
raphaelchang/omni_slam_eval
7df7d76c520c1325ac4f1a85f87b7af07d9628c3
[ "MIT" ]
7
2020-06-15T01:04:10.000Z
2021-12-15T03:49:05.000Z
scripts/plot/klt_track_length.py
raphaelchang/omni_slam_eval
7df7d76c520c1325ac4f1a85f87b7af07d9628c3
[ "MIT" ]
null
null
null
scripts/plot/klt_track_length.py
raphaelchang/omni_slam_eval
7df7d76c520c1325ac4f1a85f87b7af07d9628c3
[ "MIT" ]
4
2020-06-15T16:02:12.000Z
2021-10-12T07:18:47.000Z
import h5py import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas import os from parse import parse import argparse parser = argparse.ArgumentParser(description='Plot tracking evaluation results') parser.add_argument('results_path', help='tracking results file or working directory') ar...
44
243
0.590909
0
0
0
0
0
0
0
0
510
0.206981
aa081249580e88b0253e91416aa676f87663a26d
4,166
py
Python
jtlib/test_client.py
bminard/jtlib
0d3d83308bc4ed67bdf1732e5b0602eb8c48f53f
[ "BSD-2-Clause" ]
null
null
null
jtlib/test_client.py
bminard/jtlib
0d3d83308bc4ed67bdf1732e5b0602eb8c48f53f
[ "BSD-2-Clause" ]
null
null
null
jtlib/test_client.py
bminard/jtlib
0d3d83308bc4ed67bdf1732e5b0602eb8c48f53f
[ "BSD-2-Clause" ]
null
null
null
# -*-coding:Utf-8 -* #-------------------------------------------------------------------------------- # jtlib: test_client.py # # jtlib module client test code. #-------------------------------------------------------------------------------- # BSD 2-Clause License # # Copyright (c) 2018, Brian Minard # All rights r...
37.196429
97
0.694911
0
0
0
0
529
0.12698
0
0
2,611
0.62674
aa081c36750a5e0ea22144ff5ba5a1f43d5725af
3,785
py
Python
corsair/ibm/qradar/__init__.py
forkd/corsair
c854aed4b8b7f5d4b29610fc2b65881db6a0fb8f
[ "MIT" ]
7
2019-05-01T00:04:02.000Z
2019-10-04T18:22:59.000Z
corsair/ibm/qradar/__init__.py
lopes/corsair
c854aed4b8b7f5d4b29610fc2b65881db6a0fb8f
[ "MIT" ]
null
null
null
corsair/ibm/qradar/__init__.py
lopes/corsair
c854aed4b8b7f5d4b29610fc2b65881db6a0fb8f
[ "MIT" ]
3
2019-05-04T04:05:15.000Z
2020-01-20T17:29:30.000Z
import urllib.request from urllib.parse import urlencode from json import loads from socket import timeout from ssl import _create_unverified_context from corsair import * class Api(object): def __init__(self, base_url, auth, tls_verify=True): self.base_url = base_url if base_url[-1] != '/' else base_ur...
40.265957
86
0.632497
3,602
0.951651
0
0
0
0
0
0
470
0.124174
aa0908d204cc1bd792f22cb281757498ea7ff6d8
129
py
Python
coop/guide/context_processors.py
jalibras/coop
cb94560eb4a25eca3e241551e01eea6e3d4e3b6b
[ "Apache-2.0" ]
1
2017-01-16T10:51:15.000Z
2017-01-16T10:51:15.000Z
coop/guide/context_processors.py
jalibras/coop
cb94560eb4a25eca3e241551e01eea6e3d4e3b6b
[ "Apache-2.0" ]
null
null
null
coop/guide/context_processors.py
jalibras/coop
cb94560eb4a25eca3e241551e01eea6e3d4e3b6b
[ "Apache-2.0" ]
null
null
null
from guide.models import Area def nav(request): areas = Area.objects.all() return { 'areas':areas, }
11.727273
30
0.565891
0
0
0
0
0
0
0
0
7
0.054264
aa0bad3348ebb20b51fc55cdea73057560ae7c2d
1,009
py
Python
python/ccxt/async_support/bitmax.py
mariuszskon/ccxt
13253de7346e33cd384f79abf7dfb64dcbfdc35f
[ "MIT" ]
4
2021-09-24T09:18:36.000Z
2022-03-15T16:47:09.000Z
python/ccxt/async_support/bitmax.py
mariuszskon/ccxt
13253de7346e33cd384f79abf7dfb64dcbfdc35f
[ "MIT" ]
1
2017-10-28T14:35:08.000Z
2017-10-28T14:35:08.000Z
python/ccxt/async_support/bitmax.py
mariuszskon/ccxt
13253de7346e33cd384f79abf7dfb64dcbfdc35f
[ "MIT" ]
3
2018-10-17T09:29:29.000Z
2019-03-12T09:18:42.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.ascendex import ascendex class bitmax(ascendex): def describe(self): return self.deep_extend(super(b...
37.37037
126
0.557978
776
0.769078
0
0
0
0
0
0
583
0.5778
aa0beaaea8f9d9ab2689ecc5856703bdd0686fc3
1,625
py
Python
path_to_root.py
Wsoukkachang/Python
931b89d5ce5d4e07654403c3baa63ef0f2dae8b4
[ "MIT" ]
null
null
null
path_to_root.py
Wsoukkachang/Python
931b89d5ce5d4e07654403c3baa63ef0f2dae8b4
[ "MIT" ]
null
null
null
path_to_root.py
Wsoukkachang/Python
931b89d5ce5d4e07654403c3baa63ef0f2dae8b4
[ "MIT" ]
null
null
null
from queue import Queue def convert_arr_to_binary_tree(arr): """ Takes arr representing level-order traversal of Binary Tree """ index = 0 length = len(arr) if length <= 0 or arr[0] == -1: return None root = BinaryTreeNode(arr[index]) index += 1 queue = Queue() qu...
25.793651
69
0.617231
0
0
0
0
0
0
0
0
231
0.142154
aa0d8ce33a090f902ad8f14cf64f48b5d4df3194
7,232
py
Python
users/forms.py
henryyang42/NTHUOJ_web
b197ef8555aaf90cba176eba61da5c919dab7af6
[ "MIT" ]
null
null
null
users/forms.py
henryyang42/NTHUOJ_web
b197ef8555aaf90cba176eba61da5c919dab7af6
[ "MIT" ]
null
null
null
users/forms.py
henryyang42/NTHUOJ_web
b197ef8555aaf90cba176eba61da5c919dab7af6
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
39.304348
86
0.648921
5,880
0.813053
0
0
0
0
0
0
2,391
0.330614
aa0ef04e32539da4111738a97b4fb91b9adbfeb7
296
py
Python
arena/objects/line.py
syreal17/ARENA-py
84f73d09ca5bcfec5973b366784ec8385d5e156d
[ "BSD-3-Clause" ]
null
null
null
arena/objects/line.py
syreal17/ARENA-py
84f73d09ca5bcfec5973b366784ec8385d5e156d
[ "BSD-3-Clause" ]
null
null
null
arena/objects/line.py
syreal17/ARENA-py
84f73d09ca5bcfec5973b366784ec8385d5e156d
[ "BSD-3-Clause" ]
null
null
null
from .arena_object import Object from ..attributes import Position class Line(Object): """ Class for Line in the ARENA. """ def __init__(self, start=Position(0,0,0), end=Position(10,10,10), **kwargs): super().__init__(object_type="line", start=start, end=end, **kwargs)
26.909091
80
0.665541
226
0.763514
0
0
0
0
0
0
50
0.168919
aa110cd2edc58ec667902045505d003d64be93a9
1,067
py
Python
pset_challenging_ext/exercises/p18.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
5
2019-04-08T20:05:37.000Z
2019-12-04T20:48:45.000Z
pset_challenging_ext/exercises/p18.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
8
2019-04-15T15:16:05.000Z
2022-02-12T10:33:32.000Z
pset_challenging_ext/exercises/p18.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
2
2019-04-10T00:14:42.000Z
2020-02-26T20:35:21.000Z
""" A website requires the users to input username and password to register. Write a program to check the validity of password input by users. """ """Question 18 Level 3 Question: A website requires the users to input username and password to register. Write a program to check the validity of password input by users. ...
42.68
199
0.776007
0
0
0
0
0
0
0
0
1,065
0.998126
aa11a5a6d1a64b23db22e2fa37320c9cd8481f08
14,561
py
Python
tool/taint_analysis/summary_functions.py
cpbscholten/karonte
b989f7dfe9dbe002dd0dc4c4e5b0293dde61ae72
[ "BSD-2-Clause" ]
294
2019-11-14T13:14:55.000Z
2022-03-22T08:28:56.000Z
tool/taint_analysis/summary_functions.py
cpbscholten/karonte
b989f7dfe9dbe002dd0dc4c4e5b0293dde61ae72
[ "BSD-2-Clause" ]
17
2019-12-23T09:32:00.000Z
2022-03-17T20:00:13.000Z
tool/taint_analysis/summary_functions.py
cpbscholten/karonte
b989f7dfe9dbe002dd0dc4c4e5b0293dde61ae72
[ "BSD-2-Clause" ]
50
2019-11-25T02:27:04.000Z
2021-12-10T04:46:26.000Z
""" Though karonte relies on angr's sim procedures, sometimes these add in the current state some constraints to make the used analysis faster. For example, if a malloc has an unconstrained size, angr add the constraint size == angr-defined.MAX_SIZE. Though this makes the analysis faster, it makes impossible to reason ...
34.100703
117
0.665614
0
0
0
0
0
0
0
0
5,747
0.394684
aa11fb94d31ccf6c37536234d11058561f0102ae
2,510
py
Python
djangodash2013/settings.py
nnrcschmdt/djangodash2013
26e7a7ce62fdea976569144fed96d04cf631e32f
[ "BSD-3-Clause" ]
null
null
null
djangodash2013/settings.py
nnrcschmdt/djangodash2013
26e7a7ce62fdea976569144fed96d04cf631e32f
[ "BSD-3-Clause" ]
null
null
null
djangodash2013/settings.py
nnrcschmdt/djangodash2013
26e7a7ce62fdea976569144fed96d04cf631e32f
[ "BSD-3-Clause" ]
null
null
null
import os PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Ernesto Rico-Schmidt', 'e.rico.schmidt@gmail.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'data.sqlite' } } ALLOW...
22.212389
73
0.664143
0
0
0
0
0
0
0
0
1,435
0.571713
aa1329750f3a0be83521b3103dee6f387d00d620
15,773
py
Python
Commongen_code/TED/transformers_local/examples/run_generation.py
nlgandnlu/TED-code
7c00fc39c4412d57e378a5b205bcec1737e51e2e
[ "MIT" ]
1
2022-01-14T08:00:57.000Z
2022-01-14T08:00:57.000Z
Commongen_code/TED/transformers_local/examples/run_generation.py
nlgandnlu/TED
c0b04ddbeaa6061cd1c888bf1bcf70ef717f6bee
[ "MIT" ]
null
null
null
Commongen_code/TED/transformers_local/examples/run_generation.py
nlgandnlu/TED
c0b04ddbeaa6061cd1c888bf1bcf70ef717f6bee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in c...
39.4325
122
0.669499
0
0
0
0
0
0
0
0
5,350
0.338372
aa135a9d2168bdcf4644fb75e14d15294cb6bf0d
4,988
py
Python
kenlm_training/tests/test_minify.py
ruinunca/data_tooling
297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff
[ "Apache-2.0" ]
435
2019-11-04T22:35:50.000Z
2022-03-29T20:15:07.000Z
kenlm_training/tests/test_minify.py
ruinunca/data_tooling
297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff
[ "Apache-2.0" ]
331
2021-11-02T00:30:56.000Z
2022-03-08T16:48:13.000Z
kenlm_training/tests/test_minify.py
ruinunca/data_tooling
297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff
[ "Apache-2.0" ]
66
2019-11-06T01:28:12.000Z
2022-03-01T09:18:32.000Z
# 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. # import json from pathlib import Path import pytest import cc_net import cc_net.minify as minify from cc_net import jsonql, process_wet_fil...
32.38961
121
0.632518
0
0
0
0
411
0.081742
0
0
1,952
0.388226
aa140311bd46c7b3499277f3a584d6f7846994ac
647
py
Python
credentials.py
feliposz/submissions-scraper-selenium
e12c4194bfa96738e9042f4b0dd62e0ee14b3af4
[ "MIT" ]
3
2020-07-24T08:14:42.000Z
2021-06-25T12:46:15.000Z
credentials.py
th3c0d3br34ker/hackerrank-scraper-selenium
e12c4194bfa96738e9042f4b0dd62e0ee14b3af4
[ "MIT" ]
8
2020-06-24T14:37:47.000Z
2021-06-02T02:04:05.000Z
credentials.py
th3c0d3br34ker/hackerrank-scraper-selenium
e12c4194bfa96738e9042f4b0dd62e0ee14b3af4
[ "MIT" ]
2
2020-10-26T02:53:45.000Z
2022-03-11T06:21:24.000Z
class ACCOUNTS(): def __init__(self): self.CodeChef = { "username": "username", "password": "password" } self.Hackerrank = { "username": "username", "password": "password", "tracks": ["python"] # Available (...
32.35
100
0.462133
645
0.996909
0
0
0
0
0
0
328
0.506955
aa164872ebae4c5cbc063c4c63a1e4a0016f243f
9,353
py
Python
beast/observationmodel/observations.py
cmurray-astro/beast
cbbf6a663126367632c065ae63b341bea325e2ea
[ "BSD-3-Clause" ]
null
null
null
beast/observationmodel/observations.py
cmurray-astro/beast
cbbf6a663126367632c065ae63b341bea325e2ea
[ "BSD-3-Clause" ]
1
2020-06-25T16:26:02.000Z
2020-06-25T16:26:02.000Z
beast/observationmodel/observations.py
cmurray-astro/beast
cbbf6a663126367632c065ae63b341bea325e2ea
[ "BSD-3-Clause" ]
null
null
null
""" Defines a generic interface to observation catalog """ import numpy as np from astropy.table import Table, Column from beast.observationmodel.vega import Vega __all__ = ["Observations", "gen_SimObs_from_sedgrid"] class Observations(object): """ A generic class that interfaces observation catalog in a s...
29.977564
90
0.610713
5,631
0.602053
204
0.021811
59
0.006308
0
0
4,602
0.492035
aa177fa6cb0e8f56b34cd0aa79227c8c06214fe1
85
py
Python
src/lib/__init__.py
nekoffski/bachelor-thesis
23f350e2c5e0a184620bf66f851be6e94df7cdbb
[ "MIT" ]
2
2021-08-09T09:00:34.000Z
2021-08-20T09:31:00.000Z
src/lib/__init__.py
nekoffski/bachelor-thesis
23f350e2c5e0a184620bf66f851be6e94df7cdbb
[ "MIT" ]
null
null
null
src/lib/__init__.py
nekoffski/bachelor-thesis
23f350e2c5e0a184620bf66f851be6e94df7cdbb
[ "MIT" ]
null
null
null
from .cvision import * from .models import * from .net import * from .util import *
14.166667
22
0.705882
0
0
0
0
0
0
0
0
0
0
aa1b3aaba80e142eb448dc289c39eaf7a010960f
60
py
Python
workflow/scripts/helpers/__init__.py
IMS-Bio2Core-Facility/single_snake_sequencing
dddf8fc8960da8938484f98a4ea94f74a4fd5b18
[ "MIT" ]
null
null
null
workflow/scripts/helpers/__init__.py
IMS-Bio2Core-Facility/single_snake_sequencing
dddf8fc8960da8938484f98a4ea94f74a4fd5b18
[ "MIT" ]
null
null
null
workflow/scripts/helpers/__init__.py
IMS-Bio2Core-Facility/single_snake_sequencing
dddf8fc8960da8938484f98a4ea94f74a4fd5b18
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """BIC083-Eunyoung-Lee analysis."""
20
35
0.583333
0
0
0
0
0
0
0
0
58
0.966667
aa1b53928b03ab8946043bdbe847b07bb95b6c93
2,355
py
Python
testsuite/driver/src/case/case_executor/clean.py
openmaple/MapleCompiler
1648e63144766563f1ec44a25e0b618415648627
[ "MulanPSL-1.0" ]
5
2019-09-02T04:44:52.000Z
2021-11-08T12:23:51.000Z
testsuite/driver/src/case/case_executor/clean.py
venshine/OpenArkCompiler
264cd4463834356658154f0d254672ef559f245f
[ "MulanPSL-1.0" ]
2
2020-07-21T01:22:01.000Z
2021-12-06T08:07:16.000Z
testsuite/driver/src/case/case_executor/clean.py
venshine/OpenArkCompiler
264cd4463834356658154f0d254672ef559f245f
[ "MulanPSL-1.0" ]
4
2019-09-02T04:46:52.000Z
2020-09-10T11:30:03.000Z
# # Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. # # OpenArkCompiler is licensed under Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WA...
41.315789
115
0.6569
1,721
0.730786
0
0
0
0
0
0
731
0.310403
aa1ba1822280fb470d703129aa4c411447b4d5e2
5,749
py
Python
teraserver/python/modules/FlaskModule/API/user/UserLogin.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
10
2020-03-16T14:46:06.000Z
2022-02-11T16:07:38.000Z
teraserver/python/modules/FlaskModule/API/user/UserLogin.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
114
2019-09-16T13:02:50.000Z
2022-03-22T19:17:36.000Z
teraserver/python/modules/FlaskModule/API/user/UserLogin.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
null
null
null
from flask import session, request from flask_restx import Resource, reqparse from flask_babel import gettext from modules.LoginModule.LoginModule import user_http_auth from modules.FlaskModule.FlaskModule import user_api_ns as api from opentera.redis.RedisRPCClient import RedisRPCClient from opentera.modules.BaseModul...
48.310924
115
0.578361
5,212
0.906592
0
0
4,976
0.865542
0
0
1,490
0.259176
aa1c025ad6114c52c33a5057e8bad9a15f3be813
10,790
py
Python
yemek.py
raydingoz/cerrahapp
81a242dcf20d525f44a54f025414e9e8775caa37
[ "MIT" ]
2
2017-12-14T10:30:45.000Z
2022-01-11T19:19:33.000Z
yemek.py
raydingoz/cerrahapp
81a242dcf20d525f44a54f025414e9e8775caa37
[ "MIT" ]
null
null
null
yemek.py
raydingoz/cerrahapp
81a242dcf20d525f44a54f025414e9e8775caa37
[ "MIT" ]
null
null
null
##bu python kodu, selenium ve chromedriver ile çalışmakta, siteyi normal kullanıcı gibi ziyaret edip, gerekli verileri parse ediyor from selenium import webdriver from selenium.webdriver.chrome.options import Options import os from bs4 import BeautifulSoup import time, datetime import json import requests import sys ...
29.80663
149
0.510843
0
0
0
0
0
0
0
0
2,764
0.255335
aa1c0ae5f77bc0f8eac0e19d1462d0bcf251eb0b
6,542
py
Python
our_env.py
Venatoral/Slight
0156ffa39011b035ff1523da4967b4b1c75108d4
[ "Apache-2.0" ]
null
null
null
our_env.py
Venatoral/Slight
0156ffa39011b035ff1523da4967b4b1c75108d4
[ "Apache-2.0" ]
null
null
null
our_env.py
Venatoral/Slight
0156ffa39011b035ff1523da4967b4b1c75108d4
[ "Apache-2.0" ]
null
null
null
from typing import List, overload from flow.envs.multiagent.traffic_light_grid import MultiTrafficLightGridPOEnv from flow.envs.traffic_light_grid import TrafficLightGridPOEnv from gym.spaces import Box, Discrete import numpy as np ID_IDX = 1 class SeqTraffiLightEnv(TrafficLightGridPOEnv): def __init__(self, en...
42.480519
79
0.597371
6,295
0.962244
0
0
599
0.091562
0
0
1,686
0.257719
aa1c1132f05dc4d99bcca0197b212ef7e7e8de3b
1,449
py
Python
example/nodelabeled-unweighted.py
yhtang/GraphDot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
9
2020-02-14T18:07:39.000Z
2021-12-15T12:07:31.000Z
example/nodelabeled-unweighted.py
yhtang/graphdot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
3
2020-03-19T19:07:26.000Z
2021-02-24T06:08:51.000Z
example/nodelabeled-unweighted.py
yhtang/graphdot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
3
2019-10-17T06:11:18.000Z
2021-05-07T11:56:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- '''An example of similarity comparison between node-labeled but unweighted graphs using the marginalized graph kernel.''' import numpy as np import networkx as nx from graphdot import Graph from graphdot.kernel.marginalized import MarginalizedGraphKernel from graphdot.micro...
25.421053
74
0.675638
0
0
0
0
0
0
0
0
411
0.283644
aa1c3ea5d289362a0fc7eea0894a32edac8f196e
9,735
py
Python
sparse_causal_model_learner_rl/annealer/threshold.py
sergeivolodin/causality-disentanglement-rl
5a41b4a2e3d85fa7e9c8450215fdc6cf954df867
[ "CC0-1.0" ]
2
2020-12-11T05:26:24.000Z
2021-04-21T06:12:58.000Z
sparse_causal_model_learner_rl/annealer/threshold.py
sergeivolodin/causality-disentanglement-rl
5a41b4a2e3d85fa7e9c8450215fdc6cf954df867
[ "CC0-1.0" ]
9
2020-04-30T16:29:50.000Z
2021-03-26T07:32:18.000Z
sparse_causal_model_learner_rl/annealer/threshold.py
sergeivolodin/causality-disentanglement-rl
5a41b4a2e3d85fa7e9c8450215fdc6cf954df867
[ "CC0-1.0" ]
null
null
null
import gin import torch import logging from sparse_causal_model_learner_rl.metrics import find_value, find_key @gin.configurable def AnnealerThresholdSelector(config, config_object, epoch_info, temp, adjust_every=100, multiplier=10, # allow the lo...
41.781116
133
0.576271
0
0
0
0
9,592
0.985311
0
0
2,666
0.273857
aa1d2d976b2cf58daaaccaed749a8600fff9d87f
3,164
py
Python
Episode01-Move_Player/Pygame/Shmup tutorial-01.py
Inksaver/Shmup_With_Pygame_Love2D_Monogame
84838516d9dd9d6639b1b699dca546bfdfec73dc
[ "CC0-1.0" ]
1
2022-02-01T04:05:04.000Z
2022-02-01T04:05:04.000Z
Episode01-Move_Player/Pygame/Shmup tutorial-01.py
Inksaver/Shmup_With_Pygame_Love2D_Monogame
84838516d9dd9d6639b1b699dca546bfdfec73dc
[ "CC0-1.0" ]
null
null
null
Episode01-Move_Player/Pygame/Shmup tutorial-01.py
Inksaver/Shmup_With_Pygame_Love2D_Monogame
84838516d9dd9d6639b1b699dca546bfdfec73dc
[ "CC0-1.0" ]
null
null
null
# https://www.youtube.com/watch?v=nGufy7weyGY ''' Only 1 player so use code module (static class) for player and a separate shared code module for global variables ''' # import libraries import pygame, os import shared, player def process_events() -> (object, object, bool): ''' get keyboard input and check ...
38.585366
105
0.677623
0
0
0
0
0
0
0
0
1,582
0.5
aa1ecc00932000826e0af0c980cbcdd6a456cc46
926
py
Python
python/091-100/Interleaving String.py
KaiyuWei/leetcode
fd61f5df60cfc7086f7e85774704bacacb4aaa5c
[ "MIT" ]
150
2015-04-04T06:53:49.000Z
2022-03-21T13:32:08.000Z
python/091-100/Interleaving String.py
yizhu1012/leetcode
d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7
[ "MIT" ]
1
2015-04-13T15:15:40.000Z
2015-04-21T20:23:16.000Z
python/091-100/Interleaving String.py
yizhu1012/leetcode
d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7
[ "MIT" ]
64
2015-06-30T08:00:07.000Z
2022-01-01T16:44:14.000Z
class Solution: # @param {string} s1 # @param {string} s2 # @param {string} s3 # @return {boolean} def isInterleave(self, s1, s2, s3): m = len(s1) n = len(s2) if m+n != len(s3): return False table = [([False] * (m+1)) for i in range(n+1)] ...
33.071429
66
0.402808
926
1
0
0
0
0
0
0
79
0.085313
aa1ed9f3c5b53362f9ffc3df9a734baef6b42e38
3,119
py
Python
vvrest/vault.py
GRM-VisualVault/vvPyRest
59c15d3377b9955f575cfdb1362facc48f253442
[ "MIT" ]
1
2019-01-31T10:41:35.000Z
2019-01-31T10:41:35.000Z
vvrest/vault.py
GRM-VisualVault/vvPyRest
59c15d3377b9955f575cfdb1362facc48f253442
[ "MIT" ]
5
2018-12-30T03:15:20.000Z
2021-06-30T21:49:41.000Z
vvrest/vault.py
GRM-VisualVault/vvPyRest
59c15d3377b9955f575cfdb1362facc48f253442
[ "MIT" ]
null
null
null
from .token import Token from .utilities import get_token_expiration from .services.auth_service import AuthService class Vault: def __init__(self, url, customer_alias, database_alias, client_id, client_secret, user_web_token=None, jwt=None): """ if user_web_token is passed in, then vv will authen...
38.506173
117
0.643796
3,000
0.961847
0
0
0
0
0
0
1,064
0.341135
aa2023ac99077f9cb543158669d698802bc7ef7d
2,000
py
Python
setup.py
saimn/stsci.tools
b926e11b4f1afa09fe7cf6b7893ebf2a54182c94
[ "BSD-3-Clause" ]
null
null
null
setup.py
saimn/stsci.tools
b926e11b4f1afa09fe7cf6b7893ebf2a54182c94
[ "BSD-3-Clause" ]
null
null
null
setup.py
saimn/stsci.tools
b926e11b4f1afa09fe7cf6b7893ebf2a54182c94
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import pkgutil import sys from setuptools import setup, find_packages from subprocess import check_call, CalledProcessError if not pkgutil.find_loader('relic'): relic_local = os.path.exists('relic') relic_submodule = (relic_local and os.path.exists('.gitm...
28.169014
87
0.593
0
0
0
0
0
0
0
0
793
0.3965
aa2088862a2b3c7cee42f6b2595d03cd35464ec2
5,362
py
Python
settings.py
Nayigiziki/apartment-finder
0d95c67d1bbabe5ba99a8fee92b219b94726c19c
[ "MIT" ]
null
null
null
settings.py
Nayigiziki/apartment-finder
0d95c67d1bbabe5ba99a8fee92b219b94726c19c
[ "MIT" ]
null
null
null
settings.py
Nayigiziki/apartment-finder
0d95c67d1bbabe5ba99a8fee92b219b94726c19c
[ "MIT" ]
null
null
null
import os # filters FILTERS = { 'min_bathrooms': 1, 'min_bedrooms': 3 } ## Location preferences # The Craigslist site you want to search on. # For instance, https://sfbay.craigslist.org is SF and the Bay Area. # You only need the beginning of the URL. CRAIGSLIST_SITE = 'sfbay' # What Craigslist subdirectorie...
40.931298
396
0.684073
0
0
0
0
0
0
0
0
3,365
0.627564
aa23e634e8fb312ea7c22cb42c2ae28b5cc0039c
2,569
py
Python
randomPanFlute.py
aleixcm/tensorflow-wavenet
e38d4b71fe905042ed02cceffd6d4a8c8c356302
[ "MIT" ]
null
null
null
randomPanFlute.py
aleixcm/tensorflow-wavenet
e38d4b71fe905042ed02cceffd6d4a8c8c356302
[ "MIT" ]
null
null
null
randomPanFlute.py
aleixcm/tensorflow-wavenet
e38d4b71fe905042ed02cceffd6d4a8c8c356302
[ "MIT" ]
1
2018-09-22T09:56:03.000Z
2018-09-22T09:56:03.000Z
import os import scipy.io.wavfile import matplotlib.pyplot as plt import numpy as np import os import random ''' Create a random dataset with three different frequencies that are always in fase. Frequencies will be octave [440, 880, 1320]. ''' fs = 16000 x1 = scipy.io.wavfile.read('corpus/Analysis/a440.wav')[1] x2 ...
26.484536
106
0.626703
0
0
0
0
0
0
0
0
720
0.280265
aa23ed79c757b361839b4005aa702d809d5ea5a0
43
py
Python
Very Easy/hello.py
Maverick-cmd/Python-Practice
4dc3f1eb5d633e20057052531cfc6e04772bc061
[ "MIT" ]
null
null
null
Very Easy/hello.py
Maverick-cmd/Python-Practice
4dc3f1eb5d633e20057052531cfc6e04772bc061
[ "MIT" ]
null
null
null
Very Easy/hello.py
Maverick-cmd/Python-Practice
4dc3f1eb5d633e20057052531cfc6e04772bc061
[ "MIT" ]
null
null
null
def hello(): return "hello edabit.com"
14.333333
29
0.651163
0
0
0
0
0
0
0
0
18
0.418605
aa24ad1cd629e57a49d0bc27903187170354eee3
3,162
py
Python
py/scripts/ci_imstats.py
dstndstn/gfa_reduce
410729fd3c652d96739299be4b196455a2490d33
[ "BSD-3-Clause" ]
null
null
null
py/scripts/ci_imstats.py
dstndstn/gfa_reduce
410729fd3c652d96739299be4b196455a2490d33
[ "BSD-3-Clause" ]
13
2019-02-08T02:11:01.000Z
2019-09-10T02:11:28.000Z
py/scripts/ci_imstats.py
dstndstn/gfa_reduce
410729fd3c652d96739299be4b196455a2490d33
[ "BSD-3-Clause" ]
2
2019-12-23T15:25:32.000Z
2020-12-22T13:43:52.000Z
#!/usr/bin/env python import argparse import os import gfa_reduce.io as io import glob import time import numpy as np import copy import gfa_reduce.common as common import astropy.io.fits as fits import gfa_reduce.dark_current as dark_current from gfa_reduce.analysis.sky import adu_to_surface_brightness def print_ims...
35.133333
165
0.686591
0
0
0
0
0
0
0
0
924
0.29222
aa25080d95db6003a47cb7e9144e0411c4a11460
88
py
Python
onnxmltools/convert/common/utils.py
xjarvik/onnxmltools
e4fbdc09814ceedc7655d85b6c4203ca21d8433a
[ "Apache-2.0" ]
1
2022-01-28T04:59:37.000Z
2022-01-28T04:59:37.000Z
onnxmltools/convert/common/utils.py
xjarvik/onnxmltools
e4fbdc09814ceedc7655d85b6c4203ca21d8433a
[ "Apache-2.0" ]
null
null
null
onnxmltools/convert/common/utils.py
xjarvik/onnxmltools
e4fbdc09814ceedc7655d85b6c4203ca21d8433a
[ "Apache-2.0" ]
1
2021-07-05T23:51:56.000Z
2021-07-05T23:51:56.000Z
# SPDX-License-Identifier: Apache-2.0 from onnxconverter_common.utils import * # noqa
22
48
0.772727
0
0
0
0
0
0
0
0
43
0.488636
aa25c2e709cfea704e04eb7eb4828a1320e8fafc
5,280
py
Python
navegador5/time_utils.py
ihgazni2/navegador5
8d7bcf39f6adf27f6c3ebd1a803383cd3d9555ab
[ "MIT" ]
null
null
null
navegador5/time_utils.py
ihgazni2/navegador5
8d7bcf39f6adf27f6c3ebd1a803383cd3d9555ab
[ "MIT" ]
null
null
null
navegador5/time_utils.py
ihgazni2/navegador5
8d7bcf39f6adf27f6c3ebd1a803383cd3d9555ab
[ "MIT" ]
null
null
null
import re import time import datetime import html def in_ignoreUpper(lora,key): for each in lora: if(key.lower() == each.lower()): return((True,each)) else: pass return((False,None)) def s2hms(seconds): arr = seconds.split(".") s1 = arr[0]...
31.058824
131
0.485985
0
0
0
0
0
0
0
0
2,326
0.44053
aa2716777e5784947bfab68b664551c0c517f631
4,540
py
Python
scripts/job/memcached_submit.py
Container-Projects/firmament
d0de5258f0805f8d17b45d70c0a8e6d6a67617c0
[ "Apache-2.0", "OpenSSL" ]
287
2016-05-13T17:45:48.000Z
2022-01-23T00:26:20.000Z
scripts/job/memcached_submit.py
Container-Projects/firmament
d0de5258f0805f8d17b45d70c0a8e6d6a67617c0
[ "Apache-2.0", "OpenSSL" ]
33
2016-05-13T11:40:21.000Z
2020-11-16T17:57:17.000Z
scripts/job/memcached_submit.py
Container-Projects/firmament
d0de5258f0805f8d17b45d70c0a8e6d6a67617c0
[ "Apache-2.0", "OpenSSL" ]
64
2016-05-26T06:35:39.000Z
2021-09-27T12:02:44.000Z
from base import job_desc_pb2 from base import task_desc_pb2 from base import reference_desc_pb2 from google.protobuf import text_format import httplib, urllib, re, sys, random import binascii import time import shlex def add_worker_task(job_name, task, binary, args, worker_id, num_workers, extra_args): task.uid = 0...
36.910569
99
0.745154
0
0
0
0
0
0
0
0
1,114
0.245374
aa276bd863f21ed290ee913192b1706b7cc21ea2
16,059
py
Python
gala/dynamics/_genfunc/genfunc_3d.py
ltlancas/gala
2621bb599d67e74a85446abf72d5930ef70ca181
[ "MIT" ]
1
2021-10-14T03:36:15.000Z
2021-10-14T03:36:15.000Z
gala/dynamics/_genfunc/genfunc_3d.py
ltlancas/gala
2621bb599d67e74a85446abf72d5930ef70ca181
[ "MIT" ]
null
null
null
gala/dynamics/_genfunc/genfunc_3d.py
ltlancas/gala
2621bb599d67e74a85446abf72d5930ef70ca181
[ "MIT" ]
null
null
null
# Solving the series of linear equations for true action # and generating function Fourier components import numpy as np import matplotlib.pyplot as plt from scipy.integrate import odeint from matplotlib.ticker import MaxNLocator import matplotlib.cm as cm import time # in units kpc, km/s and 10^11 M_solar Grav = 430...
37.964539
229
0.600598
0
0
0
0
0
0
0
0
4,891
0.304564
aa27ad417a5f5847632ae2f34039763f50ca24d4
748
py
Python
scripts/find-attorneys.py
kendallcorner/oscn
6ba2d939b27d0d54af236e14f8a6b3f5f2aa995c
[ "MIT" ]
null
null
null
scripts/find-attorneys.py
kendallcorner/oscn
6ba2d939b27d0d54af236e14f8a6b3f5f2aa995c
[ "MIT" ]
null
null
null
scripts/find-attorneys.py
kendallcorner/oscn
6ba2d939b27d0d54af236e14f8a6b3f5f2aa995c
[ "MIT" ]
null
null
null
import sys import time import csv import oscn counties = ['tulsa', 'cimarron', 'adair', 'delaware'] years = ['2010'] for county in counties: csv_file = open(f'data/{county}-attorneys.csv', "w") # if this breaks, you may need to mkdir data writer = csv.writer(csv_file, delimiter=',') for year in yea...
26.714286
76
0.617647
0
0
0
0
0
0
0
0
141
0.188503
aa282f1ac7388b3707ced3a023f5c1233c6cf501
156
py
Python
tests/middlewares/__init__.py
caputomarcos/mongorest
57d6b28d75e18afed5cef7160522958153b5be15
[ "BSD-3-Clause" ]
16
2015-04-18T02:51:09.000Z
2020-12-15T18:05:16.000Z
tests/middlewares/__init__.py
caputomarcos/mongorest
57d6b28d75e18afed5cef7160522958153b5be15
[ "BSD-3-Clause" ]
8
2015-11-24T23:06:03.000Z
2016-07-21T17:57:59.000Z
tests/middlewares/__init__.py
caputomarcos/mongorest
57d6b28d75e18afed5cef7160522958153b5be15
[ "BSD-3-Clause" ]
2
2015-12-04T13:45:32.000Z
2016-06-11T13:44:53.000Z
# -*- encoding: UTF-8 -*- from __future__ import absolute_import, unicode_literals from .authentication_middleware import * from .cors_middleware import *
26
56
0.788462
0
0
0
0
0
0
0
0
25
0.160256
aa2c05b3df99db71aa37cd2cc5fcd8d03b928ba5
628
py
Python
katena_chain_sdk_py/serializer/bytes_field.py
katena-chain/sdk-py
9e1344c6cf2b73680a39c533be58d668b172304f
[ "Apache-2.0" ]
null
null
null
katena_chain_sdk_py/serializer/bytes_field.py
katena-chain/sdk-py
9e1344c6cf2b73680a39c533be58d668b172304f
[ "Apache-2.0" ]
null
null
null
katena_chain_sdk_py/serializer/bytes_field.py
katena-chain/sdk-py
9e1344c6cf2b73680a39c533be58d668b172304f
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2019, TransChain. This source code is licensed under the Apache 2.0 license found in the LICENSE file in the root directory of this source tree. """ from marshmallow import fields from base64 import b64encode, b64decode class BytesField(fields.Field): # BytesField allows to serialize and deser...
28.545455
70
0.691083
385
0.613057
0
0
0
0
0
0
247
0.393312
aa2fbcd8fca4fea0b2a9735c1802f1a2bfebbf80
717
py
Python
requests_api/adapter.py
degagne/requests-api
e2d65503d7152293efb8105bb7f48bf46399cd44
[ "MIT" ]
1
2021-12-09T05:41:47.000Z
2021-12-09T05:41:47.000Z
requests_api/adapter.py
degagne/requests-api
e2d65503d7152293efb8105bb7f48bf46399cd44
[ "MIT" ]
null
null
null
requests_api/adapter.py
degagne/requests-api
e2d65503d7152293efb8105bb7f48bf46399cd44
[ "MIT" ]
null
null
null
from __future__ import absolute_import from typing import List, Dict, NoReturn, Any from requests.adapters import HTTPAdapter from urllib3.util.retry import Retry from requests_api.constants import ( BACKOFF_FACTOR, STATUS_FORCELIST, ALLOWED_METHODS ) class RetryAdapter(HTTPAdapter): """ creates retr...
29.875
79
0.693166
449
0.62622
0
0
0
0
0
0
75
0.104603
aa2fcb5d798f5d19c8f670fc3a91f498e60643c5
225
py
Python
tests/engine/dice_test.py
slalom/slaloms-and-dragons
3ae6a6ec3feb188d767983ab9277668baab18533
[ "MIT" ]
7
2019-03-28T15:56:21.000Z
2021-11-08T09:02:05.000Z
tests/engine/dice_test.py
slalom/slaloms-and-dragons
3ae6a6ec3feb188d767983ab9277668baab18533
[ "MIT" ]
2
2019-05-16T02:00:22.000Z
2021-06-08T19:49:46.000Z
tests/engine/dice_test.py
slalom/slaloms-and-dragons
3ae6a6ec3feb188d767983ab9277668baab18533
[ "MIT" ]
4
2019-04-02T17:49:30.000Z
2019-04-04T00:38:54.000Z
import unittest import game.engine.dice as dice class DiceRollTest(unittest.TestCase): def test_dice_roll(self): roll = dice.roll() self.assertGreaterEqual(roll, 1) self.assertLessEqual(roll, 6)
22.5
40
0.697778
174
0.773333
0
0
0
0
0
0
0
0
aa33835c67781bbb57fb61d41ada81b8f333456f
7,209
py
Python
pepenc/data/peptide_encoder_training_dataset.py
bmmalone/peptide-encoder
c4b4d5a0dc68bd2442ab5046713ff15dc3cd4900
[ "MIT" ]
null
null
null
pepenc/data/peptide_encoder_training_dataset.py
bmmalone/peptide-encoder
c4b4d5a0dc68bd2442ab5046713ff15dc3cd4900
[ "MIT" ]
null
null
null
pepenc/data/peptide_encoder_training_dataset.py
bmmalone/peptide-encoder
c4b4d5a0dc68bd2442ab5046713ff15dc3cd4900
[ "MIT" ]
null
null
null
""" This module contains a pytorch dataset for learning peptide embeddings. In particular, each "instance" of the dataset comprises two peptide sequences, as well as the sNebula similarity between them. The sNebula distance reflects the BLOSSUM similarity transformed from 0 to 1. """ import logging logger = logging.ge...
36.593909
102
0.674019
6,467
0.897073
0
0
1,414
0.196144
0
0
3,352
0.464974
aa338df0bf1425d20b2eaf00cec44ce15acc8852
3,961
py
Python
src/chime_dash/app/components/__init__.py
nickcanz/chime
cb03218ee5cc71b92704c8be379924ac459259d7
[ "MIT" ]
2
2020-04-02T15:57:41.000Z
2020-06-27T18:06:47.000Z
src/chime_dash/app/components/__init__.py
nickcanz/chime
cb03218ee5cc71b92704c8be379924ac459259d7
[ "MIT" ]
1
2020-04-05T17:23:45.000Z
2020-04-05T17:23:45.000Z
src/chime_dash/app/components/__init__.py
nickcanz/chime
cb03218ee5cc71b92704c8be379924ac459259d7
[ "MIT" ]
null
null
null
"""Combines all components The `sidebar` component combines all the inputs while other components potentially have callbacks. To add or remove components, adjust the `setup`. If callbacks are present, also adjust `CALLBACK_INPUTS`, `CALLBACK_OUTPUTS` and `callback_body`. """ from collections import OrderedDict from ...
36.009091
82
0.58874
2,875
0.725827
0
0
0
0
0
0
593
0.14971
aa35c651bcb63b7652b7a85574cf82938974798d
206
py
Python
src/page/page_parser.py
baallezx/collect
7156f239d133660e03bba334d716025b96d6b230
[ "MIT" ]
1
2016-02-08T10:53:48.000Z
2016-02-08T10:53:48.000Z
src/page/page_parser.py
baallezx/collect
7156f239d133660e03bba334d716025b96d6b230
[ "MIT" ]
null
null
null
src/page/page_parser.py
baallezx/collect
7156f239d133660e03bba334d716025b96d6b230
[ "MIT" ]
null
null
null
# TODO: implement a page_parser that uses nlp and stats to get a good read of a file. class page_parser(object): """ a multi purpose parser that can read these file types """ def __init__(self): pass
25.75
85
0.728155
119
0.57767
0
0
0
0
0
0
148
0.718447
aa35ead0147cdaa5e16792a1159c28c73e8158c5
110
py
Python
crawl_and_scrap/__main__.py
byung-u/GranXiSearch
80a4a2cd19e39424013b7838aafbbbffd2a3574b
[ "MIT" ]
1
2017-06-21T10:44:27.000Z
2017-06-21T10:44:27.000Z
crawl_and_scrap/__main__.py
byung-u/GranXiSearch
80a4a2cd19e39424013b7838aafbbbffd2a3574b
[ "MIT" ]
5
2017-02-05T15:20:32.000Z
2017-03-11T14:09:49.000Z
crawl_and_scrap/__main__.py
byung-u/FindTheTreasure
80a4a2cd19e39424013b7838aafbbbffd2a3574b
[ "MIT" ]
null
null
null
"""crwal_and_scrap trying to gathering news with web scrawl""" from crwal_and_scrap.main import main main()
18.333333
62
0.781818
0
0
0
0
0
0
0
0
62
0.563636
aa38f5ac2a7fc58b2bcf11437fbfffc67543b98c
1,525
py
Python
output/models/ibm_data/valid/d3_4_6/d3_4_6v06_xsd/d3_4_6v06.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ibm_data/valid/d3_4_6/d3_4_6v06_xsd/d3_4_6v06.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ibm_data/valid/d3_4_6/d3_4_6v06_xsd/d3_4_6v06.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List __NAMESPACE__ = "a" @dataclass class Nametest: choice: List[object] = field( default_factory=list, metadata={ "type": "Elements", "choices": ( { "name": "_ele", ...
23.828125
40
0.260984
1,411
0.925246
0
0
1,433
0.939672
0
0
283
0.185574
aa3a75a5b6e67e64763fd2f9004162b6d0e34789
1,505
py
Python
grape_data.py
Dechorgnat/wine_app
e037bb71c92cbfa770f3a167b93eea898fbd7948
[ "MIT" ]
null
null
null
grape_data.py
Dechorgnat/wine_app
e037bb71c92cbfa770f3a167b93eea898fbd7948
[ "MIT" ]
1
2019-05-02T06:57:54.000Z
2019-05-02T11:59:23.000Z
grape_data.py
Dechorgnat/wine_app
e037bb71c92cbfa770f3a167b93eea898fbd7948
[ "MIT" ]
1
2019-04-30T21:19:34.000Z
2019-04-30T21:19:34.000Z
import pprint from app.models import Cepage data = [] counter = 0 with open('static_data.tsv', 'r') as file: for line in file: if counter == 0: headers = line.split('\t') print(len(headers)) else: print(len(line.split('\t'))) data.append(dict(zip(head...
29.509804
94
0.530897
0
0
0
0
0
0
0
0
183
0.121272
aa3b0940d3759c524f76718360bd7b3fac996f6c
431
py
Python
docs/build/docutils/test/functional/tests/math_output_html.py
mjtamlyn/django-braces
8adc9bc4f5139e3d032d4e38657bf86413388b78
[ "BSD-3-Clause" ]
1
2015-03-22T16:49:07.000Z
2015-03-22T16:49:07.000Z
docs/build/docutils/test/functional/tests/math_output_html.py
mjtamlyn/django-braces
8adc9bc4f5139e3d032d4e38657bf86413388b78
[ "BSD-3-Clause" ]
null
null
null
docs/build/docutils/test/functional/tests/math_output_html.py
mjtamlyn/django-braces
8adc9bc4f5139e3d032d4e38657bf86413388b78
[ "BSD-3-Clause" ]
null
null
null
# Source and destination file names. test_source = "data/math.txt" test_destination = "math_output_html.html" # Keyword parameters passed to publish_file. reader_name = "standalone" parser_name = "rst" writer_name = "html" # Extra setting settings_overrides['math_output'] = 'HTML' settings_overrides['stylesheet_path...
25.352941
51
0.740139
0
0
0
0
0
0
0
0
280
0.649652
aa3c53fd6d46ee624b7f8501fe8550742fc44be3
1,083
py
Python
craftroom/thefriendlystars/panels.py
davidjwilson/craftroom
05721893350a8b554204e188c8413ee33a7768ad
[ "MIT" ]
1
2019-11-25T21:19:03.000Z
2019-11-25T21:19:03.000Z
craftroom/thefriendlystars/panels.py
davidjwilson/craftroom
05721893350a8b554204e188c8413ee33a7768ad
[ "MIT" ]
1
2018-03-14T04:26:54.000Z
2018-03-14T04:26:54.000Z
craftroom/thefriendlystars/panels.py
davidjwilson/craftroom
05721893350a8b554204e188c8413ee33a7768ad
[ "MIT" ]
1
2021-09-10T21:24:43.000Z
2021-09-10T21:24:43.000Z
''' Panel object contains up to one image in the background, and any number of catalogs plotted. ''' import astroquery.skyview class Panel: ''' A single frame of a finder chart, that has up to one image in the background, and any number of catalogs plotted. ''' def __init__(self, image, cata...
22.102041
71
0.581717
637
0.588181
0
0
0
0
0
0
684
0.631579
aa3eab439fa860bc36dd604b78e20a3475abf660
2,437
py
Python
lib/wqmc_to_newick_converter.py
pythonLoader/QT-GILD
9134ca410d14c554543cc444d4d18f9515e44423
[ "Apache-2.0" ]
null
null
null
lib/wqmc_to_newick_converter.py
pythonLoader/QT-GILD
9134ca410d14c554543cc444d4d18f9515e44423
[ "Apache-2.0" ]
1
2021-12-09T09:22:09.000Z
2021-12-09T09:22:09.000Z
lib/wqmc_to_newick_converter.py
pythonLoader/QT-GILD
9134ca410d14c554543cc444d4d18f9515e44423
[ "Apache-2.0" ]
null
null
null
import os,sys import time if(len(sys.argv) < 3): print("Format -> handle.py <input_file> <base_directory>") exit() input_file_name = sys.argv[1] base_direc = sys.argv[2] # with open(input_file_name, "r") as input_file: # data = input_file.read() input_ = open(input_file_name, "r") newick_format="" # lines=data.s...
26.48913
93
0.601559
0
0
0
0
0
0
0
0
1,632
0.669676
aa3f27f9eadc8df2dacbc14d927b6d3675997de3
2,849
py
Python
plugin/rasa.py
mayflower/err-rasa
a3fa9c02c9434dd716caa72bd7a91f36ce0d8a2e
[ "Apache-2.0" ]
1
2018-08-04T17:32:49.000Z
2018-08-04T17:32:49.000Z
plugin/rasa.py
mayflower/err-rasa
a3fa9c02c9434dd716caa72bd7a91f36ce0d8a2e
[ "Apache-2.0" ]
4
2019-12-26T16:41:50.000Z
2020-03-24T15:43:45.000Z
plugin/rasa.py
mayflower/err-rasa
a3fa9c02c9434dd716caa72bd7a91f36ce0d8a2e
[ "Apache-2.0" ]
2
2019-05-17T20:15:01.000Z
2019-08-08T03:08:25.000Z
from rasa_core.interpreter import RasaNLUInterpreter from rasa_core.agent import Agent from rasa_core.interpreter import RegexInterpreter from rasa_core.policies.keras_policy import KerasPolicy from rasa_core.policies.memoization import MemoizationPolicy import json import config from errbot import BotPlugin, botcm...
41.289855
83
0.636715
2,485
0.872236
0
0
737
0.258687
0
0
562
0.197262
aa400985ee38a6b0cabe3da8dcfdcdcd42b9662d
2,943
py
Python
pyboretum/tree/list_tree.py
picwell/pyboretum
dd2af812ea2156ddec57aa252c79333f3bd81b0d
[ "MIT" ]
1
2019-04-05T01:57:12.000Z
2019-04-05T01:57:12.000Z
pyboretum/tree/list_tree.py
picwell/pyboretum
dd2af812ea2156ddec57aa252c79333f3bd81b0d
[ "MIT" ]
null
null
null
pyboretum/tree/list_tree.py
picwell/pyboretum
dd2af812ea2156ddec57aa252c79333f3bd81b0d
[ "MIT" ]
null
null
null
from __future__ import absolute_import import math from .base import ( Tree, TreeIterator, ) def _get_left_index(node_index): return 2 * node_index + 1 def _get_right_index(node_index): return 2 * node_index + 2 def _get_depth(node_index): """ The indices in depth d is (# of node...
28.298077
92
0.650357
2,386
0.810737
0
0
0
0
0
0
452
0.153585
aa423bbb57ccb85157fec0324522a113dca2abda
501
py
Python
Data/CSV_naar_hashtable.py
Tomaat/Programmeerproject
f3fa7558891add6c46948afe778e1abf1cc0f565
[ "MIT" ]
null
null
null
Data/CSV_naar_hashtable.py
Tomaat/Programmeerproject
f3fa7558891add6c46948afe778e1abf1cc0f565
[ "MIT" ]
1
2017-01-12T18:31:00.000Z
2017-01-12T18:31:00.000Z
Data/CSV_naar_hashtable.py
Tomaat/Programmeerproject
f3fa7558891add6c46948afe778e1abf1cc0f565
[ "MIT" ]
null
null
null
import csv import json from collections import defaultdict f = open('DOOSTROOM_new.csv', 'rU') h = defaultdict(lambda: defaultdict(lambda: defaultdict(int))) for line in f: line_list = line.split(";") h[line_list[7]]["oorsprong"][line_list[3]] += int(line_list[12]) h[line_list[7]]["profiel"][line_list[6]] +=...
22.772727
65
0.670659
0
0
0
0
0
0
0
0
135
0.269461
aa45f0ddc8356bc41cfa28538ab685525dfeff79
2,138
py
Python
python/version_creator.py
geoff-possum/lambda-versioning
18f35945579cd9c1315c697444fc0d47aa66ea61
[ "MIT" ]
2
2020-12-07T05:18:56.000Z
2021-04-03T08:13:58.000Z
python/version_creator.py
geoff-possum/lambda-versioning
18f35945579cd9c1315c697444fc0d47aa66ea61
[ "MIT" ]
null
null
null
python/version_creator.py
geoff-possum/lambda-versioning
18f35945579cd9c1315c697444fc0d47aa66ea61
[ "MIT" ]
null
null
null
import boto3 from botocore.vendored import requests import json from uuid import uuid4 def send(event, context, response_status, Reason=None, ResponseData=None, PhysicalResourceId=None): response_url = event.get('ResponseURL', "") json_body = json.dumps({ 'Status' : response_status, 'Reason' : Reason or 'S...
34.483871
112
0.673994
0
0
0
0
0
0
0
0
553
0.258653
aa46d1dd10569615cec8459fd895776c5d59f9d9
6,459
py
Python
musicdwh/musicdwh.py
dagmar-urbancova/musicdwh
d9960820e7bb77cbe20713b2a344e1fdf86be92a
[ "MIT" ]
null
null
null
musicdwh/musicdwh.py
dagmar-urbancova/musicdwh
d9960820e7bb77cbe20713b2a344e1fdf86be92a
[ "MIT" ]
null
null
null
musicdwh/musicdwh.py
dagmar-urbancova/musicdwh
d9960820e7bb77cbe20713b2a344e1fdf86be92a
[ "MIT" ]
null
null
null
"""Main module.""" import os import sys import time from datetime import datetime import pandas as pd import ipapi import sqlalchemy as sqla try: DATA_DATE = os.environ['DATA_DATE'] print('Using data from {}'.format(DATA_DATE)) except: print('Envvar DATA_DATE not set.') sys.exit(1) try: POSTGR...
29.226244
94
0.62471
0
0
0
0
0
0
0
0
2,057
0.31847
aa471620e45f82f8795929b2bd7008f06f5d5d0e
653
py
Python
biserici_inlemnite/biserici/migrations/0033_auto_20210803_1623.py
ck-tm/biserici-inlemnite
c9d12127b92f25d3ab2fcc7b4c386419fe308a4e
[ "MIT" ]
null
null
null
biserici_inlemnite/biserici/migrations/0033_auto_20210803_1623.py
ck-tm/biserici-inlemnite
c9d12127b92f25d3ab2fcc7b4c386419fe308a4e
[ "MIT" ]
null
null
null
biserici_inlemnite/biserici/migrations/0033_auto_20210803_1623.py
ck-tm/biserici-inlemnite
c9d12127b92f25d3ab2fcc7b4c386419fe308a4e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-08-03 13:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('biserici', '0032_auto_20210803_1622'), ] operations = [ migrations.AddField( model_name='descriere', name='solee_de...
27.208333
93
0.614089
561
0.856489
0
0
0
0
0
0
187
0.285496
aa479376b304ad8b20c1dba4d6101b903b9d8d20
9,436
py
Python
load_data.py
rlatjcj/Naver-AI-Vision
059e60218cef1f7c37b4d546b02e6024789e9716
[ "Unlicense" ]
null
null
null
load_data.py
rlatjcj/Naver-AI-Vision
059e60218cef1f7c37b4d546b02e6024789e9716
[ "Unlicense" ]
null
null
null
load_data.py
rlatjcj/Naver-AI-Vision
059e60218cef1f7c37b4d546b02e6024789e9716
[ "Unlicense" ]
null
null
null
# -*- coding: utf_8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import cv2 import pickle import random import numpy as np def train_load1(data_path, img_size, output_path): label_list = [] img_list = [] label_idx = 0 for r...
41.568282
161
0.627914
0
0
4,791
0.507736
0
0
0
0
673
0.071323
aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8
639
py
Python
data/train/python/aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8api.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8api.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8api.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
from tastypie.api import Api from encuestas.api.user import UserResource from encuestas.api.encuesta import EncuestaResource from encuestas.api.grupo import GrupoResource from encuestas.api.pregunta import PreguntaResource from encuestas.api.opcion import OpcionResource from encuestas.api.link import LinkResource from ...
33.631579
53
0.843505
0
0
0
0
0
0
0
0
4
0.00626
aa47d21c6ff69f1572502674f4acbedbda768571
2,371
py
Python
ex1/gerador.py
renzon/oo-inpe
1b33939974f998badbeebd7bfe182070e77ef98f
[ "MIT" ]
null
null
null
ex1/gerador.py
renzon/oo-inpe
1b33939974f998badbeebd7bfe182070e77ef98f
[ "MIT" ]
null
null
null
ex1/gerador.py
renzon/oo-inpe
1b33939974f998badbeebd7bfe182070e77ef98f
[ "MIT" ]
null
null
null
from random import randint from ex1.evento import Evento class Gerador(): def __init__(self, msg): self.msg = msg def gerar_evento(self, tempo): """ Método que gera evento levando em conta tempo de execução. :return: Instancia de Evento ou Nulo se não for para gerar envento ...
27.569767
95
0.660059
2,294
0.964271
0
0
0
0
0
0
581
0.24422
aa4862c705ed37c155085f64db48e3e7e6b55b7d
4,221
py
Python
tests/api/v1/test_bucketlist_endpoint.py
Elbertbiggs360/buckelist-api
1fd6a857c45aafa55b39d3c215b1e69e0b23c33b
[ "MIT" ]
null
null
null
tests/api/v1/test_bucketlist_endpoint.py
Elbertbiggs360/buckelist-api
1fd6a857c45aafa55b39d3c215b1e69e0b23c33b
[ "MIT" ]
18
2017-08-22T11:44:19.000Z
2021-02-02T07:16:59.000Z
tests/api/v1/test_bucketlist_endpoint.py
Elbertbiggs360/buckelist-api
1fd6a857c45aafa55b39d3c215b1e69e0b23c33b
[ "MIT" ]
null
null
null
import json from tests.base_test import BaseCase from app.models.bucketlist import Bucketlist class TestBucketlistEndpoint(BaseCase): ''' A class to test the bucketlist endpoints ''' def setUp(self): super(TestBucketlistEndpoint, self).setUp() self.bucketlist_data = {'name': 'Eat Sushi'} ...
48.517241
110
0.615731
4,124
0.97702
0
0
0
0
0
0
618
0.146411
a4aaff7e2edd9e94de8ad787fca6f95714a7b0d5
6,256
py
Python
lib/SetAPI/readsalignment/ReadsAlignmentSetInterfaceV1.py
r2sunita/SetAPI
4ed769ed9678c057c7ded05fb93b9b7dc0874fc2
[ "MIT" ]
null
null
null
lib/SetAPI/readsalignment/ReadsAlignmentSetInterfaceV1.py
r2sunita/SetAPI
4ed769ed9678c057c7ded05fb93b9b7dc0874fc2
[ "MIT" ]
null
null
null
lib/SetAPI/readsalignment/ReadsAlignmentSetInterfaceV1.py
r2sunita/SetAPI
4ed769ed9678c057c7ded05fb93b9b7dc0874fc2
[ "MIT" ]
null
null
null
""" An interface for handling sets of ReadsAlignments. """ from pprint import pprint from SetAPI.generic.SetInterfaceV1 import SetInterfaceV1 from SetAPI import util class ReadsAlignmentSetInterfaceV1: def __init__(self, workspace_client): self.workspace_client = workspace_client self.set_interfa...
42.849315
101
0.597666
6,086
0.972826
0
0
0
0
0
0
2,211
0.353421
a4acbea04ae0ec385db1ca11483d127f5bbc49c8
3,193
py
Python
datacatalog/linkedstores/process/store.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
null
null
null
datacatalog/linkedstores/process/store.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
2
2019-07-25T15:39:04.000Z
2019-10-21T15:31:46.000Z
datacatalog/linkedstores/process/store.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
1
2019-10-15T14:33:44.000Z
2019-10-15T14:33:44.000Z
import collections import inspect import json import jsonschema import os import sys from pprint import pprint from slugify import slugify from ...dicthelpers import data_merge from ..basestore import LinkedStore, linkages from ..basestore import HeritableDocumentSchema, JSONSchemaCollection, formatChecker from ..base...
36.701149
103
0.665832
2,463
0.771375
0
0
0
0
0
0
459
0.143752
a4af9051ce0c393008d96458e2c2f3dce09ae68a
3,514
py
Python
tests/clickhouse/test_columns.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
tests/clickhouse/test_columns.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
tests/clickhouse/test_columns.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy import pytest from snuba.clickhouse.columns import ( UUID, AggregateFunction, Array, ColumnType, Date, DateTime, Enum, FixedString, Float, IPv4, IPv6, Nested, ReadOnly, ) from snuba.clickhouse.columns import SchemaModifiers as Modifier from ...
28.803279
87
0.584804
0
0
0
0
722
0.205464
0
0
562
0.159932
a4b1c460b6c065a467161df65796be109740e64e
5,851
py
Python
src/paddle_prompt/templates/base_template.py
wj-Mcat/paddle-prompt
3cc47c7cbda946fb9bc6e3032e8de17571e03cd4
[ "Apache-2.0" ]
1
2022-03-09T05:31:50.000Z
2022-03-09T05:31:50.000Z
src/paddle_prompt/templates/base_template.py
wj-Mcat/paddle-prompt
3cc47c7cbda946fb9bc6e3032e8de17571e03cd4
[ "Apache-2.0" ]
null
null
null
src/paddle_prompt/templates/base_template.py
wj-Mcat/paddle-prompt
3cc47c7cbda946fb9bc6e3032e8de17571e03cd4
[ "Apache-2.0" ]
null
null
null
"""Base Abstract Template class""" from __future__ import annotations import json from abc import ABC from collections import OrderedDict from typing import Any, Dict, List import numpy as np import paddle from paddle import nn from paddlenlp.transformers.tokenizer_utils import PretrainedTokenizer from paddle_prompt...
33.626437
114
0.635105
4,860
0.830627
0
0
0
0
0
0
1,355
0.231584
a4b236a4945b4b773f1daf37ffb005ccfb83b552
2,538
py
Python
tests/test_eulerian.py
guojingyu/DeNovoAssembly
cd1f3e58c42f97197e73aed085ede07a924ebbdb
[ "MIT" ]
4
2018-09-03T03:09:21.000Z
2022-03-15T12:57:07.000Z
tests/test_eulerian.py
guojingyu/DeNovoAssembly
cd1f3e58c42f97197e73aed085ede07a924ebbdb
[ "MIT" ]
null
null
null
tests/test_eulerian.py
guojingyu/DeNovoAssembly
cd1f3e58c42f97197e73aed085ede07a924ebbdb
[ "MIT" ]
3
2017-04-24T07:29:23.000Z
2020-08-13T07:13:06.000Z
#!/usr/bin/env python """ Test eulerian functions including the random walk Author : Jingyu Guo """ import unittest from de_novo_assembly.de_bruijn_graph import DeBruijnGraph from Bio.SeqRecord import SeqRecord from de_novo_assembly.eulerian import has_euler_path, has_euler_circuit, \ make_contig_from_path, eule...
35.25
77
0.559102
2,193
0.864066
0
0
0
0
0
0
469
0.184791
a4b259e11338f6d5c17641cccb402a501cd51358
25,351
py
Python
gameevents/tests/test_gameevents.py
danilovbarbosa/sg-gameevents
839de019fb6026c5a9d3178d3109cb2948f19f09
[ "Apache-2.0" ]
null
null
null
gameevents/tests/test_gameevents.py
danilovbarbosa/sg-gameevents
839de019fb6026c5a9d3178d3109cb2948f19f09
[ "Apache-2.0" ]
null
null
null
gameevents/tests/test_gameevents.py
danilovbarbosa/sg-gameevents
839de019fb6026c5a9d3178d3109cb2948f19f09
[ "Apache-2.0" ]
1
2018-09-28T00:03:29.000Z
2018-09-28T00:03:29.000Z
import unittest import time import datetime import json import sys #import base64 #from werkzeug.wrappers import Response sys.path.append("..") #from flask import current_app #from werkzeug.datastructures import Headers from gameevents_app import create_app #Extensions from gameevents_app.extensions import db, LO...
42.535235
122
0.549051
24,609
0.970731
0
0
4,107
0.162005
0
0
7,675
0.302749
a4b2c4045c07be3b84327e571cdbd1e25cc17fb5
7,810
py
Python
regions/core/regions.py
dhomeier/regions
5055128abda57c3b463f51ede0a6ac0ef5a0c698
[ "BSD-3-Clause" ]
46
2015-05-26T20:59:24.000Z
2022-03-31T04:57:50.000Z
regions/core/regions.py
dhomeier/regions
5055128abda57c3b463f51ede0a6ac0ef5a0c698
[ "BSD-3-Clause" ]
338
2015-05-15T20:33:35.000Z
2022-03-31T21:43:43.000Z
regions/core/regions.py
dhomeier/regions
5055128abda57c3b463f51ede0a6ac0ef5a0c698
[ "BSD-3-Clause" ]
49
2016-03-21T22:12:31.000Z
2022-03-29T21:50:25.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module provides a Regions class. """ from .core import Region from .registry import RegionsRegistry __all__ = ['Regions'] __doctest_skip__ = ['Regions.read', 'Regions.write', 'Regions.parse', 'Regions.serialize'] class Regi...
29.360902
71
0.554802
7,499
0.960179
0
0
2,710
0.346991
0
0
5,606
0.717798
a4b494c20c5b44b90d242f37feb5161e7c33c729
9,254
py
Python
main.py
rhaksar/control-percolation
d44d7e820eb49c9234cd3dc91383f63938ff67a8
[ "MIT" ]
1
2020-11-04T17:38:08.000Z
2020-11-04T17:38:08.000Z
main.py
rhaksar/control-percolation
d44d7e820eb49c9234cd3dc91383f63938ff67a8
[ "MIT" ]
null
null
null
main.py
rhaksar/control-percolation
d44d7e820eb49c9234cd3dc91383f63938ff67a8
[ "MIT" ]
null
null
null
from collections import defaultdict import itertools import numpy as np import pickle import time import warnings from Analysis import binomial_pgf, BranchModel, StaticModel from simulators.fires.UrbanForest import UrbanForest from Policies import NCTfires, UBTfires, DWTfires, RHTfires, USTfires from Utilities import ...
41.3125
123
0.600173
0
0
0
0
0
0
0
0
2,560
0.276637
a4b54184c984255e498a3de14e79351b3cf349d8
20,265
py
Python
tests/functional/test_create.py
AgeOfLearning/uget-cli
ecaa54db9c9a6bd22f3ce2099b28828ea42cb853
[ "MIT" ]
1
2019-03-03T21:19:51.000Z
2019-03-03T21:19:51.000Z
tests/functional/test_create.py
AgeOfLearning/uget-cli
ecaa54db9c9a6bd22f3ce2099b28828ea42cb853
[ "MIT" ]
3
2018-12-31T20:11:03.000Z
2021-11-15T17:47:57.000Z
tests/functional/test_create.py
AgeOfLearning/uget-cli
ecaa54db9c9a6bd22f3ce2099b28828ea42cb853
[ "MIT" ]
2
2019-02-14T01:08:57.000Z
2019-03-03T21:19:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Functional tests for `ugetcli` package - `create` command. Tests functionality of the cli create command with various options. """ import os import unittest import json from click.testing import CliRunner from mock import MagicMock, patch from ugetcli import cli from...
45.952381
105
0.68527
19,902
0.982087
0
0
19,730
0.9736
0
0
5,714
0.281964
a4b57a11801845ae45bfa0a0f8490e4b89315ce3
1,647
py
Python
hackerrank/calc_missing.py
capac/python-exercises
0fa58401d160a702a8cfba3f406275f857e7a203
[ "MIT" ]
null
null
null
hackerrank/calc_missing.py
capac/python-exercises
0fa58401d160a702a8cfba3f406275f857e7a203
[ "MIT" ]
null
null
null
hackerrank/calc_missing.py
capac/python-exercises
0fa58401d160a702a8cfba3f406275f857e7a203
[ "MIT" ]
null
null
null
#! /usr/bin/env python import re import pandas as pd from numpy import interp import os from pathlib import Path home = os.environ['HOME'] home_dir = Path(home) work_dir = home_dir / 'Programming/Python/python-exercises/hackerrank' # 12/14/2012 16:00:00 Missing_19 pattern = re.compile(r'(\d{1,2}/\d{1,2}/2012)\s+(16:...
28.396552
94
0.64238
0
0
0
0
0
0
0
0
788
0.478446
a4ba8f00534df85c91df0dc9eef6fe48f92deb79
3,777
py
Python
qcloudsdkvod/ApplyUploadRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkvod/ApplyUploadRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkvod/ApplyUploadRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from qcloudsdkcore.request import Request class ApplyUploadRequest(Request): def __init__(self): super(ApplyUploadRequest, self).__init__( 'vod', 'qcloudcliV1', 'ApplyUpload', 'vod.api.qcloud.com') def get_SubAppId(self): return self.get_params().get('SubA...
29.053846
70
0.681758
3,708
0.981732
0
0
0
0
0
0
570
0.150913
a4bc05d694bb4b337955eefcda743bc5c3c76501
981
py
Python
Merge Sorted Array.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Merge Sorted Array.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Merge Sorted Array.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements initialized in nums1 and nums2 are m and n respectively. You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional elements from nums2. Ex...
25.153846
127
0.522936
557
0.567788
0
0
0
0
0
0
616
0.627931
a4bd94902475f23a476e7f0700e3dc819593d4d1
275
py
Python
test.py
stepan20000/MITx-6-00-1
850981013ab00cf476b01fa93130a38aaaea5aea
[ "MIT" ]
null
null
null
test.py
stepan20000/MITx-6-00-1
850981013ab00cf476b01fa93130a38aaaea5aea
[ "MIT" ]
null
null
null
test.py
stepan20000/MITx-6-00-1
850981013ab00cf476b01fa93130a38aaaea5aea
[ "MIT" ]
null
null
null
import string def foo(shift): shiftDict = {} for l in string.ascii_lowercase: shiftDict[l] = chr((ord(l) - 97 + shift)%26 + 97) for l in string.ascii_uppercase: shiftDict[l] = chr((ord(l) - 65 + shift)%26 + 65) return shiftDict print(foo(1))
25
57
0.603636
0
0
0
0
0
0
0
0
0
0
a4be3796f527611e790afc6213becfff4d63182b
1,936
py
Python
deepreg/model/loss/deform.py
agrimwood/DeepRegFromMain20200714
1a1b82ca1e09ee03b1a04f35e192e3230be1c2eb
[ "Apache-2.0" ]
null
null
null
deepreg/model/loss/deform.py
agrimwood/DeepRegFromMain20200714
1a1b82ca1e09ee03b1a04f35e192e3230be1c2eb
[ "Apache-2.0" ]
null
null
null
deepreg/model/loss/deform.py
agrimwood/DeepRegFromMain20200714
1a1b82ca1e09ee03b1a04f35e192e3230be1c2eb
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf def local_displacement_energy(ddf, energy_type, **kwargs): def gradient_dx(fv): return (fv[:, 2:, 1:-1, 1:-1] - fv[:, :-2, 1:-1, 1:-1]) / 2 def gradient_dy(fv): return (fv[:, 1:-1, 2:, 1:-1] - fv[:, 1:-1, :-2, 1:-1]) / 2 def gradient_dz(fv): return (fv[:, ...
35.2
70
0.571798
0
0
0
0
0
0
0
0
57
0.029442
a4bf181a35293cbead4d6b8183631e557900dd73
1,271
py
Python
sa/profiles/Generic/get_inventory.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/Generic/get_inventory.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/Generic/get_inventory.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Generic.get_inventory # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # NOC modul...
31
71
0.487018
843
0.663257
0
0
0
0
0
0
532
0.418568
a4c11ca7582fc66a6f41cd73075b425763f4d114
2,514
py
Python
pirates/uberdog/DistributedAvatarManager.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/uberdog/DistributedAvatarManager.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/uberdog/DistributedAvatarManager.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.uberdog.DistributedAvatarManager from otp.uberdog.OtpAvatarManager import OtpAvatarManager from otp.otpbase import OTPGlobals c...
43.344828
228
0.648767
2,195
0.873111
0
0
0
0
0
0
440
0.17502
a4c132843d17f9507a14b314301300f42b750e05
240
py
Python
src/the_tale/the_tale/game/roads/admin.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/game/roads/admin.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/game/roads/admin.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() class RoadAdmin(django_admin.ModelAdmin): list_display = ('id', 'point_1', 'point_2', 'length') list_filter = ('point_1', 'point_2') django_admin.site.register(models.Road, RoadAdmin)
17.142857
57
0.720833
141
0.5875
0
0
0
0
0
0
48
0.2
a4c21f79ab6644142bcaa20009e1b5182faf4d57
287
py
Python
test.py
lexibank/asjp
309d372b89c92d7013284d281023b23ca5d68524
[ "CC-BY-4.0" ]
null
null
null
test.py
lexibank/asjp
309d372b89c92d7013284d281023b23ca5d68524
[ "CC-BY-4.0" ]
15
2018-04-25T10:11:30.000Z
2021-04-26T11:19:24.000Z
test.py
lexibank/asjp
309d372b89c92d7013284d281023b23ca5d68524
[ "CC-BY-4.0" ]
1
2019-06-18T11:57:38.000Z
2019-06-18T11:57:38.000Z
def test_valid(cldf_dataset, cldf_logger): assert cldf_dataset.validate(log=cldf_logger) def test_parameters(cldf_dataset): assert len(list(cldf_dataset["ParameterTable"])) == 100 def test_languages(cldf_dataset): assert len(list(cldf_dataset["LanguageTable"])) > 4000
23.916667
59
0.763066
0
0
0
0
0
0
0
0
31
0.108014
a4c29d9eb840f43da6d451a47b01364e9c6ce46c
5,040
py
Python
nicos_mlz/spodi/setups/special/monitor-html.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/spodi/setups/special/monitor-html.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/spodi/setups/special/monitor-html.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'setup for the status monitor' group = 'special' _expcolumn = Column( Block('Experiment', [ BlockRow( # Field(name='Proposal', key='exp/proposal', width=7), # Field(name='Title', key='exp/title', width=20, # istext=True, maxlen=20), Field(name...
23.551402
73
0.435317
0
0
0
0
0
0
0
0
1,188
0.235714
a4c36212e0c38956baeca1b3cd655252498a5ef0
4,400
bzl
Python
tools/tsec.bzl
brkgyln/angular
18dc2a9be021909f58ee21754a6ee09cec1ac1f0
[ "MIT" ]
null
null
null
tools/tsec.bzl
brkgyln/angular
18dc2a9be021909f58ee21754a6ee09cec1ac1f0
[ "MIT" ]
null
null
null
tools/tsec.bzl
brkgyln/angular
18dc2a9be021909f58ee21754a6ee09cec1ac1f0
[ "MIT" ]
null
null
null
"""Bazel rules and macros for running tsec over a ng_module or ts_library.""" load("@npm//@bazel/typescript/internal:ts_config.bzl", "TsConfigInfo") load("@build_bazel_rules_nodejs//:providers.bzl", "DeclarationInfo") load("@npm//tsec:index.bzl", _tsec_test = "tsec_test") TsecTsconfigInfo = provider(fields = ["src", ...
32.835821
100
0.635455
0
0
0
0
0
0
0
0
1,492
0.339091
a4c37699bb55af86cd094b707c4800bfc7f95014
805
py
Python
simulation_scripts/Q2.py
szwieback/BayesianTripleCollocation
a288b2a9ac547fdae389714dbdae1e34789f197b
[ "ECL-2.0" ]
null
null
null
simulation_scripts/Q2.py
szwieback/BayesianTripleCollocation
a288b2a9ac547fdae389714dbdae1e34789f197b
[ "ECL-2.0" ]
null
null
null
simulation_scripts/Q2.py
szwieback/BayesianTripleCollocation
a288b2a9ac547fdae389714dbdae1e34789f197b
[ "ECL-2.0" ]
2
2018-09-11T18:14:32.000Z
2021-09-12T07:45:53.000Z
''' Created on Jun 8, 2017 @author: zwieback ''' import numpy as np import os from simulation_internal import simulation_internal from simulation_paths import path def Q2_simulation(): ns = [100,250,500] nrep = 25 niter = 2000 nchains = 2 seed = 1234 scenarios = ['Q2kappa_base', 'Q2la...
27.758621
119
0.613665
0
0
0
0
0
0
0
0
123
0.152795
a4c5208b29478e543aa3e2775cb3f49127a4fde6
1,088
py
Python
app.py
giao-cloude/card
8ddc7b0cacd412a1cc15cb1c3d020463c79a33b6
[ "MIT" ]
null
null
null
app.py
giao-cloude/card
8ddc7b0cacd412a1cc15cb1c3d020463c79a33b6
[ "MIT" ]
null
null
null
app.py
giao-cloude/card
8ddc7b0cacd412a1cc15cb1c3d020463c79a33b6
[ "MIT" ]
null
null
null
#coding:utf-8 import tensorflow as tf import backward import forward import PreProcess as PP def restore_model(testArr): with tf.Graph().as_default() as tg: x = tf.placeholder(tf.float32, [None, forward.INPUT_NODE]) y = forward.forward(x, None) preValue = tf.argmax(y, 1) variable_averages = tf.train.Expone...
26.536585
86
0.726103
0
0
0
0
0
0
0
0
122
0.107584
a4c5246b1bb457ccf2adc163a51a115f0a845803
56
py
Python
utils/test_fm.py
dilum1995/DAugmentor
6cc86dccf826415a88b8226265e16ae96b5cc05b
[ "MIT" ]
1
2020-08-02T13:06:03.000Z
2020-08-02T13:06:03.000Z
utils/test_fm.py
dilum1995/DAugmentor
6cc86dccf826415a88b8226265e16ae96b5cc05b
[ "MIT" ]
null
null
null
utils/test_fm.py
dilum1995/DAugmentor
6cc86dccf826415a88b8226265e16ae96b5cc05b
[ "MIT" ]
null
null
null
from utils import constants as const print(const.PATH)
14
36
0.803571
0
0
0
0
0
0
0
0
0
0
a4c65724407b507d3c3575879bb612a5d9d25dea
20,619
py
Python
jsk_recognition/jsk_perception/node_scripts/openpose/pose_net.py
VT-ASIM-LAB/autoware.ai
211dff3bee2d2782cb10444272c5d98d1f30d33a
[ "Apache-2.0" ]
null
null
null
jsk_recognition/jsk_perception/node_scripts/openpose/pose_net.py
VT-ASIM-LAB/autoware.ai
211dff3bee2d2782cb10444272c5d98d1f30d33a
[ "Apache-2.0" ]
null
null
null
jsk_recognition/jsk_perception/node_scripts/openpose/pose_net.py
VT-ASIM-LAB/autoware.ai
211dff3bee2d2782cb10444272c5d98d1f30d33a
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import itertools, pkg_resources, sys from distutils.version import LooseVersion if LooseVersion(pkg_resources.get_distribution("chainer").version) >= LooseVersion('7.0.0') and \ sys.version_info.major == 2: print('''Please install chainer <= 7.0.0: sudo pip in...
49.564904
132
0.611135
18,242
0.884718
0
0
0
0
0
0
1,167
0.056598
a4c977d5b3a6032234335d5aeffe8536769352e7
4,073
py
Python
wxtbx/phil_controls/text_base.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
2
2021-03-18T12:31:57.000Z
2022-03-14T06:27:06.000Z
wxtbx/phil_controls/text_base.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
null
null
null
wxtbx/phil_controls/text_base.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
1
2020-02-04T15:39:06.000Z
2020-02-04T15:39:06.000Z
from __future__ import absolute_import, division, print_function from wxtbx import phil_controls import wxtbx from libtbx.utils import Abort, to_unicode, to_str from libtbx import Auto import wx import sys class ValidatedTextCtrl(wx.TextCtrl, phil_controls.PhilCtrl): def __init__(self, *args, **kwds): saved_val...
29.729927
77
0.667076
3,862
0.948195
0
0
0
0
0
0
594
0.145838
a4c983cf47d6c5bcf243e3a9a793a1b99475e9b4
20,235
py
Python
cogs/commands/misc/misc.py
DiscordGIR/Bloo
e23172950ebb664cc96d91222b35a90f7d9802c0
[ "MIT" ]
34
2021-10-30T16:48:28.000Z
2022-03-25T03:22:12.000Z
cogs/commands/misc/misc.py
DiscordGIR/Bloo
e23172950ebb664cc96d91222b35a90f7d9802c0
[ "MIT" ]
9
2021-11-19T04:25:29.000Z
2022-03-09T22:35:46.000Z
cogs/commands/misc/misc.py
DiscordGIR/Bloo
e23172950ebb664cc96d91222b35a90f7d9802c0
[ "MIT" ]
20
2021-11-05T21:14:59.000Z
2022-03-30T21:15:40.000Z
import base64 import datetime import io import json import traceback import aiohttp import discord import pytimeparse from data.services.guild_service import guild_service from discord.commands import Option, slash_command, message_command, user_command from discord.ext import commands from discord.utils import forma...
42.510504
247
0.629009
18,488
0.913213
0
0
14,292
0.705952
15,672
0.774117
5,593
0.276266
a4c9be815d012e1c1acce15131efcf8844daf07b
14,699
py
Python
src/preprocessing.py
smartdatalake/pathlearn
9bf76e6ffc4c16800f53ed4e4985e6f6f3674756
[ "Apache-2.0" ]
null
null
null
src/preprocessing.py
smartdatalake/pathlearn
9bf76e6ffc4c16800f53ed4e4985e6f6f3674756
[ "Apache-2.0" ]
null
null
null
src/preprocessing.py
smartdatalake/pathlearn
9bf76e6ffc4c16800f53ed4e4985e6f6f3674756
[ "Apache-2.0" ]
null
null
null
"""This module provides various functions used to read/write and generate the data structures used for Path Learn""" import networkx as nx import random as rnd import numpy as np import pandas as pd import os def find_single_paths(G, node, lim, paths_lim=float('inf')): """ :param G: A NetworkX graph. :pa...
32.023965
165
0.572148
0
0
0
0
0
0
0
0
5,109
0.347575
a4cad8e8992ae30f9b134717c3b3a0717a48b60e
9,781
py
Python
refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
103
2015-01-13T00:48:14.000Z
2021-11-08T10:53:22.000Z
refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
7
2015-02-21T04:03:40.000Z
2021-08-23T20:24:54.000Z
refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
27
2015-01-23T00:54:31.000Z
2020-12-30T14:30:50.000Z
''' Unit tests for MergeMove.py for HDPTopicModels Verification merging works as expected and produces valid models. Attributes ------------ self.Data : K=4 simple WordsData object from AbstractBaseTestForHDP self.hmodel : K=4 simple bnpy model from AbstractBaseTestForHDP Coverage ----------- * run_many_merge_moves...
42.71179
132
0.661896
8,773
0.896943
0
0
0
0
0
0
2,971
0.303752
a4cb13969e913f20fb909e4c665d75e81e4a9503
5,309
py
Python
bluzelle/codec/crud/Paging_pb2.py
hhio618/bluezelle-py
c38a07458a36305457680196e8c47372008db5ab
[ "MIT" ]
3
2021-08-19T10:09:29.000Z
2022-01-05T14:19:59.000Z
bluzelle/codec/crud/Paging_pb2.py
hhio618/bluzelle-py
c38a07458a36305457680196e8c47372008db5ab
[ "MIT" ]
null
null
null
bluzelle/codec/crud/Paging_pb2.py
hhio618/bluzelle-py
c38a07458a36305457680196e8c47372008db5ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: crud/Paging.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.pro...
30.687861
323
0.63722
0
0
0
0
0
0
0
0
1,258
0.236956
a4cb393ccfc40dfac226961281c5eae50416352c
2,249
py
Python
Python/Utilities/dater.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
Python/Utilities/dater.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
Python/Utilities/dater.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
import sys import time from datetime import datetime, timedelta import os import pathlib from watchdog.events import FileSystemEventHandler from watchdog.observers import Observer creation = "C:\\Date de création" today = "C:\\Date d'aujourd'hui" last_modification = "C:\\Date de dernière modification" class MyHandle...
36.274194
120
0.59004
1,627
0.72279
0
0
0
0
0
0
201
0.089294
a4cbc8eb1a90dacf94afc3353aa00d270b02f07d
7,956
py
Python
blendhunter/blend.py
andrevitorelli/BlendHunter
64e4c97e7e0995e2d3561300dff708ca86adb380
[ "MIT" ]
2
2019-07-01T15:12:50.000Z
2021-03-03T18:57:06.000Z
blendhunter/blend.py
ablacan/BlendHunter
2806648bcdd1b192457daf1c7ae1f90869deeca6
[ "MIT" ]
4
2021-04-27T11:31:17.000Z
2021-07-13T09:01:42.000Z
blendhunter/blend.py
ablacan/BlendHunter
2806648bcdd1b192457daf1c7ae1f90869deeca6
[ "MIT" ]
1
2022-02-10T13:39:54.000Z
2022-02-10T13:39:54.000Z
# -*- coding: utf-8 -*- """ BLEND This module defines classes and methods for blending images. :Author: Samuel Farrens <samuel.farrens@cea.fr> """ import numpy as np from lmfit import Model from lmfit.models import GaussianModel, ConstantModel from modopt.base.np_adjust import pad2d from sf_tools.image.stamp impor...
31.571429
79
0.54085
7,573
0.95186
0
0
4,896
0.615385
0
0
275
0.034565
a4cc37aae42aa69844101a9983d06cd085b2f1ce
1,159
py
Python
Guia/4.0-Estados_conversacion.py
nicosiebert2/telegram-bot
4d2a44382290f6fa3b94572cbeba344ef68c825d
[ "MIT" ]
null
null
null
Guia/4.0-Estados_conversacion.py
nicosiebert2/telegram-bot
4d2a44382290f6fa3b94572cbeba344ef68c825d
[ "MIT" ]
null
null
null
Guia/4.0-Estados_conversacion.py
nicosiebert2/telegram-bot
4d2a44382290f6fa3b94572cbeba344ef68c825d
[ "MIT" ]
null
null
null
import logging from telegram import InlineKeyboardButton, InlineKeyboardMarkup from telegram.ext import Updater, CommandHandler, CallbackQueryHandler, ConversationHandler #Obtener la info de la sesion logging.basicConfig(level = logging.INFO, format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s") logge...
27.595238
107
0.691113
0
0
0
0
0
0
0
0
263
0.22692
a4cde45972393a744163a78ff712575ad44f9c88
42,133
py
Python
src/radical/pilot/unit_manager.py
karahbit/radical.pilot
c611e1df781749deef899dcf5815728e1d8a962e
[ "MIT" ]
null
null
null
src/radical/pilot/unit_manager.py
karahbit/radical.pilot
c611e1df781749deef899dcf5815728e1d8a962e
[ "MIT" ]
null
null
null
src/radical/pilot/unit_manager.py
karahbit/radical.pilot
c611e1df781749deef899dcf5815728e1d8a962e
[ "MIT" ]
null
null
null
__copyright__ = "Copyright 2013-2016, http://radical.rutgers.edu" __license__ = "MIT" import os import time import threading as mt import radical.utils as ru from . import utils as rpu from . import states as rps from . import constants as rpc from . import compute_unit_description as rpcud # bulk call...
35.228261
84
0.515297
41,455
0.983908
0
0
245
0.005815
0
0
19,825
0.470534
a4cdf015552f19cc1e695e21a45142e408efd72b
11,130
py
Python
syncstream/file.py
cainmagi/sync-stream
8d50bd2c9f13071b057dd2583b80f63229f89b0e
[ "MIT" ]
null
null
null
syncstream/file.py
cainmagi/sync-stream
8d50bd2c9f13071b057dd2583b80f63229f89b0e
[ "MIT" ]
null
null
null
syncstream/file.py
cainmagi/sync-stream
8d50bd2c9f13071b057dd2583b80f63229f89b0e
[ "MIT" ]
null
null
null
#!python # -*- coding: UTF-8 -*- ''' ################################################################ # File-based stream synchronization. # @ Sync-stream # Produced by # Yuchen Jin @ cainmagi@gmail.com, # yjin4@uh.edu. # Requirements: (Pay attention to version) # python 3.6+ # fasteners 0.16+ # This m...
42.972973
123
0.591554
10,407
0.93504
0
0
252
0.022642
0
0
5,483
0.492633
a4d004f441fa442a8baa2ecc38cd15fb719c4976
1,636
py
Python
spatialtis/_plotting/__init__.py
Mr-Milk/SpatialTis
bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6
[ "Apache-2.0" ]
10
2020-07-14T13:27:35.000Z
2021-11-24T21:41:30.000Z
spatialtis/_plotting/__init__.py
Mr-Milk/SpatialTis
bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6
[ "Apache-2.0" ]
21
2021-01-10T09:39:25.000Z
2022-03-12T01:04:52.000Z
spatialtis/_plotting/__init__.py
Mr-Milk/SpatialTis
bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6
[ "Apache-2.0" ]
null
null
null
import matplotlib as mpl from matplotlib import cycler from .api import ( NCDMarkers, NMDMarkers, cell_co_occurrence, cell_components, cell_density, cell_map, cell_morphology, community_map, expression_map, neighborhood_analysis, neighbors_map, spatial_co_expression, ...
23.371429
47
0.575183
0
0
0
0
0
0
0
0
661
0.404034
a4d084b6842b2f5652d3fa521fd4534554cd0a32
518
py
Python
terminal.py
TeknohouseID/rumah_aria_graha_NEW_2018
c3513100f68ce57be477372bbc7176ddbde607ad
[ "Unlicense" ]
null
null
null
terminal.py
TeknohouseID/rumah_aria_graha_NEW_2018
c3513100f68ce57be477372bbc7176ddbde607ad
[ "Unlicense" ]
null
null
null
terminal.py
TeknohouseID/rumah_aria_graha_NEW_2018
c3513100f68ce57be477372bbc7176ddbde607ad
[ "Unlicense" ]
null
null
null
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) pin_terminal = [15,16] #definisi pin GPIO yg terhubung ke relay terminal GPIO.setup(pin_terminal, GPIO.OUT) def terminal_on(pin): #fungsi untuk menyalakan lampu (NC) GPIO.output(pin, 1) def terminal_off(pin): #fungsi untuk mematikan lampu (...
24.666667
96
0.758687
0
0
0
0
0
0
0
0
284
0.548263
a4d08644e553bef96fa074dce2bce8a5b53b58cb
722
py
Python
ListaExercicios1/exercicio21.py
GabrielSouzaGit/PythonStudies
49ec26d4ae45999695ab32f8e1f27587adb5ca4b
[ "MIT" ]
null
null
null
ListaExercicios1/exercicio21.py
GabrielSouzaGit/PythonStudies
49ec26d4ae45999695ab32f8e1f27587adb5ca4b
[ "MIT" ]
null
null
null
ListaExercicios1/exercicio21.py
GabrielSouzaGit/PythonStudies
49ec26d4ae45999695ab32f8e1f27587adb5ca4b
[ "MIT" ]
null
null
null
'''Escreva um programa que solicite ao usuário dois números e apresente na tela os resultados das operações aritméticas (soma, subtração, multiplicação, divisão, resto da divisão, exponenciação, radiciação)''' import math num1 = float(input('Informe um numero: ')) num2 = float(input('Informe outro numero: ')) print(f...
55.538462
111
0.742382
0
0
0
0
0
0
0
0
624
0.846676
a4d104f25c19782240064f16d0ff882042f1b364
2,706
py
Python
benchmarking/remote/django_url_printer.py
virtan/FAI-PEP
8641a54b2328c343ab0470f195a42da1021d1392
[ "Apache-2.0" ]
1
2019-08-09T07:50:21.000Z
2019-08-09T07:50:21.000Z
benchmarking/remote/django_url_printer.py
virtan/FAI-PEP
8641a54b2328c343ab0470f195a42da1021d1392
[ "Apache-2.0" ]
1
2021-04-19T09:50:14.000Z
2021-04-19T09:50:14.000Z
benchmarking/remote/django_url_printer.py
isabella232/FAI-PEP
a4089c79ab765e7f05080348c2978a07c3487d4c
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import json import os import urllib from remote.url_printer_base import URLPrinterBase from remote.url_printer_base import registerResultURL DJANGO_SUB_URL = "benchmark/visualize" DISPLAY_COLUMNS = [ "identifier", "metric", ...
25.528302
82
0.546194
2,221
0.820769
0
0
0
0
0
0
424
0.156689
a4d11f16c93cfceb962bd09ed2bcc56346026e31
4,595
py
Python
pynq_networking/lib/mqttsn_sw.py
Xilinx/PYNQ-Networking
b763121537e2973734d87e874c41012f044fb1f8
[ "BSD-3-Clause" ]
40
2017-10-19T20:36:59.000Z
2022-02-16T08:04:29.000Z
pynq_networking/lib/mqttsn_sw.py
drichmond/PYNQ-Networking
d9baf100dfbf8672b7fe9da108cbd2d26a289771
[ "BSD-3-Clause" ]
12
2018-02-13T19:51:14.000Z
2021-11-01T12:03:31.000Z
pynq_networking/lib/mqttsn_sw.py
drichmond/PYNQ-Networking
d9baf100dfbf8672b7fe9da108cbd2d26a289771
[ "BSD-3-Clause" ]
13
2018-01-05T01:39:35.000Z
2020-12-10T16:21:07.000Z
# Copyright (c) 2017, Xilinx, 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: # # 1. Redistributions of source code must retain the above copyright notice, # this list of con...
35.346154
79
0.641785
2,349
0.511208
0
0
0
0
0
0
2,253
0.490316