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
b9edd7dbf25e820fdbc6faa76fd63ef5d9d3ec94
1,090
py
Python
appengine/components/tests/datastore_utils_properties_test.py
pombreda/swarming
c70f311f3db8f25752c793a0d7b36cf537d95580
[ "Apache-2.0" ]
null
null
null
appengine/components/tests/datastore_utils_properties_test.py
pombreda/swarming
c70f311f3db8f25752c793a0d7b36cf537d95580
[ "Apache-2.0" ]
null
null
null
appengine/components/tests/datastore_utils_properties_test.py
pombreda/swarming
c70f311f3db8f25752c793a0d7b36cf537d95580
[ "Apache-2.0" ]
1
2021-12-06T03:37:36.000Z
2021-12-06T03:37:36.000Z
#!/usr/bin/env python # Copyright 2014 The Swarming Authors. All rights reserved. # Use of this source code is governed by the Apache v2.0 license that can be # found in the LICENSE file. import sys import unittest import test_env test_env.setup_test_env() from google.appengine.ext import ndb from components.datast...
23.695652
76
0.713761
596
0.546789
0
0
0
0
0
0
228
0.209174
b9ef242e4a5b9cd66209cacaae0f38bad7d2a39e
128,492
py
Python
neutron/tests/unit/services/qos/test_qos_plugin.py
dangervon/neutron
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/services/qos/test_qos_plugin.py
dangervon/neutron
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/services/qos/test_qos_plugin.py
dangervon/neutron
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
45.742969
79
0.617556
126,419
0.983867
0
0
13,018
0.101314
0
0
18,391
0.14313
b9ef252652f99c5c9feffaab6f06bdbb7fe7dd89
953
py
Python
covfefe/covfefe.py
fixator10/Trusty-cogs
3d47a63f562cb64eb44da6bb53cfe9f8324026e7
[ "MIT" ]
148
2017-04-23T19:57:50.000Z
2022-03-12T06:59:58.000Z
covfefe/covfefe.py
mina9999/Trusty-cogs
a47de7c233f3c1802effd29f4a86f8a9b0e2b34a
[ "MIT" ]
155
2018-01-01T13:27:45.000Z
2022-03-12T05:17:51.000Z
covfefe/covfefe.py
mina9999/Trusty-cogs
a47de7c233f3c1802effd29f4a86f8a9b0e2b34a
[ "MIT" ]
221
2017-04-02T00:26:08.000Z
2022-03-26T15:06:54.000Z
import re import discord from redbot.core import commands class Covfefe(commands.Cog): """ Convert almost any word into covfefe """ def __init__(self, bot): self.bot = bot async def covfefe(self, x, k="aeiouy])"): """ https://codegolf.stackexchange.com/a/123697 "...
24.435897
79
0.541448
891
0.934942
0
0
292
0.306401
711
0.746065
294
0.308499
b9ef44f166a7664004d3feffe782db268867e247
1,487
py
Python
src/api/bkuser_core/audit/views.py
trueware/bk-user
8c633e0a3821beb839ed120c4514c5733e675862
[ "MIT" ]
null
null
null
src/api/bkuser_core/audit/views.py
trueware/bk-user
8c633e0a3821beb839ed120c4514c5733e675862
[ "MIT" ]
null
null
null
src/api/bkuser_core/audit/views.py
trueware/bk-user
8c633e0a3821beb839ed120c4514c5733e675862
[ "MIT" ]
1
2021-12-31T06:48:41.000Z
2021-12-31T06:48:41.000Z
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
45.060606
115
0.799597
585
0.389222
0
0
0
0
0
0
737
0.490353
b9ef4b5c2209cb05949e60eccf8cd9158602e350
4,784
py
Python
exp_gqa/test.py
ronghanghu/gqa_single_hop_baseline
332d342da60dfefd40f2364d60215ed2f191aa2d
[ "BSD-2-Clause" ]
19
2019-08-19T18:09:26.000Z
2021-08-29T15:58:30.000Z
exp_gqa/test.py
ronghanghu/gqa_single_hop_baseline
332d342da60dfefd40f2364d60215ed2f191aa2d
[ "BSD-2-Clause" ]
1
2019-11-24T14:36:29.000Z
2019-12-11T08:33:12.000Z
exp_gqa/test.py
ronghanghu/gqa_single_hop_baseline
332d342da60dfefd40f2364d60215ed2f191aa2d
[ "BSD-2-Clause" ]
1
2019-10-30T05:55:52.000Z
2019-10-30T05:55:52.000Z
import os import numpy as np import tensorflow as tf from models_gqa.model import Model from models_gqa.config import build_cfg_from_argparse from util.gqa_train.data_reader import DataReader import json # Load config cfg = build_cfg_from_argparse() # Start session os.environ["CUDA_VISIBLE_DEVICES"] = str(cfg.GPU_ID...
40.201681
79
0.713002
0
0
0
0
0
0
0
0
775
0.161998
b9efb93e53325ce5948d495ecf3a99ce26893591
2,071
py
Python
extract_gear/armor_visitor.py
kamerons/dde-extract-gear
44464ae470bd5de6279d32e3587b469ce006ea42
[ "Apache-2.0" ]
null
null
null
extract_gear/armor_visitor.py
kamerons/dde-extract-gear
44464ae470bd5de6279d32e3587b469ce006ea42
[ "Apache-2.0" ]
null
null
null
extract_gear/armor_visitor.py
kamerons/dde-extract-gear
44464ae470bd5de6279d32e3587b469ce006ea42
[ "Apache-2.0" ]
null
null
null
class ArmorVisitor: def __init__(self, num_pages, first_page_col_start, first_page_row_start, last_page_row_start, last_page_col_end, last_page_row_end, num_col_page=5, num_row_page=3): self.num_pages = num_pages self.first_page_col_start = first_page_col_start self.first_page_row_start = first_page_...
32.873016
110
0.718493
2,067
0.998069
0
0
0
0
0
0
0
0
b9f15c3b93c89d0226f4f6b8fd7503987d856e88
542
py
Python
gamla/url_utils_test.py
hyroai/gamla
bfa05807685bd51cba7c4c9cc47f1f5e73e6f7ee
[ "MIT" ]
17
2020-03-19T08:40:39.000Z
2022-03-06T14:43:35.000Z
gamla/url_utils_test.py
hyroai/gamla
bfa05807685bd51cba7c4c9cc47f1f5e73e6f7ee
[ "MIT" ]
39
2020-04-13T16:52:43.000Z
2022-03-24T08:30:49.000Z
gamla/url_utils_test.py
uriva/gamla
65b450a7761cbc13bdbc7a4216003932f18cf433
[ "MIT" ]
2
2019-11-13T15:13:51.000Z
2019-12-10T15:19:04.000Z
from gamla import url_utils def test_add_to_query_string1(): assert ( url_utils.add_to_query_string( {"a": 123}, "https://www.domain.com/path?param1=param1#anchor", ) == "https://www.domain.com/path?param1=param1&a=123#anchor" ) def test_add_to_query_string2()...
24.636364
67
0.586716
0
0
0
0
0
0
0
0
214
0.394834
b9f25a250dce61318cad2d5bfa0bebb70f70d2dc
1,071
py
Python
examples/temp_feie_shetland.py
nilsmkMET/roppy
c68d698fa4970174af2c7f7137bd4a3e5983b644
[ "MIT" ]
null
null
null
examples/temp_feie_shetland.py
nilsmkMET/roppy
c68d698fa4970174af2c7f7137bd4a3e5983b644
[ "MIT" ]
null
null
null
examples/temp_feie_shetland.py
nilsmkMET/roppy
c68d698fa4970174af2c7f7137bd4a3e5983b644
[ "MIT" ]
null
null
null
import numpy as np from netCDF4 import Dataset # Import development version of roppy import sys sys.path = ['..'] + sys.path import roppy # --- EDIT ----------------- # ROMS file romsfile = 'data/ocean_avg_example.nc' # Section definition lon0, lat0 = -0.67, 60.75 # Shetland lon1, lat1 = 4.72, 60.75 # Feie # --...
22.787234
74
0.6676
0
0
0
0
0
0
0
0
553
0.51634
b9f401385afbe018601c2bef20e53c9b587fb7df
485
py
Python
examples/test_scalar_field.py
gemini3d/pv-gemini
99dff15b43a2c93cbcb63d2f8946d425d0555ef3
[ "Apache-2.0" ]
null
null
null
examples/test_scalar_field.py
gemini3d/pv-gemini
99dff15b43a2c93cbcb63d2f8946d425d0555ef3
[ "Apache-2.0" ]
null
null
null
examples/test_scalar_field.py
gemini3d/pv-gemini
99dff15b43a2c93cbcb63d2f8946d425d0555ef3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ example of 3D scalar field If you get this error, ParaView doesn't know your data file format: TypeError: TestFileReadability argument %Id: %V """ from pathlib import Path import argparse import paraview.simple as pvs p = argparse.ArgumentParser() p.add_argument("fn", help="data file to l...
20.208333
75
0.740206
0
0
0
0
0
0
0
0
225
0.463918
b9f4182f4b0683cbf4f51c72cef042f5acb55553
341
py
Python
src/cms/forms/languages/language_form.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
null
null
null
src/cms/forms/languages/language_form.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
null
null
null
src/cms/forms/languages/language_form.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
null
null
null
from django import forms from ...models import Language class LanguageForm(forms.ModelForm): """ Form for creating and modifying language objects """ class Meta: model = Language fields = [ "code", "english_name", "native_name", "text_d...
17.947368
52
0.548387
281
0.824047
0
0
0
0
0
0
113
0.331378
b9f437d2e63f9838da4ffa0491804e95e149a773
1,482
py
Python
search/forms.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
2
2019-11-01T20:50:35.000Z
2021-01-13T22:02:55.000Z
search/forms.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
search/forms.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
from django import forms from .models import * from server.models import * class ChoiceFieldNoValidation(forms.ChoiceField): def validate(self, value): pass class SaveSearchForm(forms.ModelForm): class Meta: model = SavedSearch fields = ('name',) class SearchRowForm(forms.ModelForm):...
27.962264
87
0.609312
1,400
0.944669
0
0
0
0
0
0
194
0.130904
b9f59c6c5e552b8bde064c8fa9f25427a65b2006
158,531
py
Python
pysnmp-with-texts/InternetThruway-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/InternetThruway-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/InternetThruway-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module InternetThruway-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/InternetThruway-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:58:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
127.231942
9,703
0.781809
2,594
0.016363
0
0
0
0
0
0
49,652
0.313201
b9f67833672023bef782862284907976acb9371f
2,216
py
Python
newsparser.py
antoreep-jana/BBC-News-Analyzer
0a6e54ddf4baefa4532213c5e6f60e712ff3a1ca
[ "MIT" ]
1
2021-12-27T12:57:07.000Z
2021-12-27T12:57:07.000Z
newsparser.py
antoreep-jana/BBC-News-Analyzer
0a6e54ddf4baefa4532213c5e6f60e712ff3a1ca
[ "MIT" ]
null
null
null
newsparser.py
antoreep-jana/BBC-News-Analyzer
0a6e54ddf4baefa4532213c5e6f60e712ff3a1ca
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup as bs import requests class BBC: def __init__(self, url:str): article = requests.get(url) self.soup = bs(article.content, "html.parser") #print(dir(self.soup)) #print(self.soup.h1.text) self.body = self.get_body() self.link = url ...
28.410256
98
0.564982
1,921
0.866877
0
0
0
0
0
0
859
0.387635
b9f73f41171ea9b93f4f79bc336c9fe6927dba89
2,044
py
Python
SIR_model-Copy.Caroline.1.py
Caroline-Odevall/final-project-team-18
fbf00ae4ec554dee9245a9834ff4108b3d339842
[ "MIT" ]
null
null
null
SIR_model-Copy.Caroline.1.py
Caroline-Odevall/final-project-team-18
fbf00ae4ec554dee9245a9834ff4108b3d339842
[ "MIT" ]
null
null
null
SIR_model-Copy.Caroline.1.py
Caroline-Odevall/final-project-team-18
fbf00ae4ec554dee9245a9834ff4108b3d339842
[ "MIT" ]
null
null
null
# In[42]: from scipy.integrate import odeint import numpy as np import matplotlib.pyplot as plt # In[43]: # describe the model def deriv(y, t, N, beta, gamma, delta): S, E, I, R = y dSdt = -beta * S * I / N # S(t) – susceptible (de som är mottagliga för infektion). dEdt = beta * S * I / N - gamma * ...
24.333333
137
0.630137
0
0
0
0
0
0
0
0
879
0.427114
b9f778c162a3f42e748bada544f1b060ab9f29ed
466
py
Python
Condicionales anidados.py
gcardosov/PythonAprendeOrg
0cad81f0a584c98389ca729a337d30581780e520
[ "MIT" ]
1
2018-03-07T05:26:12.000Z
2018-03-07T05:26:12.000Z
Condicionales anidados.py
gcardosov/PythonAprendeOrg
0cad81f0a584c98389ca729a337d30581780e520
[ "MIT" ]
null
null
null
Condicionales anidados.py
gcardosov/PythonAprendeOrg
0cad81f0a584c98389ca729a337d30581780e520
[ "MIT" ]
null
null
null
pregunta = input('trabajas desde casa? ') if pregunta == True: print 'Eres afortunado' if pregunta == False: print 'Trabajas fuera de casa' tiempo = input('Cuantos minutos haces al trabajo: ') if tiempo == 0: print 'trabajas desde casa' elif tiempo <=20: print 'Es po...
20.26087
57
0.583691
0
0
0
0
0
0
0
0
180
0.386266
b9f8215f5040fa71b2646d52a053545a92c3fd12
1,681
py
Python
app/middleware/cache_headers.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
9
2020-08-17T11:01:48.000Z
2022-01-17T22:24:13.000Z
app/middleware/cache_headers.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
100
2020-08-14T05:56:40.000Z
2022-03-01T22:39:58.000Z
app/middleware/cache_headers.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
3
2020-09-02T14:01:07.000Z
2021-07-27T06:30:26.000Z
import logging import re from urllib.parse import urlparse from django.conf import settings from django.utils.cache import add_never_cache_headers from django.utils.cache import patch_cache_control from django.utils.cache import patch_response_headers logger = logging.getLogger(__name__) STAC_BASE = settings.STAC_BA...
32.960784
96
0.662701
1,320
0.785247
0
0
0
0
0
0
532
0.316478
b9f87264f50f9243a592053fcbe97aca0b8c2377
2,818
py
Python
mmdet/models/detectors/knowledge_distilling/kd_single_stage.py
anorthman/mmdetection
52e28154364f0e19d11c206bb357d88f29fc4a2d
[ "Apache-2.0" ]
5
2019-06-11T11:08:54.000Z
2021-03-25T10:06:01.000Z
mmdet/models/detectors/knowledge_distilling/kd_single_stage.py
anorthman/mmdetection
52e28154364f0e19d11c206bb357d88f29fc4a2d
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/knowledge_distilling/kd_single_stage.py
anorthman/mmdetection
52e28154364f0e19d11c206bb357d88f29fc4a2d
[ "Apache-2.0" ]
1
2019-06-11T11:08:55.000Z
2019-06-11T11:08:55.000Z
# author huangchuanhong import torch from mmcv.runner import load_checkpoint from ..base import BaseDetector from ..single_stage import SingleStageDetector from ...registry import DETECTORS from ...builder import build_detector @DETECTORS.register_module class KDSingleStageDetector(SingleStageDetector): def __ini...
42.059701
112
0.551455
2,560
0.908446
0
0
2,587
0.918027
0
0
23
0.008162
b9f8cb65181ebad752b9a810d28cc601137f1877
4,518
py
Python
metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_dial_turn_v2.py
yiwc/robotics-world
48efda3a8ea6741b35828b02860f45753252e376
[ "MIT" ]
681
2019-09-09T19:34:37.000Z
2022-03-31T12:17:58.000Z
metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_dial_turn_v2.py
yiwc/robotics-world
48efda3a8ea6741b35828b02860f45753252e376
[ "MIT" ]
212
2019-09-18T14:43:44.000Z
2022-03-27T22:21:00.000Z
metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_dial_turn_v2.py
yiwc/robotics-world
48efda3a8ea6741b35828b02860f45753252e376
[ "MIT" ]
157
2019-09-12T05:06:05.000Z
2022-03-29T14:47:24.000Z
import numpy as np from gym.spaces import Box from metaworld.envs import reward_utils from metaworld.envs.asset_path_utils import full_v2_path_for from metaworld.envs.mujoco.sawyer_xyz.sawyer_xyz_env import SawyerXYZEnv, _assert_task_is_set class SawyerDialTurnEnvV2(SawyerXYZEnv): TARGET_RADIUS = 0.07 def _...
31.816901
93
0.599823
4,273
0.945772
0
0
692
0.153165
0
0
253
0.055998
b9fa33196acc6d33e769b7c8e96ca3b00aeee8cc
237
wsgi
Python
obviforum/obviforum.wsgi
dcloutman/obviforum
31af0cf6f2e243bff9d920276831415bd5210cf9
[ "MIT" ]
null
null
null
obviforum/obviforum.wsgi
dcloutman/obviforum
31af0cf6f2e243bff9d920276831415bd5210cf9
[ "MIT" ]
null
null
null
obviforum/obviforum.wsgi
dcloutman/obviforum
31af0cf6f2e243bff9d920276831415bd5210cf9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import logging import os logging.basicConfig(stream=sys.stderr) file_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, file_dir) from main import app as application from main import db
23.7
54
0.797468
0
0
0
0
0
0
0
0
21
0.088608
b9fa7c6bd7a253ee2a588381042c5dfd3d99cb96
2,560
py
Python
yezdi/parser/parser.py
ragsagar/yezdi
5b97bedc56d5af7f28b244a0d7c0c8259f643102
[ "MIT" ]
1
2021-04-27T20:07:42.000Z
2021-04-27T20:07:42.000Z
yezdi/parser/parser.py
ragsagar/yezdi
5b97bedc56d5af7f28b244a0d7c0c8259f643102
[ "MIT" ]
null
null
null
yezdi/parser/parser.py
ragsagar/yezdi
5b97bedc56d5af7f28b244a0d7c0c8259f643102
[ "MIT" ]
null
null
null
from yezdi.lexer.token import TokenType from yezdi.parser.ast import Program, Statement, Participant, Title, LineStatement class Parser: def __init__(self, lexer): self.lexer = lexer self.current_token = None self.peek_token = None self.next_token() self.next_token() ...
32
86
0.640625
2,431
0.949609
0
0
0
0
0
0
0
0
b9fae34b418d8854a4b364f1044c114896456110
1,050
py
Python
scripts/check_categories.py
oberron/entolusis
209e1e245d8e501e5e6ea2f52dd5b0da7d886f5c
[ "MIT" ]
null
null
null
scripts/check_categories.py
oberron/entolusis
209e1e245d8e501e5e6ea2f52dd5b0da7d886f5c
[ "MIT" ]
null
null
null
scripts/check_categories.py
oberron/entolusis
209e1e245d8e501e5e6ea2f52dd5b0da7d886f5c
[ "MIT" ]
null
null
null
# list categories in category folder from os import walk from os.path import abspath,join, pardir categories_folder = abspath(join(__file__,pardir,pardir,"category")) post_folder = abspath(join(__file__,pardir,pardir,"_posts")) site_categories = [] for root,directories,files in walk(categories_folder): for f in ...
36.206897
68
0.578095
0
0
0
0
0
0
0
0
108
0.102857
b9fb43e9d0e20574f25b444b461b284752a17b4c
5,311
py
Python
docsrc/makedoc.py
syoyo/soloud
cce88a2408a4b1e88ccbc75de9897b39bc3e7dda
[ "Libpng", "Zlib" ]
1
2019-11-25T11:32:09.000Z
2019-11-25T11:32:09.000Z
docsrc/makedoc.py
syoyo/soloud
cce88a2408a4b1e88ccbc75de9897b39bc3e7dda
[ "Libpng", "Zlib" ]
null
null
null
docsrc/makedoc.py
syoyo/soloud
cce88a2408a4b1e88ccbc75de9897b39bc3e7dda
[ "Libpng", "Zlib" ]
null
null
null
#!/usr/bin/env python3 """ builds documentation files from multimarkdown (mmd) source to various formats, including the web site and pdf. """ import subprocess import glob import os import sys import time import shutil src = [ "intro.mmd", "downloads.mmd", "quickstart.mmd", "faq.mmd", "dirstr...
34.940789
356
0.583129
0
0
0
0
0
0
0
0
2,775
0.5225
b9fc3dd10a80beed547f86b535cfadc6f817e0e2
4,872
tac
Python
6 复试/2 笔试/4 编译原理/hw/2016_黄家晖_PA/550405220_4_decaf_PA3/TestCases/S3/output/t9.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
1
2022-03-02T16:05:49.000Z
2022-03-02T16:05:49.000Z
6 复试/2 笔试/4 编译原理/hw/2016_黄家晖_PA/550405220_4_decaf_PA3/TestCases/S3/output/t9.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
null
null
null
6 复试/2 笔试/4 编译原理/hw/2016_黄家晖_PA/550405220_4_decaf_PA3/TestCases/S3/output/t9.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
null
null
null
VTABLE(_Main) { <empty> Main _Main.COPY; } VTABLE(_Base) { <empty> Base _Base.COPY; } VTABLE(_Sub1) { _Base Sub1 _Sub1.COPY; } VTABLE(_Sub2) { _Base Sub2 _Sub2.COPY; } VTABLE(_Sub3) { _Sub1 Sub3 _Sub3.COPY; } VTABLE(_Sub4) { _Sub3 Sub4 _Sub4.C...
15.76699
34
0.555829
0
0
0
0
0
0
0
0
156
0.03202
b9fc6312cdae3331d02a69bbbf58d767d486a41b
1,361
py
Python
arch/api/base/utils/party.py
yzjba/FATE
9a6d252da637b2583a0f8a51f6cb4c615850bab9
[ "Apache-2.0" ]
32
2020-06-12T08:39:58.000Z
2022-03-20T06:57:08.000Z
arch/api/base/utils/party.py
ErikSun2020/FATE
bdda535c7d8a974fc2c43102837964b7da199730
[ "Apache-2.0" ]
10
2020-11-13T18:55:48.000Z
2022-02-10T02:00:12.000Z
arch/api/base/utils/party.py
ErikSun2020/FATE
bdda535c7d8a974fc2c43102837964b7da199730
[ "Apache-2.0" ]
16
2020-06-12T06:51:46.000Z
2022-03-29T10:23:42.000Z
# # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
30.244444
79
0.683321
742
0.545187
0
0
0
0
0
0
704
0.517267
b9fd9ad743eac1d46c7b5d951facfcfa09dbb1bf
3,778
py
Python
src/sentry/options/defaults.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
src/sentry/options/defaults.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
src/sentry/options/defaults.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
""" sentry.options.defaults ~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function from sentry.logging import LoggingFormat from sentry.options import ( FLAG_IMMUTAB...
43.425287
95
0.75172
0
0
0
0
0
0
0
0
1,283
0.339598
b9ff46cab163507c14f9b26bf086ce4979f54a2c
4,972
py
Python
tools/unidatadownload.py
henryiii/backrefs
ec82844098bc3bdc7bcaa61b32f80271e6a73da6
[ "MIT" ]
null
null
null
tools/unidatadownload.py
henryiii/backrefs
ec82844098bc3bdc7bcaa61b32f80271e6a73da6
[ "MIT" ]
null
null
null
tools/unidatadownload.py
henryiii/backrefs
ec82844098bc3bdc7bcaa61b32f80271e6a73da6
[ "MIT" ]
null
null
null
"""Download `Unicodedata` files.""" from __future__ import unicode_literals import os import zipfile import codecs from urllib.request import urlopen __version__ = '2.2.0' HOME = os.path.dirname(os.path.abspath(__file__)) def zip_unicode(output, version): """Zip the Unicode files.""" zipper = zipfile.ZipFi...
32.927152
112
0.627715
0
0
0
0
0
0
0
0
1,600
0.321802
b9ffb7c6fff3e245dc8ea1ea786cc6f60c2d4cde
2,427
py
Python
generator/cache/cache.py
biarmic/OpenCache
bb9e110e434deb83900de328cc76b63901ba582f
[ "BSD-3-Clause" ]
5
2021-09-15T18:29:49.000Z
2022-03-26T04:41:01.000Z
generator/cache/cache.py
VLSIDA/OpenCache
0e79bf353c68d57dcc49d78178b12fd0b468f19a
[ "BSD-3-Clause" ]
null
null
null
generator/cache/cache.py
VLSIDA/OpenCache
0e79bf353c68d57dcc49d78178b12fd0b468f19a
[ "BSD-3-Clause" ]
null
null
null
# See LICENSE for licensing information. # # Copyright (c) 2021 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # import debug import datetime from policy import assoc...
33.246575
86
0.646477
2,059
0.848372
0
0
0
0
0
0
803
0.330861
b9ffed8a41299969ab07da01999635758df5ba4f
11,469
py
Python
utils/data_loader.py
elieser1101/loglizer
985c5f582fbbe4d6365184086ac091134a5b5d07
[ "MIT" ]
null
null
null
utils/data_loader.py
elieser1101/loglizer
985c5f582fbbe4d6365184086ac091134a5b5d07
[ "MIT" ]
null
null
null
utils/data_loader.py
elieser1101/loglizer
985c5f582fbbe4d6365184086ac091134a5b5d07
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Shilin He' import pandas as pd import os import numpy as np def hdfs_data_loader(para): """ load the log sequence matrix and labels from the file path. Args: -------- para: the parameters dictionary Returns: -------- raw_data: log sequences matrix...
38.877966
168
0.717674
0
0
0
0
0
0
0
0
4,932
0.430029
6a00c6e63b457a75c0424a247757123821cb24fb
1,230
py
Python
aspx2url/aspx2url.py
marcocucinato/aspx2url
985a0e51865bb7be15618155ff9844730c2eaaf6
[ "MIT" ]
null
null
null
aspx2url/aspx2url.py
marcocucinato/aspx2url
985a0e51865bb7be15618155ff9844730c2eaaf6
[ "MIT" ]
null
null
null
aspx2url/aspx2url.py
marcocucinato/aspx2url
985a0e51865bb7be15618155ff9844730c2eaaf6
[ "MIT" ]
null
null
null
from __future__ import print_function import re, sys, glob, getopt, os def usage(): print('aspx2url v1.0') print('Usage:') print(sys.argv[0]+' -d -h filename(s)') print('-d : Delete original file') print('-h : This help') def main(): try: opts, args = getopt.getopt(sys.argv[1:], "hd")...
29.285714
77
0.530081
0
0
0
0
0
0
0
0
205
0.166667
6a00d6b8c83e85268bd294d4e512d54f000cfc8a
2,843
py
Python
pytype/tests/py2/test_stdlib.py
souravbadami/pytype
804fa97e7f9208df2711976085a96f756b3949e6
[ "Apache-2.0" ]
1
2020-04-20T02:55:21.000Z
2020-04-20T02:55:21.000Z
pytype/tests/py2/test_stdlib.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
pytype/tests/py2/test_stdlib.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
"""Tests of selected stdlib functions.""" from pytype.tests import test_base class StdlibTests(test_base.TargetPython27FeatureTest): """Tests for files in typeshed/stdlib.""" def testPosix(self): ty = self.Infer(""" import posix x = posix.urandom(10) """) self.assertTypesMatchPytd(ty, ""...
21.869231
61
0.518115
2,710
0.953218
0
0
0
0
0
0
1,862
0.654942
6a00f01d33da6c470fd1f865044516a818d9c018
88
py
Python
smmips/__init__.py
oicr-gsi/pysmmips
ccf209b13862a5533a11fbe02e80d3265ccef313
[ "MIT" ]
null
null
null
smmips/__init__.py
oicr-gsi/pysmmips
ccf209b13862a5533a11fbe02e80d3265ccef313
[ "MIT" ]
null
null
null
smmips/__init__.py
oicr-gsi/pysmmips
ccf209b13862a5533a11fbe02e80d3265ccef313
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Oct 20 16:04:52 2020 @author: rjovelin """
11
35
0.579545
0
0
0
0
0
0
0
0
85
0.965909
6a00f65f8d9c6385beccc2cbd3c37ef660b0dc52
6,343
py
Python
tarentsocialwall/MongoDBClient.py
tarent/socialwall-backend
2f09b8ccdd62a15daaa281d6ff568cb6ef749ab6
[ "MIT" ]
null
null
null
tarentsocialwall/MongoDBClient.py
tarent/socialwall-backend
2f09b8ccdd62a15daaa281d6ff568cb6ef749ab6
[ "MIT" ]
null
null
null
tarentsocialwall/MongoDBClient.py
tarent/socialwall-backend
2f09b8ccdd62a15daaa281d6ff568cb6ef749ab6
[ "MIT" ]
2
2019-08-06T14:14:44.000Z
2019-08-06T14:21:19.000Z
import random from datetime import datetime from passlib.handlers.sha2_crypt import sha256_crypt from pymongo import MongoClient from pymongo.errors import ConnectionFailure from tarentsocialwall.SocialPost import SocialPost from tarentsocialwall.User import User from tarentsocialwall.Util import Util class MongoDB...
33.036458
100
0.631405
6,035
0.951443
0
0
147
0.023175
0
0
894
0.140943
6a0102385be6299942545100e581de23300db9a4
76,697
py
Python
src/mount_efs/__init__.py
Sodki/efs-utils
493d9ea0dde93b560519b184219f6f71e32a8fcf
[ "MIT" ]
null
null
null
src/mount_efs/__init__.py
Sodki/efs-utils
493d9ea0dde93b560519b184219f6f71e32a8fcf
[ "MIT" ]
null
null
null
src/mount_efs/__init__.py
Sodki/efs-utils
493d9ea0dde93b560519b184219f6f71e32a8fcf
[ "MIT" ]
12
2020-10-22T03:47:51.000Z
2022-03-19T18:09:59.000Z
#!/usr/bin/env python # # Copyright 2017-2018 Amazon.com, Inc. and its affiliates. All Rights Reserved. # # Licensed under the MIT License. See the LICENSE accompanying this file # for the specific language governing permissions and limitations under # the License. # # # Copy this script to /sbin/mount.efs and make sur...
38.560583
130
0.680535
0
0
5,071
0.066117
3,928
0.051215
0
0
22,517
0.293584
6a01fe7f065ff8fbb40e8cf44137b52463e1417c
1,010
py
Python
upcfcardsearch/c8.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
upcfcardsearch/c8.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
upcfcardsearch/c8.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord.utils import get class c8(commands.Cog, name="c8"): def __init__(self, bot: commands.Bot): self.bot = bot @commands.command(name='Sacrosanct_Devouring_Pyre', aliases=['c8']) async def example_embed(self, ctx): embed = discord.Emb...
43.913043
195
0.687129
875
0.866337
0
0
769
0.761386
697
0.690099
351
0.347525
6a023f8c8af70de4e0b8e937c5773e7da489fab5
2,627
py
Python
SVMmodel_withSKF.py
tameney22/DCI-Capstone
6f59541f16030bfa3f0a706fd9f0e4394e1ee974
[ "MIT" ]
null
null
null
SVMmodel_withSKF.py
tameney22/DCI-Capstone
6f59541f16030bfa3f0a706fd9f0e4394e1ee974
[ "MIT" ]
null
null
null
SVMmodel_withSKF.py
tameney22/DCI-Capstone
6f59541f16030bfa3f0a706fd9f0e4394e1ee974
[ "MIT" ]
null
null
null
""" This script is where the preprocessed data is used to train the SVM model to perform the classification. I am using Stratified K-Fold Cross Validation to prevent bias and/or any imbalance that could affect the model's accuracy. REFERENCE: https://medium.com/@bedigunjit/simple-guide-to-text-classification-nlp-usin...
31.650602
132
0.760183
0
0
0
0
0
0
0
0
1,351
0.514275
6a046c97530ca1a780b9dd23d59ddcc8df166fa3
263
py
Python
red_dwarf/entrypoints/project_management.py
JesseMaitland/red-dwarf
f606ada43f4be72c5cab61049182b58c0c348602
[ "MIT" ]
null
null
null
red_dwarf/entrypoints/project_management.py
JesseMaitland/red-dwarf
f606ada43f4be72c5cab61049182b58c0c348602
[ "MIT" ]
null
null
null
red_dwarf/entrypoints/project_management.py
JesseMaitland/red-dwarf
f606ada43f4be72c5cab61049182b58c0c348602
[ "MIT" ]
null
null
null
from rsterm import EntryPoint from red_dwarf.project import provide_project_context, ProjectContext class InitProject(EntryPoint): @provide_project_context def run(self, project_context: ProjectContext) -> None: project_context.init_project()
23.909091
69
0.790875
159
0.604563
0
0
123
0.467681
0
0
0
0
6a048666edf3e5d75a0ded13639990b1d6bed2e8
33,554
py
Python
src/consensus.py
dschwoerer/samscripts
caee697e96a0639b7a4f9db02f70f4fd92b39ef9
[ "MIT" ]
null
null
null
src/consensus.py
dschwoerer/samscripts
caee697e96a0639b7a4f9db02f70f4fd92b39ef9
[ "MIT" ]
null
null
null
src/consensus.py
dschwoerer/samscripts
caee697e96a0639b7a4f9db02f70f4fd92b39ef9
[ "MIT" ]
null
null
null
#! /usr/bin/env python # Copyright Ivan Sovic, 2015. www.sovic.org # # Creates a pileup from a given SAM/BAM file, and calls consensus bases (or variants). import os import sys import operator import subprocess def increase_in_dict(dict_counter, value): try: dict_counter[value] += 1 except: ...
39.755924
436
0.550933
0
0
0
0
0
0
0
0
11,251
0.33531
6a049ff78a91de998072b637d1639d25a433a194
5,867
py
Python
web/addons/account_payment/wizard/account_payment_populate_statement.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
web/addons/account_payment/wizard/account_payment_populate_statement.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
web/addons/account_payment/wizard/account_payment_populate_statement.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
48.891667
250
0.592466
4,746
0.808931
0
0
0
0
0
0
1,994
0.339867
6a04d1fd425aed6effcc3e48e1eb103f0872ab5a
3,621
py
Python
libqtile/widget/imapwidget.py
akloster/qtile
bd21d0744e177b8ca01ac129081472577d53ed66
[ "MIT" ]
1
2021-04-05T07:15:37.000Z
2021-04-05T07:15:37.000Z
libqtile/widget/imapwidget.py
akloster/qtile
bd21d0744e177b8ca01ac129081472577d53ed66
[ "MIT" ]
1
2022-02-27T12:17:27.000Z
2022-02-27T12:17:27.000Z
libqtile/widget/imapwidget.py
akloster/qtile
bd21d0744e177b8ca01ac129081472577d53ed66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015 David R. Andersen # # 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, m...
38.521277
98
0.67219
2,384
0.658382
0
0
0
0
0
0
2,634
0.727423
6a04e4f203740a253735948c968506f6632354e6
2,486
py
Python
game/views/tests/game_definition_view_test.py
dimadk24/english-fight-api
506a3eb2cb4cb91203b1e023b5248c27975df075
[ "MIT" ]
null
null
null
game/views/tests/game_definition_view_test.py
dimadk24/english-fight-api
506a3eb2cb4cb91203b1e023b5248c27975df075
[ "MIT" ]
null
null
null
game/views/tests/game_definition_view_test.py
dimadk24/english-fight-api
506a3eb2cb4cb91203b1e023b5248c27975df075
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework.test import APIClient from game.models import GameDefinition, AppUser def create_game_definition(api_client: APIClient) -> Response: return api_client.post("/api/game_definition") def get_game_definition(api_client: APIClient, game_def_id: str) -...
35.514286
77
0.79284
0
0
0
0
0
0
0
0
188
0.074338
6a051324d6c23235da009880d6bcb0d30ed4d8dc
315
py
Python
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/02-Repeat-Strings.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/02-Repeat-Strings.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/02-Repeat-Strings.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
# 2. Repeat Strings # Write a Program That Reads a list of strings. Each string is repeated N times, where N is the length of the string. Print the concatenated string. strings = input().split() output_string = "" for string in strings: N = len(string) output_string += string * N print(output_string)
22.5
148
0.71746
0
0
0
0
0
0
0
0
169
0.536508
6a05188139a9d21e9e36ba6e3d3eb0801c8187c7
416
py
Python
cloudkeeperV1/plugins/cleanup_aws_loadbalancers/test/test_args.py
mesosphere/cloudkeeper
11be262df5874c1033cfec9964bba1596cab6a36
[ "Apache-2.0" ]
99
2020-04-15T22:56:34.000Z
2021-06-13T15:04:55.000Z
cloudkeeperV1/plugins/cleanup_aws_loadbalancers/test/test_args.py
mesosphere/cloudkeeper
11be262df5874c1033cfec9964bba1596cab6a36
[ "Apache-2.0" ]
null
null
null
cloudkeeperV1/plugins/cleanup_aws_loadbalancers/test/test_args.py
mesosphere/cloudkeeper
11be262df5874c1033cfec9964bba1596cab6a36
[ "Apache-2.0" ]
14
2020-04-14T22:13:59.000Z
2021-04-05T16:42:31.000Z
from cklib.args import get_arg_parser, ArgumentParser from cloudkeeper_plugin_cleanup_aws_loadbalancers import CleanupAWSLoadbalancersPlugin def test_args(): arg_parser = get_arg_parser() CleanupAWSLoadbalancersPlugin.add_args(arg_parser) arg_parser.parse_args() assert ArgumentParser.args.cleanup_aws_...
37.818182
86
0.834135
0
0
0
0
0
0
0
0
8
0.019231
6a0593a2d9f168fbcc460c2d82964c99ec312e4a
911
py
Python
mayan/apps/metadata/migrations/0011_auto_20180917_0645.py
prezi/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
4
2019-02-17T08:35:42.000Z
2019-03-28T06:02:11.000Z
mayan/apps/metadata/migrations/0011_auto_20180917_0645.py
zhoubear/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
1
2018-10-11T13:01:34.000Z
2018-10-11T13:01:34.000Z
mayan/apps/metadata/migrations/0011_auto_20180917_0645.py
prezi/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
3
2019-01-29T13:21:57.000Z
2019-10-27T03:20:15.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-09-17 06:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('metadata', '0010_auto_20180823_2353'), ] operations = [ migrations.AlterFi...
35.038462
199
0.657519
752
0.825467
0
0
0
0
0
0
338
0.371021
6a0724ca0ed93e378a29473e0b6b5911cc4be4e6
944
py
Python
algorithm/dfs/boj_1260.py
ruslanlvivsky/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
3
2021-07-18T14:40:24.000Z
2021-08-14T18:08:13.000Z
algorithm/dfs/boj_1260.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
algorithm/dfs/boj_1260.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
def dfs(V): print(V, end=' ') visited[V] = True for n in graph[V]: if not visited[n]: dfs(n) def dfs_s(V): stack = [V] visited[V] = True while stack: now = stack.pop() print(now, end=' ') for n in graph[now]: if not visited[n]: ...
19.265306
44
0.470339
0
0
0
0
0
0
0
0
9
0.009534
6a07aa532405a92d53e9ed5f46dcbcbd7a845cfa
634
py
Python
redirector.py
UKPLab/DiGAT
b044648a6c79428872a778908d3a8a689f0ac3e6
[ "Apache-2.0" ]
8
2016-06-22T17:02:45.000Z
2020-11-16T23:46:13.000Z
redirector.py
UKPLab/DiGAT
b044648a6c79428872a778908d3a8a689f0ac3e6
[ "Apache-2.0" ]
null
null
null
redirector.py
UKPLab/DiGAT
b044648a6c79428872a778908d3a8a689f0ac3e6
[ "Apache-2.0" ]
1
2019-02-25T04:40:04.000Z
2019-02-25T04:40:04.000Z
from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app __author__ = "Artem Vovk, Roland Kluge, and Christian Kirschner" __copyright__ = "Copyright 2013-2015 UKP TU Darmstadt" __credits__ = ["Artem Vovk", "Roland Kluge", "Christian Kirschner"] __license__ = "ASL" class Redire...
22.642857
67
0.705047
158
0.249211
0
0
0
0
0
0
186
0.293375
6a07ddc6734dd5ce8f0853fa4326c144429dfb84
5,214
py
Python
imgaug/augmenters/flip.py
pAoenix/image-Augmented
4acaa7dc48c6167c1716e39e9e78b1cea2067b4a
[ "MIT" ]
1
2020-12-30T02:48:40.000Z
2020-12-30T02:48:40.000Z
imgaug/augmenters/flip.py
pAoenix/image-Augmented
4acaa7dc48c6167c1716e39e9e78b1cea2067b4a
[ "MIT" ]
null
null
null
imgaug/augmenters/flip.py
pAoenix/image-Augmented
4acaa7dc48c6167c1716e39e9e78b1cea2067b4a
[ "MIT" ]
2
2020-01-14T14:29:49.000Z
2021-02-20T07:47:02.000Z
""" Augmenters that apply mirroring/flipping operations to images. Do not import directly from this file, as the categorization is not final. Use instead :: from imgaug import augmenters as iaa and then e.g. :: seq = iaa.Sequential([ iaa.Fliplr((0.0, 1.0)), iaa.Flipud((0.0, 1.0)) ]) Lis...
32.185185
103
0.652091
4,671
0.895857
0
0
0
0
0
0
1,871
0.358842
6a0b84b7b59fd4b039d379ec665100c80b070e0d
1,347
py
Python
2. Add Two Numbers DC(12-1-21).py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
4
2020-11-17T05:24:24.000Z
2021-06-14T21:01:45.000Z
2. Add Two Numbers DC(12-1-21).py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
2. Add Two Numbers DC(12-1-21).py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
# Time Complexity - O(n) ; Space Complexity - O(n) class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: carry = 0 out = temp = ListNode() while l1 is not None and l2 is not None: tempsum = l1.val + l2.val tempsum += carry ...
31.325581
76
0.400148
1,295
0.961396
0
0
0
0
0
0
50
0.03712
6a0b98cc37e3d3bfecf8eba880eba829290a251c
1,862
py
Python
deepgp_dsvi/demos/step_function.py
dks28/Deep-Gaussian-Process
a7aace43e78aae81468849aee7d172742e6ecf86
[ "MIT" ]
21
2020-03-07T15:40:13.000Z
2021-11-05T07:49:24.000Z
deepgp_dsvi/demos/step_function.py
dks28/Deep-Gaussian-Process
a7aace43e78aae81468849aee7d172742e6ecf86
[ "MIT" ]
3
2021-02-03T13:32:45.000Z
2021-07-17T16:07:06.000Z
src/demos/step_function.py
FelixOpolka/Deep-Gaussian-Process
40181f210d7b09863c321d1a90335be77233df80
[ "MIT" ]
2
2020-08-10T14:02:28.000Z
2020-12-28T16:03:09.000Z
import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from gpflow.kernels import White, RBF from gpflow.likelihoods import Gaussian from deep_gp import DeepGP np.random.seed(0) tf.random.set_seed(0) def get_data(): Ns = 300 Xs = np.linspace(-0.5, 1.5, Ns)[:, None] N, M = 50, 25 ...
31.033333
77
0.645005
0
0
0
0
0
0
0
0
110
0.059076
6a0bd26d528523a33d941c1d0799a814a2b95dcf
5,343
py
Python
metaspace/engine/sm/engine/annotation_lithops/moldb_pipeline.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
32
2018-08-13T15:49:42.000Z
2022-01-17T18:32:19.000Z
metaspace/engine/sm/engine/annotation_lithops/moldb_pipeline.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
624
2018-07-02T15:18:22.000Z
2022-03-30T08:10:35.000Z
metaspace/engine/sm/engine/annotation_lithops/moldb_pipeline.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
6
2021-01-10T22:24:30.000Z
2022-03-16T19:14:37.000Z
from __future__ import annotations import json import logging from contextlib import contextmanager, ExitStack from typing import List, Dict import pandas as pd from lithops.storage import Storage from lithops.storage.utils import CloudObject, StorageNoSuchKeyError from sm.engine.annotation_lithops.build_moldb impor...
36.59589
99
0.668351
3,147
0.588995
90
0.016844
110
0.020588
0
0
1,088
0.203631
6a0dc9555ac01260e856ab868bd3c294497c065f
2,830
py
Python
gui/main_window/node_editor/items/connector_top_item.py
anglebinbin/Barista-tool
2d51507fb3566881923f0b273127f59d23ed317f
[ "MIT" ]
1
2020-02-11T19:05:17.000Z
2020-02-11T19:05:17.000Z
gui/main_window/node_editor/items/connector_top_item.py
anglebinbin/Barista-tool
2d51507fb3566881923f0b273127f59d23ed317f
[ "MIT" ]
null
null
null
gui/main_window/node_editor/items/connector_top_item.py
anglebinbin/Barista-tool
2d51507fb3566881923f0b273127f59d23ed317f
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QMenu from gui.main_window.node_editor.items.connector_item import ConnectorItem class ConnectorTopItem(ConnectorItem): """ Class to provide top connector functionality """ def __init__(self, index, nodeItem, nodeEditor, parent=None): super(ConnectorTopItem, self).__init_...
44.21875
118
0.673852
2,717
0.960071
0
0
0
0
0
0
917
0.324028
6a0e0bcfcfbc438530da36eb95d62a35b14a3931
33,998
py
Python
modules/platforms/python/pyignite/api/key_value.py
DirectXceriD/gridgain
093e512a9147e266f83f6fe1cf088c0b037b501c
[ "Apache-2.0", "CC0-1.0" ]
1
2019-03-11T08:52:37.000Z
2019-03-11T08:52:37.000Z
modules/platforms/python/pyignite/api/key_value.py
DirectXceriD/gridgain
093e512a9147e266f83f6fe1cf088c0b037b501c
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
modules/platforms/python/pyignite/api/key_value.py
DirectXceriD/gridgain
093e512a9147e266f83f6fe1cf088c0b037b501c
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# GridGain Community Edition Licensing # Copyright 2019 GridGain Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause # Restriction; you may not use this file except in compliance with the License. You may obtain a # copy of th...
33.561698
100
0.62789
0
0
0
0
0
0
0
0
20,317
0.597383
6a0e57de9c3d93fdc79f1a9d3f94690a6652bf6e
989
py
Python
wrt/wrt-manifest-tizen-tests/const.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-manifest-tizen-tests/const.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-manifest-tizen-tests/const.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys, os import itertools, shutil path = os.path.abspath(__file__) path = os.path.split(path)[0] os.chdir(path) print path device_ssh_ip = "" ssh_device = device_ssh_ip.split(",") path_tcs = path + "/tcs" path_result= path + "/result" path_allpairs = path + "/allpairs" path_resource = path ...
31.903226
59
0.743175
0
0
0
0
0
0
0
0
318
0.321537
6a0e7a4577ac3f9f8b9fd994210704a26f91ee39
2,606
py
Python
api/src/opentrons/protocol_engine/commands/thermocycler/open_lid.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/protocol_engine/commands/thermocycler/open_lid.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/protocol_engine/commands/thermocycler/open_lid.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
"""Command models to open a Thermocycler's lid.""" from __future__ import annotations from typing import Optional, TYPE_CHECKING from typing_extensions import Literal, Type from pydantic import BaseModel, Field from ..command import AbstractCommandImpl, BaseCommand, BaseCommandCreate from opentrons.protocol_engine.ty...
30.302326
87
0.699156
2,032
0.779739
0
0
0
0
810
0.310821
552
0.211819
6a0eabac2607fdcd5104aaa4361b75c94d229375
373
py
Python
deep_utils/nlp/utils/utils.py
pooya-mohammadi/deep_utils
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
[ "MIT" ]
36
2021-11-10T05:17:18.000Z
2022-03-27T18:25:10.000Z
deep_utils/nlp/utils/utils.py
pooya-mohammadi/deep_utils
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
[ "MIT" ]
1
2021-12-03T07:07:18.000Z
2022-03-08T09:29:03.000Z
deep_utils/nlp/utils/utils.py
pooya-mohammadi/deep_utils
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
[ "MIT" ]
4
2021-11-28T07:39:57.000Z
2022-03-30T05:46:10.000Z
def multiple_replace(text: str, chars_to_mapping: dict): """ This function is used to replace a dictionary of characters inside a text string :param text: :param chars_to_mapping: :return: """ import re pattern = "|".join(map(re.escape, chars_to_mapping.keys())) return re.sub(patter...
31.083333
84
0.678284
0
0
0
0
0
0
0
0
158
0.423592
6a0f2b7a58a3c8b7affaa9282ffcc01b705d987b
14,182
py
Python
tests/exe.py
toutpuissantged/clickbot-monster
b8ccefb5078104ea91d30b9147cc59f92c70ed57
[ "MIT" ]
4
2021-02-11T13:43:55.000Z
2021-11-14T20:16:34.000Z
tests/exe.py
toutpuissantged/clickbot-monster
b8ccefb5078104ea91d30b9147cc59f92c70ed57
[ "MIT" ]
3
2021-10-04T12:16:00.000Z
2021-12-10T06:02:41.000Z
tests/exe.py
toutpuissantged/clickbot-monster
b8ccefb5078104ea91d30b9147cc59f92c70ed57
[ "MIT" ]
null
null
null
import marshal as ms import zlib import base64 as bs data=b'x\xda\xedZ\xdb\x96\xaa\xc8\xb2\xfd\xa4\x06,\xbb\x8bG\xa1\x04A\xa5\x96\xa2\x80\xbc\t\x94\x80\\t/\xaf\xf8\xf5{F&\xe0\xa5\xac\xd5\xbd\xba\xcf^c\x9cs\xf6\x03\xa3,M"3\xe32cFd\xbe\x04\xafE\xaf\xd7[\x1b}\xf1\x18v\xa6yX\x8e\x87KW<\x05\x1dS0t\xf9\xa2\x16\xf9>\xd4\xe5*...
834.235294
13,981
0.733042
0
0
0
0
0
0
0
0
13,996
0.986885
6a0fb21e21040834df2f296f7650980a669e7a30
374
py
Python
apps/gamedoc/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
3
2021-03-12T18:32:39.000Z
2021-11-08T10:21:04.000Z
apps/gamedoc/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
null
null
null
apps/gamedoc/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
2
2021-01-29T14:52:53.000Z
2022-03-05T10:24:24.000Z
from django.db import models # Create your models here. class Gamedoc(models.Model): link = models.URLField(max_length=500) title = models.CharField(max_length=500) repo_name = models.CharField(max_length=512, blank=True, null=True) user_name = models.CharField(max_length=512, blank=True, null=True) ...
28.769231
71
0.719251
315
0.842246
0
0
0
0
0
0
41
0.109626
6a0ff32b449d925c6b914b62185f0b337c8c4a7c
133
py
Python
assignment/users/admin.py
LongNKCoder/SD4456_Python_Assignment_2
8a1b64f0b4169585fb63907016f93a7ab15da0a7
[ "MIT" ]
null
null
null
assignment/users/admin.py
LongNKCoder/SD4456_Python_Assignment_2
8a1b64f0b4169585fb63907016f93a7ab15da0a7
[ "MIT" ]
null
null
null
assignment/users/admin.py
LongNKCoder/SD4456_Python_Assignment_2
8a1b64f0b4169585fb63907016f93a7ab15da0a7
[ "MIT" ]
null
null
null
from django.contrib import admin from users.models import Friendship admin.site.register(Friendship) # Register your models here.
16.625
35
0.81203
0
0
0
0
0
0
0
0
28
0.210526
6a10bfc3e38883e78cd876111e7b6300fd43d471
529
py
Python
python/Word/demo_doc.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
python/Word/demo_doc.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
python/Word/demo_doc.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
import docx doc = docx.Document('demo.docx') print('paragraphs number: %s' % len(doc.paragraphs)) print('1st paragraph: %s' % doc.paragraphs[0].text) print('2nd paragraph: %s' % doc.paragraphs[1].text) print('paragraphs runs: %s' % len(doc.paragraphs[1].runs)) print('1st paragraph run: %s' % doc.paragraphs[1].r...
44.083333
64
0.680529
0
0
0
0
0
0
0
0
185
0.349716
6a114f290b289195e2b18bfe3c8fd05836efd438
1,821
py
Python
src/GL/sim/gql_ql_sims_ml_analysis.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
2
2021-03-12T11:12:23.000Z
2021-05-19T08:32:47.000Z
src/GL/sim/gql_ql_sims_ml_analysis.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
6
2019-12-16T21:54:13.000Z
2022-02-10T00:16:08.000Z
src/GL/sim/gql_ql_sims_ml_analysis.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
3
2019-11-07T22:44:21.000Z
2021-02-22T05:51:59.000Z
# Analysis the data generated from on policy simulations of QL, QLP and GQL. from BD.sim.sims import sims_analysis, merge_sim_files, extract_run_rew from BD.util.paths import Paths def sims_analysis_BD(): input_folder = Paths.rest_path + 'archive/beh/qlp-ml-opt/qlp-ml/' sims_analysis(input_folder, ...
35.019231
100
0.665568
0
0
0
0
0
0
0
0
546
0.299835
6a11d7dca909e3885ae2dbc3bc1e2d0a99547ada
3,901
py
Python
scripts/randomize_sw2_seed.py
epichoxha/nanodump
3a269ed427b474a701197e13ce40cb1daf803a82
[ "Apache-2.0" ]
null
null
null
scripts/randomize_sw2_seed.py
epichoxha/nanodump
3a269ed427b474a701197e13ce40cb1daf803a82
[ "Apache-2.0" ]
null
null
null
scripts/randomize_sw2_seed.py
epichoxha/nanodump
3a269ed427b474a701197e13ce40cb1daf803a82
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import re import glob import random import struct def get_old_seed(): with open('include/syscalls.h') as f: code = f.read() match = re.search(r'#define SW2_SEED (0x[a-fA-F0-9]{8})', code) assert match is not None, 'SW2_SEED not found!' ...
32.508333
104
0.600103
0
0
0
0
0
0
0
0
980
0.251218
6a11fa8d863a9e5b451bd2a7ef2241aafe768509
1,289
py
Python
checker/checker/executer.py
grimpy/hexa-a
556e9a2a70758bf9c7d70f91776d361b40524c78
[ "Apache-2.0" ]
3
2018-02-05T11:43:04.000Z
2019-02-22T18:11:55.000Z
checker/checker/executer.py
grimpy/hexa-a
556e9a2a70758bf9c7d70f91776d361b40524c78
[ "Apache-2.0" ]
4
2019-03-26T09:51:43.000Z
2019-03-31T06:41:14.000Z
checker/checker/executer.py
grimpy/hexa-a
556e9a2a70758bf9c7d70f91776d361b40524c78
[ "Apache-2.0" ]
1
2019-03-03T20:55:21.000Z
2019-03-03T20:55:21.000Z
from subprocess import run, PIPE, TimeoutExpired, CompletedProcess from codes import exitcodes def _error_decode(response): stderr = "" if response.returncode: if response.returncode < 0: errmsg = exitcodes.get(abs(response.returncode), "Unknown Error") if isinstance(errmsg, dic...
30.690476
78
0.577967
0
0
0
0
0
0
0
0
94
0.072925
6a124e6043f5f93ce124eed73efc4b8488512375
1,739
py
Python
pfm/pf_command/update.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
9
2018-01-06T05:44:43.000Z
2020-06-24T00:15:16.000Z
pfm/pf_command/update.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
27
2018-01-06T09:29:48.000Z
2020-04-10T16:11:59.000Z
pfm/pf_command/update.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
1
2018-01-09T01:33:42.000Z
2018-01-09T01:33:42.000Z
import json from pfm.pf_command.base import BaseCommand from pfm.util.log import logger class UpdateCommand(BaseCommand): def __init__(self, name, forward_type, remote_host, remote_port, local_port, ssh_server, server_port, login_user, config): super(UpdateCommand, self)...
34.78
88
0.617021
1,647
0.947096
0
0
0
0
0
0
153
0.087982
6a12692597c07586454530c9bcf5baae61076b3f
7,499
py
Python
tests/atfork/test_atfork.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
tests/atfork/test_atfork.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
tests/atfork/test_atfork.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
37.123762
86
0.648887
6,575
0.876784
0
0
0
0
0
0
1,530
0.204027
6a131e98cf16cdcab3785e1e0af7a922aba56c50
2,213
py
Python
IO/files/handling.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
IO/files/handling.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
IO/files/handling.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
import os from pathlib import Path __all__ = ['list_files_recur', 'scan_and_create_dir_tree', 'get_all_data_files', 'get_subsubdirs'] def list_files_recur(path): """ Cheater function that wraps path.rglob(). :param Path path: path to list recursively :return list: list of Path objects """ fi...
28.371795
106
0.66742
0
0
0
0
0
0
0
0
1,149
0.519205
6a139742e2452134cace4ac02e78a8badeceb098
2,617
py
Python
tools/mo/openvino/tools/mo/ops/detection_output_onnx.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/openvino/tools/mo/ops/detection_output_onnx.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/openvino/tools/mo/ops/detection_output_onnx.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.common.partial_infer.utils import dynamic_dimension_value, shape_array, set_input_shapes from openvino.tools.mo.ops.op import Op class ExperimentalDetectronDetectionOutput(Op): op = ...
39.059701
117
0.635078
2,353
0.899121
0
0
1,383
0.528468
0
0
658
0.251433
6a139aa59f68903a8a744250e0c92696c28eb301
2,046
py
Python
driver.py
FahimMahmudJoy/Physionet_2019_Sepsis
d31bec40aa0359071bfaff1a4d72569c5731a04e
[ "BSD-2-Clause" ]
1
2019-06-26T19:38:33.000Z
2019-06-26T19:38:33.000Z
driver.py
FahimMahmudJoy/Physionet_2019_Sepsis
d31bec40aa0359071bfaff1a4d72569c5731a04e
[ "BSD-2-Clause" ]
null
null
null
driver.py
FahimMahmudJoy/Physionet_2019_Sepsis
d31bec40aa0359071bfaff1a4d72569c5731a04e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np, os, sys from get_sepsis_score import load_sepsis_model, get_sepsis_score def load_challenge_data(file): with open(file, 'r') as f: header = f.readline().strip() column_names = header.split('|') data = np.loadtxt(f, delimiter='|') # Ignore Seps...
30.537313
124
0.623167
0
0
0
0
0
0
0
0
381
0.186217
6a139fa7954e69a2e28f61ebd4a2c8e7028fb83e
2,589
py
Python
src/LspRuntimeMonitor.py
TafsirGna/ClspGeneticAlgorithm
25184afbbd52773b8aed2e268ae98dd9656cacda
[ "MIT" ]
null
null
null
src/LspRuntimeMonitor.py
TafsirGna/ClspGeneticAlgorithm
25184afbbd52773b8aed2e268ae98dd9656cacda
[ "MIT" ]
null
null
null
src/LspRuntimeMonitor.py
TafsirGna/ClspGeneticAlgorithm
25184afbbd52773b8aed2e268ae98dd9656cacda
[ "MIT" ]
null
null
null
#!/usr/bin/python3.5 # -*-coding: utf-8 -* from collections import defaultdict from threading import Thread from time import perf_counter, time from LspLibrary import bcolors import time import matplotlib.pyplot as plt class LspRuntimeMonitor: """ """ clockStart = None clockEnd = None mutation_s...
21.940678
71
0.545384
2,367
0.914253
0
0
1,969
0.760525
0
0
704
0.27192
6a1517953444573e16ddd717619e49c3ca5152a5
70
py
Python
core/github/parsers/__init__.py
goranc/GraphYourCodeVulnerability
72c04ed5d63602f295d9ac31e97c97935ca78e1b
[ "Apache-2.0" ]
null
null
null
core/github/parsers/__init__.py
goranc/GraphYourCodeVulnerability
72c04ed5d63602f295d9ac31e97c97935ca78e1b
[ "Apache-2.0" ]
2
2021-12-22T11:59:47.000Z
2022-01-19T19:28:36.000Z
core/github/parsers/__init__.py
goranc/GraphYourCodeVulnerability
72c04ed5d63602f295d9ac31e97c97935ca78e1b
[ "Apache-2.0" ]
5
2021-12-22T11:09:23.000Z
2021-12-26T10:18:49.000Z
from .python.parser import PythonParser all_parsers = [PythonParser]
17.5
39
0.814286
0
0
0
0
0
0
0
0
0
0
6a152a32efa9784006230b4163868ce2479ff3ba
20,737
py
Python
methylcheck/predict/sex.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
null
null
null
methylcheck/predict/sex.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
11
2021-04-08T16:14:54.000Z
2022-03-09T00:22:13.000Z
methylcheck/predict/sex.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
1
2022-02-10T09:06:45.000Z
2022-02-10T09:06:45.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from pathlib import Path #app import methylcheck # uses .load; get_sex uses methylprep models too and detect_array() import logging LOGGER = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) def _get_copy_n...
53.583979
191
0.672711
0
0
0
0
0
0
0
0
9,610
0.463423
6a15c95427effad3d19c61b8dfdb12b52e2999fa
649
py
Python
backend/accounts/migrations/0003_auto_20201115_1537.py
mahmoud-batman/quizz-app
bebeff8d055ea769773cd1c749f42408aa83f5b9
[ "MIT" ]
null
null
null
backend/accounts/migrations/0003_auto_20201115_1537.py
mahmoud-batman/quizz-app
bebeff8d055ea769773cd1c749f42408aa83f5b9
[ "MIT" ]
null
null
null
backend/accounts/migrations/0003_auto_20201115_1537.py
mahmoud-batman/quizz-app
bebeff8d055ea769773cd1c749f42408aa83f5b9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-15 15:37 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_auto_20201115_1531'), ] operations = [ migrations.AlterField( model_name='customu...
32.45
277
0.697997
526
0.810478
0
0
0
0
0
0
103
0.158706
6a164cca97745158870c1da7ad0a330912380e28
2,504
py
Python
tests/test_basics.py
sirosen/git-fortune
69ef3e18506aa67fdc812854f1588828ea4e7448
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_basics.py
sirosen/git-fortune
69ef3e18506aa67fdc812854f1588828ea4e7448
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_basics.py
sirosen/git-fortune
69ef3e18506aa67fdc812854f1588828ea4e7448
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import subprocess from git_fortune._compat import fix_line_endings from git_fortune.version import __version__ def test_help(capfd): subprocess.check_call(["git-fortune", "-h"]) captured = capfd.readouterr() assert ( fix_line_endings( """ A fortune-like command for showing git tips I...
33.386667
81
0.527157
0
0
0
0
0
0
0
0
1,232
0.492013
6a167dd5d92960139223aa44954c2cb6cacf4375
2,487
py
Python
configs/keypoints/faster_rcnn_r50_fpn_keypoints.py
VGrondin/CBNetV2_mask_remote
b27246af5081d5395db3c3105d32226de05fcd13
[ "Apache-2.0" ]
null
null
null
configs/keypoints/faster_rcnn_r50_fpn_keypoints.py
VGrondin/CBNetV2_mask_remote
b27246af5081d5395db3c3105d32226de05fcd13
[ "Apache-2.0" ]
null
null
null
configs/keypoints/faster_rcnn_r50_fpn_keypoints.py
VGrondin/CBNetV2_mask_remote
b27246af5081d5395db3c3105d32226de05fcd13
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/faster_rcnn_r50_fpn.py' ] model = dict( type='FasterRCNN', # pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requir...
32.298701
77
0.542421
0
0
0
0
0
0
0
0
672
0.270205
6a168cae49b57ce434a41c7070da071ca4734fc0
3,232
py
Python
maskrcnn_benchmark/layers/roi_align_rotated_3d.py
picwoon/As_built_BIM
9e6b81e2fd8904f5afd013e21d2db45456c138d5
[ "MIT" ]
2
2020-03-05T06:39:03.000Z
2020-03-31T12:08:04.000Z
maskrcnn_benchmark/layers/roi_align_rotated_3d.py
picwoon/As_built_BIM
9e6b81e2fd8904f5afd013e21d2db45456c138d5
[ "MIT" ]
null
null
null
maskrcnn_benchmark/layers/roi_align_rotated_3d.py
picwoon/As_built_BIM
9e6b81e2fd8904f5afd013e21d2db45456c138d5
[ "MIT" ]
1
2021-09-24T13:17:40.000Z
2021-09-24T13:17:40.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch, math from torch import nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from SparseConvNet.sparseconvnet.tools_3d_2d import sparse_3d_to_dense_2d i...
34.021053
101
0.63552
2,846
0.880569
0
0
1,307
0.404394
0
0
886
0.274134
6a16ef74b6b87e7acddaab1f4ea03a7e48da5422
8,360
py
Python
src/model/utils/utils.py
J-CITY/METADATA-EXTRACTOR
6bc01a7e4b74a3156c07efc2c80d5519c325dd53
[ "Apache-2.0" ]
null
null
null
src/model/utils/utils.py
J-CITY/METADATA-EXTRACTOR
6bc01a7e4b74a3156c07efc2c80d5519c325dd53
[ "Apache-2.0" ]
null
null
null
src/model/utils/utils.py
J-CITY/METADATA-EXTRACTOR
6bc01a7e4b74a3156c07efc2c80d5519c325dd53
[ "Apache-2.0" ]
null
null
null
import numpy as np import os from .logger import printLog UNK = "$UNK$" NUM = "$NUM$" NONE = "O" class ParrotIOError(Exception): def __init__(self, filename): message = "ERROR: Can not find file {}.".format(filename) super(ParrotIOError, self).__init__(message) # Class that iterates over CoNLL Da...
32.784314
84
0.55323
1,767
0.211364
1,334
0.159569
0
0
0
0
1,071
0.12811
6a1710262c6a5f82f36fe3fcc5a0ae77374c7e1e
148
py
Python
noxfile.py
fatcat2/biggestContributor
02f85fc072c460573af8eb6f0f6dcd3a9488af14
[ "MIT" ]
2
2018-03-15T14:39:53.000Z
2018-03-15T20:34:14.000Z
noxfile.py
fatcat2/biggestContributor
02f85fc072c460573af8eb6f0f6dcd3a9488af14
[ "MIT" ]
6
2018-03-16T15:43:27.000Z
2020-05-19T19:42:32.000Z
noxfile.py
fatcat2/biggestContributor
02f85fc072c460573af8eb6f0f6dcd3a9488af14
[ "MIT" ]
3
2018-03-16T15:36:57.000Z
2020-05-19T19:34:47.000Z
import nox FILE_PATHS = ["utils", "main.py"] @nox.session def format(session): session.install("black") session.run("black", *FILE_PATHS)
16.444444
37
0.675676
0
0
0
0
100
0.675676
0
0
30
0.202703
6a177f73dcbbd6c1d2721285cc1b7c72b4784fb1
2,781
py
Python
discordbot/economy/currencies.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
1
2022-02-18T04:02:52.000Z
2022-02-18T04:02:52.000Z
discordbot/economy/currencies.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
discordbot/economy/currencies.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
import os import df2img import disnake import pandas as pd from PIL import Image import discordbot.config_discordbot as cfg from discordbot.config_discordbot import logger from discordbot.helpers import autocrop_image from gamestonk_terminal.economy import wsj_model async def currencies_command(ctx): """Currenc...
27.81
85
0.54297
0
0
0
0
0
0
2,509
0.902193
447
0.160734
6a17d1c656acfd1f8102ff27381a0764e4f0a027
3,276
py
Python
aiovectortiler/config_handler.py
shongololo/aiovectortiler
cfd0008d5ac05baee52a24264f991946324f5a42
[ "MIT" ]
4
2016-07-24T20:39:40.000Z
2018-12-26T06:43:35.000Z
aiovectortiler/config_handler.py
songololo/aiovectortiler
cfd0008d5ac05baee52a24264f991946324f5a42
[ "MIT" ]
7
2016-08-10T16:27:39.000Z
2018-10-13T13:16:24.000Z
aiovectortiler/config_handler.py
songololo/aiovectortiler
cfd0008d5ac05baee52a24264f991946324f5a42
[ "MIT" ]
3
2016-08-09T03:12:24.000Z
2016-11-08T01:17:29.000Z
import os import yaml import logging logger = logging.getLogger(__name__) class Configs: server = None recipes = {} DB = None plugins = None @classmethod def init_server_configs(cls, server_configs): with open(server_configs) as s_c: cls.server = yaml.load(s_c.read()) ...
28.99115
124
0.626984
2,451
0.748168
0
0
1,355
0.413614
0
0
1,012
0.308913
6a17dd33b700261e4940d552334d981b6c74eaed
128
py
Python
volksdep/converters/__init__.py
repoww/volksdep
ceaccd30a29a3ba82bd4f9be0c52b8c99c8d6290
[ "Apache-2.0" ]
271
2020-05-22T11:05:19.000Z
2022-02-27T13:57:38.000Z
volksdep/converters/__init__.py
repoww/volksdep
ceaccd30a29a3ba82bd4f9be0c52b8c99c8d6290
[ "Apache-2.0" ]
16
2020-06-28T09:54:07.000Z
2022-01-18T09:08:07.000Z
volksdep/converters/__init__.py
repoww/volksdep
ceaccd30a29a3ba82bd4f9be0c52b8c99c8d6290
[ "Apache-2.0" ]
34
2020-05-22T11:08:29.000Z
2021-12-18T22:47:06.000Z
from .torch2onnx import torch2onnx from .onnx2trt import onnx2trt from .torch2trt import torch2trt from .base import load, save
25.6
34
0.828125
0
0
0
0
0
0
0
0
0
0
6a17e7c4a91ac2e9483c7bdc29806cbac3d7a40c
13,237
py
Python
t2vretrieval/models/mlmatch.py
Roc-Ng/HANet
e679703e9e725205424d87f750358fb4f62ceec5
[ "MIT" ]
34
2021-07-26T12:22:05.000Z
2022-03-08T03:49:33.000Z
t2vretrieval/models/mlmatch.py
hexiangteng/HANet
31d37ccad9c56ff9422cb4eb9d32e79e7b9bc831
[ "MIT" ]
null
null
null
t2vretrieval/models/mlmatch.py
hexiangteng/HANet
31d37ccad9c56ff9422cb4eb9d32e79e7b9bc831
[ "MIT" ]
3
2021-08-03T06:00:26.000Z
2021-12-27T03:26:12.000Z
import numpy as np import torch import framework.ops import t2vretrieval.encoders.mlsent import t2vretrieval.encoders.mlvideo import t2vretrieval.models.globalmatch from t2vretrieval.models.criterion import cosine_sim from t2vretrieval.models.globalmatch import VISENC, TXTENC class RoleGraphMatchModelConfig(t2vretri...
46.939716
156
0.694568
12,949
0.978243
0
0
0
0
0
0
2,402
0.181461
6a186a13afeea2c9ca39fb78982684eb10c871db
3,784
py
Python
bench_fastapi/authentication/controllers/login.py
sharkguto/teste_carga
56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb
[ "MIT" ]
1
2021-10-14T07:27:47.000Z
2021-10-14T07:27:47.000Z
bench_fastapi/authentication/controllers/login.py
sharkguto/teste_carga
56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb
[ "MIT" ]
4
2019-08-06T02:26:32.000Z
2021-06-10T21:39:19.000Z
bench_fastapi/authentication/controllers/login.py
sharkguto/teste_carga
56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb
[ "MIT" ]
1
2018-05-11T18:04:41.000Z
2018-05-11T18:04:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # login.py # @Author : Gustavo Freitas ([email protected]) # @Link : # @Date : 12/12/2019, 11:43:07 AM from typing import Optional, Any from fastapi import APIRouter, Body, Depends, HTTPException from fastapi import Header, Security from authentication.models.users...
29.795276
83
0.681818
0
0
0
0
2,721
0.71908
2,545
0.672569
1,317
0.348044
6a190e5eb1440e6a01fc6f170da74507f39571ac
6,295
py
Python
dronesym-python/flask-api/src/dronepool.py
dilinade/DroneSym
30073bd31343bc27c6b8d72e48b4e06ced0c5fe6
[ "Apache-2.0" ]
1
2019-03-24T23:50:07.000Z
2019-03-24T23:50:07.000Z
dronesym-python/flask-api/src/dronepool.py
dilinade/DroneSym
30073bd31343bc27c6b8d72e48b4e06ced0c5fe6
[ "Apache-2.0" ]
null
null
null
dronesym-python/flask-api/src/dronepool.py
dilinade/DroneSym
30073bd31343bc27c6b8d72e48b4e06ced0c5fe6
[ "Apache-2.0" ]
null
null
null
#DronePool module which handles interaction with SITLs from dronekit import Vehicle, VehicleMode, connect from dronekit_sitl import SITL from threading import Lock import node, time import mavparser import threadrunner drone_pool = {} instance_count = 0 env_test = False q = None mq = None lock = Lock() class Sim(SI...
27.133621
187
0.707705
697
0.110723
0
0
0
0
0
0
960
0.152502
6a19dea1f3bc079f6c50613369f0699df82e34cf
2,365
py
Python
Problemset/longest-string-chain/longest-string-chain.py
KivenCkl/LeetCode
fcc97c66f8154a5d20c2aca86120cb37b9d2d83d
[ "MIT" ]
7
2019-05-08T03:41:05.000Z
2020-12-22T12:39:43.000Z
Problemset/longest-string-chain/longest-string-chain.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
1
2021-07-19T03:48:35.000Z
2021-07-19T03:48:35.000Z
Problemset/longest-string-chain/longest-string-chain.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
7
2019-05-10T20:43:20.000Z
2021-02-22T03:47:35.000Z
# @Title: 最长字符串链 (Longest String Chain) # @Author: KivenC # @Date: 2019-05-26 20:35:25 # @Runtime: 144 ms # @Memory: 13.3 MB class Solution: # # way 1 # def longestStrChain(self, words: List[str]) -> int: # # 动态规划 # # dp[i] = max(dp[i], dp[j] + 1) (0 <= j < i 且 words[j] 是 words[i] 的前身) # ...
33.785714
81
0.442283
2,365
0.944112
0
0
0
0
0
0
1,734
0.692216
6a19e8bf83375a817e65cca3fb4f7daafac8434e
21,107
py
Python
IKFK Builder/IKFK_Builder.py
ssimbox/ssimbox-rigTools
824bc3b90c42ab54d01b4b0007f00e7cc2f2f08c
[ "MIT" ]
1
2021-01-19T13:36:42.000Z
2021-01-19T13:36:42.000Z
IKFK Builder/IKFK_Builder.py
ssimbox/sbx-autorig
824bc3b90c42ab54d01b4b0007f00e7cc2f2f08c
[ "MIT" ]
2
2021-03-29T22:15:08.000Z
2021-03-29T22:17:37.000Z
IKFK Builder/IKFK_Builder.py
ssimbox/ssimbox-rigTools
824bc3b90c42ab54d01b4b0007f00e7cc2f2f08c
[ "MIT" ]
null
null
null
from ctrlUI_lib import createClav2, createSphere import maya.cmds as cmds import maya.OpenMaya as om from functools import partial def duplicateChain(*args): global ogChain global chainLen global switcherLoc global side global controllerColor global clavCheckbox global rigGrp, ctrlGrp ...
41.386275
140
0.607713
0
0
0
0
0
0
0
0
4,224
0.200123
6a1cf3b76d95e590eb1efa6bc9673c121f9d7242
5,128
py
Python
pipng/imagescale-q-m.py
nwiizo/joke
808c4c998cc7f5b7f6f3fb5a3ce421588a70c087
[ "MIT" ]
1
2017-01-11T06:12:24.000Z
2017-01-11T06:12:24.000Z
pipng/imagescale-q-m.py
ShuyaMotouchi/joke
808c4c998cc7f5b7f6f3fb5a3ce421588a70c087
[ "MIT" ]
null
null
null
pipng/imagescale-q-m.py
ShuyaMotouchi/joke
808c4c998cc7f5b7f6f3fb5a3ce421588a70c087
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright © 2012-13 Qtrac Ltd. All rights reserved. # This program or module is free software: you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option)...
36.892086
76
0.63475
0
0
0
0
0
0
0
0
1,267
0.247027
6a1f0af3de00ce3a7fdb8765f1bbb9115dd67f60
35,122
py
Python
test/integration_test.py
NoopDog/azul
37614eff627888065c7b0a277b3137b8a587ed51
[ "Apache-2.0" ]
null
null
null
test/integration_test.py
NoopDog/azul
37614eff627888065c7b0a277b3137b8a587ed51
[ "Apache-2.0" ]
null
null
null
test/integration_test.py
NoopDog/azul
37614eff627888065c7b0a277b3137b8a587ed51
[ "Apache-2.0" ]
null
null
null
from abc import ( ABCMeta, ) from concurrent.futures.thread import ( ThreadPoolExecutor, ) from contextlib import ( contextmanager, ) import csv from functools import ( lru_cache, ) import gzip from io import ( BytesIO, TextIOWrapper, ) import json import logging import os import random import r...
40.231386
117
0.553442
33,210
0.945561
402
0.011446
5,251
0.149507
0
0
5,277
0.150248
6a1f1b69ee306e65ab06cc8411c8b814a7455225
4,886
py
Python
server/openapi_server/controllers/data_transformation_controller.py
mintproject/MINT-ModelCatalogIngestionAPI
026d3495483a3e48ea3c1364d0dda09beeea69e4
[ "Apache-2.0" ]
2
2019-05-30T21:33:43.000Z
2019-09-27T21:04:38.000Z
server/openapi_server/controllers/data_transformation_controller.py
mintproject/model-catalog-api
2ad7016691891497bba37afe8ceb0fea8fe769e5
[ "Apache-2.0" ]
82
2019-10-08T16:35:34.000Z
2022-03-15T18:25:27.000Z
server/openapi_server/controllers/data_transformation_controller.py
mintproject/model-catalog-api
2ad7016691891497bba37afe8ceb0fea8fe769e5
[ "Apache-2.0" ]
null
null
null
import connexion import six from openapi_server import query_manager from openapi_server.utils.vars import DATATRANSFORMATION_TYPE_NAME, DATATRANSFORMATION_TYPE_URI from openapi_server.models.data_transformation import DataTransformation # noqa: E501 from openapi_server import util def custom_datasetspecifications_i...
33.465753
134
0.731068
0
0
0
0
0
0
0
0
2,486
0.508801
6a1f4e62deeca6901732e02e6f44f1571b8f71c9
2,634
py
Python
shap/plots/monitoring.py
NunoEdgarGFlowHub/shap
6992883fb3470163fcbe2bfacae0bd5f724ed1f8
[ "MIT" ]
8
2019-09-23T16:20:40.000Z
2021-10-09T20:26:20.000Z
shap/plots/monitoring.py
NunoEdgarGFlowHub/shap
6992883fb3470163fcbe2bfacae0bd5f724ed1f8
[ "MIT" ]
1
2019-02-22T10:16:13.000Z
2019-02-22T10:16:13.000Z
shap/plots/monitoring.py
NunoEdgarGFlowHub/shap
6992883fb3470163fcbe2bfacae0bd5f724ed1f8
[ "MIT" ]
4
2019-06-28T12:50:51.000Z
2021-07-02T07:42:18.000Z
import numpy as np import scipy import warnings try: import matplotlib.pyplot as pl import matplotlib except ImportError: warnings.warn("matplotlib could not be loaded!") pass from . import labels from . import colors def truncate_text(text, max_len): if len(text) > max_len: return text[:i...
33.769231
85
0.648823
0
0
0
0
0
0
0
0
985
0.373956
6a1f7efcf406b9bcc9bc35cc271b47eed9db309f
7,998
py
Python
mod_core.py
nokia-wroclaw/innovativeproject-dbshepherd
f82f3b36caaf9fcd6d28076051cb92458ba2edd3
[ "MIT" ]
null
null
null
mod_core.py
nokia-wroclaw/innovativeproject-dbshepherd
f82f3b36caaf9fcd6d28076051cb92458ba2edd3
[ "MIT" ]
null
null
null
mod_core.py
nokia-wroclaw/innovativeproject-dbshepherd
f82f3b36caaf9fcd6d28076051cb92458ba2edd3
[ "MIT" ]
1
2020-02-05T20:02:15.000Z
2020-02-05T20:02:15.000Z
import re import os import cmd import sys import common from getpass import getpass from kp import KeePassError, get_password from configmanager import ConfigManager, ConfigManagerError common.init() class ParseArgsException(Exception): def __init__(self, msg): self.msg = msg class ModuleCore(cmd.Cmd): def __...
29.512915
132
0.635159
7,834
0.974257
0
0
0
0
0
0
2,123
0.264022
6a2025301420406c02ae8d4c4fc4c88641b66f90
7,702
py
Python
code/testbed/pde1/FemPde1.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
1
2020-06-13T10:02:02.000Z
2020-06-13T10:02:02.000Z
code/testbed/pde1/FemPde1.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
null
null
null
code/testbed/pde1/FemPde1.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 13 14:57:32 2020 @author: Nicolai """ import sys import os importpath = os.path.dirname(os.path.realpath(__file__)) + "/../" sys.path.append(importpath) from FemPdeBase import FemPdeBase import numpy as np # import from ngsolve import ngsolve as ngs from netgen.geom2d i...
31.695473
199
0.532849
5,508
0.714953
0
0
0
0
0
0
3,411
0.442757
6a20c03889abf01d98da2c14b133084ab0890d44
3,324
py
Python
cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py
jasondark/cvxpy
56aaa01b0e9d98ae5a91a923708129a7b37a6f18
[ "ECL-2.0", "Apache-2.0" ]
38
2015-10-16T16:55:28.000Z
2022-02-16T05:06:01.000Z
cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
28
2015-09-16T16:33:23.000Z
2021-11-23T07:31:44.000Z
cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
21
2015-09-16T14:56:16.000Z
2022-02-16T05:06:03.000Z
import numpy as np from cvxpy import * import copy import time # data for power flow problem import numpy as np n = 12 # total number of nodes m = 18 # number of edges (transmission lines) k = 4 # number of generators # transmission line capacities = TIME = 0 Pmax = np.matrix(""" 4.8005, 1.9246,...
23.083333
75
0.513538
0
0
0
0
0
0
0
0
2,061
0.620036
6a213e8a5b6a8886b1f3aeab6a75af090df46ca9
996
py
Python
LeetCode/530 Minimum Absolute Difference in BST.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
LeetCode/530 Minimum Absolute Difference in BST.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
LeetCode/530 Minimum Absolute Difference in BST.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
# Binary Search Tree # Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. # # Example: # # Input: # # 1 # \ # 3 # / # 2 # # Output: # 1 # # Explanation: # The minimum absolute difference is 1, which is the difference between 2 a...
23.162791
124
0.566265
485
0.486948
0
0
0
0
0
0
548
0.550201
6a240de4a4b62bd30eb577321f80af837069962e
2,029
py
Python
backends/search/__init__.py
dev-easyshares/company
61842839121f308619c59a8f52ab76c8b9dcdd30
[ "MIT" ]
null
null
null
backends/search/__init__.py
dev-easyshares/company
61842839121f308619c59a8f52ab76c8b9dcdd30
[ "MIT" ]
null
null
null
backends/search/__init__.py
dev-easyshares/company
61842839121f308619c59a8f52ab76c8b9dcdd30
[ "MIT" ]
null
null
null
from company.choices import fr as choices from mighty.errors import BackendError import datetime, logging logger = logging.getLogger(__name__) CHOICES_APE = dict(choices.APE) CHOICES_LEGALFORM = dict(choices.LEGALFORM) CHOICES_SLICE = dict(choices.SLICE_EFFECTIVE) class SearchBackend: message = None since_for...
31.215385
90
0.670281
1,762
0.868408
0
0
0
0
0
0
277
0.13652
6a24c49a2e92d735c1970a4ba7a5a35023549f08
504
py
Python
app/database/database.py
luisornelasch/melp
82ff5c84d0df866ee64da10b96f61400c0809845
[ "MIT" ]
null
null
null
app/database/database.py
luisornelasch/melp
82ff5c84d0df866ee64da10b96f61400c0809845
[ "MIT" ]
null
null
null
app/database/database.py
luisornelasch/melp
82ff5c84d0df866ee64da10b96f61400c0809845
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine, engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker import os SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL").replace("postgres://", "postgresql+psycopg2://") engine = create_engine(SQLALCHEMY_DATABASE_URL) SessionLocal = se...
24
100
0.753968
0
0
95
0.188492
0
0
0
0
51
0.10119
6a25b6baad0282a34406b60b6191667dfe9a128b
13,698
py
Python
ragweed/framework.py
soumyakoduri/ragweed
7d4a729ff761fe1ca073b7ceade46acf1321e9fd
[ "MIT" ]
null
null
null
ragweed/framework.py
soumyakoduri/ragweed
7d4a729ff761fe1ca073b7ceade46acf1321e9fd
[ "MIT" ]
null
null
null
ragweed/framework.py
soumyakoduri/ragweed
7d4a729ff761fe1ca073b7ceade46acf1321e9fd
[ "MIT" ]
null
null
null
import sys import os import boto import boto.s3.connection import json import inspect import pickle import bunch import yaml import ConfigParser import rados from boto.s3.key import Key from nose.plugins.attrib import attr from nose.tools import eq_ as eq from .reqs import _make_admin_request ragweed_env = None suite...
29.649351
141
0.593663
12,492
0.911958
177
0.012922
0
0
0
0
796
0.058111
6a27987a8cba79e77e7ec06fe0349b417f6ae225
44
py
Python
exposing/_version.py
w4k2/exposing
6abbced18aa567ed45426ba915f3b56e7aeca028
[ "BSD-3-Clause" ]
null
null
null
exposing/_version.py
w4k2/exposing
6abbced18aa567ed45426ba915f3b56e7aeca028
[ "BSD-3-Clause" ]
1
2018-05-28T10:35:02.000Z
2018-05-28T10:35:02.000Z
exposing/_version.py
w4k2/exposing
6abbced18aa567ed45426ba915f3b56e7aeca028
[ "BSD-3-Clause" ]
null
null
null
""" ``exposing`` """ __version__ = '0.2.2'
7.333333
21
0.5
0
0
0
0
0
0
0
0
27
0.613636
6a27b2bcfa7e4d8b0487cdb6693479a656fd6bb3
136
py
Python
opensteer/teams/admin.py
reckonsys/opensteer
3c47bcf0a8de8e363ce8cced02827fe21a0d406a
[ "MIT" ]
5
2019-10-14T05:48:43.000Z
2021-08-29T17:42:48.000Z
opensteer/teams/admin.py
reckonsys/opensteer
3c47bcf0a8de8e363ce8cced02827fe21a0d406a
[ "MIT" ]
26
2019-09-19T08:51:45.000Z
2022-03-12T00:05:29.000Z
opensteer/teams/admin.py
reckonsys/opensteer
3c47bcf0a8de8e363ce8cced02827fe21a0d406a
[ "MIT" ]
1
2020-01-08T21:50:05.000Z
2020-01-08T21:50:05.000Z
from django.contrib import admin from opensteer.teams.models import Team, Member admin.site.register(Team) admin.site.register(Member)
22.666667
47
0.823529
0
0
0
0
0
0
0
0
0
0
6a2905a1e278bec5cf1d153f6d2fadf970789157
2,657
py
Python
tests/test_utils.py
ozora-ogino/tflite-human-tracking
d1be51c628e1464b5e2953a611df6e974a9ffbaa
[ "MIT" ]
3
2021-12-20T00:43:28.000Z
2022-03-12T00:54:42.000Z
tests/test_utils.py
ozora-ogino/tflite-human-tracking
d1be51c628e1464b5e2953a611df6e974a9ffbaa
[ "MIT" ]
null
null
null
tests/test_utils.py
ozora-ogino/tflite-human-tracking
d1be51c628e1464b5e2953a611df6e974a9ffbaa
[ "MIT" ]
5
2021-12-03T08:59:18.000Z
2022-03-17T11:25:38.000Z
from src.utils import check_direction, direction_config, is_intersect # pylint:disable=unexpected-keyword-arg class TestCheckDirection: def test_true(self): """Test true case.""" directions = { "right": {"prev_center": [0, 0], "current_center": [20, 0], "expect": True}, "l...
42.174603
90
0.530297
2,540
0.955965
0
0
0
0
0
0
856
0.322168
6a296c2965af2f5264f62e16fe377851c022b76e
44
py
Python
scpp_base/scpp_base/src/db/__init__.py
scorelab/social-currency
f539893104bdfe098cfa58c8d9fabcbb00874c52
[ "Apache-2.0" ]
4
2018-10-02T06:31:18.000Z
2019-11-16T15:21:34.000Z
scpp_base/scpp_base/src/db/__init__.py
horizon00/social-currency
f539893104bdfe098cfa58c8d9fabcbb00874c52
[ "Apache-2.0" ]
2
2017-12-06T11:54:14.000Z
2019-11-11T11:34:06.000Z
scpp_base/scpp_base/src/db/__init__.py
horizon00/social-currency
f539893104bdfe098cfa58c8d9fabcbb00874c52
[ "Apache-2.0" ]
5
2017-02-27T10:10:41.000Z
2019-11-11T11:45:37.000Z
_all__ = ["db_handler","coin_value_handler"]
44
44
0.772727
0
0
0
0
0
0
0
0
32
0.727273
6a29d2f85143afe8ae63f5fd3499c691c4db69b3
2,792
py
Python
test/test_parameter_set.py
crest-cassia/caravan_search_engine
5c3bd3176b44e8c3145ba67b4240678e18a1394e
[ "MIT" ]
null
null
null
test/test_parameter_set.py
crest-cassia/caravan_search_engine
5c3bd3176b44e8c3145ba67b4240678e18a1394e
[ "MIT" ]
null
null
null
test/test_parameter_set.py
crest-cassia/caravan_search_engine
5c3bd3176b44e8c3145ba67b4240678e18a1394e
[ "MIT" ]
null
null
null
import unittest from caravan.tables import Tables from caravan.parameter_set import ParameterSet class ParameterSetTest(unittest.TestCase): def setUp(self): self.t = Tables.get() self.t.clear() def test_ps(self): ps = ParameterSet(500, (2, 3, 4, 5)) self.assertEqual(ps.id, 500...
36.736842
71
0.609599
2,643
0.946633
0
0
0
0
0
0
10
0.003582
6a29e328b66b3aa40c02b6c801e1beb3b20cffb7
1,470
py
Python
tests/unit/transport/s3/test_settings.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
33
2021-02-01T15:49:37.000Z
2021-12-20T00:44:43.000Z
tests/unit/transport/s3/test_settings.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
46
2021-02-03T12:56:52.000Z
2021-12-19T18:50:27.000Z
tests/unit/transport/s3/test_settings.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
1
2021-12-07T09:02:44.000Z
2021-12-07T09:02:44.000Z
import pytest from pydantic import ValidationError from overhave.transport import OverhaveS3ManagerSettings class TestS3ManagerSettings: """ Unit tests for :class:`OverhaveS3ManagerSettings`. """ @pytest.mark.parametrize("test_s3_enabled", [False]) def test_disabled(self, test_s3_enabled: bool) -> None:...
39.72973
88
0.742857
1,358
0.92381
0
0
1,249
0.84966
0
0
137
0.093197