hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
53a838c3259271fdbbdcdd593a7285260b21da67
4,938
py
Python
Client_Examine.py
fathhrohman/RPC-OnlineTest
6d591ba59f36e400da99606bcc4a462541be5d4f
[ "MIT" ]
null
null
null
Client_Examine.py
fathhrohman/RPC-OnlineTest
6d591ba59f36e400da99606bcc4a462541be5d4f
[ "MIT" ]
null
null
null
Client_Examine.py
fathhrohman/RPC-OnlineTest
6d591ba59f36e400da99606bcc4a462541be5d4f
[ "MIT" ]
null
null
null
import xmlrpc.client import getpass import os import time from prettytable import PrettyTable SERVER_IP = 'localhost' SERVER_PORT = '8000' server = xmlrpc.client.ServerProxy( 'http://{ip}:{port}'.format(ip=SERVER_IP, port=SERVER_PORT) ) while True: if menu_awal() == 1: os.system('clear')...
38.88189
93
0.373836
import xmlrpc.client import getpass import os import time from prettytable import PrettyTable SERVER_IP = 'localhost' SERVER_PORT = '8000' server = xmlrpc.client.ServerProxy( 'http://{ip}:{port}'.format(ip=SERVER_IP, port=SERVER_PORT) ) def menu_awal(): os.system('clear') print("SELAMAT DATANG...
471
0
46
f7198e330d6123f84319f87eb566ae8978c38f58
7,124
py
Python
corehq/apps/reports/urls.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
corehq/apps/reports/urls.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
94
2020-12-11T06:57:31.000Z
2022-03-15T10:24:06.000Z
corehq/apps/reports/urls.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
import logging from django.conf.urls import include, url from django.core.exceptions import ImproperlyConfigured from corehq.apps.reports.standard.forms.reports import ReprocessXFormErrorView from corehq.apps.userreports.reports.view import ( ConfigurableReportView, CustomConfigurableReportDispatcher, ) from ...
44.525
114
0.701291
import logging from django.conf.urls import include, url from django.core.exceptions import ImproperlyConfigured from corehq.apps.reports.standard.forms.reports import ReprocessXFormErrorView from corehq.apps.userreports.reports.view import ( ConfigurableReportView, CustomConfigurableReportDispatcher, ) from ...
0
0
0
606db58d7fe61a1f9a0aaa203e0894ce4e4f4b5a
44,992
py
Python
task4/task4_crnn.py
ankitshah009/dcase2018_baseline
96203adc37ce8feb6bdd3e99d4b31dcf7061eebe
[ "MIT" ]
132
2018-04-11T08:10:09.000Z
2022-03-12T06:54:23.000Z
task4/task4_crnn.py
jayjay-cpu/dcase2018_baseline
5c5a0f6aff27280c0b86d73d90a84bacf51adb24
[ "MIT" ]
26
2018-04-16T14:27:58.000Z
2019-08-19T07:54:34.000Z
task4/task4_crnn.py
jayjay-cpu/dcase2018_baseline
5c5a0f6aff27280c0b86d73d90a84bacf51adb24
[ "MIT" ]
86
2018-04-10T07:11:17.000Z
2022-03-20T05:47:49.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- ######################################################################### # This code is an adaptation from Toni Heittola's code [task1 baseline dcase 2018](https://github.com/DCASE-REPO/dcase2018_baseline/tree/master/task1/) # Copyright Nicolas Turpault, Romain Serizel, H...
43.095785
151
0.542585
# !/usr/bin/env python # -*- coding: utf-8 -*- ######################################################################### # This code is an adaptation from Toni Heittola's code [task1 baseline dcase 2018](https://github.com/DCASE-REPO/dcase2018_baseline/tree/master/task1/) # Copyright Nicolas Turpault, Romain Serizel, H...
41,381
0
23
6a8e52b422973234a36fd6f11cbb2ed6a33f7392
1,108
py
Python
benchmarks/detection/convert-pretrain-to-detectron2.py
Qianna00/openselfsup
8d811716ace9096a5d117338344dd1eab98a0453
[ "Apache-2.0" ]
1
2021-08-01T08:44:39.000Z
2021-08-01T08:44:39.000Z
benchmarks/detection/convert-pretrain-to-detectron2.py
Qianna00/openselfsup
8d811716ace9096a5d117338344dd1eab98a0453
[ "Apache-2.0" ]
null
null
null
benchmarks/detection/convert-pretrain-to-detectron2.py
Qianna00/openselfsup
8d811716ace9096a5d117338344dd1eab98a0453
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import pickle as pkl import sys import torch if __name__ == "__main__": input = sys.argv[1] obj = torch.load(input, map_location="cpu") obj = obj["state_dict"] newmodel = {} for k, v in obj.items(): ...
28.410256
70
0.536101
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import pickle as pkl import sys import torch if __name__ == "__main__": input = sys.argv[1] obj = torch.load(input, map_location="cpu") obj = obj["state_dict"] newmodel = {} for k, v in obj.items(): ...
0
0
0
36644bc61c24d2ab62807cd09b964a863c858053
411
py
Python
listRemoveDuplicates.py
elijahanderson/Python-Practice
881f3dad9d6050d4f3c268172187e6a17ed39426
[ "MIT" ]
null
null
null
listRemoveDuplicates.py
elijahanderson/Python-Practice
881f3dad9d6050d4f3c268172187e6a17ed39426
[ "MIT" ]
null
null
null
listRemoveDuplicates.py
elijahanderson/Python-Practice
881f3dad9d6050d4f3c268172187e6a17ed39426
[ "MIT" ]
null
null
null
# No. 14: Removing duplicates in a list: x = [1,1,2,2,3,3,4,4,1] print(removeDuplicates2(x)) print(removeDuplicates1(x))
18.681818
40
0.559611
# No. 14: Removing duplicates in a list: def removeDuplicates1(oList) : nList = [] for i in range(len(oList)) : if oList[i] not in nList : nList.append(oList[i]) return str(nList) def removeDuplicates2(oList) : nSet = set(oList) re...
243
0
46
63638ff9459fd9b8351686e9853de03c07ff1d5f
8,147
py
Python
plaidbench/plaidbench.py
TolyaTalamanov/plaidml
275a79cd640def34c1b7bc7053397f5989ef55c2
[ "Apache-2.0" ]
1
2019-09-11T11:18:50.000Z
2019-09-11T11:18:50.000Z
plaidbench/plaidbench.py
HubBucket-Team/plaidml
762d5fff6467b43a15623f927502892ce8df91a4
[ "Apache-2.0" ]
9
2020-01-28T23:12:54.000Z
2022-02-26T06:15:40.000Z
plaidbench/plaidbench.py
HubBucket-Team/plaidml
762d5fff6467b43a15623f927502892ce8df91a4
[ "Apache-2.0" ]
1
2019-09-11T11:18:52.000Z
2019-09-11T11:18:52.000Z
#!/usr/bin/env python # # Copyright 2018 Intel Corporation # # 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 l...
38.611374
96
0.593593
#!/usr/bin/env python # # Copyright 2018 Intel Corporation # # 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 l...
6,778
0
46
1205711237983cb257bd2d8e827b3d6e41499a39
1,237
py
Python
python exercises/dek_program010.py
dek-odoo/python-samples
0109d19e0aec3f40ea39973948d99657f7c27135
[ "Apache-2.0" ]
3
2015-01-30T07:06:26.000Z
2020-08-04T05:09:23.000Z
python exercises/dek_program010.py
dek-odoo/python-samples
0109d19e0aec3f40ea39973948d99657f7c27135
[ "Apache-2.0" ]
null
null
null
python exercises/dek_program010.py
dek-odoo/python-samples
0109d19e0aec3f40ea39973948d99657f7c27135
[ "Apache-2.0" ]
7
2017-06-15T23:27:48.000Z
2021-12-28T17:34:16.000Z
#!/user/bin/python # -*- coding: utf-8 -*- # Author : (DEK) Devendra Kavthekar # program010 : # Write a program that accepts a sequence of whitespace # separated words as input and prints the words after # removing all duplicate words and sorting # them alphanumerically. # Suppose the following input is supplied to t...
30.925
69
0.725141
#!/user/bin/python # -*- coding: utf-8 -*- # Author : (DEK) Devendra Kavthekar # program010 : # Write a program that accepts a sequence of whitespace # separated words as input and prints the words after # removing all duplicate words and sorting # them alphanumerically. # Suppose the following input is supplied to t...
474
0
23
3b1280118fc4a8cdab78cf7dc9a68b07f08c0555
122
py
Python
app_movies/apps.py
bogdandrienko/kostanay-minerals
d266b3899f8403b5182e1dadf74b1f8bb580d17c
[ "MIT" ]
1
2021-02-13T08:40:51.000Z
2021-02-13T08:40:51.000Z
app_movies/apps.py
bogdandrienko/chrysotile-minerals
47a4097e29ee40f2606807e28b2da466dfd7f3f4
[ "MIT" ]
null
null
null
app_movies/apps.py
bogdandrienko/chrysotile-minerals
47a4097e29ee40f2606807e28b2da466dfd7f3f4
[ "MIT" ]
null
null
null
from django.apps import AppConfig
17.428571
33
0.737705
from django.apps import AppConfig class AppMoviesConfig(AppConfig): name = 'app_movies' verbose_name = "Фильмы"
0
70
23
f3420752ed0c50477608e6c6acbf30af5c655cc3
519
py
Python
python3/async-queue.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
2
2015-06-01T18:33:38.000Z
2018-11-21T19:40:37.000Z
python3/async-queue.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
102
2015-01-20T17:26:52.000Z
2017-12-28T17:32:51.000Z
python3/async-queue.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
3
2020-03-02T06:54:18.000Z
2021-01-07T16:36:35.000Z
# http://stackoverflow.com/questions/23864341/equivalent-of-asyncio-queues-with-worker-threads import asyncio, random q = asyncio.Queue() @asyncio.coroutine @asyncio.coroutine loop = asyncio.get_event_loop() loop.create_task(produce()) loop.create_task(consume()) loop.run_forever()
19.961538
94
0.695568
# http://stackoverflow.com/questions/23864341/equivalent-of-asyncio-queues-with-worker-threads import asyncio, random q = asyncio.Queue() @asyncio.coroutine def produce(): while True: yield from q.put(random.random()) yield from asyncio.sleep(0.5 + random.random()) @asyncio.coroutine def consum...
184
0
44
eeaa1dbea4d9d0671656478d1489fe9854f3fb28
13,591
py
Python
gbvision/utils/cameras/camera_data.py
GreenBlitz/GBVision
7b6f1dfc09e28ea1e5e771af9cb222412d71c7bb
[ "Apache-2.0" ]
16
2019-04-15T18:52:58.000Z
2022-02-13T23:00:46.000Z
gbvision/utils/cameras/camera_data.py
GreenBlitz/GBVision
7b6f1dfc09e28ea1e5e771af9cb222412d71c7bb
[ "Apache-2.0" ]
2
2019-04-15T19:00:05.000Z
2019-04-19T15:47:21.000Z
gbvision/utils/cameras/camera_data.py
GreenBlitz/GBVision
7b6f1dfc09e28ea1e5e771af9cb222412d71c7bb
[ "Apache-2.0" ]
3
2019-05-03T13:48:25.000Z
2019-09-22T14:03:49.000Z
import numpy as np from copy import deepcopy from gbvision.constants.types import Number class CameraData: """ describes constant about a camera in it's default state used to approximate distance between the camera and an object seen in a frame :param focal_length: the focal length of the camera at ...
45.454849
137
0.616585
import numpy as np from copy import deepcopy from gbvision.constants.types import Number class CameraData: """ describes constant about a camera in it's default state used to approximate distance between the camera and an object seen in a frame :param focal_length: the focal length of the camera at ...
1,613
0
135
849923bdd5cdf7c37ae4d171af748d4a424dc335
1,497
py
Python
IPython/kernel/tests/test_kernelmanager.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
1
2020-12-18T01:07:55.000Z
2020-12-18T01:07:55.000Z
IPython/kernel/tests/test_kernelmanager.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/kernel/tests/test_kernelmanager.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
"""Tests for the notebook kernel and session manager""" from subprocess import PIPE import time from unittest import TestCase from IPython.testing import decorators as dec from IPython.config.loader import Config from IPython.kernel import KernelManager
27.218182
80
0.637275
"""Tests for the notebook kernel and session manager""" from subprocess import PIPE import time from unittest import TestCase from IPython.testing import decorators as dec from IPython.config.loader import Config from IPython.kernel import KernelManager class TestKernelManager(TestCase): def _get_tcp_km(self)...
1,021
195
23
76a1f7414152f1a84e38fe56f174dace029e5ca5
871
py
Python
code_examples/popart/block_sparse/examples/sparse_softmax/test_sparse_softmax_subblock.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
code_examples/popart/block_sparse/examples/sparse_softmax/test_sparse_softmax_subblock.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
code_examples/popart/block_sparse/examples/sparse_softmax/test_sparse_softmax_subblock.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Graphcore Ltd. All rights reserved. import os import unittest import re import pytest # NOTE: The import below is dependent on 'pytest.ini' in the root of # the repository from examples_tests.test_util import run_python_script_helper, run_test_helper def run_sparse_softmax_subblock(**kwargs): ...
28.096774
96
0.703789
# Copyright (c) 2020 Graphcore Ltd. All rights reserved. import os import unittest import re import pytest # NOTE: The import below is dependent on 'pytest.ini' in the root of # the repository from examples_tests.test_util import run_python_script_helper, run_test_helper def run_sparse_softmax_subblock(**kwargs): ...
0
248
23
3a3aa8da403e472ed2e0b7150550d91b55d30071
1,156
py
Python
upsid_phonename_scape.py
AdamKing11/LangTypo
35675cfd586e236e380b757fd9cdbcd3108af332
[ "MIT" ]
null
null
null
upsid_phonename_scape.py
AdamKing11/LangTypo
35675cfd586e236e380b757fd9cdbcd3108af332
[ "MIT" ]
null
null
null
upsid_phonename_scape.py
AdamKing11/LangTypo
35675cfd586e236e380b757fd9cdbcd3108af332
[ "MIT" ]
null
null
null
import os, sys, re, csv from bs4 import BeautifulSoup import requests, time from tqdm import tqdm url = 'http://web.phonetik.uni-frankfurt.de/S/S00002.html' if __name__ == '__main__': main()
24.083333
62
0.665225
import os, sys, re, csv from bs4 import BeautifulSoup import requests, time from tqdm import tqdm url = 'http://web.phonetik.uni-frankfurt.de/S/S00002.html' def get_phoneme_and_description(url): req = requests.get(url) soup = BeautifulSoup(req.text, 'html.parser') tds = soup.find_all('td') # if we don't find any...
913
0
46
053681f0c116ef0ad617ff2fa6c4a62e58f7a04e
4,590
py
Python
scripts/benchmarks_test_n_stats.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
7
2020-06-24T12:14:40.000Z
2022-01-19T17:01:02.000Z
scripts/benchmarks_test_n_stats.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
null
null
null
scripts/benchmarks_test_n_stats.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
null
null
null
import argparse import glob # noinspection PyTypeChecker from dataclasses import dataclass from operator import add from statistics import median, mean from termcolor import colored from forest.parse_examples import parse_resnax, parse_file exclude_instances = ["datetime2"] # , "color", "date", "date7", "id1", "dat...
35.581395
100
0.623529
import argparse import glob # noinspection PyTypeChecker from dataclasses import dataclass from operator import add from statistics import median, mean from termcolor import colored from forest.parse_examples import parse_resnax, parse_file exclude_instances = ["datetime2"] # , "color", "date", "date7", "id1", "dat...
4,049
93
68
3748270548690274a46aef4bbf98478fcc07582a
222
py
Python
area.py
SharmaSatvik/PYTHON
abdaab6d185d005dd9979b521dc426b8f0fdd9b4
[ "Apache-2.0" ]
null
null
null
area.py
SharmaSatvik/PYTHON
abdaab6d185d005dd9979b521dc426b8f0fdd9b4
[ "Apache-2.0" ]
null
null
null
area.py
SharmaSatvik/PYTHON
abdaab6d185d005dd9979b521dc426b8f0fdd9b4
[ "Apache-2.0" ]
null
null
null
main()
24.666667
56
0.594595
def area_rectangle(l,b): return l*b def main(): l=input('What is the length of the rectangle? \n') b=input('What is the breadth of the rectangle? \n') a=l*b print "Area is the: "+ str(a) main()
168
0
46
a1feb5c12b0bf9ffbfcb40dc393266265ada3aaa
1,106
py
Python
python/leetcode/520_detect_capital.py
yxun/Notebook
680ae89a32d3f7d4fdcd541e66cea97e29efbd26
[ "Apache-2.0" ]
1
2021-10-04T13:26:32.000Z
2021-10-04T13:26:32.000Z
python/leetcode/520_detect_capital.py
yxun/Notebook
680ae89a32d3f7d4fdcd541e66cea97e29efbd26
[ "Apache-2.0" ]
3
2020-03-24T19:34:42.000Z
2022-01-21T20:15:39.000Z
python/leetcode/520_detect_capital.py
yxun/Notebook
680ae89a32d3f7d4fdcd541e66cea97e29efbd26
[ "Apache-2.0" ]
1
2021-04-01T20:56:50.000Z
2021-04-01T20:56:50.000Z
#%% """ - Detect Capital - https://leetcode.com/problems/detect-capital/ - Easy Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of the following cases holds: All letters in this word are capitals, like "USA". All lett...
22.571429
93
0.653707
#%% """ - Detect Capital - https://leetcode.com/problems/detect-capital/ - Easy Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of the following cases holds: All letters in this word are capitals, like "USA". All lett...
96
229
70
39ef4e89681e29adb1a278df630dbacaebf9f55a
607
py
Python
tests/api/test_instance_id_read.py
DoWhileGeek/workwork
4de1b7ede0343b116b9cae0bd847887b46a20e80
[ "MIT" ]
null
null
null
tests/api/test_instance_id_read.py
DoWhileGeek/workwork
4de1b7ede0343b116b9cae0bd847887b46a20e80
[ "MIT" ]
null
null
null
tests/api/test_instance_id_read.py
DoWhileGeek/workwork
4de1b7ede0343b116b9cae0bd847887b46a20e80
[ "MIT" ]
null
null
null
from workwork.errors import InstanceIdNotFound
37.9375
91
0.785832
from workwork.errors import InstanceIdNotFound def test_instance_id_read_happy_path(client, mocker, instance_payload): mocker.patch("workwork.platform.instance.get_instance") resp = client.get("/instance/us-west-2/some_id/", headers=instance_payload.to_dict()) assert resp.status_code == 200 def test_in...
512
0
46
9c6019646c5a3031843b1eca1d1685949b1abd34
169
py
Python
django_database/tags/admin.py
SyedArsalanAmin/webdev
28fd7fc6c865588604c9e965a4416c7e0eb4a1c8
[ "MIT" ]
null
null
null
django_database/tags/admin.py
SyedArsalanAmin/webdev
28fd7fc6c865588604c9e965a4416c7e0eb4a1c8
[ "MIT" ]
null
null
null
django_database/tags/admin.py
SyedArsalanAmin/webdev
28fd7fc6c865588604c9e965a4416c7e0eb4a1c8
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Tag # Register your models here. @admin.register(Tag)
24.142857
33
0.775148
from django.contrib import admin from .models import Tag # Register your models here. @admin.register(Tag) class TagAdmin(admin.ModelAdmin): search_fields=['label']
0
40
22
7f35333dd0d0cc626b4ca735f6555f40ac00f3a8
293
py
Python
setup.py
anfederico/Tableize
caa80be5408faedc2466c6b8cf1647e8b7a1065e
[ "MIT" ]
13
2017-01-22T21:59:59.000Z
2019-07-11T09:22:07.000Z
setup.py
anfederico/Tableize
caa80be5408faedc2466c6b8cf1647e8b7a1065e
[ "MIT" ]
null
null
null
setup.py
anfederico/Tableize
caa80be5408faedc2466c6b8cf1647e8b7a1065e
[ "MIT" ]
4
2018-01-10T13:17:37.000Z
2019-11-20T20:01:48.000Z
from distutils.core import setup setup(name='tableize', version='v1.0', description='Turn lists into tables with ease', author='Anthony Federico', author_email='dephoona@gmail.com', url='https://github.com/anfederico/Tableize', packages=['tableize'] )
29.3
53
0.658703
from distutils.core import setup setup(name='tableize', version='v1.0', description='Turn lists into tables with ease', author='Anthony Federico', author_email='dephoona@gmail.com', url='https://github.com/anfederico/Tableize', packages=['tableize'] )
0
0
0
c13f9738a03ec104ea77b79cc5d13e2046ed4b8d
16,512
py
Python
server/wkr_serving/server/__init__.py
RyanDam/Worker-as-service
f8da724a597d7a4e535be8cdee8db250fbbeb776
[ "MIT" ]
3
2021-01-18T09:11:09.000Z
2021-01-18T09:11:37.000Z
server/wkr_serving/server/__init__.py
RyanDam/Worker-as-service
f8da724a597d7a4e535be8cdee8db250fbbeb776
[ "MIT" ]
null
null
null
server/wkr_serving/server/__init__.py
RyanDam/Worker-as-service
f8da724a597d7a4e535be8cdee8db250fbbeb776
[ "MIT" ]
1
2021-01-18T09:11:42.000Z
2021-01-18T09:11:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Han Xiao <artex.xh@gmail.com> <https://hanxiao.github.io> import multiprocessing import os import random import sys import threading import time from collections import defaultdict from datetime import datetime from itertools import chain from multiprocessing import Proce...
44.747967
211
0.586543
#!/usr/bin/env python # -*- coding: utf-8 -*- # Han Xiao <artex.xh@gmail.com> <https://hanxiao.github.io> import multiprocessing import os import random import sys import threading import time from collections import defaultdict from datetime import datetime from itertools import chain from multiprocessing import Proce...
15,088
649
23
d7f7839ae82bfa72cba18b1a46e544578a1db9f1
3,842
py
Python
cs101/HW9/Code Snippets.py
rootulp/school
cdf7b3f261e9f0f6991a4740790c5f54747079b5
[ "MIT" ]
null
null
null
cs101/HW9/Code Snippets.py
rootulp/school
cdf7b3f261e9f0f6991a4740790c5f54747079b5
[ "MIT" ]
null
null
null
cs101/HW9/Code Snippets.py
rootulp/school
cdf7b3f261e9f0f6991a4740790c5f54747079b5
[ "MIT" ]
null
null
null
# Code Snippets for Flow Solver # Below are a few code snippets, intended to save you the time and tedium # of typing in file name lists. Copy and paste these into your program as needed. # Snippet number 1: List of colors used. Not sure if you need this or not. # By the way, the "white" files are really gray. ...
39.608247
130
0.609058
# Code Snippets for Flow Solver # Below are a few code snippets, intended to save you the time and tedium # of typing in file name lists. Copy and paste these into your program as needed. # Snippet number 1: List of colors used. Not sure if you need this or not. # By the way, the "white" files are really gray. ...
616
0
48
270713a01112cdee0d2783004b1a5e1fda5a3fd0
393
py
Python
venv/Lib/site-packages/mcipc/rcon/je/commands/locatebiome.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/mcipc/rcon/je/commands/locatebiome.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/mcipc/rcon/je/commands/locatebiome.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
"""Implementation of the locatebiome command.""" from mcipc.rcon.client import Client from mcipc.rcon.functions import parsed from mcipc.rcon.je.types import Biome from mcipc.rcon.response_types.location import parse __all__ = ['locatebiome'] @parsed(parse) def locatebiome(self: Client, biome: Biome) -> str: "...
23.117647
52
0.748092
"""Implementation of the locatebiome command.""" from mcipc.rcon.client import Client from mcipc.rcon.functions import parsed from mcipc.rcon.je.types import Biome from mcipc.rcon.response_types.location import parse __all__ = ['locatebiome'] @parsed(parse) def locatebiome(self: Client, biome: Biome) -> str: "...
0
0
0
aaae761b8a0ec413f37371ef7bba12f769741840
6,109
py
Python
model.py
pianomania/LSGAN
ddd1db70f246c9697fd36696e315fa3bcee72241
[ "MIT" ]
2
2019-01-09T04:57:49.000Z
2022-03-24T09:33:46.000Z
model.py
pianomania/LSGAN
ddd1db70f246c9697fd36696e315fa3bcee72241
[ "MIT" ]
null
null
null
model.py
pianomania/LSGAN
ddd1db70f246c9697fd36696e315fa3bcee72241
[ "MIT" ]
null
null
null
import tensorflow as tf from config import * batch_norm = tf.contrib.layers.batch_norm w_init = tf.contrib.layers.variance_scaling_initializer() b_init = tf.constant_initializer(0.0) class Generator(object): """ Generator """ class Discriminator(object): """ Discriminator """
27.394619
112
0.560648
import tensorflow as tf from config import * batch_norm = tf.contrib.layers.batch_norm w_init = tf.contrib.layers.variance_scaling_initializer() b_init = tf.constant_initializer(0.0) def lrelu(x, leak=0.2, name="lrelu"): with tf.variable_scope(name): f1 = 0.5 * (1 + leak) f2 = 0.5 * (1 - leak) ...
5,617
-7
215
1d597ce2b665b200a91c118be2735fbf2d3e9e6b
1,634
py
Python
remote_works/temp.py
tetyanaloskutova/saleor
b3bb51e9c0c4c2febf4aa1e2a7d893e77c331e89
[ "BSD-3-Clause" ]
7
2019-05-17T14:27:13.000Z
2021-12-17T22:52:40.000Z
remote_works/temp.py
tetyanaloskutova/saleor
b3bb51e9c0c4c2febf4aa1e2a7d893e77c331e89
[ "BSD-3-Clause" ]
9
2019-04-13T09:24:28.000Z
2019-09-09T15:35:05.000Z
remote_works/temp.py
tetyanaloskutova/remote-works
b3bb51e9c0c4c2febf4aa1e2a7d893e77c331e89
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd pd.set_option("display.max_colwidth", 10000) pd.options.mode.chained_assignment = None # to not make too many copies import os import numpy as np import glob rootdir_glob = 'C:\\conda\\remote_works\\remote_works\\remote_works\\**/*' # Note the added asterisks # This will ...
30.830189
101
0.577111
# -*- coding: utf-8 -*- import pandas as pd pd.set_option("display.max_colwidth", 10000) pd.options.mode.chained_assignment = None # to not make too many copies import os import numpy as np import glob rootdir_glob = 'C:\\conda\\remote_works\\remote_works\\remote_works\\**/*' # Note the added asterisks # This will ...
412
0
39
891ea3f96517f7c0f9f5c767ea019d7b27f2a9ac
3,310
py
Python
lib/spack/spack/cmd/versions.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
lib/spack/spack/cmd/versions.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
lib/spack/spack/cmd/versions.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from __future__ import print_function import sys import llnl.util.tty as tty from llnl.util.tty.colify import colify im...
36.373626
76
0.622659
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from __future__ import print_function import sys import llnl.util.tty as tty from llnl.util.tty.colify import colify im...
2,739
0
46
4b9e1f33a4576ef24ece7bcf02746c623a408029
5,372
py
Python
tests/utils/processinvokes_test.py
AndreyRub/AlexBerUtils
b2d79c98c083533534470b62632a36dfd730be48
[ "BSD-2-Clause" ]
null
null
null
tests/utils/processinvokes_test.py
AndreyRub/AlexBerUtils
b2d79c98c083533534470b62632a36dfd730be48
[ "BSD-2-Clause" ]
8
2019-12-15T05:13:27.000Z
2021-02-16T20:03:40.000Z
tests/utils/processinvokes_test.py
AndreyRub/AlexBerUtils
b2d79c98c083533534470b62632a36dfd730be48
[ "BSD-2-Clause" ]
2
2019-12-12T03:52:37.000Z
2021-05-21T21:14:34.000Z
import logging import shlex import os as _os import tempfile from pathlib import Path import pytest import alexber.utils.processinvokes as processinvokes from alexber.utils.processinvokes import LogPipe, LogSubProcessCall logger = logging.getLogger(__name__) process_invokes_logger = None _process_invokes_logger_log = ...
36.794521
136
0.661765
import logging import shlex import os as _os import tempfile from pathlib import Path import pytest import alexber.utils.processinvokes as processinvokes from alexber.utils.processinvokes import LogPipe, LogSubProcessCall logger = logging.getLogger(__name__) process_invokes_logger = None _process_invokes_logger_log = ...
4,660
46
227
9319a4f9799ae964325e1e7c36342df7e023c6d4
1,857
py
Python
src/embit/liquid/addresses.py
kdmukai/embit
b9ed820b306d2543d413662d01021eb0599d34fb
[ "MIT" ]
null
null
null
src/embit/liquid/addresses.py
kdmukai/embit
b9ed820b306d2543d413662d01021eb0599d34fb
[ "MIT" ]
null
null
null
src/embit/liquid/addresses.py
kdmukai/embit
b9ed820b306d2543d413662d01021eb0599d34fb
[ "MIT" ]
null
null
null
from .. import bech32, ec, script, base58 from . import blech32 import hmac from .networks import NETWORKS # TODO: refactor with network
34.388889
89
0.556812
from .. import bech32, ec, script, base58 from . import blech32 import hmac from .networks import NETWORKS def address(script, blinding_key=None, network=NETWORKS['liquidv1']): if script.data == b"": return "Fee" if script.script_type() == "p2sh": data = script.data[2:-1] if blinding_ke...
1,673
0
45
018b7ce3648a1d964c16e571f9faa308c48925ee
963
py
Python
Solutions/session_one/src/arda_service.py
TextZip/ROS_SMP
5b8c1d502cb629dd40890992dd81b36caf8708bd
[ "MIT" ]
null
null
null
Solutions/session_one/src/arda_service.py
TextZip/ROS_SMP
5b8c1d502cb629dd40890992dd81b36caf8708bd
[ "MIT" ]
null
null
null
Solutions/session_one/src/arda_service.py
TextZip/ROS_SMP
5b8c1d502cb629dd40890992dd81b36caf8708bd
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import rospy from session_one.srv import laser_service,laser_serviceResponse from sensor_msgs.msg import LaserScan laser_max = 0.00 laser_min = 0.00 rospy.init_node('arda_service_server_node') my_service = rospy.Service('/Arda',laser_service,service_callback_function) rospy.spin()
24.692308
75
0.750779
#! /usr/bin/env python3 import rospy from session_one.srv import laser_service,laser_serviceResponse from sensor_msgs.msg import LaserScan laser_max = 0.00 laser_min = 0.00 def laser_callback(data): global laser_sub global laser_max global laser_min laser_max = max(data.ranges) laser_min = min(da...
606
0
46
ba58de22ade0a5a923c23151e04f9f91105b1558
1,375
py
Python
resc/cachetools.py
DougAF/joblib-demo
00e64fe2b9d0d8b040c764f6391f4f08f5513058
[ "MIT" ]
null
null
null
resc/cachetools.py
DougAF/joblib-demo
00e64fe2b9d0d8b040c764f6391f4f08f5513058
[ "MIT" ]
null
null
null
resc/cachetools.py
DougAF/joblib-demo
00e64fe2b9d0d8b040c764f6391f4f08f5513058
[ "MIT" ]
null
null
null
"""Tools to implement caching.""" # pylint: disable=too-few-public-methods import functools def _make_key(args, kwargs): """Creates a hashable key. A simplified version of functools._make_key.""" # create a key for the memo from args and kwargs key = args if kwargs: # marks the start of th...
22.540984
94
0.602182
"""Tools to implement caching.""" # pylint: disable=too-few-public-methods import functools def _make_key(args, kwargs): """Creates a hashable key. A simplified version of functools._make_key.""" # create a key for the memo from args and kwargs key = args if kwargs: # marks the start of th...
521
0
80
151b429ddd67c7890bf72737025000d151cca734
2,456
py
Python
tournaments/api/views.py
ChristianJStarr/sbs-website
db891f0a67f46cc9cdadc95714304b2ea91a162a
[ "MIT" ]
1
2022-01-09T18:54:32.000Z
2022-01-09T18:54:32.000Z
tournaments/api/views.py
ChristianJStarr/sbs-website
db891f0a67f46cc9cdadc95714304b2ea91a162a
[ "MIT" ]
null
null
null
tournaments/api/views.py
ChristianJStarr/sbs-website
db891f0a67f46cc9cdadc95714304b2ea91a162a
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework import viewsets, permissions, generics from tournaments.api.serializers import TournamentSerializer from tournaments.models import Tournament, TeamInvite class TournamentViewSet(viewsets.ModelViewSet): """ API endpoint that allows groups to be ...
52.255319
129
0.72557
from rest_framework.response import Response from rest_framework import viewsets, permissions, generics from tournaments.api.serializers import TournamentSerializer from tournaments.models import Tournament, TeamInvite class TournamentViewSet(viewsets.ModelViewSet): """ API endpoint that allows groups to be ...
1,570
159
242
0cd1ccbb3cb542d9510f493b4baa931bd8f169cc
32,385
py
Python
test/test_derivatives.py
fyumoto/RBMs
57a3b2a346cea940bd83f0174c741e8760594112
[ "MIT" ]
124
2017-02-01T23:52:58.000Z
2022-03-03T11:51:15.000Z
test/test_derivatives.py
fyumoto/RBMs
57a3b2a346cea940bd83f0174c741e8760594112
[ "MIT" ]
58
2017-01-29T15:55:57.000Z
2021-08-25T14:53:18.000Z
test/test_derivatives.py
fyumoto/RBMs
57a3b2a346cea940bd83f0174c741e8760594112
[ "MIT" ]
37
2017-02-12T12:55:51.000Z
2022-03-06T16:57:50.000Z
from paysage import backends as be from paysage import layers from paysage.models import BoltzmannMachine from paysage.models import gradient_util as gu from paysage.models.state import StateTAP import pytest from copy import deepcopy from cytoolz import partial import math # ----- Functional Programs with Gradients -...
35.983333
101
0.66784
from paysage import backends as be from paysage import layers from paysage.models import BoltzmannMachine from paysage.models import gradient_util as gu from paysage.models.state import StateTAP import pytest from copy import deepcopy from cytoolz import partial import math # ----- Functional Programs with Gradients -...
31,435
0
529
dbd52df89f4757230fa9f00bc9edf46bff0cd371
14,429
py
Python
sdk/python/pulumi_vault/identity/group_member_entity_ids.py
pulumi/pulumi-vault
1682875f4a5d7d508f36e166529ad2b8aec34090
[ "ECL-2.0", "Apache-2.0" ]
10
2019-10-07T17:44:18.000Z
2022-03-30T20:46:33.000Z
sdk/python/pulumi_vault/identity/group_member_entity_ids.py
pulumi/pulumi-vault
1682875f4a5d7d508f36e166529ad2b8aec34090
[ "ECL-2.0", "Apache-2.0" ]
79
2019-10-11T18:13:07.000Z
2022-03-31T21:09:41.000Z
sdk/python/pulumi_vault/identity/group_member_entity_ids.py
pulumi/pulumi-vault
1682875f4a5d7d508f36e166529ad2b8aec34090
[ "ECL-2.0", "Apache-2.0" ]
2
2019-10-28T10:08:40.000Z
2020-03-17T14:20:55.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
39.531507
203
0.628526
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
2,507
11,416
67
540b15270cfc284ffcf6ce5f32b01d3a423f216e
1,171
py
Python
build/font/generate_font.py
DAnn2012/skeleton-elements
558564b8087dc7c05d871982bf0c4c9ca721cdf4
[ "MIT" ]
null
null
null
build/font/generate_font.py
DAnn2012/skeleton-elements
558564b8087dc7c05d871982bf0c4c9ca721cdf4
[ "MIT" ]
null
null
null
build/font/generate_font.py
DAnn2012/skeleton-elements
558564b8087dc7c05d871982bf0c4c9ca721cdf4
[ "MIT" ]
null
null
null
import fontforge import os import md5 import subprocess import tempfile import json import copy SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__)) SQUARE_PATH = os.path.join(SCRIPT_PATH, 'square.svg') OUTPUT_FONT_DIR = os.path.join(SCRIPT_PATH, '..', '..', 'src/fonts') AUTO_WIDTH = False KERNING = 0 m = md5.new...
24.395833
172
0.704526
import fontforge import os import md5 import subprocess import tempfile import json import copy SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__)) SQUARE_PATH = os.path.join(SCRIPT_PATH, 'square.svg') OUTPUT_FONT_DIR = os.path.join(SCRIPT_PATH, '..', '..', 'src/fonts') AUTO_WIDTH = False KERNING = 0 m = md5.new...
0
0
0
0099ebe6a752563f875ebc48c7bacab0636072ed
72,314
py
Python
Dictator_service/auto_commands.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
5
2019-03-14T10:17:22.000Z
2019-10-23T14:04:12.000Z
Dictator_service/auto_commands.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
null
null
null
Dictator_service/auto_commands.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
14
2019-03-14T10:34:02.000Z
2021-10-31T17:34:13.000Z
""" @Author :Furqan Khan @Email :furqankhan08@gmail.com @Date :12/30/2016 Objective : The purpose of this file /module /Class is to actually execute the external scripts for vulnerability assessment and scanning.It runs metasploit modules ,external python ,ruby,bash,shell,java class files and some perl as w...
40.832298
386
0.681237
""" @Author :Furqan Khan @Email :furqankhan08@gmail.com @Date :12/30/2016 Objective : The purpose of this file /module /Class is to actually execute the external scripts for vulnerability assessment and scanning.It runs metasploit modules ,external python ,ruby,bash,shell,java class files and some perl as w...
548
0
24
77ad11f3b2a84b25b6cf5ec432bbb56f5a8faa2a
31,161
py
Python
opsgenie_swagger/api/policy_api.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
opsgenie_swagger/api/policy_api.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
opsgenie_swagger/api/policy_api.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
1
2020-11-07T11:27:13.000Z
2020-11-07T11:27:13.000Z
# coding: utf-8 """ OpsGenie REST API OpsGenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library imp...
38.805729
129
0.610924
# coding: utf-8 """ OpsGenie REST API OpsGenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library imp...
120
0
27
60c14ce7f841f37a22ed7172cbdceff4268b7d11
287
py
Python
automatia/__init__.py
ShadowJonathan/automatia.py
555d473c11372b2eec14bcd7508b4593be4fba7f
[ "MIT" ]
1
2018-01-01T21:41:46.000Z
2018-01-01T21:41:46.000Z
automatia/__init__.py
ShadowJonathan/automatia.py
555d473c11372b2eec14bcd7508b4593be4fba7f
[ "MIT" ]
null
null
null
automatia/__init__.py
ShadowJonathan/automatia.py
555d473c11372b2eec14bcd7508b4593be4fba7f
[ "MIT" ]
null
null
null
from .module import AutomatiaModule import automatia.const.priority as priority from automatia.const.state import * from .main import Debug, Inform, Warn, Error, \ setdebug, setcli, setauto, isauto, \ FinishResult, FinishFinal, FinishNow from .internal.util import import_exists
35.875
47
0.787456
from .module import AutomatiaModule import automatia.const.priority as priority from automatia.const.state import * from .main import Debug, Inform, Warn, Error, \ setdebug, setcli, setauto, isauto, \ FinishResult, FinishFinal, FinishNow from .internal.util import import_exists
0
0
0
4a7eb8e9c54d18e5eb31946b9c0e01d77aa33660
6,771
py
Python
ezodf2/text.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
4
2015-03-15T22:32:35.000Z
2019-12-23T12:13:13.000Z
ezodf2/text.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
3
2017-08-17T09:36:42.000Z
2021-12-13T19:43:28.000Z
ezodf2/text.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 # Purpose: text objects # Created: 03.01.2011 # Copyright (C) 2011, Manfred Moitzi # License: MIT from __future__ import unicode_literals, print_function, division __author__ = "mozman <mozman@gmx.at>" from.compatibility import is_string from .xmlns import CN, register_cla...
34.545918
108
0.620883
#!/usr/bin/env python #coding:utf-8 # Purpose: text objects # Created: 03.01.2011 # Copyright (C) 2011, Manfred Moitzi # License: MIT from __future__ import unicode_literals, print_function, division __author__ = "mozman <mozman@gmx.at>" from.compatibility import is_string from .xmlns import CN, register_cla...
3,928
1,843
200
c4c2c1b10eae9ed738012025597c385bba0273fa
23,731
py
Python
manual_keypoints.py
rpng/suo_slam
5de01433d177fde5cac4423f05fd554e3c00794e
[ "MIT" ]
5
2022-03-28T04:41:35.000Z
2022-03-30T12:34:41.000Z
manual_keypoints.py
rpng/suo_slam
5de01433d177fde5cac4423f05fd554e3c00794e
[ "MIT" ]
null
null
null
manual_keypoints.py
rpng/suo_slam
5de01433d177fde5cac4423f05fd554e3c00794e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import cv2 import json import math import time import argparse import numpy as np import pandas as pd # sudo apt install libfreetype6-dev # sudo apt install libglfw3 from thirdparty.bop_toolkit.bop_toolkit_lib.renderer import create_renderer from lib.utils.utils import euler2R from l...
43.147273
100
0.510767
#!/usr/bin/env python3 import os import cv2 import json import math import time import argparse import numpy as np import pandas as pd # sudo apt install libfreetype6-dev # sudo apt install libglfw3 from thirdparty.bop_toolkit.bop_toolkit_lib.renderer import create_renderer from lib.utils.utils import euler2R from l...
17,129
3,049
23
85ab2eb79ef450ce91522a9d9946c1811f1721f9
188
py
Python
Python How to/Python How to/05_Generating_Password_in_python3/main.py
jmmedel/Python-How-To-tutorial-
03a9675a7c744c85fd2412b313f4d9d4b833ebe3
[ "MIT" ]
null
null
null
Python How to/Python How to/05_Generating_Password_in_python3/main.py
jmmedel/Python-How-To-tutorial-
03a9675a7c744c85fd2412b313f4d9d4b833ebe3
[ "MIT" ]
null
null
null
Python How to/Python How to/05_Generating_Password_in_python3/main.py
jmmedel/Python-How-To-tutorial-
03a9675a7c744c85fd2412b313f4d9d4b833ebe3
[ "MIT" ]
null
null
null
import os import hashlib from getpass import getpass print('Username: ' ) passwd = getpass('Password: ') h = hashlib.md5() h.update(passwd.encode()) passwd_encrypt = h.hexdigest()
20.888889
31
0.707447
import os import hashlib from getpass import getpass print('Username: ' ) passwd = getpass('Password: ') h = hashlib.md5() h.update(passwd.encode()) passwd_encrypt = h.hexdigest()
0
0
0
7ca1bd1a8bb79cc39935de8bbd1a293da7c4b062
809
py
Python
pippin/db/models/adhoc_account.py
guilhermelawless/pippin_nano_wallet
0bfb9fb03901661094dd4cfa957925443a721ded
[ "MIT" ]
59
2019-12-11T15:54:28.000Z
2022-02-21T19:03:42.000Z
pippin/db/models/adhoc_account.py
guilhermelawless/pippin_nano_wallet
0bfb9fb03901661094dd4cfa957925443a721ded
[ "MIT" ]
18
2020-01-09T04:29:42.000Z
2022-02-03T01:33:16.000Z
pippin/db/models/adhoc_account.py
guilhermelawless/pippin_nano_wallet
0bfb9fb03901661094dd4cfa957925443a721ded
[ "MIT" ]
20
2019-12-14T05:07:53.000Z
2022-03-05T21:05:20.000Z
from tortoise.models import Model from tortoise import fields from pippin.model.secrets import SeedStorage
42.578947
118
0.733004
from tortoise.models import Model from tortoise import fields from pippin.model.secrets import SeedStorage class AdHocAccount(Model): wallet = fields.ForeignKeyField('db.Wallet', on_delete=fields.CASCADE, related_name='adhoc_accounts', index=True) address = fields.CharField(max_length=65) private_key = fi...
0
680
23
4dad649d4ade5235b84547819707892c6acd4641
326
py
Python
Python_Basics/08_For_Loop/07_Odd_Even_Sum.py
Dochko0/Python
e9612c4e842cfd3d9a733526cc7485765ef2238f
[ "MIT" ]
null
null
null
Python_Basics/08_For_Loop/07_Odd_Even_Sum.py
Dochko0/Python
e9612c4e842cfd3d9a733526cc7485765ef2238f
[ "MIT" ]
null
null
null
Python_Basics/08_For_Loop/07_Odd_Even_Sum.py
Dochko0/Python
e9612c4e842cfd3d9a733526cc7485765ef2238f
[ "MIT" ]
null
null
null
count_num = int(input()) odd = 0 even = 0 for i in range(1, count_num + 1): curr_num = int(input()) if i % 2 == 0: odd += curr_num else: even += curr_num if odd == even: print(f'Yes, sum = {odd}') elif odd > even: print(f'No, diff = {odd-even}') else: print(f'No, diff = {even-o...
18.111111
35
0.530675
count_num = int(input()) odd = 0 even = 0 for i in range(1, count_num + 1): curr_num = int(input()) if i % 2 == 0: odd += curr_num else: even += curr_num if odd == even: print(f'Yes, sum = {odd}') elif odd > even: print(f'No, diff = {odd-even}') else: print(f'No, diff = {even-o...
0
0
0
f7645d912e665b7e69a40375fedcfecd8bff8f6f
5,018
py
Python
enn/losses/utils.py
MaxGhenis/enn
d830c31da16ea912ea3700aaf79e5e2f841eba8d
[ "Apache-2.0" ]
130
2021-07-21T16:50:07.000Z
2022-02-21T13:02:29.000Z
enn/losses/utils.py
MaxGhenis/enn
d830c31da16ea912ea3700aaf79e5e2f841eba8d
[ "Apache-2.0" ]
4
2021-07-27T16:46:58.000Z
2022-01-29T09:27:36.000Z
enn/losses/utils.py
LaudateCorpus1/enn
d830c31da16ea912ea3700aaf79e5e2f841eba8d
[ "Apache-2.0" ]
26
2021-07-23T16:27:17.000Z
2022-01-06T08:14:36.000Z
# python3 # pylint: disable=g-bad-file-header # Copyright 2021 DeepMind Technologies Limited. 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...
37.17037
80
0.680151
# python3 # pylint: disable=g-bad-file-header # Copyright 2021 DeepMind Technologies Limited. 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...
1,912
132
121
125a249fcd04cd194527ef71dede4d4b1955d8d7
9,695
py
Python
aerosandbox/performance/operating_point.py
raihaan123/AeroSandbox
1e7c78f04b066415f671237a4833ba98901bb9ec
[ "MIT" ]
null
null
null
aerosandbox/performance/operating_point.py
raihaan123/AeroSandbox
1e7c78f04b066415f671237a4833ba98901bb9ec
[ "MIT" ]
null
null
null
aerosandbox/performance/operating_point.py
raihaan123/AeroSandbox
1e7c78f04b066415f671237a4833ba98901bb9ec
[ "MIT" ]
null
null
null
from aerosandbox.geometry import * from aerosandbox import Atmosphere import aerosandbox.numpy as np from typing import Tuple, Union if __name__ == '__main__': op_point = OperatingPoint()
37.432432
170
0.564621
from aerosandbox.geometry import * from aerosandbox import Atmosphere import aerosandbox.numpy as np from typing import Tuple, Union class OperatingPoint(AeroSandboxObject): def __init__(self, atmosphere: Atmosphere = Atmosphere(altitude=0), velocity: float = 1., ...
1,319
8,158
23
22281d76bba7c2588cfe68d44ae464f74a9d5d8d
277
py
Python
SimTracker/Configuration/python/SimTracker_SetDeconv_cff.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
SimTracker/Configuration/python/SimTracker_SetDeconv_cff.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
SimTracker/Configuration/python/SimTracker_SetDeconv_cff.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms
27.7
68
0.6787
import FWCore.ParameterSet.Config as cms def customise(process): # Signal in Deconvolution Mode for ps in process.mix.digitizers: if ps.accumulatorType == cms.string('SiStripDigitizer'): ps.APVpeakmode = cms.bool(False) return(process)
212
0
23
7f8ad49257d5e3a43944c93e2c441aeb1baf63ef
769
py
Python
6 kyu/Fractions class.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
6 kyu/Fractions class.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
6 kyu/Fractions class.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
from math import gcd #Equality test
30.76
71
0.589077
from math import gcd class Fraction: def __init__(self, numerator, denominator): self.top = numerator self.bottom = denominator #Equality test def __eq__(self, other): first_num = self.top * other.bottom second_num = other.top * self.bottom return first_nu...
589
-6
142
617aa78656477bc4b757fc252bf54f3a6d2791c3
256
py
Python
pg_rest_api/settings/environments/staging.py
PartyGwam/api
f580e29762990eabdb3bb5e317dee22c6c441696
[ "MIT" ]
1
2018-06-24T08:10:12.000Z
2018-06-24T08:10:12.000Z
pg_rest_api/settings/environments/staging.py
PartyGwam/api
f580e29762990eabdb3bb5e317dee22c6c441696
[ "MIT" ]
48
2018-06-24T12:30:15.000Z
2022-01-13T00:48:24.000Z
pg_rest_api/settings/environments/staging.py
PartyGwam/api
f580e29762990eabdb3bb5e317dee22c6c441696
[ "MIT" ]
null
null
null
import django_heroku import dj_database_url HOST = 'https://partygwam-staging.herokuapp.com' DEBUG = True ALLOWED_HOSTS = [ 'herokuapp.com', ] DATABASES = { 'default': dj_database_url.config(ssl_require=True) } django_heroku.settings(locals())
16
55
0.742188
import django_heroku import dj_database_url HOST = 'https://partygwam-staging.herokuapp.com' DEBUG = True ALLOWED_HOSTS = [ 'herokuapp.com', ] DATABASES = { 'default': dj_database_url.config(ssl_require=True) } django_heroku.settings(locals())
0
0
0
141c05ed87b99199b4a8411bd3e3b8b9af4a44b1
1,610
py
Python
SfMLearner.py
HongqiangWei/SfMLearner
55c05225c5944ca3f2fcf9b56c6619ecff16790e
[ "MIT" ]
null
null
null
SfMLearner.py
HongqiangWei/SfMLearner
55c05225c5944ca3f2fcf9b56c6619ecff16790e
[ "MIT" ]
null
null
null
SfMLearner.py
HongqiangWei/SfMLearner
55c05225c5944ca3f2fcf9b56c6619ecff16790e
[ "MIT" ]
1
2020-04-03T12:54:50.000Z
2020-04-03T12:54:50.000Z
from __future__ import division import tensorflow as tf from nets import *
35
74
0.626708
from __future__ import division import tensorflow as tf from nets import * class SfMLearner(object): def __init__(self, batch_size=4, img_height=128, img_width=416): self.batch_size = batch_size self.img_height = img_height self.img_width...
1,348
4
184
3c3ad2ae3e0de717eb98a40a4509c2f93a19ce24
665
py
Python
scripts/prepare_example_data.py
kaizen36/dash-visualisation
a21c30e20f5d900bc7b6928de8bcb2641cd1f461
[ "MIT" ]
null
null
null
scripts/prepare_example_data.py
kaizen36/dash-visualisation
a21c30e20f5d900bc7b6928de8bcb2641cd1f461
[ "MIT" ]
5
2019-04-19T15:12:18.000Z
2019-10-13T19:43:59.000Z
scripts/prepare_example_data.py
kaizen36/dash-visualisation
a21c30e20f5d900bc7b6928de8bcb2641cd1f461
[ "MIT" ]
null
null
null
import networkx as nx import json if __name__=='__main__': main()
26.6
64
0.586466
import networkx as nx import json def main(): g = nx.DiGraph() g.add_node('A', node_type='entity') for i in list('abcdefg'): g.add_node(i, node_type='field', type='string') g.add_edge('A', i) g.add_node('B', node_type='entity') for i in list('hijklmnop'): g.add_node(i, node_...
571
0
23
46b2765bdabf47cf27e833e8306c4c1a53c268a7
3,000
py
Python
predictPlot.py
MohithGowdaHR/Watt-Movies-Backend
28750263a306802d3e54968e6f56ad3031df138c
[ "MIT" ]
null
null
null
predictPlot.py
MohithGowdaHR/Watt-Movies-Backend
28750263a306802d3e54968e6f56ad3031df138c
[ "MIT" ]
null
null
null
predictPlot.py
MohithGowdaHR/Watt-Movies-Backend
28750263a306802d3e54968e6f56ad3031df138c
[ "MIT" ]
null
null
null
#!pip install pymysql import pandas as pd from sqlalchemy import create_engine from sqlalchemy import insert import pymysql import mysql.connector as msql from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import linear_kernel #predictPlot()
30.30303
119
0.741
#!pip install pymysql import pandas as pd from sqlalchemy import create_engine from sqlalchemy import insert import pymysql import mysql.connector as msql from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import linear_kernel def predictPlot(): #Start MySQL connection db_...
2,693
0
23
fd07a9317133512ee513aab8bf04f11ba4bfea09
4,762
py
Python
evennia/scripts/migrations/0001_initial.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
1,544
2015-01-01T22:16:31.000Z
2022-03-31T19:17:45.000Z
evennia/scripts/migrations/0001_initial.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
1,686
2015-01-02T18:26:31.000Z
2022-03-31T20:12:03.000Z
evennia/scripts/migrations/0001_initial.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
867
2015-01-02T21:01:54.000Z
2022-03-29T00:28:27.000Z
# -*- coding: utf-8 -*- from django.db import models, migrations from django.conf import settings
40.016807
255
0.431961
# -*- coding: utf-8 -*- from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ("objects", "0001_initial"), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("typeclasses", "0001_initial"), ] o...
0
4,638
23
b1251486d7e14ca20c3208f9e9783f598ada2f51
546
py
Python
ML/Webscrap/image_extractor.py
praveenpmin/Python
513fcde7430b03a187e2c7e58302b88645388eed
[ "MIT" ]
null
null
null
ML/Webscrap/image_extractor.py
praveenpmin/Python
513fcde7430b03a187e2c7e58302b88645388eed
[ "MIT" ]
null
null
null
ML/Webscrap/image_extractor.py
praveenpmin/Python
513fcde7430b03a187e2c7e58302b88645388eed
[ "MIT" ]
null
null
null
from urllib.request import urlopen, urljoin import re if __name__ == '__main__': target_url = 'http://www.apress.com/' # target_url = 'http://www.sainsbury.co.uk' apress = download_page(target_url) image_locations = extract_image_locations(apress) for src in image_locations: print(urljoin(target_url...
36.4
58
0.697802
from urllib.request import urlopen, urljoin import re def download_page(url): return urlopen(url).read().decode('utf-8') def extract_image_locations(page): img_regex = re.compile('<img[^>]+src=["\'](.*?)["\']', re.IGNORECASE) return img_regex.findall(page) if __name__ == '__main__': target_url = 'ht...
175
0
44
e7a9227513c28e99f3d1c7efc08c11a2fc75e57b
2,300
py
Python
Warehouse/Order.py
upandacross/warehouse_optimization
c1bae87bcb3371a7073d75e147322b4aee459f6a
[ "MIT" ]
4
2020-07-13T10:55:17.000Z
2021-11-10T13:00:08.000Z
Warehouse/Order.py
upandacross/warehouse_optimization
c1bae87bcb3371a7073d75e147322b4aee459f6a
[ "MIT" ]
1
2019-06-06T18:22:38.000Z
2019-06-06T18:22:38.000Z
Warehouse/Order.py
upandacross/warehouse_optimization
c1bae87bcb3371a7073d75e147322b4aee459f6a
[ "MIT" ]
null
null
null
from Warehouse.Inventory import Inventory from builtins import property class Order: """ Order contains order_lines which contain order_items Assumptions: It is permissable to add items to order that are not in Inventory """ class OrderItem: ''' OrderItem is class for contents of order line item ''' ...
21.904762
100
0.66087
from Warehouse.Inventory import Inventory from builtins import property class Order: """ Order contains order_lines which contain order_items Assumptions: It is permissable to add items to order that are not in Inventory """ class OrderItem: ''' OrderItem is class for contents of order line item ''' def...
1,289
0
313
aaa39e0c7b644c4b14e2104bb0fab7c13984775b
228
py
Python
src/senertec/energyUnit.py
Kleinrotti/py-senertec
b5cbe4e50c72c14e507bb92477088205fb2c786f
[ "MIT" ]
null
null
null
src/senertec/energyUnit.py
Kleinrotti/py-senertec
b5cbe4e50c72c14e507bb92477088205fb2c786f
[ "MIT" ]
null
null
null
src/senertec/energyUnit.py
Kleinrotti/py-senertec
b5cbe4e50c72c14e507bb92477088205fb2c786f
[ "MIT" ]
null
null
null
class energyUnit(object): """Represents an energy unit."""
25.333333
43
0.561404
class energyUnit(object): """Represents an energy unit.""" def __init__(self): self.serial = str() """Serial number of energy unit.""" self.model = str() """Model name of energy unit."""
138
0
27
5b09b7d34cd559bde3052a0943e6f6420d078c32
5,600
py
Python
appengine/findit/waterfall/test/analyze_build_failure_pipeline_test.py
mcgreevy/chromium-infra
09064105713603f7bf75c772e8354800a1bfa256
[ "BSD-3-Clause" ]
1
2018-01-02T05:47:07.000Z
2018-01-02T05:47:07.000Z
appengine/findit/waterfall/test/analyze_build_failure_pipeline_test.py
mcgreevy/chromium-infra
09064105713603f7bf75c772e8354800a1bfa256
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/waterfall/test/analyze_build_failure_pipeline_test.py
mcgreevy/chromium-infra
09064105713603f7bf75c772e8354800a1bfa256
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os from common import constants from common.waterfall import failure_type from gae_libs.pipeline_wrapper import pipeline_handlers from libs import an...
41.176471
80
0.619464
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os from common import constants from common.waterfall import failure_type from gae_libs.pipeline_wrapper import pipeline_handlers from libs import an...
4,754
211
23
2441d6a6ba39095dfed8b709f6f66727ab8980b9
3,068
py
Python
ooobuild/lo/accessibility/x_accessible_text_attributes.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/accessibility/x_accessible_text_attributes.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/accessibility/x_accessible_text_attributes.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
43.828571
295
0.72751
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
0
0
0
b4ebe3fa10452b3bc95649ccfa277aba343be7f5
1,441
py
Python
generate_embeddings.py
sharanramjee/wegl-gbt
edb034764c2bb383e14b7ebe02ca29a2c950c9dc
[ "MIT" ]
null
null
null
generate_embeddings.py
sharanramjee/wegl-gbt
edb034764c2bb383e14b7ebe02ca29a2c950c9dc
[ "MIT" ]
null
null
null
generate_embeddings.py
sharanramjee/wegl-gbt
edb034764c2bb383e14b7ebe02ca29a2c950c9dc
[ "MIT" ]
null
null
null
# Import required modules import torch import ogb from ogb.graphproppred import PygGraphPropPredDataset from WEGL.WEGL import WEGL # Set the random seed random_seed = 55 # Load the dataset dataset = PygGraphPropPredDataset(name="ogbg-molhiv") print('# of graphs = {0}\n# of classes = {1}\n# of node features...
34.309524
106
0.711312
# Import required modules import torch import ogb from ogb.graphproppred import PygGraphPropPredDataset from WEGL.WEGL import WEGL # Set the random seed random_seed = 55 # Load the dataset dataset = PygGraphPropPredDataset(name="ogbg-molhiv") print('# of graphs = {0}\n# of classes = {1}\n# of node features...
0
0
0
36996814767de40bd70af2592f8f78cad9d48650
3,928
py
Python
python/pyJvsip/vsipAddendum.py
rrjudd/jvsip
56a965fff595b027139ff151d27d434f2480b9e8
[ "MIT" ]
10
2016-01-16T04:10:13.000Z
2022-03-22T02:17:44.000Z
python/pyJvsip/vsipAddendum.py
rrjudd/jvsip
56a965fff595b027139ff151d27d434f2480b9e8
[ "MIT" ]
1
2015-09-11T04:48:03.000Z
2015-09-11T13:44:29.000Z
python/pyJvsip/vsipAddendum.py
rrjudd/jvsip
56a965fff595b027139ff151d27d434f2480b9e8
[ "MIT" ]
4
2017-06-13T21:48:23.000Z
2020-08-26T15:07:44.000Z
from vsip import * #Spline, Sort, Permute; Interpolate #spline is a class in pyJvsip.py # pyJvsip Functions
48.493827
115
0.660896
from vsip import * #Spline, Sort, Permute; Interpolate #spline is a class in pyJvsip.py # pyJvsip Functions def linear(x0,y0,*args): major={'ROW':VSIP_ROW,'COL':VSIP_COL,0:VSIP_ROW,1:VSIP_COL} f={'vview_fvview_f':vsip_vinterp_linear_f, 'vview_dvview_d':vsip_vinterp_linear_d, 'vview_fmview_f':vsip_minter...
3,749
0
66
6fb26f8d6d231168db967996e99c098476a8c3ba
1,675
py
Python
api/main.py
cyyeh/dog-breed-classifier-web
9995dba24129996370d80ee0400ef38b46c0b428
[ "MIT" ]
2
2021-01-21T08:42:35.000Z
2021-02-09T05:29:20.000Z
api/main.py
cyyeh/dog-breed-classifier-web
9995dba24129996370d80ee0400ef38b46c0b428
[ "MIT" ]
7
2021-03-10T22:02:02.000Z
2022-02-27T06:30:13.000Z
api/main.py
cyyeh/dog-breed-classifier-web
9995dba24129996370d80ee0400ef38b46c0b428
[ "MIT" ]
null
null
null
import re import base64 from io import BytesIO from fastapi import FastAPI, HTTPException from fastapi.middleware.cors import CORSMiddleware from pydantic import BaseModel from dog_breed_classifier import DogBreedPrediction # keep model as global variable so we don't have to reload # it in case of warm invocations m...
27.459016
87
0.675224
import re import base64 from io import BytesIO from fastapi import FastAPI, HTTPException from fastapi.middleware.cors import CORSMiddleware from pydantic import BaseModel from dog_breed_classifier import DogBreedPrediction # keep model as global variable so we don't have to reload # it in case of warm invocations m...
796
22
67
642a1c6ec52e066cca2b56c051fd7621268020c2
2,335
py
Python
plotterData.py
luiseduardomendes/Data-Analyser-for-video-encoding
846774cd6eb2833d594ffec94b55422b1f0971fa
[ "MIT" ]
null
null
null
plotterData.py
luiseduardomendes/Data-Analyser-for-video-encoding
846774cd6eb2833d594ffec94b55422b1f0971fa
[ "MIT" ]
null
null
null
plotterData.py
luiseduardomendes/Data-Analyser-for-video-encoding
846774cd6eb2833d594ffec94b55422b1f0971fa
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt from os import path, system from datetime import datetime
35.378788
145
0.640257
from matplotlib import pyplot as plt from os import path, system from datetime import datetime class Plotter: __parametersDict__ = { 'percentageTime' : 'Execution Time', 'function' : 'Function', 'cumulativeTime' : 'Cumulative Time', 'selfSeconds' : 'Self Seconds', ...
1,538
673
24
7fd8f7f038ab5aaf8f5896caea343bd3dc5d61bc
626
py
Python
tracker/app/models/account.py
JelteF/bottor
3a6a1ba7fe90c0989c585e9cd01fcc0393b726ae
[ "MIT" ]
4
2015-05-24T17:30:30.000Z
2017-11-27T20:25:53.000Z
tracker/app/models/account.py
JelteF/bottor
3a6a1ba7fe90c0989c585e9cd01fcc0393b726ae
[ "MIT" ]
null
null
null
tracker/app/models/account.py
JelteF/bottor
3a6a1ba7fe90c0989c585e9cd01fcc0393b726ae
[ "MIT" ]
null
null
null
from app import db from app.utils.base_model import BaseEntity from werkzeug.security import generate_password_hash, check_password_hash
27.217391
73
0.702875
from app import db from app.utils.base_model import BaseEntity from werkzeug.security import generate_password_hash, check_password_hash class Account(db.Model, BaseEntity): __tablename__ = 'account' prints = ('id', 'name', 'pw_hash') name = db.Column(db.String(256)) pw_hash = db.Column(db.String(66...
222
243
23
e51e83c10a85905a3a0c4d27964d50f2ebfb72bc
2,968
py
Python
figures/Fig9_bif3.py
gstonge/influential-groups
d828adeada32ad354f1af864407c66066db20144
[ "MIT" ]
null
null
null
figures/Fig9_bif3.py
gstonge/influential-groups
d828adeada32ad354f1af864407c66066db20144
[ "MIT" ]
null
null
null
figures/Fig9_bif3.py
gstonge/influential-groups
d828adeada32ad354f1af864407c66066db20144
[ "MIT" ]
null
null
null
import pickle from gcm import * import matplotlib.pyplot as plt #infection nu = 1.5 beta = lambda n,i,trate,nu: trate*i**nu #structure mmax = 10 gm = np.zeros(mmax+1) gm[mmax] += 1 nmax = 50 gamma_n = 3 pn = np.zeros(nmax+1) pn[2:] = (np.arange(2,nmax+1)*1.)**(-gamma_n) pn /= np.sum(pn) state_meta = get_state_meta(m...
34.114943
83
0.680593
import pickle from gcm import * import matplotlib.pyplot as plt #infection nu = 1.5 beta = lambda n,i,trate,nu: trate*i**nu #structure mmax = 10 gm = np.zeros(mmax+1) gm[mmax] += 1 nmax = 50 gamma_n = 3 pn = np.zeros(nmax+1) pn[2:] = (np.arange(2,nmax+1)*1.)**(-gamma_n) pn /= np.sum(pn) state_meta = get_state_meta(m...
247
0
22
6cc4638370e5e7f90ecceea26b9baf10ba08bd26
989
py
Python
rig/mik/viba/customShapeRoll/shapeFromGeo.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
rig/mik/viba/customShapeRoll/shapeFromGeo.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
rig/mik/viba/customShapeRoll/shapeFromGeo.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 """:mod:`shapeFromGeo` =================================== .. module:: moduleName :platform: Unix :synopsis: module idea :author: viba :date: 2016.10 """ import maya.cmds as mc
23.547619
79
0.644085
#!/usr/bin/env python # coding:utf-8 """:mod:`shapeFromGeo` =================================== .. module:: moduleName :platform: Unix :synopsis: module idea :author: viba :date: 2016.10 """ import maya.cmds as mc def build_shape(edge_sel, custom_curve_name='custom1'): out_curve = mc.polyToCurve(edg...
666
0
92
4a7eca240ce43fe173dbf7f422e206082097865e
5,662
py
Python
openprocurement/auctions/geb/tests/blanks/active_auction.py
oleksiyVeretiuk/openprocurement.auctions.geb
2965b52bf8826b9a8f8870c9a4d2052f945f5799
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/geb/tests/blanks/active_auction.py
oleksiyVeretiuk/openprocurement.auctions.geb
2965b52bf8826b9a8f8870c9a4d2052f945f5799
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/geb/tests/blanks/active_auction.py
oleksiyVeretiuk/openprocurement.auctions.geb
2965b52bf8826b9a8f8870c9a4d2052f945f5799
[ "Apache-2.0" ]
null
null
null
from openprocurement.auctions.geb.tests.fixtures.active_auction import ( ACTIVE_AUCTION_DEFAULT_FIXTURE, ACTIVE_AUCTION_DEFAULT_FIXTURE_WITH_URLS )
38
120
0.622218
from openprocurement.auctions.geb.tests.fixtures.active_auction import ( ACTIVE_AUCTION_DEFAULT_FIXTURE, ACTIVE_AUCTION_DEFAULT_FIXTURE_WITH_URLS ) def get_auction_auction(test_case): expected_http_status = '200 OK' context = test_case.procedure.snapshot(fixture=ACTIVE_AUCTION_DEFAULT_FIXTURE) au...
5,361
0
138
b4939c1f525fc80c5882683476ff74fad7fe3af1
5,855
py
Python
tejruba/experiment/views.py
coretabs/tecurba
d7691a561f9c0d9ad813cb966463ae87d85eb9a1
[ "Apache-2.0" ]
2
2018-08-09T19:57:47.000Z
2019-03-30T22:02:05.000Z
tejruba/experiment/views.py
coretabs/tecurba
d7691a561f9c0d9ad813cb966463ae87d85eb9a1
[ "Apache-2.0" ]
50
2018-07-26T08:03:47.000Z
2022-03-11T23:26:02.000Z
tejruba/experiment/views.py
coretabs/tejruba
d7691a561f9c0d9ad813cb966463ae87d85eb9a1
[ "Apache-2.0" ]
null
null
null
from .models import Experiment, Profile from .serializers import ExperimentSerializer, UserSerializer, LoginSerializer from django.contrib.auth.models import User from django.http import Http404 from rest_framework.views import APIView,Response,status from django.contrib.auth import ( login as django_login, log...
34.64497
78
0.660632
from .models import Experiment, Profile from .serializers import ExperimentSerializer, UserSerializer, LoginSerializer from django.contrib.auth.models import User from django.http import Http404 from rest_framework.views import APIView,Response,status from django.contrib.auth import ( login as django_login, log...
4,122
200
488
bc4b36068d0b64f89bc9eaa9427de72554b7dd03
486
py
Python
module/function/sanitizeStr.py
Saverio976/Chat-App-TUI
274960550613199225cf2b892c37e6f788ae52b7
[ "MIT" ]
3
2021-03-16T09:03:06.000Z
2022-02-27T08:49:30.000Z
module/function/sanitizeStr.py
Saverio976/Chat-App-TUI
274960550613199225cf2b892c37e6f788ae52b7
[ "MIT" ]
null
null
null
module/function/sanitizeStr.py
Saverio976/Chat-App-TUI
274960550613199225cf2b892c37e6f788ae52b7
[ "MIT" ]
null
null
null
"""File with only sanitizeStr function.""" def sanitizeStr(data): """ Escape all char that will trigger an error. Parameters ---------- data: str the str to sanitize Returns ------- str The sanitized data. """ data = " ".join(data.split()) ...
21.130435
48
0.495885
"""File with only sanitizeStr function.""" def sanitizeStr(data): """ Escape all char that will trigger an error. Parameters ---------- data: str the str to sanitize Returns ------- str The sanitized data. """ data = " ".join(data.split()) ...
0
0
0
3fb7ddb51fab38cacda981a36fea75fbbdf17bbe
2,573
py
Python
mapApp/utils/weather.py
amitra/BikeMaps
eb80eed2e3159ad9c4e46427a9f488e1221794fa
[ "MIT" ]
null
null
null
mapApp/utils/weather.py
amitra/BikeMaps
eb80eed2e3159ad9c4e46427a9f488e1221794fa
[ "MIT" ]
null
null
null
mapApp/utils/weather.py
amitra/BikeMaps
eb80eed2e3159ad9c4e46427a9f488e1221794fa
[ "MIT" ]
null
null
null
# Alex Goudine # GEOG 490 - Webscraping and Database Design # Scrapes weather data from forecast.io and returns a dict of the relevant information # Modified by Taylor Denouden # Shortened script and made into a simple function in which geom and date data can be passed # Added more efficient and robust cardinal direct...
46.781818
132
0.672367
# Alex Goudine # GEOG 490 - Webscraping and Database Design # Scrapes weather data from forecast.io and returns a dict of the relevant information # Modified by Taylor Denouden # Shortened script and made into a simple function in which geom and date data can be passed # Added more efficient and robust cardinal direct...
0
0
0
d5264ef37c290a45d34cc799865f7d5330ef57e4
1,018
py
Python
modules/s2/redshift/test/integration/test_RESOLUTION.py
huq-industries/carto-spatial-extension
ddd7448995932535c2e1533309f4b4141c61af4b
[ "BSD-3-Clause" ]
68
2019-10-21T04:05:04.000Z
2021-02-04T08:27:36.000Z
modules/s2/redshift/test/integration/test_RESOLUTION.py
huq-industries/carto-spatial-extension
ddd7448995932535c2e1533309f4b4141c61af4b
[ "BSD-3-Clause" ]
20
2019-11-05T21:45:39.000Z
2021-02-08T16:04:18.000Z
modules/s2/redshift/test/integration/test_RESOLUTION.py
huq-industries/carto-spatial-extension
ddd7448995932535c2e1533309f4b4141c61af4b
[ "BSD-3-Clause" ]
25
2019-10-23T16:30:00.000Z
2021-02-04T15:48:31.000Z
from test_utils import run_query, redshift_connector import pytest
33.933333
77
0.675835
from test_utils import run_query, redshift_connector import pytest def test_resolution_success(): results = run_query( """WITH context AS( SELECT -8070450532247928832 AS res UNION ALL SELECT -7782220156096217088 UNION ALL SELECT -7854277750134145024 UNION ALL ...
903
0
46
2b8603136f25fd4a00229bc5e50729f277f7c0f6
373
py
Python
component/model/viz_model.py
sepal-contrib/gfc_wrapper_python
697d6ee86ad08007f72e8d1414cb808088c2b02a
[ "MIT" ]
1
2020-12-15T17:04:39.000Z
2020-12-15T17:04:39.000Z
component/model/viz_model.py
sepal-contrib/gfc_wrapper_python
697d6ee86ad08007f72e8d1414cb808088c2b02a
[ "MIT" ]
13
2020-08-14T06:30:58.000Z
2020-11-02T11:03:16.000Z
component/model/viz_model.py
sepal-contrib/gfc_wrapper_python
697d6ee86ad08007f72e8d1414cb808088c2b02a
[ "MIT" ]
2
2020-12-15T17:04:44.000Z
2021-11-14T01:09:53.000Z
from sepal_ui import model from traitlets import Any
21.941176
50
0.675603
from sepal_ui import model from traitlets import Any class VizModel(model.Model): # set up your inputs threshold = Any(30).tag(sync=True) years = Any([2001, 2020]).tag(sync=True) # set up output previous_asset_name = Any(None).tag(sync=True) visualization = Any(False).tag(sync=True) # s...
0
296
23
6b2af32e0ef34779158cb3dc230a9db13ba224d1
2,075
py
Python
libqtile/widget/backlight.py
CharString/qtile
7dc1448fa866d4c3a2a5c2738c5cf3fcd10b0631
[ "MIT" ]
1
2015-03-02T21:18:17.000Z
2015-03-02T21:18:17.000Z
libqtile/widget/backlight.py
WnP/qtile
7b3b21d602320df3a43155814e112c850f660fa9
[ "MIT" ]
null
null
null
libqtile/widget/backlight.py
WnP/qtile
7b3b21d602320df3a43155814e112c850f660fa9
[ "MIT" ]
null
null
null
import cairo import os from libqtile import bar import base BACKLIGHT_DIR = '/sys/class/backlight' FORMAT = '{percent: 2.0%}' class Backlight(base._TextBox): """ A simple widget to show the current brightness of a monitor. """ filenames = {} defaults = [ ('backlight_name', 'acpi_vi...
27.666667
77
0.558072
import cairo import os from libqtile import bar import base BACKLIGHT_DIR = '/sys/class/backlight' FORMAT = '{percent: 2.0%}' class Backlight(base._TextBox): """ A simple widget to show the current brightness of a monitor. """ filenames = {} defaults = [ ('backlight_name', 'acpi_vi...
1,119
0
135
ff281611c02e6c0ec557764d511a8abdeaf54478
7,468
py
Python
mop/modules/corrective.py
HolisticCoders/mop
dc464021c7e69975fa9fcc06595cc91113768e5e
[ "MIT" ]
8
2019-09-21T07:17:54.000Z
2022-02-09T03:33:24.000Z
mop/modules/corrective.py
ProjectBorealis/master-of-puppets
dc464021c7e69975fa9fcc06595cc91113768e5e
[ "MIT" ]
102
2019-01-10T21:00:28.000Z
2019-03-28T11:32:45.000Z
mop/modules/corrective.py
HolisticCoders/mop
dc464021c7e69975fa9fcc06595cc91113768e5e
[ "MIT" ]
3
2020-01-12T01:37:34.000Z
2021-10-08T11:34:08.000Z
import maya.cmds as cmds import mop.vendor.node_calculator.core as noca from mop.modules.leaf import Leaf from mop.core.fields import IntField, ObjectField import mop.metadata import mop.dag import mop.attributes exported_rig_modules = [Corrective]
40.150538
122
0.631896
import maya.cmds as cmds import mop.vendor.node_calculator.core as noca from mop.modules.leaf import Leaf from mop.core.fields import IntField, ObjectField import mop.metadata import mop.dag import mop.attributes class Corrective(Leaf): vector_base = ObjectField( displayable=True, editable=True,...
6,276
916
23
6886916599274f33d42c4645b36cc55d19639cfe
7,563
py
Python
measures.py
lhillber/qops
2bdd9548222c720e877b1a1e4b6200d993abed5e
[ "MIT" ]
3
2019-02-02T20:18:54.000Z
2019-10-06T14:44:47.000Z
measures.py
lhillber/qops
2bdd9548222c720e877b1a1e4b6200d993abed5e
[ "MIT" ]
null
null
null
measures.py
lhillber/qops
2bdd9548222c720e877b1a1e4b6200d993abed5e
[ "MIT" ]
null
null
null
import numpy as np from numpy import log2, sqrt from numpy.linalg import matrix_power import scipy as sp, scipy.linalg, matrix as mx from math import pi
26.536842
84
0.60439
import numpy as np from numpy import log2, sqrt from numpy.linalg import matrix_power import scipy as sp, scipy.linalg, matrix as mx from math import pi def spectrum(rho): spec = sp.linalg.eigvalsh(rho) return spec def vn_entropy(rho, tol=1e-14): spec = spectrum(rho) s = -np.sum(((el * log2(el) if e...
6,642
0
736
c42948f96ab9ef4461c993448979a8b222d732d6
2,727
py
Python
tests/unit-tests/test_sphinx_image_candidate.py
bob-schumaker/confluencebuilder
4e767395e4abbedb1955c7b1b1449244886ecb24
[ "BSD-2-Clause" ]
158
2019-03-18T13:42:40.000Z
2022-03-25T09:46:59.000Z
tests/unit-tests/test_sphinx_image_candidate.py
bob-schumaker/confluencebuilder
4e767395e4abbedb1955c7b1b1449244886ecb24
[ "BSD-2-Clause" ]
192
2019-03-15T14:12:25.000Z
2022-03-27T18:35:48.000Z
tests/unit-tests/test_sphinx_image_candidate.py
bob-schumaker/confluencebuilder
4e767395e4abbedb1955c7b1b1449244886ecb24
[ "BSD-2-Clause" ]
54
2019-03-22T14:14:31.000Z
2022-03-08T06:54:28.000Z
# -*- coding: utf-8 -*- """ :copyright: Copyright 2017-2020 Sphinx Confluence Builder Contributors (AUTHORS) :license: BSD-2-Clause (LICENSE) """ from sphinxcontrib.confluencebuilder.std.confluence import SUPPORTED_IMAGE_TYPES from tests.lib import build_sphinx from tests.lib import parse from tests.lib import prepare...
37.875
80
0.63183
# -*- coding: utf-8 -*- """ :copyright: Copyright 2017-2020 Sphinx Confluence Builder Contributors (AUTHORS) :license: BSD-2-Clause (LICENSE) """ from sphinxcontrib.confluencebuilder.std.confluence import SUPPORTED_IMAGE_TYPES from tests.lib import build_sphinx from tests.lib import parse from tests.lib import prepare...
2,166
109
23
81790a92aa8ecb0d549c1e3803948c236cd6ca22
630
py
Python
var/spack/repos/builtin/packages/sailfish/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2021-09-29T02:14:40.000Z
2022-01-27T20:50:36.000Z
var/spack/repos/builtin/packages/sailfish/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-01-08T08:41:11.000Z
2022-03-14T19:28:07.000Z
var/spack/repos/builtin/packages/sailfish/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Sailfish(CMakePackage): """Sailfish is a tool for transcript quantification from RNA-seq d...
33.157895
96
0.738095
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Sailfish(CMakePackage): """Sailfish is a tool for transcript quantification from RNA-seq d...
0
0
0
3f929f5eaa9eec4573d4be3a62fe6ffb56d0c980
3,420
py
Python
brutekey.py
cyberheartmi9/brute-force-secret-key
92d85a1b999445cc2f3642e6fbf85b38cee9b7ae
[ "MIT" ]
3
2018-03-08T08:13:25.000Z
2020-05-18T15:24:35.000Z
brutekey.py
An0nYm0u5101/brute-force-secret-key
92d85a1b999445cc2f3642e6fbf85b38cee9b7ae
[ "MIT" ]
null
null
null
brutekey.py
An0nYm0u5101/brute-force-secret-key
92d85a1b999445cc2f3642e6fbf85b38cee9b7ae
[ "MIT" ]
3
2017-10-01T16:55:15.000Z
2020-05-18T15:24:35.000Z
import hmac import hashlib import urllib from optparse import OptionParser parse=OptionParser(""" __ __ ______ / | / | / \ $$ |___...
46.849315
191
0.224561
import hmac import hashlib import urllib from optparse import OptionParser def brutekey(s,m): return hmac.new(s,m,hashlib.sha1).hexdigest() parse=OptionParser(""" __ __ ______ / | ...
52
0
25
a66e62568d7bb0cb110fdae27bdbac3e6e434eb8
3,182
py
Python
bgpvpn_dashboard/dashboards/project/bgpvpn/tables.py
cgoncalves/networking-bgpvpn
3ec876c4ead840874e08d6dc876a36814d5f1f81
[ "Apache-2.0" ]
38
2015-06-23T08:06:16.000Z
2022-01-25T16:03:10.000Z
bgpvpn_dashboard/dashboards/project/bgpvpn/tables.py
cgoncalves/networking-bgpvpn
3ec876c4ead840874e08d6dc876a36814d5f1f81
[ "Apache-2.0" ]
null
null
null
bgpvpn_dashboard/dashboards/project/bgpvpn/tables.py
cgoncalves/networking-bgpvpn
3ec876c4ead840874e08d6dc876a36814d5f1f81
[ "Apache-2.0" ]
17
2015-11-28T00:45:22.000Z
2021-07-22T09:22:30.000Z
# Copyright (c) 2016 Orange. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
34.586957
78
0.685104
# Copyright (c) 2016 Orange. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
822
1,268
236
3a8bbfaac85e0c4688030fad8381e398c1f38a95
677
py
Python
convertName.py
khayam-hafezi/CRNN-keras-persian
3f99838e5b3b0e0ca79899e25b0648940b7fdfac
[ "MIT" ]
null
null
null
convertName.py
khayam-hafezi/CRNN-keras-persian
3f99838e5b3b0e0ca79899e25b0648940b7fdfac
[ "MIT" ]
null
null
null
convertName.py
khayam-hafezi/CRNN-keras-persian
3f99838e5b3b0e0ca79899e25b0648940b7fdfac
[ "MIT" ]
null
null
null
# encoding: utf-8 import glob import os from shutil import copyfile from mapdict import FarsiMapenDict mypath = "./Plate_farsi/" destPath ="./Plate_en/" plate_list = glob.glob(mypath + "*") print(len(plate_list)) for plate_path in plate_list: plate_name = os.path.basename(plate_path) plate_name = plate_name_mo...
30.772727
82
0.728213
# encoding: utf-8 import glob import os from shutil import copyfile from mapdict import FarsiMapenDict def plate_name_modify(plate_name, dict_map): plate_name_modify = plate_name[6:8] + dict_map[plate_name[5]] + plate_name[:5] return plate_name_modify mypath = "./Plate_farsi/" destPath ="./Plate_en/" plate_li...
135
0
23
acbbbddf180036b1fff0294764791ea5c6e24b33
1,517
py
Python
houseplants/houseplants_api/test_resolvers.py
galihmelon/houseplants-server-pyramid
d0f37beea2cf963184c888da143fc995bb2436e2
[ "MIT" ]
null
null
null
houseplants/houseplants_api/test_resolvers.py
galihmelon/houseplants-server-pyramid
d0f37beea2cf963184c888da143fc995bb2436e2
[ "MIT" ]
null
null
null
houseplants/houseplants_api/test_resolvers.py
galihmelon/houseplants-server-pyramid
d0f37beea2cf963184c888da143fc995bb2436e2
[ "MIT" ]
null
null
null
from datetime import date, timedelta import pytest from .resolvers import ( resolve_all_plants, resolve_plants_to_care, resolve_water_plant, ) from .test_factories import PlantFactory, WateringLogFactory pytestmark = pytest.mark.django_db
26.155172
84
0.736322
from datetime import date, timedelta import pytest from .resolvers import ( resolve_all_plants, resolve_plants_to_care, resolve_water_plant, ) from .test_factories import PlantFactory, WateringLogFactory pytestmark = pytest.mark.django_db def test_resolve_all_plants(): plant_1 = PlantFactory() p...
1,144
0
115
fb9cacc0e6dc9e84a5c4a8acb60061c5059e69f4
276
py
Python
app/handlers/errors/retry_after.py
ecoarchie/articles
2519d1b2bcadae6ba5684c5a2035746d5c9037bb
[ "MIT" ]
8
2021-01-03T20:10:56.000Z
2021-12-07T00:42:37.000Z
app/handlers/errors/retry_after.py
s-klimov/meal_bot
f74898c179a8551c8ec8df147aabc659496c610e
[ "MIT" ]
1
2021-07-12T19:31:57.000Z
2021-07-12T19:31:57.000Z
app/handlers/errors/retry_after.py
s-klimov/meal_bot
f74898c179a8551c8ec8df147aabc659496c610e
[ "MIT" ]
9
2020-12-20T06:44:58.000Z
2021-09-25T20:18:59.000Z
from aiogram.utils import exceptions from loguru import logger from app.loader import dp @dp.errors_handler(exception=exceptions.RetryAfter)
25.090909
67
0.789855
from aiogram.utils import exceptions from loguru import logger from app.loader import dp @dp.errors_handler(exception=exceptions.RetryAfter) async def retry_after_error(update, exception): logger.exception(f'RetryAfter: {exception} \nUpdate: {update}') return True
110
0
22
7468e7042adc1bae95db9fe1308c168d0115ac42
2,591
py
Python
src/qiskit_trebugger/model/circuit_comparator.py
kdk/qiskit-timeline-debugger
80f56894af67ff881cda0fb8613e324e34d0015f
[ "Apache-2.0" ]
7
2021-12-23T19:47:40.000Z
2022-03-18T10:41:12.000Z
src/qiskit_trebugger/model/circuit_comparator.py
kdk/qiskit-timeline-debugger
80f56894af67ff881cda0fb8613e324e34d0015f
[ "Apache-2.0" ]
null
null
null
src/qiskit_trebugger/model/circuit_comparator.py
kdk/qiskit-timeline-debugger
80f56894af67ff881cda0fb8613e324e34d0015f
[ "Apache-2.0" ]
3
2021-12-04T10:01:32.000Z
2021-12-25T11:57:10.000Z
from qiskit import QuantumCircuit from qiskit.converters import dag_to_circuit, circuit_to_dag from numpy import zeros, uint16 # make the global DP array LCS_DP = zeros((2000, 2000), dtype=uint16)
31.216867
75
0.501737
from qiskit import QuantumCircuit from qiskit.converters import dag_to_circuit, circuit_to_dag from numpy import zeros, uint16 # make the global DP array LCS_DP = zeros((2000, 2000), dtype=uint16) class CircuitComparator: @staticmethod def get_moments(dag): moments = [l["graph"] for l in l...
2,215
146
24
84047555bb1228bf70738adc2a9340313bf8eb09
1,534
py
Python
next_action/todotxt/__init__.py
fniessink/next-action
292832886371abf46569b3fbcec7b2da9550ca92
[ "Apache-2.0" ]
10
2018-06-13T02:06:05.000Z
2021-09-13T15:50:27.000Z
next_action/todotxt/__init__.py
fniessink/next-action
292832886371abf46569b3fbcec7b2da9550ca92
[ "Apache-2.0" ]
460
2018-05-06T21:15:03.000Z
2022-03-29T10:48:20.000Z
next_action/todotxt/__init__.py
fniessink/next-action
292832886371abf46569b3fbcec7b2da9550ca92
[ "Apache-2.0" ]
1
2018-05-06T16:10:43.000Z
2018-05-06T16:10:43.000Z
"""Package for dealing with the todo.txt format.""" import fileinput import os from typing import cast, List, Sequence from .task import Task from .tasks import Tasks def uncompleted_task_on(line: str) -> bool: """Return whether there's an uncompleted task on the line.""" return bool(line.strip() and not li...
38.35
114
0.673403
"""Package for dealing with the todo.txt format.""" import fileinput import os from typing import cast, List, Sequence from .task import Task from .tasks import Tasks def uncompleted_task_on(line: str) -> bool: """Return whether there's an uncompleted task on the line.""" return bool(line.strip() and not li...
0
0
0
5c27402df2b586e5881be45350ea7e8f868b6f4e
12,264
py
Python
srl/rl/alphazero.py
pocokhc/simple_rl
765f12f392f87e6897027905d74f1bced6a2b7bf
[ "MIT" ]
1
2022-03-01T09:16:57.000Z
2022-03-01T09:16:57.000Z
srl/rl/alphazero.py
pocokhc/simple_rl
765f12f392f87e6897027905d74f1bced6a2b7bf
[ "MIT" ]
null
null
null
srl/rl/alphazero.py
pocokhc/simple_rl
765f12f392f87e6897027905d74f1bced6a2b7bf
[ "MIT" ]
null
null
null
import pickle import random from dataclasses import dataclass from typing import Any, Tuple, cast import numpy as np import tensorflow as tf import tensorflow.keras as keras from srl.base.define import RLObservationType from srl.base.env.base import EnvRun from srl.base.rl.algorithms.discrete_action import DiscreteAct...
32.617021
114
0.55773
import pickle import random from dataclasses import dataclass from typing import Any, Tuple, cast import numpy as np import tensorflow as tf import tensorflow.keras as keras from srl.base.define import RLObservationType from srl.base.env.base import EnvRun from srl.base.rl.algorithms.discrete_action import DiscreteAct...
9,574
638
695
d44c126981ed09b6a488faaa05f90285464f2dd7
6,183
py
Python
lokahi_dropbox/search/views.py
y4ahmed/Crowdfunding-Web-Application
52beab945ee88f8fd773f942577137c770a601c1
[ "MIT" ]
4
2017-09-28T04:26:33.000Z
2022-01-04T22:51:17.000Z
lokahi_dropbox/search/views.py
y4ahmed/Crowdfunding-Web-Application
52beab945ee88f8fd773f942577137c770a601c1
[ "MIT" ]
null
null
null
lokahi_dropbox/search/views.py
y4ahmed/Crowdfunding-Web-Application
52beab945ee88f8fd773f942577137c770a601c1
[ "MIT" ]
1
2021-01-17T23:11:21.000Z
2021-01-17T23:11:21.000Z
from django.views.decorators.csrf import csrf_protect from django.shortcuts import render from search.forms import BasicSearchForm, AdvancedSearchForm from frontend.models import BaseUser from django.http import HttpResponseRedirect from django.core.exceptions import ValidationError # from django.contrib.auth.models im...
36.370588
100
0.513828
from django.views.decorators.csrf import csrf_protect from django.shortcuts import render from search.forms import BasicSearchForm, AdvancedSearchForm from frontend.models import BaseUser from django.http import HttpResponseRedirect from django.core.exceptions import ValidationError # from django.contrib.auth.models im...
5,701
0
90
a8a65086cbff897d9f41b6c7c19508c31e73a0ec
17,006
py
Python
icebath/core/bergxr.py
JessicaS11/icebath
4073254fc58763109c346086209ce458306a0d00
[ "BSD-3-Clause" ]
2
2021-01-28T01:30:56.000Z
2021-08-01T23:24:22.000Z
icebath/core/bergxr.py
JessicaS11/icebath
4073254fc58763109c346086209ce458306a0d00
[ "BSD-3-Clause" ]
null
null
null
icebath/core/bergxr.py
JessicaS11/icebath
4073254fc58763109c346086209ce458306a0d00
[ "BSD-3-Clause" ]
1
2021-03-10T17:07:06.000Z
2021-03-10T17:07:06.000Z
import geopandas as gpd import pandas as pd import numpy as np # import scipy.io as spio # import scipy.stats as stats # import ogr # import os # import fnmatch import pyproj import rasterio.features from rasterio.vrt import WarpedVRT import rioxarray from shapely.geometry import box from shapely.geometry import Polygo...
42.515
151
0.585617
import geopandas as gpd import pandas as pd import numpy as np # import scipy.io as spio # import scipy.stats as stats # import ogr # import os # import fnmatch import pyproj import rasterio.features from rasterio.vrt import WarpedVRT import rioxarray from shapely.geometry import box from shapely.geometry import Polygo...
247
0
58
d8faa4b5de60aa33d8e449a7270770982babe6af
2,887
py
Python
miniImagenet/ExpandConvDec.py
OpenBanboo/AgileNet
d75baa20b9f762cb56b249dca272150de9ae8def
[ "BSD-3-Clause" ]
null
null
null
miniImagenet/ExpandConvDec.py
OpenBanboo/AgileNet
d75baa20b9f762cb56b249dca272150de9ae8def
[ "BSD-3-Clause" ]
null
null
null
miniImagenet/ExpandConvDec.py
OpenBanboo/AgileNet
d75baa20b9f762cb56b249dca272150de9ae8def
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import argparse import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Function import torch.optim as optim from torchvision import datasets, transforms from torch.autograd import Variable import create_dic_fuc from FCDecomp import FCDecomp im...
48.116667
167
0.608244
from __future__ import print_function import argparse import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Function import torch.optim as optim from torchvision import datasets, transforms from torch.autograd import Variable import create_dic_fuc from FCDecomp import FCDecomp im...
2,471
10
76
c58f7049d60c2a811caef82678fc6ad791fbb618
161
py
Python
app/schemas/info_care_plan.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
1
2021-10-17T13:28:51.000Z
2021-10-17T13:28:51.000Z
app/schemas/info_care_plan.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
app/schemas/info_care_plan.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
from pydantic import BaseModel
13.416667
30
0.68323
from pydantic import BaseModel class Info(BaseModel): class Config: orm_mode = True class InfoCarePlan(Info): number: int care_plan: str
0
82
46
7f734efaa9a9b56a3d776eae094b99c010b9d15d
113
py
Python
thingconnector/settings_tmpl.py
MaximilianV/thingberry
3d2034574752a04a639fefc08c2db113e2406d72
[ "MIT" ]
1
2018-05-29T06:41:09.000Z
2018-05-29T06:41:09.000Z
thingconnector/settings_tmpl.py
MaximilianV/thingberry
3d2034574752a04a639fefc08c2db113e2406d72
[ "MIT" ]
null
null
null
thingconnector/settings_tmpl.py
MaximilianV/thingberry
3d2034574752a04a639fefc08c2db113e2406d72
[ "MIT" ]
1
2018-05-19T09:38:02.000Z
2018-05-19T09:38:02.000Z
# Basic Auth User username = "" password = "" basic_auth = "Basic " # Application api_token = "" namespace = ""
12.555556
21
0.646018
# Basic Auth User username = "" password = "" basic_auth = "Basic " # Application api_token = "" namespace = ""
0
0
0
30dc1e482d31016e858ff3cb6d935b6a74a5e554
5,258
py
Python
data.py
dyf/ephys
354d4c24e45573cd881e663354dfdeccfd82afed
[ "MIT" ]
null
null
null
data.py
dyf/ephys
354d4c24e45573cd881e663354dfdeccfd82afed
[ "MIT" ]
null
null
null
data.py
dyf/ephys
354d4c24e45573cd881e663354dfdeccfd82afed
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import h5py import scipy.signal np.random.seed(1) if __name__=="__main__": main()
32.257669
122
0.568277
import pandas as pd import numpy as np import h5py import scipy.signal np.random.seed(1) def read_sweep(data, sweep_num): sweep_data = data.get_sweep(sweep_num) index_range = sweep_data["index_range"] i = sweep_data["stimulus"][index_range[0]:index_range[1]+1] # in A v = sweep_data["response"][index...
4,854
-5
280
f7624d0fc0611603817897998b15d08bf110b1ec
3,015
py
Python
MLLib/NeuralNet/net.py
Tim15/MLib
2222dc67ec0cbaf07942371120be1690359e0ab3
[ "MIT" ]
null
null
null
MLLib/NeuralNet/net.py
Tim15/MLib
2222dc67ec0cbaf07942371120be1690359e0ab3
[ "MIT" ]
null
null
null
MLLib/NeuralNet/net.py
Tim15/MLib
2222dc67ec0cbaf07942371120be1690359e0ab3
[ "MIT" ]
null
null
null
# import curses # import datetime # # stdscr = curses.initscr() # curses.noecho() # stdscr.nodelay(1) # set getch() non-blocking # # stdscr.addstr(0,0,"Press \"p\" to show count, \"q\" to exit...") # line = 1 # try: # while 1: # c = stdscr.getch() # if c == ord('p'): # stdsc...
41.30137
384
0.562852
# import curses # import datetime # # stdscr = curses.initscr() # curses.noecho() # stdscr.nodelay(1) # set getch() non-blocking # # stdscr.addstr(0,0,"Press \"p\" to show count, \"q\" to exit...") # line = 1 # try: # while 1: # c = stdscr.getch() # if c == ord('p'): # stdsc...
76
0
23
58360cae05df93c6dd4d47189aa9ccc85b85b119
1,720
py
Python
providers/provider.py
wichmannpas/webapp-version-inferer
a07c40ee05014b46a425edfa6a9a3c7e3176a298
[ "Apache-2.0" ]
5
2018-02-21T14:50:57.000Z
2018-03-10T02:46:54.000Z
providers/provider.py
wichmannpas/webapp-version-inferer
a07c40ee05014b46a425edfa6a9a3c7e3176a298
[ "Apache-2.0" ]
7
2018-10-09T06:07:09.000Z
2021-04-13T13:49:05.000Z
providers/provider.py
wichmannpas/webapp-version-inferer
a07c40ee05014b46a425edfa6a9a3c7e3176a298
[ "Apache-2.0" ]
1
2018-12-14T19:12:33.000Z
2018-12-14T19:12:33.000Z
from abc import ABCMeta, abstractmethod from datetime import datetime from typing import Callable, Set, Union from backends.software_package import SoftwarePackage from backends.software_version import SoftwareVersion class Provider(metaclass=ABCMeta): """ The abstract base class for any provider. A pro...
36.595745
78
0.705814
from abc import ABCMeta, abstractmethod from datetime import datetime from typing import Callable, Set, Union from backends.software_package import SoftwarePackage from backends.software_version import SoftwareVersion class Provider(metaclass=ABCMeta): """ The abstract base class for any provider. A pro...
298
0
27
14365edda1d57d32cb18fd672a65dcf7c274b551
290
py
Python
notify/forms.py
MakingL/power_outage_notify
a1d18e5a2ca6fab32ef7cac241dac135aef06709
[ "MIT" ]
6
2019-10-24T09:22:27.000Z
2020-12-11T02:12:35.000Z
notify/forms.py
MakingL/power_outage_notify
a1d18e5a2ca6fab32ef7cac241dac135aef06709
[ "MIT" ]
null
null
null
notify/forms.py
MakingL/power_outage_notify
a1d18e5a2ca6fab32ef7cac241dac135aef06709
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/2/16 17:00 # @Author : MLee # @File : forms.py from django.forms import ModelForm from .models import SubscriberInfoModel
20.714286
39
0.648276
# -*- coding: utf-8 -*- # @Time : 2020/2/16 17:00 # @Author : MLee # @File : forms.py from django.forms import ModelForm from .models import SubscriberInfoModel class SubscriberModelForm(ModelForm): class Meta: model = SubscriberInfoModel fields = ["email", ]
0
97
23
f1d03e38dfbe4b51ea2ff8497748e3dbd655aeb6
12,763
py
Python
python-impl/curve_ops.py
kwantam/bls_sigs_hash_ref
0bb331e90e1e434ac3d8bfdf2bd3f32d8a74c434
[ "Apache-2.0" ]
2
2019-10-24T17:42:26.000Z
2020-05-30T19:46:37.000Z
python-impl/curve_ops.py
kwantam/bls_sigs_ref-archive
0bb331e90e1e434ac3d8bfdf2bd3f32d8a74c434
[ "Apache-2.0" ]
null
null
null
python-impl/curve_ops.py
kwantam/bls_sigs_ref-archive
0bb331e90e1e434ac3d8bfdf2bd3f32d8a74c434
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # (C) 2019 Riad S. Wahby <rsw@cs.stanford.edu> # # pure Python implementation of curve ops for Ell2 on BLS12-381 import sys from consts import p, q from fields import Fq, Fq2 if sys.version_info[0] < 3: sys.exit("This script requires Python3 or PyPy3") ### ## generators for BLS signatures ##...
33.410995
116
0.584189
#!/usr/bin/python # # (C) 2019 Riad S. Wahby <rsw@cs.stanford.edu> # # pure Python implementation of curve ops for Ell2 on BLS12-381 import sys from consts import p, q from fields import Fq, Fq2 if sys.version_info[0] < 3: sys.exit("This script requires Python3 or PyPy3") ### ## generators for BLS signatures ##...
7,848
0
489
0cec7381f7a1155dfc55e1bdd6dd7a431871aa5e
1,745
py
Python
src/rogers/generated/__init__.py
cylance/rogers
a2300ed518fa01e0f2fcb77f1c10f7124ea7f49a
[ "Apache-2.0" ]
14
2018-03-22T14:55:30.000Z
2021-01-08T07:23:14.000Z
src/rogers/generated/__init__.py
cylance/rogers
a2300ed518fa01e0f2fcb77f1c10f7124ea7f49a
[ "Apache-2.0" ]
1
2019-01-29T16:03:54.000Z
2019-01-29T16:03:54.000Z
src/rogers/generated/__init__.py
cylance/rogers
a2300ed518fa01e0f2fcb77f1c10f7124ea7f49a
[ "Apache-2.0" ]
5
2019-01-06T21:58:42.000Z
2021-12-07T12:02:53.000Z
""" Wrappers for generated PB """ from .feature_pb2 import Feature, Features, Value, List, Struct def feature(val, var_type=Feature.Variable.CATEGORICAL, var_mode=Feature.Modality.STATIC): """ Create feature message :param val: :param var_type: :param var_mode: :return: """ f = Feature() ...
26.846154
90
0.617765
""" Wrappers for generated PB """ from .feature_pb2 import Feature, Features, Value, List, Struct def feature(val, var_type=Feature.Variable.CATEGORICAL, var_mode=Feature.Modality.STATIC): """ Create feature message :param val: :param var_type: :param var_mode: :return: """ f = Feature() ...
0
0
0
9207be2aeb10ed43909ab11df47c31e994ae7a13
16,014
py
Python
indexer.py
saeenyoda/Inverted_Indexing
1e0438f4d92090502171e3da2c50742fa6a6f4bd
[ "MIT" ]
null
null
null
indexer.py
saeenyoda/Inverted_Indexing
1e0438f4d92090502171e3da2c50742fa6a6f4bd
[ "MIT" ]
null
null
null
indexer.py
saeenyoda/Inverted_Indexing
1e0438f4d92090502171e3da2c50742fa6a6f4bd
[ "MIT" ]
1
2021-06-13T18:11:07.000Z
2021-06-13T18:11:07.000Z
import os import io import platform import json import nltk import heapq import time from rich.progress import ( TextColumn, BarColumn, Progress, TimeRemainingColumn, TimeElapsedColumn ) from rich import print from rich import box from rich.panel import Panel from math import sqrt from bs4 import Be...
33.15528
111
0.60903
import os import io import platform import json import nltk import heapq import time from rich.progress import ( TextColumn, BarColumn, Progress, TimeRemainingColumn, TimeElapsedColumn ) from rich import print from rich import box from rich.panel import Panel from math import sqrt from bs4 import Be...
12,459
0
374
518278a6890c7778aa32bec4304a9f4a8e26f910
2,339
py
Python
examples/other/misc/upload_sd_to_s3.py
CSS-Electronics/api-examples
0d712c0d321b8acc739a24a97fe6735545fd7b47
[ "MIT" ]
43
2020-04-05T13:28:13.000Z
2022-03-23T02:22:19.000Z
examples/other/misc/upload_sd_to_s3.py
CSS-Electronics/api-examples
0d712c0d321b8acc739a24a97fe6735545fd7b47
[ "MIT" ]
12
2020-10-08T11:28:07.000Z
2022-02-13T07:39:46.000Z
examples/other/misc/upload_sd_to_s3.py
CSS-Electronics/api-examples
0d712c0d321b8acc739a24a97fe6735545fd7b47
[ "MIT" ]
12
2020-04-05T13:28:18.000Z
2022-03-04T07:27:23.000Z
# This script can be used for 'manually' uploading CANedge log files from an SD to S3. # The script includes S3 meta data such as firmware and SD timestamp and correctly derives S3 key. import mdf_iter import canedge_browser from pathlib import Path import boto3 from botocore.client import Config from s3transfer impor...
39.644068
126
0.718683
# This script can be used for 'manually' uploading CANedge log files from an SD to S3. # The script includes S3 meta data such as firmware and SD timestamp and correctly derives S3 key. import mdf_iter import canedge_browser from pathlib import Path import boto3 from botocore.client import Config from s3transfer impor...
0
0
0
acf715fc15a7df7b482387e53afd194b3fbc1f62
2,439
py
Python
venv/lib/python2.7/site-packages/plotnine/stats/stat_quantile.py
nuriale207/preprocesspack
cc06a9cb79c5e3b392371fcd8d1ccf7185e71821
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/plotnine/stats/stat_quantile.py
nuriale207/preprocesspack
cc06a9cb79c5e3b392371fcd8d1ccf7185e71821
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/plotnine/stats/stat_quantile.py
nuriale207/preprocesspack
cc06a9cb79c5e3b392371fcd8d1ccf7185e71821
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from warnings import warn import pandas as pd import statsmodels.formula.api as smf from ..doctools import document from .stat import stat # method_args are any of the keyword args (other than q) for # statsmodels.regression.quantile_regression.Quant...
28.360465
72
0.604346
from __future__ import absolute_import, division, print_function from warnings import warn import pandas as pd import statsmodels.formula.api as smf from ..doctools import document from .stat import stat # method_args are any of the keyword args (other than q) for # statsmodels.regression.quantile_regression.Quant...
827
0
76
fdeee11a9d4e6f3bcd3e97f59d0cc37fc7251253
1,650
py
Python
tests/test_cli.py
RonsenbergVI/cicd_circleci_codeclimate
cc1fdbbaf64700a7cbbd3b9a255f869dae878ae5
[ "MIT" ]
null
null
null
tests/test_cli.py
RonsenbergVI/cicd_circleci_codeclimate
cc1fdbbaf64700a7cbbd3b9a255f869dae878ae5
[ "MIT" ]
null
null
null
tests/test_cli.py
RonsenbergVI/cicd_circleci_codeclimate
cc1fdbbaf64700a7cbbd3b9a255f869dae878ae5
[ "MIT" ]
1
2022-01-31T21:06:09.000Z
2022-01-31T21:06:09.000Z
# MIT License # Copyright (c) 2021 Rene Jean Corneille # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
44.594595
104
0.719394
# MIT License # Copyright (c) 2021 Rene Jean Corneille # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
0
0
0
c023841435919ac9c7d89803f2385f0005a2221e
2,437
py
Python
bot/cogs/weather.py
phantom0174/HSQCC_bot
93d4b40f7d8885bcf927590926370d67e05a5760
[ "MIT" ]
4
2020-11-25T16:31:41.000Z
2021-08-28T21:35:01.000Z
bot/cogs/weather.py
phantom0174/HSQCC_bot
93d4b40f7d8885bcf927590926370d67e05a5760
[ "MIT" ]
12
2020-12-21T09:42:13.000Z
2021-05-16T06:17:49.000Z
bot/cogs/weather.py
phantom0174/HSQCC_bot
93d4b40f7d8885bcf927590926370d67e05a5760
[ "MIT" ]
2
2021-04-13T08:28:12.000Z
2021-07-11T02:41:35.000Z
from discord.ext import commands import requests import os from ..core.cog_config import CogExtension # This extension is for school h.w. of phantom0174. data_prefix = { "0": "天氣描述", "1": "最高溫度", "2": "最低溫度", "3": "體感描述", "4": "降水機率" } data_suffix = { "0": "", "1": "度", "2": "度", ...
29.011905
105
0.526467
from discord.ext import commands import requests import os from ..core.cog_config import CogExtension # This extension is for school h.w. of phantom0174. data_prefix = { "0": "天氣描述", "1": "最高溫度", "2": "最低溫度", "3": "體感描述", "4": "降水機率" } data_suffix = { "0": "", "1": "度", "2": "度", ...
252
1,863
46
e0e797a0958dac033c62740ccb9d3b0c263a6c83
2,153
py
Python
expertise/service/__init__.py
openreview/openreview-expertise
da8a9fc3da25d8deae7023616c51a4ac7b196b67
[ "MIT" ]
12
2020-02-25T18:45:32.000Z
2022-02-07T22:24:48.000Z
expertise/service/__init__.py
openreview/openreview-expertise
da8a9fc3da25d8deae7023616c51a4ac7b196b67
[ "MIT" ]
52
2019-12-19T08:14:43.000Z
2022-03-23T19:40:02.000Z
expertise/service/__init__.py
openreview/openreview-expertise
da8a9fc3da25d8deae7023616c51a4ac7b196b67
[ "MIT" ]
3
2019-10-24T16:52:34.000Z
2021-09-27T21:40:39.000Z
import os import flask import logging, logging.handlers from celery import Celery def configure_logger(app): ''' Configures the app's logger object. ''' app.logger.removeHandler(flask.logging.default_handler) formatter = logging.Formatter( '%(asctime)s %(levelname)s: [in %(pathname)s:%(line...
28.328947
93
0.686484
import os import flask import logging, logging.handlers from celery import Celery def configure_logger(app): ''' Configures the app's logger object. ''' app.logger.removeHandler(flask.logging.default_handler) formatter = logging.Formatter( '%(asctime)s %(levelname)s: [in %(pathname)s:%(line...
0
0
0
cd9decb0bfd5fc86725a466a321744abf50f388e
379
py
Python
orchester/utils/gen_trello_token.py
popojargo/orchester
5e6c15400ef73845b03dd2a50331b9e90beb3be6
[ "MIT" ]
1
2019-02-07T19:39:16.000Z
2019-02-07T19:39:16.000Z
orchester/utils/gen_trello_token.py
popojargo/orchester
5e6c15400ef73845b03dd2a50331b9e90beb3be6
[ "MIT" ]
null
null
null
orchester/utils/gen_trello_token.py
popojargo/orchester
5e6c15400ef73845b03dd2a50331b9e90beb3be6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from trello import util from orchester.ConfigHelper import get_config_data, pick if __name__ == '__main__': generate()
22.294118
59
0.693931
# -*- coding: utf-8 -*- from trello import util from orchester.ConfigHelper import get_config_data, pick def generate(): config = get_config_data() cfg = pick(config, 'connectors.trello') api_key = pick(cfg, 'api_key') api_secret = pick(cfg, 'api_secret') util.create_oauth_token(key=api_key, secr...
206
0
23
5efb6e792f4b159ced4f979691541c882fee6400
8,395
py
Python
monai/networks/layers/convutils.py
Can-Zhao/MONAI
e29ef022b97a4e809dd22d4d208005f541ee061b
[ "Apache-2.0" ]
3
2020-06-22T20:59:14.000Z
2021-04-09T21:24:45.000Z
monai/networks/layers/convutils.py
Borda/MONAI
e0db5a564225a7cb62e7a23df97267019006302f
[ "Apache-2.0" ]
null
null
null
monai/networks/layers/convutils.py
Borda/MONAI
e0db5a564225a7cb62e7a23df97267019006302f
[ "Apache-2.0" ]
1
2020-05-27T12:53:58.000Z
2020-05-27T12:53:58.000Z
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
36.820175
119
0.628708
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
2,538
0
92