hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
aadc6caacc7ccc064997d62040d5601470ca380f
1,656
py
Python
remove_svn_folder.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
null
null
null
remove_svn_folder.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
2
2017-08-24T18:55:37.000Z
2017-08-24T18:59:06.000Z
remove_svn_folder.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
null
null
null
__author__ = 'Sergey' import shutil import os import stat def read_all_directory_path(root_folder, final_directory_list=[], folder_for_remove='.svn'): under_files_and_folders = os.listdir(root_folder) if os.path.split(root_folder)[1] == folder_for_remove: final_directory_list.append(root_folder) ...
29.571429
92
0.679348
0
0
0
0
0
0
0
0
190
0.114734
aadcc926ae2bae8f3f547c0e153e1ffc86f3b16e
65
py
Python
tackle/__init__.py
robcxyz/tackle-box
a7a1403d4f7549cdacb32e5b11c1f9043bdd5762
[ "BSD-3-Clause" ]
5
2021-01-05T04:21:37.000Z
2022-01-01T22:12:32.000Z
tackle/__init__.py
robcxyz/tackle-box
a7a1403d4f7549cdacb32e5b11c1f9043bdd5762
[ "BSD-3-Clause" ]
51
2021-01-03T00:41:59.000Z
2022-03-27T00:13:51.000Z
tackle/__init__.py
robcxyz/tackle-box
a7a1403d4f7549cdacb32e5b11c1f9043bdd5762
[ "BSD-3-Clause" ]
1
2022-01-03T11:46:02.000Z
2022-01-03T11:46:02.000Z
"""Main package for tackle box.""" __version__ = "0.1.0-alpha.4"
21.666667
34
0.661538
0
0
0
0
0
0
0
0
49
0.753846
aaddeb43199a4c0500f1f08b0da1b9779cd9a4f7
1,374
py
Python
app/core/console/base.py
cPoolChia/ChiaAutoplotter-Worker
7368396bda018a5adedef74173aba7b6f8f0eccc
[ "MIT" ]
2
2021-06-02T08:19:27.000Z
2021-06-02T09:53:11.000Z
app/core/console/base.py
cPoolChia/ChiaAutoplotter-Worker
7368396bda018a5adedef74173aba7b6f8f0eccc
[ "MIT" ]
null
null
null
app/core/console/base.py
cPoolChia/ChiaAutoplotter-Worker
7368396bda018a5adedef74173aba7b6f8f0eccc
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Any, AsyncIterable, Callable, Awaitable, Optional, Union import uuid class BaseCommandExecution(ABC): @abstractmethod async def execute( self, command: str, *, stdin: Optional[bytes] = None, cwd: Optional[str] = None ) -> None: ... ...
24.105263
88
0.617904
1,188
0.864629
0
0
1,032
0.751092
580
0.422125
0
0
aadfff06b29955168bb01b2fd687e7d85bcf363a
563
py
Python
apps/flow/run.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
349
2020-08-04T10:21:01.000Z
2022-03-23T08:31:29.000Z
apps/flow/run.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
2
2021-01-07T06:17:05.000Z
2021-04-01T06:01:30.000Z
apps/flow/run.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
70
2020-08-24T06:46:14.000Z
2022-03-25T13:23:27.000Z
from apps.flow.settings import config if config.SERVER_ENV != 'dev': from gevent import monkey monkey.patch_all() else: pass from apps.flow.views.deploy import deploy from apps.flow.views.flow import flow from library.api.tFlask import tflask def create_app(): app = tflask(config) register_blue...
20.107143
59
0.730018
0
0
0
0
0
0
0
0
37
0.065719
aae039b933dcd56d996e1972cd2fbbaabcc08e08
493
py
Python
villas/controller/components/gateways/villas_relay.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
villas/controller/components/gateways/villas_relay.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
villas/controller/components/gateways/villas_relay.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
from villas.controller.components.gateway import Gateway class VILLASrelayGateway(Gateway): def __init__(self, manager, args): # Some default properties props = { 'category': 'gateway', 'type': 'villas-relay', 'realm': manager.realm, 'name': args['i...
24.65
77
0.578093
433
0.878296
0
0
0
0
0
0
112
0.227181
aae0ef6f919b713b8a03794a527288d50661e12d
880
py
Python
ticket/triggers/trg_ticket_prioridade.py
rafaelnoronha/tickets
5497b8de4efed02e5d2cad78fe8e8811ad1e03c1
[ "MIT" ]
null
null
null
ticket/triggers/trg_ticket_prioridade.py
rafaelnoronha/tickets
5497b8de4efed02e5d2cad78fe8e8811ad1e03c1
[ "MIT" ]
null
null
null
ticket/triggers/trg_ticket_prioridade.py
rafaelnoronha/tickets
5497b8de4efed02e5d2cad78fe8e8811ad1e03c1
[ "MIT" ]
null
null
null
def trigger(): return """ CREATE OR REPLACE FUNCTION trg_ticket_prioridade() RETURNS TRIGGER AS $$ DECLARE prioridade_grupo smallint; prioridade_subgrupo smallint; BEGIN prioridade_grupo = COALESCE((SELECT prioridade FR...
36.666667
112
0.586364
0
0
0
0
0
0
0
0
853
0.969318
aae1ec807aa6c921790407473d22408db473c3dc
4,315
py
Python
itertable/gis/mixins.py
1Q1-Open-Source/itertable
73e59be2d1db8433ba954b0242d7964b3da2bf0e
[ "MIT" ]
16
2019-11-11T12:50:32.000Z
2022-03-25T08:52:07.000Z
itertable/gis/mixins.py
1Q1-Open-Source/itertable
73e59be2d1db8433ba954b0242d7964b3da2bf0e
[ "MIT" ]
3
2019-09-24T14:14:04.000Z
2021-11-22T02:17:54.000Z
itertable/gis/mixins.py
1Q1-Open-Source/itertable
73e59be2d1db8433ba954b0242d7964b3da2bf0e
[ "MIT" ]
2
2021-11-08T07:38:31.000Z
2021-12-01T00:01:41.000Z
import fiona from shapely import wkt, geometry from ..loaders import FileLoader from ..parsers.base import BaseParser from ..mappers import TupleMapper class FionaLoaderParser(FileLoader, BaseParser): """ Composite loader & parser mixin for GIS data, powered by Fiona """ layer_id = None meta = {} ...
31.268116
74
0.575435
4,020
0.931634
0
0
0
0
0
0
984
0.228042
aae3bc4aae7976bccac4f5b0de858e6206edb768
4,331
py
Python
src/service_framework/connections/out/requester.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
1
2020-03-20T21:33:56.000Z
2020-03-20T21:33:56.000Z
src/service_framework/connections/out/requester.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
1
2020-03-22T03:48:45.000Z
2020-03-22T03:48:45.000Z
src/service_framework/connections/out/requester.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
null
null
null
""" File to house a requester connection """ from logging import getLogger import zmq from service_framework.utils.connection_utils import BaseConnection from service_framework.utils.msgpack_utils import msg_pack, msg_unpack from service_framework.utils.socket_utils import get_requester_socket LOG = getLogger(__name...
31.845588
81
0.58647
4,004
0.924498
0
0
2,111
0.487416
0
0
2,795
0.645347
aae3dee92f7ddb11b47b7b8a14769a88c001f66c
25,675
py
Python
module/quantization/cluster_q.py
fightingnoble/Robust-ReRAM-NN
22d14386a5298c7a9dd3dce894363c30896abd19
[ "MIT" ]
null
null
null
module/quantization/cluster_q.py
fightingnoble/Robust-ReRAM-NN
22d14386a5298c7a9dd3dce894363c30896abd19
[ "MIT" ]
null
null
null
module/quantization/cluster_q.py
fightingnoble/Robust-ReRAM-NN
22d14386a5298c7a9dd3dce894363c30896abd19
[ "MIT" ]
null
null
null
# from sklearn.cluster._kmeans import * import copy from typing import Union import torch import torch.nn as nn from sklearn.cluster._robustq import * from .quantizer import Quantizer __all__ = ['MiniBatchRobustqTorch', 'RobustqTorch'] class ClusterQuantizerBase(Quantizer): def __init__(self, n_feature=1, n_cl...
41.014377
123
0.518598
9,621
0.374722
0
0
2,997
0.116728
0
0
9,077
0.353535
aae44756cbe9fb17074f9c08844383373bfa435e
247
py
Python
kattis/Shopping List.py
jaredliw/python-question-bank
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2021-04-08T07:49:15.000Z
2021-04-08T07:49:15.000Z
kattis/Shopping List.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
null
null
null
kattis/Shopping List.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2022-01-23T02:12:24.000Z
2022-01-23T02:12:24.000Z
# CPU: 0.18 s n_rows, _ = map(int, input().split()) common_items = set(input().split()) for _ in range(n_rows - 1): common_items = common_items.intersection(set(input().split())) print(len(common_items)) print(*sorted(common_items), sep="\n")
30.875
66
0.684211
0
0
0
0
0
0
0
0
17
0.068826
2a9a4d87b28f9436adbf59fa348294bf68f453a8
155
py
Python
revuo/forms/__init__.py
Lasanha/revuo
3fb2a06515194416aff3b9a9efac321f1af3209a
[ "BSD-3-Clause" ]
1
2020-03-24T23:33:57.000Z
2020-03-24T23:33:57.000Z
revuo/forms/__init__.py
Lasanha/revuo
3fb2a06515194416aff3b9a9efac321f1af3209a
[ "BSD-3-Clause" ]
26
2015-01-20T13:31:57.000Z
2020-06-05T17:26:18.000Z
revuo/forms/__init__.py
Lasanha/revuo
3fb2a06515194416aff3b9a9efac321f1af3209a
[ "BSD-3-Clause" ]
null
null
null
from .blog_item import FormBlogItem from .edit_profile import FormEditProfile from .news_item import FormNewsItem from .publication import FormPublication
31
41
0.870968
0
0
0
0
0
0
0
0
0
0
2a9a824358bcc69196e77f5087a8a0a54404562e
22,333
py
Python
helperscripts/es2json.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
helperscripts/es2json.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
helperscripts/es2json.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from datetime import datetime import json import elasticsearch import argparse import logging import sys, os, time, atexit from signal import SIGTERM #needed for Daemon from httplib2 import Http #needed for put_dict class Daemon: """ A generic daemon class. ...
42.458175
255
0.557561
3,940
0.176421
11,409
0.510858
0
0
0
0
3,975
0.177988
2a9ab14e54ff5f86c5d259ed762fb8e2b9216336
2,195
py
Python
4/1.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
4/1.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
4/1.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
import time import os import spidev as SPI import SSD1306 from PIL import Image, ImageDraw, ImageFont # 调用相关库文件 from datetime import datetime PATH = os.path.dirname(__file__) RST = 19 DC = 16 bus = 0 device = 0 # 树莓派管脚配置 disp = SSD1306.SSD1306(rst=RST, dc=DC, spi=SPI.SpiDev(bus, device)) disp.begin() disp.clear() ...
27.098765
79
0.591344
0
0
0
0
0
0
0
0
302
0.134641
2a9af691df37378dbd6bf5930ef45f2b0d815dc1
81
py
Python
python/943.find-the-shortest-superstring.py
stavanmehta/leetcode
1224e43ce29430c840e65daae3b343182e24709c
[ "Apache-2.0" ]
null
null
null
python/943.find-the-shortest-superstring.py
stavanmehta/leetcode
1224e43ce29430c840e65daae3b343182e24709c
[ "Apache-2.0" ]
null
null
null
python/943.find-the-shortest-superstring.py
stavanmehta/leetcode
1224e43ce29430c840e65daae3b343182e24709c
[ "Apache-2.0" ]
null
null
null
class Solution: def shortestSuperstring(self, A: List[str]) -> str:
20.25
55
0.617284
71
0.876543
0
0
0
0
0
0
0
0
2a9b3f2fbc45cf570c14b8caf9673a079f617761
4,008
py
Python
DjangoDemo/language/chart.py
gaivin/GWeb
f3d39e0dcb1640c3466bcf2aa4ebae65c64d4348
[ "MIT" ]
1
2019-11-04T01:18:02.000Z
2019-11-04T01:18:02.000Z
DjangoDemo/language/chart.py
gaivin/GWeb
f3d39e0dcb1640c3466bcf2aa4ebae65c64d4348
[ "MIT" ]
null
null
null
DjangoDemo/language/chart.py
gaivin/GWeb
f3d39e0dcb1640c3466bcf2aa4ebae65c64d4348
[ "MIT" ]
1
2019-11-04T01:18:08.000Z
2019-11-04T01:18:08.000Z
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: Gaivin Wang @license: Apache Licence @contact: gaivin@outlook.com @site: @software: PyCharm @file: chart.py @time: 10/10/2018 4:14 PM """ from pyecharts import Bar, Line, WordCloud import pandas as pd import random, os.p...
39.294118
106
0.600798
0
0
0
0
0
0
0
0
1,075
0.268214
2a9b5085bd109f647ca53c8bccc9f5901b048ec5
2,773
py
Python
code/evaluate.py
kajal-puri/point-normals-upsampling
5248c0d1b2b26ec9e002eb9520a204cdd186ab1d
[ "MIT" ]
2
2021-04-27T15:09:41.000Z
2021-07-01T00:32:54.000Z
code/evaluate.py
kajal-puri/point-normals-upsampling
5248c0d1b2b26ec9e002eb9520a204cdd186ab1d
[ "MIT" ]
null
null
null
code/evaluate.py
kajal-puri/point-normals-upsampling
5248c0d1b2b26ec9e002eb9520a204cdd186ab1d
[ "MIT" ]
1
2021-10-05T14:08:19.000Z
2021-10-05T14:08:19.000Z
# -*- coding: utf-8 -*- import torch import argparse import numpy as np from model import PointCloudNet from code.utils import fp_sampling, knn_patch, helper_function import os parser = argparse.ArgumentParser() parser.add_argument('--num_points', default=1024, type=int, help='Number of points ...
39.614286
161
0.705373
0
0
0
0
0
0
0
0
473
0.170573
2a9c29a9ca43c2e78dfd11fb0c0783a70a2f2e37
10,197
py
Python
xyz2image.py
hentr/xyz2image
bee976e0062ee893594e56ead1e75cb5d7a4e8af
[ "MIT" ]
null
null
null
xyz2image.py
hentr/xyz2image
bee976e0062ee893594e56ead1e75cb5d7a4e8af
[ "MIT" ]
null
null
null
xyz2image.py
hentr/xyz2image
bee976e0062ee893594e56ead1e75cb5d7a4e8af
[ "MIT" ]
null
null
null
''' Authors: Trond Henninen(trond.henninen@empa.ch) and Feng Wang This script is for generating normalised Gaussian simulated annular dark-field scanning transmission electron microscopy (ADF-STEM) images from input atomic coordinates. For rapidly generating a large dataset, it approximates a contrast similar to multi...
55.721311
188
0.674806
67
0.006565
0
0
0
0
0
0
5,108
0.500539
2a9cd0d36db26dfa7b130266260e262e2636a4e0
197
py
Python
CollegeBuddy_backend/framework/api/API_Exception.py
tejan-singh/CollegeBuddy
b067345dff6dbf60a54bd48bedb7fab1f463d22d
[ "MIT" ]
2
2020-12-06T15:49:16.000Z
2020-12-10T15:20:50.000Z
CollegeBuddy_backend/framework/api/API_Exception.py
tejan-singh/CollegeBuddy
b067345dff6dbf60a54bd48bedb7fab1f463d22d
[ "MIT" ]
5
2020-11-30T17:26:12.000Z
2021-01-01T15:40:22.000Z
CollegeBuddy_backend/framework/api/API_Exception.py
tejan-singh/CollegeBuddy
b067345dff6dbf60a54bd48bedb7fab1f463d22d
[ "MIT" ]
4
2020-12-05T18:30:16.000Z
2021-01-02T13:17:54.000Z
class APIException(Exception): def __init__(self, message, code=None): self.context = {} if code: self.context['errorCode'] = code super().__init__(message)
28.142857
44
0.593909
196
0.994924
0
0
0
0
0
0
11
0.055838
2a9d635771da63e49497a253910a29aded54decf
906
py
Python
ex084.py
BrianBeyer/pythonExercicios
062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89
[ "MIT" ]
null
null
null
ex084.py
BrianBeyer/pythonExercicios
062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89
[ "MIT" ]
null
null
null
ex084.py
BrianBeyer/pythonExercicios
062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89
[ "MIT" ]
null
null
null
lista = [] pess = [] men = 0 mai = 0 while True: pess.append(str(input('Nome:'))) pess.append(float(input('Peso:'))) if len(lista)==0:# se nao cadastrou ninguem ainda mai = men = pess[1]#o maior é o mesmo que o menor e igual pess na posicao 1 que é o peso else: if pess[1] > mai: ...
25.885714
96
0.555188
0
0
0
0
0
0
0
0
368
0.40484
2a9e3a0006c28ed83f7150106d1a796d5e3250bc
399
py
Python
src/solution/3_longest_substring_without_repeating_characters.py
rsj217/leetcode-in-python3
f5d9fa50e55ce60a159f9a8ccf6080dc86f56852
[ "MIT" ]
1
2021-03-01T07:33:45.000Z
2021-03-01T07:33:45.000Z
src/solution/3_longest_substring_without_repeating_characters.py
rsj217/leetcode-in-python3
f5d9fa50e55ce60a159f9a8ccf6080dc86f56852
[ "MIT" ]
null
null
null
src/solution/3_longest_substring_without_repeating_characters.py
rsj217/leetcode-in-python3
f5d9fa50e55ce60a159f9a8ccf6080dc86f56852
[ "MIT" ]
null
null
null
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: max_len = 0 l, r = 0, 0 count = dict() while r < len(s): count[s[r]] = count.get(s[r], 0) + 1 while count[s[r]] > 1: count[s[l]] = count[s[l]] - 1 l += 1 ...
24.9375
54
0.41604
396
0.992481
0
0
0
0
0
0
0
0
2a9e6aba26f30258549a13ef7697fd4a41b47aac
563
py
Python
search_engine/worker.py
Dhruvacube/search-engine
13ba35d99e1dcb7591975e352d70329d41f868e6
[ "Apache-2.0" ]
null
null
null
search_engine/worker.py
Dhruvacube/search-engine
13ba35d99e1dcb7591975e352d70329d41f868e6
[ "Apache-2.0" ]
null
null
null
search_engine/worker.py
Dhruvacube/search-engine
13ba35d99e1dcb7591975e352d70329d41f868e6
[ "Apache-2.0" ]
null
null
null
import importlib from uvicorn.workers import UvicornWorker class DynamicUvicornWorker(UvicornWorker): """ This class is called `DynamicUvicornWorker` because it assigns values according to the module available Union['asyncio', 'uvloop'] It also set `lifespan` to `off` :) """ spam_spec = impo...
29.631579
77
0.65897
500
0.888099
0
0
0
0
0
0
277
0.492007
2a9f13a70d3783da3197770a209618a00e0a33a0
585
py
Python
src/deviceinterface.py
nlitz88/metrics
a53cb0aa9bfbeea0dc9788f5461ff10905bc0352
[ "MIT" ]
null
null
null
src/deviceinterface.py
nlitz88/metrics
a53cb0aa9bfbeea0dc9788f5461ff10905bc0352
[ "MIT" ]
null
null
null
src/deviceinterface.py
nlitz88/metrics
a53cb0aa9bfbeea0dc9788f5461ff10905bc0352
[ "MIT" ]
null
null
null
class DeviceInterface: # This operation is used to initialize the device instance. Accepts a dictionary that is read in from the device's yaml definition. # This device_config_yaml may contain any number of parameters/fields necessary to initialize/setup the instance for data collection. def initialize(self...
65
137
0.760684
585
1
0
0
0
0
0
0
440
0.752137
2a9f331439bd99a892c7c6363b31983af66fb320
3,949
py
Python
tensorflow/python/debug/lib/debug_events_reader.py
scentini/tensorflow
204ed332c0886a0e0ab10b22ba8d67b97e1c83c4
[ "Apache-2.0" ]
27
2020-02-29T04:13:22.000Z
2022-02-07T21:54:50.000Z
tensorflow/python/debug/lib/debug_events_reader.py
scentini/tensorflow
204ed332c0886a0e0ab10b22ba8d67b97e1c83c4
[ "Apache-2.0" ]
5
2020-06-01T18:50:38.000Z
2021-07-16T07:13:52.000Z
tensorflow/python/debug/lib/debug_events_reader.py
scentini/tensorflow
204ed332c0886a0e0ab10b22ba8d67b97e1c83c4
[ "Apache-2.0" ]
10
2020-12-15T03:55:24.000Z
2021-12-17T23:14:11.000Z
# Copyright 2019 The TensorFlow 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 applica...
41.135417
80
0.719423
2,870
0.726766
1,049
0.265637
0
0
0
0
1,486
0.376298
2aa12187c846911b063045b77f3dd27d4bcbb70f
24,225
py
Python
src/amuse/couple/bridge.py
aatrani/amuse
fd1abcfb1b118a9ab13031912abf6e65e9c60dde
[ "Apache-2.0" ]
null
null
null
src/amuse/couple/bridge.py
aatrani/amuse
fd1abcfb1b118a9ab13031912abf6e65e9c60dde
[ "Apache-2.0" ]
2
2018-06-22T13:02:14.000Z
2018-09-06T20:08:43.000Z
src/amuse/couple/bridge.py
aatrani/amuse
fd1abcfb1b118a9ab13031912abf6e65e9c60dde
[ "Apache-2.0" ]
null
null
null
""" bridge-like integrator for amuse the bridge class provides a bridge like coupling between different gravitational integrators. In this way a system composed of multiple components can be evolved taking account of the self gravity of the whole system self consistently, while choosing the most appropiate i...
33.881119
164
0.637647
20,135
0.831166
0
0
2,861
0.118101
0
0
6,822
0.28161
2aa127aad07445a64e9152911064c6bad0de9f2d
8,808
py
Python
active.py
cgretzem/leaguepkg
8bb298417e948806b1bccd3ffe31ac23ccb62bf3
[ "MIT" ]
1
2021-09-17T22:42:26.000Z
2021-09-17T22:42:26.000Z
active.py
cgretzem/leaguepkg
8bb298417e948806b1bccd3ffe31ac23ccb62bf3
[ "MIT" ]
null
null
null
active.py
cgretzem/leaguepkg
8bb298417e948806b1bccd3ffe31ac23ccb62bf3
[ "MIT" ]
null
null
null
""" Handles classes and methods for an active local Game. Classes: `ActiveGame` - Represents an active LOL game `Player` - represents a player inside the game `ActivePlayer` - subclass of player, represents host `Item` - represents an item in game Methods: `check_status()` -> bool Err...
33.112782
183
0.602293
7,770
0.882153
0
0
0
0
0
0
4,667
0.529859
2aa2c472094d956432f11fdf8f38e4862376bad8
6,406
py
Python
UMLRT2Kiltera_MM/transformation_eq_outside/HExitPoint2BProcDefWhetherOrNotExitPtHasOutgoingTrans.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/transformation_eq_outside/HExitPoint2BProcDefWhetherOrNotExitPtHasOutgoingTrans.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/transformation_eq_outside/HExitPoint2BProcDefWhetherOrNotExitPtHasOutgoingTrans.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis import uuid class HExitPoint2BProcDefWhetherOrNotExitPtHasOutgoingTrans(Himesis): def __init__(self): """ Creates the himesis graph representing the DSLTrans rule ExitPoint2BProcDefWhetherOrNotExitPtHasOutgoingTrans. """ # Flag this instan...
38.824242
318
0.530909
6,349
0.991102
0
0
0
0
0
0
3,314
0.517328
2aa5453199355e4c36254ebb1452a62267afff50
1,553
py
Python
shellish/command/contrib/ini.py
personnelink/shellish
f130599aabe1ed44323b2374c9e6c3b789f06517
[ "MIT" ]
4
2015-10-06T23:50:20.000Z
2021-06-11T19:20:43.000Z
shellish/command/contrib/ini.py
personnelink/shellish
f130599aabe1ed44323b2374c9e6c3b789f06517
[ "MIT" ]
null
null
null
shellish/command/contrib/ini.py
personnelink/shellish
f130599aabe1ed44323b2374c9e6c3b789f06517
[ "MIT" ]
null
null
null
""" Show the INI config(s) used by a command tree. """ from .. import command class Show(command.Command): """ Show current INI configuration. Programs may make use of a configuration file which is usually located in your $HOME directory as .<prog>_config. The file is a standard INI style config fi...
31.06
77
0.568577
1,468
0.945267
0
0
0
0
0
0
588
0.378622
2aa5942f73cecef566d01cdaae9fb817121f496b
7,862
py
Python
Report folder/Total_image_PCA_analysis/PCA_image_all_samples_1_plot.py
xiaoyanLi629/Coffee-ring-effect-image-analysis
0873f55ae78775835209371845c26cd6ba1a73e0
[ "MIT" ]
null
null
null
Report folder/Total_image_PCA_analysis/PCA_image_all_samples_1_plot.py
xiaoyanLi629/Coffee-ring-effect-image-analysis
0873f55ae78775835209371845c26cd6ba1a73e0
[ "MIT" ]
null
null
null
Report folder/Total_image_PCA_analysis/PCA_image_all_samples_1_plot.py
xiaoyanLi629/Coffee-ring-effect-image-analysis
0873f55ae78775835209371845c26cd6ba1a73e0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np from PIL import Image import pandas as pd from sklearn.decomposition import PCA from scipy.spatial.distance import pdist, squareform from scipy.sparse.linalg import eigs from numpy import linalg as LA from mpl_toolkits.mplot3d import Ax...
55.366197
134
0.589672
0
0
0
0
0
0
0
0
5,701
0.725134
2aa65b484384e454a6e81e84c558c2dde1338019
3,983
py
Python
example/example_person.py
Shadow-linux/ex_dataclass
1fe186ea990f6f2337fb7ee6b6ba54fa7791afa0
[ "MIT" ]
18
2021-06-29T11:12:42.000Z
2022-03-31T20:31:10.000Z
example/example_person.py
Shadow-linux/ex_dataclass
1fe186ea990f6f2337fb7ee6b6ba54fa7791afa0
[ "MIT" ]
1
2021-06-30T03:12:46.000Z
2021-06-30T03:12:46.000Z
example/example_person.py
Shadow-linux/ex_dataclass
1fe186ea990f6f2337fb7ee6b6ba54fa7791afa0
[ "MIT" ]
3
2021-06-29T11:12:43.000Z
2021-07-08T08:16:12.000Z
import typing from ex_dataclass import ex_dataclass, asdict, field, EXpack @ex_dataclass class User: # default_factory: 需要给一个类(可callable的对象) name: str = field(default_factory=str) # default: 给定一个默认值 age: int = field(default=0) @ex_dataclass class Team: team_name: str = field(default_factory=str)...
25.863636
205
0.568165
1,324
0.301526
0
0
1,464
0.333409
0
0
2,007
0.457071
2aa980f2e7bb9369dafe24972122e61fe79c1759
766
py
Python
class and objects/Mro.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
6
2020-08-13T11:49:29.000Z
2021-03-07T05:46:17.000Z
class and objects/Mro.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
null
null
null
class and objects/Mro.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
1
2021-04-24T06:12:48.000Z
2021-04-24T06:12:48.000Z
''' mro stands for Method Resolution Order. It returns a list of types the class is derived from, in the order they are searched for methods''' print(__doc__) print('\n'+'-'*35+ 'Method Resolution Order'+'-'*35) class A(object): def dothis(self): print('From A class') class B1(A): de...
17.022222
53
0.591384
350
0.456919
0
0
0
0
0
0
266
0.347258
2aac09b051b13c891b16499f4e8579b8384792aa
1,507
py
Python
src/petmail/test/test_eventsource.py
warner/petmail
2c43f6177e301275e235cc2a155aafba3e66b4c4
[ "MIT" ]
25
2015-04-14T15:55:46.000Z
2021-01-23T16:00:55.000Z
src/petmail/test/test_eventsource.py
warner/petmail
2c43f6177e301275e235cc2a155aafba3e66b4c4
[ "MIT" ]
null
null
null
src/petmail/test/test_eventsource.py
warner/petmail
2c43f6177e301275e235cc2a155aafba3e66b4c4
[ "MIT" ]
1
2018-05-17T08:41:47.000Z
2018-05-17T08:41:47.000Z
from twisted.trial import unittest from ..eventsource import EventSourceParser class FakeTransport: disconnecting = False def parse_events(s): fields = [] p = EventSourceParser(lambda name, data: fields.append((name,data))) p.makeConnection(FakeTransport()) p.dataReceived(s) return fields cla...
35.880952
76
0.52223
1,235
0.819509
0
0
0
0
0
0
202
0.134041
2aacd69a9be78b0b125c9417b7a8c0c44c82bb18
116
py
Python
coffea/nanoevents/methods/systematics/__init__.py
Junaid-muhamad/coffea
b644bcf2b48e272e6c78e4b1ddee3c233a67022d
[ "BSD-3-Clause" ]
null
null
null
coffea/nanoevents/methods/systematics/__init__.py
Junaid-muhamad/coffea
b644bcf2b48e272e6c78e4b1ddee3c233a67022d
[ "BSD-3-Clause" ]
null
null
null
coffea/nanoevents/methods/systematics/__init__.py
Junaid-muhamad/coffea
b644bcf2b48e272e6c78e4b1ddee3c233a67022d
[ "BSD-3-Clause" ]
null
null
null
from coffea.nanoevents.methods.systematics.UpDownSystematic import UpDownSystematic __all__ = ["UpDownSystematic"]
29
83
0.853448
0
0
0
0
0
0
0
0
18
0.155172
2aacece114f8bb2a0a9d49c428291bf6cbab0533
7,121
py
Python
etl/parsers/etw/Microsoft_Windows_SecurityMitigationsBroker.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_SecurityMitigationsBroker.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_SecurityMitigationsBroker.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-SecurityMitigationsBroker GUID : ea8cd8a5-78ff-4418-b292-aadc6a7181df """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp impor...
30.173729
123
0.696391
4,428
0.621823
0
0
6,664
0.935824
0
0
1,840
0.258391
2aad343bddb6ea115f42e2d6dd3a8e74891cc040
592
py
Python
workbench/speech_text/_deepspeech/segment_audio.py
NAshwinKumar/deep-read
ee13bb0651e9b682c411db073fb52f3136d44ea1
[ "MIT" ]
6
2020-09-26T08:34:19.000Z
2021-11-26T12:59:50.000Z
workbench/speech_text/_deepspeech/segment_audio.py
NAshwinKumar/deep-read
ee13bb0651e9b682c411db073fb52f3136d44ea1
[ "MIT" ]
26
2020-09-26T08:46:40.000Z
2022-02-10T03:18:55.000Z
workbench/speech_text/_deepspeech/segment_audio.py
Acquil/deep-read
aae93c62a0c85ce31eb0e2d759d4d95d7d076c5d
[ "MIT" ]
10
2020-10-08T09:23:41.000Z
2020-12-03T14:59:09.000Z
from pydub import AudioSegment from pydub.silence import split_on_silence def segment(filename,foldername): """ filename : str foldername: str folder to put all the chunks """ sound_file = AudioSegment.from_file(filename) sound_file = sound_file.set_channels(1) sound_file = sound_file.set_frame_rate(16000) ...
32.888889
84
0.760135
0
0
0
0
0
0
0
0
109
0.184122
2aad36ed8d9e01be2c017eacc17af6c7e6d3a8a0
126
py
Python
01_Language/01_Functions/python/fread.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
3
2020-06-28T07:42:51.000Z
2021-01-15T10:32:11.000Z
01_Language/01_Functions/python/fread.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
9
2021-03-10T22:45:40.000Z
2022-02-27T06:53:20.000Z
01_Language/01_Functions/python/fread.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
1
2021-01-15T10:51:24.000Z
2021-01-15T10:51:24.000Z
# coding: utf-8 import os size = os.path.getsize("test.txt") with open("test.txt", mode="r") as f: print(f.read(size))
14
37
0.626984
0
0
0
0
0
0
0
0
38
0.301587
2aadc4ef847555f615099779462d93a8df39559d
494
py
Python
CalculateLodsTool.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
3
2019-02-19T06:14:03.000Z
2020-01-06T07:57:12.000Z
CalculateLodsTool.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
null
null
null
CalculateLodsTool.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
2
2019-03-25T09:43:30.000Z
2019-11-28T03:52:56.000Z
# -*- coding: utf-8 -*- # !/usr/bin/python __author__ = 'ma_keling' # Version : 1.0.0 # Start Time : 2018-12-20 # Update Time : # Change Log : ## 1. ## 2. ## 3. import arcpy import CalculateLods def execute(): in_map = arcpy.GetParameter(0) arcpy.AddMessage("Input map : ...
18.296296
68
0.597166
0
0
0
0
0
0
0
0
191
0.38664
2aadd1bf492d72d9413391d2877375cb66b76d8f
1,099
py
Python
neolearnit/src/main/python/get_vocabulary.py
BBN-E/LearnIt
4f602f113cac9f4a7213b348a42c0fef23e2739c
[ "Apache-2.0" ]
5
2020-08-29T21:23:05.000Z
2022-03-24T19:57:44.000Z
neolearnit/src/main/python/get_vocabulary.py
BBN-E/LearnIt
4f602f113cac9f4a7213b348a42c0fef23e2739c
[ "Apache-2.0" ]
11
2020-03-04T23:03:34.000Z
2022-02-18T04:04:04.000Z
neolearnit/src/main/python/get_vocabulary.py
BBN-E/LearnIt
4f602f113cac9f4a7213b348a42c0fef23e2739c
[ "Apache-2.0" ]
1
2021-05-19T11:51:51.000Z
2021-05-19T11:51:51.000Z
import sys, os, re, codecs, json, glob import random from random import randint from collections import defaultdict from collections import Counter from sets import Set words=Set() def read_json_data(strJsonFile): with codecs.open(strJsonFile, 'r', encoding='utf-8') as f: try: json_data = jso...
22.895833
111
0.604186
0
0
0
0
0
0
0
0
250
0.22748
2aae87bca48325631f425f14e5ffd5fc9dbc7e0a
19,727
py
Python
openapi_client/api/service_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/api/service_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/api/service_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa:...
70.706093
2,464
0.65641
19,213
0.973944
0
0
0
0
0
0
14,624
0.741319
2ab21d6af7562df91669716faae1d4fb2aeb12d2
499
py
Python
interactive_widgets/backend/contexts/docker_context.py
h3ndrk/interactive-widgets-backend
926dea44f00aca8b51893dab533c566728d5e65d
[ "MIT" ]
null
null
null
interactive_widgets/backend/contexts/docker_context.py
h3ndrk/interactive-widgets-backend
926dea44f00aca8b51893dab533c566728d5e65d
[ "MIT" ]
null
null
null
interactive_widgets/backend/contexts/docker_context.py
h3ndrk/interactive-widgets-backend
926dea44f00aca8b51893dab533c566728d5e65d
[ "MIT" ]
null
null
null
import aiodocker import interactive_widgets.backend.contexts.context class DockerContext(interactive_widgets.backend.contexts.context.Context): async def __aenter__(self): self.docker = aiodocker.Docker( url=self.configuration.get('url', None), ) await self.docker.__aenter__(...
27.722222
74
0.685371
426
0.853707
0
0
0
0
340
0.681363
5
0.01002
2ab257029d0dbdeb4891ca5f55bd97d468685a9c
12,524
py
Python
custom_components/xiaomi_cloud_map_extractor/vacuum_manager.py
elad-bar/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
b68351b693687033ab6c58a00ce6599c7c4e4e70
[ "MIT" ]
null
null
null
custom_components/xiaomi_cloud_map_extractor/vacuum_manager.py
elad-bar/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
b68351b693687033ab6c58a00ce6599c7c4e4e70
[ "MIT" ]
null
null
null
custom_components/xiaomi_cloud_map_extractor/vacuum_manager.py
elad-bar/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
b68351b693687033ab6c58a00ce6599c7c4e4e70
[ "MIT" ]
1
2021-12-25T12:01:27.000Z
2021-12-25T12:01:27.000Z
import io import logging import time from typing import List, Optional from custom_components.xiaomi_cloud_map_extractor.common.map_data import MapData from custom_components.xiaomi_cloud_map_extractor.types import Colors, Drawables, ImageConfig, Sizes, Texts try: from miio import RoborockVacuum, DeviceException ...
36.943953
115
0.660093
10,788
0.861386
0
0
267
0.021319
0
0
746
0.059566
2ab6714654a4d72674f09fdaa3a13475da0d16e1
974
py
Python
util.py
yasser888/Semantic-Segmentation-SDC-P12
973f6b8574dfa13413558b625f5675a422a5161e
[ "MIT" ]
null
null
null
util.py
yasser888/Semantic-Segmentation-SDC-P12
973f6b8574dfa13413558b625f5675a422a5161e
[ "MIT" ]
null
null
null
util.py
yasser888/Semantic-Segmentation-SDC-P12
973f6b8574dfa13413558b625f5675a422a5161e
[ "MIT" ]
null
null
null
import os; import time; cont_file_path = './cont.txt'; log_file_path = './logs/'; def can_continue(): can_cont = True; if os.path.exists(cont_file_path): with open(cont_file_path,'r') as f: line = f.readline(); if(line=='Y'): print("Cont..."); ca...
23.190476
74
0.541068
0
0
0
0
0
0
0
0
200
0.205339
2ab6f2fd95e89231a622465bab0cf4bb48fade28
418
py
Python
vtr_flow/scripts/benchtracker/flask_cors/__init__.py
HackerFoo/vtr-verilog-to-routing
9bf3c1004e8a7c9f3756167905fd2e71218158d0
[ "MIT" ]
1
2020-05-07T17:38:58.000Z
2020-05-07T17:38:58.000Z
vtr_flow/scripts/benchtracker/flask_cors/__init__.py
HackerFoo/vtr-verilog-to-routing
9bf3c1004e8a7c9f3756167905fd2e71218158d0
[ "MIT" ]
12
2015-06-26T19:47:14.000Z
2015-07-06T17:29:29.000Z
vtr_flow/scripts/benchtracker/flask_cors/__init__.py
HackerFoo/vtr-verilog-to-routing
9bf3c1004e8a7c9f3756167905fd2e71218158d0
[ "MIT" ]
1
2020-08-15T03:04:34.000Z
2020-08-15T03:04:34.000Z
# -*- coding: utf-8 -*- """ flask_cors ~~~~ Flask-CORS is a simple extension to Flask allowing you to support cross origin resource sharing (CORS) using a simple decorator. :copyright: (c) 2014 by Cory Dolphin. :license: MIT, see LICENSE for more details. """ from .decorator import cross_origin...
26.125
75
0.696172
0
0
0
0
0
0
0
0
303
0.72488
2ab807f882174850903dfd3ada3ceadfda7a1b90
554
py
Python
ownblock/ownblock/apps/parking/views.py
danjac/ownblock
ac662fb7efb2f04567e2f85638c1250286452611
[ "MIT" ]
3
2015-06-12T04:42:02.000Z
2018-10-29T17:09:10.000Z
ownblock/ownblock/apps/parking/views.py
danjac/ownblock
ac662fb7efb2f04567e2f85638c1250286452611
[ "MIT" ]
null
null
null
ownblock/ownblock/apps/parking/views.py
danjac/ownblock
ac662fb7efb2f04567e2f85638c1250286452611
[ "MIT" ]
null
null
null
from rest_framework import viewsets from .models import Vehicle from .serializers import VehicleSerializer class VehicleViewSet(viewsets.ModelViewSet): model = Vehicle serializer_class = VehicleSerializer def pre_save(self, obj): if obj.resident_id is None: obj.resident = self.requ...
25.181818
63
0.685921
442
0.797834
0
0
0
0
0
0
31
0.055957
2ab9fbffdfdf51006d95c7a23e622d34842779dc
1,337
py
Python
Pages/checkout_overview_page.py
gykudo/sauce_demo
313b4bd956cad4807d225b0a7ed98ca0be9f3371
[ "MIT" ]
null
null
null
Pages/checkout_overview_page.py
gykudo/sauce_demo
313b4bd956cad4807d225b0a7ed98ca0be9f3371
[ "MIT" ]
null
null
null
Pages/checkout_overview_page.py
gykudo/sauce_demo
313b4bd956cad4807d225b0a7ed98ca0be9f3371
[ "MIT" ]
null
null
null
from Locators.checkout_overview_locator import CheckoutOverviewLocator from Objects.product import Product from Pages.base_page_object import BasePage from Utils.utility import Utils class CheckoutOverViewPage(BasePage): def __init__(self, driver): super().__init__(driver) def get_product_overview_info(self...
37.138889
78
0.799551
1,151
0.860883
0
0
0
0
0
0
0
0
2aba7a80b083c387ee2bbc9ad1d0586ac7d2b75c
6,336
py
Python
plugin.video.vstream/resources/lib/comaddon.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
plugin.video.vstream/resources/lib/comaddon.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
null
null
null
plugin.video.vstream/resources/lib/comaddon.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
# -*- coding: utf-8 -*- # https://github.com/Kodi-vStream/venom-xbmc-addons import xbmcaddon, xbmcgui, xbmc """System d'importation from resources.lib.comaddon import addon, dialog, VSlog, xbmcgui, xbmc """ """ from resources.lib.comaddon import addon addons = addon() en haut de page. utiliser une fonction comad...
25.756098
126
0.640467
3,579
0.564689
0
0
0
0
0
0
2,622
0.413695
2abc2ed03517cdd21bec733eb97787935e4839c0
2,457
py
Python
android/replace_apk_resource_pro/replace_source.py
roceys/tools_python
9c8d5c1c7c1ae4a4c857a65f5b5f14da1c90e425
[ "Apache-2.0" ]
130
2019-05-19T16:17:26.000Z
2022-03-30T11:48:38.000Z
android/replace_apk_resource_pro/replace_source.py
roceys/tools_python
9c8d5c1c7c1ae4a4c857a65f5b5f14da1c90e425
[ "Apache-2.0" ]
null
null
null
android/replace_apk_resource_pro/replace_source.py
roceys/tools_python
9c8d5c1c7c1ae4a4c857a65f5b5f14da1c90e425
[ "Apache-2.0" ]
119
2019-05-27T09:45:14.000Z
2022-03-09T03:44:53.000Z
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: xag @license: Apache Licence @contact: xinganguo@gmail.com @site: http://www.xingag.top @software: PyCharm @file: replace_source.py @time: 4/25/19 10:46 @description:替换apk的资源文件 """ from file_utils import * import os from subprocess impo...
22.135135
135
0.582825
2,320
0.821821
0
0
0
0
0
0
1,390
0.492384
2abcd921b69ac065ccb1607e10b4019c98f27da0
226
py
Python
catalog/bindings/gmd/circle_by_center_point_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/circle_by_center_point_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/circle_by_center_point_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.gmd.arc_by_center_point_type import ArcByCenterPointType __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class CircleByCenterPointType(ArcByCenterPointType): pass
22.6
70
0.836283
61
0.269912
0
0
72
0.318584
0
0
28
0.123894
2abdc47ec5c26a0913fa66840b8fe8ccfd50d515
192
py
Python
python_modules/dagster/dagster_tests/cli_tests/workspace_tests/multi_file_target_workspace/example_one/pipelines.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/cli_tests/workspace_tests/multi_file_target_workspace/example_one/pipelines.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/cli_tests/workspace_tests/multi_file_target_workspace/example_one/pipelines.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
# type: ignore[attr-defined] from solids import example_one_solid # pylint: disable=import-error from dagster import pipeline @pipeline def example_one_pipeline(): example_one_solid()
19.2
68
0.786458
0
0
0
0
61
0.317708
0
0
58
0.302083
2abe21e7674c39c2e36ceacf5a1d3ae67238854a
1,637
py
Python
src/rxn_network/firetasks/utils.py
bigboyabhisthi/reaction-network
b84f16b7261ecd62d7aa8e2681907f6ea0c35565
[ "BSD-3-Clause-LBNL" ]
1
2022-02-22T23:09:47.000Z
2022-02-22T23:09:47.000Z
src/rxn_network/firetasks/utils.py
bigboyabhisthi/reaction-network
b84f16b7261ecd62d7aa8e2681907f6ea0c35565
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/rxn_network/firetasks/utils.py
bigboyabhisthi/reaction-network
b84f16b7261ecd62d7aa8e2681907f6ea0c35565
[ "BSD-3-Clause-LBNL" ]
null
null
null
"Utility Fireworks functions borrowed from the atomate package." import logging import os import sys from typing import Optional def env_chk( val: str, fw_spec: dict, strict: Optional[bool] = True, default: Optional[str] = None, ): """ Code borrowed from the atomate package. env_chk() is ...
26.836066
93
0.660965
0
0
0
0
0
0
0
0
860
0.525351
2abe330511d1c30bbc24a2fb6be6e9eb79bc3748
1,328
py
Python
train.py
aryachiranjeev/TIC-TAC-TOE-using-RL-
129efdac8246e9fd1416bda1ec7e134fb9cf90b1
[ "MIT" ]
null
null
null
train.py
aryachiranjeev/TIC-TAC-TOE-using-RL-
129efdac8246e9fd1416bda1ec7e134fb9cf90b1
[ "MIT" ]
null
null
null
train.py
aryachiranjeev/TIC-TAC-TOE-using-RL-
129efdac8246e9fd1416bda1ec7e134fb9cf90b1
[ "MIT" ]
null
null
null
import random import torch from game import Game from agent import RLAgent from moves import Moves game=Game() agent=RLAgent() moves=Moves() num_win=0 #initialize no. of win by human num_lose=0 #initialize no. of win by ai but loss by human num_tie=0 random.seed(1000) def check_board_and_may_update_state_values():...
16.810127
126
0.72741
0
0
0
0
0
0
0
0
258
0.194277
2abef5933d8688995ffca89d43bae2f0783a8e26
2,265
py
Python
iota-clients/python-client/receive_msg.py
fprotopapa/iota-and-iot
b27690132452877822d95a9e379f275a5fd41edd
[ "MIT" ]
1
2021-11-19T10:56:25.000Z
2021-11-19T10:56:25.000Z
iota-clients/python-client/receive_msg.py
fprotopapa/iota-and-iot
b27690132452877822d95a9e379f275a5fd41edd
[ "MIT" ]
null
null
null
iota-clients/python-client/receive_msg.py
fprotopapa/iota-and-iot
b27690132452877822d95a9e379f275a5fd41edd
[ "MIT" ]
null
null
null
# receive_msg.py # # SPDX-FileCopyrightText: Copyright 2021 Fabbio Protopapa # # SPDX-License-Identifier: MIT # # Receive message from IOTA tangle # import iota_client import os import pprint # Config msg_meta = False env_node_address = 'HORNET_NODE_ADDRESS' # Print Message data def show_message(message, meta=Fals...
23.842105
99
0.61766
0
0
0
0
0
0
0
0
911
0.402208
2abfb7b11aa2ded198b346e1492890affd3b19aa
2,601
py
Python
py3status/modules/systemd_suspend_inhibitor.py
boucman/py3status
84b57304fbf71a466ccb1ed2f2dd039ece6eefb6
[ "BSD-3-Clause" ]
1
2020-04-07T19:11:36.000Z
2020-04-07T19:11:36.000Z
py3status/modules/systemd_suspend_inhibitor.py
boucman/py3status
84b57304fbf71a466ccb1ed2f2dd039ece6eefb6
[ "BSD-3-Clause" ]
2
2018-03-15T18:44:42.000Z
2018-03-15T19:22:04.000Z
py3status/modules/systemd_suspend_inhibitor.py
boucman/py3status
84b57304fbf71a466ccb1ed2f2dd039ece6eefb6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Turn on and off systemd suspend inhibitor. Configuration parameters: format: display format for this module (default '[\?color=state SUSPEND [\?if=state OFF|ON]]') lock_types: specify state to inhibit, comma separated list https://www.freedesktop.org/wiki/Software/sy...
28.582418
73
0.618608
1,434
0.551326
0
0
0
0
0
0
1,262
0.485198
2ac03cc53a106bb021d3795e2d6e15a15beade33
1,595
py
Python
maze/maze.py
SteliosKliafas/shortest_path_algorithms
0f28973bce7d53feeee202424b448b5007b5df68
[ "MIT" ]
null
null
null
maze/maze.py
SteliosKliafas/shortest_path_algorithms
0f28973bce7d53feeee202424b448b5007b5df68
[ "MIT" ]
null
null
null
maze/maze.py
SteliosKliafas/shortest_path_algorithms
0f28973bce7d53feeee202424b448b5007b5df68
[ "MIT" ]
null
null
null
import numpy as np import time def create_maze(): height = input("\n Enter the number of rows: ") width = input("\n Enter the number of columns: ") if height.isdigit() and width.isdigit(): height, width = int(height), int(width) grid = np.random.randint(0, 10, (height, width)) grid[...
35.444444
101
0.598746
0
0
0
0
0
0
0
0
264
0.165517
2ac0c0b791774e16cf9e50fa05289f36f0254019
2,707
py
Python
lexer.py
standy66/kaleidoscope-python
e0fa536871e63ab8b06a0b6fc04375eca788df06
[ "Apache-2.0" ]
1
2020-06-09T12:10:49.000Z
2020-06-09T12:10:49.000Z
lexer.py
standy66/kaleidoscope-python
e0fa536871e63ab8b06a0b6fc04375eca788df06
[ "Apache-2.0" ]
null
null
null
lexer.py
standy66/kaleidoscope-python
e0fa536871e63ab8b06a0b6fc04375eca788df06
[ "Apache-2.0" ]
null
null
null
from typing import Callable from enum import Enum from io import TextIOBase import sys class TokenType(Enum): EOF = -1 DEF = -2 EXTERN = -3 IDENTIFIER = -4 NUMBER = -5 OP = -6 class Token: GENERIC_TOKEN_TYPES = [TokenType.NUMBER, TokenType.IDENTIFIER, TokenType.OP] def __init__(sel...
27.907216
80
0.561138
2,411
0.890654
0
0
0
0
0
0
217
0.080163
2ac2ca8daf085ca9db44042efdfb98a16efe100b
1,175
py
Python
astrosql/deprecated/query.py
ketozhang/astroSQL
390195dc737df7a91b23e22c626f64b20fa04feb
[ "Apache-2.0" ]
null
null
null
astrosql/deprecated/query.py
ketozhang/astroSQL
390195dc737df7a91b23e22c626f64b20fa04feb
[ "Apache-2.0" ]
1
2020-03-27T20:34:27.000Z
2020-03-28T01:46:30.000Z
astrosql/deprecated/query.py
ketozhang/astroSQL
390195dc737df7a91b23e22c626f64b20fa04feb
[ "Apache-2.0" ]
null
null
null
import peeweedb import astropy.units as u def get_by_basename(db, table, basename): """Get data from SQL database by basename. Returns a list of dict""" if isinstance(table, str): assert table in db.get_tables(), "Sanity Check Failed: Table queried does not exist" table = peeweedb.tabl...
29.375
94
0.622979
0
0
0
0
0
0
0
0
305
0.259574
2ac61fcea69ad7476d8abf7af785c80670e0b3ef
5,878
py
Python
venv/lib/python3.8/site-packages/ansible_collections/community/general/plugins/modules/remote_management/redfish/ilo_redfish_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
1
2022-02-24T18:15:56.000Z
2022-02-24T18:15:56.000Z
venv/lib/python3.8/site-packages/ansible_collections/community/general/plugins/modules/remote_management/redfish/ilo_redfish_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/community/general/plugins/modules/remote_management/redfish/ilo_redfish_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021-2022 Hewlett Packard Enterprise, Inc. All rights reserved. # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''...
31.433155
104
0.586764
0
0
0
0
0
0
0
0
3,420
0.581831
2ac69b5d4714157fc71eff7a6a23f99b61269132
8,407
py
Python
train/solver.py
nhonth/DeLF-pytorch
5577a447a0330b9e976cff56a10fc91669216b8c
[ "MIT" ]
315
2019-01-28T05:45:25.000Z
2022-03-28T07:58:13.000Z
train/solver.py
nhonth/DeLF-pytorch
5577a447a0330b9e976cff56a10fc91669216b8c
[ "MIT" ]
38
2019-02-21T06:17:00.000Z
2021-07-05T12:40:00.000Z
train/solver.py
nhonth/DeLF-pytorch
5577a447a0330b9e976cff56a10fc91669216b8c
[ "MIT" ]
74
2019-01-28T08:08:10.000Z
2021-12-20T09:27:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' PyTorch Implementation of training DeLF feature. Solver for step 1 (finetune local descriptor) nashory, 2018.04 ''' import os, sys, time import shutil import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from utils import...
36.872807
102
0.512906
7,711
0.917212
0
0
0
0
0
0
1,250
0.148686
2ac6f82afb425514d16cfc4ba1244d63a2476877
13,248
py
Python
models/p2pnet.py
mfatiho/CrowdCounting-P2PNet
b89ecf9b374bee8973c331bb44b99611152cd3ac
[ "BSD-3-Clause" ]
89
2021-08-09T12:51:34.000Z
2022-03-25T09:06:40.000Z
models/p2pnet.py
FeiGeChuanShu/CrowdCounting-P2PNet
a7c5a9546d0b5be16367db393fbbd81427c11b82
[ "BSD-3-Clause" ]
24
2021-08-16T09:17:38.000Z
2022-03-30T08:29:02.000Z
models/p2pnet.py
FeiGeChuanShu/CrowdCounting-P2PNet
a7c5a9546d0b5be16367db393fbbd81427c11b82
[ "BSD-3-Clause" ]
25
2021-08-12T09:37:30.000Z
2022-03-18T07:46:17.000Z
import torch import torch.nn.functional as F from torch import nn from util.misc import (NestedTensor, nested_tensor_from_tensor_list, accuracy, get_world_size, interpolate, is_dist_avail_and_initialized) from .backbone import build_backbone from .matcher import build_mat...
38.736842
113
0.648551
10,993
0.829786
0
0
0
0
0
0
2,135
0.161156
2ac6fe1fc438d094fff91a6578a469fe05245d15
7,110
py
Python
visualize_fullscene.py
ronhlee/retinanet_ATR
32b043850abdd19bb142a88e2f2e16179aea4ff7
[ "Apache-2.0" ]
1
2020-09-20T03:07:02.000Z
2020-09-20T03:07:02.000Z
visualize_fullscene.py
ronhlee/retinanet_ATR
32b043850abdd19bb142a88e2f2e16179aea4ff7
[ "Apache-2.0" ]
null
null
null
visualize_fullscene.py
ronhlee/retinanet_ATR
32b043850abdd19bb142a88e2f2e16179aea4ff7
[ "Apache-2.0" ]
null
null
null
import numpy as np import torchvision import os import argparse import warnings warnings.filterwarnings('ignore') from PIL import Image, ImageDraw import torch from torch.utils.data import Dataset, DataLoader from torchvision import datasets, models, transforms import torchvision.ops from retinanet.dataloader import CS...
47.4
115
0.598312
0
0
0
0
0
0
0
0
1,110
0.156118
2ac870289e4a135beaad406a435f626a1f8fb78e
518
py
Python
data_sqlalchemy/word.py
natter1/estonian_learner
da7837f0d64f4c1f6a212a9c473252c4b834699a
[ "MIT" ]
null
null
null
data_sqlalchemy/word.py
natter1/estonian_learner
da7837f0d64f4c1f6a212a9c473252c4b834699a
[ "MIT" ]
null
null
null
data_sqlalchemy/word.py
natter1/estonian_learner
da7837f0d64f4c1f6a212a9c473252c4b834699a
[ "MIT" ]
null
null
null
import datetime from data_sqlalchemy.modelbase import SqlAlchemyBase import sqlalchemy as sa class Word(SqlAlchemyBase): __tablename__ = "words" # id = sa.Column(sa.Integer, primary_key=True, autoincrement=True) id = sa.Column(sa.String, primary_key=True) created_date = sa.Column(sa.DateTime, default...
32.375
84
0.727799
421
0.812741
0
0
0
0
0
0
167
0.322394
2acb0f83d07a4c5d2b9efe4b3bc5c3cf86acc90c
9,023
py
Python
nodes/BASE/socket_type.py
nwtajcky/RenderStackNode
31516af6fa8572c9d6ee3df017e59cae394047a3
[ "Apache-2.0" ]
null
null
null
nodes/BASE/socket_type.py
nwtajcky/RenderStackNode
31516af6fa8572c9d6ee3df017e59cae394047a3
[ "Apache-2.0" ]
1
2021-12-27T06:39:08.000Z
2021-12-27T06:39:08.000Z
nodes/BASE/socket_type.py
nwtajcky/RenderStackNode
31516af6fa8572c9d6ee3df017e59cae394047a3
[ "Apache-2.0" ]
null
null
null
import bpy from bpy.props import * from ...preferences import get_pref def update_node(self, context): try: self.node.node_dict[self.name] = self.value # update node tree self.node.update_parms() except Exception as e: print(e) class RenderNodeSocketInterface(bpy.types.NodeSo...
27.259819
109
0.657653
7,677
0.850826
0
0
0
0
0
0
1,406
0.155824
2acb3aee2e0f5e506188c20bf399d1690f3f87a1
35
py
Python
webapp/journal_plugins/example_plugin/models.py
TheCDC/journal_app
18c84acfc7b996329d34c3bdd54348cdfdd55252
[ "MIT" ]
2
2018-03-08T16:21:45.000Z
2018-10-22T02:13:22.000Z
webapp/journal_plugins/example_plugin/models.py
TheCDC/journal_app
18c84acfc7b996329d34c3bdd54348cdfdd55252
[ "MIT" ]
3
2018-05-25T04:21:09.000Z
2020-02-10T00:46:37.000Z
webapp/journal_plugins/example_plugin/models.py
TheCDC/journal_app
18c84acfc7b996329d34c3bdd54348cdfdd55252
[ "MIT" ]
null
null
null
from webapp.extensions import db
8.75
32
0.8
0
0
0
0
0
0
0
0
0
0
2acb92b4e54de96f237951644e26af0eb47db325
5,823
py
Python
Unsupervised/autoencoder/evaluate_model.py
darshil0193/CSC-522---Object-Recognition
f357e6fd3cd69e7335bc25d55eb57b9b5b4e5d88
[ "MIT" ]
null
null
null
Unsupervised/autoencoder/evaluate_model.py
darshil0193/CSC-522---Object-Recognition
f357e6fd3cd69e7335bc25d55eb57b9b5b4e5d88
[ "MIT" ]
null
null
null
Unsupervised/autoencoder/evaluate_model.py
darshil0193/CSC-522---Object-Recognition
f357e6fd3cd69e7335bc25d55eb57b9b5b4e5d88
[ "MIT" ]
1
2018-12-27T21:56:13.000Z
2018-12-27T21:56:13.000Z
from keras.models import load_model import numpy as np import pandas as pd from keras.preprocessing.image import ImageDataGenerator from sklearn.cluster import KMeans from time import time # Takes a pandas dataframe containing the cluster assignment and ground truth for each data point # and returns the purity of the ...
35.944444
115
0.670273
0
0
0
0
0
0
0
0
1,328
0.228061
2acbee4216495a69c5721247c8f787b4e47f69f7
26,954
py
Python
pkgs/core/bdsim/core/components.py
CallumJHays/bdsim.micropython
da2e61496d3ef20c7ac4a65dba0ab18255990bec
[ "MIT" ]
null
null
null
pkgs/core/bdsim/core/components.py
CallumJHays/bdsim.micropython
da2e61496d3ef20c7ac4a65dba0ab18255990bec
[ "MIT" ]
null
null
null
pkgs/core/bdsim/core/components.py
CallumJHays/bdsim.micropython
da2e61496d3ef20c7ac4a65dba0ab18255990bec
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Components of the simulation system, namely blocks, wires and plugs. """ from abc import ABC, abstractmethod from typing import Any, Iterable, List, Optional as Opt, Tuple, Union, TYPE_CHECKING from typing_extensions import Literal from bdsim.core import np if TYPE_CH...
29.076591
106
0.563441
25,211
0.935334
0
0
2,288
0.084885
0
0
16,590
0.615493
2accc4316592f369a2446f7d46a9301b4a27b128
4,509
py
Python
code/alg/placement/random.py
S-Lab-System-Group/ChronusArtifact
bc7e15fefd53b80d1897170ab3c1aa7d353c3b79
[ "MIT" ]
7
2021-11-04T06:31:38.000Z
2022-02-08T11:46:42.000Z
code/alg/placement/random.py
S-Lab-System-Group/ChronusArtifact
bc7e15fefd53b80d1897170ab3c1aa7d353c3b79
[ "MIT" ]
null
null
null
code/alg/placement/random.py
S-Lab-System-Group/ChronusArtifact
bc7e15fefd53b80d1897170ab3c1aa7d353c3b79
[ "MIT" ]
1
2022-01-10T01:42:42.000Z
2022-01-10T01:42:42.000Z
import os, sys import math import random sys.path.insert(0, os.path.basename(__file__) + os.sep + '..' + os.sep + '..') from server.switch import _Switch from server.node import _Node from utils import util from alg.utils.topology import Topology from .base import BasePlaceMent class RandomPlaceMent(BasePlaceMent): ...
40.621622
167
0.541583
4,218
0.935462
0
0
0
0
0
0
1,242
0.275449
2acdbe48c1a63c18df33e8e3cfb8731347ace259
466
py
Python
fbl_handler/test_message_id_extractor.py
wheekey/fbl-handler
918e2c7ac50033630eebd5741a7ad3e9c56c3930
[ "MIT" ]
null
null
null
fbl_handler/test_message_id_extractor.py
wheekey/fbl-handler
918e2c7ac50033630eebd5741a7ad3e9c56c3930
[ "MIT" ]
null
null
null
fbl_handler/test_message_id_extractor.py
wheekey/fbl-handler
918e2c7ac50033630eebd5741a7ad3e9c56c3930
[ "MIT" ]
null
null
null
from unittest import TestCase from fbl_handler.message_id_extractor import MessageIdExtractor class TestMessageIdExtractor(TestCase): def setUp(self): self.message_id_extractor = MessageIdExtractor() def test_extract_from_yandex_fbl(self): with open('files/yandex_fbl.txt', 'r') as file: ...
31.066667
109
0.751073
367
0.787554
0
0
0
0
0
0
43
0.092275
2ace6c0babd8d4be95c012041013aaf8129f838b
30,169
py
Python
evohome_rf/opentherm.py
NotBobTheBuilder/evohome_rf
c3d9c3563d43fbe19a33c0493cde0864c1f4a23a
[ "MIT" ]
null
null
null
evohome_rf/opentherm.py
NotBobTheBuilder/evohome_rf
c3d9c3563d43fbe19a33c0493cde0864c1f4a23a
[ "MIT" ]
null
null
null
evohome_rf/opentherm.py
NotBobTheBuilder/evohome_rf
c3d9c3563d43fbe19a33c0493cde0864c1f4a23a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # """Evohome RF - Opentherm processor.""" import logging import struct from typing import Any from .const import __dev_mode__ DEV_MODE = __dev_mode__ _LOGGER = logging.getLogger(__name__) if DEV_MODE: _LOGGER.setLevel(logging.DEBUG) # Data structure shamelessy cop...
31.857445
101
0.515861
0
0
0
0
0
0
0
0
14,438
0.478285
2acecaa7265345057c582cd5659c528d1e06424d
3,030
py
Python
mut/viz.py
RPGroup-PBoC/mwc_mutants
35581602c35793fc8ec42c8aff37b8305c5e54e1
[ "MIT" ]
3
2020-11-11T21:33:26.000Z
2021-07-14T21:22:43.000Z
mut/viz.py
RPGroup-PBoC/mwc_mutants
35581602c35793fc8ec42c8aff37b8305c5e54e1
[ "MIT" ]
null
null
null
mut/viz.py
RPGroup-PBoC/mwc_mutants
35581602c35793fc8ec42c8aff37b8305c5e54e1
[ "MIT" ]
1
2021-07-14T21:22:45.000Z
2021-07-14T21:22:45.000Z
import bokeh.io import bokeh.plotting import bokeh.layouts import bokeh.palettes import seaborn as sns import numpy as np import os import matplotlib.pyplot as plt import matplotlib def plotting_style(grid=True): """ Sets the style to the publication style """ rc = {'axes.facecolor': '#E3DCD0', ...
37.407407
94
0.550825
0
0
0
0
0
0
0
0
1,859
0.613531
2ad0ac9327d191fb59e48707001f44685e276770
992
py
Python
pipeline/decorator.py
jnis77diver/django-pipeline
8bac57adae84615d9d79ad19b2b591c2e46879f9
[ "MIT" ]
null
null
null
pipeline/decorator.py
jnis77diver/django-pipeline
8bac57adae84615d9d79ad19b2b591c2e46879f9
[ "MIT" ]
1
2021-09-20T22:02:21.000Z
2021-09-21T13:55:41.000Z
pipeline/decorator.py
jnis77diver/django-pipeline
8bac57adae84615d9d79ad19b2b591c2e46879f9
[ "MIT" ]
1
2021-09-18T01:39:48.000Z
2021-09-18T01:39:48.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals """ This code is a part of django.utils.six on https://github.com/django/django/blob/stable/2.2.x/django/utils/six.py removed form Django 3.0 To keep the backward compatibility between python 2 and 3 the decorator need to be used as well, during ...
43.130435
141
0.667339
0
0
0
0
0
0
0
0
498
0.502016
2ad3092df187e4cb74cb88c0ec1606105db4f6cc
4,206
py
Python
nowplaying/recognition/theaudiodb.py
whatsnowplaying/whats-now-playing
45f5eaab5292430f86501e8c4b7cb0b9881436f4
[ "MIT" ]
16
2021-07-22T21:32:26.000Z
2022-01-30T05:32:10.000Z
nowplaying/recognition/theaudiodb.py
whatsnowplaying/whats-now-playing
45f5eaab5292430f86501e8c4b7cb0b9881436f4
[ "MIT" ]
175
2021-05-31T04:18:31.000Z
2022-03-29T17:29:26.000Z
nowplaying/recognition/theaudiodb.py
whatsnowplaying/whats-now-playing
45f5eaab5292430f86501e8c4b7cb0b9881436f4
[ "MIT" ]
6
2021-07-22T22:02:37.000Z
2021-12-31T19:36:33.000Z
#!/usr/bin/env python3 ''' start of support of theaudiodb ''' from html.parser import HTMLParser import logging import logging.config import logging.handlers import os import requests import requests.utils import nowplaying.bootstrap import nowplaying.config from nowplaying.recognition import RecognitionPlugin cla...
30.70073
78
0.628626
3,335
0.792915
0
0
0
0
0
0
1,155
0.274608
2ad374aeec5403a30d049d72b93822e349758d54
2,237
py
Python
reno/tests/test_create.py
mail2nsrajesh/reno
7ab07f1d2677b5c40a29be4010c0729d3a908aab
[ "Apache-2.0" ]
null
null
null
reno/tests/test_create.py
mail2nsrajesh/reno
7ab07f1d2677b5c40a29be4010c0729d3a908aab
[ "Apache-2.0" ]
null
null
null
reno/tests/test_create.py
mail2nsrajesh/reno
7ab07f1d2677b5c40a29be4010c0729d3a908aab
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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, softw...
33.893939
75
0.679928
1,579
0.705856
0
0
520
0.232454
0
0
795
0.355387
2ad4ce045c7a9b380a36fccf92dd30a4448a06dc
8,328
py
Python
maindb/query.py
DesmondYuan/ArtSearch
de0331b04c5b2b6187eae0bf610eb4e44c64eb08
[ "MIT" ]
null
null
null
maindb/query.py
DesmondYuan/ArtSearch
de0331b04c5b2b6187eae0bf610eb4e44c64eb08
[ "MIT" ]
null
null
null
maindb/query.py
DesmondYuan/ArtSearch
de0331b04c5b2b6187eae0bf610eb4e44c64eb08
[ "MIT" ]
null
null
null
import os import io import os import pandas as pd import numpy as np from google.cloud import vision from PIL import Image from google.cloud import vision from sklearn.metrics.pairwise import cosine_similarity from sklearn.metrics import mean_squared_error as MSE import pickle as pkl import time import tqdm features_...
30.173913
98
0.598223
0
0
0
0
0
0
0
0
2,714
0.325889
2ad5e8acfb1924c4fca0cbad2cf3c61e5ea92167
203
py
Python
tests/common/scripts/cleaning/test_strip.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
42
2020-03-25T16:47:30.000Z
2022-01-31T21:26:38.000Z
tests/common/scripts/cleaning/test_strip.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
367
2020-04-08T12:46:34.000Z
2022-02-16T01:15:32.000Z
tests/common/scripts/cleaning/test_strip.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
3
2020-05-14T08:24:46.000Z
2021-08-04T05:00:16.000Z
from common.scripts.cleaning import strip def test_clean_identity(): assert strip(None) == "" assert strip("NaN") == "" row_input = "Holà chicanos" assert strip(row_input) == row_input
22.555556
41
0.674877
0
0
0
0
0
0
0
0
25
0.122549
2ad6982b913eaaeaa3f0f9e019314d56df2662a1
2,186
py
Python
app.py
Munawwar/image-background-remove-tool
90b348d1a99599992b5ee074aa314d399c9172ed
[ "Apache-2.0" ]
null
null
null
app.py
Munawwar/image-background-remove-tool
90b348d1a99599992b5ee074aa314d399c9172ed
[ "Apache-2.0" ]
null
null
null
app.py
Munawwar/image-background-remove-tool
90b348d1a99599992b5ee074aa314d399c9172ed
[ "Apache-2.0" ]
null
null
null
from main import process import os import platform import subprocess import sys import threading import webview def worker_thread(window, inputfiles, model): print('processing started ...') count = 0 for inputfile in inputfiles: count += 1 (inputfilepath, inputfilename) = os.path.split(inputfil...
32.147059
109
0.667887
0
0
0
0
0
0
0
0
528
0.241537
2ad7054044b890689ad7e39e0a17d04847e28d9a
347
py
Python
grpc_django/models.py
soheltarir/grpc-django
890038de2d7b7c36e4fd37ef1727d3568b3f68f5
[ "MIT" ]
12
2018-08-03T08:02:32.000Z
2020-05-06T03:49:43.000Z
grpc_django/models.py
localhost-sys/grpc-django
890038de2d7b7c36e4fd37ef1727d3568b3f68f5
[ "MIT" ]
7
2018-07-18T07:18:44.000Z
2022-02-10T10:28:42.000Z
grpc_django/models.py
localhost-sys/grpc-django
890038de2d7b7c36e4fd37ef1727d3568b3f68f5
[ "MIT" ]
5
2019-10-13T08:22:04.000Z
2021-06-11T02:25:04.000Z
from django.contrib.auth.models import AbstractUser # Create your models here. class ContextUser(AbstractUser): """ Just an abstract model class to represent Auth user coming as context in GRPC requests """ class Meta: abstract = True def __str__(self): return " ".format([self.fi...
23.133333
90
0.688761
265
0.763689
0
0
0
0
0
0
131
0.377522
2ad83d1e90396e90bab93b0cb7b84859c83b1c0f
2,258
py
Python
models/vgg_cifar_lp.py
mengjian0502/BNFusionTrain
2cfb4a3dceb4dc468bbee88a1f65a66b29ee4de4
[ "MIT" ]
null
null
null
models/vgg_cifar_lp.py
mengjian0502/BNFusionTrain
2cfb4a3dceb4dc468bbee88a1f65a66b29ee4de4
[ "MIT" ]
null
null
null
models/vgg_cifar_lp.py
mengjian0502/BNFusionTrain
2cfb4a3dceb4dc468bbee88a1f65a66b29ee4de4
[ "MIT" ]
null
null
null
import math import torch.nn as nn from .modules import QConv2d, QLinear def make_layers(cfg, batch_norm=False, wbit=4, abit=4): layers = list() in_channels = 3 for v in cfg: if v == 'M': layers += [nn.MaxPool2d(kernel_size=2, stride=2)] elif v == 'A': layers += [nn....
33.205882
99
0.513286
1,263
0.559345
0
0
0
0
0
0
85
0.037644
2ad8e8c5d5e6c6097e19695b80c61293811bdb56
12,732
py
Python
library/central_templates.py
ageoffron/aruba-central-ansible-role
1216b2208689b2eddfb8f93fec3abf46e155198e
[ "MIT" ]
1
2020-09-28T11:18:10.000Z
2020-09-28T11:18:10.000Z
library/central_templates.py
ageoffron/aruba-central-ansible-role
1216b2208689b2eddfb8f93fec3abf46e155198e
[ "MIT" ]
null
null
null
library/central_templates.py
ageoffron/aruba-central-ansible-role
1216b2208689b2eddfb8f93fec3abf46e155198e
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Central Templates Ansible Module ''' # MIT License # # Copyright (c) 2020 Aruba, a Hewlett Packard Enterprise company # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software w...
35.564246
92
0.613415
0
0
0
0
0
0
0
0
7,251
0.56951
2ad91fd74a0335e007baaadc3de54f8cc151b31f
897
py
Python
habitat/_common/models/date.py
matrach/habitatOS
1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3
[ "MIT" ]
1
2021-02-01T19:04:39.000Z
2021-02-01T19:04:39.000Z
habitat/_common/models/date.py
matrach/habitatOS
1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3
[ "MIT" ]
null
null
null
habitat/_common/models/date.py
matrach/habitatOS
1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from habitat.timezone import get_timezone timezone = get_timezone() class MissionDate(models.Model): date = models.CharField( verbose_name=_(timezone.DATE_VERBOSE_NAME), help_text=_(timezone.DATE_HELP_TEXT), ...
21.878049
66
0.703456
733
0.817168
0
0
0
0
0
0
0
0
2adc0ea6b9bb37fa43a06659d0619937d02a6131
3,097
py
Python
tools/view_control_loop.py
gbalke/bldc-controller
99e4e71d5bdc0c7c7901d886aa7709c66db8b718
[ "MIT" ]
null
null
null
tools/view_control_loop.py
gbalke/bldc-controller
99e4e71d5bdc0c7c7901d886aa7709c66db8b718
[ "MIT" ]
null
null
null
tools/view_control_loop.py
gbalke/bldc-controller
99e4e71d5bdc0c7c7901d886aa7709c66db8b718
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import sys import serial import time from math import sin, cos, pi import argparse import ast from comms import * from boards import * from livegraph import livegraph if __name__ == '__main__': parser = argparse.ArgumentParser(description='Drive motor m...
40.75
153
0.572167
0
0
0
0
0
0
0
0
1,019
0.329028
2add0268352da063cc8ff52c49d8f25e54f7941d
1,889
py
Python
pylot/planning/messages.py
fangedward/pylot
a742b3789ee8e7fa2d692ae22bda1e2960ed9345
[ "Apache-2.0" ]
null
null
null
pylot/planning/messages.py
fangedward/pylot
a742b3789ee8e7fa2d692ae22bda1e2960ed9345
[ "Apache-2.0" ]
null
null
null
pylot/planning/messages.py
fangedward/pylot
a742b3789ee8e7fa2d692ae22bda1e2960ed9345
[ "Apache-2.0" ]
null
null
null
import erdos class WaypointsMessage(erdos.Message): """Message class to be used to send waypoints. Optionally can also send a target speed for each waypoint. Args: timestamp (:py:class:`erdos.timestamp.Timestamp`): The timestamp of the message. waypoints (list(:py:class:`~pyl...
38.55102
79
0.640021
1,870
0.989942
0
0
0
0
0
0
661
0.349921
2add26f359559b67a49ef36a3a8133c20b0cdcba
1,959
py
Python
Intro/3_Smooth_Sailing/10_commonCharacterCount.py
RylandGomez/CS-Arcade
086afa37fdba5bb2ca21fd93ed616bb5aca09d5d
[ "MIT" ]
null
null
null
Intro/3_Smooth_Sailing/10_commonCharacterCount.py
RylandGomez/CS-Arcade
086afa37fdba5bb2ca21fd93ed616bb5aca09d5d
[ "MIT" ]
null
null
null
Intro/3_Smooth_Sailing/10_commonCharacterCount.py
RylandGomez/CS-Arcade
086afa37fdba5bb2ca21fd93ed616bb5aca09d5d
[ "MIT" ]
null
null
null
def solution(s1, s2): ''' EXPLANATION ------------------------------------------------------------------- I approached this problem by creating two dictionaries, one for each string. These dictionaries are formatted with characters as keys, and counts as values. I then iterate over each string, ...
37.673077
71
0.552833
0
0
0
0
0
0
0
0
1,335
0.68147
2add4f7159e9dd3d9ad91008943b222b20c46420
295
py
Python
semlabs/iteralg/sem1.py
Revengerzz/Labs
07eb514962e203ce5af8e8604ea92cf91fc8f3c4
[ "MIT" ]
null
null
null
semlabs/iteralg/sem1.py
Revengerzz/Labs
07eb514962e203ce5af8e8604ea92cf91fc8f3c4
[ "MIT" ]
null
null
null
semlabs/iteralg/sem1.py
Revengerzz/Labs
07eb514962e203ce5af8e8604ea92cf91fc8f3c4
[ "MIT" ]
null
null
null
a = float(input('Введите число: ')) def koren (a): x = 3 k = 0 if (a<0): raise ValueError('Ошибка, введите число, меньшее нуля') while k != (a**0.5): k = 0.5 * (x + a/x) x = k return(k) print('Корень из числа ' + str(a) + ' равен ' + str(koren(a)))
21.071429
63
0.488136
0
0
0
0
0
0
0
0
140
0.39548
2addab6e6db1d5d6df636a69706b6de36199b161
2,350
py
Python
dataset_tools/dataset_case/base_case.py
jprashant21/ElNeuKGQA
ebafa0a3d3e779e487a665fabc4f9ed50f21f134
[ "MIT" ]
null
null
null
dataset_tools/dataset_case/base_case.py
jprashant21/ElNeuKGQA
ebafa0a3d3e779e487a665fabc4f9ed50f21f134
[ "MIT" ]
null
null
null
dataset_tools/dataset_case/base_case.py
jprashant21/ElNeuKGQA
ebafa0a3d3e779e487a665fabc4f9ed50f21f134
[ "MIT" ]
null
null
null
from typing import Optional class BaseCaseMethodNotImplemented(Exception): """ Exception when a BaseCase method has not been implemented. """ pass class BaseCase: """ Base class for representing a dataset case with a mandatory question text and an optional question id and sparql query an...
25.543478
91
0.628085
2,310
0.982979
0
0
1,083
0.460851
0
0
1,453
0.618298
2ae05deb85d181924e6db8964898b466526392a4
2,151
py
Python
06.8_bst_spiral.py
EashanKaushik/Data-Structures
e5bd391e029cb47e650d5665647ff57590b9b343
[ "MIT" ]
null
null
null
06.8_bst_spiral.py
EashanKaushik/Data-Structures
e5bd391e029cb47e650d5665647ff57590b9b343
[ "MIT" ]
null
null
null
06.8_bst_spiral.py
EashanKaushik/Data-Structures
e5bd391e029cb47e650d5665647ff57590b9b343
[ "MIT" ]
null
null
null
class Node: def __init__(self, data=None, left=None, right=None): self._left = left self._data = data self._right = right @property def left(self): return self._left @left.setter def left(self, left): self._left = left @property def right(self): return self._right @right.setter def right(self, ...
20.682692
54
0.572292
456
0.211994
0
0
310
0.144119
0
0
10
0.004649
2ae0a2bc2853c1126fffc979b1b96432d2186477
4,531
py
Python
app/run.py
Jaghwani/Disaster-Response-Pipeline
869ff0d150d9b247a6098cf384eff60ccb0f0344
[ "FTL", "CNRI-Python", "blessing" ]
null
null
null
app/run.py
Jaghwani/Disaster-Response-Pipeline
869ff0d150d9b247a6098cf384eff60ccb0f0344
[ "FTL", "CNRI-Python", "blessing" ]
null
null
null
app/run.py
Jaghwani/Disaster-Response-Pipeline
869ff0d150d9b247a6098cf384eff60ccb0f0344
[ "FTL", "CNRI-Python", "blessing" ]
null
null
null
import json import plotly import pandas as pd from nltk.stem import WordNetLemmatizer from nltk.tokenize import word_tokenize from flask import Flask from flask import render_template, request, jsonify from plotly.graph_objs import Bar from sklearn.externals import joblib from sqlalchemy import create_engine app = ...
28.859873
82
0.573383
0
0
0
0
3,498
0.772015
0
0
1,631
0.359965
2ae152f052fcede641510f72585c3855762a8eb7
119
py
Python
workflow/scripts/data/__init__.py
percyfal/wg-genealogy-smk
f9ed6e5876ca20c6693625237e57b22acd3f4cee
[ "MIT" ]
1
2022-03-21T17:43:08.000Z
2022-03-21T17:43:08.000Z
workflow/scripts/data/__init__.py
percyfal/wg-genealogy-smk
f9ed6e5876ca20c6693625237e57b22acd3f4cee
[ "MIT" ]
null
null
null
workflow/scripts/data/__init__.py
percyfal/wg-genealogy-smk
f9ed6e5876ca20c6693625237e57b22acd3f4cee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __all__ = ("natural_earth",) from .natural_earth import natural_earth
17
40
0.689076
0
0
0
0
0
0
0
0
60
0.504202
2ae1ab750c7d91fe0b34736e84b79b4270ed4fbb
355
py
Python
1_mundo_exercicios/ex012.py
GuilhermeLima182/CursoDePython
7e72b117142794c38cbb14284d0fa6e1dbee5bf6
[ "MIT" ]
null
null
null
1_mundo_exercicios/ex012.py
GuilhermeLima182/CursoDePython
7e72b117142794c38cbb14284d0fa6e1dbee5bf6
[ "MIT" ]
null
null
null
1_mundo_exercicios/ex012.py
GuilhermeLima182/CursoDePython
7e72b117142794c38cbb14284d0fa6e1dbee5bf6
[ "MIT" ]
null
null
null
#Faça um programa que pergunte ao usuario o valor do produto, #e mostre o valor final com 5% de desconto. valorProduto = float(input('Qual o valor do produto? R$ ')) desconto = (valorProduto * 5) / 100 vFinal = valorProduto - desconto print('O valor do produto é R${}'.format(valorProduto)) print('O novo valor com o d...
39.444444
62
0.721127
0
0
0
0
0
0
0
0
204
0.569832
2ae22ebc1ff5af7ea983e4b1cf1879b8fdb9382c
9,880
py
Python
python/plot_meridional_avg_multiple_fields_climo.py
E3SM-Project/a-prime
a8c084ab6f727904a2b38d8a93b9c83e2f978e3f
[ "BSD-3-Clause" ]
1
2017-06-07T13:13:32.000Z
2017-06-07T13:13:32.000Z
python/plot_meridional_avg_multiple_fields_climo.py
ACME-Climate/a-prime
a8c084ab6f727904a2b38d8a93b9c83e2f978e3f
[ "BSD-3-Clause" ]
31
2017-06-07T00:26:58.000Z
2018-04-09T17:03:15.000Z
python/plot_meridional_avg_multiple_fields_climo.py
ACME-Climate/a-prime
a8c084ab6f727904a2b38d8a93b9c83e2f978e3f
[ "BSD-3-Clause" ]
1
2018-08-05T23:43:59.000Z
2018-08-05T23:43:59.000Z
# # Copyright (c) 2017, UT-BATTELLE, LLC # All rights reserved. # # This software is released under the BSD license detailed # in the LICENSE file in the top level a-prime directory # ###Work in Progress: Plot meridional averages for different fields in the same plot. ###07/03/2017 import matplotlib as mpl #changing t...
37.003745
119
0.566093
0
0
0
0
0
0
0
0
1,701
0.172166
2ae2318f1e53b32601c5c8db2c16277213b2f472
1,670
py
Python
sample/sample.py
dogwood008/python-kabusapi
7e7a5ac232e037c651b5447b408d8b0b6727c9b0
[ "MIT" ]
11
2020-10-02T04:27:50.000Z
2022-01-05T03:41:03.000Z
sample/sample.py
dogwood008/python-kabusapi
7e7a5ac232e037c651b5447b408d8b0b6727c9b0
[ "MIT" ]
1
2020-12-15T03:52:45.000Z
2020-12-15T23:28:04.000Z
sample/sample.py
dogwood008/python-kabusapi
7e7a5ac232e037c651b5447b408d8b0b6727c9b0
[ "MIT" ]
5
2021-02-21T16:25:50.000Z
2022-02-15T08:11:43.000Z
import kabusapi url = "localhost" port = "18081" # 検証用, 本番用は18080 password = "hogehoge" # 初期設定・トークン取得 api = kabusapi.Context(url, port, password) # 取得トークンの表示 print(api.token) # トークンを指定した初期設定 パスワードが不要 api = kabusapi.Context(url, port, token='fugafuga') # 注文発注 (現物買い) data = { "Password": "hoge", "Symbol": ...
14.396552
51
0.575449
0
0
0
0
0
0
0
0
891
0.455521
2ae48ee7262087d6a799cdd263fa2699c0692509
2,766
py
Python
tests/runtime/doubling_vector.py
yangdanny97/chocopy-python-compiler
588cba0cb330bd63f00e06420a32ba47c25c4468
[ "MIT" ]
7
2021-08-28T18:20:45.000Z
2022-02-01T07:35:59.000Z
tests/runtime/doubling_vector.py
yangdanny97/chocopy-python-compiler
588cba0cb330bd63f00e06420a32ba47c25c4468
[ "MIT" ]
1
2020-05-30T17:57:11.000Z
2020-05-30T20:44:53.000Z
tests/runtime/doubling_vector.py
yangdanny97/chocopy-python-frontend
d0fb63fc744771640fa4d06076743f42089899c1
[ "MIT" ]
2
2022-02-05T06:16:16.000Z
2022-02-24T11:07:09.000Z
# A resizable list of integers class Vector(object): # Attributes items: [int] = None size: int = 0 # Constructor def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of...
24.696429
63
0.629067
1,113
0.402386
0
0
0
0
0
0
455
0.164497
2ae50d70a3a83bb9efe62ed2d9ccae0243224d10
2,330
py
Python
refinery/units/blockwise/map.py
bronxc/refinery
9448facf48a0008f27861dd1a5ee8f5218e6bb86
[ "BSD-3-Clause" ]
null
null
null
refinery/units/blockwise/map.py
bronxc/refinery
9448facf48a0008f27861dd1a5ee8f5218e6bb86
[ "BSD-3-Clause" ]
null
null
null
refinery/units/blockwise/map.py
bronxc/refinery
9448facf48a0008f27861dd1a5ee8f5218e6bb86
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from typing import Dict, Optional, Sequence from refinery.units.blockwise import Arg, BlockTransformation from refinery.lib.tools import isbuffer class map(BlockTransformation): """ Each block of the input data which occurs as a block of the index argument is re...
40.172414
99
0.621459
2,133
0.915451
0
0
0
0
0
0
765
0.328326
2ae5dfb215b19942bd9a30e35a3057db94d2a78f
299
py
Python
Python-codes-CeV/51-Arithmetic_P.py
engcristian/Python
726a53e9499fd5d0594572298e59e318f98e2d36
[ "MIT" ]
1
2021-02-22T03:53:23.000Z
2021-02-22T03:53:23.000Z
Python-codes-CeV/51-Arithmetic_P.py
engcristian/Python
726a53e9499fd5d0594572298e59e318f98e2d36
[ "MIT" ]
null
null
null
Python-codes-CeV/51-Arithmetic_P.py
engcristian/Python
726a53e9499fd5d0594572298e59e318f98e2d36
[ "MIT" ]
null
null
null
''' Arithmetic progression with 10 elements. ''' first_term = int(input('Type the first term of this A.P: ')) reason = int(input('Type the reason of this A.P: ')) last_term = first_term + (50-1)*reason # A.P formula for c in range (first_term, last_term + reason , reason): print(c, end=' ► ')
29.9
60
0.668896
0
0
0
0
0
0
0
0
134
0.445183
2ae6050a70fc0ee48b50e9bc45933afac8b8ea4a
11,360
py
Python
src/cascade_at/executor/dismod_db.py
ihmeuw/cascade-at
a5b1b5da1698163fd3bbafc6288968dd9c398096
[ "MIT" ]
1
2019-10-14T23:18:04.000Z
2019-10-14T23:18:04.000Z
src/cascade_at/executor/dismod_db.py
ihmeuw/cascade
a5b1b5da1698163fd3bbafc6288968dd9c398096
[ "MIT" ]
35
2018-07-17T18:37:33.000Z
2020-03-06T13:31:35.000Z
src/cascade_at/executor/dismod_db.py
ihmeuw/cascade
a5b1b5da1698163fd3bbafc6288968dd9c398096
[ "MIT" ]
4
2018-07-13T00:01:35.000Z
2019-09-02T23:56:11.000Z
#!/usr/bin/env python import logging import sys from pathlib import Path from typing import Union, List, Dict, Any, Optional, Tuple import os import numpy as np import pandas as pd from cascade_at.core import CascadeATError from cascade_at.context.model_context import Context from cascade_at.core.log import get_logger...
39.72028
106
0.678609
120
0.010563
0
0
0
0
0
0
3,779
0.332658
2ae6eff3bd8be08beceb2b936760471cfdb63209
414
py
Python
astropy/config/__init__.py
xiaomi1122/astropy
8876e902f5efa02a3fc27d82fe15c16001d4df5e
[ "BSD-3-Clause" ]
null
null
null
astropy/config/__init__.py
xiaomi1122/astropy
8876e902f5efa02a3fc27d82fe15c16001d4df5e
[ "BSD-3-Clause" ]
null
null
null
astropy/config/__init__.py
xiaomi1122/astropy
8876e902f5efa02a3fc27d82fe15c16001d4df5e
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module contains configuration and setup utilities for the `astropy` project. This includes all functionality related to the affiliated package index. """ from __future__ import (absolute_import, division, print_function, u...
29.571429
66
0.748792
0
0
0
0
0
0
0
0
225
0.543478
2aea2e195f4a15fce6635cf3266266d6afd53722
1,047
py
Python
ABC169/F.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC169/F.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC169/F.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
import sys from collections import defaultdict input = sys.stdin.readline mod = 998244353 def extgcd(a,b): r = [1,0,a] w = [0,1,b] while w[2] != 1: q = r[2]//w[2] r2 = w w2 = [r[0]-q*w[0],r[1]-q*w[1],r[2]-q*w[2]] r = r2 w = w2 return [w[0],w[1]] def mod_inv(a,...
21.8125
54
0.424069
0
0
0
0
0
0
0
0
10
0.009551
2aecb72c40fb43c9fc2cbc47d687dce7b40d1d6a
1,363
py
Python
ferry/nlp/fetch/fetch_evals.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
4
2020-11-12T19:37:06.000Z
2021-12-14T01:38:39.000Z
ferry/nlp/fetch/fetch_evals.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
96
2020-09-08T05:17:17.000Z
2022-03-31T23:12:51.000Z
ferry/nlp/fetch/fetch_evals.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
2
2021-03-03T23:02:40.000Z
2021-06-17T23:33:05.000Z
# pylint: skip-file import json import requests url = "http://localhost:8085/v1/graphql" def fetch_evals(term, dump=True): query = ( """ query MyQuery { courses(where: { season: {season_code: {_eq: \"""" + str(term) + """\"}}, school: {...
26.211538
76
0.487894
0
0
0
0
0
0
0
0
891
0.653705
2aece40023ab19be0d9af7b42aedee10e53c55c8
1,375
py
Python
spec/person.py
ace6807/spec-data-validation-pattern
57c7a757035f16ffa999244175814db0ec3964d9
[ "MIT" ]
1
2021-07-27T00:55:08.000Z
2021-07-27T00:55:08.000Z
spec/person.py
ace6807/spec-data-validation-pattern
57c7a757035f16ffa999244175814db0ec3964d9
[ "MIT" ]
null
null
null
spec/person.py
ace6807/spec-data-validation-pattern
57c7a757035f16ffa999244175814db0ec3964d9
[ "MIT" ]
null
null
null
from dataclasses import dataclass from . import Spec from dto.person import PersonDTO @dataclass class HasNameSpec(Spec): def passes(self, candidate: PersonDTO) -> bool: return candidate.name is not None and candidate.name != "" @dataclass class HasAgeSpec(Spec): def passes(self, candidate: PersonDT...
22.916667
66
0.674909
1,205
0.876364
0
0
1,271
0.924364
0
0
6
0.004364
2aed7fe6b7fb1f101fb3fe39a4efc26c3e607f45
629
py
Python
src/wattbike_importer.py
sdresearch/what-watt1
d8765007bf36a1770d8ca390f8bdcf790dc0f9d5
[ "MIT" ]
null
null
null
src/wattbike_importer.py
sdresearch/what-watt1
d8765007bf36a1770d8ca390f8bdcf790dc0f9d5
[ "MIT" ]
null
null
null
src/wattbike_importer.py
sdresearch/what-watt1
d8765007bf36a1770d8ca390f8bdcf790dc0f9d5
[ "MIT" ]
null
null
null
import requests HUB_LOCATION = 'http://hub.wattbike.com/ranking/getSessionRows?sessionId=' class HubClient: def __init__(self, location=None): self.location = location if location else HUB_LOCATION def _validate_session_id(self, session_id): # TODO: add regex validation of session_id ...
27.347826
74
0.693164
533
0.847377
0
0
0
0
0
0
130
0.206677
2aef266ecab631d6845cc494ea93892db8e19c6c
1,436
py
Python
main/views.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
main/views.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
main/views.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404, render from django.http import Http404 from .models import MainMetadata from cal.models import Event from classes.models import ClassInstance from cal.models import Event from datetime import date, timedelta # Create your views here. def about(request): about = Mai...
27.615385
60
0.647632
0
0
0
0
0
0
0
0
253
0.176184
2af0b1d1c701ad3d57e0a7212ef9b12e29d346a9
1,761
py
Python
backend/generate-events.py
daveygit2050/kow-london.co.uk
1a4321fec1adb42e08b138ee2324e9ce47e89fa5
[ "MIT" ]
null
null
null
backend/generate-events.py
daveygit2050/kow-london.co.uk
1a4321fec1adb42e08b138ee2324e9ce47e89fa5
[ "MIT" ]
null
null
null
backend/generate-events.py
daveygit2050/kow-london.co.uk
1a4321fec1adb42e08b138ee2324e9ce47e89fa5
[ "MIT" ]
null
null
null
import json import requests import tenacity from bs4 import BeautifulSoup from geopy.geocoders import Nominatim from urllib.parse import parse_qs from urllib.parse import urlparse @tenacity.retry(retry=tenacity.retry_if_exception_type(IOError), wait=tenacity.wait_fixed(2)) def get_grid_ref_for_postcode(nominatim, pos...
45.153846
133
0.724588
0
0
0
0
265
0.150483
0
0
334
0.189665