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
6637a11d7303e4cb1649f5cb8e8396c1af55c974
671
py
Python
examples/misc/30-macro_call_in_background.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
501
2018-12-06T23:48:17.000Z
2022-03-31T11:53:18.000Z
examples/misc/30-macro_call_in_background.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
710
2018-11-26T22:04:52.000Z
2022-03-30T03:53:12.000Z
examples/misc/30-macro_call_in_background.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
273
2018-11-26T10:10:24.000Z
2022-03-30T12:25:28.000Z
#!/usr/bin/env python ''' This example shows how to use the call_in_background macro ''' from pyscf import lib import time def fa(): print('a') time.sleep(0.5) def fb(): print('b') time.sleep(0.8) print('type 1') w0 = time.time() with lib.call_in_background(fa) as afa, lib.call_in_background(fb) as...
20.333333
84
0.584203
0
0
0
0
0
0
0
0
209
0.311475
6638916f5159760226a21213fab0fff099a144f2
158
py
Python
segments/segmentsCommon.py
pinfort/jpeg-analyzer
5e68a1125d8626f34fdac2cf094cef5a2a8a1b58
[ "MIT" ]
5
2018-12-09T01:32:24.000Z
2019-10-23T17:38:50.000Z
segments/segmentsCommon.py
pinfort/jpeg-analyzer
5e68a1125d8626f34fdac2cf094cef5a2a8a1b58
[ "MIT" ]
null
null
null
segments/segmentsCommon.py
pinfort/jpeg-analyzer
5e68a1125d8626f34fdac2cf094cef5a2a8a1b58
[ "MIT" ]
2
2018-12-09T01:41:56.000Z
2019-09-28T03:10:04.000Z
from abc import ABCMeta, abstractmethod class SegmentsCommon(metaclass=ABCMeta): @abstractmethod def analyze(self, marker, body): pass
22.571429
41
0.702532
113
0.71519
0
0
67
0.424051
0
0
0
0
663b03b22a0af9984081680da2ed3fb151315440
86
py
Python
autofront/tests/simple_test.py
JimmyLamothe/autofront
d179e54411f5d53046a5fa52b4430e09b01ebaca
[ "BSD-3-Clause" ]
1
2020-11-16T22:18:03.000Z
2020-11-16T22:18:03.000Z
autofront/tests/simple_test.py
JimmyLamothe/autofront
d179e54411f5d53046a5fa52b4430e09b01ebaca
[ "BSD-3-Clause" ]
null
null
null
autofront/tests/simple_test.py
JimmyLamothe/autofront
d179e54411f5d53046a5fa52b4430e09b01ebaca
[ "BSD-3-Clause" ]
null
null
null
import autofront from simple_functions import foo autofront.add(foo) autofront.run()
14.333333
32
0.825581
0
0
0
0
0
0
0
0
0
0
663b6588c78c4b2d7f4f5cddb71f7f5b145f3ce6
54
py
Python
prototype/data/datasets/__init__.py
ModelTC/mqbench-paper
8d25a3b63c0cde4d904f77439fc435b49b0b33d4
[ "Apache-2.0" ]
6
2021-09-26T03:24:26.000Z
2022-03-17T09:19:18.000Z
prototype/data/datasets/__init__.py
TheGreatCold/mqbench-paper
8d25a3b63c0cde4d904f77439fc435b49b0b33d4
[ "Apache-2.0" ]
null
null
null
prototype/data/datasets/__init__.py
TheGreatCold/mqbench-paper
8d25a3b63c0cde4d904f77439fc435b49b0b33d4
[ "Apache-2.0" ]
2
2021-09-01T03:22:06.000Z
2021-09-19T06:16:38.000Z
from .imagenet_dataset import ImageNetDataset # noqa
27
53
0.833333
0
0
0
0
0
0
0
0
7
0.12963
663b9f98e1aef6a83eac108928f75e32ee2a2b00
859
py
Python
problems/287.Find_the_Duplicate_Number/solution-36801_binary.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/287.Find_the_Duplicate_Number/solution-36801_binary.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/287.Find_the_Duplicate_Number/solution-36801_binary.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
class Solution(object): def findDuplicate(self, nums): low = 0 high = len(nums) - 1 mid = (high + low) / 2 while high - low > 1: count = 0 for k in nums: if mid < k <= high: count += 1 if count > high - mid: ...
37.347826
115
0.563446
442
0.514552
0
0
0
0
0
0
411
0.478463
663cc62975bf84eb8f4aa1091e6cd8fcbbd6b541
1,826
py
Python
src/data/sets.py
HninPwint/adv_dsi_lab_2
0c350444046bf0f468985437b59d2cae3516817a
[ "MIT" ]
null
null
null
src/data/sets.py
HninPwint/adv_dsi_lab_2
0c350444046bf0f468985437b59d2cae3516817a
[ "MIT" ]
null
null
null
src/data/sets.py
HninPwint/adv_dsi_lab_2
0c350444046bf0f468985437b59d2cae3516817a
[ "MIT" ]
null
null
null
def subset_x_y(target, features, start_index:int, end_index:int): ''' ''' return features[start_index:end_index], target[start_index:end_index] def split_sets_by_time(df, target_col, test_ratio=0.2): ''' ''' df_copy = df.copy() target = df_copy.pop(target_col) cutoff = int(len(target)/...
32.607143
119
0.654984
0
0
0
0
0
0
0
0
701
0.383899
663eb6c24c50403fabcf3408feba6dc17b7e3aa6
853
py
Python
Bio_III/DPChange.py
BlackAdder84/Bioinformatics
6cc662b6c4a3349a89f6fdd26f05f1f6228bd912
[ "MIT" ]
1
2017-06-09T03:06:21.000Z
2017-06-09T03:06:21.000Z
Bio_III/DPChange.py
BlackAdder84/Bioinformatics
6cc662b6c4a3349a89f6fdd26f05f1f6228bd912
[ "MIT" ]
null
null
null
Bio_III/DPChange.py
BlackAdder84/Bioinformatics
6cc662b6c4a3349a89f6fdd26f05f1f6228bd912
[ "MIT" ]
1
2017-05-01T21:15:11.000Z
2017-05-01T21:15:11.000Z
# Works """ Given a quantity of money and a list of coins, return the minimum number of coins. """ def DPChange(money, coins): MinNumCoins = [0]*(money+1) MinNumCoins[0] = 0 for m in range(1, money+1): MinNumCoins[m] = 100000 for i in range(0, len(coins)): if m >= coins[i]: # ...
25.088235
82
0.570926
0
0
0
0
0
0
0
0
177
0.207503
66400ba0baa5a1b25e3daf468b7b3e31fa7361b6
30,286
py
Python
venv/lib/python3.6/site-packages/feedgen/entry.py
jannahuang/blog
e1d8cfa9d79ac06097a0e55531bba9421fcbf283
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/feedgen/entry.py
jannahuang/blog
e1d8cfa9d79ac06097a0e55531bba9421fcbf283
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/feedgen/entry.py
jannahuang/blog
e1d8cfa9d79ac06097a0e55531bba9421fcbf283
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' feedgen.entry ~~~~~~~~~~~~~ :copyright: 2013-2020, Lars Kiesow <lkiesow@uos.de> :license: FreeBSD and LGPL, see license.* for more details. ''' from datetime import datetime import dateutil.parser import dateutil.tz import warnings from lxml.etree import CDATA # nosec -...
40.982409
80
0.589777
28,398
0.93729
0
0
0
0
0
0
14,761
0.487194
6641ac84a38502d2627abdd02f07c01a4087638b
527
py
Python
return_type_test.py
leeamen/eva
311c59d24dec74359a5e15ff5b6b50c2c51dae5b
[ "Apache-2.0" ]
null
null
null
return_type_test.py
leeamen/eva
311c59d24dec74359a5e15ff5b6b50c2c51dae5b
[ "Apache-2.0" ]
null
null
null
return_type_test.py
leeamen/eva
311c59d24dec74359a5e15ff5b6b50c2c51dae5b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #coding:utf8 import mybaselib import logging import jieba import jieba.analyse import numpy as np import csv import sys import stat import os reload(sys) sys.setdefaultencoding('utf-8') logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) if __name__ == '__main__': fname = sys.argv[...
18.821429
52
0.766603
0
0
0
0
0
0
0
0
79
0.144954
66421e56797abbadff0d086947c6577be6113573
3,165
py
Python
tools/reduce_dimension.py
AtsushiHashimoto/exp_idc
9b79a02d3a8fc3950b5fe775e75353b37dc612cc
[ "BSD-2-Clause" ]
null
null
null
tools/reduce_dimension.py
AtsushiHashimoto/exp_idc
9b79a02d3a8fc3950b5fe775e75353b37dc612cc
[ "BSD-2-Clause" ]
null
null
null
tools/reduce_dimension.py
AtsushiHashimoto/exp_idc
9b79a02d3a8fc3950b5fe775e75353b37dc612cc
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 DESCRIPTION="This script reduce dimensionality of input data." #from memory_profiler import profile import numpy as np import argparse from sklearn.decomposition import PCA from sklearn.decomposition import NMF import logging import sys from os.path import dirname sys.path.append...
27.521739
89
0.618957
0
0
0
0
0
0
0
0
745
0.235387
66436d46f2399420648d1ae5afad1941d5ac5dfe
981
py
Python
python/PythonForNetworkEngineers/Lesson3/exercise4.py
ModestTG/scripts
91517b1238267185852816f73e7f7221012faa8b
[ "MIT" ]
null
null
null
python/PythonForNetworkEngineers/Lesson3/exercise4.py
ModestTG/scripts
91517b1238267185852816f73e7f7221012faa8b
[ "MIT" ]
null
null
null
python/PythonForNetworkEngineers/Lesson3/exercise4.py
ModestTG/scripts
91517b1238267185852816f73e7f7221012faa8b
[ "MIT" ]
null
null
null
from __future__ import print_function, unicode_literals, division arp_table = [('10.220.88.1', '0062.ec29.70fe'), ('10.220.88.20', 'c89c.1dea.0eb6'), ('10.220.88.21', '1c6a.7aaf.576c'), ('10.220.88.28', '5254.aba8.9aea'), ('10.220.88.29', '5254.abbe.5b7b'), ...
39.24
73
0.489297
0
0
0
0
0
0
0
0
430
0.438328
6649fd3abee8b975b14bebfd695b9dead71ff67f
834
py
Python
coursebuilder/tests/test_views.py
gcallah/CourseBuilder
68f3d175aba43e62b20e6c1c4c6a604601c2c60a
[ "Apache-2.0" ]
2
2019-10-07T23:03:54.000Z
2019-10-15T23:18:08.000Z
coursebuilder/tests/test_views.py
gcallah/CourseBuilder
68f3d175aba43e62b20e6c1c4c6a604601c2c60a
[ "Apache-2.0" ]
3
2019-12-11T15:49:38.000Z
2021-06-10T22:04:41.000Z
coursebuilder/tests/test_views.py
gcallah/CourseBuilder
68f3d175aba43e62b20e6c1c4c6a604601c2c60a
[ "Apache-2.0" ]
1
2019-12-02T06:08:11.000Z
2019-12-02T06:08:11.000Z
from django.test import TestCase from django.urls import reverse class CourseBuilderViewTest(TestCase): def test_landing_page(self): url = reverse("coursebuilder:landing_page") response = self.client.post(url) self.assertEqual(response.status_code, 200) self.assertTemplateUsed(resp...
36.26087
63
0.711031
766
0.918465
0
0
0
0
0
0
145
0.173861
664a09ed3a949b821074a7ea5edcf32f555375e2
336
py
Python
LC/249.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/249.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/249.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def groupStrings(self, strings): """ :type strings: List[str] :rtype: List[List[str]] """ d=collections.defaultdict(list) for s in strings: d[tuple([((ord(s[i])-ord(s[0]))%26) for i in range(len(s))])].append(s) return [d[ke...
33.6
83
0.529762
336
1
0
0
0
0
0
0
80
0.238095
664b6b48aac6edc74751d03dafd588e100ea7322
2,460
py
Python
cfcc/cogs/stats.py
denuoweb/tipbot-v2
bd25205fd4a0440ffe11b7e94905881d4c799282
[ "Apache-2.0" ]
2
2020-03-05T00:08:38.000Z
2020-12-21T04:34:31.000Z
cfcc/cogs/stats.py
denuoweb/tipbot-v2
bd25205fd4a0440ffe11b7e94905881d4c799282
[ "Apache-2.0" ]
null
null
null
cfcc/cogs/stats.py
denuoweb/tipbot-v2
bd25205fd4a0440ffe11b7e94905881d4c799282
[ "Apache-2.0" ]
2
2020-08-30T23:33:20.000Z
2022-01-28T22:52:58.000Z
import discord, os from discord.ext import commands from utils import checks, output from aiohttp import ClientSession import urllib.request import json class Stats: def __init__(self, bot: discord.ext.commands.Bot): self.bot = bot @commands.command() async def stats(self, amount=1): """ ...
54.666667
148
0.579268
2,259
0.918293
0
0
2,163
0.879268
2,139
0.869512
1,185
0.481707
664d2d03cdb7e33d3656413c2db3c4e8abff4e55
996
py
Python
ssaw/headquarters.py
vavalomi/ssaw
30172f22e8703f29b1abc159e52e4090960207be
[ "MIT" ]
9
2019-04-06T09:36:20.000Z
2022-01-18T18:25:37.000Z
ssaw/headquarters.py
vavalomi/ssaw
30172f22e8703f29b1abc159e52e4090960207be
[ "MIT" ]
4
2020-06-15T01:36:37.000Z
2021-12-02T06:51:37.000Z
ssaw/headquarters.py
vavalomi/ssaw
30172f22e8703f29b1abc159e52e4090960207be
[ "MIT" ]
3
2018-04-09T18:17:54.000Z
2022-01-14T08:38:02.000Z
from requests import Session from .__about__ import __title__, __version__ from .models import Version class Client(object): """Initializes the API client :param url: URL of the headquarters app :param api_user: API user name :param api_password: API user password :param workspace:...
32.129032
96
0.633534
880
0.883534
0
0
186
0.186747
0
0
299
0.300201
664d6f4bea48853ff584b2801386ca40d6d04218
35
py
Python
DeepChecker/__init__.py
Fixy-TR/DeepChecker
99bf6e133890aa44711536723ad9acf16314830d
[ "MIT" ]
21
2020-08-05T20:52:35.000Z
2022-02-18T19:27:21.000Z
DeepChecker/__init__.py
umitylmz/DeepChecker
99bf6e133890aa44711536723ad9acf16314830d
[ "MIT" ]
null
null
null
DeepChecker/__init__.py
umitylmz/DeepChecker
99bf6e133890aa44711536723ad9acf16314830d
[ "MIT" ]
6
2020-08-05T14:17:12.000Z
2022-03-03T05:52:28.000Z
from DeepChecker.Checkers import *
17.5
34
0.828571
0
0
0
0
0
0
0
0
0
0
664f4b3b2027544507e9b37e6ef7413af737a3d5
231
py
Python
1101-1200/1163-Distribute Candies/1163-Distribute Candies.py
jiadaizhao/LintCode
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
77
2017-12-30T13:33:37.000Z
2022-01-16T23:47:08.000Z
1101-1200/1163-Distribute Candies/1163-Distribute Candies.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
1
2018-05-14T14:15:40.000Z
2018-05-14T14:15:40.000Z
1101-1200/1163-Distribute Candies/1163-Distribute Candies.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
39
2017-12-07T14:36:25.000Z
2022-03-10T23:05:37.000Z
class Solution: """ @param candies: a list of integers @return: return a integer """ def distributeCandies(self, candies): # write your code here return min(len(set(candies)), len(candies) // 2)
25.666667
56
0.61039
230
0.995671
0
0
0
0
0
0
102
0.441558
66511045abd4f920bda913b71a97de73ca69c525
3,496
py
Python
commongroups/tests/test_cmgroup.py
akokai/metacamel
d2a060e5e3c908dcedd3de7e46497f8802fd8bde
[ "MIT" ]
1
2020-01-29T04:39:16.000Z
2020-01-29T04:39:16.000Z
commongroups/tests/test_cmgroup.py
akokai/metacamel
d2a060e5e3c908dcedd3de7e46497f8802fd8bde
[ "MIT" ]
12
2016-06-18T02:54:13.000Z
2016-07-13T05:17:02.000Z
commongroups/tests/test_cmgroup.py
akokai/commongroups-archived
d2a060e5e3c908dcedd3de7e46497f8802fd8bde
[ "MIT" ]
1
2016-06-20T17:33:11.000Z
2016-06-20T17:33:11.000Z
# -*- coding: utf-8 -*- """Unit tests for CMGroup class.""" import os import shutil from itertools import islice from commongroups.env import CommonEnv from commongroups import cmgroup as cmg # Locate the test params to use. _CUR_PATH = os.path.abspath(os.path.dirname(__file__)) PARAMS_JSON = os.path.join(_CUR_PATH,...
37.191489
79
0.687357
0
0
0
0
0
0
0
0
3,119
0.892162
6651c8c1061de1521ef9b16fc164b0b76ba7d323
5,563
py
Python
src/reinigung.py
infiniteloop-youth/reinigung
1a16603ab97989b4180d51813c203ee81d9d7f5e
[ "MIT" ]
null
null
null
src/reinigung.py
infiniteloop-youth/reinigung
1a16603ab97989b4180d51813c203ee81d9d7f5e
[ "MIT" ]
null
null
null
src/reinigung.py
infiniteloop-youth/reinigung
1a16603ab97989b4180d51813c203ee81d9d7f5e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- Coding: utf-8 -*- from argparse import ArgumentParser from os import environ, makedirs from datetime import datetime from os.path import abspath, join, dirname, exists, splitext from time import time from dotenv import load_dotenv import slack DIR = dirname(dirname(abspath(__file__))) l...
30.398907
140
0.580262
0
0
0
0
0
0
0
0
1,539
0.276649
6654074dd5ec2877f4151dd8acf9472e6d0390e3
294
py
Python
test.py
paleherring/paleworld
6097fc062238cd3701ea468ea750c7a1d6b70dca
[ "Unlicense" ]
null
null
null
test.py
paleherring/paleworld
6097fc062238cd3701ea468ea750c7a1d6b70dca
[ "Unlicense" ]
null
null
null
test.py
paleherring/paleworld
6097fc062238cd3701ea468ea750c7a1d6b70dca
[ "Unlicense" ]
null
null
null
import tensorflow as tf # Create TensorFlow object called tensor hello_constant = tf.constant('Hello World!') with tf.Session() as sess: # Run the tf.constant operation in the session output = sess.run(hello_constant) print(output.decode())# bytestring decode to string.
29.4
57
0.721088
0
0
0
0
0
0
0
0
133
0.452381
665411990ceedf780468299b1765689361fdab45
348
py
Python
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtGui/QClipboardEvent.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
1
2020-04-20T02:27:20.000Z
2020-04-20T02:27:20.000Z
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QClipboardEvent.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QClipboardEvent.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
# encoding: utf-8 # module PySide.QtGui # from C:\Python27\lib\site-packages\PySide\QtGui.pyd # by generator 1.147 # no doc # imports import PySide.QtCore as __PySide_QtCore import Shiboken as __Shiboken class QClipboardEvent(__PySide_QtCore.QEvent): # no doc def __init__(self, *args, **kwargs): # real signa...
19.333333
65
0.729885
138
0.396552
0
0
0
0
0
0
160
0.45977
66542479cdedfadc3cc79ca36adbd5a5951278b3
43
py
Python
tests/test_MBS/__init__.py
bigdata-ustc/EduSim
849eed229c24615e5f2c3045036311e83c22ea68
[ "MIT" ]
18
2019-11-11T03:45:35.000Z
2022-02-09T15:31:51.000Z
tests/test_MBS/__init__.py
ghzhao78506/EduSim
cb10e952eb212d8a9344143f889207b5cd48ba9d
[ "MIT" ]
3
2020-10-23T01:05:57.000Z
2021-03-16T12:12:24.000Z
tests/test_MBS/__init__.py
bigdata-ustc/EduSim
849eed229c24615e5f2c3045036311e83c22ea68
[ "MIT" ]
6
2020-06-09T21:32:00.000Z
2022-03-12T00:25:18.000Z
# coding: utf-8 # 2021/03/12 @ zhaoguanhao
14.333333
26
0.674419
0
0
0
0
0
0
0
0
41
0.953488
b07211dd68e613a65eed975d73ce7904748f47e1
3,207
py
Python
server.py
shucheng-ai/WDA-dwg2dxf
ab89320c0e98e13d17cdde9e2ffa6060f9ec8443
[ "Apache-2.0" ]
null
null
null
server.py
shucheng-ai/WDA-dwg2dxf
ab89320c0e98e13d17cdde9e2ffa6060f9ec8443
[ "Apache-2.0" ]
null
null
null
server.py
shucheng-ai/WDA-dwg2dxf
ab89320c0e98e13d17cdde9e2ffa6060f9ec8443
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import logging import time from datetime import datetime import subprocess as sp import json from flask import Flask, request, jsonify, send_from_directory LOG_LEVEL = 'INFO' LOG_PATH = 'dwg2dxf.log' LOG_DIR = 'log' PORT=8001 try: from local_config import * except: pass fmt =...
27.410256
127
0.665108
0
0
0
0
390
0.114875
0
0
1,034
0.304566
b0728c4bb800f77d5ab35c76ddb2e7148e9e9c1b
6,856
py
Python
main.py
KunalKatiyar/ChatBox-App
2a53c7ed155aeb56a5304acf546762bf1c62569a
[ "MIT" ]
1
2020-04-03T09:07:35.000Z
2020-04-03T09:07:35.000Z
main.py
KunalKatiyar/ChatBox-App
2a53c7ed155aeb56a5304acf546762bf1c62569a
[ "MIT" ]
null
null
null
main.py
KunalKatiyar/ChatBox-App
2a53c7ed155aeb56a5304acf546762bf1c62569a
[ "MIT" ]
null
null
null
import kivy from kivy.app import App from kivy.uix.label import Label from kivy.uix.gridlayout import GridLayout from kivy.uix.textinput import TextInput from kivy.uix.button import Button from kivy.uix.screenmanager import ScreenManager, Screen from kivy.clock import Clock from kivy.core.window import Window ...
35.895288
121
0.625292
6,176
0.900817
0
0
0
0
0
0
376
0.054842
b0747e6f6d9760d681c73f7d16222536711564c9
4,607
py
Python
parlai/agents/recosa/recosa.py
ying-A/RED
27971a5a6d6768e8a7052d8fba06e5056da7619e
[ "MIT" ]
3
2020-12-04T07:29:18.000Z
2021-04-08T06:23:20.000Z
parlai/agents/recosa/recosa.py
ying-A/RED
27971a5a6d6768e8a7052d8fba06e5056da7619e
[ "MIT" ]
null
null
null
parlai/agents/recosa/recosa.py
ying-A/RED
27971a5a6d6768e8a7052d8fba06e5056da7619e
[ "MIT" ]
1
2020-12-04T07:29:04.000Z
2020-12-04T07:29:04.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.core.agents import Agent from parlai.core.utils import warn_once from parlai.core.utils import padded_3d from parlai.core.torch_gene...
51.188889
135
0.674191
2,820
0.612112
0
0
2,043
0.443456
0
0
1,974
0.428478
b075806cabe0b1312272705ea0a85e81c75f2115
20,972
py
Python
dataloading/nvidia.py
UT-ADL/lidar-as-camera
daccb2ae21b4899ecfd8611b7a27f91681617383
[ "Apache-2.0" ]
null
null
null
dataloading/nvidia.py
UT-ADL/lidar-as-camera
daccb2ae21b4899ecfd8611b7a27f91681617383
[ "Apache-2.0" ]
null
null
null
dataloading/nvidia.py
UT-ADL/lidar-as-camera
daccb2ae21b4899ecfd8611b7a27f91681617383
[ "Apache-2.0" ]
null
null
null
import sys from pathlib import Path import cv2 import numpy as np import pandas as pd import torch from torch.utils.data import Dataset import torchvision from torchvision import transforms import torchvision.transforms.functional as F from skimage.util import random_noise from dataloading.camera import Camera cl...
44.716418
122
0.613961
20,621
0.983263
0
0
0
0
0
0
6,970
0.332348
b0767a0c923e3d01ffc014eff24c6e6e510dea0d
118
py
Python
ilexconf/console/__init__.py
vduseev/holly-config
92b7f902d92a4bae0f9fef6241b5ef3e11b44082
[ "MIT" ]
9
2020-10-04T15:55:08.000Z
2020-10-09T11:48:44.000Z
ilexconf/console/__init__.py
vduseev/holly-config
92b7f902d92a4bae0f9fef6241b5ef3e11b44082
[ "MIT" ]
47
2020-10-10T23:19:15.000Z
2021-04-02T21:29:36.000Z
ilexconf/console/__init__.py
ilexconf/ilexconf
92b7f902d92a4bae0f9fef6241b5ef3e11b44082
[ "MIT" ]
null
null
null
from ilexconf.console.application import Application def main(): # pragma: no cover return Application().run()
19.666667
52
0.737288
0
0
0
0
0
0
0
0
18
0.152542
b076c6afbdbadd2bb1cb6f1a1f6c0c794d322733
7,206
py
Python
further/deployment.py
openfurther/further-open-fabric-deployment
d571d603dad43996c66d716c69a247547f6f0ba1
[ "Apache-2.0" ]
null
null
null
further/deployment.py
openfurther/further-open-fabric-deployment
d571d603dad43996c66d716c69a247547f6f0ba1
[ "Apache-2.0" ]
null
null
null
further/deployment.py
openfurther/further-open-fabric-deployment
d571d603dad43996c66d716c69a247547f6f0ba1
[ "Apache-2.0" ]
null
null
null
# Copyright (C) [2013] [The FURTHeR Project] # # 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...
45.0375
181
0.684707
0
0
0
0
0
0
0
0
3,985
0.553011
b077615a398497bbf160df8bf076bda9f756c99d
337
py
Python
vendor/views/sign_in_views.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
16
2021-09-22T19:08:28.000Z
2022-03-18T18:57:02.000Z
vendor/views/sign_in_views.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-09-30T12:36:02.000Z
2022-03-18T22:18:00.000Z
vendor/views/sign_in_views.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-12-06T02:04:51.000Z
2022-03-13T14:38:14.000Z
from django.contrib.auth.views import LoginView from django.contrib.auth.forms import AuthenticationForm class SignInView(LoginView): ''' Sign in for vendor ''' form_class = AuthenticationForm template_name = 'vendor/sign_in.html' redirect_field_name = 'vendor:root_path' success_url = 've...
30.636364
57
0.735905
224
0.664688
0
0
0
0
0
0
83
0.246291
b078190b27e28c76e2f6312fda29c3c87dbe3e12
692
py
Python
django_excel_to_model/tests/test_openpyxl.py
weijia/django-excel-to-model
2bab354835e31133f1344bee2cb12cb3627eef3d
[ "BSD-3-Clause" ]
2
2021-03-14T14:29:19.000Z
2021-05-02T10:36:47.000Z
django_excel_to_model/tests/test_openpyxl.py
weijia/django-excel-to-model
2bab354835e31133f1344bee2cb12cb3627eef3d
[ "BSD-3-Clause" ]
1
2020-03-11T06:20:59.000Z
2020-04-22T02:17:35.000Z
django_excel_to_model/tests/test_openpyxl.py
weijia/django-excel-to-model
2bab354835e31133f1344bee2cb12cb3627eef3d
[ "BSD-3-Clause" ]
4
2018-04-28T02:39:05.000Z
2021-07-27T02:04:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_django-excel-to-model ------------ Tests for `django-excel-to-model` models module. """ from django.test import TestCase # from unittest import TestCase from django_excel_to_model.openpyxl_reader import OpenpyxlExcelFile from sap_asset_master_data20191224.model...
21.625
93
0.679191
352
0.508671
0
0
0
0
0
0
234
0.33815
b079078e2de1f33efb9b000ddc8a7958596a0333
1,461
py
Python
Ene-Jun-2021/aguilar-cedillo-jonathan-ivan/Examen Especial/app/api.py
jarmarj/DAS_Sistemas
36c876673e7abae503cc137c3f66585a0e45ed79
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2021/aguilar-cedillo-jonathan-ivan/Examen Especial/app/api.py
jarmarj/DAS_Sistemas
36c876673e7abae503cc137c3f66585a0e45ed79
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2021/aguilar-cedillo-jonathan-ivan/Examen Especial/app/api.py
jarmarj/DAS_Sistemas
36c876673e7abae503cc137c3f66585a0e45ed79
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
from flask import Flask, render_template, jsonify from mongo import mongo import json # from persona import persona import time app = Flask(__name__, static_url_path='/static') cliente=mongo() peoples=cliente['mydb']['people'].find() def parsePerson(person): return { 'id':person['id'], ...
25.631579
63
0.576318
0
0
0
0
482
0.329911
0
0
295
0.201916
b07a58de9437362aaa9673805d54668fa6ee8b1a
1,592
py
Python
audio_to_video.py
skratchdot/media-tools
bca0c683fb637aeefda1c49454a118f809047d97
[ "MIT" ]
13
2019-12-09T07:56:13.000Z
2021-08-03T01:45:53.000Z
audio_to_video.py
skratchdot/media-tools
bca0c683fb637aeefda1c49454a118f809047d97
[ "MIT" ]
1
2020-04-29T00:00:14.000Z
2021-07-09T14:24:19.000Z
audio_to_video.py
skratchdot/media-tools
bca0c683fb637aeefda1c49454a118f809047d97
[ "MIT" ]
3
2020-04-27T15:36:36.000Z
2021-03-29T17:52:35.000Z
# -*- coding: utf-8 -*- # Attempt to convert audio to video by visualizing audio import argparse from lib.audio_utils import * from lib.collection_utils import * from lib.io_utils import * from lib.math_utils import * import librosa import os import numpy as np from pprint import pprint import sys # input parser = a...
40.820513
158
0.736809
0
0
0
0
0
0
0
0
664
0.417085
b07d0af1d5f8010ec7eddc7c33bb9c1c0be29019
982
py
Python
server/api/login.py
ONSdigital/nsdc
5117189c28f923adca2cd7173673d798fb9232c2
[ "MIT" ]
4
2016-12-19T11:26:38.000Z
2017-01-27T09:51:48.000Z
server/api/login.py
ONSdigital/nsdc
5117189c28f923adca2cd7173673d798fb9232c2
[ "MIT" ]
6
2017-01-04T08:21:49.000Z
2017-01-18T09:33:59.000Z
server/api/login.py
ONSdigital/nsdc
5117189c28f923adca2cd7173673d798fb9232c2
[ "MIT" ]
2
2017-01-12T14:46:00.000Z
2021-04-11T08:20:45.000Z
from flask import jsonify, abort from flask_restful import reqparse, Resource from config import db from data.user import UserData from datetime import datetime, timedelta from data.user_session import UserSessionData parser = reqparse.RequestParser() parser.add_argument('username') parser.add_argument('password') c...
31.677419
84
0.680244
662
0.674134
0
0
0
0
0
0
95
0.096741
b07eaf9c823c7f4577dd939bb64e4ed246d82116
1,775
py
Python
tests/test_main.py
openalto/alto
294f4e1d45d5e3f0cc476a2f0cbb85164c7d32ae
[ "MIT" ]
null
null
null
tests/test_main.py
openalto/alto
294f4e1d45d5e3f0cc476a2f0cbb85164c7d32ae
[ "MIT" ]
null
null
null
tests/test_main.py
openalto/alto
294f4e1d45d5e3f0cc476a2f0cbb85164c7d32ae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2021 OpenALTO Community # # 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 t...
34.134615
80
0.729014
0
0
0
0
0
0
0
0
1,389
0.782535
b0808b108456f6e159e093505f69f5f9b21e00dc
2,501
py
Python
tradedate.py
Anton-Mu/finance_sentiment_analysis
e319073646f8b11a3f6b5140137a7f0205918c19
[ "MIT" ]
null
null
null
tradedate.py
Anton-Mu/finance_sentiment_analysis
e319073646f8b11a3f6b5140137a7f0205918c19
[ "MIT" ]
null
null
null
tradedate.py
Anton-Mu/finance_sentiment_analysis
e319073646f8b11a3f6b5140137a7f0205918c19
[ "MIT" ]
1
2022-02-08T06:11:51.000Z
2022-02-08T06:11:51.000Z
import re import requests import json # 从百度的php接口中获取到数据 def catch_url_from_baidu(calcultaion_year, month): header = { "Content-Type": "application/json;charset=UTF-8" } param = { "query": str(calcultaion_year) + "年" + month + "月", "resource_id": "39043", "t":...
30.13253
84
0.587765
0
0
0
0
0
0
0
0
1,237
0.401754
b080d8609691c7b1384b852df88e37fc68699acb
1,377
py
Python
config/trainer_configs/model_config/mnist_conv_auto.py
jwspaeth/FAA-Project
afa9d3bec10deead48c4b17dff69df2e02691e41
[ "MIT" ]
null
null
null
config/trainer_configs/model_config/mnist_conv_auto.py
jwspaeth/FAA-Project
afa9d3bec10deead48c4b17dff69df2e02691e41
[ "MIT" ]
2
2019-10-20T00:42:40.000Z
2019-10-30T18:06:11.000Z
config/trainer_configs/model_config/mnist_conv_auto.py
jwspaeth/FAA-Project
afa9d3bec10deead48c4b17dff69df2e02691e41
[ "MIT" ]
null
null
null
from yacs.config import CfgNode as CN from lib.classes.dataset_classes.SubjectDataset import SubjectDataset from config.model_helper import get_size_input _C = CN() _C.framework = "Keras" _C.model_type = "ConvAutoencoder" _C.build_type = "subclass" # Define encoder parameters _C.Encoder = CN() _C.Encoder.n_filters...
35.307692
80
0.659405
0
0
0
0
0
0
0
0
423
0.30719
b080e30a075631abb8736fd8c977482b5bcb3a76
577
py
Python
src/graphviz/graphviz_5.py
lrodrin/TFG
b4199b5970deb7b7394ecac1c950acaa3cfde695
[ "MIT" ]
2
2017-01-16T12:08:34.000Z
2017-01-16T13:00:12.000Z
src/graphviz/graphviz_5.py
lrodrin/TFG
b4199b5970deb7b7394ecac1c950acaa3cfde695
[ "MIT" ]
null
null
null
src/graphviz/graphviz_5.py
lrodrin/TFG
b4199b5970deb7b7394ecac1c950acaa3cfde695
[ "MIT" ]
null
null
null
import pydot callgraph = pydot.Dot(graph_type='digraph', fontname="Verdana", compound='true') cluster_foo = pydot.Cluster('foo', label='foo') callgraph.add_subgraph(cluster_foo) node_foo = pydot.Node('foo_method_1', label='method_1') cluster_foo.add_node(node_foo) cluster_bar = pydot.Cluster('bar', label='Component...
28.85
110
0.785095
0
0
0
0
0
0
0
0
105
0.181976
b0833cf5f5755370727e1adbc3f27b3a23bd86c3
12,544
py
Python
lfa.py
jwbensley/pyFRR
7f5792586b528c9f7c0d84f263eaae5f1c718661
[ "MIT" ]
2
2021-08-12T06:57:59.000Z
2021-09-09T19:28:04.000Z
lfa.py
jwbensley/pyFRR
7f5792586b528c9f7c0d84f263eaae5f1c718661
[ "MIT" ]
1
2021-11-19T16:32:54.000Z
2021-11-19T16:32:54.000Z
lfa.py
jwbensley/pyFRR
7f5792586b528c9f7c0d84f263eaae5f1c718661
[ "MIT" ]
null
null
null
import networkx as nx import os from diagram import Diagram from spf import spf class lfa: """This class provides RFC5286 lfa calculations""" def __init__(self, debug=0): """ Init the lfa class. :param int debug: debug level, 0 is disabled. :return None: __init__ shouldn't re...
39.949045
81
0.479034
12,461
0.993383
0
0
0
0
0
0
5,743
0.457828
b0836df3831634d69eba10f383e0ec13d3b01887
4,523
py
Python
acapy_client/models/presentation_definition.py
dbluhm/acapy-client
d92ef607ba2ff1152ec15429f2edb20976991424
[ "Apache-2.0" ]
4
2021-08-05T09:20:34.000Z
2021-08-08T19:37:29.000Z
acapy_client/models/presentation_definition.py
dbluhm/acapy-client
d92ef607ba2ff1152ec15429f2edb20976991424
[ "Apache-2.0" ]
null
null
null
acapy_client/models/presentation_definition.py
dbluhm/acapy-client
d92ef607ba2ff1152ec15429f2edb20976991424
[ "Apache-2.0" ]
2
2021-08-12T18:18:45.000Z
2021-08-14T13:22:28.000Z
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.claim_format import ClaimFormat from ..models.input_descriptors import InputDescriptors from ..models.submission_requirements import SubmissionRequirements from ..types import UNSET, Unset T = TypeVar("T", bound="PresentationDefinitio...
36.475806
110
0.668804
4,169
0.921733
0
0
4,196
0.927703
0
0
176
0.038912
b085477d012b84ae2bc4a7c010866eb15378b909
12,344
py
Python
aiodata/server.py
Exahilosys/aiodata
b4e475eac055f5f391219ae8b893a3e508b51fd8
[ "MIT" ]
1
2021-11-03T13:06:21.000Z
2021-11-03T13:06:21.000Z
aiodata/server.py
Exahilosys/aiodata
b4e475eac055f5f391219ae8b893a3e508b51fd8
[ "MIT" ]
null
null
null
aiodata/server.py
Exahilosys/aiodata
b4e475eac055f5f391219ae8b893a3e508b51fd8
[ "MIT" ]
null
null
null
""" Launch a proxy for tranforming `/paths/like/these` to PostgREST filters. Usage: aiodata -h | --help aiodata <file> [--host=<str>] [--port=<int>] [--query=<str>] [--state=<str>] aiodata [--db-uri=<uri>] [--pr-uri=<uri>] [--host=<str>] [--port=<int>] [--schema=<str>] [--secret=<str>] [--query=<str>] [--...
26.660907
141
0.577041
5,842
0.473266
0
0
118
0.009559
6,031
0.488577
4,018
0.325502
b08769fd169d1bb3f57d9800c62bb6c63602cc3c
3,685
py
Python
kappmax_prediction_scripts/media.py
coltonlloyd/keff_mapping
eea8450561232d32c049455948d88917bf56ddd8
[ "MIT" ]
null
null
null
kappmax_prediction_scripts/media.py
coltonlloyd/keff_mapping
eea8450561232d32c049455948d88917bf56ddd8
[ "MIT" ]
null
null
null
kappmax_prediction_scripts/media.py
coltonlloyd/keff_mapping
eea8450561232d32c049455948d88917bf56ddd8
[ "MIT" ]
2
2019-02-05T15:24:29.000Z
2020-04-16T11:06:06.000Z
LB_media = { "EX_ni2_e": -1000, "EX_dcyt_e": -1000, "EX_hg2_e": -1000, "EX_ins_e": -1000, "EX_cd2_e": -1000, "EX_so4_e": -1000, "EX_uri_e": -1000, "EX_tungs_e": -1000, "EX_glu__L_e": -1000, "EX_slnt_e": -1000, "EX_trp__L_e": -1000, "EX_dad__2_e": -1000, "EX_mobd_e": -...
29.246032
76
0.566079
0
0
0
0
0
0
0
0
1,407
0.381818
b0889dcb4a9fc459f520ba21dc747165ea106830
838
py
Python
urldownload/DataOutput.py
MisterZhouZhou/pythonLearn
8933c7a6d444d3d86a173984e6cf4c08dbf84039
[ "Apache-2.0" ]
1
2019-07-09T09:59:39.000Z
2019-07-09T09:59:39.000Z
urldownload/DataOutput.py
MisterZhouZhou/pythonLearn
8933c7a6d444d3d86a173984e6cf4c08dbf84039
[ "Apache-2.0" ]
null
null
null
urldownload/DataOutput.py
MisterZhouZhou/pythonLearn
8933c7a6d444d3d86a173984e6cf4c08dbf84039
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 import codecs class DataOutput(object): def __init__(self): self.datas = [] def store_data(self, data): if data is None: return self.datas.append(data) def output_html(self, path, data): fout = codecs.open(path, 'w+', encoding='utf-8') f...
26.1875
65
0.516706
808
0.9642
0
0
0
0
0
0
338
0.403341
b089aca6a94743358087e5f0bbece897c4de4d3c
2,600
py
Python
ga4gh/htsget/compliance/schema_validator.py
jmtcsngr/htsget-compliance
35521f0b1361307f887b22c559823f1ba9dd8052
[ "Apache-2.0" ]
1
2020-01-22T17:11:59.000Z
2020-01-22T17:11:59.000Z
ga4gh/htsget/compliance/schema_validator.py
jmtcsngr/htsget-compliance
35521f0b1361307f887b22c559823f1ba9dd8052
[ "Apache-2.0" ]
null
null
null
ga4gh/htsget/compliance/schema_validator.py
jmtcsngr/htsget-compliance
35521f0b1361307f887b22c559823f1ba9dd8052
[ "Apache-2.0" ]
2
2020-02-06T10:29:16.000Z
2020-02-10T09:59:54.000Z
# -*- coding: utf-8 -*- """Validates htsget response matches JSON schema""" import inspect import json import os from jsonschema import validate from jsonschema import RefResolver from jsonschema.exceptions import ValidationError from ga4gh.htsget.compliance.config import constants as c class SchemaValidator(object):...
35.616438
79
0.65
2,309
0.888077
0
0
0
0
0
0
1,243
0.478077
b08a24bef63250d06b5557da066625b5924bd251
178
py
Python
17. Chapter_/xmlrpc_client.py
Mikma03/Python_Bill_Lubanovic_BookCodes
8b5b228bb500a08af645a1db6f7c5f33ef5f0512
[ "MIT" ]
null
null
null
17. Chapter_/xmlrpc_client.py
Mikma03/Python_Bill_Lubanovic_BookCodes
8b5b228bb500a08af645a1db6f7c5f33ef5f0512
[ "MIT" ]
null
null
null
17. Chapter_/xmlrpc_client.py
Mikma03/Python_Bill_Lubanovic_BookCodes
8b5b228bb500a08af645a1db6f7c5f33ef5f0512
[ "MIT" ]
null
null
null
import xmlrpc.client proxy = xmlrpc.client.ServerProxy("http://localhost:6789/") num = 7 result = proxy.double(num) print("Dwukrotność liczby %s jest równa %s" % (num, result))
25.428571
60
0.724719
0
0
0
0
0
0
0
0
64
0.353591
b08a5207d720024f5a7b224624903d987ddda152
172
py
Python
sails/scripts/s4ilsd.py
metrasynth/solar-sails
3a10774dad29d85834d3acb38171741b3a11ef91
[ "MIT" ]
6
2016-11-22T14:32:55.000Z
2021-08-15T01:35:33.000Z
sails/scripts/s4ilsd.py
metrasynth/s4ils
efc061993d15ebe662b72ab8b3127f7f7ce2f66b
[ "MIT" ]
2
2022-03-18T16:47:43.000Z
2022-03-18T16:47:44.000Z
sails/scripts/s4ilsd.py
metrasynth/s4ils
efc061993d15ebe662b72ab8b3127f7f7ce2f66b
[ "MIT" ]
2
2019-07-09T23:44:08.000Z
2021-08-15T01:35:37.000Z
import begin from sails.server import Server @begin.start def main(): """Start a sailsd server.""" s = Server() s.start_loop() print('Stopping sailsd.')
14.333333
32
0.639535
0
0
0
0
123
0.715116
0
0
46
0.267442
b08a93c2485c9207b162b22abf4d7cb7a8947024
173
py
Python
bitwise/logic/__init__.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
bitwise/logic/__init__.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
bitwise/logic/__init__.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
from .AND import * from .COMP import * from .NAND import * from .NOR import * from .NOT import * from .OR import * from .PAR import * from .XNOR import * from .XOR import *
17.3
19
0.687861
0
0
0
0
0
0
0
0
0
0
b08bef0d9eac560231bad41dab1d173a448b34ce
843
py
Python
Chapter03/function_enforcement.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
13
2018-06-21T01:44:49.000Z
2021-12-01T10:49:53.000Z
Chapter03/function_enforcement.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
null
null
null
Chapter03/function_enforcement.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
6
2018-10-05T08:29:24.000Z
2022-01-11T14:49:50.000Z
def accepts(*types): def check_accepts(f): assert len(types) == f.func_code.co_argcount def new_f(*args, **kwds): for (a, t) in zip(args, types): assert isinstance(a, t), \ "arg %r does not match %s" % (a,t) return f(*args, **kwds) ...
30.107143
71
0.548043
0
0
0
0
93
0.11032
0
0
61
0.072361
b08c3106ba8836d69e6a9d54ebffc20973d03ab3
2,412
py
Python
tests/unit/test_CombineUtils.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_CombineUtils.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_CombineUtils.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
1
2021-02-26T10:08:09.000Z
2021-02-26T10:08:09.000Z
"""Test classes defined within pbtranscript.CombineUtils.""" import unittest import os.path as op from pbcore.io import FastaReader, FastqReader from pbtranscript.Utils import rmpath, mkdir from pbtranscript.ClusterOptions import IceQuiverHQLQOptions from pbtranscript.CombineUtils import CombineRunner from test_setpa...
44.666667
119
0.66791
2,046
0.848259
0
0
0
0
0
0
514
0.213101
b08de9297fed4fd2dc955f61769ed5126ab756ff
7,063
py
Python
rattlemediaplayer.py
simonjduff/rattle-media
10a15b47653fce1962a022f973cfb9adcfc8976d
[ "MIT" ]
null
null
null
rattlemediaplayer.py
simonjduff/rattle-media
10a15b47653fce1962a022f973cfb9adcfc8976d
[ "MIT" ]
null
null
null
rattlemediaplayer.py
simonjduff/rattle-media
10a15b47653fce1962a022f973cfb9adcfc8976d
[ "MIT" ]
null
null
null
import config from gmusicapi import Mobileclient import logging from gi.repository import Gst, GLib from collections import deque from gevent import Greenlet import gevent class PlayerStates: Stopped = "Stopped" Paused = "Paused" Playing = "Playing" class RattleMediaPlayer: def __init__(self): ...
30.97807
120
0.626646
6,870
0.972675
0
0
0
0
0
0
843
0.119354
b08ef2d8e3033532d604bc5d0f9f77203768c894
16,116
py
Python
monitor_ed/ed_monitor.py
Andywang201605/astro_tools
e1ceaeaa17d1391cb2d7f1eb15f9bdeced42b534
[ "MIT" ]
null
null
null
monitor_ed/ed_monitor.py
Andywang201605/astro_tools
e1ceaeaa17d1391cb2d7f1eb15f9bdeced42b534
[ "MIT" ]
null
null
null
monitor_ed/ed_monitor.py
Andywang201605/astro_tools
e1ceaeaa17d1391cb2d7f1eb15f9bdeced42b534
[ "MIT" ]
1
2021-02-15T06:00:47.000Z
2021-02-15T06:00:47.000Z
# -*- coding: utf-8 -*- """ Created on Thu Mar 25 18:17:13 2021 @author: AndyWang """ from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.chrome.options import Options from datetime import datetime from time import sleep import pandas as pd import numpy as np import os ...
32.491935
97
0.584636
0
0
0
0
0
0
0
0
4,674
0.290022
b08f4780d97da42bde288fca67a55a22f887a6e4
796
py
Python
Matrix/Leetcode 1219. Path with Maximum Gold.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
31
2020-06-23T00:40:04.000Z
2022-01-08T11:06:24.000Z
Matrix/Leetcode 1219. Path with Maximum Gold.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
null
null
null
Matrix/Leetcode 1219. Path with Maximum Gold.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
7
2020-04-30T08:46:03.000Z
2021-08-28T16:25:54.000Z
class Solution: def getMaximumGold(self, grid: List[List[int]]) -> int: m, n = len(grid), len(grid[0]) res = 0 visited = set() for i in range(m): for j in range(n): if grid[i][j]!=0: x = self.helper(grid, i, j, visited) ...
37.904762
170
0.487437
796
1
0
0
0
0
0
0
0
0
b09026b586af08d54afda4ec0f2c75827cc35592
419
py
Python
Random-Programs/optimization/simonSays/simonSays.py
naumoff0/Archive
d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610
[ "MIT" ]
null
null
null
Random-Programs/optimization/simonSays/simonSays.py
naumoff0/Archive
d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610
[ "MIT" ]
null
null
null
Random-Programs/optimization/simonSays/simonSays.py
naumoff0/Archive
d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610
[ "MIT" ]
null
null
null
import random, time, os def m(): l, t, d = 3,0.5,1 o=input("Opp\n0)Yes\n1)No\n:") while l>0: S=r(d,"") print("Lives:"+str(l)+"\nSimon Says:"+str(S)) time.sleep(t*d) os.system("clear") if int(input("RPT\n>> "))!=S: l=(l - 1) else: d+=1 print("PTS:"+str((d...
26.1875
57
0.46778
0
0
0
0
0
0
0
0
69
0.164678
b090822888b5d41d4c5adb4d5a180180c92743de
1,572
py
Python
quantarhei/symbolic/lang.py
slamavl/quantarhei
d822bc2db86152c418e330a9152e7866869776f7
[ "MIT" ]
14
2016-10-16T13:26:05.000Z
2021-11-09T11:40:52.000Z
quantarhei/symbolic/lang.py
slamavl/quantarhei
d822bc2db86152c418e330a9152e7866869776f7
[ "MIT" ]
61
2016-09-19T10:45:56.000Z
2021-11-10T13:53:06.000Z
quantarhei/symbolic/lang.py
slamavl/quantarhei
d822bc2db86152c418e330a9152e7866869776f7
[ "MIT" ]
21
2016-08-30T09:09:28.000Z
2022-03-30T03:16:35.000Z
# -*- coding: utf-8 -*- def rename_function(ss, oldname, newname): """Replaces all occurences of a name by a new name """ #return ss.replace("conjugate","numpy.conj") return ss.replace(oldname, newname) def fce2array(sr, pat): """Converts functions into arrays """ se = "".joi...
24.952381
57
0.512087
0
0
0
0
0
0
0
0
609
0.387405
b091329df5d41c9910c06cb7d5946e735531a835
345
py
Python
python/1920.py
zheedong/BaekJoon
7f9e00085276a337d18ee3bb90c98126f7af4d3a
[ "MIT" ]
null
null
null
python/1920.py
zheedong/BaekJoon
7f9e00085276a337d18ee3bb90c98126f7af4d3a
[ "MIT" ]
null
null
null
python/1920.py
zheedong/BaekJoon
7f9e00085276a337d18ee3bb90c98126f7af4d3a
[ "MIT" ]
null
null
null
test_case_1 = """ 5 # N 4 1 5 2 3 5 # M 1 3 7 9 5 """ ''' result 1 1 0 0 1 ''' N = int(input()) A = list(map(int, input().split())) A_set = set(A) # Set in으로 문제 한 번에 해결... M = int(input()) B = list(map(int, input().split())) for i in range(0, M): if B[i] in A_set: print(1) ...
12.321429
46
0.46087
0
0
0
0
0
0
0
0
127
0.349862
b093e8d1dc7ce6bd823606fd89573b9ddd010409
5,246
py
Python
fashion_segmentation/code/main.py
TayaPenskaya/Diploma
dee4e13eccdd0d0ddc4f667d2eb94260a7ed3847
[ "MIT" ]
null
null
null
fashion_segmentation/code/main.py
TayaPenskaya/Diploma
dee4e13eccdd0d0ddc4f667d2eb94260a7ed3847
[ "MIT" ]
null
null
null
fashion_segmentation/code/main.py
TayaPenskaya/Diploma
dee4e13eccdd0d0ddc4f667d2eb94260a7ed3847
[ "MIT" ]
null
null
null
import argparse import os import numpy as np import matplotlib.pyplot as plt import torch import yaml import cv2 from PIL import Image, ImageFilter from base64 import b64decode, b64encode import io from predictors.predictor import Predictor from src.models.modnet import MODNet import torch import torch.nn as nn im...
32.993711
139
0.573199
4,451
0.848456
0
0
0
0
0
0
658
0.125429
b09420355cd78009585e40b4e31a9c435f3442c4
1,853
py
Python
motor-blog/motor_blog/text/__init__.py
gaoyuankidult/SocialRoboics
c363089e220ae0d2780b26693a154ad55fa64132
[ "MIT" ]
null
null
null
motor-blog/motor_blog/text/__init__.py
gaoyuankidult/SocialRoboics
c363089e220ae0d2780b26693a154ad55fa64132
[ "MIT" ]
null
null
null
motor-blog/motor_blog/text/__init__.py
gaoyuankidult/SocialRoboics
c363089e220ae0d2780b26693a154ad55fa64132
[ "MIT" ]
null
null
null
import re from HTMLParser import HTMLParser class HTMLPassThrough(HTMLParser): """Maintains a stack of tags and returns the same HTML it parses. Base class for more interesting parsers in markup.py. """ def reset(self): HTMLParser.reset(self) self.stack = [] self.out = [] ...
25.736111
73
0.557474
1,770
0.955208
0
0
0
0
0
0
314
0.169455
b09631a3441037754162b7e57cc1cff16fb106f6
1,452
py
Python
src/api/access_module.py
GuilhermeVieira/mac0350-database
1b3b344cda09187cc5f7186d86bea385f77509dc
[ "MIT" ]
null
null
null
src/api/access_module.py
GuilhermeVieira/mac0350-database
1b3b344cda09187cc5f7186d86bea385f77509dc
[ "MIT" ]
1
2019-06-02T22:40:24.000Z
2019-06-02T22:40:24.000Z
src/api/access_module.py
GuilhermeVieira/mac0350-database
1b3b344cda09187cc5f7186d86bea385f77509dc
[ "MIT" ]
null
null
null
import databases from database_handler import load_session, func from flask_login import LoginManager, UserMixin class AccessModule: session, Base = load_session(databases.urls['DATABASE_ACCESS_URL']) def __init__(self): ''' for item in self.session.query(User.us_id): print(item.fi...
29.632653
88
0.623967
1,335
0.919421
0
0
0
0
0
0
154
0.106061
b0970f0b88a768e2c8fb0cd991053af1b46afa1b
2,675
py
Python
.leetcode/75.sort-colors.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/75.sort-colors.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/75.sort-colors.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=75 lang=python3 # # [75] Sort Colors # # https://leetcode.com/problems/sort-colors/description/ # # algorithms # Medium (49.90%) # Likes: 5201 # Dislikes: 298 # Total Accepted: 663.5K # Total Submissions: 1.3M # Testcase Example: '[2,0,2,1,1,0]' # # Given an array nums with n objects colore...
20.265152
77
0.542804
471
0.168878
0
0
0
0
0
0
1,679
0.602008
b0975e691b95560eeb7040b6b852833062f50974
2,245
py
Python
mmdet3d/ops/dgcnn_modules/dgcnn_fa_module.py
maskjp/mmdetection3d
98f332372b1a4c82bc2d57588a5d764f4176c869
[ "Apache-2.0" ]
5
2022-01-26T13:03:12.000Z
2022-01-27T03:59:09.000Z
mmdet3d/ops/dgcnn_modules/dgcnn_fa_module.py
maskjp/mmdetection3d
98f332372b1a4c82bc2d57588a5d764f4176c869
[ "Apache-2.0" ]
1
2022-03-31T08:33:12.000Z
2022-03-31T08:35:55.000Z
mmdet3d/ops/dgcnn_modules/dgcnn_fa_module.py
maskjp/mmdetection3d
98f332372b1a4c82bc2d57588a5d764f4176c869
[ "Apache-2.0" ]
1
2022-03-30T04:08:39.000Z
2022-03-30T04:08:39.000Z
# Copyright (c) OpenMMLab. All rights reserved. import torch from mmcv.cnn import ConvModule from mmcv.runner import BaseModule, force_fp32 from torch import nn as nn class DGCNNFAModule(BaseModule): """Point feature aggregation module used in DGCNN. Aggregate all the features of points. Args: m...
32.536232
77
0.559911
2,075
0.924276
0
0
869
0.387082
0
0
749
0.33363
b098b19f23b70a7dc6b13df3898c87a35d698d26
158
py
Python
tests/test_flake8.py
ROZ-MOFUMOFU-ME/bitnodes
47f6c1cf886cd522b5fb4ea921dcb4cf63d1eaa4
[ "MIT" ]
2
2021-09-06T04:42:08.000Z
2021-11-12T12:05:14.000Z
tests/test_flake8.py
ROZ-MOFUMOFU-ME/bitnodes
47f6c1cf886cd522b5fb4ea921dcb4cf63d1eaa4
[ "MIT" ]
1
2020-03-19T09:00:18.000Z
2020-03-19T09:00:18.000Z
tests/test_flake8.py
ROZ-MOFUMOFU-ME/bitnodes
47f6c1cf886cd522b5fb4ea921dcb4cf63d1eaa4
[ "MIT" ]
3
2019-02-22T22:57:34.000Z
2021-05-22T10:58:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from subprocess import call def test_flake8(): return_code = call(['flake8']) assert return_code == 0
17.555556
34
0.64557
0
0
0
0
0
0
0
0
52
0.329114
b098cf5dfcf4280fa0a7565a9bca4ad07ebf52e7
1,653
py
Python
dir_monch/dir_monch.py
shivaghose/nifty_tools
587ed6403222ee959f8e0789e66e61f6f187f80b
[ "MIT" ]
1
2016-08-11T18:49:44.000Z
2016-08-11T18:49:44.000Z
dir_monch/dir_monch.py
shivaghose/nifty_tools
587ed6403222ee959f8e0789e66e61f6f187f80b
[ "MIT" ]
null
null
null
dir_monch/dir_monch.py
shivaghose/nifty_tools
587ed6403222ee959f8e0789e66e61f6f187f80b
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' dir_monch: a utility to help shorten paths. ''' from __future__ import print_function from os.path import expanduser from os import sep as os_sep from sys import exit import sys def dir_monch(path): # Substitute ~ for the home dir path when possible HOME = expanduser("~") if pat...
30.054545
99
0.61585
0
0
0
0
0
0
0
0
439
0.265578
b099b5932476f4ea71fffb1250e8c27e0a4ecda3
7,302
py
Python
coherence/extern/simple_config.py
crass/coherence
d1cf150f5fa4a4bd75c7ec682ef2a2783ccf50ca
[ "MIT" ]
4
2016-01-23T11:06:37.000Z
2017-06-03T18:05:53.000Z
coherence/extern/simple_config.py
sreichholf/python-coherence
f39fbd2bd0ae749d2ca161f807a2efebc493492f
[ "MIT" ]
null
null
null
coherence/extern/simple_config.py
sreichholf/python-coherence
f39fbd2bd0ae749d2ca161f807a2efebc493492f
[ "MIT" ]
3
2017-02-02T18:58:35.000Z
2019-02-15T03:07:19.000Z
# -*- coding: utf-8 -*- # Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # based on: http://code.activestate.com/recipes/573463/ # Modified by Philippe Normand # Copyright 2008, Frank Scholz <coherence@beebits.net> from coherence.extern.et import ET as ElementTree, indent, parse_xml...
31.474138
105
0.571898
3,380
0.462887
0
0
548
0.075048
0
0
1,146
0.156943
b099d05e9015241447612382401295c1e700fde0
8,519
py
Python
ball_catching/easy_catch/planner.py
shoefer/ball_catching
46b2e95894659347b563123c1c23742437755993
[ "MIT" ]
1
2017-07-22T11:36:02.000Z
2017-07-22T11:36:02.000Z
ball_catching/easy_catch/planner.py
shoefer/ball_catching
46b2e95894659347b563123c1c23742437755993
[ "MIT" ]
null
null
null
ball_catching/easy_catch/planner.py
shoefer/ball_catching
46b2e95894659347b563123c1c23742437755993
[ "MIT" ]
null
null
null
import casadi as ca import casadi.tools as cat __author__ = 'belousov' class Planner: # ======================================================================== # Simple planning # ======================================================================== @classmethod de...
32.515267
78
0.471182
8,424
0.988848
0
0
7,740
0.908557
0
0
2,293
0.269163
b09a552321fe21418a22b65a3d6582f20e8c9eea
4,526
py
Python
commtrack/links/gerrit.py
bregman-arie/commtrack
5359958dd07d1b9e868ec5276da6dde22f982d07
[ "Apache-2.0" ]
3
2020-01-14T10:15:40.000Z
2020-12-01T14:32:01.000Z
commtrack/links/gerrit.py
bregman-arie/commit-tracker
5359958dd07d1b9e868ec5276da6dde22f982d07
[ "Apache-2.0" ]
2
2018-12-24T12:16:58.000Z
2019-02-18T07:16:42.000Z
commtrack/links/gerrit.py
bregman-arie/commit-tracker
5359958dd07d1b9e868ec5276da6dde22f982d07
[ "Apache-2.0" ]
1
2019-07-15T08:27:36.000Z
2019-07-15T08:27:36.000Z
# Copyright 2019 Arie Bregman # # 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 agree...
35.085271
89
0.617543
3,685
0.814185
0
0
0
0
0
0
1,468
0.324348
b09a66e328205a7eed665f95fa47dd121d3d6481
844
py
Python
test/test_contact.py
hawkins/Shawk
c5be1165d8f6c0471544d06f7da07156df1dcc10
[ "MIT" ]
13
2016-05-05T11:16:31.000Z
2021-02-25T11:23:14.000Z
test/test_contact.py
hawkins/Shawk
c5be1165d8f6c0471544d06f7da07156df1dcc10
[ "MIT" ]
18
2016-05-05T20:23:51.000Z
2020-12-25T16:34:05.000Z
test/test_contact.py
hawkins/Shawk
c5be1165d8f6c0471544d06f7da07156df1dcc10
[ "MIT" ]
5
2017-07-25T23:50:43.000Z
2021-12-04T11:05:13.000Z
# Import shawk from shawk import Contact # Prepare contacts used throughout tests mini_contact = Contact(12345678, 'Verizon') name_contact = Contact(12345678, 'Verizon', 'Somebody') def test_repr_minimal(): assert(repr(mini_contact) == "<shawk.Contact('12345678', 'Verizon', '<No name>')>") def test_repr_with_na...
29.103448
87
0.716825
0
0
0
0
0
0
0
0
288
0.341232
b09aee01c7ad46563e06e418ba66c3d71fe3908d
1,090
py
Python
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/api/ci/views/ci_task_parameter_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/doraemon/doraemon/api/ci/views/ci_task_parameter_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/doraemon/doraemon/api/ci/views/ci_task_parameter_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
#coding=utf-8 # coding=utf-8 ''' Created on 2014-1-5 @author: ETHAN ''' from rest_framework import generics from doraemon.api.ci.serializer import ci_serializer from rest_framework.permissions import AllowAny from doraemon.ci.mongo_models import CITaskParameterGroup from business.ci.ci_task_parameter_service import CI...
27.25
72
0.763303
734
0.673394
0
0
0
0
0
0
203
0.186239
b09e1dcc4651bbea3e5a05f15eded482f3e5b822
2,097
py
Python
src/leetcode_106_construct_binary_tree_from_inorder_and_postorder_traversal.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_106_construct_binary_tree_from_inorder_and_postorder_traversal.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_106_construct_binary_tree_from_inorder_and_postorder_traversal.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
# @l2g 106 python3 # [106] Construct Binary Tree from Inorder and Postorder Traversal # Difficulty: Medium # https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal # # Given two integer arrays inorder and postorder where inorder is the inorder traversal of a binary tree and postorder i...
26.884615
163
0.637577
784
0.373867
0
0
0
0
0
0
1,187
0.566047
b0a05dc2fcad4bbe3156161354e99b4fa56b5535
666
py
Python
Symmetric Tree.py
ChyavanKoushik/-My-Solutions-to-Leetcode-problems-using-Python-3
b78779bd3f5313ab4752f9e9a23cb4a93805aff6
[ "MIT" ]
1
2020-07-11T15:10:19.000Z
2020-07-11T15:10:19.000Z
Symmetric Tree.py
ChyavanKoushik/-My-Solutions-to-Leetcode-problems-using-Python-3
b78779bd3f5313ab4752f9e9a23cb4a93805aff6
[ "MIT" ]
null
null
null
Symmetric Tree.py
ChyavanKoushik/-My-Solutions-to-Leetcode-problems-using-Python-3
b78779bd3f5313ab4752f9e9a23cb4a93805aff6
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def isSymmetric(self, root): """ :type root: TreeNode :rtype: bool """ ptr = root if(ptr=...
24.666667
86
0.503003
503
0.755255
0
0
0
0
0
0
221
0.331832
b0a07ddea1fef76e6d524883928e67b18be43ea3
2,695
py
Python
tornado/models/Session.py
maqg/wcrobot
7d026c1a34362c5434105c27c5bd25f08c6fabe2
[ "MIT" ]
null
null
null
tornado/models/Session.py
maqg/wcrobot
7d026c1a34362c5434105c27c5bd25f08c6fabe2
[ "MIT" ]
null
null
null
tornado/models/Session.py
maqg/wcrobot
7d026c1a34362c5434105c27c5bd25f08c6fabe2
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from conf.dbconfig import TB_SESSION from core.err_code import DB_ERR, OCT_SUCCESS from core.log import WARNING,DEBUG from utils.commonUtil import getUuid, transToStr, transToObj from utils.timeUtil import get_current_time, getStrTime SESSION_EXPIRE_TIME = 86400 * 30...
21.733871
83
0.640445
2,347
0.870872
0
0
0
0
0
0
499
0.185158
b0a17272de31b01f9feb7f36322ad30ad949bc47
1,379
py
Python
python/equalSubstring.py
l0latgithub/codediary
a0327d2ee1137a542886d0af85129692711cd68a
[ "MIT" ]
null
null
null
python/equalSubstring.py
l0latgithub/codediary
a0327d2ee1137a542886d0af85129692711cd68a
[ "MIT" ]
null
null
null
python/equalSubstring.py
l0latgithub/codediary
a0327d2ee1137a542886d0af85129692711cd68a
[ "MIT" ]
null
null
null
class Solution: def equalSubstring(self, s: str, t: str, maxCost: int) -> int: """ You are given two strings s and t of the same length. You want to change s to t. Changing the i-th character of s to i-th character of t costs |s[i] - t[i]| that is, the absolute difference b...
33.634146
75
0.503263
1,361
0.986947
0
0
0
0
0
0
934
0.677302
b0a210478770d270da6e717e23c836b0dee9d3ef
180
py
Python
jp.atcoder/abc102/abc102_b/9248681.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc102/abc102_b/9248681.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc102/abc102_b/9248681.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys n, *a = map(int, sys.stdin.read().split()) def main(): a.sort() return a[-1] - a[0] if __name__ == "__main__": ans = main() print(ans)
12.857143
43
0.494444
0
0
0
0
0
0
0
0
10
0.055556
b0a2caf9d2447dd1aa1058366507843de22c310d
143
py
Python
coding/learn_celery/config.py
yatao91/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
3
2021-05-25T16:58:52.000Z
2022-02-05T09:37:17.000Z
coding/learn_celery/config.py
yataosu/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
null
null
null
coding/learn_celery/config.py
yataosu/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- broker_url = 'redis://192.168.33.10/0' result_backend = 'redis://192.168.33.10/1' imports = ('learn_celery.tasks',)
17.875
42
0.629371
0
0
0
0
0
0
0
0
93
0.65035
b0a5e221bf9ef4d660262d2ed08fec2672de5ce6
1,044
py
Python
seqwise_cont_skillspace/networks/classifier_seq_step_cont_choose_dims.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
null
null
null
seqwise_cont_skillspace/networks/classifier_seq_step_cont_choose_dims.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
6
2021-02-02T23:00:02.000Z
2022-01-13T03:13:51.000Z
seqwise_cont_skillspace/networks/classifier_seq_step_cont_choose_dims.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
null
null
null
from typing import Union from seqwise_cont_skillspace.networks.rnn_vae_classifier import \ RnnVaeClassifierContSkills class RnnStepwiseSeqwiseClassifierObsDimSelect(RnnVaeClassifierContSkills): def __init__(self, *args, input_size, obs_dims_selected: Union[...
29
75
0.612069
918
0.87931
0
0
0
0
0
0
74
0.070881
b0a5f7e6a00c493dc8a6dfec6c9d4ed52c54782b
1,165
py
Python
prog_vae/cfg_parser/parser_demo.py
Hanjun-Dai/sdvae
bd26ea949c496419634fd2cf4802fc8e19a9194c
[ "MIT" ]
70
2018-02-24T07:50:59.000Z
2021-12-27T02:42:37.000Z
prog_vae/cfg_parser/parser_demo.py
Hanjun-Dai/sdvae
bd26ea949c496419634fd2cf4802fc8e19a9194c
[ "MIT" ]
7
2018-05-31T00:50:19.000Z
2021-09-28T11:58:22.000Z
prog_vae/cfg_parser/parser_demo.py
Hanjun-Dai/sdvae
bd26ea949c496419634fd2cf4802fc8e19a9194c
[ "MIT" ]
19
2019-01-11T10:56:00.000Z
2022-03-23T23:09:39.000Z
#!/usr/bin/env python2 import os import nltk import cfg_parser as parser def main(): cfg_grammar_file = '../../dropbox/context_free_grammars/prog_leftskew.grammar' grammar = parser.Grammar(cfg_grammar_file) ts = parser.parse( 'v1=sin(v0);v2=v0*4;v3=v1/v2;v4=cos(v0);v5=v0*3;v6=sin(v1);v7=v3-v6;...
24.270833
113
0.572532
0
0
0
0
0
0
0
0
446
0.382833
b0a772eb4ccf5983bb0eef911f8bafb1f815a766
161
py
Python
scenarios/settlement_show/executable.py
timgates42/balanced-python
1df86b45c36a97ec2e214480c6806c4df3c79860
[ "MIT" ]
12
2015-04-12T06:18:33.000Z
2021-03-03T23:54:19.000Z
scenarios/settlement_show/executable.py
timgates42/balanced-python
1df86b45c36a97ec2e214480c6806c4df3c79860
[ "MIT" ]
1
2021-11-24T20:10:19.000Z
2021-11-24T20:10:19.000Z
scenarios/settlement_show/executable.py
timgates42/balanced-python
1df86b45c36a97ec2e214480c6806c4df3c79860
[ "MIT" ]
14
2015-03-23T17:52:06.000Z
2021-11-24T11:04:15.000Z
import balanced balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') settlement = balanced.Settlement.fetch('/settlements/ST6HmBuLJSEa82oUwId1AShW')
32.2
79
0.857143
0
0
0
0
0
0
0
0
82
0.509317
b0a7fba1d79fe97862c63c08c78298201ee28e87
5,857
py
Python
cpf/python/training/auto_trade/action_suggester.py
nQuantums/tips
cdea2a0e778d2de14cd69882f6273c872c366f03
[ "MIT" ]
1
2018-12-11T14:51:43.000Z
2018-12-11T14:51:43.000Z
cpf/python/training/auto_trade/action_suggester.py
nQuantums/tips
cdea2a0e778d2de14cd69882f6273c872c366f03
[ "MIT" ]
null
null
null
cpf/python/training/auto_trade/action_suggester.py
nQuantums/tips
cdea2a0e778d2de14cd69882f6273c872c366f03
[ "MIT" ]
null
null
null
import typing import numpy as np import trade_environment def detect_turning_points(values: np.ndarray, gap: int) -> typing.Tuple[np.ndarray, np.ndarray]: """指定数列の折返しポイントの地点を検出する. Args: values: 数列. gap: 折返し判定閾値、この値を超えて反転したら折返しと判断する. Returns: (折返しインデックス, 検出途中に生成した一定値以上距離を保って付いてくる値の数列) のタプル. """ indices = ...
30.035897
111
0.701383
6,353
0.829482
0
0
0
0
0
0
3,107
0.405667
b0a816443b29ee3dd3e6c72a76f0961276f90425
1,284
py
Python
meregistro/apps/validez_nacional/FSM.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/validez_nacional/FSM.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/validez_nacional/FSM.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
from models.EstadoSolicitud import EstadoSolicitud """ De Pendiente puede pasar a: controlado, retenido. De controlado puede pasar a: retenido, evaluado, numerado. De Retenido puede pasar a:controlado, evaluado De Evaluado puedo pasar a: numerado """ class FSMSolicitud: def __init__(self): self.estados = {...
53.5
220
0.76324
1,030
0.802181
0
0
0
0
0
0
199
0.154984
b0a8727d927e47b98409e6272a4aa283bdbce8d5
405
py
Python
application/csc648-03-fa21-team04/project/com/vo/MessageVO.py
seelapant13/Gator-Learner
a10583daf91d76d1a6610418c0f70715b2a1c811
[ "MIT" ]
null
null
null
application/csc648-03-fa21-team04/project/com/vo/MessageVO.py
seelapant13/Gator-Learner
a10583daf91d76d1a6610418c0f70715b2a1c811
[ "MIT" ]
null
null
null
application/csc648-03-fa21-team04/project/com/vo/MessageVO.py
seelapant13/Gator-Learner
a10583daf91d76d1a6610418c0f70715b2a1c811
[ "MIT" ]
null
null
null
# Class: CSC-648-848 Fall 2021 # Author: Manali Seth # Description: Contains columns and datatypes of Messaging Table of database from wtforms import * class MessageVO: msgId = IntegerField msgTo_loginId = IntegerField msgFrom_loginId = IntegerField msg_majorId = IntegerField msg_courseNo = Integ...
25.3125
76
0.748148
251
0.619753
0
0
0
0
0
0
127
0.31358
b0a9f0bcb8836537939df03b6e758465264c1d2b
330
py
Python
mesyparams.py
jkrueger1/stm_ethernet
f9fc87222a6a12f64d033c79a3858e16405ea524
[ "Apache-2.0" ]
2
2019-08-02T10:00:46.000Z
2020-07-27T02:25:23.000Z
mesyparams.py
jkrueger1/stm_ethernet
f9fc87222a6a12f64d033c79a3858e16405ea524
[ "Apache-2.0" ]
null
null
null
mesyparams.py
jkrueger1/stm_ethernet
f9fc87222a6a12f64d033c79a3858e16405ea524
[ "Apache-2.0" ]
1
2019-12-21T11:40:30.000Z
2019-12-21T11:40:30.000Z
import sys import socket from mesylib import send_cmd try: addr = sys.argv[1] rate = int(sys.argv[2]) except (ValueError, IndexError): print('usage: mesyparams.py ipaddr rate') sys.exit(1) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) send_cmd(sock, addr, 0xF1F0, 'IH', rate, 0) print('confi...
20.625
55
0.70303
0
0
0
0
0
0
0
0
52
0.157576
b0aa64db3850f67c0060437e85aa0d6cf6487d84
11,751
py
Python
Data/Stocks/Stock.py
yangtx2009/finance
5ba428f0495a16de89ea852e04e71bde8a00f9ba
[ "MIT" ]
null
null
null
Data/Stocks/Stock.py
yangtx2009/finance
5ba428f0495a16de89ea852e04e71bde8a00f9ba
[ "MIT" ]
null
null
null
Data/Stocks/Stock.py
yangtx2009/finance
5ba428f0495a16de89ea852e04e71bde8a00f9ba
[ "MIT" ]
null
null
null
# from bin.x64.iFinDPy import * import urllib.request import json from abc import ABC import matplotlib.pyplot as plt import pandas as pd import os from bs4 import BeautifulSoup import requests from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from datetime import datetime import t...
40.6609
117
0.580631
11,154
0.947905
0
0
0
0
0
0
2,455
0.208634
b0ad7ea0b53d5e610e64b17510e844460d79cd69
947
py
Python
daily_learn/basic_pdf.py
thc128/limudScripts
4d44f82b00b9cd7bca58b56cbc0fba08914c89a1
[ "MIT" ]
null
null
null
daily_learn/basic_pdf.py
thc128/limudScripts
4d44f82b00b9cd7bca58b56cbc0fba08914c89a1
[ "MIT" ]
null
null
null
daily_learn/basic_pdf.py
thc128/limudScripts
4d44f82b00b9cd7bca58b56cbc0fba08914c89a1
[ "MIT" ]
null
null
null
from PyPDF2 import PdfFileWriter, PdfFileReader import daily_learn def read_book(path): input1 = PdfFileReader(open(path, "rb")) my_book=[] for i in xrange(input1.getNumPages()): my_book.append(input1.getPage(i)) return my_book def write_files(output_file,folder,name): j=0 output = [] ...
30.548387
75
0.674762
0
0
0
0
0
0
0
0
78
0.082365
b0ad9a13b69f0d5d58e42c1013c83345a35544ed
592
py
Python
firmware/polyfit.py
mfkiwl/OpenXcvr
9bea6efd03cd246f16982f0fadafed684ac5ce1c
[ "MIT" ]
14
2020-02-16T15:36:31.000Z
2022-03-27T02:24:40.000Z
firmware/polyfit.py
mfkiwl/OpenXcvr
9bea6efd03cd246f16982f0fadafed684ac5ce1c
[ "MIT" ]
1
2020-11-23T16:16:33.000Z
2020-11-23T16:16:33.000Z
firmware/polyfit.py
mfkiwl/OpenXcvr
9bea6efd03cd246f16982f0fadafed684ac5ce1c
[ "MIT" ]
4
2021-03-29T16:55:03.000Z
2022-01-23T16:43:59.000Z
import numpy as np from matplotlib import pyplot as plt def function_to_approximate(x): return 128*(np.sin((np.pi*x/256)-(0.5*np.pi))+1) def calculate_poly(z, x): return np.round(z[3]+x*(z[2]+x*(z[1]+z[0]*x))) def quantize(z, fraction_bits): q = 2.0**fraction_bits z = z * q z = np.round(z) z ...
17.939394
52
0.633446
0
0
0
0
0
0
0
0
0
0
b0af71c36645d20ea3374d900810326b1c95631d
11,718
py
Python
apps/integration_tests/selenium_cases.py
CMSgov/bluebutton-web-server
3e7bfb049a2b6bd64fdc4eeae7512b461ccbe682
[ "Apache-2.0" ]
25
2017-12-10T00:48:31.000Z
2022-03-25T01:29:13.000Z
apps/integration_tests/selenium_cases.py
CMSgov/bluebutton-web-server
3e7bfb049a2b6bd64fdc4eeae7512b461ccbe682
[ "Apache-2.0" ]
298
2017-12-05T05:53:32.000Z
2022-03-21T19:29:03.000Z
apps/integration_tests/selenium_cases.py
CMSgov/bluebutton-web-server
3e7bfb049a2b6bd64fdc4eeae7512b461ccbe682
[ "Apache-2.0" ]
31
2017-12-04T16:01:12.000Z
2021-09-26T22:34:55.000Z
from django.conf import settings from enum import Enum from selenium.webdriver.common.by import By class Action(Enum): LOAD_PAGE = 1 FIND_CLICK = 2 FIND = 3 FIND_SEND_KEY = 4 CHECK = 5 BACK = 6 LOGIN = 7 CONTAIN_TEXT = 8 GET_SAMPLE_TOKEN_START = 9 SLEEP = 10 ...
32.55
115
0.628179
209
0.017836
0
0
0
0
0
0
4,040
0.344769
b0b1e3d43f16b67a5ff4e9b9b0c971aecd3e9976
4,854
py
Python
Zhuanlan.py
rainmanzj/smartspider
e0b9ec2fe6ef93b026e2773f342774263aa66f2d
[ "MIT" ]
340
2016-07-17T08:28:39.000Z
2022-03-30T15:23:27.000Z
Zhuanlan.py
rainmanzj/smartspider
e0b9ec2fe6ef93b026e2773f342774263aa66f2d
[ "MIT" ]
10
2016-08-10T00:19:31.000Z
2020-04-22T08:24:25.000Z
Zhuanlan.py
rainmanzj/smartspider
e0b9ec2fe6ef93b026e2773f342774263aa66f2d
[ "MIT" ]
76
2016-07-17T12:18:31.000Z
2021-12-21T09:01:03.000Z
#!/usr/bin/env python # encoding: utf-8 """ @version: 1.0 @author: lizheming @contact: nkdudu@126.com @site: lizheming.top @file: Zhuanlan.py """ from zhihu import headers, clear, error, session from bs4 import BeautifulSoup import re import webbrowser import termcolor import requests import json import sys class Z...
30.528302
86
0.479192
4,767
0.938386
0
0
0
0
0
0
1,320
0.259843
b0b389c0a24e47982d3180a11aacaf35518b9f2f
2,202
py
Python
extraction/extract.py
ejuarezg/manga109-demos
667da247683d467047a4bd03c171cb885a27c858
[ "MIT" ]
7
2021-03-17T04:26:27.000Z
2021-04-21T16:48:40.000Z
extraction/extract.py
ejuarezg/manga109-demos
667da247683d467047a4bd03c171cb885a27c858
[ "MIT" ]
4
2021-03-17T06:23:44.000Z
2021-11-20T13:49:56.000Z
extraction/extract.py
ejuarezg/manga109-demos
667da247683d467047a4bd03c171cb885a27c858
[ "MIT" ]
3
2021-03-17T05:50:40.000Z
2021-04-26T02:12:12.000Z
import manga109api import argparse import os import glob from PIL import Image def args_parser(): """ :return: This function returns the manual input of book, annotation_type, and page count. """ parser = argparse.ArgumentParser() parser.add_argument('--book', type=str, help='Name of b...
44.938776
125
0.616712
0
0
0
0
0
0
0
0
555
0.252044
b0b507ab20f27a7bafa822e29f3aeb4ce2fdbbe0
5,565
py
Python
libraries/botframework-streaming/botframework/streaming/payloads/header_serializer.py
andreikop/botbuilder-python
5e073e0c68fcbdc558133bdbd59a02453e597abe
[ "MIT" ]
388
2019-05-07T15:53:21.000Z
2022-03-28T20:29:46.000Z
libraries/botframework-streaming/botframework/streaming/payloads/header_serializer.py
andreikop/botbuilder-python
5e073e0c68fcbdc558133bdbd59a02453e597abe
[ "MIT" ]
1,286
2019-05-07T23:38:19.000Z
2022-03-31T10:44:16.000Z
libraries/botframework-streaming/botframework/streaming/payloads/header_serializer.py
andreikop/botbuilder-python
5e073e0c68fcbdc558133bdbd59a02453e597abe
[ "MIT" ]
168
2019-05-14T20:23:25.000Z
2022-03-16T06:49:14.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from uuid import UUID from typing import List from botframework.streaming.transport import TransportConstants from .models import Header _CHAR_TO_BINARY_INT = {val.decode(): list(val)[0] for val in [b".", b"\n", b"1", b"0"...
32.54386
88
0.65319
5,151
0.925606
0
0
4,683
0.841509
0
0
721
0.12956
b0b80838d88129627ee88f66e99dd63a8662a687
6,849
py
Python
modules/tools/vehicle_calibration/preprocess.py
jzjonah/apollo
bc534789dc0548bf2d27f8d72fe255d5c5e4f951
[ "Apache-2.0" ]
22,688
2017-07-04T23:17:19.000Z
2022-03-31T18:56:48.000Z
modules/tools/vehicle_calibration/preprocess.py
WJY-Mark/apollo
463fb82f9e979d02dcb25044e60931293ab2dba0
[ "Apache-2.0" ]
4,804
2017-07-04T22:30:12.000Z
2022-03-31T12:58:21.000Z
modules/tools/vehicle_calibration/preprocess.py
WJY-Mark/apollo
463fb82f9e979d02dcb25044e60931293ab2dba0
[ "Apache-2.0" ]
9,985
2017-07-04T22:01:17.000Z
2022-03-31T14:18:16.000Z
#!/usr/bin/env python3 ############################################################################### # Copyright 2020 The Apollo 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...
38.26257
79
0.604614
4,724
0.689736
0
0
149
0.021755
0
0
2,141
0.3126
b0b866e5edd6d67d39733549a96e6a2c9c924cf6
1,273
py
Python
cblearn/datasets/tests/test_musician_similarity.py
JFHoelscher/cblearn
18e3ac24f4d4fdb1e649bea201b18abe27862ef7
[ "MIT" ]
7
2021-11-19T13:53:56.000Z
2022-03-28T18:39:04.000Z
cblearn/datasets/tests/test_musician_similarity.py
JFHoelscher/cblearn
18e3ac24f4d4fdb1e649bea201b18abe27862ef7
[ "MIT" ]
20
2021-09-24T11:39:06.000Z
2022-03-17T15:50:06.000Z
cblearn/datasets/tests/test_musician_similarity.py
JFHoelscher/cblearn
18e3ac24f4d4fdb1e649bea201b18abe27862ef7
[ "MIT" ]
3
2021-11-24T13:23:17.000Z
2022-03-24T08:57:20.000Z
import numpy as np import pytest from cblearn.datasets import fetch_musician_similarity @pytest.mark.remote_data def test_fetch_musician_similarity(tmp_path): data_home = tmp_path / 'cblearn_datasets' bunch = fetch_musician_similarity(data_home=data_home, shuffle=False) assert bunch.data.shape == (131_9...
43.896552
98
0.741555
0
0
0
0
1,182
0.928515
0
0
25
0.019639
b0b9d81b27101a0308d3e4f404ef228daa426733
2,847
py
Python
app/api/views.py
Olexsai2020/todo_app
f93faffefaaa78292930061867d4ecf772fa0add
[ "MIT" ]
null
null
null
app/api/views.py
Olexsai2020/todo_app
f93faffefaaa78292930061867d4ecf772fa0add
[ "MIT" ]
null
null
null
app/api/views.py
Olexsai2020/todo_app
f93faffefaaa78292930061867d4ecf772fa0add
[ "MIT" ]
null
null
null
from django.utils.decorators import method_decorator from rest_framework import viewsets, status, generics from rest_framework.response import Response from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework_jwt.authentication import JSONWebTokenAuthentication from drf_yasg.utils import swa...
36.5
75
0.736916
1,366
0.479803
0
0
1,211
0.42536
0
0
617
0.216719
b0ba70e5498a44a15d39de5effec074f2599f013
112
py
Python
tests/test_mail_bug.py
FunTimeCoding/mail-bug
185ed77ce92be44c9b37ebf380a1b80a1385c263
[ "MIT" ]
null
null
null
tests/test_mail_bug.py
FunTimeCoding/mail-bug
185ed77ce92be44c9b37ebf380a1b80a1385c263
[ "MIT" ]
null
null
null
tests/test_mail_bug.py
FunTimeCoding/mail-bug
185ed77ce92be44c9b37ebf380a1b80a1385c263
[ "MIT" ]
null
null
null
from mail_bug.mail_bug import MailBug def test_return_code(): bug = MailBug([]) assert bug.run() == 0
16
37
0.669643
0
0
0
0
0
0
0
0
0
0
b0bb6683aa9dcadc69b57d035b577b7055890820
8,244
py
Python
django_sqltools/common.py
yang0/django_sqltools
44e7208337815d2fe8361824d223ba518bf38221
[ "MIT" ]
null
null
null
django_sqltools/common.py
yang0/django_sqltools
44e7208337815d2fe8361824d223ba518bf38221
[ "MIT" ]
null
null
null
django_sqltools/common.py
yang0/django_sqltools
44e7208337815d2fe8361824d223ba518bf38221
[ "MIT" ]
null
null
null
# _*_coding:utf-8_*_ from django.conf import settings import uuid, os, json, logging, time, shutil from datetime import datetime, date from PIL import Image, ImageFile import mimetypes import re logger = logging.getLogger(__name__) def get_file_path(instance, filename): folder = instance.__class__.__name__.lower...
31.346008
149
0.548156
0
0
0
0
0
0
0
0
1,676
0.192555
b0bbdeb9ad8ad6836124106f4fb1414f2a3afe49
1,853
py
Python
csn_searcher/loader.py
box-key/shanet
6a2679a2dcb98dc4447af8eb453e297cd7585c79
[ "Apache-2.0" ]
2
2020-05-07T00:46:36.000Z
2020-05-26T10:17:36.000Z
csn_searcher/loader.py
box-key/shanet
6a2679a2dcb98dc4447af8eb453e297cd7585c79
[ "Apache-2.0" ]
2
2022-02-27T20:43:49.000Z
2022-03-02T12:28:26.000Z
csn_searcher/loader.py
box-key/shanet
6a2679a2dcb98dc4447af8eb453e297cd7585c79
[ "Apache-2.0" ]
1
2020-05-08T23:32:03.000Z
2020-05-08T23:32:03.000Z
import requests from tqdm import tqdm from time import sleep import os class DataLoader(): """ This class is used to download a pre-trained neural network model from url. It stores model name and the link to a model. """ def __init__(self): # url where model is stored self.model_ur...
38.604167
90
0.563411
1,779
0.960065
0
0
0
0
0
0
630
0.339989
b0bf332f22eca1ba57686a0f75bc10bbc8f9a9d8
75
py
Python
components/server/src/shared/routes/plugins/__init__.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/server/src/shared/routes/plugins/__init__.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/server/src/shared/routes/plugins/__init__.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""Bottle route plugins.""" from .injection_plugin import InjectionPlugin
18.75
45
0.786667
0
0
0
0
0
0
0
0
27
0.36
b0c2140b35a3bb72f96b2eb82a9fe58420a9a0cf
4,419
py
Python
airflow/providers/tesouro_gerencial/hooks/tesouro_gerencial.py
CarlosAdp/airflow-providers-tesouro-gerencial
f48ba321a5152dfd9b72107f640c66b217d59b9d
[ "MIT" ]
null
null
null
airflow/providers/tesouro_gerencial/hooks/tesouro_gerencial.py
CarlosAdp/airflow-providers-tesouro-gerencial
f48ba321a5152dfd9b72107f640c66b217d59b9d
[ "MIT" ]
null
null
null
airflow/providers/tesouro_gerencial/hooks/tesouro_gerencial.py
CarlosAdp/airflow-providers-tesouro-gerencial
f48ba321a5152dfd9b72107f640c66b217d59b9d
[ "MIT" ]
null
null
null
from enum import Enum from typing import List, Union from urllib.parse import urljoin import warnings from airflow.exceptions import AirflowException from airflow.providers.siafi.hooks.siafi import SIAFIHook import requests warnings.filterwarnings('ignore', message='Unverified HTTPS request') class TesouroGerencial...
32.977612
76
0.605114
4,141
0.932658
0
0
0
0
0
0
1,745
0.393018
b0c27fbbd572c04635510356965faf39003f2e6a
843
py
Python
offensive_nn/models/offensive_lstm_model.py
TharinduDR/OffensiveNN
336b377c44a7067d2e23ca4a8d331ce7f99157cc
[ "Apache-2.0" ]
null
null
null
offensive_nn/models/offensive_lstm_model.py
TharinduDR/OffensiveNN
336b377c44a7067d2e23ca4a8d331ce7f99157cc
[ "Apache-2.0" ]
null
null
null
offensive_nn/models/offensive_lstm_model.py
TharinduDR/OffensiveNN
336b377c44a7067d2e23ca4a8d331ce7f99157cc
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers class OffensiveLSTMModel: def __init__(self, args, embedding_matrix): emb = layers.Embedding(args.max_features, args.embed_size, trainable=False, name="embedding_layer") inp = t...
42.15
93
0.664294
751
0.890866
0
0
0
0
0
0
102
0.120996
b0c2a699dca314b9665d88e6e73956104ae6f215
2,852
py
Python
st_library/utils/databases/postgres.py
shortesttrack/dataprovider-py
3ecbcb5e09da09614a708e4ef990acdd3443c6ed
[ "Apache-2.0" ]
null
null
null
st_library/utils/databases/postgres.py
shortesttrack/dataprovider-py
3ecbcb5e09da09614a708e4ef990acdd3443c6ed
[ "Apache-2.0" ]
2
2018-03-27T11:06:46.000Z
2020-10-27T20:48:51.000Z
st_library/utils/databases/postgres.py
shortesttrack/dataprovider-py
3ecbcb5e09da09614a708e4ef990acdd3443c6ed
[ "Apache-2.0" ]
4
2018-02-26T08:12:39.000Z
2018-05-18T06:01:01.000Z
import backoff import psycopg2 from psycopg2.extras import DictCursor, NamedTupleCursor from st_library.utils.generics.connectors import ConnectorContainer _disconnect_errors = (psycopg2.InterfaceError, psycopg2.OperationalError,) _backoff = backoff.on_exception(backoff.expo, _disconnect_errors, max_time=30, max_tri...
29.102041
92
0.630435
2,519
0.88324
0
0
820
0.287518
0
0
146
0.051192
b0c2f5602738aeed19e70471739de83515468bde
566
py
Python
examples/date-format.py
adamantonio/gooeypie
a60416a6a317f83e89541d6fdcac3559ace87cac
[ "MIT" ]
1
2021-11-20T16:28:47.000Z
2021-11-20T16:28:47.000Z
examples/date-format.py
adamantonio/gooeypie
a60416a6a317f83e89541d6fdcac3559ace87cac
[ "MIT" ]
null
null
null
examples/date-format.py
adamantonio/gooeypie
a60416a6a317f83e89541d6fdcac3559ace87cac
[ "MIT" ]
null
null
null
import gooeypie as gp date_formats = ['28/8/20', '8/28/20', '28/08/2020', '08/28/2020', '2020-08-28', '28-Aug-2020', 'Friday, August 28, 2020', 'Friday, 28 August, 2020', 'August 28, 2020', '28 August, 2020'] app = gp.GooeyPieApp('Time and date') app.width = 250 label = gp.Label(app, ...
25.727273
84
0.627208
0
0
0
0
0
0
0
0
190
0.335689
b0c3406b4cbc0b4a885af800bf5115dce13d7dd2
1,131
py
Python
color_contrast_calc/converters/grayscale.py
nico-hn/color_contrast_calc_py
92cf9eecbd8e5d000f284ec786103cb719df6026
[ "MIT" ]
2
2020-10-01T11:50:30.000Z
2020-10-11T20:59:06.000Z
color_contrast_calc/converters/grayscale.py
nico-hn/color_contrast_calc_py
92cf9eecbd8e5d000f284ec786103cb719df6026
[ "MIT" ]
null
null
null
color_contrast_calc/converters/grayscale.py
nico-hn/color_contrast_calc_py
92cf9eecbd8e5d000f284ec786103cb719df6026
[ "MIT" ]
1
2019-06-18T02:08:06.000Z
2019-06-18T02:08:06.000Z
# https://www.w3.org/TR/filter-effects/#funcdef-grayscale # https://www.w3.org/TR/filter-effects/#grayscaleEquivalent # https://www.w3.org/TR/SVG/filters.html#feColorMatrixElement import numpy as np from . import rgb_clamp _CONST_PART = np.array([[0.2126, 0.7152, 0.0722], [0.2126, 0.7152, 0....
29.763158
65
0.612732
0
0
0
0
0
0
0
0
575
0.5084
b0c414717803420c137b57f5097d0149ee8b7ac9
2,285
py
Python
Coursera/Google_IT_Automation_with_Python/01_Crash_Course_on_Python/Week_5/wk5_mod3_ex2.py
ssolomon2020/Self_Study_Python_Training
b253093b185f4a0d98cb8565f5fcf2b0e4a99556
[ "MIT" ]
null
null
null
Coursera/Google_IT_Automation_with_Python/01_Crash_Course_on_Python/Week_5/wk5_mod3_ex2.py
ssolomon2020/Self_Study_Python_Training
b253093b185f4a0d98cb8565f5fcf2b0e4a99556
[ "MIT" ]
null
null
null
Coursera/Google_IT_Automation_with_Python/01_Crash_Course_on_Python/Week_5/wk5_mod3_ex2.py
ssolomon2020/Self_Study_Python_Training
b253093b185f4a0d98cb8565f5fcf2b0e4a99556
[ "MIT" ]
null
null
null
# Specialization: Google IT Automation with Python # Course 01: Crash Course with Python # Week 5 Module Part 3 Exercise 02 # Student: Shawn Solomon # Learning Platform: Coursera.org # Let’s expand a bit on our Clothing classes from the previous in-video question. Your mission: # Finish the "Stock_by_Material"...
33.115942
102
0.661707
629
0.274792
0
0
0
0
0
0
1,483
0.647881
b0c4a12b9a13aa11699c0f68047498ec12883a9b
845
py
Python
dictionary.py
LordGhostX/ECXBotsMastery
199000f8c24b30734869e8bbdebb5901604cd0fa
[ "MIT" ]
2
2021-07-17T20:09:24.000Z
2021-08-09T13:48:38.000Z
dictionary.py
LordGhostX/ECXBotsMastery
199000f8c24b30734869e8bbdebb5901604cd0fa
[ "MIT" ]
null
null
null
dictionary.py
LordGhostX/ECXBotsMastery
199000f8c24b30734869e8bbdebb5901604cd0fa
[ "MIT" ]
1
2021-07-17T00:12:07.000Z
2021-07-17T00:12:07.000Z
import requests from bs4 import BeautifulSoup def find_word_meaning(word): r = requests.get(f"https://www.dictionary.com/browse/{word}") if r.status_code == 200: page = BeautifulSoup(r.text, "html.parser") luna_pos = page.find("span", {"class": "luna-pos"}).text word_meaning = f"{word}...
33.8
94
0.620118
0
0
0
0
0
0
0
0
308
0.364497