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
21c84ec2962f4cabe372bad1ec35d46334db44ad
460
py
Python
tess/src/directories.py
andresscode/tess-cli
ec0a1c865f627637a37c9f1a9b17c5ce6c7a26cc
[ "MIT" ]
null
null
null
tess/src/directories.py
andresscode/tess-cli
ec0a1c865f627637a37c9f1a9b17c5ce6c7a26cc
[ "MIT" ]
null
null
null
tess/src/directories.py
andresscode/tess-cli
ec0a1c865f627637a37c9f1a9b17c5ce6c7a26cc
[ "MIT" ]
null
null
null
class Directory: SOLUTIONS = 'solutions' CASES = 'cases' BUILD = 'build' TESS = '.tess' DEBUG_SOLUTIONS = '.tess/debug/src' DEBUG_BUILD = '.tess/debug/build' CUSTOM_CONFIG_LINUX = '~/.config/tess' CUSTOM_CONFIG_MAC = '~/Library/Application\\ Support/Tess' @staticmethod def init(...
30.666667
70
0.656522
459
0.997826
0
0
166
0.36087
0
0
122
0.265217
21c9f21c6cd6f96ad31cddc81cac13f24697fdd7
16,697
py
Python
tool/merganser/data_retrieval2.py
ualberta-smr/conflict-prediction
6cd2c54a8af991256d0a2f85c3ab5d828ea2c3f8
[ "MIT" ]
4
2019-08-04T03:36:51.000Z
2020-09-17T18:13:45.000Z
tool/merganser/data_retrieval2.py
ualberta-smr/conflict-prediction
6cd2c54a8af991256d0a2f85c3ab5d828ea2c3f8
[ "MIT" ]
null
null
null
tool/merganser/data_retrieval2.py
ualberta-smr/conflict-prediction
6cd2c54a8af991256d0a2f85c3ab5d828ea2c3f8
[ "MIT" ]
1
2019-06-11T21:15:34.000Z
2019-06-11T21:15:34.000Z
import os import pandas as pd import numpy as np from io import StringIO import config import logging import pandas as pd import pymysql from sqlalchemy import create_engine class Data_Retreival: def __init__(self): self.code_complexity_query = 'SELECT Merge_Scenario_merge_commit_hash, measure1_diff, ...
61.386029
164
0.605199
15,752
0.943403
0
0
0
0
0
0
7,288
0.436486
21cc703f3d4a4b8a67ee7e2ea3bf7802d6b33e52
977
py
Python
testData/typeinspectionv18/overrideInit.py
alek-sun/pydantic-pycharm-plugin
6b07519aadf0ff8b8a644c1f9ede88e09c687c80
[ "Apache-2.0", "MIT" ]
238
2019-08-05T12:46:09.000Z
2022-03-25T08:53:25.000Z
testData/typeinspectionv18/overrideInit.py
alek-sun/pydantic-pycharm-plugin
6b07519aadf0ff8b8a644c1f9ede88e09c687c80
[ "Apache-2.0", "MIT" ]
415
2019-07-15T17:39:35.000Z
2022-03-31T01:18:38.000Z
testData/typeinspectionv18/overrideInit.py
collerek/pydantic-pycharm-plugin
7068ece42334cc9fbe927d779d199c86d5139888
[ "Apache-2.0", "MIT" ]
7
2019-08-09T01:03:16.000Z
2022-02-08T03:28:19.000Z
from pydantic import BaseModel class A(BaseModel): abc: str = '123' def __init__(self): pass A() class B(BaseModel): abc: str = '123' def __init__(self, a: float, b: int): pass B(abc='123'<warning descr="null">)</warning> class C(BaseModel): abc: str = '123' def __init__(self...
17.446429
47
0.549642
192
0.19652
0
0
0
0
0
0
277
0.283521
21cd10ec0c43a2a5245ac89b17664c6b6824fc20
12,948
py
Python
gmusicapi_wrapper/utils.py
dmoebius/gmusicapi-wrapper
8708683cd33955def1378fc28319ef37805b851d
[ "MIT" ]
20
2015-08-29T15:35:22.000Z
2018-09-29T06:16:15.000Z
gmusicapi_wrapper/utils.py
dmoebius/gmusicapi-wrapper
8708683cd33955def1378fc28319ef37805b851d
[ "MIT" ]
17
2015-02-28T17:19:30.000Z
2018-06-08T10:33:29.000Z
gmusicapi_wrapper/utils.py
dmoebius/gmusicapi-wrapper
8708683cd33955def1378fc28319ef37805b851d
[ "MIT" ]
11
2015-12-11T15:20:24.000Z
2019-02-13T18:54:11.000Z
# coding=utf-8 """Utility functions for gmusicapi_wrapper. >>> import gmusicapi_wrapper.utils as gmw_utils >>> from gmusicapi_wrapper.utils import ... """ import logging import os import re import subprocess import mutagen from .constants import CHARACTER_REPLACEMENTS, CYGPATH_RE, TEMPLATE_PATTERNS from .decorat...
30.902148
121
0.742431
0
0
522
0.040315
1,719
0.132762
0
0
5,526
0.426784
21cdcdb0a1f00e654cce586794038d395dd30b80
46
py
Python
test/formatters/samplecode/black/in.py
mohkale/apheleia
75074a2f11e29aeca376b3004270a93ce44e59de
[ "MIT" ]
null
null
null
test/formatters/samplecode/black/in.py
mohkale/apheleia
75074a2f11e29aeca376b3004270a93ce44e59de
[ "MIT" ]
null
null
null
test/formatters/samplecode/black/in.py
mohkale/apheleia
75074a2f11e29aeca376b3004270a93ce44e59de
[ "MIT" ]
null
null
null
def asdjf ( l, a): 3 +4
9.2
20
0.26087
0
0
0
0
0
0
0
0
0
0
21cf17efec6eb019292dc869b1f00c24149cffb4
4,402
py
Python
restructuredBootstrap/custom_pygments_style.py
lakhman/restructuredBootstrap
57002c6db2d3b5b97dc23820b91711db4f00c07e
[ "MIT" ]
1
2020-08-30T08:58:46.000Z
2020-08-30T08:58:46.000Z
restructuredBootstrap/custom_pygments_style.py
lakhman/restructuredBootstrap
57002c6db2d3b5b97dc23820b91711db4f00c07e
[ "MIT" ]
null
null
null
restructuredBootstrap/custom_pygments_style.py
lakhman/restructuredBootstrap
57002c6db2d3b5b97dc23820b91711db4f00c07e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2017 - Anil Lakhman - MIT License # ----------------------------------------------------------------------------- from pygments.style import Style from pygments.token import Keyw...
48.911111
105
0.537483
3,858
0.87642
0
0
0
0
0
0
2,316
0.526124
21d125253f8a5cda1806b69aa7684a98a8e79afe
161
py
Python
best_cn_finetune/preprocess/__init__.py
you-know-who-2017/QA_MRC
323591995ac4ca0ca39e6101f6ff1c6f88104bc8
[ "MIT" ]
null
null
null
best_cn_finetune/preprocess/__init__.py
you-know-who-2017/QA_MRC
323591995ac4ca0ca39e6101f6ff1c6f88104bc8
[ "MIT" ]
null
null
null
best_cn_finetune/preprocess/__init__.py
you-know-who-2017/QA_MRC
323591995ac4ca0ca39e6101f6ff1c6f88104bc8
[ "MIT" ]
null
null
null
''' Author: geekli Date: 2020-12-28 15:53:18 LastEditTime: 2020-12-28 15:53:19 LastEditors: your name Description: FilePath: \QA_MRC\preprocess\__init__.py '''
17.888889
40
0.745342
0
0
0
0
0
0
0
0
160
0.993789
21d2b7b6aeb4285360c3d0b80011bc93dc5f393f
1,225
py
Python
pyleecan/Methods/Geometry/Segment/discretize.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
pyleecan/Methods/Geometry/Segment/discretize.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
pyleecan/Methods/Geometry/Segment/discretize.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
# -*- coding: utf-8 -*- from numpy import linspace from ....Methods.Machine import LINE_NPOINT_D from ....Methods.Geometry.Segment import NbPointSegmentDError def discretize(self, nb_point=LINE_NPOINT_D): """Return the discretize version of the Segment. Begin and end are always returned Parameters -...
26.630435
86
0.648163
0
0
0
0
0
0
0
0
756
0.617143
21d5966b8848acc25706e3eb669f0243b618f52f
5,258
py
Python
rrtimetable/rrtimetable/gtfs2rrrr.py
oooits72/rrrr
32e98bc593a853008864a130e5c26c113a5f2c7d
[ "BSD-2-Clause" ]
null
null
null
rrtimetable/rrtimetable/gtfs2rrrr.py
oooits72/rrrr
32e98bc593a853008864a130e5c26c113a5f2c7d
[ "BSD-2-Clause" ]
null
null
null
rrtimetable/rrtimetable/gtfs2rrrr.py
oooits72/rrrr
32e98bc593a853008864a130e5c26c113a5f2c7d
[ "BSD-2-Clause" ]
null
null
null
from model.transit import * from gtfsdb import GTFSDatabase import sys from exporter.timetable3 import export import exporter.timetable4 from datetime import timedelta, date MAX_DAYS = 32 def put_gtfs_modes(tdata): PhysicalMode(tdata,'0',name='Tram') PhysicalMode(tdata,'1',name='Metro') PhysicalMode(tdata...
38.948148
174
0.686383
0
0
0
0
0
0
0
0
445
0.084633
21d6e2f4acb563e98c1f7995f076c322bbe9c38d
329
py
Python
images.py
rvg77/Weather_bot
4716c7cfa22740dc05dfe768b1150e69a8d80cf4
[ "MIT" ]
null
null
null
images.py
rvg77/Weather_bot
4716c7cfa22740dc05dfe768b1150e69a8d80cf4
[ "MIT" ]
null
null
null
images.py
rvg77/Weather_bot
4716c7cfa22740dc05dfe768b1150e69a8d80cf4
[ "MIT" ]
null
null
null
from flickrapi import FlickrAPI import config def get(tags): flickr = FlickrAPI(config.FLICKR_PUBLIC, config.FLICKR_SECRET, format='parsed-json') rnd = 1 raw = flickr.photos.search(tags=tags[0:1], text=tags[1], tag_node='all', per_page=rnd, extras=config.extras) return raw['photos']['photo'][rnd - 1][...
32.9
112
0.705167
0
0
0
0
0
0
0
0
40
0.121581
21d6f524d8375ab9d0bc8eed28866f2443f50ef1
2,340
py
Python
Grid/grid_multi_yaxis.py
pyecharts/pyecharts_gallery
8430c37df923860b36c9d1d86f2adc9d94b9d72c
[ "MIT" ]
759
2019-04-28T22:42:10.000Z
2022-03-31T12:32:10.000Z
Grid/grid_multi_yaxis.py
pyecharts/pyecharts_gallery
8430c37df923860b36c9d1d86f2adc9d94b9d72c
[ "MIT" ]
65
2019-06-10T07:38:25.000Z
2022-03-24T10:10:03.000Z
Grid/grid_multi_yaxis.py
pyecharts/pyecharts_gallery
8430c37df923860b36c9d1d86f2adc9d94b9d72c
[ "MIT" ]
505
2019-04-28T08:45:33.000Z
2022-03-29T07:08:33.000Z
from pyecharts import options as opts from pyecharts.charts import Bar, Grid, Line x_data = ["{}月".format(i) for i in range(1, 13)] bar = ( Bar() .add_xaxis(x_data) .add_yaxis( "蒸发量", [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3], yaxis_index=0, color...
28.536585
88
0.525214
0
0
0
0
0
0
0
0
265
0.111018
21d9cfb9234f93c241128ce45315616d74f27dd4
1,128
py
Python
ketchuporo/main.py
v0y/ketchuporo
1e4f7e487ad2cbc36acbee5cb3271b2c20411a98
[ "MIT" ]
null
null
null
ketchuporo/main.py
v0y/ketchuporo
1e4f7e487ad2cbc36acbee5cb3271b2c20411a98
[ "MIT" ]
null
null
null
ketchuporo/main.py
v0y/ketchuporo
1e4f7e487ad2cbc36acbee5cb3271b2c20411a98
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from kivy.app import App from kivy.core.text import LabelBase from kivy.lang import Builder from kivy.uix.screenmanager import ScreenManager from ketchuporo.const import Files from ketchuporo.controllers import ( BreakScreen, BreaksOverScreen, PomodorosOverScreen, SettingsScree...
25.636364
79
0.786348
76
0.067376
0
0
0
0
0
0
163
0.144504
21dbf18ded51471b26713067cee205902e797c4d
139
py
Python
output/models/ms_data/particles/particles_b010_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/particles/particles_b010_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/particles/particles_b010_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.particles.particles_b010_xsd.particles_b010 import ( Doc, Elem, ) __all__ = [ "Doc", "Elem", ]
13.9
79
0.654676
0
0
0
0
0
0
0
0
11
0.079137
21dc9a19d80f7a66fcdb3bf1134d323402812861
379
py
Python
reading_plan/reading_plan.py
hidenori-t/snippet
d850bd429931f9268162419d3fb8d7803e58cff3
[ "MIT" ]
1
2020-06-19T10:06:37.000Z
2020-06-19T10:06:37.000Z
reading_plan/reading_plan.py
hidenori-t/snippet
d850bd429931f9268162419d3fb8d7803e58cff3
[ "MIT" ]
null
null
null
reading_plan/reading_plan.py
hidenori-t/snippet
d850bd429931f9268162419d3fb8d7803e58cff3
[ "MIT" ]
null
null
null
# 読書計画用スニペット from datetime import date def reading_plan(title, total_number_of_pages, period): current_page = int(input("Current page?: ")) deadline = (date(int(period[0]), int(period[1]), int(period[2])) - date.today()).days print(title, period, "まで残り", deadline, "days", (t...
34.454545
70
0.638522
0
0
0
0
0
0
0
0
76
0.186732
21dee0f109bef7ebd1561c75c737422f8c744405
6,144
py
Python
tests/benchmark/runners/test_constant.py
kambiz-aghaiepour/rally
be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2
[ "Apache-2.0" ]
1
2020-09-09T19:01:41.000Z
2020-09-09T19:01:41.000Z
tests/benchmark/runners/test_constant.py
kambiz-aghaiepour/rally
be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2
[ "Apache-2.0" ]
null
null
null
tests/benchmark/runners/test_constant.py
kambiz-aghaiepour/rally
be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2
[ "Apache-2.0" ]
1
2020-09-09T19:01:43.000Z
2020-09-09T19:01:43.000Z
# Copyright 2014: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
43.574468
79
0.65332
5,331
0.867676
0
0
0
0
0
0
1,188
0.193359
21e208b57e398b0bb168739f3f960a4bcb46ffb1
603
py
Python
FRMinutesDiscoutRate-BS.py
henchc/web-scrapers
e9f852524fce8ba8c3948f6de242185220a436cb
[ "MIT" ]
15
2017-11-03T20:44:26.000Z
2022-01-02T22:07:15.000Z
FRMinutesDiscoutRate-BS.py
henchc/web-scrapers
e9f852524fce8ba8c3948f6de242185220a436cb
[ "MIT" ]
null
null
null
FRMinutesDiscoutRate-BS.py
henchc/web-scrapers
e9f852524fce8ba8c3948f6de242185220a436cb
[ "MIT" ]
1
2020-09-26T22:52:51.000Z
2020-09-26T22:52:51.000Z
from urllib.request import Request, urlopen from bs4 import BeautifulSoup html = urlopen("http://www.federalreserve.gov/monetarypolicy/discountrate.htm") bsObj = BeautifulSoup(html.read(), "lxml") d1 = bsObj.findAll("option") urls = [] for item in d1: if "PDF" in str(item.get_text()): prefix = "http://ww...
24.12
79
0.640133
0
0
0
0
0
0
0
0
130
0.215589
21e2ac869244887a79d078c7ec21be9ea889f1fc
644
py
Python
py_analysis_quick_start/temp_line.py
jack-zheng/olm-analysis
16bdc06ece9c2b42983722b37d1c1688eaa90e0f
[ "MIT" ]
null
null
null
py_analysis_quick_start/temp_line.py
jack-zheng/olm-analysis
16bdc06ece9c2b42983722b37d1c1688eaa90e0f
[ "MIT" ]
null
null
null
py_analysis_quick_start/temp_line.py
jack-zheng/olm-analysis
16bdc06ece9c2b42983722b37d1c1688eaa90e0f
[ "MIT" ]
null
null
null
import random import matplotlib from matplotlib import pyplot as plt # 显示中文 # Windows/Linus font = {'family' : 'MicroSoft Yahei', 'weight': 'bold', 'size': '9'} matplotlib.rc("font", **font) # 设置图片 大小 20x8 fig = plt.figure(figsize=(20, 8), dpi=80) y = [random.randint(20, 35) for i in range(120)] x = range(120) plt....
21.466667
68
0.664596
0
0
0
0
0
0
0
0
283
0.383469
21e471824751e8af9bd25739b53726fcca933cea
13,846
py
Python
src/genie/libs/parser/sros/tests/test_show_isis.py
svautour/genieparser
7416c9a4b44582be835a0646fb7fad92a5181c7d
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/sros/tests/test_show_isis.py
svautour/genieparser
7416c9a4b44582be835a0646fb7fad92a5181c7d
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/sros/tests/test_show_isis.py
svautour/genieparser
7416c9a4b44582be835a0646fb7fad92a5181c7d
[ "Apache-2.0" ]
null
null
null
import unittest import time from unittest.mock import Mock from pyats.topology import Device from genie.metaparser.util.exceptions import SchemaEmptyParserError,\ SchemaMissingKeyError from genie.libs.parser.sros.show_isis import ShowRouterIsisAdjacency,\ ...
46.619529
84
0.336776
13,461
0.972194
0
0
0
0
0
0
6,736
0.486494
21e4e94462869b5e4859a8999659718ac1c5f326
935
py
Python
main.py
gaurav-karna/ReminderBot
e9c37f1c62a6b0f3e9f69ec5cc983ce2334ae6db
[ "MIT" ]
null
null
null
main.py
gaurav-karna/ReminderBot
e9c37f1c62a6b0f3e9f69ec5cc983ce2334ae6db
[ "MIT" ]
null
null
null
main.py
gaurav-karna/ReminderBot
e9c37f1c62a6b0f3e9f69ec5cc983ce2334ae6db
[ "MIT" ]
null
null
null
from sys import exit import argparse ALL_ARGS = None # found a free server to execute blindly, will update with CRON if need be def sanity(): if ALL_ARGS.hour > 23 or ALL_ARGS.hour < 0: print('Error in hour provided, must be >= 0 and <= 23') exit(0) if ALL_ARGS.min > 59 or ALL_ARGS.min < 0:...
28.333333
91
0.652406
0
0
0
0
0
0
0
0
352
0.376471
21e56d9e00f8e568b7ebb5d7d2e6c10697c117cb
1,846
py
Python
tests/test_model.py
JanCVanB/netflix
e3ff4feab832846640dbb3daa5877ef84a00adaf
[ "MIT" ]
22
2016-12-14T03:58:28.000Z
2021-03-07T00:10:05.000Z
tests/test_model.py
JanCVanB/netflix
e3ff4feab832846640dbb3daa5877ef84a00adaf
[ "MIT" ]
1
2015-06-16T07:30:35.000Z
2015-06-16T07:39:18.000Z
tests/test_model.py
jvanbrug/netflix
e3ff4feab832846640dbb3daa5877ef84a00adaf
[ "MIT" ]
5
2016-12-05T08:55:15.000Z
2017-11-01T23:33:05.000Z
import numpy as np import os import pickle import random from algorithms import model as model_algorithm from utils import data_paths def test_model_can_create_instance_with_no_arguments(): model_algorithm.Model() def test_model_load_creates_the_expected_instance(): model = model_algorithm.Model() mode...
33.563636
77
0.641387
0
0
0
0
0
0
0
0
75
0.040628
21e5dbdb2f7dff7b8135ef888c0daf3f4d0890d1
2,296
py
Python
tests/test_validate.py
leipzig/xd-cwl-utils
28d875ad7804c0e787d46f82a67a6b9d24d73679
[ "Apache-2.0" ]
null
null
null
tests/test_validate.py
leipzig/xd-cwl-utils
28d875ad7804c0e787d46f82a67a6b9d24d73679
[ "Apache-2.0" ]
null
null
null
tests/test_validate.py
leipzig/xd-cwl-utils
28d875ad7804c0e787d46f82a67a6b9d24d73679
[ "Apache-2.0" ]
null
null
null
from tests.test_base import TestBase from pathlib import Path from xd_cwl_utils.helpers.get_paths import get_tool_metadata from xd_cwl_utils.validate import metadata_validator_factory from xd_cwl_utils.classes.metadata.tool_metadata import ParentToolMetadata, SubtoolMetadata class TestValidateMetadata(TestBase): ...
43.320755
209
0.752178
2,013
0.876742
0
0
0
0
0
0
704
0.30662
21e6f2feb888d1690e95e165f59b5155700dbb10
533
py
Python
serenote/utils/alert.py
LeptoFlare/todo-bot
5c619abe421e4731c0dbc73561fbbd4a20839422
[ "MIT" ]
3
2020-10-07T04:41:25.000Z
2021-04-23T19:52:53.000Z
serenote/utils/alert.py
LeptoFlare/serenote
5c619abe421e4731c0dbc73561fbbd4a20839422
[ "MIT" ]
8
2020-10-07T00:13:00.000Z
2020-11-23T09:01:08.000Z
serenote/utils/alert.py
LeptoFlare/serenote
5c619abe421e4731c0dbc73561fbbd4a20839422
[ "MIT" ]
null
null
null
import discord class Alert(discord.Embed): alert_types = { "error": "<:error:807799799721230347>", } def __init__(self, alert_type, title: str, description: str = discord.Embed.Empty): super().__init__( color=discord.Color.blurple(), title=self.process_title(alert...
26.65
87
0.628518
515
0.966229
0
0
146
0.273921
0
0
107
0.20075
21e79dcdcdee9f92045ac51d4e85b03f25e5e3c8
2,616
py
Python
fixture/project.py
AleksandrSmoliak/mantis
be0f48a6a63a2b955755031a721db7fb8761fe97
[ "Apache-2.0" ]
null
null
null
fixture/project.py
AleksandrSmoliak/mantis
be0f48a6a63a2b955755031a721db7fb8761fe97
[ "Apache-2.0" ]
null
null
null
fixture/project.py
AleksandrSmoliak/mantis
be0f48a6a63a2b955755031a721db7fb8761fe97
[ "Apache-2.0" ]
null
null
null
from model.project import Project class ProjectHelper: def __init__(self, app): self.app = app def open_project_page(self): wd = self.app.wd if not (wd.current_url.endswith("/manage_proj_create_page.php")): wd.find_element_by_xpath("//div[@id='main-container']/div[@id='side...
42.193548
130
0.65367
2,720
0.987296
0
0
0
0
0
0
801
0.290744
21e821b8f988e5658b9c301ffb5c85c84dc141ff
773
py
Python
main.py
icarus747/DCS_MGRS_Converter
3ce687a697f1313658726a8881c134d321d67c22
[ "MIT" ]
null
null
null
main.py
icarus747/DCS_MGRS_Converter
3ce687a697f1313658726a8881c134d321d67c22
[ "MIT" ]
1
2020-10-12T20:11:27.000Z
2020-10-12T22:33:23.000Z
main.py
icarus747/DCS_MGRS_Converter
3ce687a697f1313658726a8881c134d321d67c22
[ "MIT" ]
1
2020-10-12T16:43:15.000Z
2020-10-12T16:43:15.000Z
#!/usr/bin/env python3 # By Icarus747 # Created 10/11/2020 # Used for converting DCS MGRS grid coordinates to Lat/Long coordinates. import mgrs import re def main(): m = mgrs.MGRS() # dcs = '38TLN046623' dcs = input("Enter MGRS cord.\n\r") dcs = validate_mgrs(dcs) dd = m.toLatLon(dcs) lat =...
20.342105
72
0.575679
0
0
0
0
0
0
0
0
298
0.385511
21e9a6907f5b3b46acccb7f2baa68e74cb020ad7
35
py
Python
tests/test_to_be_removed.py
Farama-Foundation/jump
31524fb6b5bfdd654c71446a1b3f4aef86955f42
[ "Apache-2.0" ]
2
2022-02-25T23:41:13.000Z
2022-02-26T13:22:53.000Z
tests/test_to_be_removed.py
Farama-Foundation/jump
31524fb6b5bfdd654c71446a1b3f4aef86955f42
[ "Apache-2.0" ]
null
null
null
tests/test_to_be_removed.py
Farama-Foundation/jump
31524fb6b5bfdd654c71446a1b3f4aef86955f42
[ "Apache-2.0" ]
2
2022-02-25T23:29:50.000Z
2022-03-08T05:42:19.000Z
def test_to_be_removed(): pass
11.666667
25
0.714286
0
0
0
0
0
0
0
0
0
0
21ea48feb3e6f28dc69bc7b3d03c6225f2e7de16
637
py
Python
backend/management/commands/setentryfolder.py
Software-Engineering-Bachelor-Project/mycroft
8ca3b6bfaa7b573f67def06c637f3c57838440a4
[ "MIT" ]
5
2020-03-01T11:17:09.000Z
2021-07-08T20:45:47.000Z
backend/management/commands/setentryfolder.py
Software-Engineering-Bachelor-Project/mycroft
8ca3b6bfaa7b573f67def06c637f3c57838440a4
[ "MIT" ]
245
2020-03-28T11:59:12.000Z
2020-05-26T10:05:22.000Z
backend/management/commands/setentryfolder.py
Software-Engineering-Bachelor-Project/mycroft
8ca3b6bfaa7b573f67def06c637f3c57838440a4
[ "MIT" ]
5
2020-02-03T08:15:13.000Z
2020-04-15T07:22:47.000Z
from django.core.management.base import BaseCommand from backend.file_manager import build_file_structure class Command(BaseCommand): help = 'Sets entry folder to given file path.' def add_arguments(self, parser): parser.add_argument('folder', type=str, help='Path to entry folder') def handle(se...
33.526316
76
0.66876
528
0.828885
0
0
0
0
0
0
140
0.21978
21eb2ec30e5683c312af0b66057c5639110b2683
2,149
py
Python
work/adder.py
MorrisMA/py65
bda1553ff88fc577944bde3d7cb3e75a3b83ccfa
[ "BSD-3-Clause" ]
null
null
null
work/adder.py
MorrisMA/py65
bda1553ff88fc577944bde3d7cb3e75a3b83ccfa
[ "BSD-3-Clause" ]
null
null
null
work/adder.py
MorrisMA/py65
bda1553ff88fc577944bde3d7cb3e75a3b83ccfa
[ "BSD-3-Clause" ]
null
null
null
from math import * N = 8 V = 4 Z = 2 C = 1 wordSign = 1 << 11 wordMask = (1 << 12) - 1 byteSign = 1 << 7 byteMask = (1 << 8) - 1 def adder(op, a, b, cin, siz=False): if siz: sign = wordSign mask = wordMask else: sign = byteSign mask = byteMask auL = mask & a if op == ...
24.988372
69
0.378781
0
0
0
0
0
0
0
0
329
0.153094
21eb9b89af0ad48429a382f4d21858a52a5325a0
324
py
Python
serve/utils.py
bvshyam/facegeneration_gan_sagemaker
d6bdb174bf1918d3e0823777c9f61437c8418b7a
[ "MIT" ]
9
2020-06-08T15:28:17.000Z
2021-12-27T12:47:37.000Z
serve/utils.py
bvshyam/facegeneration_gan_sagemaker
d6bdb174bf1918d3e0823777c9f61437c8418b7a
[ "MIT" ]
1
2021-08-28T02:50:04.000Z
2021-08-28T02:50:04.000Z
serve/utils.py
bvshyam/facegeneration_gan_sagemaker
d6bdb174bf1918d3e0823777c9f61437c8418b7a
[ "MIT" ]
4
2021-02-22T03:41:37.000Z
2021-12-27T12:52:56.000Z
import numpy as np import pickle import os import glob import torch def string_to_num(z_size_data): z_size_data = str(z_size_data) z_size_data = [float(i) for i in z_size_data.split(',')] z_size_data = torch.tensor(z_size_data) print("Inside Util") return z_size_data.deta...
17.052632
60
0.67284
0
0
0
0
0
0
0
0
16
0.049383
21ed527c3321a9993fe603a88785851b9688cff9
2,289
py
Python
optimism/contact/PenaltyContact.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
null
null
null
optimism/contact/PenaltyContact.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
1
2022-03-12T00:01:12.000Z
2022-03-12T00:01:12.000Z
optimism/contact/PenaltyContact.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
3
2021-12-23T19:53:31.000Z
2022-03-27T23:12:03.000Z
from optimism.JaxConfig import * from optimism import Mesh from optimism import QuadratureRule from optimism import Surface import numpy as onp def get_current_coordinates_at_quadrature_points(mesh, dispField, quadRule, edge): fieldIndex = Surface.get_field_index(edge, mesh.conns) edgeCoords = Surface.ev...
40.875
145
0.7737
0
0
0
0
0
0
0
0
0
0
21ee589b914a86f78fa5eda580da880b00125bd4
1,970
py
Python
nlplingo/oregon/event_models/uoregon/layers/elmo.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
3
2020-10-22T13:28:00.000Z
2022-03-24T19:57:22.000Z
nlplingo/oregon/event_models/uoregon/layers/elmo.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
null
null
null
nlplingo/oregon/event_models/uoregon/layers/elmo.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
1
2020-10-22T13:29:51.000Z
2020-10-22T13:29:51.000Z
import torch from torch.nn import ParameterList, Parameter class Elmo(torch.nn.Module): """ Computes a parameterised scalar mixture of N tensors, `mixture = gamma * sum(s_k * tensor_k)` where `s = softmax(w)`, with `w` and `gamma` scalar parameters. In addition, if `do_layer_norm=True` then apply laye...
34.561404
103
0.607614
1,908
0.968528
0
0
0
0
0
0
380
0.192893
21f0610f9c429eafbd7f7a9b6735df0089388e4e
1,035
py
Python
e-mail/enviar_email.py
HeyLucasLeao/HeyLucasLeao.github.io
5c5da105763bbaeb3391ca716a09e87490b6eb1f
[ "MIT" ]
1
2021-05-14T22:42:02.000Z
2021-05-14T22:42:02.000Z
e-mail/enviar_email.py
HeyLucasLeao/HeyLucasLeao.github.io
5c5da105763bbaeb3391ca716a09e87490b6eb1f
[ "MIT" ]
null
null
null
e-mail/enviar_email.py
HeyLucasLeao/HeyLucasLeao.github.io
5c5da105763bbaeb3391ca716a09e87490b6eb1f
[ "MIT" ]
null
null
null
import smtplib from email.message import EmailMessage from os import environ from time import sleep from datetime import datetime """envio um alerta sobre atualização do relatório para pessoas próximas, utilizando um gmail bot""" enderecos_de_usuarios = environ.get("ADRESS_USERS") emails = enderecos_de_usuarios.spli...
25.243902
77
0.700483
0
0
0
0
0
0
0
0
306
0.294514
21f0a27826fe6d05bf6a7d288647b63d5e047d8e
112
py
Python
battlehack20/engine/__init__.py
cooljoseph1/battlehack20-minimal
3a1207b7eeb48123664d870706971907bbe8c101
[ "MIT" ]
1
2021-01-01T19:02:34.000Z
2021-01-01T19:02:34.000Z
battlehack20/engine/__init__.py
cooljoseph1/battlehack20-minimal
3a1207b7eeb48123664d870706971907bbe8c101
[ "MIT" ]
null
null
null
battlehack20/engine/__init__.py
cooljoseph1/battlehack20-minimal
3a1207b7eeb48123664d870706971907bbe8c101
[ "MIT" ]
null
null
null
from .container import CodeContainer from .game import Game, GameConstants from .basicviewer import BasicViewer
28
37
0.848214
0
0
0
0
0
0
0
0
0
0
21f19e371c588730cf753a1e2c9dc29cf4e55481
5,082
py
Python
walter/common/walterWidgets/walterBaseVariantsMenu.py
all-in-one-of/OpenWalter
c2034f7fac20b36ffe3e500c01d40b87e84e2b97
[ "libtiff" ]
187
2018-08-14T19:06:20.000Z
2022-03-04T06:03:25.000Z
walter/common/walterWidgets/walterBaseVariantsMenu.py
all-in-one-of/OpenWalter
c2034f7fac20b36ffe3e500c01d40b87e84e2b97
[ "libtiff" ]
9
2018-08-22T15:34:48.000Z
2019-11-27T13:45:21.000Z
walter/common/walterWidgets/walterBaseVariantsMenu.py
all-in-one-of/OpenWalter
c2034f7fac20b36ffe3e500c01d40b87e84e2b97
[ "libtiff" ]
41
2018-08-14T19:06:09.000Z
2021-09-04T20:01:10.000Z
""" Base classes for USD variants. It's written on Python to be able to use complex UI and PySide. """ # Copyright 2017 Rodeo FX. All rights reserved. import json from .Qt import QtWidgets from walterComplexMenu import ComplexMenu class VariantSet(): """Per variantset variants list.""" def __init__(self, na...
30.987805
82
0.62436
4,838
0.951987
0
0
0
0
0
0
538
0.105864
21f21031be862a43049f9bef4b7aeb870a9264f2
173
py
Python
Chapter12/programs/prog06.py
gits00/raspberry-pi-computer-vision-programming
dfd5588c5d3e410945f862427c0f987536b04d9f
[ "MIT" ]
17
2020-08-08T20:47:29.000Z
2022-03-12T03:08:21.000Z
Chapter12/programs/prog06.py
gits00/raspberry-pi-computer-vision-programming
dfd5588c5d3e410945f862427c0f987536b04d9f
[ "MIT" ]
1
2020-07-27T09:57:19.000Z
2020-08-18T10:57:31.000Z
Chapter12/programs/prog06.py
gits00/raspberry-pi-computer-vision-programming
dfd5588c5d3e410945f862427c0f987536b04d9f
[ "MIT" ]
15
2020-06-30T01:52:06.000Z
2022-02-08T08:28:48.000Z
import matplotlib.pyplot as plt import mahotas photo = mahotas.demos.load('luispedro') photo = mahotas.colors.rgb2sepia(photo) plt.imshow(photo) plt.axis('off') plt.show()
19.222222
39
0.768786
0
0
0
0
0
0
0
0
16
0.092486
21f244a8537b9d091ee8fe82b19616dc52ef2d25
4,983
py
Python
src/speechless/readers/audio.py
Exepp/SpeechLess
6e7424e979f39132650db0d7426c1e9449dc43b8
[ "MIT" ]
1
2022-03-17T14:51:41.000Z
2022-03-17T14:51:41.000Z
src/speechless/readers/audio.py
Exepp/SpeechLess
6e7424e979f39132650db0d7426c1e9449dc43b8
[ "MIT" ]
14
2021-06-23T02:27:22.000Z
2021-11-27T15:43:39.000Z
src/speechless/readers/audio.py
Exepp/SpeechLess
6e7424e979f39132650db0d7426c1e9449dc43b8
[ "MIT" ]
null
null
null
import subprocess import av import numpy as np from av.audio.frame import format_dtypes from typing import Dict, Generator, Tuple from logging import Logger from pathlib import Path from enum import Enum, auto from speechless.utils.logging import NULL_LOGGER class StreamInfo(Enum): SAMPLE_RATE = auto() FRAME_SI...
37.75
100
0.675095
2,412
0.484046
1,199
0.240618
686
0.137668
0
0
2,208
0.443107
21f39b184cd5ca7c84021b18a3faeb579b594682
413
py
Python
scripts/multi_sound.py
deeredman1991/Simple-Mod-Loader
00fd342b43132d4ee1bd8ef9ac0910d02fece737
[ "MIT" ]
null
null
null
scripts/multi_sound.py
deeredman1991/Simple-Mod-Loader
00fd342b43132d4ee1bd8ef9ac0910d02fece737
[ "MIT" ]
null
null
null
scripts/multi_sound.py
deeredman1991/Simple-Mod-Loader
00fd342b43132d4ee1bd8ef9ac0910d02fece737
[ "MIT" ]
null
null
null
from kivy.core.audio import SoundLoader class MultiSound(object): # for playing the same sound multiple times. def __init__(self, file, num): self.num = num self.sounds = [SoundLoader.load(file) for n in range(num)] self.index = 0 def play(self): self.sounds[self.index]...
31.769231
70
0.598063
372
0.900726
0
0
0
0
0
0
44
0.106538
21f3edcb7d50ea036f5a264fb5f9a7a4e6b5cf1a
810
py
Python
datasets/orange.py
tkemps/mklaren
d9e7890aaa26cb3877e1a82114ab1e52df595d96
[ "BSD-2-Clause" ]
3
2019-10-28T17:20:37.000Z
2020-08-20T22:59:18.000Z
datasets/orange.py
tkemps/mklaren
d9e7890aaa26cb3877e1a82114ab1e52df595d96
[ "BSD-2-Clause" ]
null
null
null
datasets/orange.py
tkemps/mklaren
d9e7890aaa26cb3877e1a82114ab1e52df595d96
[ "BSD-2-Clause" ]
1
2019-10-28T17:20:35.000Z
2019-10-28T17:20:35.000Z
from numpy import genfromtxt from os.path import join, realpath, dirname ORANGE_PATH = join(dirname(realpath(__file__)), "orange") def load_ionosphere(n=None): """ Load the ionosphere dataset. :param n: Maximum number of examples. :return: Dataset in standard form. """ header = genfromtxt(join...
32.4
74
0.583951
0
0
0
0
0
0
0
0
193
0.238272
21f493f41dab43945de7c3a7977465eb24defd66
2,524
py
Python
makahiki/scripts/initialize_instance.py
justinslee/Wai-Not-Makahiki
4b7dd685012ec64758affe0ecee3103596d16aa7
[ "MIT" ]
1
2015-07-22T11:31:20.000Z
2015-07-22T11:31:20.000Z
makahiki/scripts/initialize_instance.py
justinslee/Wai-Not-Makahiki
4b7dd685012ec64758affe0ecee3103596d16aa7
[ "MIT" ]
null
null
null
makahiki/scripts/initialize_instance.py
justinslee/Wai-Not-Makahiki
4b7dd685012ec64758affe0ecee3103596d16aa7
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Invocation: scripts/initialize_instance .py -t|--type[=] default|demo|test -r|--heroku[=] <heroku_app> Use this script to create an instance with different types of configuration: [default]: includes the basic configuration. The admin needs to creat...
30.409639
90
0.666799
0
0
0
0
0
0
0
0
1,171
0.463946
21f5073b90d55e21b0f44ad29ee9acc3780ac97b
799
py
Python
Chapter25/listing25-2.py
TYRMars/PythonLearn
573c8d0b94b890924942e6ba7882eaf73597fb63
[ "MIT" ]
null
null
null
Chapter25/listing25-2.py
TYRMars/PythonLearn
573c8d0b94b890924942e6ba7882eaf73597fb63
[ "MIT" ]
null
null
null
Chapter25/listing25-2.py
TYRMars/PythonLearn
573c8d0b94b890924942e6ba7882eaf73597fb63
[ "MIT" ]
1
2018-08-23T14:41:32.000Z
2018-08-23T14:41:32.000Z
#!/usr/bin/env python print 'Content-type: text/html\n' from os.path import join, abspath import cgi, sys BASE_DIR = abspath('data') form = cgi.FieldStorage() filename = form.getvalue('filename') if not filename: print 'Please enter a file name' sys.exit() text = open(join(BASE_DIR, filename)).read() print...
23.5
67
0.594493
0
0
0
0
0
0
0
0
539
0.674593
21f70e00fd9069d8e81d9648fe78c6c73dc2b773
2,608
py
Python
python/xml_parsers.py
warlicks/Real_Estate_Data
137dc53a24a878cb96ec5132be6e81196902aec1
[ "MIT" ]
1
2021-01-24T23:59:18.000Z
2021-01-24T23:59:18.000Z
python/xml_parsers.py
warlicks/Real_Estate_Data
137dc53a24a878cb96ec5132be6e81196902aec1
[ "MIT" ]
3
2016-08-13T22:39:14.000Z
2016-08-21T01:00:51.000Z
python/xml_parsers.py
warlicks/Real_Estate_Data
137dc53a24a878cb96ec5132be6e81196902aec1
[ "MIT" ]
null
null
null
# Sean Warlick # Seattle Housing Project # XML Parsing Functions # Date: July 12, 2016 ############################################################################### # Import packages import xml.etree.ElementTree as et def location_parse(xml_string): # Convert the data returned from api to XML xml_element = et.fro...
28.347826
126
0.669095
0
0
0
0
0
0
0
0
1,151
0.441334
21f7449c3c2398e5a298ec70522f29070b828181
462
py
Python
CodeChef/CRAWA.py
tapaswenipathak/Competitive-Programming
97bba0f2ccdf587df93244a027050489f0905480
[ "MIT" ]
2
2019-04-20T18:03:20.000Z
2019-08-17T21:20:47.000Z
CodeChef/CRAWA.py
tapaswenipathak/Competitive-Programming
97bba0f2ccdf587df93244a027050489f0905480
[ "MIT" ]
null
null
null
CodeChef/CRAWA.py
tapaswenipathak/Competitive-Programming
97bba0f2ccdf587df93244a027050489f0905480
[ "MIT" ]
1
2019-04-20T18:03:26.000Z
2019-04-20T18:03:26.000Z
T = int (raw_input ()) while T : X, Y = map (long, raw_input ().split ()) T -= 1 neg_X = -X neg_Y = -Y if X == 0 and Y == 0 : print "YES" elif X < 0 and not (X & 1) and X <= Y and Y <= neg_X : print "YES" elif X > 0 and X & 1 and (1 - X) <= Y and Y <= (X + 1) : print "YES" elif Y > 0 and not (Y & 1) and...
20.086957
61
0.478355
0
0
0
0
0
0
0
0
29
0.062771
21f9033f249e427aede9e4e1c1b360170f737e4c
11,009
py
Python
pygame_gui/elements/ui_horizontal_slider.py
jtiai/pygame_gui
3da0e1f2c4c60a2780c798d5592f2603ba786b34
[ "MIT" ]
null
null
null
pygame_gui/elements/ui_horizontal_slider.py
jtiai/pygame_gui
3da0e1f2c4c60a2780c798d5592f2603ba786b34
[ "MIT" ]
null
null
null
pygame_gui/elements/ui_horizontal_slider.py
jtiai/pygame_gui
3da0e1f2c4c60a2780c798d5592f2603ba786b34
[ "MIT" ]
null
null
null
import pygame import warnings from typing import Union, List, Tuple from .. import ui_manager from ..core import ui_container from ..core.ui_element import UIElement from ..elements.ui_button import UIButton class UIHorizontalSlider(UIElement): """ A horizontal slider is intended to help users adjust values ...
51.929245
118
0.597239
10,801
0.98075
0
0
0
0
0
0
1,551
0.140834
21f9e26af5d975c9a2fcbd148cf8f461ec5ebcb9
76
py
Python
Scheduling and Launching/openme.py
Piraato/Learn-Python
ae33680b61bbf41f5c0c29c79544b54e59df80b2
[ "MIT" ]
null
null
null
Scheduling and Launching/openme.py
Piraato/Learn-Python
ae33680b61bbf41f5c0c29c79544b54e59df80b2
[ "MIT" ]
null
null
null
Scheduling and Launching/openme.py
Piraato/Learn-Python
ae33680b61bbf41f5c0c29c79544b54e59df80b2
[ "MIT" ]
null
null
null
print("Very well, you can run Python scripts from a Python script.") input()
38
68
0.75
0
0
0
0
0
0
0
0
61
0.802632
21fb519669ab124f568a6a6b5a2310b85412e2fa
2,614
py
Python
src/django_datatables/mixins.py
ryanbowen/django-datatables
995b82ecf666d4fcae3322861312d927cba07c82
[ "Apache-2.0" ]
null
null
null
src/django_datatables/mixins.py
ryanbowen/django-datatables
995b82ecf666d4fcae3322861312d927cba07c82
[ "Apache-2.0" ]
null
null
null
src/django_datatables/mixins.py
ryanbowen/django-datatables
995b82ecf666d4fcae3322861312d927cba07c82
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import logging from django.core.serializers.json import DjangoJSONEncoder from django.http import HttpResponse, JsonResponse from django.utils.encoding import force_text from django.utils.functional import Promise from django.utils.translation import ugettext as _ from django.utils.cache ...
30.752941
107
0.643458
2,050
0.784239
0
0
0
0
0
0
417
0.159526
21fbcb929911a995b3f6095877a796a92d8d46dc
2,193
py
Python
src/dsa/misc/utils/class_generator.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
src/dsa/misc/utils/class_generator.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
src/dsa/misc/utils/class_generator.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
import re from os import path def preprocess_file(class_name='MyClass', file_name=None, property_name=None): if file_name is None: file_name = class_name.lower() + '.py' found = [False] * 3 class_info = { 'name': class_name, 'definition': 'class {}:'.format(class_name) } if path.exists(fil...
27.074074
78
0.679891
0
0
0
0
0
0
0
0
499
0.227542
21fdc764a84fb352ca7b3148dd8aba7ab9037b6c
28,087
py
Python
Functions/SimulationType/DC.py
SunYongshuai/SunSpice
7f9368a7af1421a63b69dcce3decc6d06ff1ff6b
[ "Apache-2.0" ]
1
2018-12-10T06:06:54.000Z
2018-12-10T06:06:54.000Z
Functions/SimulationType/DC.py
SunYongshuai/SunSpice
7f9368a7af1421a63b69dcce3decc6d06ff1ff6b
[ "Apache-2.0" ]
null
null
null
Functions/SimulationType/DC.py
SunYongshuai/SunSpice
7f9368a7af1421a63b69dcce3decc6d06ff1ff6b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- encoding="UTF-8" -*- #Import Package import numpy as np from tkinter.messagebox import * import parameters from Functions.string2num import string2num def getOutTitleDC(): if len(parameters.listDCParam) == 1: paramName = parameters.listDCParam[0].paramName WriteString = ...
48.176672
228
0.492505
0
0
0
0
0
0
0
0
1,981
0.070531
21ff78f085a5d50f157b5c45478181711a1254eb
2,086
py
Python
kilojoule/templates/humidair_USCS_F.py
johnfmaddox/kilojoule
b4c146ded82e3ef51a0252ff48b1066a076e9aeb
[ "MIT" ]
null
null
null
kilojoule/templates/humidair_USCS_F.py
johnfmaddox/kilojoule
b4c146ded82e3ef51a0252ff48b1066a076e9aeb
[ "MIT" ]
null
null
null
kilojoule/templates/humidair_USCS_F.py
johnfmaddox/kilojoule
b4c146ded82e3ef51a0252ff48b1066a076e9aeb
[ "MIT" ]
null
null
null
import kilojoule.humidair import kilojoule.realfluid import kilojoule.idealgas as idealgas from kilojoule.organization import QuantityTable from kilojoule.display import Calculations, Summary from kilojoule.units import units, Quantity import kilojoule.magics humidair = kilojoule.humidair.Properties(unit_syste...
47.409091
85
0.553691
0
0
0
0
0
0
0
0
1,040
0.498562
21fff18d4759e159cf4d6e56e3ded5c1754b0ebb
229
py
Python
tests/__main__.py
technikian/sty
4c614b1b7d7ca26dd2f12fa6ef180c6586a8ad3a
[ "Apache-2.0" ]
170
2018-02-10T18:21:21.000Z
2022-03-16T17:50:12.000Z
tests/__main__.py
technikian/sty
4c614b1b7d7ca26dd2f12fa6ef180c6586a8ad3a
[ "Apache-2.0" ]
44
2018-02-26T15:41:44.000Z
2022-02-05T13:34:25.000Z
tests/__main__.py
technikian/sty
4c614b1b7d7ca26dd2f12fa6ef180c6586a8ad3a
[ "Apache-2.0" ]
13
2018-05-24T17:49:12.000Z
2022-03-25T06:42:07.000Z
""" """ from sty import RgbFg, Style, ef, fg from tests import demo, test_ansi_values # isort:skip from tests.docs import ( # isort:skip getting_started, effects, coloring, customizing, muting, etc, )
15.266667
54
0.650655
0
0
0
0
0
0
0
0
31
0.135371
1d0018b86cdd965ac8f6b7d70eb9745a2cec6bbc
7,640
py
Python
CRF/scan_text_rev.py
henchc/MHG-Scansion-BLSTM
551abd3da9a2f989fb770ee97dbd73445edd0d3c
[ "MIT" ]
4
2018-04-21T08:52:25.000Z
2020-01-08T13:57:05.000Z
CRF/scan_text_rev.py
henchc/MHG-Scansion-BLSTM
551abd3da9a2f989fb770ee97dbd73445edd0d3c
[ "MIT" ]
null
null
null
CRF/scan_text_rev.py
henchc/MHG-Scansion-BLSTM
551abd3da9a2f989fb770ee97dbd73445edd0d3c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals # for python2 compatibility from __future__ import division from __future__ import absolute_import # created at UC Berkeley 2015 # Authors: Christopher Hench # This program scans MHG epic poetry, returning data to analyze statistically import codecs im...
32.7897
99
0.47055
0
0
0
0
0
0
0
0
1,853
0.242349
1d01a7ba705971e5adcf5ebca0f865bd17b58593
12,084
py
Python
aps_32id/run/energy_scan.py
tomography/scanscripts
f7486fe1285da4684f3709661f112ccc15c2e4b8
[ "BSD-3-Clause" ]
null
null
null
aps_32id/run/energy_scan.py
tomography/scanscripts
f7486fe1285da4684f3709661f112ccc15c2e4b8
[ "BSD-3-Clause" ]
18
2017-03-27T01:35:35.000Z
2018-04-03T20:30:49.000Z
aps_32id/run/energy_scan.py
tomography/scanscripts
f7486fe1285da4684f3709661f112ccc15c2e4b8
[ "BSD-3-Clause" ]
8
2017-02-22T16:31:43.000Z
2017-10-15T18:22:30.000Z
# -*- coding: utf-8 -*- ####################### '''For each energy step, a projection and then a flat field are acquired. The script calls the move_energy method from the TXM class. ''' import time import os import logging import warnings import numpy as np import h5py import tqdm from scanlib.scan_variables import...
40.28
87
0.642337
0
0
0
0
0
0
0
0
5,677
0.469562
1d02c486ba87d6a7adf60c5da4f6c32ac5c73634
308
py
Python
Section 1: Linux, Virtual Machines, Docker/home_exercise_4_-_flask/IMDB/data_test.py
MarkVoitov/DS_ABB
130ba32fe7187d41fee5651800b965211d1ccaa9
[ "MIT" ]
null
null
null
Section 1: Linux, Virtual Machines, Docker/home_exercise_4_-_flask/IMDB/data_test.py
MarkVoitov/DS_ABB
130ba32fe7187d41fee5651800b965211d1ccaa9
[ "MIT" ]
null
null
null
Section 1: Linux, Virtual Machines, Docker/home_exercise_4_-_flask/IMDB/data_test.py
MarkVoitov/DS_ABB
130ba32fe7187d41fee5651800b965211d1ccaa9
[ "MIT" ]
null
null
null
from contextlib import closing import sqlite3 def query(db_name, sql): with closing(sqlite3.connect(db_name)) as con, con, \ closing(con.cursor()) as cur: cur.execute(sql) print(cur.fetchall()) if __name__ == '__main__': query("IMDB.db","""SELECT * FROM title_basics LIMIT 200""")
23.692308
61
0.672078
0
0
0
0
0
0
0
0
61
0.198052
1d0439f0057cae94a572c82de4fa0e43b8aad68d
4,551
py
Python
scripts/frontend/page_components/InformationBlock.py
MichaelLapshin/Virtual-Hand-Application
7c27317feae3d54fd10e616858ab0ab79bda6338
[ "MIT" ]
1
2021-08-31T05:22:04.000Z
2021-08-31T05:22:04.000Z
scripts/frontend/page_components/InformationBlock.py
MichaelLapshin/Virtual-Hand-Application
7c27317feae3d54fd10e616858ab0ab79bda6338
[ "MIT" ]
null
null
null
scripts/frontend/page_components/InformationBlock.py
MichaelLapshin/Virtual-Hand-Application
7c27317feae3d54fd10e616858ab0ab79bda6338
[ "MIT" ]
null
null
null
import tkinter import tkinter.font from scripts import General, Parameters, Constants from scripts.frontend.custom_widgets.CustomLabels import InformationLabel from scripts.frontend.custom_widgets.WidgetInterface import WidgetInterface TITLE_FONT_SIZE = 8 class Frame(tkinter.Frame, WidgetInterface): def __init...
37.925
109
0.667985
4,290
0.94265
0
0
0
0
0
0
322
0.070754
1d04634957ca46a9855555b61ec6eb3e8a8ca0fd
2,320
py
Python
tests/st/ops/gpu/test_softmax_cross_entropy_with_logits_op.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
2
2020-04-28T03:49:10.000Z
2020-04-28T03:49:13.000Z
tests/st/ops/gpu/test_softmax_cross_entropy_with_logits_op.py
liyong126/mindspore
930a1fb0a8fa9432025442c4f4732058bb7af592
[ "Apache-2.0" ]
7
2020-03-30T08:31:56.000Z
2020-04-01T09:54:39.000Z
tests/st/ops/gpu/test_softmax_cross_entropy_with_logits_op.py
liyong126/mindspore
930a1fb0a8fa9432025442c4f4732058bb7af592
[ "Apache-2.0" ]
1
2020-03-30T17:07:43.000Z
2020-03-30T17:07:43.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.322034
78
0.693534
288
0.124138
0
0
1,088
0.468966
0
0
663
0.285776
1d051c46614f1151b0203d1021021db398273d06
89
py
Python
ner_trainer/forms.py
johnfraney/django-ner-trainer
38a02a858412eab2d4721659ee33a6e8721199ea
[ "MIT" ]
6
2018-07-26T12:11:21.000Z
2021-07-14T07:08:55.000Z
ner_trainer/forms.py
johnfraney/django-ner-trainer
38a02a858412eab2d4721659ee33a6e8721199ea
[ "MIT" ]
null
null
null
ner_trainer/forms.py
johnfraney/django-ner-trainer
38a02a858412eab2d4721659ee33a6e8721199ea
[ "MIT" ]
4
2019-03-31T06:29:53.000Z
2022-03-18T17:27:33.000Z
from django import forms class ModelTestForm(forms.Form): text = forms.CharField()
14.833333
32
0.741573
61
0.685393
0
0
0
0
0
0
0
0
1d056b6de10144e26a10af65f7fd8be29e15279f
440
py
Python
docs/notebooks/startup.py
withrocks/commonlims
d8a925c917aa26e8205fefb3966a9f49f8f2e2f8
[ "BSD-3-Clause" ]
4
2019-05-27T13:55:07.000Z
2021-03-30T07:05:09.000Z
docs/notebooks/startup.py
withrocks/commonlims
d8a925c917aa26e8205fefb3966a9f49f8f2e2f8
[ "BSD-3-Clause" ]
99
2019-05-20T14:16:33.000Z
2021-01-19T09:25:15.000Z
docs/notebooks/startup.py
withrocks/commonlims
d8a925c917aa26e8205fefb3966a9f49f8f2e2f8
[ "BSD-3-Clause" ]
1
2020-08-10T07:55:40.000Z
2020-08-10T07:55:40.000Z
from uuid import uuid4 from sentry.runner import configure configure() from clims.models import * from clims.services import * from sentry.models import * from sentry.testutils.fixtures import Fixtures app = ApplicationService() ioc.set_application(app) notebook_plugin, _ = PluginRegistration.objects.get_or_create( ...
25.882353
62
0.770455
0
0
0
0
0
0
0
0
38
0.086364
1d058146fd52903447fe36684e99aa705f6fd6f5
2,747
py
Python
charts.py
glichfalls/covid-19-charts
52e9b78632388d3459bdc04f91513c00eaee000c
[ "MIT" ]
null
null
null
charts.py
glichfalls/covid-19-charts
52e9b78632388d3459bdc04f91513c00eaee000c
[ "MIT" ]
null
null
null
charts.py
glichfalls/covid-19-charts
52e9b78632388d3459bdc04f91513c00eaee000c
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.ticker as ticker import matplotlib.dates as mdates from db import DatabaseConnection from datetime import datetime, timedelta class Charts: def __init__(self, db: DatabaseConnection): self._db = db # get pie chart of the total cases by continent and ...
37.121622
92
0.636695
2,568
0.934498
0
0
0
0
0
0
397
0.144469
1d05e137c8e932893de9f86db9d1dd1e6a4e1e10
9,452
py
Python
test/mitmproxy/addons/test_proxyauth.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
4
2018-03-14T03:47:22.000Z
2018-06-28T08:00:39.000Z
test/mitmproxy/addons/test_proxyauth.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
test/mitmproxy/addons/test_proxyauth.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
1
2018-04-22T15:43:46.000Z
2018-04-22T15:43:46.000Z
import binascii import pytest from unittest import mock from mitmproxy import exceptions from mitmproxy.addons import proxyauth from mitmproxy.test import taddons from mitmproxy.test import tflow from mitmproxy.test import tutils class TestMkauth: def test_mkauth_scheme(self): assert proxyauth.mkauth('u...
37.507937
133
0.563479
9,211
0.974503
0
0
2,005
0.212124
0
0
1,846
0.195303
1d065428061f612cebb09870cc3474d78abeda68
303
py
Python
ari/track.py
gieseladev/ari-player
64a030956f6d35ea48275448df42228c38b2fa88
[ "MIT" ]
1
2019-08-04T00:48:52.000Z
2019-08-04T00:48:52.000Z
ari/track.py
gieseladev/ari-player
64a030956f6d35ea48275448df42228c38b2fa88
[ "MIT" ]
1
2021-06-02T00:24:45.000Z
2021-06-02T00:24:45.000Z
ari/track.py
gieseladev/ari-player
64a030956f6d35ea48275448df42228c38b2fa88
[ "MIT" ]
null
null
null
import dataclasses __all__ = ["ElakshiTrack", "AudioSource"] @dataclasses.dataclass(frozen=True) class ElakshiTrack: eid: str @dataclasses.dataclass(frozen=True) class AudioSource: source: str identifier: str uri: str start_offset: float end_offset: float is_live: bool
15.947368
41
0.716172
163
0.537954
0
0
235
0.775578
0
0
27
0.089109
1d065f1a5b01dcca6c7a7a8f8392fd06df430cc0
2,340
py
Python
models/randomized_lu.py
pjrule/math126-final-project
93c9953366fd684289ba97297ab16651f8c92d39
[ "MIT" ]
null
null
null
models/randomized_lu.py
pjrule/math126-final-project
93c9953366fd684289ba97297ab16651f8c92d39
[ "MIT" ]
null
null
null
models/randomized_lu.py
pjrule/math126-final-project
93c9953366fd684289ba97297ab16651f8c92d39
[ "MIT" ]
null
null
null
"""Randomized LU decomposition.""" import numpy as np import scipy.linalg as la from typing import Tuple PQLU = Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray] def randomized_lu(A: np.ndarray, k: int, l: int, seed: int = 0) -> PQLU: """Performs a randomized rank-k LU decomposition of A. Adapted fr...
30.789474
81
0.594872
0
0
0
0
0
0
0
0
1,270
0.539737
1d0689511b2f8bc63d822a5b11a5451036ea240f
86
py
Python
homeassistant/components/html5/const.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/html5/const.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/html5/const.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Constants for the HTML5 component.""" DOMAIN = "html5" SERVICE_DISMISS = "dismiss"
21.5
40
0.72093
0
0
0
0
0
0
0
0
56
0.651163
1d06db36083ac9ceb764551230b0138b99515c1f
4,045
py
Python
soccer3d/soccerdepth/models/encoder_decoder.py
ngerstle/soccerontable
25426ff0f8fe0ce008b99c5c0fdbb35091d8d92c
[ "BSD-2-Clause" ]
465
2018-05-18T04:43:40.000Z
2022-02-27T03:09:25.000Z
soccer3d/soccerdepth/models/encoder_decoder.py
ngerstle/soccerontable
25426ff0f8fe0ce008b99c5c0fdbb35091d8d92c
[ "BSD-2-Clause" ]
18
2018-06-20T15:03:10.000Z
2021-05-05T04:33:38.000Z
soccer3d/soccerdepth/models/encoder_decoder.py
ngerstle/soccerontable
25426ff0f8fe0ce008b99c5c0fdbb35091d8d92c
[ "BSD-2-Clause" ]
97
2018-05-03T09:12:30.000Z
2022-01-25T12:49:33.000Z
import torch import torch.nn as nn class G(nn.Module): def __init__(self, input_nc, output_nc, ngf=64): super(G, self).__init__() # 128 x 128 self.conv1 = nn.Conv2d(input_nc, ngf, 4, 2, 1) # 64 x 64 x1 self.conv2 = nn.Conv2d(ngf, ngf*2, 4, 2, 1) # 32 x 32 x 2 ...
40.858586
76
0.500371
4,008
0.990853
0
0
0
0
0
0
1,154
0.28529
1d07976c7f74517929e92feef1305db889f52a18
264
py
Python
slotter/__init__.py
saurabh-hirani/slotter
a6d9dcacb61b5e1111e383855d181ef782ea494e
[ "MIT" ]
5
2016-10-21T06:58:30.000Z
2016-11-22T16:12:07.000Z
slotter/__init__.py
saurabh-hirani/slotter
a6d9dcacb61b5e1111e383855d181ef782ea494e
[ "MIT" ]
null
null
null
slotter/__init__.py
saurabh-hirani/slotter
a6d9dcacb61b5e1111e383855d181ef782ea494e
[ "MIT" ]
1
2020-02-27T03:36:01.000Z
2020-02-27T03:36:01.000Z
""" Slotter Slotter is used to slot elements in buckets """ from .version import __version__ __title__ = 'slotter' __author__ = 'Saurabh Hirani' __license__ = 'MIT' __copyright__ = 'Copyright 2016 Saurabh Hirani' from .slotter import Slotter create = Slotter
15.529412
47
0.757576
0
0
0
0
0
0
0
0
121
0.458333
1d0814786340bf7cae3bfaf13859f75091f59cb9
941
py
Python
pytglib/api/types/chat_type_supergroup.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/chat_type_supergroup.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/chat_type_supergroup.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class ChatTypeSupergroup(Object): """ A supergroup (i.e. a chat with up to GetOption("supergroup_max_size") other users), or channel (with unlimited members) Attributes: ID (:obj:`str`): ``ChatTypeSupergroup`` Args: supergroup_id (:obj:`int`): ...
25.432432
124
0.624867
909
0.965994
0
0
216
0.229543
0
0
531
0.564293
1d09e8d254b0e97154810e8229ddfdd861fe0345
12,370
py
Python
utils/logger_utils.py
sunhailin-Leo/TeamLeoX_BlogsCrawler
389ff31e02bdff415c8bc470a3a48da1acb14c4c
[ "MIT" ]
null
null
null
utils/logger_utils.py
sunhailin-Leo/TeamLeoX_BlogsCrawler
389ff31e02bdff415c8bc470a3a48da1acb14c4c
[ "MIT" ]
null
null
null
utils/logger_utils.py
sunhailin-Leo/TeamLeoX_BlogsCrawler
389ff31e02bdff415c8bc470a3a48da1acb14c4c
[ "MIT" ]
null
null
null
import os import sys import logging from typing import Dict from concurrent_log_handler import ConcurrentRotatingFileHandler LOG_NAME: str = "service.log" LOG_LEVEL_INT: int = 20 formatter_dict = { 1: logging.Formatter( "日志时间【%(asctime)s】 - 日志名称【%(name)s】 - 文件【%(filename)s】 - " "第【%(lineno)d】行 -...
35.342857
89
0.576475
10,340
0.767518
0
0
1,162
0.086253
0
0
5,046
0.374555
1d0a33a6f3a05c3c57bcd109bd1331137ac931d0
1,945
py
Python
Blogs/Automate table mappings JSON creation/Create_JSON.py
subepie/DMS_tool
de4d3b3295366bb2118b31eb5ec268a278d4a557
[ "Apache-2.0" ]
43
2017-11-09T23:01:35.000Z
2020-09-08T14:51:41.000Z
Blogs/Automate table mappings JSON creation/Create_JSON.py
subepie/DMS_tool
de4d3b3295366bb2118b31eb5ec268a278d4a557
[ "Apache-2.0" ]
1
2019-09-11T09:54:55.000Z
2020-05-12T11:37:44.000Z
Blogs/Automate table mappings JSON creation/Create_JSON.py
subepie/DMS_tool
de4d3b3295366bb2118b31eb5ec268a278d4a557
[ "Apache-2.0" ]
34
2017-07-19T14:37:31.000Z
2020-08-30T00:54:01.000Z
import json import csv import os data = {} line_count = 0 data['rules'] = [] def writeJSON(): with open('automated_json.json', 'w') as outfile: json.dump(data, outfile) def createJSON(csvfile,action): global line_count with open(csvfile) as file: csv_reader = csv.reader(fi...
32.416667
90
0.579949
0
0
0
0
0
0
0
0
737
0.37892
1d0ece57935690eb57b92110e051ae26ccac522f
502
py
Python
website/events/helpers/views.py
eamanu/asoc_members
bf2e99e9c63c60a59bdfd10ca1812d78851cbde6
[ "MIT" ]
9
2019-03-24T21:56:52.000Z
2022-03-14T04:21:48.000Z
website/events/helpers/views.py
eamanu/asoc_members
bf2e99e9c63c60a59bdfd10ca1812d78851cbde6
[ "MIT" ]
111
2018-04-30T03:26:58.000Z
2021-12-01T13:06:24.000Z
website/events/helpers/views.py
eamanu/asoc_members
bf2e99e9c63c60a59bdfd10ca1812d78851cbde6
[ "MIT" ]
23
2018-09-06T21:39:56.000Z
2022-03-25T15:08:52.000Z
from django.db.models import Q import functools import operator def search_filtered_queryset(base_queryset, search_fields, search_value): filters = [] for key, value in search_fields.items(): field_filter = key if value != 'equal': field_filter = field_filter + '__' + value ...
31.375
76
0.695219
0
0
0
0
0
0
0
0
11
0.021912
0dfb51cb719fc893ece63b1717e0432e40ccdc7b
1,103
py
Python
machine_vision/yolov2_20class.py
huningxin/MaixPy_scripts
a54015f97989c46cc6b3d58f985156e619666a51
[ "MIT" ]
1
2020-05-04T15:22:53.000Z
2020-05-04T15:22:53.000Z
machine_vision/yolov2_20class.py
huningxin/MaixPy_scripts
a54015f97989c46cc6b3d58f985156e619666a51
[ "MIT" ]
null
null
null
machine_vision/yolov2_20class.py
huningxin/MaixPy_scripts
a54015f97989c46cc6b3d58f985156e619666a51
[ "MIT" ]
null
null
null
#refer to http://blog.sipeed.com/p/677.html import sensor,image,lcd,time import KPU as kpu lcd.init(freq=15000000) sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.set_vflip(1) sensor.run(1) clock = time.clock() classes = ['aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bu...
35.580645
205
0.602901
0
0
0
0
0
0
0
0
205
0.185857
0dfc18de94d1500e566885fab28962fb3a619a87
759
py
Python
fastNLP/modules/encoder/__init__.py
brxx122/fastNLP
8affc4a3ff75061ccbdecca6247493f346634155
[ "Apache-2.0" ]
null
null
null
fastNLP/modules/encoder/__init__.py
brxx122/fastNLP
8affc4a3ff75061ccbdecca6247493f346634155
[ "Apache-2.0" ]
null
null
null
fastNLP/modules/encoder/__init__.py
brxx122/fastNLP
8affc4a3ff75061ccbdecca6247493f346634155
[ "Apache-2.0" ]
2
2020-04-21T06:17:59.000Z
2020-05-05T11:22:11.000Z
""" .. todo:: doc """ __all__ = [ # "BertModel", "ConvolutionCharEncoder", "LSTMCharEncoder", "ConvMaxpool", "LSTM", "StarTransformer", "TransformerEncoder", "VarRNN", "VarLSTM", "VarGRU", "MaxPool", "MaxPoolWithMask", "AvgPool", "AvgPoolWithMask", ...
18.512195
71
0.716733
0
0
0
0
0
0
0
0
233
0.306983
0dfcdef8833ed5833ba57eeec1abdbc79c20e892
14,393
py
Python
DupLess.py
FadyMohareb/dupless
60fef3e36dab619bc3c543d05dcb6d2fa359b62f
[ "MIT" ]
1
2020-02-03T14:35:11.000Z
2020-02-03T14:35:11.000Z
DupLess.py
FadyMohareb/dupless
60fef3e36dab619bc3c543d05dcb6d2fa359b62f
[ "MIT" ]
null
null
null
DupLess.py
FadyMohareb/dupless
60fef3e36dab619bc3c543d05dcb6d2fa359b62f
[ "MIT" ]
null
null
null
#!/usr/bin/python # DupLess is a python script to detect and remove artifact duplications in assemblies. # Assemblies from heterozygous genomes tend to create two contigs instead of # one in areas of high heterozygosity. DupLess detects these regions based on # read coverage and sequence similarity. # Depend...
51.039007
195
0.606406
0
0
0
0
0
0
0
0
8,822
0.612937
0dfe6c5821cbd16700bb97be17dc7d969044d263
6,889
py
Python
arduino_utils.py
diegocepedaw/lasergo
584a1b7f2c2bd96f5b8f1d4ede09f5992c774b1e
[ "MIT" ]
12
2020-12-30T23:50:56.000Z
2022-02-14T03:27:02.000Z
arduino_utils.py
diegocepedaw/lasergo
584a1b7f2c2bd96f5b8f1d4ede09f5992c774b1e
[ "MIT" ]
null
null
null
arduino_utils.py
diegocepedaw/lasergo
584a1b7f2c2bd96f5b8f1d4ede09f5992c774b1e
[ "MIT" ]
1
2022-01-26T02:00:40.000Z
2022-01-26T02:00:40.000Z
import cv2 import numpy as np import time import math import serial import pickle LASER_START = (100,100) arduino = serial.Serial('COM6', 9600, timeout=5) def clear_leds(): # turn off all leds data = bytes("C0,0\r\n", "utf8") arduino.write(data) # write increment to serial port ...
35.510309
133
0.59791
0
0
0
0
0
0
0
0
1,684
0.244448
0dfea64ad5882b1a0e160dc452c8c73b059a7bdc
22,984
py
Python
sktime_dl/deeplearning/mcnn/_classifier.py
talhaanwarch/sktime-dl
da4db17b78b645667b9be18e80283d0af4768c40
[ "BSD-3-Clause" ]
1
2021-06-13T05:29:16.000Z
2021-06-13T05:29:16.000Z
sktime_dl/deeplearning/mcnn/_classifier.py
oustella/sktime-dl
f454893012567519f12d04050991cbec53ab1ef0
[ "BSD-3-Clause" ]
null
null
null
sktime_dl/deeplearning/mcnn/_classifier.py
oustella/sktime-dl
f454893012567519f12d04050991cbec53ab1ef0
[ "BSD-3-Clause" ]
null
null
null
# todo keras/tesnorflow memory problem when search over network parameters # currently just deleting EVERY model and retraining the best parameters # at the end, see **1 __author__ = "Aaron Bostrom, James Large" import gc import numpy as np from sklearn.model_selection import train_test_split from tensorfl...
35.578947
82
0.561956
22,436
0.976157
0
0
0
0
0
0
5,214
0.226853
df0027dcfa146f73265c94ca953f538d9f2ad041
728
py
Python
coffer/__init__.py
shalevy1/cultivar
99b00c69376cd37fddb14a969cf562276296f01a
[ "Apache-2.0" ]
37
2016-08-22T22:11:30.000Z
2022-02-24T19:10:18.000Z
coffer/__init__.py
DistrictDataLabs/trinket
99b00c69376cd37fddb14a969cf562276296f01a
[ "Apache-2.0" ]
75
2015-10-15T19:25:18.000Z
2016-08-04T19:21:10.000Z
coffer/__init__.py
DistrictDataLabs/trinket
99b00c69376cd37fddb14a969cf562276296f01a
[ "Apache-2.0" ]
17
2015-10-09T00:03:12.000Z
2016-07-22T16:15:41.000Z
# coffer # Dataset manager and collection application. # # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Created: Thu Oct 08 21:44:00 2015 -0400 # # Copyright (C) 2015 District Data Labs # For license information, see LICENSE.txt # # ID: __init__.py [] benjamin@bengfort.com $ """ Dataset manager and ...
28
74
0.434066
0
0
0
0
0
0
0
0
684
0.93956
df009865762587d1007f3f7139e861ac75fe14bb
133
py
Python
parsers/__init__.py
vintage/jokes_app
de18b0bd786841e2ea506105aa205b66ce2b5692
[ "MIT" ]
3
2017-07-13T06:47:23.000Z
2017-11-19T08:21:38.000Z
parsers/__init__.py
vintage/jokes_app
de18b0bd786841e2ea506105aa205b66ce2b5692
[ "MIT" ]
1
2019-08-01T13:39:08.000Z
2021-03-23T07:15:42.000Z
parsers/__init__.py
vintage/jokes_app
de18b0bd786841e2ea506105aa205b66ce2b5692
[ "MIT" ]
null
null
null
# Copy to .venv/lib/python3.6/site-packages/enchant/share/enchant/myspell # https://github.com/elastic/hunspell/tree/master/dicts/pl
44.333333
73
0.789474
0
0
0
0
0
0
0
0
131
0.984962
df011455a0e6333338175cf0393900bcda2fcb02
3,280
py
Python
bgm_block/models.py
MCG-NJU/BCN
c637dcdc436717104d4c14a6fbb21e2d2299b087
[ "MIT" ]
69
2020-08-21T01:19:24.000Z
2022-03-28T02:39:44.000Z
bgm_block/models.py
redwang/BCN
e5c494d8ca396d5a535309575a7a652db54f14b7
[ "MIT" ]
7
2020-11-12T08:21:08.000Z
2021-12-29T04:50:11.000Z
bgm_block/models.py
redwang/BCN
e5c494d8ca396d5a535309575a7a652db54f14b7
[ "MIT" ]
9
2020-08-28T06:46:17.000Z
2022-01-29T11:27:01.000Z
# -*- coding: utf-8 -*- import torch import torch.nn.functional as F import torch.nn as nn from torch.nn import init import copy class fullBGM(torch.nn.Module): def __init__(self): super(fullBGM, self).__init__() self.feat_dim = 2048 self.batch_size = 1 self.c_hidden = 256 s...
34.893617
148
0.607622
3,143
0.958232
0
0
304
0.092683
0
0
72
0.021951
df012a7576e9516f4a23ace4d324b5a6e610a767
508
py
Python
Random Problems/Merge the Tools/solutions.py
matheuscordeiro/HackerRank
003ab87fdfa9e7c0535972abd06caebb1165423f
[ "MIT" ]
null
null
null
Random Problems/Merge the Tools/solutions.py
matheuscordeiro/HackerRank
003ab87fdfa9e7c0535972abd06caebb1165423f
[ "MIT" ]
null
null
null
Random Problems/Merge the Tools/solutions.py
matheuscordeiro/HackerRank
003ab87fdfa9e7c0535972abd06caebb1165423f
[ "MIT" ]
null
null
null
def merge_the_tools(string, k): substrings = int(len(string)/k) size_substring = int(len(string)/substrings) count = 0 frequency = {} word = "" for value in string: count += 1 if not value in frequency: word += value frequency[value] = True ...
25.4
48
0.521654
0
0
0
0
0
0
0
0
25
0.049213
df019cd58e39253b69a98f540baa40894015701a
1,915
py
Python
utils/cmd_parser.py
SecureThemAll/CquenceR
b2d4d578a8a055df8370798769cdc6e6e1039721
[ "MIT" ]
null
null
null
utils/cmd_parser.py
SecureThemAll/CquenceR
b2d4d578a8a055df8370798769cdc6e6e1039721
[ "MIT" ]
null
null
null
utils/cmd_parser.py
SecureThemAll/CquenceR
b2d4d578a8a055df8370798769cdc6e6e1039721
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse from collections import Callable from utils.command import Command from utils.commands.preprocess import Preprocess from utils.commands.test import Test from utils.commands.train import Train from utils.commands.repair import Repair from utils.commands.stats import Stats from ut...
36.132075
110
0.768146
0
0
0
0
0
0
0
0
302
0.157702
df035418a124dfc6d3a28d6cc0fd7c45993e05d4
3,884
py
Python
lanefinder/CamModel.py
sheayun-kmu/CarND-Advanced-Lane-Lines
f8f38767acb9a65bc942f53706c6d223dfb666a2
[ "MIT" ]
null
null
null
lanefinder/CamModel.py
sheayun-kmu/CarND-Advanced-Lane-Lines
f8f38767acb9a65bc942f53706c6d223dfb666a2
[ "MIT" ]
null
null
null
lanefinder/CamModel.py
sheayun-kmu/CarND-Advanced-Lane-Lines
f8f38767acb9a65bc942f53706c6d223dfb666a2
[ "MIT" ]
1
2020-09-23T12:43:22.000Z
2020-09-23T12:43:22.000Z
import logging import numpy as np import cv2 from lanefinder.params import camera_params from lanefinder.params import perspective_params # Capture camera model # 1. calibrate using a set of images of chessboards # 2. undistort image based on calibration # 3. warp image to get a bird's eye view of it class CamModel:...
36.299065
74
0.58033
3,578
0.921215
0
0
0
0
0
0
1,203
0.309732
df04f18f1abbee7ba636186d9cf666a08ecb1a2d
4,446
py
Python
poc/hex_grid/hex.py
CoryOwens/hex
83253b52f9ee86d13402fc7475a0cdd772921728
[ "MIT" ]
null
null
null
poc/hex_grid/hex.py
CoryOwens/hex
83253b52f9ee86d13402fc7475a0cdd772921728
[ "MIT" ]
null
null
null
poc/hex_grid/hex.py
CoryOwens/hex
83253b52f9ee86d13402fc7475a0cdd772921728
[ "MIT" ]
null
null
null
import math import kivy from kivy.graphics import Line from kivy.graphics import Color from kivy.properties import ListProperty, NumericProperty from kivy.uix.widget import Widget from kivy.logger import Logger kivy.require('1.10.0') class HexTile(Widget): corners = ListProperty() sides = ListProperty() ...
32.217391
79
0.580072
4,123
0.92735
0
0
784
0.176338
0
0
341
0.076698
df062a661710aa4fa4a6d5eb73fc96d94ec2f731
322
py
Python
tests/conftest.py
opensafely/risk-factors-research
32b59c82ee565d974fa2ce863a436914ce17dc03
[ "MIT" ]
29
2020-06-23T21:43:28.000Z
2022-03-11T11:49:55.000Z
tests/conftest.py
opensafely/risk-factors-research
32b59c82ee565d974fa2ce863a436914ce17dc03
[ "MIT" ]
7
2020-06-26T18:48:43.000Z
2021-08-11T14:01:18.000Z
tests/conftest.py
opensafely/risk-factors-research
32b59c82ee565d974fa2ce863a436914ce17dc03
[ "MIT" ]
8
2020-06-23T21:43:32.000Z
2022-01-07T10:51:20.000Z
import os from pathlib import Path def pytest_generate_tests(metafunc): """Source the test environment """ for line in open(Path(__file__).absolute().parent.parent / ".env-test"): k, v = line.split("=", 1) k = k.strip() if not os.environ.get(k): os.environ[k] = v.strip(...
24.769231
76
0.590062
0
0
0
0
0
0
0
0
52
0.161491
df07eeff5a871ae595d36ebd4e1dcb711889d0e5
816
py
Python
run/gold-key-splitter.py
osmanbaskaya/mapping-impact
8024dd3b916ac2dfc336221dd32faba4c0a98442
[ "MIT" ]
1
2016-03-14T15:28:22.000Z
2016-03-14T15:28:22.000Z
run/gold-key-splitter.py
osmanbaskaya/mapping-impact
8024dd3b916ac2dfc336221dd32faba4c0a98442
[ "MIT" ]
null
null
null
run/gold-key-splitter.py
osmanbaskaya/mapping-impact
8024dd3b916ac2dfc336221dd32faba4c0a98442
[ "MIT" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- __author__ = "Osman Baskaya" """ Split the keys according to target words. Our gold file is merged. All keys are in the same file. In order to create a development set in run/gold/twitter|gigaword, we need to split keys in dev set into separate files. input_file should be...
24
69
0.688725
0
0
0
0
0
0
0
0
435
0.533088
df08f0d2fd7a1589d78358cb6d71d6ae0bb1ece0
857
py
Python
resource/engine/add_worker.py
CybersecurityLuxembourg/cyberlux-cron
dc1a8e4fad067b6d00c73a434d2a278576bbafab
[ "BSD-2-Clause" ]
null
null
null
resource/engine/add_worker.py
CybersecurityLuxembourg/cyberlux-cron
dc1a8e4fad067b6d00c73a434d2a278576bbafab
[ "BSD-2-Clause" ]
null
null
null
resource/engine/add_worker.py
CybersecurityLuxembourg/cyberlux-cron
dc1a8e4fad067b6d00c73a434d2a278576bbafab
[ "BSD-2-Clause" ]
null
null
null
from flask_apispec import MethodResource from flask_apispec import doc from flask_restful import Resource from queue import Queue from flask_jwt_extended import jwt_required from decorator.catch_exception import catch_exception from decorator.verify_admin_access import verify_admin_access class AddWorker(MethodResou...
26.78125
64
0.683781
563
0.656943
0
0
428
0.499417
0
0
32
0.03734
df0973906e2e28e9a0ffb26a5c82bba2915b1dc2
139
py
Python
scripts/python/test_naoqi.py
plus44/hcr-2016
20c7312fa1b9bd36434852f2d0d3b5b0cc289cc7
[ "Apache-2.0" ]
null
null
null
scripts/python/test_naoqi.py
plus44/hcr-2016
20c7312fa1b9bd36434852f2d0d3b5b0cc289cc7
[ "Apache-2.0" ]
null
null
null
scripts/python/test_naoqi.py
plus44/hcr-2016
20c7312fa1b9bd36434852f2d0d3b5b0cc289cc7
[ "Apache-2.0" ]
null
null
null
#! /home/admin/venvs/hcr-2016/bin/python import sys print '\n'.join(sys.path) import naoqi if __name__ == '__main__': print "Naoqi Test"
17.375
40
0.71223
0
0
0
0
0
0
0
0
66
0.47482
df09ac413fdfd3e722c4aa22f5197075d17783b1
1,463
py
Python
react-flask-app/api/TripDB.py
GabCas28/Smart-Mazda-On-Board
2c3aa53c34bd90868a55985a01dcb5a5954d6a8b
[ "MIT" ]
null
null
null
react-flask-app/api/TripDB.py
GabCas28/Smart-Mazda-On-Board
2c3aa53c34bd90868a55985a01dcb5a5954d6a8b
[ "MIT" ]
1
2022-02-13T13:14:46.000Z
2022-02-13T13:14:46.000Z
react-flask-app/api/TripDB.py
GabCas28/Smart-Mazda-On-Board
2c3aa53c34bd90868a55985a01dcb5a5954d6a8b
[ "MIT" ]
null
null
null
from tinydb import TinyDB, Query, where from tinydb.operations import delete, add, set # import json from pymongo import MongoClient, ReplaceOne from bson import json_util, objectid from pymongo.errors import BulkWriteError import time import pprint class TripDB: database = None def __init__(self): self...
35.682927
132
0.656186
1,213
0.829118
0
0
0
0
0
0
407
0.278195
df0ae9e699494b11d2f763f0b863647a022b4718
940
py
Python
shebang/account/tasks.py
KNU-shebang/Shebang
117d6d55344442d76def5c7682ab826ea2521d15
[ "MIT" ]
2
2017-03-18T07:43:58.000Z
2017-05-02T16:21:42.000Z
shebang/account/tasks.py
KNU-shebang/Shebang
117d6d55344442d76def5c7682ab826ea2521d15
[ "MIT" ]
2
2017-03-24T09:24:35.000Z
2017-05-02T14:48:21.000Z
shebang/account/tasks.py
KNU-shebang/Shebang
117d6d55344442d76def5c7682ab826ea2521d15
[ "MIT" ]
1
2020-10-18T18:38:14.000Z
2020-10-18T18:38:14.000Z
from django.core.mail import EmailMessage from celery.decorators import task from django.conf import settings import base64 @task(name='send_email_task') def send_email_task(email, name): email_value = email.split('@')[0].encode('utf-8') # 사용자 인증 url로 이메일의 @ 앞부분을 base64 기반으로 인코딩 encoded_email = base6...
33.571429
102
0.660638
0
0
0
0
985
0.882616
0
0
527
0.472222
df0b3db4d2f4deff4fc60828a64995c019b55ddd
11,403
py
Python
tests/integration/test_file_storage.py
geoadmin/mf-chsdi3
fa5705e345af11467644564f8e469e76403f66b8
[ "BSD-3-Clause" ]
29
2015-02-12T07:45:57.000Z
2020-12-20T08:49:26.000Z
tests/integration/test_file_storage.py
geoadmin/mf-chsdi3
fa5705e345af11467644564f8e469e76403f66b8
[ "BSD-3-Clause" ]
1,753
2015-01-05T07:11:27.000Z
2022-03-28T15:17:07.000Z
tests/integration/test_file_storage.py
geoadmin/mf-chsdi3
fa5705e345af11467644564f8e469e76403f66b8
[ "BSD-3-Clause" ]
15
2015-04-23T08:38:58.000Z
2020-09-28T14:17:40.000Z
# -*- coding: utf-8 -*- import os import six import time from tests.integration import TestsBase, s3_tests, dynamodb_tests WRONG_CONTENT_TYPE = 'nasty type' VALID_KML = '''<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Placemark> <name>Simple placemark</name> <descrip...
43.030189
1,628
0.659037
6,928
0.607559
0
0
0
0
0
0
5,832
0.511444
df0cb59e9d0a265d0b3224ad16dd4f909e4faa37
5,703
py
Python
murasame/maker.py
amaotone/caruta-contest-manager
33bbbc8a8ff2903a2763a1270715f224c329e7a2
[ "MIT" ]
null
null
null
murasame/maker.py
amaotone/caruta-contest-manager
33bbbc8a8ff2903a2763a1270715f224c329e7a2
[ "MIT" ]
20
2016-07-21T16:01:36.000Z
2016-10-20T07:42:57.000Z
murasame/maker.py
amaotone/murasame
33bbbc8a8ff2903a2763a1270715f224c329e7a2
[ "MIT" ]
null
null
null
import os import warnings import numpy as np import pandas as pd from .utils import classname_sorted, match_count class Board(object): def __init__(self, match_count, keys=None): """Initialize match display board. Args: match_count (int): Number of matches. keys (list[st...
29.396907
75
0.575662
5,581
0.978608
0
0
557
0.097668
0
0
714
0.125197
df0e0aed26bec90479f8f5ad09c24410a1024383
71
py
Python
sgi/base/tests/__init__.py
jorgevilaca82/SGI
c3f13d9e3e8f04377d9e23636dc8e35ed5ace35a
[ "MIT" ]
null
null
null
sgi/base/tests/__init__.py
jorgevilaca82/SGI
c3f13d9e3e8f04377d9e23636dc8e35ed5ace35a
[ "MIT" ]
8
2019-12-07T13:13:34.000Z
2021-09-02T03:07:25.000Z
sgi/base/tests/__init__.py
jorgevilaca82/SGI
c3f13d9e3e8f04377d9e23636dc8e35ed5ace35a
[ "MIT" ]
null
null
null
from .pessoa_tests import * from .unidadeorganizacional_tests import *
23.666667
42
0.830986
0
0
0
0
0
0
0
0
0
0
df0e4bc6c01a3fd360af919cd7a376f61a4072b9
521
py
Python
spkcspider/apps/spider/migrations/0009_auto_20190929_2117.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
5
2019-06-24T14:15:54.000Z
2021-05-14T23:16:31.000Z
spkcspider/apps/spider/migrations/0009_auto_20190929_2117.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
2
2018-06-19T09:56:18.000Z
2018-11-20T12:02:44.000Z
spkcspider/apps/spider/migrations/0009_auto_20190929_2117.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-29 21:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('spider_base', '0008_auto_20190817_1815'), ] operations = [ migrations.AlterField( model_name='assignedprotection', n...
27.421053
170
0.612284
428
0.821497
0
0
0
0
0
0
183
0.351248
df0f00d338a308daad3a6d706f8f657d66dbc676
283
py
Python
modules/scipy/special/__init__.py
avogel88/compare-VAE-GAE
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
[ "MIT" ]
null
null
null
modules/scipy/special/__init__.py
avogel88/compare-VAE-GAE
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
[ "MIT" ]
null
null
null
modules/scipy/special/__init__.py
avogel88/compare-VAE-GAE
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
[ "MIT" ]
null
null
null
__all__ = [] from .rbig import * from .feature_map import * from . import rbig from . import feature_map __all__ += rbig.__all__ __all__ += feature_map.__all__ del rbig del feature_map from scipy._lib._testutils import PytestTester test = PytestTester(__name__) del PytestTester
17.6875
46
0.780919
0
0
0
0
0
0
0
0
0
0
df10538eb1d6c1760f3cbe7668d7cd9ebc44d974
641
py
Python
python/offer/45.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
python/offer/45.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
python/offer/45.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
# 输入一个正整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。 # #   # # 示例 1: # # 输入: [10,2] # 输出: "102" # 示例 2: # # 输入: [3,30,34,5,9] # 输出: "3033459" #   # # 提示: # # 0 < nums.length <= 100 # 说明: # # 输出结果可能非常大,所以你需要返回一个字符串而不是整数 # 拼接起来的数字可能会有前导 0,最后结果不需要去掉前导 0 # # 来源:力扣(LeetCode) # 链接:https://leetcode-cn.com/problems/ba-shu-zu-pai-c...
20.03125
78
0.642746
201
0.209375
0
0
0
0
0
0
679
0.707292
df1171000a17fdaa53b3d9affdc2a2b9401282f7
92,549
py
Python
src/plivo/rest/freeswitch/api.py
mknecht/plivoframework
29fc41fb3c887d5d9022a941e87bbeb2269112ff
[ "Condor-1.1" ]
151
2015-01-14T13:35:47.000Z
2022-01-25T02:47:14.000Z
src/plivo/rest/freeswitch/api.py
altanai/plivoframework
d8d182c7af17c3fbe514d7dfd68d0608ce798f47
[ "Condor-1.1" ]
14
2015-01-02T05:12:04.000Z
2021-02-03T04:25:39.000Z
src/plivo/rest/freeswitch/api.py
altanai/plivoframework
d8d182c7af17c3fbe514d7dfd68d0608ce798f47
[ "Condor-1.1" ]
107
2015-01-02T04:15:28.000Z
2022-02-07T18:14:18.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2011 Plivo Team. See LICENSE for details import base64 import re import uuid import os import os.path from datetime import datetime try: import xml.etree.cElementTree as etree except ImportError: from xml.etree.elementtree import ElementTree as etree import ujson as jso...
41.483191
156
0.580881
91,481
0.98846
0
0
79,516
0.859177
0
0
33,289
0.359691
df130eaef34648068a0ff50de3a882c5ecc9e033
5,076
py
Python
parsers/CurrentTime.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
9
2018-10-19T08:47:42.000Z
2020-08-19T01:58:27.000Z
parsers/CurrentTime.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
1
2019-11-07T11:24:43.000Z
2019-11-07T11:52:51.000Z
parsers/CurrentTime.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
3
2020-04-24T03:51:15.000Z
2021-12-19T16:08:24.000Z
from EasyParser import EasyParser import re import datetime # exe date # --- # current date is: 2018-08-01 # exe time # --- # current time is: 15:05:43 # last ntp sync:Wed Aug 1 14:58:13 2018 class TZoffset(datetime.tzinfo): def __init__(self, seconds_from_utc, name): self.offset = seconds_from_utc self.name ...
27.586957
152
0.688337
4,874
0.960205
0
0
0
0
0
0
460
0.090623
df13907f22e44958568df93ea55820f48b7e45c7
152
py
Python
List.py
samarKantsaxena/SAKASA
c9b7684a6d30920bb5766a0a3520416593fdd7d4
[ "MIT" ]
1
2022-03-22T16:19:14.000Z
2022-03-22T16:19:14.000Z
List.py
samarKantsaxena/SAKASA
c9b7684a6d30920bb5766a0a3520416593fdd7d4
[ "MIT" ]
null
null
null
List.py
samarKantsaxena/SAKASA
c9b7684a6d30920bb5766a0a3520416593fdd7d4
[ "MIT" ]
null
null
null
sys_OS = "A_Free_Cart" Website = "Afreecart" My_Name = "Samar_Kant_Saxena" #A free cart budget calculator #Budget = "370000" #Expenditure = "70000"
15.2
31
0.723684
0
0
0
0
0
0
0
0
114
0.75
df155ccc7955d0006b4f5d0a5362f1ace1aaba5e
1,367
py
Python
sweep.py
binshengliu/bm25f
6d6d8578494a2ee091639dc9fa2f40fbb9254c39
[ "MIT" ]
6
2020-12-11T03:54:10.000Z
2022-03-22T04:04:13.000Z
sweep.py
binshengliu/bm25f
6d6d8578494a2ee091639dc9fa2f40fbb9254c39
[ "MIT" ]
null
null
null
sweep.py
binshengliu/bm25f
6d6d8578494a2ee091639dc9fa2f40fbb9254c39
[ "MIT" ]
null
null
null
import logging import subprocess from pathlib import Path import hydra # type: ignore from omegaconf import DictConfig logger = logging.getLogger(__name__) initialized = False @hydra.main(config_path="conf/", config_name="ax") # type: ignore def main(cfg: DictConfig) -> float: field_wt_list = [f"{k[:-3]}:{v}...
30.377778
83
0.649598
0
0
0
0
1,144
0.836869
0
0
433
0.316752
df1591fd1cab4248fa2dfa2c82a69e614c10fcdb
530
py
Python
Lintcode/G_Practice/Tag_DataStream/823. Input Stream.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/G_Practice/Tag_DataStream/823. Input Stream.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/G_Practice/Tag_DataStream/823. Input Stream.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
class Solution: """ @param inputA: Input stream A @param inputB: Input stream B @return: The answer """ def inputStream(self, inputA, inputB): resA = "" resB = "" for a in inputA: if a == '<': resA = resA[:-1] else: ...
23.043478
46
0.383019
529
0.998113
0
0
0
0
0
0
122
0.230189
df17a532cbd4448e549e2c95877c8b22f5178d2e
2,127
py
Python
utils/compute_contrast.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
2
2019-01-10T03:44:03.000Z
2019-05-24T08:50:14.000Z
utils/compute_contrast.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
utils/compute_contrast.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
""" @Time : 202/20/19 09:41 @Author : TaylorMei @Email : mhy845879017@gmail.com @Project : iccv @File : compute_contrast.py @Function: """ import os import numpy as np import cv2 import skimage.io from misc import data_write # image_path = '/home/iccd/data/2019/msd9_all/all_images/' # mask_path = '/...
31.746269
100
0.662906
0
0
0
0
0
0
0
0
554
0.260461
df17f37f7287d664dc13d2186812e72ef3012242
13,352
py
Python
angular_flask/models.py
amisrs/one-eighty
6b047d205b4b1a0697d7d43a2faa86504337e43c
[ "MIT" ]
null
null
null
angular_flask/models.py
amisrs/one-eighty
6b047d205b4b1a0697d7d43a2faa86504337e43c
[ "MIT" ]
null
null
null
angular_flask/models.py
amisrs/one-eighty
6b047d205b4b1a0697d7d43a2faa86504337e43c
[ "MIT" ]
null
null
null
from datetime import datetime from angular_flask.core import db from angular_flask import app import json # class Post(db.Model): # id = db.Column(db.Integer, primary_key=True) # title = db.Column(db.String(80)) # body = db.Column(db.Text) # pub_date = db.Column(db.DateTime) # # def __init__(self,...
34.95288
142
0.575494
10,970
0.8216
0
0
0
0
0
0
2,764
0.20701
df199fd0ad58d48f73efca3982f9ee10e7470114
3,108
py
Python
sherry/inherit/bar.py
py-mu/sherry
af1e95f1eada663ba3b3fb607ca88f099f894f36
[ "MIT" ]
1
2021-06-27T05:54:23.000Z
2021-06-27T05:54:23.000Z
sherry/inherit/bar.py
py-mu/sherry
af1e95f1eada663ba3b3fb607ca88f099f894f36
[ "MIT" ]
null
null
null
sherry/inherit/bar.py
py-mu/sherry
af1e95f1eada663ba3b3fb607ca88f099f894f36
[ "MIT" ]
1
2021-07-28T09:00:43.000Z
2021-07-28T09:00:43.000Z
# encoding=utf-8 """ create by pymu on 2021/6/6 at 2:09 """ from sherry.inherit.component import Component class BaseBar(Component): bar_normal = None # 自定义标题栏的最大化最小化及关闭按钮 bar_close = None bar_mini = None def __init__(self, master, *args, **kwargs): super().__init__(master, *arg...
35.724138
97
0.634813
3,299
0.964056
0
0
0
0
0
0
926
0.270602
df1a469e28c5291480eb01835f133864be481e39
333
py
Python
benchmark/tpch/tbl2csv.py
rf972/caerus-dike
1c3448af63cca426007b524998360a317bcf4794
[ "Apache-2.0" ]
null
null
null
benchmark/tpch/tbl2csv.py
rf972/caerus-dike
1c3448af63cca426007b524998360a317bcf4794
[ "Apache-2.0" ]
null
null
null
benchmark/tpch/tbl2csv.py
rf972/caerus-dike
1c3448af63cca426007b524998360a317bcf4794
[ "Apache-2.0" ]
2
2021-05-04T20:12:51.000Z
2021-05-04T20:17:38.000Z
#!/usr/bin/python3 import sys import os if len(sys.argv) < 3: print("Usage: {} SRC_DIR DST_DIR".format(str(sys.argv[0]))) exit(1) SRC_DIR = str(sys.argv[1]) DST_DIR = str(sys.argv[2]) if not os.path.isdir(SRC_DIR) or not os.path.isdir(DST_DIR): print("Usage: {} SRC_DIR DST_DIR".format(str(sys.argv[0])))...
20.8125
63
0.651652
0
0
0
0
0
0
0
0
72
0.216216
df1ab6b4b0ece312421f86b8f892a47e6416b0f6
3,970
py
Python
build/env/lib/python2.7/site-packages/windmill-1.6-py2.7.egg/windmill/dep/_functest/collector.py
bopopescu/myhue
5f566970a5a1fa5af9f01832c9e9808c47634bc7
[ "Apache-2.0" ]
61
2015-03-16T18:36:06.000Z
2021-12-02T10:08:17.000Z
windmill/dep/_functest/collector.py
admc/windmill
4304ee7258eb0c2814f215d8ce90abf02b1f737f
[ "Apache-2.0" ]
8
2015-03-10T10:01:26.000Z
2020-05-18T10:51:24.000Z
windmill/dep/_functest/collector.py
admc/windmill
4304ee7258eb0c2814f215d8ce90abf02b1f737f
[ "Apache-2.0" ]
14
2015-01-29T16:28:33.000Z
2021-09-04T11:19:48.000Z
# Copyright (c) 2007 Mikeal Rogers # # 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 agre...
42.234043
115
0.587406
3,165
0.797229
0
0
0
0
0
0
842
0.212091