hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
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
130
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
130
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.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
80bd0ba590fbf5168a2f8701988f9df85d73cd52
1,205
py
Python
Analise de Sinais/trabalho_fourier.py
kewitz/mestrado
04af87b6533cb26fcfc9a6579d691e5d019ac9dc
[ "MIT" ]
2
2016-02-20T19:03:31.000Z
2020-04-14T15:18:49.000Z
Analise de Sinais/trabalho_fourier.py
kewitz/mestrado
04af87b6533cb26fcfc9a6579d691e5d019ac9dc
[ "MIT" ]
null
null
null
Analise de Sinais/trabalho_fourier.py
kewitz/mestrado
04af87b6533cb26fcfc9a6579d691e5d019ac9dc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jun 3 15:55:18 2014 @author: leo """ import numpy as np import matplotlib.pyplot as plt # Macros pi = np.pi; exp = np.exp; arange = np.arange; zeros = np.zeros indexed = lambda l, offset=0: zip(np.arange(len(l))+offset,l) # Constantes w = 2.0*pi*0.25 a0 = 6.0/4.0 # Funes ak...
24.1
160
0.564315
# -*- coding: utf-8 -*- """ Created on Tue Jun 3 15:55:18 2014 @author: leo """ import numpy as np import matplotlib.pyplot as plt # Macros pi = np.pi; exp = np.exp; arange = np.arange; zeros = np.zeros indexed = lambda l, offset=0: zip(np.arange(len(l))+offset,l) # Constantes w = 2.0*pi*0.25 a0 = 6.0/4.0 # Funções ...
8
0
0
0
0
245
0
0
44
41a1d16d20c12c80ffe9a36caa44315fd0a46492
1,432
py
Python
spiders/tag.py
LZY2006/biliob-spider
487d9a41208d3b5ff98aedec3d2bd482e142e4ae
[ "MIT" ]
2
2021-02-21T05:49:17.000Z
2021-02-28T03:01:45.000Z
spiders/tag.py
kirahan/biliob-spider
1a7c4a2b6781775c62c9a7d1aa2f1b0e2b0ab1f8
[ "MIT" ]
null
null
null
spiders/tag.py
kirahan/biliob-spider
1a7c4a2b6781775c62c9a7d1aa2f1b0e2b0ab1f8
[ "MIT" ]
7
2021-02-13T16:58:49.000Z
2022-02-11T03:23:56.000Z
from simpyder import FAKE_UA, SimpyderConfig if __name__ == "__main__": s = BiliobAuthorSpider("biliob-author-spider") sc = SimpyderConfig() sc.PARSE_THREAD_NUMER = 8 sc.LOG_LEVEL = "INFO" sc.USER_AGENT = FAKE_UA s.set_config(sc) s.run()
23.096774
79
0.585894
import requests from time import sleep from db import redis_connect_string, db from utils import get_url_from_redis import redis import datetime from simpyder import Spider, FAKE_UA, SimpyderConfig from bson import ObjectId import logging class BiliobAuthorSpider(Spider): def gen_url(self): while True: t...
0
0
0
958
0
0
0
18
200
d7a03bd11cd6ab5cb2697037bcd8b962082ea94f
10,097
py
Python
unit_tests/dependencies/storage_api/test_storage_api_service.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2019-10-03T13:58:29.000Z
2019-10-03T13:58:29.000Z
unit_tests/dependencies/storage_api/test_storage_api_service.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
null
null
null
unit_tests/dependencies/storage_api/test_storage_api_service.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2021-04-11T05:24:57.000Z
2021-04-11T05:24:57.000Z
STORAGE_API_SERVICE_PATH = 'maintain_frontend.dependencies.storage_api.storage_api_service'
43.9
116
0.583243
from unittest import TestCase from flask import g from unittest.mock import MagicMock from maintain_frontend import main from unit_tests.utilities import Utilities from maintain_frontend.dependencies.session_api.user import User from maintain_frontend.dependencies.storage_api.storage_api_service import StorageAPIServic...
0
0
0
9,600
0
0
0
204
199
5ec14f5f765a68b114c22ea19961870a4d6ea898
165
py
Python
lesson 18/question 5.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
2
2021-08-10T18:16:08.000Z
2021-09-26T19:49:26.000Z
lesson 18/question 5.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
null
null
null
lesson 18/question 5.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
null
null
null
height = 50 base = 60 area = lambda height, base: (height*base)/2 print(f"A triangle with height {height} and base {base} has an area of {area(height,base)}")
27.5
92
0.678788
height = 50 base = 60 area = lambda height, base: (height*base)/2 print(f"A triangle with height {height} and base {base} has an area of {area(height,base)}")
0
0
0
0
0
0
0
0
0
792e81686983a9270329b69849cedb29def026eb
20,188
py
Python
py_trees_ros/subscribers.py
geoc1234/py_trees_ros
65a055624f9261d67f0168ef419aa650302f96d0
[ "BSD-3-Clause" ]
65
2019-05-01T08:21:42.000Z
2022-03-23T15:49:55.000Z
py_trees_ros/subscribers.py
geoc1234/py_trees_ros
65a055624f9261d67f0168ef419aa650302f96d0
[ "BSD-3-Clause" ]
62
2019-02-27T14:27:42.000Z
2022-02-08T03:54:30.000Z
py_trees_ros/subscribers.py
geoc1234/py_trees_ros
65a055624f9261d67f0168ef419aa650302f96d0
[ "BSD-3-Clause" ]
23
2019-03-03T17:09:59.000Z
2022-01-06T03:07:59.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # License: BSD # https://raw.githubusercontent.com/splintered-reality/py_trees_ros/devel/LICENSE # ############################################################################## # Description #############################################################################...
41.539095
197
0.621755
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # License: BSD # https://raw.githubusercontent.com/splintered-reality/py_trees_ros/devel/LICENSE # ############################################################################## # Description #############################################################################...
0
0
0
18,646
0
0
0
-30
271
cfd8e93fb587eae32a34539f49a3b57e0ba9c390
15,881
py
Python
qxtoolkit/cam_record.py
QixuanAI/qxtoolkit
044e4316b8b890ce83d56ea52d735af1655f5dda
[ "BSD-3-Clause" ]
null
null
null
qxtoolkit/cam_record.py
QixuanAI/qxtoolkit
044e4316b8b890ce83d56ea52d735af1655f5dda
[ "BSD-3-Clause" ]
null
null
null
qxtoolkit/cam_record.py
QixuanAI/qxtoolkit
044e4316b8b890ce83d56ea52d735af1655f5dda
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python ''' Description : A simple video recorder, support Windows and Linux. Requirments : opencv-python>=4.2.0.34, numpy FilePath : /qxtoolkit/qxtoolkit/cam_record.py Author : qxsoftware@163.com Date : 2020-10-14 08:29:17 LastEditTime: 2021-08-25 15:26:53 Refer to : https://github.com...
37.192037
118
0.557396
#! /usr/bin/env python ''' Description : A simple video recorder, support Windows and Linux. Requirments : opencv-python>=4.2.0.34, numpy FilePath : /qxtoolkit/qxtoolkit/cam_record.py Author : qxsoftware@163.com Date : 2020-10-14 08:29:17 LastEditTime: 2021-08-25 15:26:53 Refer to : https://github.com...
12
48
0
2,322
0
9,148
0
3
249
5f2433c86a5d741bb67ad5a7e0663c6cea1a7ef3
2,251
bzl
Python
deps.bzl
EricEdens/cgo-cpp-bazel
2139ee3d0eb318a11056766b69d4d85d32ef1db8
[ "Apache-2.0" ]
null
null
null
deps.bzl
EricEdens/cgo-cpp-bazel
2139ee3d0eb318a11056766b69d4d85d32ef1db8
[ "Apache-2.0" ]
null
null
null
deps.bzl
EricEdens/cgo-cpp-bazel
2139ee3d0eb318a11056766b69d4d85d32ef1db8
[ "Apache-2.0" ]
null
null
null
load("@bazel_gazelle//:deps.bzl", "go_repository")
34.630769
64
0.631719
load("@bazel_gazelle//:deps.bzl", "go_repository") def go_dependencies(): go_repository( name = "com_github_davecgh_go_spew", importpath = "github.com/davecgh/go-spew", sum = "h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=", version = "v1.1.0", ) go_repository( name...
0
0
0
0
0
2,177
0
0
23
c37b33787414620c293dafbdfa448da9546360e4
130
py
Python
cool_functions/__init__.py
waltersmartinsf/cool_functions
e9017e1f2b40d16bbd8ba390fc003bc0ff152652
[ "CC-BY-4.0" ]
null
null
null
cool_functions/__init__.py
waltersmartinsf/cool_functions
e9017e1f2b40d16bbd8ba390fc003bc0ff152652
[ "CC-BY-4.0" ]
null
null
null
cool_functions/__init__.py
waltersmartinsf/cool_functions
e9017e1f2b40d16bbd8ba390fc003bc0ff152652
[ "CC-BY-4.0" ]
null
null
null
""" Cool Functions Cool functions for my every day work! Functions: """ import graficos as graficos import swift_A as swift_A
10.833333
37
0.753846
""" Cool Functions Cool functions for my every day work! Functions: """ import graficos as graficos import swift_A as swift_A
0
0
0
0
0
0
0
0
0
219f18cac3d4b9ab27c2c67b2b88a85a4965ae59
14,882
py
Python
test/test_torch_utility.py
jleuschn/dival
483915b2e64c1ad6355311da0429ef8f2c2eceb5
[ "MIT" ]
42
2019-08-06T11:41:14.000Z
2022-03-21T08:57:41.000Z
test/test_torch_utility.py
jleuschn/dival
483915b2e64c1ad6355311da0429ef8f2c2eceb5
[ "MIT" ]
17
2019-12-03T22:02:32.000Z
2021-09-04T07:29:46.000Z
test/test_torch_utility.py
jleuschn/dival
483915b2e64c1ad6355311da0429ef8f2c2eceb5
[ "MIT" ]
8
2019-10-07T09:21:55.000Z
2022-02-24T09:08:01.000Z
# -*- coding: utf-8 -*- import unittest try: except ImportError: TORCH_AVAILABLE = False else: TORCH_AVAILABLE = True try: import astra except ImportError: ASTRA_CUDA_AVAILABLE = False else: ASTRA_CUDA_AVAILABLE = astra.use_cuda() if __name__ == '__main__': unittest.main()
45.932099
79
0.572907
# -*- coding: utf-8 -*- import unittest from functools import partial try: import torch except ImportError: TORCH_AVAILABLE = False else: TORCH_AVAILABLE = True from dival.util.torch_utility import ( RandomAccessTorchDataset, GeneratorTorchDataset, load_state_dict_convert_data_parallel, ...
0
13,336
0
0
0
653
0
271
322
f7fdc07b196b86a4aeedff990553d210fcd7a25c
1,126
py
Python
selenium_python_docker_test/test_selenium_remote_webdriver.py
WommyInStandingPosition/YtbDataApiRelated
4856ad2ee5be49bb74c79c3d6649f9d1fdbdc85d
[ "MIT" ]
null
null
null
selenium_python_docker_test/test_selenium_remote_webdriver.py
WommyInStandingPosition/YtbDataApiRelated
4856ad2ee5be49bb74c79c3d6649f9d1fdbdc85d
[ "MIT" ]
null
null
null
selenium_python_docker_test/test_selenium_remote_webdriver.py
WommyInStandingPosition/YtbDataApiRelated
4856ad2ee5be49bb74c79c3d6649f9d1fdbdc85d
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.desired_capabilities import DesiredCapabilities command_executor = 'http://localhost:4445/...
51.181818
131
0.714032
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.desired_capabilities import DesiredCapabilities command_executor = 'http://localhost:4445/...
0
0
0
0
0
0
0
0
0
57e7a4afadc5b177f0120f66d90cce36dab29cca
1,448
py
Python
addons/hw_drivers/iot_handlers/interfaces/DisplayInterface.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/hw_drivers/iot_handlers/interfaces/DisplayInterface.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/hw_drivers/iot_handlers/interfaces/DisplayInterface.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details.
37.128205
115
0.584945
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from re import sub, finditer import subprocess from odoo.addons.hw_drivers.interface import Interface class DisplayInterface(Interface): _loop_delay = 0 connection_type = 'display' def get_devices(self): ...
0
0
0
1,221
0
0
0
36
91
2fa56b2b8105aea8b915ecf547248e47aa1a2652
582
py
Python
vip1.py
S-NanF/VIP-
d9fa3bfaa7233d1306ebe5a95e0e4c6c439fc92f
[ "MIT" ]
1
2021-02-28T09:02:51.000Z
2021-02-28T09:02:51.000Z
vip1.py
S-NanF/VIP-
d9fa3bfaa7233d1306ebe5a95e0e4c6c439fc92f
[ "MIT" ]
null
null
null
vip1.py
S-NanF/VIP-
d9fa3bfaa7233d1306ebe5a95e0e4c6c439fc92f
[ "MIT" ]
2
2021-02-06T15:29:40.000Z
2021-08-16T02:32:47.000Z
import urllib.request import time import re import subprocess from Tools.scripts.treesync import raw_input url = input("") dizhi = "https://660e.com/?url=" + url print(":" + dizhi) time.sleep(0.7) print("") print("m3u8") response = urllib.request.urlopen(dizhi) html = response.read().decode('u...
19.4
68
0.652921
import urllib.request import time import re import subprocess from Tools.scripts.treesync import raw_input url = input("输入电影的的地址:") dizhi = "https://660e.com/?url=" + url print("确认地址:" + dizhi) time.sleep(0.7) print("") print("以下为网页解析的网页代码,请自行找出m3u8地址") response = urllib.request.urlopen(dizhi) ...
99
0
0
0
0
0
0
0
0
5d3a3bc4117b741df204e8dfc91ac67a41bc837b
730
py
Python
src/mitol/oauth_toolkit_extensions/models.py
mitodl/ol-django
16989278e528614d3e8e21d4c5adc4f55761ab98
[ "BSD-3-Clause" ]
1
2021-07-26T12:43:57.000Z
2021-07-26T12:43:57.000Z
src/mitol/oauth_toolkit_extensions/models.py
mitodl/ol-django
16989278e528614d3e8e21d4c5adc4f55761ab98
[ "BSD-3-Clause" ]
43
2020-08-28T12:16:11.000Z
2022-02-01T19:45:41.000Z
src/mitol/oauth_toolkit_extensions/models.py
mitodl/ol-django
16989278e528614d3e8e21d4c5adc4f55761ab98
[ "BSD-3-Clause" ]
null
null
null
"""OAuth toolkit extensions model classes""" from oauth2_provider.settings import oauth2_settings APPLICATION_MODEL = oauth2_settings.APPLICATION_MODEL
29.2
74
0.749315
"""OAuth toolkit extensions model classes""" from typing import List from django.db import models from oauth2_provider.settings import oauth2_settings from mitol.common.models import TimestampedModel APPLICATION_MODEL = oauth2_settings.APPLICATION_MODEL class ApplicationAccess(TimestampedModel): """Data model ...
0
163
0
286
0
0
0
36
91
0fdaf43fc279d94ea8f5cda61abb0fa7338fcbd9
3,482
py
Python
sbhelpkit/utils/test_freeze.py
MapleCCC/Session-Buddy-Helpkit
c9555834bf7e8ca41a59155fdf2723e4e4869381
[ "WTFPL" ]
null
null
null
sbhelpkit/utils/test_freeze.py
MapleCCC/Session-Buddy-Helpkit
c9555834bf7e8ca41a59155fdf2723e4e4869381
[ "WTFPL" ]
null
null
null
sbhelpkit/utils/test_freeze.py
MapleCCC/Session-Buddy-Helpkit
c9555834bf7e8ca41a59155fdf2723e4e4869381
[ "WTFPL" ]
null
null
null
import sys if sys.version_info < (3, 7): raise RuntimeError("Do not run test under v3.7.0. " "We need built-in hash implementation up to v3.7.0 to test against.") hashable_types = none() | booleans() | floats() | text() # TODO: decide a collision rate as threshold for being acceptable. acceptable_collis...
32.849057
80
0.763929
import sys from typing import * from hypothesis import given, assume, settings from hypothesis.strategies import * from .freeze import freeze_list, freeze_dict, hash_list, hash_dict if sys.version_info < (3, 7): raise RuntimeError("Do not run test under v3.7.0. " "We need built-in hash implementation up...
0
2,361
0
0
0
0
0
83
274
33bef250dcb499792e4b370453a454282efcce0c
1,459
py
Python
ClickSQL/conf/__init__.py
sn0wfree/ClickSQL
392a6fa904c3ad6a2c6ebc50cfcfd794b73051eb
[ "MIT" ]
6
2020-07-30T06:51:51.000Z
2022-02-25T20:02:53.000Z
ClickSQL/conf/__init__.py
sn0wfree/ClickSQL
392a6fa904c3ad6a2c6ebc50cfcfd794b73051eb
[ "MIT" ]
14
2021-02-10T03:22:55.000Z
2021-06-08T09:33:03.000Z
ClickSQL/conf/__init__.py
sn0wfree/ClickSQL
392a6fa904c3ad6a2c6ebc50cfcfd794b73051eb
[ "MIT" ]
null
null
null
# coding=utf-8 PREFIX = 'CONFIG:' Config = Conf() if __name__ == '__main__': # C = Conf() # C.test = '1' # # print(C.show_config()) pass
21.776119
116
0.574366
# coding=utf-8 import os import json from ClickSQL.utils import singleton, uuid_hash PREFIX = 'CONFIG:' @singleton class Conf(object): def __setattr__(self, key: str, value): self.set(key, value) def __setitem__(self, key: str, value): self.set(key, value) # os.environ[PREFIX + uuid...
0
1,203
0
0
0
0
0
4
89
1d97fda0dd4c9d04a394442e55a07fff645be28d
2,670
py
Python
sample.py
AIWolfSharp/sample-python-agent
79c048ac7237ca8a819fbe933414a03df151ad14
[ "Apache-2.0" ]
null
null
null
sample.py
AIWolfSharp/sample-python-agent
79c048ac7237ca8a819fbe933414a03df151ad14
[ "Apache-2.0" ]
null
null
null
sample.py
AIWolfSharp/sample-python-agent
79c048ac7237ca8a819fbe933414a03df151ad14
[ "Apache-2.0" ]
null
null
null
# # sample.py # # Copyright 2022 OTSUKI Takashi # # 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 agr...
30
81
0.674906
# # sample.py # # Copyright 2022 OTSUKI Takashi # # 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 agr...
0
0
0
1,763
0
0
0
133
179
e2a69a357563d700d8304f533d42c083f34ba649
626
py
Python
flayer/event.py
techhat/grabbr
c188468168b35b8cd9cd0a42022fb603129faf9e
[ "Apache-2.0" ]
null
null
null
flayer/event.py
techhat/grabbr
c188468168b35b8cd9cd0a42022fb603129faf9e
[ "Apache-2.0" ]
null
null
null
flayer/event.py
techhat/grabbr
c188468168b35b8cd9cd0a42022fb603129faf9e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Handle Salt event bus ''' # 3rd party import salt.config import salt.utils.event def bus(opts): ''' Connect to Salt's event bus ''' salt_opts = salt.config.minion_config('/etc/salt/{}'.format(opts['salt_node'])) event = salt.utils.event.get_event( opts['salt_no...
18.969697
83
0.592652
# -*- coding: utf-8 -*- ''' Handle Salt event bus ''' # 3rd party import salt.config import salt.utils.event def bus(opts): ''' Connect to Salt's event bus ''' salt_opts = salt.config.minion_config('/etc/salt/{}'.format(opts['salt_node'])) event = salt.utils.event.get_event( opts['salt_no...
0
0
0
0
0
0
0
0
0
db2d51c4ed5f279e1acc45fd299319ad1301081a
4,688
py
Python
json_client.py
teacher144123/grpc-df-transfer
5ad23f632987d72ef8190ab01a1ab0b6c5f008a6
[ "Apache-2.0" ]
null
null
null
json_client.py
teacher144123/grpc-df-transfer
5ad23f632987d72ef8190ab01a1ab0b6c5f008a6
[ "Apache-2.0" ]
null
null
null
json_client.py
teacher144123/grpc-df-transfer
5ad23f632987d72ef8190ab01a1ab0b6c5f008a6
[ "Apache-2.0" ]
null
null
null
import time import df_pb2 # import pandas as pd # import datatable as dt # import base64 # from io import StringIO import numpy as np # global variables n_runs = 5 is_output = False out_csv = './benchmark.csv' out_string = 'method, total_mean, total_std\n' def get_df(stub, rpc_f, read_f): '''Higher-level logic ...
26.636364
76
0.553541
import grpc import time import df_pb2 import df_pb2_grpc import json import ujson import orjson # import pandas as pd # import datatable as dt # import base64 # from io import StringIO import numpy as np # global variables n_runs = 5 is_output = False out_csv = './benchmark.csv' out_string = 'method, total_mean, to...
0
0
0
604
0
663
0
-40
157
78556277d8c2956161d75267327e1c1083aa6743
2,174
py
Python
DailyByte/22.py
anuragpatil94/dailycoding
468fccc97ab1534a0898b09090574ec72ba033a1
[ "MIT" ]
null
null
null
DailyByte/22.py
anuragpatil94/dailycoding
468fccc97ab1534a0898b09090574ec72ba033a1
[ "MIT" ]
null
null
null
DailyByte/22.py
anuragpatil94/dailycoding
468fccc97ab1534a0898b09090574ec72ba033a1
[ "MIT" ]
null
null
null
""" No: 22 Date: 11-26-2020 Problem: ValidateCharacters Given a string only containing the following characters (, ), {, }, [, and ] return whether or not the opening and closing characters are in a valid order. TestCases: "(){}[]", return true "(({[]}))", return true "{(})", return false Ti...
24.988506
84
0.479761
""" No: 22 Date: 11-26-2020 Problem: ValidateCharacters Given a string only containing the following characters (, ), {, }, [, and ] return whether or not the opening and closing characters are in a valid order. TestCases: "(){}[]", return true "(({[]}))", return true "{(})", return false Ti...
0
0
0
1,631
0
0
0
0
46
bc0c63d3fe301a161e8b1ea58731e4d189966f9b
14,846
py
Python
utils/process_data.py
harviu/pointnet_vae
fad09f888212fc9c571584e27cd68bdcd589ae38
[ "MIT" ]
null
null
null
utils/process_data.py
harviu/pointnet_vae
fad09f888212fc9c571584e27cd68bdcd589ae38
[ "MIT" ]
null
null
null
utils/process_data.py
harviu/pointnet_vae
fad09f888212fc9c571584e27cd68bdcd589ae38
[ "MIT" ]
null
null
null
import math import numpy as np from scipy.spatial import KDTree import torch def resample(data,nx,ny,nz,h): ''' Resample particle data to regular grids ''' kernel = lambda p: 0 if p > 3 else 1/(math.pow(math.pi, 3/2) * math.pow(h,3)) * math.pow(math.e, -p**2) pos = data[:,:3] kd ...
34.931765
299
0.596592
import random import os import math from vtkmodules import all as vtk from vtkmodules.util import numpy_support import numpy as np from matplotlib import pyplot as plt from scipy.spatial import KDTree from multiprocessing import Pool import torch from torch.utils.data import Dataset from utils.sdf import SDFRead from ...
0
0
0
1,713
0
10,871
0
95
758
e56d9a0fd58bc81617d22ad7960986afa50d2fac
4,550
py
Python
cocoalib/cocoa/__init__.py
astrofrog/dupeguru
d0a3f081dab21ea3d2fc69830c9e71a18078c150
[ "BSD-3-Clause" ]
1
2017-01-03T05:50:39.000Z
2017-01-03T05:50:39.000Z
cocoalib/cocoa/__init__.py
astrofrog/dupeguru
d0a3f081dab21ea3d2fc69830c9e71a18078c150
[ "BSD-3-Clause" ]
null
null
null
cocoalib/cocoa/__init__.py
astrofrog/dupeguru
d0a3f081dab21ea3d2fc69830c9e71a18078c150
[ "BSD-3-Clause" ]
null
null
null
# Created By: Virgil Dupras # Created On: 2007-10-06 # Copyright 2013 Hardcoded Software (http://www.hardcoded.net) # This software is licensed under the "BSD" License as described in the "LICENSE" file, # which should be included with this package. The terms are also available at # http://www.hardcoded.net/licenses...
38.559322
111
0.678901
# Created By: Virgil Dupras # Created On: 2007-10-06 # Copyright 2013 Hardcoded Software (http://www.hardcoded.net) # This software is licensed under the "BSD" License as described in the "LICENSE" file, # which should be included with this package. The terms are also available at # http://www.hardcoded.net/licenses...
0
0
0
83
0
1,840
0
-15
205
e0bab4017057c25c958f5c93cff65e128cbbf72e
4,683
py
Python
ambari-server/src/test/python/stacks/2.6/KAFKA/test_kafka_broker_other_sasl.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
1
2021-06-24T07:59:25.000Z
2021-06-24T07:59:25.000Z
ambari-server/src/test/python/stacks/2.6/KAFKA/test_kafka_broker_other_sasl.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.6/KAFKA/test_kafka_broker_other_sasl.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
47.785714
131
0.603032
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
0
3,728
0
0
0
0
0
56
112
2978ad2f4566979f260fde5c94f392823706d042
2,991
py
Python
examples/viber.py
Notificore/notificore-python
047214553dda5cd06e4a84d8ae288811c5f151d1
[ "BSD-2-Clause" ]
null
null
null
examples/viber.py
Notificore/notificore-python
047214553dda5cd06e4a84d8ae288811c5f151d1
[ "BSD-2-Clause" ]
null
null
null
examples/viber.py
Notificore/notificore-python
047214553dda5cd06e4a84d8ae288811c5f151d1
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys import os sys.path.append(os.path.abspath(os.sep.join([os.path.dirname(__file__), '..']))) if __name__ == '__main__': main()
42.126761
109
0.628218
#!/usr/bin/env python3 import sys import os import pprint sys.path.append(os.path.abspath(os.sep.join([os.path.dirname(__file__), '..']))) import notificore_restapi as api def main(): from examples.settings import API_KEY try: client = api.ViberAPI(config={'api_key': API_KEY}) prices = cli...
3
0
0
0
0
2,752
0
3
67
768b10918b02526a6b74f99b210cadbc0f61e376
4,194
py
Python
datalad/support/sshrun.py
psychoinformatics-de/datalad
7435edc1d3c73ae2254fa4bfcb8412a8de6d8d4c
[ "MIT" ]
298
2015-01-25T17:36:29.000Z
2022-03-20T03:38:47.000Z
datalad/support/sshrun.py
psychoinformatics-de/datalad
7435edc1d3c73ae2254fa4bfcb8412a8de6d8d4c
[ "MIT" ]
6,387
2015-01-02T18:15:01.000Z
2022-03-31T20:58:58.000Z
datalad/support/sshrun.py
psychoinformatics-de/datalad
7435edc1d3c73ae2254fa4bfcb8412a8de6d8d4c
[ "MIT" ]
109
2015-01-25T17:49:40.000Z
2022-03-06T06:54:54.000Z
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
33.822581
87
0.553887
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
0
3,299
0
0
0
0
0
67
201
6aeb06dd2c23e00aaaa5e08283042acb7e72a4eb
8,566
py
Python
run_sim.py
Joshua1989/recursive_RM
741d2b51e39c3a48cfb671226178781898766e42
[ "MIT" ]
null
null
null
run_sim.py
Joshua1989/recursive_RM
741d2b51e39c3a48cfb671226178781898766e42
[ "MIT" ]
null
null
null
run_sim.py
Joshua1989/recursive_RM
741d2b51e39c3a48cfb671226178781898766e42
[ "MIT" ]
1
2020-06-09T11:46:44.000Z
2020-06-09T11:46:44.000Z
import time import argparse as ap import json # Setup parser parser = ap.ArgumentParser('Simulate RPA/CPA/RXA/CXA Decoders for Reed-Muller Codes') parser.add_argument('--verbose', '-v', help='Display text output', action="store_true") parser.add_argument('-r', type=int, default=2, help='Order of RM code') parser.add_a...
43.045226
134
0.620593
import time import datetime import argparse as ap import json from recursive_RM import * from itertools import product, combinations # Setup parser parser = ap.ArgumentParser('Simulate RPA/CPA/RXA/CXA Decoders for Reed-Muller Codes') parser.add_argument('--verbose', '-v', help='Display text output', action="store_true...
0
0
0
391
0
2,109
0
21
110
b3b09a584f8f166445550f73a7f3d1718d4db19a
385
py
Python
zhujiangyu/__init__.py
Pythonlover2020/zhujangyu
baf97e0a49f184dd3ac67571045df5650ad98be4
[ "MIT" ]
1
2020-05-30T13:59:12.000Z
2020-05-30T13:59:12.000Z
zhujiangyu/__init__.py
Pythonlover2020/zhujangyu
baf97e0a49f184dd3ac67571045df5650ad98be4
[ "MIT" ]
null
null
null
zhujiangyu/__init__.py
Pythonlover2020/zhujangyu
baf97e0a49f184dd3ac67571045df5650ad98be4
[ "MIT" ]
null
null
null
from __future__ import absolute_import __version__ = '0.1.3' code = ['utf-8','gbk','cp936','gb2312'] def decode(text): ''' :param text: :return: ''' for each in code: try: new_text = text.decode(each) except UnicodeDecodeError: continue...
20.263158
41
0.535065
from __future__ import absolute_import __version__ = '0.1.3' code = ['utf-8','gbk','cp936','gb2312'] def decode(text): ''' 该函数用于解码 :param text: 要解码的文本 :return: 解码后的文本 ''' for each in code: try: new_text = text.decode(each) except UnicodeDecodeError: ...
57
0
0
0
0
0
0
0
0
e3a5b907d1eeb1e7e74d95ef08759de2bc360309
11,345
py
Python
tmx/Tileset.py
simpletmx/tmx
93ed58c659cc8adf04afdfb0eb34cbc1a532136a
[ "CC0-1.0" ]
1
2020-09-15T15:50:35.000Z
2020-09-15T15:50:35.000Z
tmx/Tileset.py
simpletmx/tmx
93ed58c659cc8adf04afdfb0eb34cbc1a532136a
[ "CC0-1.0" ]
null
null
null
tmx/Tileset.py
simpletmx/tmx
93ed58c659cc8adf04afdfb0eb34cbc1a532136a
[ "CC0-1.0" ]
null
null
null
# Simple TMX library # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
36.834416
79
0.594799
# Simple TMX library # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
0
2,792
0
7,734
0
0
0
27
223
e2b064daeb83e492f0a406afd7663d82256937ec
3,728
py
Python
test/test_simple.py
nsg-ethz/synet
8d5c424ef4395cf6003b7a1846c03a16fd6bdc20
[ "Apache-2.0" ]
13
2017-10-26T19:58:55.000Z
2021-12-26T08:04:15.000Z
test/test_simple.py
nsg-ethz/synet
8d5c424ef4395cf6003b7a1846c03a16fd6bdc20
[ "Apache-2.0" ]
2
2019-05-29T14:57:40.000Z
2019-06-11T16:06:23.000Z
test/test_simple.py
nsg-ethz/synet
8d5c424ef4395cf6003b7a1846c03a16fd6bdc20
[ "Apache-2.0" ]
10
2017-11-23T15:44:22.000Z
2021-05-19T06:50:14.000Z
BOXES_STATIC = ['fwd01-1-static'] BOXES_OSPF = ['ospf01', 'ospf02-0', 'ospf02-1', 'fwd01-0', 'fwd01-1'] BOXES_BGP = ['ibgp03', 'ibgp04', 'ibgp05', 'ibgp06', 'ibgp07', 'ibgp08', 'ibgp09', 'ospf01', 'ospf02-0', 'ospf02-1', 'fwd01-0', 'fwd01-1']
37.28
117
0.638144
import unittest from synet.utils import read_all_boxes from synet.synthesis3 import Synthesizer BOXES_STATIC = ['fwd01-1-static'] BOXES_OSPF = ['ospf01', 'ospf02-0', 'ospf02-1', 'fwd01-0', 'fwd01-1'] BOXES_BGP = ['ibgp03', 'ibgp04', 'ibgp05', 'ibgp06', 'ibgp07', 'ibgp08', 'ibgp09', 'ospf01', 'ospf02-0',...
0
1,786
0
1,550
0
0
0
30
89
3bdc40baf53012c2a9ac0d6b670baef9d7ea5d4f
2,158
py
Python
game-examples-AttilaToth/Arcade with Pymunk/main.py
CrtomirJuren/pygame-projects
f710f36050bfe3ece866bbda7d570caa1e037d7a
[ "MIT" ]
null
null
null
game-examples-AttilaToth/Arcade with Pymunk/main.py
CrtomirJuren/pygame-projects
f710f36050bfe3ece866bbda7d570caa1e037d7a
[ "MIT" ]
null
null
null
game-examples-AttilaToth/Arcade with Pymunk/main.py
CrtomirJuren/pygame-projects
f710f36050bfe3ece866bbda7d570caa1e037d7a
[ "MIT" ]
null
null
null
import pymunkoptions pymunkoptions.options["debug"] = False import pymunk import arcade space = pymunk.Space() space.gravity = 0, -1000 mass = 1 radius = 30 segment_shape1 = pymunk.Segment(space.static_body, (500,400), (1300,440), 2) segment_shape1.elasticity = 0.8 segment_shape1.friction = 1.0 space.add(segment_sh...
31.275362
133
0.673309
import pymunkoptions pymunkoptions.options["debug"] = False import pymunk import arcade from math import degrees space = pymunk.Space() space.gravity = 0, -1000 mass = 1 radius = 30 segment_shape1 = pymunk.Segment(space.static_body, (500,400), (1300,440), 2) segment_shape1.elasticity = 0.8 segment_shape1.friction =...
0
0
0
1,560
0
0
0
3
45
33e327cc4f29d71b34087edcbafef849c94a9b5a
10,055
py
Python
ecutils/ml.py
vtecftwy/ecutils
bb599663df355a35edd525747a04e241a45f6b34
[ "MIT" ]
2
2021-06-10T02:06:17.000Z
2021-06-14T04:57:17.000Z
ecutils/ml.py
vtecftwy/ecutils
bb599663df355a35edd525747a04e241a45f6b34
[ "MIT" ]
null
null
null
ecutils/ml.py
vtecftwy/ecutils
bb599663df355a35edd525747a04e241a45f6b34
[ "MIT" ]
null
null
null
""" Utility Functions that can be used for Kaggle and other ML uses Includes all stable utility functions. Reference for kaggle API: https://github.com/Kaggle/kaggle-api """ import configparser import json import matplotlib.pyplot as plt import numpy as np import os import shutil import subprocess from pathlib impo...
40.544355
147
0.685032
""" Utility Functions that can be used for Kaggle and other ML uses Includes all stable utility functions. Reference for kaggle API: https://github.com/Kaggle/kaggle-api """ import configparser import datetime as dt import json import matplotlib.pyplot as plt import numpy as np import os import pandas as pd import ...
0
0
0
0
0
0
0
23
89
83ca698cab8afba3a55b3ceb9872807d23c97b68
855
py
Python
archived/transfer_circuit_court_docs.py
jmcarp/va-court-scraper
edfc9278bbf495ecf244eecf2ac2988086070faa
[ "MIT" ]
10
2016-03-23T23:25:18.000Z
2021-03-11T18:09:08.000Z
archived/transfer_circuit_court_docs.py
jmcarp/va-court-scraper
edfc9278bbf495ecf244eecf2ac2988086070faa
[ "MIT" ]
2
2018-05-27T23:50:27.000Z
2018-05-28T00:14:08.000Z
archived/transfer_circuit_court_docs.py
jmcarp/va-court-scraper
edfc9278bbf495ecf244eecf2ac2988086070faa
[ "MIT" ]
3
2016-12-16T03:11:08.000Z
2019-06-10T14:43:33.000Z
import datetime import pymongo import os from courtreader import readers # Connect to database client = pymongo.MongoClient(os.environ['CIRCUIT_DB']) db = client.va_circuit_court_cases reader = readers.CircuitCourtReader() courts = reader.connect() court_codes = {} for fips_code, court in courts.iteritems(): cour...
26.71875
60
0.720468
import datetime import pymongo import os from courtreader import readers # Connect to database client = pymongo.MongoClient(os.environ['CIRCUIT_DB']) db = client.va_circuit_court_cases reader = readers.CircuitCourtReader() courts = reader.connect() court_codes = {} for fips_code, court in courts.iteritems(): cour...
0
0
0
0
0
0
0
0
0
4fde68ccdac8c63023a6b0c0a42d700714422ea5
643
py
Python
TelegramBot/main.py
kanishkaa24/Telegram-bots
f91532244e8950a9e9c74dd76cf64e9bd2e23c04
[ "MIT" ]
null
null
null
TelegramBot/main.py
kanishkaa24/Telegram-bots
f91532244e8950a9e9c74dd76cf64e9bd2e23c04
[ "MIT" ]
7
2021-07-01T18:02:45.000Z
2021-07-14T07:03:10.000Z
TelegramBot/main.py
kanishkaa24/Telegram-bots
f91532244e8950a9e9c74dd76cf64e9bd2e23c04
[ "MIT" ]
9
2021-07-01T18:02:03.000Z
2021-07-11T10:20:34.000Z
print('Starting BotsyBot') main()
21.433333
67
0.734059
import Responses as Re import Constants as Keys from telegram.ext import * print('Starting BotsyBot') def start_command(update, context): update.message.reply_text('Hey! Type something to get started') def handle_message(update, context): text = str(update.message.text).lower() response = Re.response(...
0
0
0
0
0
458
0
9
135
a623c8067777dee636bc42b02a7495a599bd3525
6,690
py
Python
custom_components/tapo_p100/p100.py
vhsw/Tapo-P100
36efa3dc3688e4fa132cec3b38eb544f6d9ec558
[ "MIT" ]
null
null
null
custom_components/tapo_p100/p100.py
vhsw/Tapo-P100
36efa3dc3688e4fa132cec3b38eb544f6d9ec558
[ "MIT" ]
null
null
null
custom_components/tapo_p100/p100.py
vhsw/Tapo-P100
36efa3dc3688e4fa132cec3b38eb544f6d9ec558
[ "MIT" ]
null
null
null
"""Tapo P100 interactions""" import base64 import hashlib import logging from typing import Union _LOGGER = logging.getLogger(__name__) def check_error(response): """Assert `error_code == 0`""" if (error_code := response["error_code"]) != 0: raise ValueError(f"{error_code=}") def b64_encode(data: ...
34.307692
86
0.622272
"""Tapo P100 interactions""" import asyncio import base64 import hashlib import json import logging import time from base64 import b64decode from typing import Optional, Union import aiohttp import pkcs7 from aiohttp.client_reqrep import ClientResponse from Crypto.Cipher import AES, PKCS1_v1_5 from Crypto.PublicKey im...
0
0
4,053
1,763
0
0
0
46
245
cde367a4a2774d63ad1969e35125d9ac61a1b31a
17,518
py
Python
fingerprinter.py
DanielNaro/FingerprintingGenome
1398150d5b8241ef171956a613d0f1eeab777586
[ "MIT" ]
null
null
null
fingerprinter.py
DanielNaro/FingerprintingGenome
1398150d5b8241ef171956a613d0f1eeab777586
[ "MIT" ]
null
null
null
fingerprinter.py
DanielNaro/FingerprintingGenome
1398150d5b8241ef171956a613d0f1eeab777586
[ "MIT" ]
null
null
null
count_reads = 0 count_candidates = 0 count_extensions_case_default = 0 count_extensions_case_reverse = 0 count_extensions_not_done = 0 count_contraction_case_default = 0 count_contraction_case_reverse = 0 count_contraction_not_done = 0 count_contraction_not_reverse_because_int = 0 count_contraction_not_reverse_because...
43.577114
180
0.617993
import random import numpy import pysam from Crypto.Cipher import AES count_reads = 0 count_candidates = 0 count_extensions_case_default = 0 count_extensions_case_reverse = 0 count_extensions_not_done = 0 count_contraction_case_default = 0 count_contraction_case_reverse = 0 count_contraction_not_done = 0 count_contra...
0
7,099
0
2,831
0
6,904
0
-18
319
162a8b001b38c21b54c1b6be61430810ce85b063
1,557
py
Python
nds/northeim.py
risklayer/corona-landkreis-crawler
2e82448ff614240365de9493eafa0e6a620ac615
[ "Unlicense" ]
12
2022-02-23T11:06:06.000Z
2022-03-04T17:21:44.000Z
nds/northeim.py
risklayer/corona-landkreis-crawler
2e82448ff614240365de9493eafa0e6a620ac615
[ "Unlicense" ]
null
null
null
nds/northeim.py
risklayer/corona-landkreis-crawler
2e82448ff614240365de9493eafa0e6a620ac615
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 _northeim_c = re.compile(r"mittlerweile ([0-9.]+)\s*(?:\(([+-]?[0-9.]+)\) )?Corona-Infektionen") _northeim_g = re.compile(r"([0-9.]+)\s*(?:\(([+-]?[0-9.]+)\) )?Personen gelten mittlerweile als genesen") _northeim_d = re.compile(r"insgesamt ([0-9.]+)\s*(?:\(([+-]?[0-9.]+)\) )?Personen verstorben") s...
53.689655
141
0.660886
#!/usr/bin/python3 from botbase import * _northeim_c = re.compile(r"mittlerweile ([0-9.]+)\s*(?:\(([+-]?[0-9.]+)\) )?Corona-Infektionen") _northeim_g = re.compile(r"([0-9.]+)\s*(?:\(([+-]?[0-9.]+)\) )?Personen gelten mittlerweile als genesen") _northeim_d = re.compile(r"insgesamt ([0-9.]+)\s*(?:\(([+-]?[0-9.]+)\) )?Pe...
0
0
0
0
0
1,083
0
0
45
5203c1a89be83a5f86d8ef6e02d0802a85fe6ea0
1,148
py
Python
spider/spider.py
HackCCNU/mumei
dbc7551c1694755e7d388a519da91a620550574d
[ "WTFPL", "Unlicense" ]
6
2016-10-27T13:45:04.000Z
2017-09-17T04:38:09.000Z
spider/spider.py
HackCCNU/mumei
dbc7551c1694755e7d388a519da91a620550574d
[ "WTFPL", "Unlicense" ]
1
2016-10-27T14:17:54.000Z
2016-12-09T07:22:24.000Z
spider/spider.py
HackCCNU/mumei
dbc7551c1694755e7d388a519da91a620550574d
[ "WTFPL", "Unlicense" ]
1
2016-10-29T23:21:21.000Z
2016-10-29T23:21:21.000Z
# coding: utf-8 import os import redis import requests # rds- # info: {name: [sid]} rds = redis.StrictRedis(host=os.getenv("REDISHOST"), port=6389, db=0) # url-, thanks@2bab url = os.getenv("MUMEIURL") rds.hset('info', '_placeholder', []) def spider(start, end): """ spider: -- start: -- end: +1 ...
24.425532
69
0.551394
# coding: utf-8 import os import redis import requests # rds-存储爬虫爬取学号、姓名信息 # info: {name: [sid]} rds = redis.StrictRedis(host=os.getenv("REDISHOST"), port=6389, db=0) # url-爬取的源地址, thanks@2bab url = os.getenv("MUMEIURL") rds.hset('info', '_placeholder', []) def spider(start, end): """ spider: 爬虫 -- sta...
99
0
0
0
0
0
0
0
0
f9f0078d2165749e5d8b9c225d3efdb78342a8a1
817
py
Python
2020/day6/customCustoms_pt2.py
madeleine-adams/advent_of_code_2020
8f142a91d1a40390aad274c5e0513f50b168d029
[ "MIT" ]
null
null
null
2020/day6/customCustoms_pt2.py
madeleine-adams/advent_of_code_2020
8f142a91d1a40390aad274c5e0513f50b168d029
[ "MIT" ]
null
null
null
2020/day6/customCustoms_pt2.py
madeleine-adams/advent_of_code_2020
8f142a91d1a40390aad274c5e0513f50b168d029
[ "MIT" ]
null
null
null
file = open('customCustoms_input.txt', 'r') batch = file.readlines() current_form = list() forms = list() running_total = 0 # build list of customs forms for line in batch: line = line.strip() if len(line) == 0: if len(current_form) > 0: forms.append(current_form) current_form ...
24.757576
53
0.592411
file = open('customCustoms_input.txt', 'r') batch = file.readlines() current_form = list() forms = list() running_total = 0 # build list of customs forms for line in batch: line = line.strip() if len(line) == 0: if len(current_form) > 0: forms.append(current_form) current_form ...
0
0
0
0
0
0
0
0
0
671f24d48837fe358217130ee4cf1d97b69d33e0
4,190
py
Python
nextdl/extractor/tennistv.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
1
2021-12-19T13:55:20.000Z
2021-12-19T13:55:20.000Z
nextdl/extractor/tennistv.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
nextdl/extractor/tennistv.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals
32.48062
103
0.546301
# coding: utf-8 from __future__ import unicode_literals import json from ..utils import ExtractorError, unified_timestamp from .common import InfoExtractor class TennisTVIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?tennistv\.com/videos/(?P<id>[-a-z0-9]+)" _TEST = { "url": "https://www.tennis...
0
0
0
4,008
0
0
0
34
91
103f4298b020824ba905b22f993ca4e8305cced3
6,389
py
Python
pyetlmr/postfix.py
xiufengliu/ETLMR
ad8b39d1cec5e0be6422fac056560237cda437de
[ "MIT" ]
null
null
null
pyetlmr/postfix.py
xiufengliu/ETLMR
ad8b39d1cec5e0be6422fac056560237cda437de
[ "MIT" ]
null
null
null
pyetlmr/postfix.py
xiufengliu/ETLMR
ad8b39d1cec5e0be6422fac056560237cda437de
[ "MIT" ]
null
null
null
# Copyright (c) 2011 Xiufeng Liu (xiliu@cs.aau.dk) # # This file is free software: you may copy, redistribute and/or modify it # under the terms of the GNU General Public License version 2 # as published by the Free Software Foundation. # # This file is distributed in the hope that it will be useful, but ...
39.196319
188
0.617468
# Copyright (c) 2011 Xiufeng Liu (xiliu@cs.aau.dk) # # This file is free software: you may copy, redistribute and/or modify it # under the terms of the GNU General Public License version 2 # as published by the Free Software Foundation. # # This file is distributed in the hope that it will be useful, but ...
0
0
0
2,813
0
2,578
0
-3
180
b211559b20709c691defd02f828f0d5049603ffd
5,175
py
Python
apps.py
stykes/certificate-blockchain
6336f270ffe26a92efa5874bd5437ef7ece358d7
[ "MIT" ]
null
null
null
apps.py
stykes/certificate-blockchain
6336f270ffe26a92efa5874bd5437ef7ece358d7
[ "MIT" ]
null
null
null
apps.py
stykes/certificate-blockchain
6336f270ffe26a92efa5874bd5437ef7ece358d7
[ "MIT" ]
null
null
null
from blockchain import Blockchain from uuid import uuid4 from flask import Flask # Instantiate the Node app = Flask(__name__) # Generate a globally unique address for this node node_identifier = str(uuid4()).replace('-', '') #MINERS! blockchain = Blockchain() """ blockchain.new_transaction('ae13...
32.54717
326
0.602705
from blockchain import Blockchain import json from uuid import uuid4 import requests import ast from flask import Flask, jsonify, request # Instantiate the Node app = Flask(__name__) # Generate a globally unique address for this node node_identifier = str(uuid4()).replace('-', '') #MINERS! @app.rou...
0
3,876
0
0
0
0
0
-9
223
7d25a485c15489b6dbf822f20aebebae90e2b9bb
1,649
py
Python
xls/dslx/import_helpers.py
AdrianaDJ/xls
c6672aec22a13a5761a8cd29968bf317177b95b7
[ "Apache-2.0" ]
null
null
null
xls/dslx/import_helpers.py
AdrianaDJ/xls
c6672aec22a13a5761a8cd29968bf317177b95b7
[ "Apache-2.0" ]
null
null
null
xls/dslx/import_helpers.py
AdrianaDJ/xls
c6672aec22a13a5761a8cd29968bf317177b95b7
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # # Copyright 2020 The XLS Authors # # 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...
36.644444
77
0.765919
# Lint as: python3 # # Copyright 2020 The XLS Authors # # 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...
0
0
0
781
0
0
0
102
135
31cc735094e36568351e48c05d075d91a9e1324c
4,902
py
Python
venv/Lib/site-packages/baidubce/services/tsdb/tsdb_admin_client.py
dlfming/dd_catl_demo
6f6f3b502046f638150222c1eb3d68d2b65da04b
[ "MIT" ]
22
2015-10-26T03:00:11.000Z
2021-09-08T09:30:51.000Z
venv/Lib/site-packages/baidubce/services/tsdb/tsdb_admin_client.py
dlfming/dd_catl_demo
6f6f3b502046f638150222c1eb3d68d2b65da04b
[ "MIT" ]
8
2018-07-18T02:47:09.000Z
2020-12-10T02:30:37.000Z
venv/Lib/site-packages/baidubce/services/tsdb/tsdb_admin_client.py
dlfming/dd_catl_demo
6f6f3b502046f638150222c1eb3d68d2b65da04b
[ "MIT" ]
14
2016-01-12T11:57:38.000Z
2021-03-10T03:35:12.000Z
# Copyright 2014 Baidu, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
33.121622
97
0.660547
# Copyright 2014 Baidu, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
0
0
0
3,774
0
0
0
161
289
a2ec98d0e4298a31fbc6359a9cd06f3cd977d00d
9,380
py
Python
obd_reader.py
mperaza1/obdII
e5b457c18ebb3fddca4631e5562f795e2c4351b2
[ "MIT" ]
null
null
null
obd_reader.py
mperaza1/obdII
e5b457c18ebb3fddca4631e5562f795e2c4351b2
[ "MIT" ]
null
null
null
obd_reader.py
mperaza1/obdII
e5b457c18ebb3fddca4631e5562f795e2c4351b2
[ "MIT" ]
null
null
null
import tkinter as tk import obd # obd.logger.setLevel(obd.logging.DEBUG) connection = obd.OBD('\\.\\COM5') # auto-connects to USB or RF port window = tk.Tk() window.title("OBDII Reader") window.configure(bg="DimGray") # c = obd.commands['RPM'] # Dictionary of "Command Label String" to "OBD library command string" ...
37.370518
90
0.710554
import tkinter as tk import obd # obd.logger.setLevel(obd.logging.DEBUG) connection = obd.OBD('\\.\\COM5') # auto-connects to USB or RF port window = tk.Tk() window.title("OBDII Reader") window.configure(bg="DimGray") # c = obd.commands['RPM'] # Dictionary of "Command Label String" to "OBD library command string" ...
0
0
0
0
0
3,400
0
0
184
ad574625a7faf06d3d150edfe65e1d76d0fde6c7
394
py
Python
testmerge.py
jcq15/chooseCourseHelper
5509858e2f1eead6d029a474003c6f6f5e2a953f
[ "MIT" ]
2
2021-04-26T12:51:28.000Z
2021-09-24T02:35:56.000Z
testmerge.py
jcq15/chooseCourseHelper
5509858e2f1eead6d029a474003c6f6f5e2a953f
[ "MIT" ]
null
null
null
testmerge.py
jcq15/chooseCourseHelper
5509858e2f1eead6d029a474003c6f6f5e2a953f
[ "MIT" ]
2
2019-12-04T00:46:08.000Z
2019-12-04T00:46:09.000Z
import pandas as pd df1 = pd.read_csv('courses.csv') df2 = pd.read_csv('courses2.csv') #df1[['id','alter_id']] = df1[['id','alter_id']].astype(str) #df2[['id','alter_id']] = df2[['id','alter_id']].astype(str) print(df1.columns) print(df2.iloc[:,0:3].columns) df = pd.merge(df1, df2, how='inner', sort=False) # df = df....
30.307692
60
0.65736
import pandas as pd df1 = pd.read_csv('courses.csv') df2 = pd.read_csv('courses2.csv') #df1[['id','alter_id']] = df1[['id','alter_id']].astype(str) #df2[['id','alter_id']] = df2[['id','alter_id']].astype(str) print(df1.columns) print(df2.iloc[:,0:3].columns) df = pd.merge(df1, df2, how='inner', sort=False) # df = df....
0
0
0
0
0
0
0
0
0
853eebcc9a56e386c98c93e065ae466499381816
6,002
py
Python
python3-alpha/extra_modules/pyxmpp2/sasl/plain.py
stormtheh4ck3r/python-for-android
b9ea9161392f60566b81482b1e25cd77004d5c45
[ "Apache-2.0" ]
267
2015-03-22T15:23:48.000Z
2022-03-05T21:57:34.000Z
python3-alpha/extra_modules/pyxmpp2/sasl/plain.py
stormtheh4ck3r/python-for-android
b9ea9161392f60566b81482b1e25cd77004d5c45
[ "Apache-2.0" ]
133
2015-03-21T15:13:43.000Z
2021-12-11T23:37:58.000Z
python3-alpha/extra_modules/pyxmpp2/sasl/plain.py
stormtheh4ck3r/python-for-android
b9ea9161392f60566b81482b1e25cd77004d5c45
[ "Apache-2.0" ]
119
2015-04-28T16:07:10.000Z
2022-03-18T03:49:48.000Z
# # (C) Copyright 2003-2011 Jacek Konieczny <jajcus@jajcus.net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License Version # 2.1 as published by the Free Software Foundation. # # This program is distributed in the hope that it will be u...
36.156627
79
0.626791
# # (C) Copyright 2003-2011 Jacek Konieczny <jajcus@jajcus.net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License Version # 2.1 as published by the Free Software Foundation. # # This program is distributed in the hope that it will be u...
0
4,813
0
0
0
0
0
82
113
5dac1d887401fd2d02d6cb20cac151fc50c68532
30,771
py
Python
SLpackage/private/pacbio/pythonpkgs/kineticstools/lib/python2.7/site-packages/kineticsTools/ipdSummary.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
5
2022-02-20T07:10:02.000Z
2022-03-18T17:47:53.000Z
SLpackage/private/pacbio/pythonpkgs/kineticstools/lib/python2.7/site-packages/kineticsTools/ipdSummary.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
SLpackage/private/pacbio/pythonpkgs/kineticstools/lib/python2.7/site-packages/kineticsTools/ipdSummary.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
#! python ################################################################################# # Copyright (c) 2011-2013, Pacific Biosciences of California, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditi...
39.602317
145
0.614442
#! python ################################################################################# # Copyright (c) 2011-2013, Pacific Biosciences of California, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditi...
0
0
0
11,506
0
5,070
0
222
608
72d4dd27043bba36c6032d5fa3e87dcda53f6e70
3,165
py
Python
djangomom/account/models.py
emiamar/d
abfd0ca81224a1259fdfac92ed21ad771d901e18
[ "BSD-3-Clause" ]
null
null
null
djangomom/account/models.py
emiamar/d
abfd0ca81224a1259fdfac92ed21ad771d901e18
[ "BSD-3-Clause" ]
2
2018-02-27T07:56:18.000Z
2018-03-09T12:45:48.000Z
djangomom/account/models.py
emiamar/d
abfd0ca81224a1259fdfac92ed21ad771d901e18
[ "BSD-3-Clause" ]
2
2018-02-21T07:43:04.000Z
2018-11-10T18:09:26.000Z
from __future__ import unicode_literals import os from django.conf import settings import logging logger = logging.getLogger(__name__) DOC_ATTACHMENT = os.path.normpath( os.path.join(settings.BASE_DIR, '../', '../' 'APImonk.pdf') ) ACCOUNT_TYPE = ( (1, 'PRO'), (2, 'BASE'), ) DEFAULT_PASSWORD = 'admin@1...
27.051282
77
0.613902
from __future__ import unicode_literals import os from django.db import models from django.contrib.auth.models import User from django.conf import settings from mail.utils import send_emails from base.models import TimeStamp from project.models import Project import logging logger = logging.getLogger(__name__) DOC...
0
0
0
1,742
0
0
0
67
158
8c20fa287e7881e97c5c7c9f3e247c2945aa49bd
3,563
py
Python
gatewayconfig/bluetooth/characteristics/assert_location_characteristic.py
AndriiIevdoshenko/hm-config
f513d72dd8c67c040310d78071d8ac2de418d0d6
[ "MIT" ]
7
2021-07-09T16:54:39.000Z
2022-02-18T09:07:54.000Z
gatewayconfig/bluetooth/characteristics/assert_location_characteristic.py
AndriiIevdoshenko/hm-config
f513d72dd8c67c040310d78071d8ac2de418d0d6
[ "MIT" ]
137
2021-02-05T21:53:35.000Z
2022-03-31T23:31:54.000Z
gatewayconfig/bluetooth/characteristics/assert_location_characteristic.py
AndriiIevdoshenko/hm-config
f513d72dd8c67c040310d78071d8ac2de418d0d6
[ "MIT" ]
16
2021-02-15T11:25:37.000Z
2022-01-17T07:53:38.000Z
from gatewayconfig.logger import get_logger import gatewayconfig.protos.assert_location_pb2 as assert_location_pb2 import gatewayconfig.constants as constants logger = get_logger(__name__) DBUS_LOAD_SLEEP_SECONDS = 0.1
39.153846
112
0.678922
import dbus from time import sleep import h3 from lib.cputemp.service import Characteristic from gatewayconfig.logger import get_logger from gatewayconfig.helpers import string_to_dbus_encoded_byte_array from gatewayconfig.bluetooth.descriptors.assert_location_descriptor import AssertLocationDescriptor from gatewayco...
0
0
0
2,955
0
0
0
208
178
94bb8c1dc911a5581d2fb5a9655015302eaf08e1
818
py
Python
RBM.py
Ujjawal-K-Panchal/Movie-Recommendation-using-Restricted-Boltzmann-Machines
09fb56dec5312867bd8437db511056086de33a41
[ "BSD-3-Clause" ]
null
null
null
RBM.py
Ujjawal-K-Panchal/Movie-Recommendation-using-Restricted-Boltzmann-Machines
09fb56dec5312867bd8437db511056086de33a41
[ "BSD-3-Clause" ]
null
null
null
RBM.py
Ujjawal-K-Panchal/Movie-Recommendation-using-Restricted-Boltzmann-Machines
09fb56dec5312867bd8437db511056086de33a41
[ "BSD-3-Clause" ]
1
2021-01-15T10:56:16.000Z
2021-01-15T10:56:16.000Z
# -*- coding: utf-8 -*- """ Created on Sat Sep 28 21:23:00 2019 @author: Uchiha Madara """
29.214286
69
0.551345
# -*- coding: utf-8 -*- """ Created on Sat Sep 28 21:23:00 2019 @author: Uchiha Madara """ import torch class RBM(): def __init__(self, nv, nh): self.W = torch.randn(nh, nv) self.a = torch.randn(1, nh) self.b = torch.randn(1, nv) def sample_h(self, x): wx = torch.mm(x, self.W.t...
0
0
0
690
0
0
0
-9
45
170fec5fb3c12256fd1e308cb0d06958ffb37e96
152
py
Python
src/main.py
diogomsilvaa/top-players
7949890c4ba06fd372ab9c7c8cdbf767b00d5e42
[ "MIT" ]
null
null
null
src/main.py
diogomsilvaa/top-players
7949890c4ba06fd372ab9c7c8cdbf767b00d5e42
[ "MIT" ]
null
null
null
src/main.py
diogomsilvaa/top-players
7949890c4ba06fd372ab9c7c8cdbf767b00d5e42
[ "MIT" ]
null
null
null
import dataCollection as dc transferMarkt = dc.TransferMarkt() transferMarkt.init_browser() transferMarkt.getTop250() transferMarkt.printPlayersInfo()
21.714286
34
0.842105
import dataCollection as dc transferMarkt = dc.TransferMarkt() transferMarkt.init_browser() transferMarkt.getTop250() transferMarkt.printPlayersInfo()
0
0
0
0
0
0
0
0
0
c50c81d69d199fc44dd2ab5716ac90cd6ffad9d5
14,921
py
Python
components/ui_creator.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
3
2022-03-05T21:54:34.000Z
2022-03-15T12:55:45.000Z
components/ui_creator.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
2
2022-03-13T04:15:47.000Z
2022-03-30T11:51:41.000Z
components/ui_creator.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
null
null
null
__all__ = ['UICreator', ] from kivy.lang.builder import Builder Builder.load_string(""" #: import hex utils.colors.hex <UICreator>: kv_code_input: code_input splitter_kv_code_input: splitter_kv grid_widget_tree: grid_widget_tree splitter_property: splitter_property splitter_widget_tree: splitter...
37.39599
87
0.433751
__all__ = ['UICreator', ] from utils.utils import get_designer from kivy.app import App from kivy.clock import Clock from kivy.lang.builder import Builder from kivy.properties import ObjectProperty from kivy.uix.floatlayout import FloatLayout Builder.load_string(""" #: import hex utils.colors.hex <UICreator>: ...
0
0
0
4,187
0
0
0
69
135
45ee805f01f9aaeb166bd38905c0d475f3c26174
538
py
Python
ibsng/handler/invoice/get_invoice_by_i_d.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
6
2018-03-06T10:16:36.000Z
2021-12-05T12:43:10.000Z
ibsng/handler/invoice/get_invoice_by_i_d.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
3
2018-03-06T10:27:08.000Z
2022-01-02T15:21:27.000Z
ibsng/handler/invoice/get_invoice_by_i_d.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
3
2018-01-06T16:28:31.000Z
2018-09-17T19:47:19.000Z
"""Get invoice by id API method."""
21.52
47
0.598513
"""Get invoice by id API method.""" from ibsng.handler.handler import Handler class getInvoiceByID(Handler): """Get invoice by id method class.""" def control(self): """Validate inputs after setup method. :return: None :rtype: None """ self.is_valid(self.invoice_id, i...
0
0
0
436
0
0
0
20
45
e88c030223573ae40d784e43ec09c11035d50d00
9,214
py
Python
old_stuff/harold/_static_ctrl_design.py
weightan/quaternion_polynomials
50d00bb883c4a4249f13154cffcb459a1319ecb9
[ "MIT" ]
154
2015-05-11T03:33:54.000Z
2022-02-23T23:34:28.000Z
old_stuff/harold/_static_ctrl_design.py
weightan/quaternion_polynomials
50d00bb883c4a4249f13154cffcb459a1319ecb9
[ "MIT" ]
43
2015-05-11T10:35:43.000Z
2022-02-22T10:02:10.000Z
old_stuff/harold/_static_ctrl_design.py
weightan/quaternion_polynomials
50d00bb883c4a4249f13154cffcb459a1319ecb9
[ "MIT" ]
22
2015-06-01T21:32:57.000Z
2021-09-27T13:35:38.000Z
import numpy as np from numpy import eye, zeros, block, array, poly, diff from numpy.linalg import matrix_power from scipy.linalg import (solve, eigvals, block_diag, solve_continuous_are as care, solve_discrete_are as dare) from ._arg_utils import _check_for_state_or_transfer from ._classes import Transfer, transfer_t...
35.034221
79
0.582592
import numpy as np from numpy import eye, zeros, block, array, poly, diff from numpy.linalg import matrix_power from scipy.linalg import (solve, eigvals, block_diag, solve_continuous_are as care, solve_discrete_are as dare) from ._arg_utils import _check_for_state_or...
6
0
0
0
0
0
0
52
0
45196a67206a3245b97bb5e220cdec7c62cd801e
2,592
py
Python
intake/anonymous_names.py
cforlando/intake
a5233d5c0f862f28ee265b9b4831405aabeec7e2
[ "MIT" ]
51
2016-07-20T02:26:57.000Z
2021-07-07T14:45:06.000Z
intake/anonymous_names.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
1,091
2016-04-29T18:07:45.000Z
2021-04-19T18:39:39.000Z
intake/anonymous_names.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
24
2016-06-14T18:10:43.000Z
2021-11-14T20:26:39.000Z
fake_first_names = [ "Purple", "Aqua", "Red", "Amber", "Yellow", "Blue", "Green", "Pink", "Crimson", "Orange", "Chartreuse", "Cerulean", "Golden", "Pastel", "Teal", "Turqoise", "Indigo", "Lavender", "Violet", "Vermillion", "Silver", ...
14.561798
40
0.467978
import random fake_first_names = [ "Purple", "Aqua", "Red", "Amber", "Yellow", "Blue", "Green", "Pink", "Crimson", "Orange", "Chartreuse", "Cerulean", "Golden", "Pastel", "Teal", "Turqoise", "Indigo", "Lavender", "Violet", "Vermillion", ...
0
0
0
0
0
102
0
-8
45
7292db790bea737632edee1ad648190cfd6bdb4f
987
py
Python
dataactcore/migrations/versions/78edf5b0d088_add_user_to_job.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2019-06-22T21:53:16.000Z
2019-06-22T21:53:16.000Z
dataactcore/migrations/versions/78edf5b0d088_add_user_to_job.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
3
2021-08-22T11:47:45.000Z
2022-03-29T22:06:49.000Z
dataactcore/migrations/versions/78edf5b0d088_add_user_to_job.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2020-07-17T23:50:56.000Z
2020-07-17T23:50:56.000Z
"""add user to job Revision ID: 78edf5b0d088 Revises: 23f213c103cf Create Date: 2016-12-06 11:57:54.599715 """ # revision identifiers, used by Alembic. revision = '78edf5b0d088' down_revision = '23f213c103cf' branch_labels = None depends_on = None
22.953488
103
0.693009
"""add user to job Revision ID: 78edf5b0d088 Revises: 23f213c103cf Create Date: 2016-12-06 11:57:54.599715 """ # revision identifiers, used by Alembic. revision = '78edf5b0d088' down_revision = '23f213c103cf' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(engine_...
0
0
0
0
0
588
0
3
137
0e1a2803d278e6d16f6a3f9a57688abe01866568
9,428
py
Python
vitrage/storage/sqlalchemy/migration/alembic_migrations/versions/4e44c9414dff_initial_migration.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
89
2015-09-30T21:42:17.000Z
2022-03-28T16:31:19.000Z
vitrage/storage/sqlalchemy/migration/alembic_migrations/versions/4e44c9414dff_initial_migration.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
4
2015-12-13T13:06:53.000Z
2016-01-03T19:51:28.000Z
vitrage/storage/sqlalchemy/migration/alembic_migrations/versions/4e44c9414dff_initial_migration.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
43
2015-11-04T15:54:27.000Z
2021-12-10T14:24:03.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
36.122605
79
0.538078
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
0
0
0
0
0
8,532
0
38
113
60d58af7abd071259ecc4ab90d34f396fe0805f6
12,444
py
Python
run.py
entewurzelauskuh/unswnb15-to-elastic-tool
d4ef758c72994c654329357b258cafb7141ec34a
[ "Unlicense" ]
null
null
null
run.py
entewurzelauskuh/unswnb15-to-elastic-tool
d4ef758c72994c654329357b258cafb7141ec34a
[ "Unlicense" ]
null
null
null
run.py
entewurzelauskuh/unswnb15-to-elastic-tool
d4ef758c72994c654329357b258cafb7141ec34a
[ "Unlicense" ]
null
null
null
import glob import os import ssl import argparse import urllib3 import json import logging import urllib.request import base64 import pandas as pd import numpy as np from pathlib import Path from datetime import datetime urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) urllib3.disable_warnings(urlli...
43.663158
119
0.487142
import glob import os import ssl import argparse import urllib3 import json import logging import urllib.request import base64 import pandas as pd import numpy as np from pathlib import Path from datetime import datetime urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) urllib3.disable_warnings(urlli...
0
0
0
0
0
0
0
0
0
704c16df000fb559c0383973ac7b78f7824931dd
2,102
py
Python
d3rlpy/wrappers/sb3.py
alxlampe/d3rlpy
af7e6bd018a51f95138d121f59c50dc36ec87e3a
[ "MIT" ]
null
null
null
d3rlpy/wrappers/sb3.py
alxlampe/d3rlpy
af7e6bd018a51f95138d121f59c50dc36ec87e3a
[ "MIT" ]
null
null
null
d3rlpy/wrappers/sb3.py
alxlampe/d3rlpy
af7e6bd018a51f95138d121f59c50dc36ec87e3a
[ "MIT" ]
null
null
null
from gym.spaces import Discrete from d3rlpy.dataset import MDPDataset def to_mdp_dataset(replay_buffer): """ Returns d3rlpy's MDPDataset from SB3's ReplayBuffer Args: replay_buffer (stable_baselines3.common.buffers.ReplayBuffer): SB3's replay buffer. Returns: d3rlpy.dataset....
31.373134
88
0.624167
from gym.spaces import Discrete from d3rlpy.dataset import MDPDataset class SB3Wrapper: """ A wrapper for d3rlpy algorithms so they can be used with Stable-Baseline3 (SB3). Args: algo (d3rlpy.algos.base.AlgoBase): algorithm. Attributes: algo (d3rlpy.algos.base.AlgoBase): algorithm. ...
0
0
0
1,268
0
0
0
0
23
be7219b11d8b67e945bbcb40aa0ae4e3a2f27d2a
451
py
Python
osmaxx/excerptexport/migrations/0044_remove_extractionorder__extraction_configuration.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
27
2015-03-30T14:17:26.000Z
2022-02-19T17:30:44.000Z
osmaxx/excerptexport/migrations/0044_remove_extractionorder__extraction_configuration.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
483
2015-03-09T16:58:03.000Z
2022-03-14T09:29:06.000Z
osmaxx/excerptexport/migrations/0044_remove_extractionorder__extraction_configuration.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
6
2015-04-07T07:38:30.000Z
2020-04-01T12:45:53.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-08 13:35 from __future__ import unicode_literals
22.55
78
0.662971
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-08 13:35 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('excerptexport', '0043_extractionorder_coordinate_reference_system'), ] operations = [ ...
0
0
0
281
0
0
0
11
46
eaa3d3d4027bdfd4b06bc4a157f5712c14ef5e10
1,607
py
Python
text_models/embeddeds/word2vec/word2vec.py
MCardus/topic-modelling
12bff0a92d1fc25e497b2dcc45ce91a3de3d4d31
[ "MIT" ]
null
null
null
text_models/embeddeds/word2vec/word2vec.py
MCardus/topic-modelling
12bff0a92d1fc25e497b2dcc45ce91a3de3d4d31
[ "MIT" ]
null
null
null
text_models/embeddeds/word2vec/word2vec.py
MCardus/topic-modelling
12bff0a92d1fc25e497b2dcc45ce91a3de3d4d31
[ "MIT" ]
null
null
null
"""Word2Vec Model. The package provides fit, transform and prepocessing services"""
39.195122
120
0.679527
"""Word2Vec Model. The package provides fit, transform and prepocessing services""" import logging from gensim.models import Word2Vec as Word2VecGensim from text_models.utils import setup_logging, tokenize import numpy as np class Word2vec(object): def __init__(self, default_model_pickle_filepath="w2v.model"): ...
0
0
0
1,357
0
0
0
53
112
8c01d9d5af686083d1e071e9652eb0c0c60d98a5
3,024
py
Python
src/main/python/ui/impulse.py
bmiller/beqdesigner
36d0c780507a564536038e2c9fc3b03b75dedaf4
[ "MIT" ]
16
2019-04-12T00:04:56.000Z
2022-03-15T14:26:56.000Z
src/main/python/ui/impulse.py
bmiller/beqdesigner
36d0c780507a564536038e2c9fc3b03b75dedaf4
[ "MIT" ]
400
2018-08-27T10:04:00.000Z
2022-03-15T21:32:33.000Z
src/main/python/ui/impulse.py
bmiller/beqdesigner
36d0c780507a564536038e2c9fc3b03b75dedaf4
[ "MIT" ]
6
2018-09-19T21:02:27.000Z
2020-10-18T04:11:01.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'impulse.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing.
50.4
114
0.747354
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'impulse.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGu...
0
0
0
2,667
0
0
0
21
46
16c73a6ae1362feceb0236ce71e62fec96a50541
947
py
Python
14_funcoes/a123_callable_packing_nomeador.py
smartao/estudos_python
252a2e592ff929dfc6c06fc09b42cb7063ad0b5a
[ "MIT" ]
null
null
null
14_funcoes/a123_callable_packing_nomeador.py
smartao/estudos_python
252a2e592ff929dfc6c06fc09b42cb7063ad0b5a
[ "MIT" ]
9
2019-11-15T14:21:43.000Z
2020-03-15T14:37:13.000Z
14_funcoes/a123_callable_packing_nomeador.py
smartao/estudos_python
252a2e592ff929dfc6c06fc09b42cb7063ad0b5a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' Usando **kargs = **params, deveremos passsar parametros nomeados Linhas 25 e 26 Nesse caso o cdigo fica mais legivel do que usando parametros posicionais como no arquivo callable_packing.py ''' if __name__ == '__main__': preco_bruto = 134.98 preco_final = calc_preco_final(preco_brut...
27.852941
74
0.724393
#!/usr/bin/python3 ''' Usando **kargs = **params, deveremos passsar parametros nomeados Linhas 25 e 26 Nesse caso o código fica mais legivel do que usando parametros posicionais como no arquivo callable_packing.py ''' def calc_preco_final(preco_bruto, calc_imposto, **params): return preco_bruto + preco_bruto * c...
8
0
0
0
0
209
0
0
69
083d5e4ad0388119d16081a2cffdbc46018befea
4,587
py
Python
experiments/build_run_commands.py
timrudner/snr_issues_in_deep_gps
df7dcbc7f2380514c28286b6a924ed9b8b5f45f6
[ "Apache-2.0" ]
5
2020-11-17T18:22:24.000Z
2021-07-30T15:02:54.000Z
experiments/build_run_commands.py
OATML/snr_issues_in_deep_gps
d64b1b7902cf04e752eaa04d91f2a4125f70caa8
[ "Apache-2.0" ]
null
null
null
experiments/build_run_commands.py
OATML/snr_issues_in_deep_gps
d64b1b7902cf04e752eaa04d91f2a4125f70caa8
[ "Apache-2.0" ]
2
2020-11-01T15:42:39.000Z
2020-11-02T16:19:45.000Z
"""Prints the commands to generate the data files required for each figure/table in the paper. The plotting code calls this, to print out the required commands before attempting to plot. """
30.58
108
0.612383
"""Prints the commands to generate the data files required for each figure/table in the paper. The plotting code calls this, to print out the required commands before attempting to plot. """ import os from typing import List import experiment_common def command_printer(func): def wrapper(*args, **kwargs): ...
0
2,689
0
0
0
1,382
0
-7
320
7321d0a02a5a3c5b6faa5c08c9b4ddd698d3183a
994
py
Python
server/server.py
alex-evans/happy_hour
661e21e23ff647ffe9bf86c45b904621dd3b9a3d
[ "MIT" ]
null
null
null
server/server.py
alex-evans/happy_hour
661e21e23ff647ffe9bf86c45b904621dd3b9a3d
[ "MIT" ]
4
2021-03-30T13:21:30.000Z
2021-09-22T19:01:39.000Z
server/server.py
alex-evans/happy_hour
661e21e23ff647ffe9bf86c45b904621dd3b9a3d
[ "MIT" ]
null
null
null
from database import app ###################### ###################### if __name__ == '__main__': app.run()
18.407407
45
0.641851
from flask import request from database import app from handlers import lists from handlers import cmd_print from handlers import tasks from handlers import users @app.route('/user/<username>') def handle_user(username, methods=['GET']): return users.get_user(username) @app.route('/tasks/{id}', methods=['GET...
0
593
0
0
0
0
0
28
250
b44ab208610c99c2650d8058de41d0f33e642b5f
1,212
py
Python
workspace/module/houdini-python-2.7/LxHouBasic/houBscMethods/_houBscMtdFile.py
no7hings/Lynxi
43c745198a714c2e5aca86c6d7a014adeeb9abf7
[ "MIT" ]
2
2018-03-06T03:33:55.000Z
2019-03-26T03:25:11.000Z
workspace/module/houdini-python-2.7/LxHouBasic/houBscMethods/_houBscMtdFile.py
no7hings/lynxi
43c745198a714c2e5aca86c6d7a014adeeb9abf7
[ "MIT" ]
null
null
null
workspace/module/houdini-python-2.7/LxHouBasic/houBscMethods/_houBscMtdFile.py
no7hings/lynxi
43c745198a714c2e5aca86c6d7a014adeeb9abf7
[ "MIT" ]
null
null
null
# coding:utf-8 from .. import houBscCfg
30.3
80
0.561056
# coding:utf-8 from LxBasic import bscObjects from ..import houBscCfg class HoAlembicFile(houBscCfg.HouBscUtility): @classmethod def getDagTreeObj(cls, *args): def rscFnc_(pathStr_, typeStr_, childRaws_): if dagTreeObj.hasNode(pathStr_) is False: dagTreeObj.addNode(pathStr...
0
1,067
0
24
0
0
0
8
71
983e61b6a0de77454cbafe30591eefa0865ba79c
4,159
py
Python
mnist_testing/scramble_comp.py
lightwell64646/cylindricalsfmlearner
2291d30eaa8318961e4e9eeed616e2aa9b22583c
[ "MIT" ]
null
null
null
mnist_testing/scramble_comp.py
lightwell64646/cylindricalsfmlearner
2291d30eaa8318961e4e9eeed616e2aa9b22583c
[ "MIT" ]
null
null
null
mnist_testing/scramble_comp.py
lightwell64646/cylindricalsfmlearner
2291d30eaa8318961e4e9eeed616e2aa9b22583c
[ "MIT" ]
null
null
null
import sys import os sys.path.insert(0,os.path.split(os.path.abspath(__file__))[0] + '/../prune_framework') from absl import flags from absl import app # get command line inputs flags.DEFINE_string("saliency_report_path", "reports/saliencyReport", "the path to write the report on pruning success") flags.DEFINE_string...
54.723684
209
0.787449
import sys import os sys.path.insert(0,os.path.split(os.path.abspath(__file__))[0] + '/../prune_framework') from prune_distributed import prune_trainer_distributed from prune_single import prune_trainer from evaluate_saliency import evaluate_saliency from mnist_net import mnist_net_prune_fin_shape from mnist_data_load...
0
0
0
0
0
490
0
242
247
99d4b0a00598ad7edd8d35c6575a08252b3d5505
2,039
py
Python
azaka_dump_parser/parser.py
mooncell07/Azaka-Dump-Parser
9c10b8e6b4dd4079a38eb075a77e05bc924a1c0e
[ "MIT" ]
null
null
null
azaka_dump_parser/parser.py
mooncell07/Azaka-Dump-Parser
9c10b8e6b4dd4079a38eb075a77e05bc924a1c0e
[ "MIT" ]
null
null
null
azaka_dump_parser/parser.py
mooncell07/Azaka-Dump-Parser
9c10b8e6b4dd4079a38eb075a77e05bc924a1c0e
[ "MIT" ]
null
null
null
from __future__ import annotations import typing as t from .vote import Vote from .trait import Trait from .tag import Tag __all__ = ("Parser",) TYPES = t.Union[Vote, Trait, Tag]
25.17284
94
0.558117
from __future__ import annotations import gzip import typing as t from .vote import Vote from .trait import Trait from .tag import Tag __all__ = ("Parser",) TYPES = t.Union[Vote, Trait, Tag] class Parser: """ Main entry point for the library. """ __slots__ = ("filename", "cls") def __init__(se...
0
194
0
1,627
0
0
0
-10
46
4c0afee586e8b586674a21bc6b5a8cf22bc3b3de
1,553
py
Python
4th_100/problem301.py
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
null
null
null
4th_100/problem301.py
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
null
null
null
4th_100/problem301.py
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
1
2021-11-02T12:08:46.000Z
2021-11-02T12:08:46.000Z
# Question: https://projecteuler.net/problem=301 import numpy as np # According to this https://en.wikipedia.org/wiki/Nim, the next player loses when the XOR of 3 heaps is 0. # When XOR(n, 2n, 3n) == 0? It occurs when n has consecutive 1's. # Why? # bit b1 b2 b3 # carry of n+2n x y z # ...
31.693878
146
0.45718
# Question: https://projecteuler.net/problem=301 import numpy as np # According to this https://en.wikipedia.org/wiki/Nim, the next player loses when the XOR of 3 heaps is 0. # When XOR(n, 2n, 3n) == 0? It occurs when n has consecutive 1's. # Why? # bit b1 b2 b3 # carry of n+2n x y z # ...
0
0
0
0
0
0
0
0
0
2948cdc22c3e24113206a6e873da50dc53303866
7,016
py
Python
lib/pymedphys/_data/upload.py
ethanio12345/pymedphys
cb34c992de8d442eced3385018a194364060092d
[ "Apache-2.0" ]
207
2019-01-29T09:53:04.000Z
2022-03-26T10:34:03.000Z
lib/pymedphys/_data/upload.py
ethanio12345/pymedphys
cb34c992de8d442eced3385018a194364060092d
[ "Apache-2.0" ]
1,209
2019-01-29T07:52:27.000Z
2022-03-31T20:11:24.000Z
lib/pymedphys/_data/upload.py
ethanio12345/pymedphys
cb34c992de8d442eced3385018a194364060092d
[ "Apache-2.0" ]
58
2019-03-29T09:06:18.000Z
2022-03-24T07:44:22.000Z
# Copyright (C) 2019 Simon Biggs # 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,...
32.632558
98
0.674173
# Copyright (C) 2019 Simon Biggs # 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,...
0
0
0
0
0
5,953
0
39
388
12d2a0c8dfa1ebd5e2a67f1dc2ae2c5fae0ea840
6,423
py
Python
models/QuatDE.py
nhutnamhcmus/QuatRDE
3c97b472d435af40700a06c1e3c43c84cfd2eb7b
[ "MIT" ]
null
null
null
models/QuatDE.py
nhutnamhcmus/QuatRDE
3c97b472d435af40700a06c1e3c43c84cfd2eb7b
[ "MIT" ]
null
null
null
models/QuatDE.py
nhutnamhcmus/QuatRDE
3c97b472d435af40700a06c1e3c43c84cfd2eb7b
[ "MIT" ]
null
null
null
import torch.autograd as autograd import torch.nn as nn import torch.optim as optim # origin
40.14375
112
0.609684
import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import numpy as np from .Model import Model from numpy.random import RandomState # origin class QuatDE(Model): def __init__(self, config): sup...
0
0
0
6,146
0
0
0
30
154
076d9a12d7abe0fbcf297a0f9cbd7f722d65328b
2,050
py
Python
model_brain_segmentation/inference.py
uniMedic/uniMedic-Models
8386db0a786334c881d5870ff213df6018660f9c
[ "Apache-2.0" ]
5
2020-10-04T17:21:53.000Z
2022-02-18T21:36:54.000Z
model_brain_segmentation/inference.py
uniMedic/uniMedic-Models
8386db0a786334c881d5870ff213df6018660f9c
[ "Apache-2.0" ]
6
2020-10-04T17:17:01.000Z
2020-10-13T08:49:26.000Z
model_brain_segmentation/inference.py
uniMedic/uniMedic-Models
8386db0a786334c881d5870ff213df6018660f9c
[ "Apache-2.0" ]
2
2020-09-16T16:35:53.000Z
2021-03-22T04:29:30.000Z
import os import sys sys.path.append(os.path.abspath(os.path.dirname(__file__)))
31.060606
84
0.658049
import os import sys import numpy as np import torch from medpy.filter.binary import largest_connected_component import base64 from io import BytesIO, StringIO from skimage.io import imsave from PIL import Image sys.path.append(os.path.abspath(os.path.dirname(__file__))) from unet import UNet from segmentation_utils ...
0
0
0
1,663
0
0
0
82
221
959253af46970b2058664cd34daae0404aada928
5,499
py
Python
Colour.py
MitchellLemieux/EngPhysAdventure
a967844f20c01065f9a835ab8ffbc0e5815d0b88
[ "MIT" ]
3
2018-04-21T21:46:57.000Z
2020-01-01T01:20:10.000Z
Colour.py
MitchellLemieux/EngPhysAdventure
a967844f20c01065f9a835ab8ffbc0e5815d0b88
[ "MIT" ]
null
null
null
Colour.py
MitchellLemieux/EngPhysAdventure
a967844f20c01065f9a835ab8ffbc0e5815d0b88
[ "MIT" ]
4
2018-04-17T21:46:41.000Z
2020-07-04T19:31:44.000Z
""" This function is just to keep track of colours from colorama and any other stylization These also have the variables that set the colours """ import colorama # Colour module, no bolding on windows :( from colorama import Fore, Back, Style colorama.init() # Text Colour definitions (foreground) # Text colours ...
47
720
0.77305
""" This function is just to keep track of colours from colorama and any other stylization These also have the variables that set the colours """ import colorama # Colour module, no bolding on windows :( from colorama import Fore, Back, Style colorama.init() # Text Colour definitions (foreground) # Text colours ...
0
0
0
0
0
0
0
0
0
d69b2213ee1c346942346f124900c3b50c9abdf2
2,576
py
Python
test/PR_test/integration_test/backend/test_save_model_load_model.py
purujitb/fastestimator
32369742e58a091f83021694b91db7bb375bb088
[ "Apache-2.0" ]
null
null
null
test/PR_test/integration_test/backend/test_save_model_load_model.py
purujitb/fastestimator
32369742e58a091f83021694b91db7bb375bb088
[ "Apache-2.0" ]
null
null
null
test/PR_test/integration_test/backend/test_save_model_load_model.py
purujitb/fastestimator
32369742e58a091f83021694b91db7bb375bb088
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
34.810811
93
0.70691
# Copyright 2020 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
0
0
0
1,193
0
424
0
61
203
646ab4d38e3db35aa6f4fbfa736c56c7fddfbf0b
1,886
py
Python
sphero_nav_glue/src/sphero_twist.py
ovgu-FINken/SpheroSim
bcdeef58020d531b862d21f7d14a0072ee9f0b1c
[ "MIT" ]
1
2017-11-30T10:36:30.000Z
2017-11-30T10:36:30.000Z
sphero_nav_glue/src/sphero_twist.py
ovgu-FINken/SpheroSim
bcdeef58020d531b862d21f7d14a0072ee9f0b1c
[ "MIT" ]
null
null
null
sphero_nav_glue/src/sphero_twist.py
ovgu-FINken/SpheroSim
bcdeef58020d531b862d21f7d14a0072ee9f0b1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division import rospy if __name__ == '__main__': try: rospy.init_node("sphero_twist") s = SpheroTwist() except rospy.ROSInterruptException: pass # 1 m/sec -> 255/2 unit/sec
31.966102
95
0.609226
#!/usr/bin/env python from __future__ import division import rospy import numpy as np import math from geometry_msgs.msg import Twist from std_msgs.msg import ColorRGBA from tracking.msg import TaggedPose2D import tf.transformations def yaw_rot_matrix(a): return np.array(((math.cos(a), -math.sin(a), 0.0, 0.0), ...
0
0
0
1,186
0
225
0
34
178
e12793b4232c175589da5d05f8c53d09057a6155
152
py
Python
CyTrack/CyPredict/urls.py
M2I-HABET/CyTrack
4bd53aebf422d027790597a3d592e0066c700523
[ "MIT" ]
null
null
null
CyTrack/CyPredict/urls.py
M2I-HABET/CyTrack
4bd53aebf422d027790597a3d592e0066c700523
[ "MIT" ]
9
2020-02-11T23:51:30.000Z
2021-07-02T16:07:14.000Z
CyTrack/CyPredict/urls.py
M2I-HABET/CyTrack
4bd53aebf422d027790597a3d592e0066c700523
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'Prediction', views.predictionOutPut), url(r'^$', views.getParams) ]
19
47
0.697368
from django.conf.urls import url from . import views urlpatterns = [ url(r'Prediction', views.predictionOutPut), url(r'^$', views.getParams) ]
0
0
0
0
0
0
0
0
0
9cd721f6e7ec155f93d073d4c0ebd2ca7ae70bfd
2,729
py
Python
src/sage/categories/algebra_functor.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
2
2015-08-11T05:05:47.000Z
2019-05-15T17:27:25.000Z
src/sage/categories/algebra_functor.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/categories/algebra_functor.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
1
2020-07-24T11:56:55.000Z
2020-07-24T11:56:55.000Z
""" Algebra Functorial Construction AUTHORS: - Nicolas M. Thiery (2010): initial revision """ #***************************************************************************** # Copyright (C) 2010 Nicolas M. Thiery <nthiery at users.sf.net> # # Distributed under the terms of the GNU General Public License (GPL) # ...
30.322222
124
0.60535
""" Algebra Functorial Construction AUTHORS: - Nicolas M. Thiery (2010): initial revision """ #***************************************************************************** # Copyright (C) 2010 Nicolas M. Thiery <nthiery at users.sf.net> # # Distributed under the terms of the GNU General Public License (GPL) # ...
0
0
0
2,048
0
0
0
148
91
a6e25374baefe42a37c612e4cbe2ecea29c0b05d
374
py
Python
data_view.py
RitvikDayal/D-VAT
86a093d07b0f930aeb090638b2192a60776f47c0
[ "MIT" ]
2
2020-06-20T10:15:50.000Z
2021-02-12T17:16:24.000Z
data_view.py
RitvikDayal/D-VAT
86a093d07b0f930aeb090638b2192a60776f47c0
[ "MIT" ]
null
null
null
data_view.py
RitvikDayal/D-VAT
86a093d07b0f930aeb090638b2192a60776f47c0
[ "MIT" ]
null
null
null
bg_color = '#394b5c' '''-------------------------------Window Configuration----------------------------------------''' root = Tk() root.title('Data Visualizer and Analyzer') root.iconbitmap(r'icon.ico') root.config(bg=bg_color) root.resizable(width=False, height=False) root.geometry('850x400+450+150')
20.777778
97
0.606952
from tkinter import * from pandastable import Table, TableModel bg_color = '#394b5c' '''-------------------------------Window Configuration----------------------------------------''' root = Tk() root.title('Data Visualizer and Analyzer') root.iconbitmap(r'icon.ico') root.config(bg=bg_color) root.resizable(width=False...
0
0
0
0
0
0
0
20
44
b4039d6b701619f53ba3f8ebbcc15b6cf60fbcec
3,651
py
Python
gocardless_pro/services/billing_request_templates_service.py
gdvalderrama/gocardless-pro-python
0ff8001f5bba11673c4fa0f30d26eca61a1219ba
[ "MIT" ]
null
null
null
gocardless_pro/services/billing_request_templates_service.py
gdvalderrama/gocardless-pro-python
0ff8001f5bba11673c4fa0f30d26eca61a1219ba
[ "MIT" ]
null
null
null
gocardless_pro/services/billing_request_templates_service.py
gdvalderrama/gocardless-pro-python
0ff8001f5bba11673c4fa0f30d26eca61a1219ba
[ "MIT" ]
null
null
null
# WARNING: Do not edit by hand, this file was generated by Crank: # # https://github.com/gocardless/crank # from .. import resources from .. import errors
29.92623
79
0.590523
# WARNING: Do not edit by hand, this file was generated by Crank: # # https://github.com/gocardless/crank # from . import base_service from .. import resources from ..paginator import Paginator from .. import errors class BillingRequestTemplatesService(base_service.BaseService): """Service class that provides a...
0
0
0
3,406
0
0
0
17
68
1c1b42df6e0de2bfe154872980859cbb9b2a6228
4,357
py
Python
python/batch_errors.py
oracle-samples/oracle-db-examples
4a677b8cf012263c050868049b5c9603787aa1b9
[ "Apache-2.0" ]
1
2022-03-31T11:26:48.000Z
2022-03-31T11:26:48.000Z
python/batch_errors.py
oracle-samples/oracle-db-examples
4a677b8cf012263c050868049b5c9603787aa1b9
[ "Apache-2.0" ]
null
null
null
python/batch_errors.py
oracle-samples/oracle-db-examples
4a677b8cf012263c050868049b5c9603787aa1b9
[ "Apache-2.0" ]
3
2022-03-29T07:50:59.000Z
2022-03-31T12:29:02.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2016, 2022, Oracle and/or its affiliates. # # This software is dual-licensed to you under the Universal Permissive License # (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License # 2.0 as shown at http...
39.972477
79
0.669497
#------------------------------------------------------------------------------ # Copyright (c) 2016, 2022, Oracle and/or its affiliates. # # This software is dual-licensed to you under the Universal Permissive License # (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License # 2.0 as shown at http...
0
0
0
0
0
0
0
0
0
cea15ddea288d5037fc25f67c87f97ed238ee63e
153
py
Python
code/4/binary_converter.py
TeamLab/introduction_to_pythoy_TEAMLAB_MOOC
ebf1ff02d6a341bfee8695eac478ff8297cb97e4
[ "MIT" ]
65
2017-11-01T01:57:21.000Z
2022-02-08T13:36:25.000Z
code/4/binary_converter.py
TeamLab/introduction_to_pythoy_TEAMLAB_MOOC
ebf1ff02d6a341bfee8695eac478ff8297cb97e4
[ "MIT" ]
9
2017-11-03T15:05:30.000Z
2018-05-17T03:18:36.000Z
code/4/binary_converter.py
TeamLab/introduction_to_pythoy_TEAMLAB_MOOC
ebf1ff02d6a341bfee8695eac478ff8297cb97e4
[ "MIT" ]
64
2017-11-01T01:57:23.000Z
2022-01-19T03:52:12.000Z
decimal = 10 result = '' while (decimal > 0): remainder = decimal % 2 decimal = decimal // 2 result = str(remainder) + result print (result)
19.125
36
0.620915
decimal = 10 result = '' while (decimal > 0): remainder = decimal % 2 decimal = decimal // 2 result = str(remainder) + result print (result)
0
0
0
0
0
0
0
0
0
064890dec638634d28dfce77508ddf000825353e
591
py
Python
example.py
jasonrute/puzzle_cube_code
cf0238bc333d55e3637a4a6a4f408d16d4e14418
[ "MIT" ]
2
2020-11-12T06:41:44.000Z
2022-02-27T13:50:38.000Z
example.py
jasonrute/puzzle_cube_code
cf0238bc333d55e3637a4a6a4f408d16d4e14418
[ "MIT" ]
null
null
null
example.py
jasonrute/puzzle_cube_code
cf0238bc333d55e3637a4a6a4f408d16d4e14418
[ "MIT" ]
2
2018-05-22T02:40:23.000Z
2018-07-28T11:14:41.000Z
from cube_model import CubeModel from cube_solver import CubeSolver from puzzle_cube import PuzzleCube # load the neural network from a file of saved weights cm = CubeModel() cm.load_from_config("../example/checkpoint_model_v1.0.5-r_gen034.h5") # create a new puzzle cube and randomize it pc = PuzzleCube() pc = pc.scr...
26.863636
78
0.764805
from cube_model import CubeModel from cube_solver import CubeSolver from puzzle_cube import PuzzleCube # load the neural network from a file of saved weights cm = CubeModel() cm.load_from_config("../example/checkpoint_model_v1.0.5-r_gen034.h5") # create a new puzzle cube and randomize it pc = PuzzleCube() pc = pc.scr...
0
0
0
0
0
0
0
0
0
4a2ef289cfac71d2f3901d1ca1267b3a2983f2ff
26,424
py
Python
aries_cloudagent/protocols/present_proof/dif/pres_exch.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
3
2020-05-19T05:25:25.000Z
2021-08-05T07:19:13.000Z
aries_cloudagent/protocols/present_proof/dif/pres_exch.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
51
2021-01-12T05:50:50.000Z
2022-03-25T06:03:13.000Z
aries_cloudagent/protocols/present_proof/dif/pres_exch.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
4
2020-04-08T10:00:58.000Z
2022-01-27T13:47:01.000Z
"""Schemas for dif presentation exchange attachment."""
26.610272
87
0.586966
"""Schemas for dif presentation exchange attachment.""" from marshmallow import ( fields, validate, EXCLUDE, INCLUDE, pre_load, post_dump, ValidationError, ) from typing import Sequence, Union, Mapping from ....messaging.models.base import BaseModelSchema, BaseModel from ....messaging.valid...
0
3,666
0
21,606
0
0
0
265
801
50e7ac18ae49dc2eac0d1929bb63be9624604ba1
976
py
Python
processamento_linguagem_natural_site.py
JoelRamosC/Algorithms_PYTHON
07a693f9729e92fd6a70b1840d06f718fc24a436
[ "MIT" ]
null
null
null
processamento_linguagem_natural_site.py
JoelRamosC/Algorithms_PYTHON
07a693f9729e92fd6a70b1840d06f718fc24a436
[ "MIT" ]
null
null
null
processamento_linguagem_natural_site.py
JoelRamosC/Algorithms_PYTHON
07a693f9729e92fd6a70b1840d06f718fc24a436
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 16 16:38:51 2021 @author: joelr """ import nltk nltk.download('stopwords') stopwords = nltk.corpus.stopwords.words('portuguese') import urllib.request from bs4 import BeautifulSoup response = urllib.request.urlopen('https://robo14bis.000webhostapp.com/'...
21.217391
74
0.644467
# -*- coding: utf-8 -*- """ Created on Thu Sep 16 16:38:51 2021 @author: joelr """ import nltk nltk.download('stopwords') stopwords = nltk.corpus.stopwords.words('portuguese') import urllib.request from bs4 import BeautifulSoup response = urllib.request.urlopen('https://robo14bis.000webhostapp.com/'...
0
0
0
0
0
0
0
0
0
75af01d8ccaba36399976f5ea025568b69c4c553
6,048
py
Python
User/FNet_train.py
NemoursResearch/FormantTracking
7053e6add8672dc00aa70f6549d90ff935f96748
[ "MIT" ]
2
2021-09-01T14:22:23.000Z
2022-03-25T03:47:04.000Z
User/FNet_train.py
NemoursResearch/FormantTracking
7053e6add8672dc00aa70f6549d90ff935f96748
[ "MIT" ]
null
null
null
User/FNet_train.py
NemoursResearch/FormantTracking
7053e6add8672dc00aa70f6549d90ff935f96748
[ "MIT" ]
1
2021-08-31T18:20:28.000Z
2021-08-31T18:20:28.000Z
#!/usr/bin/env python # coding: utf-8 # # FormantNet Training Script (user-friendly version) # # This script is a user-friendly version of the code used in the IS2021 and PaPE2021 papers. It can be used as an executable script to train a FormantNet model, as described below. The trained model can then be run on test ...
32.342246
646
0.722388
#!/usr/bin/env python # coding: utf-8 # # FormantNet Training Script (user-friendly version) # # This script is a user-friendly version of the code used in the IS2021 and PaPE2021 papers. It can be used as an executable script to train a FormantNet model, as described below. The trained model can then be run on test ...
0
0
0
0
0
0
0
0
0
6070ae1561441487fbbd67e0fe361db3f7d59f26
1,245
py
Python
sahp/sahp_training/utils/atten_optimizer.py
yangalan123/anhp-andtt
b907f3808ed2ce1616edb1bc2229993a6742cee9
[ "MIT" ]
16
2022-01-05T15:34:49.000Z
2022-02-28T02:17:03.000Z
sahp/sahp_training/utils/atten_optimizer.py
yangalan123/anhp-andtt
b907f3808ed2ce1616edb1bc2229993a6742cee9
[ "MIT" ]
1
2022-01-15T07:58:36.000Z
2022-01-16T03:30:42.000Z
sahp/sahp_training/utils/atten_optimizer.py
yangalan123/anhp-andtt
b907f3808ed2ce1616edb1bc2229993a6742cee9
[ "MIT" ]
1
2022-01-04T02:23:48.000Z
2022-01-04T02:23:48.000Z
import numpy as np import matplotlib.pyplot as plt if __name__ == '__main__': opts = [NoamOpt(512, 1, 4000, 0.01, None), NoamOpt(512, 1, 8000, 0.01, None), NoamOpt(256, 1, 4000, 0.01, None)] plt.plot(np.arange(1, 20000), [[opt.rate(i) for opt in opts] for i in range(1, 20000)]) plt...
31.923077
91
0.564659
import numpy as np import matplotlib.pyplot as plt class NoamOpt: "Optim wrapper that implements rate." def __init__(self, model_size, factor, warmup, initial_lr, optimizer): self.optimizer = optimizer self._step = 0 self.warmup = warmup self.factor = factor self.model_s...
0
0
0
843
0
0
0
0
22
3c6d62b007cfa38a5b87ac619346a0830e3ecf0c
929
py
Python
scrape_mars.py
Lizbetheli/web-scraping-challenge
e3b1c2dd9137c085c9d003bfdecf3aa21d5fac26
[ "ADSL" ]
null
null
null
scrape_mars.py
Lizbetheli/web-scraping-challenge
e3b1c2dd9137c085c9d003bfdecf3aa21d5fac26
[ "ADSL" ]
null
null
null
scrape_mars.py
Lizbetheli/web-scraping-challenge
e3b1c2dd9137c085c9d003bfdecf3aa21d5fac26
[ "ADSL" ]
null
null
null
# Dependencies # Scrape mars news function
25.805556
157
0.68676
# Dependencies from bs4 import BeautifulSoup from splinter import Browser import pandas as pd import time def home(): executable_path = {'executable_path': 'chromedriver.exe'} return Browser('chrome', **executable_path, headless=False) def scrape_info(): # Scrape mars news function def scrape_news(): ...
0
0
0
0
0
722
0
3
157
aab4295bbf33875380faf209ab4283577f9bdd66
250
py
Python
bot/utils/__init__.py
UnsignedByte/Coconut-Milk
04a8f38693cb93fb45a25082e39e6de5544a9195
[ "MIT" ]
1
2019-10-10T06:08:46.000Z
2019-10-10T06:08:46.000Z
bot/utils/__init__.py
UnsignedByte/Coconut-Milk
04a8f38693cb93fb45a25082e39e6de5544a9195
[ "MIT" ]
null
null
null
bot/utils/__init__.py
UnsignedByte/Coconut-Milk
04a8f38693cb93fb45a25082e39e6de5544a9195
[ "MIT" ]
null
null
null
# @Author: Edmund Lam <edl> # @Date: 09:59:59, 03-Nov-2018 # @Filename: __init__.py # @Last modified by: edl # @Last modified time: 10:54:58, 08-Oct-2019 __all__=["imgutils", "msgutils", "strutils", "utils", "objutils", "userutils", "datautils"]
35.714286
91
0.66
# @Author: Edmund Lam <edl> # @Date: 09:59:59, 03-Nov-2018 # @Filename: __init__.py # @Last modified by: edl # @Last modified time: 10:54:58, 08-Oct-2019 __all__=["imgutils", "msgutils", "strutils", "utils", "objutils", "userutils", "datautils"]
0
0
0
0
0
0
0
0
0
67d172857b96f071ab4e9ebf1720353213e089e9
22,795
py
Python
aurora/grids_utils.py
tomodstrcil/Aurora
128a06bdd4f494ef89f28223a887aa584bb3ec45
[ "MIT" ]
null
null
null
aurora/grids_utils.py
tomodstrcil/Aurora
128a06bdd4f494ef89f28223a887aa584bb3ec45
[ "MIT" ]
null
null
null
aurora/grids_utils.py
tomodstrcil/Aurora
128a06bdd4f494ef89f28223a887aa584bb3ec45
[ "MIT" ]
null
null
null
'''Methods to create radial and time grids for aurora simulations. ''' import matplotlib.pyplot as plt import numpy as np from scipy.interpolate import interp1d def create_radial_grid(namelist,plot=False): r'''Create radial grid for Aurora based on K, dr_0, dr_1, rvol_lcfs and bound_sep parameters. The lim_s...
33.820475
173
0.60794
'''Methods to create radial and time grids for aurora simulations. ''' import matplotlib.pyplot as plt import numpy as np, sys, os from scipy.interpolate import interp1d import warnings def create_radial_grid(namelist,plot=False): r'''Create radial grid for Aurora based on K, dr_0, dr_1, rvol_lcfs and bound_sep p...
0
0
0
26
0
0
0
13
71
7e963e01e0ef10c18e62ef82f80b3ad785f71021
133
py
Python
registration/admin.py
luistripa/Paperweight
dbdbfe745e948981f025f138f46b485d5e950eac
[ "MIT" ]
null
null
null
registration/admin.py
luistripa/Paperweight
dbdbfe745e948981f025f138f46b485d5e950eac
[ "MIT" ]
2
2022-03-25T13:09:16.000Z
2022-03-25T13:14:39.000Z
registration/admin.py
luistripa/Paperweight
dbdbfe745e948981f025f138f46b485d5e950eac
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from registration.models import Profile admin.site.register(Profile)
19
39
0.819549
from django.contrib import admin # Register your models here. from registration.models import Profile admin.site.register(Profile)
0
0
0
0
0
0
0
0
0
ff0aadaaa33da9e532629ddba7e492d754ae915c
1,269
py
Python
docs/edu/collocations.py
sorice/preprocess
b9aa2e6b9883e71b17d27061463d9e5d54ff1d68
[ "BSD-3-Clause" ]
3
2018-02-04T18:52:15.000Z
2020-11-16T22:52:26.000Z
docs/edu/collocations.py
sorice/preprocess
b9aa2e6b9883e71b17d27061463d9e5d54ff1d68
[ "BSD-3-Clause" ]
1
2020-05-03T08:04:35.000Z
2020-05-03T08:04:35.000Z
docs/edu/collocations.py
sorice/preprocess
b9aa2e6b9883e71b17d27061463d9e5d54ff1d68
[ "BSD-3-Clause" ]
1
2020-11-16T22:52:58.000Z
2020-11-16T22:52:58.000Z
#!/usr/bin/env python 3.6 import preprocess A = open('data/FS_FSociety.txt').read() B = preprocess.normalize(A).lower() C = preprocess.remove_stopwords(B) from preprocess import CollocationList coll2 = CollocationList(C) coll2.find_collocations() collocations = coll2.head(40) D = preprocess.utils.hypenation(C,collocat...
31.725
77
0.732861
#!/usr/bin/env python 3.6 import preprocess A = open('data/FS_FSociety.txt').read() B = preprocess.normalize(A).lower() C = preprocess.remove_stopwords(B) from preprocess import CollocationList coll2 = CollocationList(C) coll2.find_collocations() collocations = coll2.head(40) D = preprocess.utils.hypenation(C,collocat...
4
0
0
0
0
0
0
0
0
a30b1e699677ff98cf9807a96ced2ca49cf3c0a8
5,674
py
Python
src/sot/tracker.py
mondrasovic/SiamRPN
896e15045300fdf3db554266a370d68cff3bf65e
[ "MIT" ]
null
null
null
src/sot/tracker.py
mondrasovic/SiamRPN
896e15045300fdf3db554266a370d68cff3bf65e
[ "MIT" ]
null
null
null
src/sot/tracker.py
mondrasovic/SiamRPN
896e15045300fdf3db554266a370d68cff3bf65e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Milan Ondrasovic <milan.ondrasovic@gmail.com> from typing import Optional, Union, Callable import numpy as np from sot.utils import (ImageT) TrackImgCb = Optional[Callable[[Union[np.ndarray, ImageT]], None]]
37.576159
80
0.652626
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Milan Ondrasovic <milan.ondrasovic@gmail.com> from typing import Iterable, Optional, Union, Callable, cast import numpy as np import torch import torch.nn.functional as F from torchvision import ops from got10k.trackers import Tracker from sot.bbox import BBo...
0
3,356
0
1,425
0
236
0
184
202
661e8a24546ebf3cbc96664271c6cb3d34ae1250
161
py
Python
django_jsonp/__init__.py
daimon99/django-jsonp
ff19f2628522a3655b28eb15b8ad4af93a931282
[ "MIT" ]
null
null
null
django_jsonp/__init__.py
daimon99/django-jsonp
ff19f2628522a3655b28eb15b8ad4af93a931282
[ "MIT" ]
null
null
null
django_jsonp/__init__.py
daimon99/django-jsonp
ff19f2628522a3655b28eb15b8ad4af93a931282
[ "MIT" ]
1
2019-07-03T10:25:51.000Z
2019-07-03T10:25:51.000Z
from __future__ import absolute_import __version__ = '0.3.0'
20.125
38
0.819876
from __future__ import absolute_import from .decorators import jsonp from .response import JSONPResponse from .utils import get_callback __version__ = '0.3.0'
0
0
0
0
0
0
0
32
67
c887720d0f16912b03f203531acae0de7c9d123d
7,935
py
Python
site/_build/jupyter_execute/notebooks/04-intro-modeling/03-intro-logistic-knn.py
rpi-techfundamentals/website_fall_2020
b85e5c297954bcaae565a8d25a18d2904d40f543
[ "MIT" ]
2
2020-10-18T23:05:09.000Z
2021-11-14T08:09:11.000Z
site/_build/jupyter_execute/notebooks/04-intro-modeling/03-intro-logistic-knn.py
rpi-techfundamentals/website_fall_2020
b85e5c297954bcaae565a8d25a18d2904d40f543
[ "MIT" ]
2
2020-12-31T14:33:02.000Z
2020-12-31T14:38:26.000Z
site/_build/jupyter_execute/notebooks/04-intro-modeling/03-intro-logistic-knn.py
rpi-techfundamentals/website_fall_2020
b85e5c297954bcaae565a8d25a18d2904d40f543
[ "MIT" ]
3
2021-01-05T20:26:15.000Z
2021-02-15T14:54:44.000Z
[![AnalyticsDojo](https://github.com/rpi-techfundamentals/spring2019-materials/blob/master/fig/final-logo.png?raw=1)](http://rpi.analyticsdojo.com) <center><h1>Classification with Scikit-learn </h1></center> <center><h3><a href = 'http://introml.analyticsdojo.com'>introml.analyticsdojo.com</a></h3></center> # Classi...
51.862745
373
0.746566
[![AnalyticsDojo](https://github.com/rpi-techfundamentals/spring2019-materials/blob/master/fig/final-logo.png?raw=1)](http://rpi.analyticsdojo.com) <center><h1>Classification with Scikit-learn </h1></center> <center><h3><a href = 'http://introml.analyticsdojo.com'>introml.analyticsdojo.com</a></h3></center> # Classi...
0
0
0
0
0
0
0
0
0
53a3e4af58ccbb575b96da7d60e52f9696f25784
855
py
Python
var/spack/repos/builtin/packages/r-clipr/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-clipr/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/r-clipr/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "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)
35.625
95
0.767251
# 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.package import * class RClipr(RPackage): """Read and Write from the System Clipboard. Simple utility...
0
0
0
605
0
0
0
6
46
ce6a15723f444c140098dad4e878b0e7b7aecb8d
1,828
py
Python
V1.0.0/Correction_UI/bayes_correction_split.py
xxelloss/fMRI_Bayes_UI
4d8963a9032cea003930d3429b42a54f9ba234f7
[ "MIT" ]
6
2020-09-09T07:46:20.000Z
2021-03-18T12:38:49.000Z
V1.0.0/Correction_UI/bayes_correction_split.py
xxelloss/fMRI_Bayes_UI
4d8963a9032cea003930d3429b42a54f9ba234f7
[ "MIT" ]
null
null
null
V1.0.0/Correction_UI/bayes_correction_split.py
xxelloss/fMRI_Bayes_UI
4d8963a9032cea003930d3429b42a54f9ba234f7
[ "MIT" ]
null
null
null
# BayesFactorFMRI: This is a GUI-aided tool to perform Bayesian meta-analysis of fMRI data and Bayesian second-level analysis of fMRI contrast files (one-sample t-test) with multiprocessing. # author: Hyemin Han, University of Alabama (hyemin.han@ua.edu) # BayesFactorFMRI is licensed under MIT License. # Citations # I...
35.843137
311
0.730306
# BayesFactorFMRI: This is a GUI-aided tool to perform Bayesian meta-analysis of fMRI data and Bayesian second-level analysis of fMRI contrast files (one-sample t-test) with multiprocessing. # author: Hyemin Han, University of Alabama (hyemin.han@ua.edu) # BayesFactorFMRI is licensed under MIT License. # Citations # I...
0
0
0
0
0
912
0
-3
68
cf7f498847a512ad6c2d5318b407db09789408da
2,858
py
Python
examples/repls/exchange_asset_finder.py
seanholmes77/yfs
7f422848aec5f47e8a76c43647e034740abadbde
[ "MIT" ]
3
2021-01-24T03:52:28.000Z
2022-01-10T19:21:09.000Z
examples/repls/exchange_asset_finder.py
seanholmes77/yfs
7f422848aec5f47e8a76c43647e034740abadbde
[ "MIT" ]
null
null
null
examples/repls/exchange_asset_finder.py
seanholmes77/yfs
7f422848aec5f47e8a76c43647e034740abadbde
[ "MIT" ]
1
2021-01-19T02:01:23.000Z
2021-01-19T02:01:23.000Z
from nitter_scraper import NitterScraper from yfs.summary import get_summary_pages from requests_whaor import RequestsWhaor user = "eWhispers" with RequestsWhaor(onion_count=5) as requests_whaor: with NitterScraper(host="0.0.0.0", port=8008) as nitter: for idx, tweet in enumerate(nitter.get_tweets(user, ...
38.106667
97
0.629461
from nitter_scraper import NitterScraper from yfs.symbol import fuzzy_symbol_seach from yfs.summary import get_summary_page, get_summary_pages from requests.exceptions import ConnectionError, ProxyError, Timeout, RequestException import requests from requests import Session from concurrent.futures import as_completed, ...
0
0
0
0
0
223
0
154
177
c052e67713856342baec34b52491ff2a4e4160c1
613
py
Python
setup.py
maxwellflitton/flitton-oasis-risk-modelling
d0ea9b1052742804bba5aa15f92a9a3e11555272
[ "MIT" ]
null
null
null
setup.py
maxwellflitton/flitton-oasis-risk-modelling
d0ea9b1052742804bba5aa15f92a9a3e11555272
[ "MIT" ]
null
null
null
setup.py
maxwellflitton/flitton-oasis-risk-modelling
d0ea9b1052742804bba5aa15f92a9a3e11555272
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import dist dist.Distribution().fetch_build_eggs(['setuptools_rust']) from setuptools import setup from setuptools_rust import Binding, RustExtension setup( name="flitton-oasis-risk-modelling", version="0.1", rust_extensions=[RustExtension( ".flitton_oasis_ris...
26.652174
69
0.698206
#!/usr/bin/env python from setuptools import dist dist.Distribution().fetch_build_eggs(['setuptools_rust']) from setuptools import setup from setuptools_rust import Binding, RustExtension setup( name="flitton-oasis-risk-modelling", version="0.1", rust_extensions=[RustExtension( ".flitton_oasis_ris...
0
0
0
0
0
0
0
0
0
a7514dc1970d3532b8783b7f07462617f07dc5e2
2,063
py
Python
cassiopeia-diskstore/cassiopeia_diskstore/champion.py
mrtolkien/cassiopeia-datastores
1fbc6f9163ec4a5b4efdc892c219b5785f62b274
[ "MIT" ]
3
2017-11-22T20:38:18.000Z
2018-09-04T07:48:55.000Z
cassiopeia-diskstore/cassiopeia_diskstore/champion.py
mrtolkien/cassiopeia-datastores
1fbc6f9163ec4a5b4efdc892c219b5785f62b274
[ "MIT" ]
12
2018-06-05T16:08:36.000Z
2020-11-26T19:16:59.000Z
cassiopeia-diskstore/cassiopeia_diskstore/champion.py
mrtolkien/cassiopeia-datastores
1fbc6f9163ec4a5b4efdc892c219b5785f62b274
[ "MIT" ]
10
2017-11-14T18:59:10.000Z
2020-09-17T15:18:29.000Z
from typing import TypeVar T = TypeVar("T")
40.45098
128
0.678139
from typing import Type, TypeVar, MutableMapping, Any, Iterable import copy from datapipelines import DataSource, DataSink, PipelineContext, Query, NotFoundError, validate_query from cassiopeia.data import Platform, Region from cassiopeia.dto.champion import ChampionRotationDto from cassiopeia.datastores.uniquekeys i...
0
1,292
0
336
0
0
0
232
157
c55599b27299135220afe05600bdd84da8f92ecc
20,357
py
Python
G_pretrain/onmt/Trainer.py
songhaoyu/RCDG
962c3b5803b766bd25577460aa90c2741d500d99
[ "MIT" ]
35
2021-03-17T08:00:57.000Z
2022-01-21T06:27:57.000Z
G_pretrain/onmt/Trainer.py
songhaoyu/RCDG
962c3b5803b766bd25577460aa90c2741d500d99
[ "MIT" ]
null
null
null
G_pretrain/onmt/Trainer.py
songhaoyu/RCDG
962c3b5803b766bd25577460aa90c2741d500d99
[ "MIT" ]
3
2021-04-14T11:15:45.000Z
2021-10-10T13:21:00.000Z
from __future__ import division """ This is the loadable seq2seq trainer library that is in charge of training details, loss compute, and statistics. See train.py for a use case of this library. Note!!! To make this a general library, we implement *only* mechanism things here(i.e. what to do), and leave the strategy t...
38.923518
151
0.51874
from __future__ import division """ This is the loadable seq2seq trainer library that is in charge of training details, loss compute, and statistics. See train.py for a use case of this library. Note!!! To make this a general library, we implement *only* mechanism things here(i.e. what to do), and leave the strategy t...
0
0
0
19,712
0
0
0
-28
179
74dc757294a4668e96098f94d5f80fa412c25143
16,859
py
Python
window/main.py
DragonGongY/mmdet-ui
41582b0ee2b3d9c631ee48540ca8a6d87be362e0
[ "Apache-2.0" ]
1
2021-12-24T05:28:20.000Z
2021-12-24T05:28:20.000Z
window/main.py
DragonGongY/mmdet-ui
41582b0ee2b3d9c631ee48540ca8a6d87be362e0
[ "Apache-2.0" ]
null
null
null
window/main.py
DragonGongY/mmdet-ui
41582b0ee2b3d9c631ee48540ca8a6d87be362e0
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import QPixmap, QIcon import sys if __name__ == "__main__": app = QApplication(sys.argv) filename = "image/logo.ico" pixmap = QPixmap(filename) logo = QIcon(pixmap) app.setWindowIcon(logo) myWindow = MainWindow_Model() myWindow.__...
44.600529
138
0.643514
from PyQt5.QtWidgets import QApplication, QMainWindow, QFileDialog, QMessageBox from PyQt5.QtCore import pyqtSignal, QDateTime, QThread from PyQt5.QtGui import QPixmap, QIcon import sys import codecs from PIL import Image import threading import shutil import inspect import ctypes from datetime import datetime from...
0
0
0
15,861
0
0
0
178
444