hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
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
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
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
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
3e7b669f9181d850205eba668b7e6640efaab979
754
py
Python
RedBook/ch2/2-6.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/2-6.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/2-6.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import urllib.request url = 'http://www.example.com' proxyServer = 'http://www.proxy.com:3128' # 프록시 서버를 통해 웹 서버로 요청을 보냅니다. proxy_handler = urllib.request.ProxyHandler({'http': proxyServer}) # 프록시 서버 설정을 무시하고 웹 서버로 요청을 보냅니다. #proxy_handler = urllib.request.ProxyHandler({}) # 프록시 서버에 대한 인증을 처리합니다. proxy_auth_handler...
29
72
0.741379
e4434e3c2d9f4bf47590f3ccf2bed5046ad3121d
179
py
Python
Curso-Em-Video-Python/2Exercicios/015_Aluguel_de_Carros.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/015_Aluguel_de_Carros.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/015_Aluguel_de_Carros.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
dias = int(input('Quantos dias deseja alugar? ')) km = float(input('Quantos km foram rodados? ')) total = (dias * 60) + (km * 0.15) print('O total a pagar é {:.2f}'.format(total))
44.75
49
0.642458
39dc0185cbcea30a0134b0ae5baf2f4358f531e0
5,683
py
Python
Utils/py/GoPro/utils/GameControlData2017.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/GameControlData2017.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/GameControlData2017.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
''' Copied structure from the GameController "data.GameControlData.java" file. ''' import logging from struct import Struct class GameControlData(Struct): """Representation of the SPL message format.""" GAMECONTROLLER_STRUCT_HEADER = b'RGme' GAMECONTROLLER_STRUCT_VERSION = 10 GAME_ROUNDROBIN = ...
35.298137
111
0.55622
ffe57eeca22b29ad431e5502db9e81b8c3461cf7
1,001
py
Python
RedBook/ch2/download_image2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/download_image2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/download_image2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import os from urllib.parse import urljoin import requests from bs4 import BeautifulSoup def parse_image(data): soup = BeautifulSoup(data, 'html.parser') imgTagList = soup.find_all('img') dataSet = set(x.attrs['src'] for x in imgTagList) return dataSet def download_image(url, dataSet): if not os...
23.833333
55
0.639361
0805e421f9347e64bd1fd0e2802db3d177e5f4a7
2,200
py
Python
loesungen/chapter03/vectors.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
loesungen/chapter03/vectors.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
loesungen/chapter03/vectors.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
class Vector: def __init__(self, values): self.values = values # Addition def __add__(self, other): if type(other) != Vector: raise TypeError("Can only add vectors to each other!") if len(self.values) != len(other.values): raise ValueError("Vectors need to h...
33.846154
78
0.562273
f281f4351c2983adcaa1a4d98b0f5d03ed833d39
2,419
py
Python
sample/fix_miss_spell.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
6
2018-12-20T06:50:52.000Z
2021-12-16T13:08:38.000Z
sample/fix_miss_spell.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2020-06-29T07:00:51.000Z
2020-06-29T07:00:51.000Z
sample/fix_miss_spell.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2022-03-04T07:29:55.000Z
2022-03-04T07:29:55.000Z
import argparse import pickle import os import sys dir_path = os.path.dirname(os.path.abspath(__file__)) module_path = os.path.join(dir_path, "../src") if module_path not in sys.path: sys.path.append(module_path) def main(): parser = argparse.ArgumentParser( description='create n-gram count object') ...
32.689189
139
0.659363
d9eacac8c15b0037df0aefd60e7bf36520b39e82
4,014
py
Python
python/oneflow/compatible/single_client/nn/__init__.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-09-13T02:34:53.000Z
2021-09-13T02:34:53.000Z
python/oneflow/compatible/single_client/nn/__init__.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/compatible/single_client/nn/__init__.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-01-17T03:34:39.000Z
2021-01-17T03:34:39.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
38.970874
101
0.821873
76e4cae45ee5503ce96b9f451c3957614dec3df9
412
py
Python
exercises/fr/test_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/test_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/test_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): import spacy.tokens import spacy.lang.en assert isinstance( nlp, spacy.lang.en.English ), "L'objet nlp doit être une instance de la classe English." assert isinstance( doc, spacy.tokens.Doc ), "As-tu traité le texte avec l'objet nlp pour créer un doc ?" assert "p...
29.428571
72
0.652913
0af596a4e36c79405a7a5fbe958dad246897b3bb
675
py
Python
Algorithms/3_Strings/21.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/3_Strings/21.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/3_Strings/21.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/anagram/problem #!/bin/python3 import math import os import random import re import sys from collections import Counter # # Complete the 'anagram' function below. # # The function is expected to return an INTEGER. # The function accepts STRING s as parameter. # def anagram(s,...
19.285714
74
0.638519
7c5d8e577af793a70c38d41c80043e6511092980
854
py
Python
top/clearlight/base/runoob/socket/socket_demo_01.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/runoob/socket/socket_demo_01.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/runoob/socket/socket_demo_01.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import socket '''# 创建socket对象 s = socket.socket() # 获取本地主机名 host = socket.gethostname() print(host) # 设置端口 port = 12345 # 绑定端口 s.bind((host, port)) # 等待客户端连接 s.listen(5) # 建立客户端连接 while True: c, addr = s.accept() print('连接地址:', addr) c.send('欢迎访问菜鸟教程!') c.close()''' # 建立一个服务端 server = socket.socket(s...
22.473684
63
0.62178
d4cc70e4e84e68fadf43057d27115dddee93110b
6,274
py
Python
hashing/scripts/latency_group.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/latency_group.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/latency_group.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
import getopt import os import sys import matplotlib import matplotlib.pyplot as plt import numpy as np import pylab from matplotlib.font_manager import FontProperties OPT_FONT_NAME = 'Helvetica' TICK_FONT_SIZE = 24 LABEL_FONT_SIZE = 28 LEGEND_FONT_SIZE = 30 LABEL_FP = FontProperties(style='normal', size=LABEL_FONT_S...
34.472527
133
0.579056
d4fcd0aec309ed809339974454a79ba71ddd51f2
6,539
py
Python
py/jpy/src/test/python/jpy_rt_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
210
2015-03-19T14:07:16.000Z
2022-03-31T19:28:13.000Z
py/jpy/src/test/python/jpy_rt_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
py/jpy/src/test/python/jpy_rt_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
40
2015-10-17T13:53:41.000Z
2021-07-18T20:09:11.000Z
import unittest import sys import jpyutil jpyutil.init_jvm(jvm_maxmem='512M') import jpy class TestString(unittest.TestCase): """ Tests various Java SE classes from rt.jar """ def setUp(self): self.String = jpy.get_type('java.lang.String') self.assertIsNotNone(self.String) de...
29.995413
104
0.592751
be03b1f7ef8a741707b278fb36ce3f37c72f19a5
28,097
py
Python
research/cvtmodel/regnet/src/regnet_x_32gf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/regnet/src/regnet_x_32gf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/regnet/src/regnet_x_32gf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
59.908316
119
0.510375
ed0d5f4528160e58a28d3893b9df5e8e9f20472d
5,685
py
Python
WebRoot/fckeditor/editor/filemanager/connectors/py/zope.py
zhaotianen/MyOAWeb
6b374e350eb499e1ccb5d09847da88ed464c75b6
[ "Apache-2.0" ]
28
2015-02-06T02:53:52.000Z
2022-03-02T18:25:46.000Z
public/javascripts/fckeditor/editor/filemanager/connectors/py/zope.py
emk/typo
39f6d3de6904ee986d4eca079113997aff16aaf6
[ "MIT" ]
23
2016-04-26T23:54:37.000Z
2016-11-23T14:43:50.000Z
public/javascripts/fckeditor/editor/filemanager/connectors/py/zope.py
emk/typo
39f6d3de6904ee986d4eca079113997aff16aaf6
[ "MIT" ]
16
2015-01-12T16:09:17.000Z
2021-08-20T06:31:13.000Z
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2008 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
30.079365
95
0.697801
ed3ea6c9e413d8a3985e707e75f11fc1337fe5d1
7,258
py
Python
postprocessing/meshing.py
mWollenhaupt/Mask_R-CNN_3D-Buildings
220f20b41a7290a01c0bb47672453e646254f8fc
[ "MIT" ]
2
2021-05-20T22:49:28.000Z
2021-06-16T06:35:07.000Z
postprocessing/meshing.py
mWollenhaupt/Mask_R-CNN_3D-Buildings
220f20b41a7290a01c0bb47672453e646254f8fc
[ "MIT" ]
null
null
null
postprocessing/meshing.py
mWollenhaupt/Mask_R-CNN_3D-Buildings
220f20b41a7290a01c0bb47672453e646254f8fc
[ "MIT" ]
null
null
null
import os import sys import arcpy import numpy as np import skimage.io ROOT_DIR = os.path.abspath("../") os.chdir(ROOT_DIR) sys.path.append(ROOT_DIR) from utils import resources from model import dataset from utils.logger import ProgressLogger def mesh(detections, splits, shapefile, dst_name="buildings_3d"): # geo...
45.936709
114
0.61849
9c01a0c82d5ff539330b181e95a5108c658d5764
908
py
Python
Project Euler Qusetions 11 - 20/Project Euler Question 17.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
1
2020-02-11T02:03:02.000Z
2020-02-11T02:03:02.000Z
Project Euler Qusetions 11 - 20/Project Euler Question 17.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
Project Euler Qusetions 11 - 20/Project Euler Question 17.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
#Project Euler Question 17 #If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. #If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used? #NOTE: Do not count spaces or h...
33.62963
161
0.678414
9c602a3f7827e5825f5300e933efd6625912a64a
1,699
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_0/create_custom_fields_for_india_specific_fields.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_0/create_custom_fields_for_india_specific_fields.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_0/create_custom_fields_for_india_specific_fields.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.custom.doctype.custom_field.custom_field import create_custom_field_if_values_exist def execute(): frappe.reload_doc("stock"...
26.546875
95
0.654503
9c7b2d9477d0560811609302598960c313b382b9
5,490
py
Python
sakf/app/auth/user.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/app/auth/user.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/app/auth/user.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # User import logging import json import tornado.web from sakf.app.sakf import base from sakf.db.model import Auth from sakf.utils.sql_page_query import limitQuery from sakf.utils.md5_encryption import md5_string class UserHandler(base.BaseHandlers): @base.auth_url @tornado.web.authentica...
32.105263
112
0.593807
bc51ac634297890e00e357eca893ab22814ffac7
2,931
py
Python
src/main/python/cluster/dbscan/dbscan_choffsteen.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/cluster/dbscan/dbscan_choffsteen.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/cluster/dbscan/dbscan_choffsteen.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
# -*- coding: utf-8 -*- # A Density-Based Algorithm for Discovering Clusters in Large Spatial Databases with Noise # Martin Ester, Hans-Peter Kriegel, Jörg Sander, Xiaowei Xu # dbscan_demo: density based spatial clustering of applications with noise import numpy as np import math UNCLASSIFIED = False NOISE...
33.306818
91
0.611054
e6d168720249c2d2d514eab86099396fec7b5389
2,105
py
Python
frappe-bench/apps/erpnext/erpnext/demo/user/fixed_asset.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/demo/user/fixed_asset.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/demo/user/fixed_asset.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils.make_random import get_random from erpnext.assets.doctype.asset.asset import make_purchase_invoice, make_sales_invoice...
33.412698
106
0.76247
f8fc7a323a50e26fbf6f6c3ae28ef05a4f8575bf
1,825
py
Python
event_detector/gttm/ts/task_scheduler.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
event_detector/gttm/ts/task_scheduler.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
event_detector/gttm/ts/task_scheduler.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore from apscheduler.triggers.interval import IntervalTrigger from apscheduler.executors.pool import ProcessPoolExecutor from pytz import utc class TaskScheduler: def __init__(self): ...
30.416667
81
0.616986
5d2c100178efac62ef97512941dcc26392d3a5a7
6,117
py
Python
Utils/py/ConfigViewer/Utils.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
15
2015-01-12T10:46:29.000Z
2022-03-28T05:13:14.000Z
Utils/py/ConfigViewer/Utils.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
2
2019-01-20T21:07:50.000Z
2020-01-22T14:00:28.000Z
Utils/py/ConfigViewer/Utils.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
5
2018-02-07T18:18:10.000Z
2019-10-15T17:01:41.000Z
import glob import os import pprint import re import Config def compare_dict(d1: dict, d2: dict, verbose: bool, ignore=None): # storing the differences of each dict r = {} # compare the dict keys k1 = set(d1.keys()) k2 = set(d2.keys()) # if ignore is not None: for ign in ignore: ...
39.211538
137
0.493052
5d51aa1d4b364e31529b4284327756b4c98e9f6d
1,603
py
Python
pythonBot/msgParse.py
tabacha/WoIstDerWagen
feddaedbde494e9e0983f6a2c34b6b5c65a6ed23
[ "Apache-2.0" ]
5
2016-06-27T07:37:16.000Z
2018-04-18T12:09:39.000Z
pythonBot/msgParse.py
tabacha/WoIstDerWagen
feddaedbde494e9e0983f6a2c34b6b5c65a6ed23
[ "Apache-2.0" ]
21
2016-06-26T09:46:25.000Z
2020-02-23T11:08:35.000Z
pythonBot/msgParse.py
tabacha/WoIstDerWagen
feddaedbde494e9e0983f6a2c34b6b5c65a6ed23
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import live_api import re import logging import wagenreihung log = logging.getLogger(__name__) ZUGTYPEN=['ICE','IC','EC','RJ','TGV','CNL','AZ','D','HKX','RE','RB','IRE','S','DPN','THA', 'EN'] WAGEN_QUERYS=[re.compile('Wagen\s*(\d+)', flags=re.IGNORECASE), re.compile('Wg\.\s*(\d+...
27.169492
96
0.491578
53802021bfdd381b7421ba3a2e98d04eb7a73518
4,746
py
Python
Image_Recognition/Find_Car.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Image_Recognition/Find_Car.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Image_Recognition/Find_Car.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
""" Scans for the car by searching for the biggest group of bordering pixels in the color range. """ class ImageScanner: def __init__(self, image, color, color_range): """ :param image: np.array (x, y, grey_scale) :param color: = base color :param color_range: m...
32.958333
106
0.557101
4ae5e714f75f6f4a84d082214008c158423d4bae
2,062
py
Python
research/cv/FaceAttribute/src/data_to_mindrecord_eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/FaceAttribute/src/data_to_mindrecord_eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/FaceAttribute/src/data_to_mindrecord_eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
30.776119
78
0.629486
ab0e2816272b77da4b9fedd926919c36ffe51cf5
308
py
Python
exercises/fr/solution_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/solution_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/solution_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importe la classe de langue "Français" et crée l'objet nlp from spacy.lang.fr import French nlp = French() # Traite le texte doc = nlp("La forêt est peuplée de loups gris et renards roux.") # Sélectionne le premier token first_token = doc[0] # Affiche le texte du premier token print(first_token.text)
22
64
0.746753
91639ade7f1a8b3ddca2f00756eface7c9f8faa3
1,307
py
Python
xstampp-deploy/sql/create_last_editor_uuid_migration_script.py
SE-Stuttgart/xstampp-4.0
b31e952bf98fc88ec579f0cb11a029769ef0e745
[ "Apache-2.0" ]
1
2022-01-14T02:08:24.000Z
2022-01-14T02:08:24.000Z
xstampp-deploy/sql/create_last_editor_uuid_migration_script.py
SE-Stuttgart/xstampp-4.0
b31e952bf98fc88ec579f0cb11a029769ef0e745
[ "Apache-2.0" ]
null
null
null
xstampp-deploy/sql/create_last_editor_uuid_migration_script.py
SE-Stuttgart/xstampp-4.0
b31e952bf98fc88ec579f0cb11a029769ef0e745
[ "Apache-2.0" ]
3
2021-03-09T20:54:43.000Z
2021-05-10T08:52:57.000Z
""" tables list was obtained by command select t.table_schema, t.table_name from information_schema.tables t inner join information_schema.columns c on c.table_name = t.table_name and c.table_schema = t.table_schema where c.column_name = 'last_edited' and t.table_schema not...
27.229167
113
0.741393
729bc1f877b45cee911842721597bf2580a33cb5
1,351
py
Python
03 Python/Smart Home Dashboard/loesung/hwio/hwdevice.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Smart Home Dashboard/loesung/hwio/hwdevice.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Smart Home Dashboard/loesung/hwio/hwdevice.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
from abc import ABC, abstractmethod class HardwareDevice(ABC): """ Abstrakte Basisklasse für einen mit der Anwender angesprochendes Hardwarebaustein. Diese Klasse definiert lediglich die tick()-Methode, die in der Hauptschleife des Programms regelmäßig aufgerufen werden muss, um den Status des Baustein...
42.21875
94
0.704663
72c16c4195d83acdcee0e62bc873e6d35dceeff3
3,505
py
Python
src/test/tests/plots/tensor.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/plots/tensor.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/plots/tensor.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: tensor.py # # Tests: tensor - 3D rectilinear, single domain # plots - tensor + some more exhibiting tensor functionality. # # Defect ID: '4165 # # Programmer: Hank Childs # D...
21.770186
100
0.675606
f437f75d05eddb0460159e93124cd590da6abc95
2,512
py
Python
Packs/AutoFocus/Integrations/AutoFocusTagsFeed/AutoFocusTagsFeed_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/AutoFocus/Integrations/AutoFocusTagsFeed/AutoFocusTagsFeed_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/AutoFocus/Integrations/AutoFocusTagsFeed/AutoFocusTagsFeed_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
""" """ from AutoFocusTagsFeed import Client, fetch_indicators_command, incremental_level_fetch import json import io def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: return json.loads(f.read()) def test_build_iterator(mocker): """ Given: - Output of the fe...
38.646154
127
0.724124
bea4da4bcf3858bc866c09fdfe194d29b30f937f
1,156
py
Python
languages/python/oso/tests/test_multi.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
1
2021-07-08T17:36:08.000Z
2021-07-08T17:36:08.000Z
languages/python/oso/tests/test_multi.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
2
2021-03-24T19:24:40.000Z
2021-03-24T19:54:46.000Z
languages/python/oso/tests/test_multi.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
1
2021-03-24T19:51:45.000Z
2021-03-24T19:51:45.000Z
import random import time from concurrent.futures import ThreadPoolExecutor import concurrent.futures from oso import Oso, OsoError ITERS = 100 class X: def __init__(self, x): self.x = x def __eq__(self, other): return self.x == other.x def r(): return random.randint(0, 5) def exhau...
18.95082
73
0.589965
fe9bc63bd02f1b91ac957360091665632a64d109
3,411
py
Python
haas_lib_bundles/python/libraries/bh1750/bh1750.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/bh1750/bh1750.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/bh1750/bh1750.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2015-2022 Alibaba Group Holding Limited MicroPython's drive for BH1750 Author: HaaS Date: 2022/03/22 """ import utime from driver import I2C class BH1750(object): MT_HIGH_MAX = 180 # ms MT_LOW_MAX = 24 # ms MT_HIGH_TYP = 120 # ms MT_LOW_TYP = 16 # ms # Continuousl...
29.405172
92
0.604515
229baa71419d002e3b356b98bd6fc2de48aa33ed
3,085
py
Python
CLI Tools/masterExtract.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
null
null
null
CLI Tools/masterExtract.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
38
2018-10-24T08:51:58.000Z
2021-12-13T19:54:39.000Z
CLI Tools/masterExtract.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
12
2018-10-24T08:20:13.000Z
2019-08-12T08:10:14.000Z
''' Created on 15.01.2018 @author: Henry Fock, Anika Graupner ''' import click import extractGeoDataFromFolder as fext import getBoundingBox as box import getPolygon as poly import getTimeExtent as timeext # asking for parameters in command line @click.command() @click.option('--path', prompt="Please enter path to ...
35.872093
281
0.642139
22a7d4745e8096c91ace1b3d3ddfe1dd8f753c11
7,844
py
Python
src/prediction/classification.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/prediction/classification.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/prediction/classification.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
"""classfication.py - gas stations classfication tools""" import logging from math import atan2, pi import os import pandas as pd from ..exceptions_ import (BadFormatException, TrainingDataMissingException) from ..compat import printf, pickle from ..config import Configuration from ..dao import StationDAO from ..uti...
40.43299
142
0.644314
a3cc21e6a3b244df84f5111a19f281f632fbd87f
5,302
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/bladetpmphypresence_lib.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/bladetpmphypresence_lib.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/bladetpmphypresence_lib.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. #!/usr/bin...
39.864662
117
0.590909
4308ff513b3d5cfad5302eeab879e865327fefd5
449
py
Python
Python/Exercícios_Python/065_tratando_vários_valores.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/065_tratando_vários_valores.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/065_tratando_vários_valores.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """065 - Tratando Vários Valores Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1MUYYLHwxxlKukZk9djMK-kBqW7fD-TH9 """ cont = n = soma = 0 while n != 999: n = int(input('Digite um número: [999 para parar]')) if n != 999...
24.944444
90
0.643653
4376338b1c9e1e332d51fc2437bbe9c26bbda9cd
202
pyde
Python
sketches/singleParticleTrailColor/singleParticleTrailColor.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/singleParticleTrailColor/singleParticleTrailColor.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/singleParticleTrailColor/singleParticleTrailColor.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# Single Particle from particle import Particle def setup(): global p size(640, 480) loc = PVector(width/2, 50) p = Particle(loc) def draw(): global p background(0) p.run()
15.538462
30
0.613861
6016458c12bdeaffc65e6fa6448bdc1803a76ac6
2,992
py
Python
posts/models.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/models.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/models.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
from django.contrib.contenttypes.models import ContentType from django.db import models from django.contrib.auth.models import User from django.db.models import Q from django.urls import reverse from django.utils.text import slugify, mark_safe from django.db.models.signals import pre_save from django.utils import timez...
30.530612
126
0.707553
71c9102834d2cc03633a3a03bfb14a0e74b63ba3
978
py
Python
20-fs-ias-lec/groups/Demo_D/createfulldb.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/Demo_D/createfulldb.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/Demo_D/createfulldb.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
if __name__ == '__main__': import feed_control import multiprocessing import time import logStore process = multiprocessing.Process(target=feed_control.cli) process.start() time.sleep(5) process.terminate() logMerge = LogMerge() from EventCreationTool import EventFactory dc...
36.222222
109
0.702454
1c9cdf65064847af1935c908294c39ee747cca9a
703
py
Python
packages/watchmen-storage-mongodb/src/watchmen_storage_mongodb/codes_options.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-mongodb/src/watchmen_storage_mongodb/codes_options.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-mongodb/src/watchmen_storage_mongodb/codes_options.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from decimal import Decimal from bson import Decimal128 from bson.codec_options import CodecOptions, TypeCodec, TypeRegistry class DecimalCodec(TypeCodec): python_type = Decimal # the Python type acted upon by this type codec bson_type = Decimal128 # the BSON type acted upon by this type codec def transform_py...
27.038462
80
0.765292
c703bf4b2c0341ad36a58eb73bc03aa82aba8744
10,193
py
Python
pelicanconf.py
jeffskinnerbox/jeffskinnerbox.github.io
d07feff062dc80da1fef339185a891d97d5c2806
[ "Unlicense", "MIT" ]
29
2015-09-12T08:08:12.000Z
2022-03-01T14:24:18.000Z
pelicanconf.py
jeffskinnerbox/jeffskinnerbox.github.io
d07feff062dc80da1fef339185a891d97d5c2806
[ "Unlicense", "MIT" ]
null
null
null
pelicanconf.py
jeffskinnerbox/jeffskinnerbox.github.io
d07feff062dc80da1fef339185a891d97d5c2806
[ "Unlicense", "MIT" ]
14
2015-09-12T08:08:13.000Z
2022-01-27T07:28:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # All the setting identifiers must be set in all-caps, otherwise they will not # be processed. Setting values that are numbers (5, 20, etc.), booleans # (True, False, None, etc.), dictionaries, or tuples should not be enclosed in # quotation marks. All other values (i....
39.972549
140
0.713431
c7193a4f349b38912b1d0c4e9b33c4b541e9fcc7
12,870
py
Python
tests/utils/__init__.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
31
2018-01-05T22:49:33.000Z
2022-02-02T10:30:23.000Z
tests/utils/__init__.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
737
2017-12-11T17:42:11.000Z
2022-03-29T22:42:52.000Z
tests/utils/__init__.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
46
2018-02-23T09:04:23.000Z
2022-02-09T18:29:51.000Z
import os import time import urllib.parse import uuid from flask import current_app from fence.config import config from fence.models import ( User, Project, AccessPrivilege, UserToGroup, Group, CloudProvider, Bucket, StorageAccess, ProjectToBucket, UserToBucket, query_for...
28.039216
88
0.499611
40334c8e8307ee617829a7be8a529b0f40f769ad
1,952
py
Python
py/make_book.py
bookmana/bookmana.github.io
2ed7b023b0851c0c18ad8e7831ece910d9108852
[ "MIT" ]
null
null
null
py/make_book.py
bookmana/bookmana.github.io
2ed7b023b0851c0c18ad8e7831ece910d9108852
[ "MIT" ]
null
null
null
py/make_book.py
bookmana/bookmana.github.io
2ed7b023b0851c0c18ad8e7831ece910d9108852
[ "MIT" ]
null
null
null
import datetime import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) TARGET_DIR = "/static_site_repo/_posts" FULL_PATH = "{}{}".format(BASE_DIR, TARGET_DIR) def create_book(bfo, review_list,m_row, s_row): now = datetime.datetime.now() now = now+datetime.timedelta(minutes...
21.217391
187
0.61834
40c7f87ea4753f8cc29a8d0dd791cfaa50eb5a69
626
py
Python
solutions/mols_search/mols-search-webserver/src/service/delete.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-04-06T06:13:20.000Z
2021-04-06T06:13:20.000Z
solutions/mols_search/mols-search-webserver/src/service/delete.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/mols_search/mols-search-webserver/src/service/delete.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2020-04-03T05:24:47.000Z
2020-04-03T05:24:47.000Z
import logging import time from common.config import DEFAULT_TABLE from common.const import default_cache_dir from encoder.encode import feature_extract from diskcache import Cache from indexer.index import milvus_client, create_table, insert_vectors, delete_table, search_vectors, create_index,delete_table def do_del...
29.809524
126
0.753994
40d18d4a5a59a318cc5c945b21bb8ed27769d34a
628
py
Python
Boot2Root/hackthebox/Charon/scripts/genKey.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
Boot2Root/hackthebox/Charon/scripts/genKey.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
Boot2Root/hackthebox/Charon/scripts/genKey.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
from Crypto.PublicKey import RSA n = 85161183100445121230463008656121855194098040675901982832345153586114585729131 e = 65537 p = 280651103481631199181053614640888768819 q = 303441468941236417171803802700358403049 m = n-(p+q-1) # multiplicative inverse function def egcd(a, b): if a == 0: return (b, 0, 1) ...
23.259259
81
0.636943
904e52bba278cf7c4670f22ed0870cd4046ce209
8,534
py
Python
finbyz_dashboard/hooks.py
finbyz/finbyz_dashboard
9c58ab7bccf589bc010d0e5bf95b20cadd4d71f0
[ "MIT" ]
1
2021-11-19T05:27:11.000Z
2021-11-19T05:27:11.000Z
finbyz_dashboard/hooks.py
finbyz/finbyz_dashboard
9c58ab7bccf589bc010d0e5bf95b20cadd4d71f0
[ "MIT" ]
null
null
null
finbyz_dashboard/hooks.py
finbyz/finbyz_dashboard
9c58ab7bccf589bc010d0e5bf95b20cadd4d71f0
[ "MIT" ]
2
2021-08-21T10:41:38.000Z
2021-11-19T05:27:13.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "finbyz_dashboard" app_title = "Finbyz Dashboard" app_publisher = "Finbyz Tech. Pvt. Ltd." app_description = "Finbyz Dashboard" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = ...
35.558333
136
0.799625
465b69dbd8c70354f98b4a40358f8525881e9fa1
943
py
Python
tmp/var_annot/analyze.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
tmp/var_annot/analyze.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
tmp/var_annot/analyze.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import gast as ast from transonic.analyses.capturex import CaptureX from transonic.analyses import extast from transonic.analyses import analyse_aot from transonic.analyses.util import print_dumped, print_unparsed from transonic.backends import backends backend = backends["cython"] path_file = "simple.py" with op...
21.930233
92
0.73807
466eae61f689db86829d2cbe81657d1ea4bff3e1
8,884
py
Python
packages/watchmen-utilities/src/watchmen_utilities/value_expression.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-utilities/src/watchmen_utilities/value_expression.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-utilities/src/watchmen_utilities/value_expression.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import date, datetime, time from decimal import Decimal from typing import Any, List, Optional, Tuple, Union from .datetime_helper import is_date, is_time, truncate_time from .numeric_helper import is_decimal def is_empty(value: Any) -> bool: """ empty means given value is one of none, zero length st...
32.661765
111
0.733341
9eea97205303cf45e90b0f83f8d86bffa4b5413a
7,408
py
Python
pocketthrone/managers/playermanager.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
4
2016-06-05T16:48:04.000Z
2020-03-23T20:06:06.000Z
pocketthrone/managers/playermanager.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
pocketthrone/managers/playermanager.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
import os import json import copy from random import choice from pocketthrone.entities.enum import WidgetAction from pocketthrone.entities.player import Player from pocketthrone.entities.fraction import Fraction from pocketthrone.entities.event import * from pocketthrone.managers.pipe import L from pocketthrone.manage...
32.349345
98
0.75162
c371a65d82597af82b2a2fe67c14faf6fc0e65f3
603
py
Python
webinterface/management/commands/create_plots.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
webinterface/management/commands/create_plots.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
webinterface/management/commands/create_plots.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
from django.core.management.base import BaseCommand from webinterface.views import create_cleaner_analytics, create_schedule_analytics class Command(BaseCommand): help = 'Creates plots for CleanerAnalyticsView and ScheduleAnalyticsView. This function is best run ' \ 'as a Cron job once a week. Creating...
46.384615
107
0.752902
c37a76275e9c7b56ff5e5b09db840ba71fd4396a
225
py
Python
fizzbuzz.py
Anoopabraham126/Fizzbuzz
813302e75e5abf96de420c0ed2631b9c32ca47a3
[ "Apache-2.0" ]
null
null
null
fizzbuzz.py
Anoopabraham126/Fizzbuzz
813302e75e5abf96de420c0ed2631b9c32ca47a3
[ "Apache-2.0" ]
null
null
null
fizzbuzz.py
Anoopabraham126/Fizzbuzz
813302e75e5abf96de420c0ed2631b9c32ca47a3
[ "Apache-2.0" ]
null
null
null
# anoop abraham, 2018-02-17 # fizzbuzz:https://en.wikipedia.org/wiki/Fizz_buzz i = 1 while i <= 10: if i % 3 == 0: print("Fizz") if i % 5 == 0: print("Buzz") else: print(i) i = i + 1
16.071429
50
0.493333
d2ecb0ed33925ea197b47b6a48ea2470f76201de
1,779
py
Python
backend/songwriter/migrations/0002_auto_20170804_1644.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
backend/songwriter/migrations/0002_auto_20170804_1644.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
12
2017-09-25T20:13:29.000Z
2020-02-12T00:12:41.000Z
backend/songwriter/migrations/0002_auto_20170804_1644.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-08-04 14:44 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('songwriter', '0001_initial'), ] operations = [ ...
33.566038
133
0.591906
d2ee5c6853bec806fd89bce76dcd9916c4fe22b0
12,911
py
Python
tensorforce/models/pg_model.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
null
null
null
tensorforce/models/pg_model.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
null
null
null
tensorforce/models/pg_model.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
1
2019-11-29T12:28:33.000Z
2019-11-29T12:28:33.000Z
# Copyright 2017 reinforce.io. 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 applicable law or...
36.678977
126
0.614437
825b9f5559cdb57404bee4f1991c543b648534eb
86
py
Python
app/user/__init__.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
app/user/__init__.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
4
2020-08-29T16:11:12.000Z
2022-03-12T00:47:03.000Z
app/user/__init__.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
from flask import Blueprint user = Blueprint('user', __name__) from . import views
12.285714
34
0.744186
7daa0f4fd07524a4b1983d7695c00082156fd7bc
2,122
py
Python
tests/rbac/api/user/get_user_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
tests/rbac/api/user/get_user_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2019-07-08T22:32:43.000Z
2019-07-08T22:32:43.000Z
tests/rbac/api/user/get_user_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
31.671642
79
0.700754
7dbcb6412dab857a8a93d634da6ce885ee430d29
704
py
Python
haas_lib_bundles/python/libraries/waterlevel/water4level.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/waterlevel/water4level.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/waterlevel/water4level.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
from driver import ADC class WATER4LEVEL(object): def __init__(self, adcObj): self.adcObj = None if not isinstance(adcObj, ADC): raise ValueError("parameter is not an ADC object") self.adcObj = adcObj def measureLevel(self): if self.adcObj is None: rais...
27.076923
62
0.555398
c4b5e0980415aae568f4f3a43c1f14c240d8ca5b
1,315
py
Python
Packs/PagerDuty/Integrations/PagerDuty/PageDuty_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PagerDuty/Integrations/PagerDuty/PageDuty_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PagerDuty/Integrations/PagerDuty/PageDuty_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
# -*- coding: utf-8 -*- from CommonServerPython import * def test_get_incidents(requests_mock, mocker): """ Given: - An incident with non-ascii character in its documentation When: - Running get incidents command Then: - Ensure command run without failing on UnicodeError ...
29.886364
109
0.55057
fbd38a299f2c3fa6bc31f10e24e9b101739698f7
33,939
py
Python
Modell/CSV/diagramm_zeit.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/CSV/diagramm_zeit.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/CSV/diagramm_zeit.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np #Daten aus CSV time_tf = np.array([124.75419044494629,23.006677627563477,22.004127502441406,22.00603485107422,22.005319595336914,23.004770278930664,22.005796432495117,22.005558013916016,22.005558013916016,22.00603485107422,23.006439208984375,21.004438400268555,22.005...
893.131579
16,826
0.885972
f7cc241405e8aa5b1bbb6b95b04fe211b45b98aa
10,968
py
Python
scenarios/continuous_uav_base/render_utils.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
2
2022-02-24T08:21:49.000Z
2022-03-10T08:57:35.000Z
scenarios/continuous_uav_base/render_utils.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
1
2022-02-24T08:40:21.000Z
2022-02-24T12:01:58.000Z
scenarios/continuous_uav_base/render_utils.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
null
null
null
import pygame import numpy as np import cv2 RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) BLACK = (0, 0, 0) WHITE = (255, 255, 255) YELLOW = (255, 255, 0) BROWN = (184, 134, 11) GRAY = (169, 169, 169) DISPLAY_BATTERY = True class ContinuousWorldRenderer: def __init__(self, num_grid=500, obs_range=25, ...
46.278481
146
0.645241
5818d39b83fdc03fbd2553bcf2b90578fdf65701
916
py
Python
数据结构/NowCode/31_Convert.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/31_Convert.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/31_Convert.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 输入一棵二叉搜索树,将该二叉搜索树转换成一个排序的双向链表。要求不能创建任何新的结点,只能调整树中结点指针的指向。 class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def Convert(self, pRootOfTree): def find_right(node): while node.right: node = node.right...
26.941176
59
0.578603
549e55f71bce39973255a0daccd626c85ff9df32
72
py
Python
ISTp/2014/VOLKO_S_D/task-1-46.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2014/VOLKO_S_D/task-1-46.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2014/VOLKO_S_D/task-1-46.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
input ('Анук Эме - это псевдоним актрисы Франсуазы Юдит Сорья Дрейфус')
36
71
0.777778
54b9212b4a6ff3234c2846609e934c7574ef0332
2,733
py
Python
DataProcess/my_utils/reproduce_autotag.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
3
2021-12-24T04:52:03.000Z
2021-12-27T02:14:49.000Z
DataProcess/my_utils/reproduce_autotag.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
DataProcess/my_utils/reproduce_autotag.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
from typing import Dict # !/usr/bin/env python # -*- coding: UTF-8 -*- """ @Project :DataProcess @File :reproduce_autotag.py @Author :Zhang Qihang @Date :2021/11/8 13:18 https://cloud.tencent.com/developer/article/1650150 """ import pandas as pd import numpy as np import myplot import myunwrap import math im...
30.032967
117
0.642883
3f89623ac8e4be9d59c1d5454e16dacdd47029a3
1,026
py
Python
data_tests/test_packaging/setup.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
data_tests/test_packaging/setup.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
data_tests/test_packaging/setup.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from distutils.core import setup, Extension from pathlib import Path import numpy as np from transonic.dist import ( make_backend_files, init_transonic_extensions, ParallelBuildExt, ) path_sources = Path(__file__).parent.absolute() include_dirs = [np.get_include()] try: from Cython.Build import cython...
25.02439
78
0.675439
b755b2ddc0962a62e205df235005dc323c473571
3,401
py
Python
example/middle_worker.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
example/middle_worker.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
example/middle_worker.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
import logging from random import randint from typing import Dict, List, Tuple, Union import msgpack import zmq from pydantic.main import BaseModel from example.data_models import ( InputMessage, OutputMessage, PostgresMessage, Queue1Message, ) from example.plugins.my_plugin import MyPGConsumer from v...
31.201835
115
0.688621
c462fc1a20a17ea240117c3d41ac0968e73a0841
1,455
py
Python
tarefas-poo/lista-03/balde/model/balde.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/balde/model/balde.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/balde/model/balde.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5663 # Exercício do Balde # -------------------------- # Classe que representa um balde. Um balde é um objeto capaz de armazenar até N litros de água. # class Balde: def __init__(self, capacidade): '''Define a capacidade do balde que, inicialmente, está ...
25.526316
95
0.534708
c04fcf474ea85fc1bf822ca4d5b29b481b0a9664
9,495
py
Python
pythonlib/gsmtpd/gsmtpd.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
1
2015-10-26T10:38:32.000Z
2015-10-26T10:38:32.000Z
pythonlib/gsmtpd/gsmtpd.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
null
null
null
pythonlib/gsmtpd/gsmtpd.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Overview: # # This file implements the minimal SMTP protocol as defined in RFC 821. It # has a hierarchy of classes which implement the backend functionality for the # smtpd. A number of classes are provided: # # SMTPServer - the base class for the backend. Raises N...
33.083624
78
0.527646
225bcfec86b798fa4e633e93f1c74463e52fa89f
573
py
Python
testlogin/TestLoginF.py
weibk/webauto
f494f8043d05739935d1fc22b941bbc9a7ba75b7
[ "MIT" ]
null
null
null
testlogin/TestLoginF.py
weibk/webauto
f494f8043d05739935d1fc22b941bbc9a7ba75b7
[ "MIT" ]
null
null
null
testlogin/TestLoginF.py
weibk/webauto
f494f8043d05739935d1fc22b941bbc9a7ba75b7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # encoding='utf-8' # author:weibk # time:2021/10/29 09:33 from selenium import webdriver from unittest import TestCase from ddt import ddt, data from Data import TestData from PageOperation import PageOp import time @ddt class TestLoginF(TestCase): @data(*TestData.data_failed) def test_fail...
24.913043
58
0.69459
3f4c8a2a48700d2033a9753511841ce7b5d52519
1,891
py
Python
official/recommend/deepfm/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/deepfm/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/deepfm/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.078431
80
0.674775
18dbb267d82e4b93f52b494c32b271e5e5023591
1,055
py
Python
code/selfish_proxy/behaviour.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
null
null
null
code/selfish_proxy/behaviour.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
null
null
null
code/selfish_proxy/behaviour.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
1
2019-06-05T09:10:30.000Z
2019-06-05T09:10:30.000Z
from bitcoinnetwork import network from bitcoin import core from bitcoin import messages import logging import chainutil from strategy import BlockOrigin class CatchUpBehaviour(network.ClientBehavior): def __init__(self, network_client, catch_up_connection, chain): super(CatchUpBehaviour, self).__init__(n...
34.032258
88
0.703318
e13526344cef5dc7ee94ff6b5ce6f2a86074450a
16,770
py
Python
Packs/F5Silverline/Integrations/F5Silverline/F5Silverline.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/F5Silverline/Integrations/F5Silverline/F5Silverline.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/F5Silverline/Integrations/F5Silverline/F5Silverline.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import re import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa import requests import traceback from typing import Dict, Any requests.packages.urllib3.disable_warnings() # pylint: disable=no-member BASE_URL = "/...
41.820449
120
0.663804
8356ced3396188fda7eca9102254037e51c7cad4
7,407
py
Python
examples/sentiment_analysis/skep/predict_opinion.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/sentiment_analysis/skep/predict_opinion.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/sentiment_analysis/skep/predict_opinion.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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 appli...
42.568966
138
0.641825
3691fe9b781cfdb44772949add6d702e1c9dcff1
4,937
py
Python
migrations/versions/e33f225323f3_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/e33f225323f3_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/e33f225323f3_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: e33f225323f3 Revises: 7b105c6e08bf Create Date: 2020-12-30 17:59:47.917389 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "e33f225323f3" down_revision = "7b105c6e08bf" branch_lab...
46.140187
88
0.691108
a1618f5337a2318b34c5d589a6fb029105f98b64
2,205
py
Python
tests/all_unittest.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
tests/all_unittest.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
tests/all_unittest.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Alle Tests der Dateien test_*.py durchführen Alle Laufzeit Fehlermeldungen sind bei der Testausführung gewollt Nach der Ausführung steht am Ende OK wenn alle Tests durchgefürt wurden. Bei Fehlern in den Überprüfungen steht am Ende:: =================================================...
26.566265
98
0.6
a177b81321e6e08163e29cddcb88ab87875dc5b3
971
py
Python
nz_crawl_demo/day9/zhipin/zhipin/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day9/zhipin/zhipin/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day9/zhipin/zhipin/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
#将 ip 和 端口号进行拼接 时间转成datetime类型 判断是否过期 #{'ip': '58.218.92.73', 'port': 4898, 'expire_time': '2020-03-18 15:23:02', 'city': '聊城市', 'isp': '联通', 'outip': '119.178.113.112'} from datetime import datetime,timedelta class ProxyModel(object): def __init__(self,data): self.ip = data['ip'] self.port = data[...
42.217391
135
0.607621
3de22a7e73dc97a918c2d25ccba7065b09a5f1e0
3,421
py
Python
tests/onegov/fsi/test_views_attendee.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/fsi/test_views_attendee.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/fsi/test_views_attendee.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.fsi.models.course_attendee import external_attendee_org from onegov.user import User def test_course_attendee_collection(client): view = '/fsi/attendees' client.get(view, status=403) client.login_member() client.get(view, status=403) def test_attendee_details(client_with_db): client ...
32.273585
79
0.694241
4998c72245cb62496ef5f8c16ae8edf18cb72a38
4,718
py
Python
plan/models.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
plan/models.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
plan/models.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
2
2020-04-20T07:26:51.000Z
2020-04-30T11:51:54.000Z
from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. class FieldOfStudy(models.Model): name = models.CharField(max_length=50, verbose_name="专业方向名称") description = models.TextField("描述", blank=True) def __str__(self): ...
35.742424
121
0.666384
624f0fe82e4213d64b41af35b7af65ce0d7e3f4f
4,258
py
Python
pylokid/library/webdav.py
tobru/pylokid
15b46d19c62ef62c068873554cafdc5b1bc0072a
[ "MIT" ]
3
2020-03-03T07:38:24.000Z
2021-07-21T22:40:41.000Z
pylokid/library/webdav.py
tobru/pylokid
15b46d19c62ef62c068873554cafdc5b1bc0072a
[ "MIT" ]
10
2018-01-02T17:46:06.000Z
2021-12-13T20:58:38.000Z
pylokid/library/webdav.py
tobru/pylokid
15b46d19c62ef62c068873554cafdc5b1bc0072a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ WebDav Functions """ import os import json from datetime import datetime import logging import asyncio import aioeasywebdav class WebDav: """ WebDav Client """ def __init__(self, url, username, password, webdav_basedir, tmp_dir): self.logger = logging.getLogger(__name__) ...
36.084746
88
0.580319
6274227e79d514eb4c6f135e44ff6df4c7ef2ef1
2,019
py
Python
src/test/tests/plots/singlecolor.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/plots/singlecolor.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/plots/singlecolor.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: singlecolor.py # # Tests: mesh - 3D rectilinear, single domain # plots - Boundary, FilledBoundary, Subset # # Defect ID: VisIt00002372 # # Programmer: Brad Whitlock # Date:...
26.220779
78
0.636454
657dfc88da33c3af7e1fb30ed00194be9bff3df3
12,383
py
Python
fhirclient/r4models/medicinalproductpharmaceutical.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/medicinalproductpharmaceutical.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/medicinalproductpharmaceutical.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/MedicinalProductPharmaceutical) on 2019-05-07. # 2019, SMART Health IT. from . import domainresource class MedicinalProductPharmaceutical(domainresource.DomainResource): """...
45.525735
155
0.663006
f31e8d733217ad85ad95e45c1677596a4589543f
2,642
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/encryption/date_masker.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/encryption/date_masker.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/encryption/date_masker.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import date from typing import Any, List, Union from watchmen_data_kernel.common import DataKernelException from watchmen_model.admin import FactorEncryptMethod from watchmen_utilities import is_date_plus_format from .encryptor import Encryptor class DateMasker(Encryptor): def __init__(self, month: bo...
33.871795
96
0.748675
b89a51794f04223c9cdc82d90dd3b5ea8856baa5
6,141
py
Python
animVL53L1XScan.py
StefanMack/VL53FlashLidar
694ea4e4c6c0cf4d426543bec4f33514c3071ee1
[ "CC0-1.0" ]
null
null
null
animVL53L1XScan.py
StefanMack/VL53FlashLidar
694ea4e4c6c0cf4d426543bec4f33514c3071ee1
[ "CC0-1.0" ]
null
null
null
animVL53L1XScan.py
StefanMack/VL53FlashLidar
694ea4e4c6c0cf4d426543bec4f33514c3071ee1
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Programm zur Darstellung der Scandaten des VL53L1X Flash Lidar von STMicrosystems # Der Sensor wird an einem Arduino betrieben über dessen serielle Schnittstelle eine # Messung getriggert und anschließend ausgelesen wird. # Die Rückgabedaten enthalten für die gemessenen 13 ...
44.824818
119
0.711773
3bb40238e40cba1c9a3baebaff9137591c1c553e
841
py
Python
rengine/scripts/generate_workout_plan.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
rengine/scripts/generate_workout_plan.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
rengine/scripts/generate_workout_plan.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
import argparse from rengine.config import WorkoutSplit from rengine.workout_plan import generate_workout_plan def run(): parser = argparse.ArgumentParser("Rengine Client") parser.add_argument("workout_split", metavar="workout-split", action="store" , choices = WorkoutSplit.ALL, help="The split that will be ge...
49.470588
199
0.713436
e7efff0c1aec281badad9102c952cf3ce020a178
1,394
py
Python
tests/onegov/org/test_homepage_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_homepage_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_homepage_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from lxml import etree from onegov.core.utils import scan_morepath_modules from onegov.core.widgets import transform_structure from onegov.org import OrgApp def test_widgets(): class App(OrgApp): pass scan_morepath_modules(App) App.commit() widgets = App().config.homepage_widget_registry.va...
24.45614
61
0.572453
f081595e96ccc0f21acc34dcbbbfc6dfdb1dee50
16,063
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/gcp_cloudbuild_trigger_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/gcp_cloudbuild_trigger_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/gcp_cloudbuild_trigger_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Google # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ---------------------------------------------------------------------------- # # *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** # ...
39.082725
124
0.596153
686416799941f45d3c16f12e29ecc80057349412
7,655
py
Python
huTools/postmark.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
huTools/postmark.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
huTools/postmark.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ postmark.py - support for the postmark mail sending API Based on pytohn-postmark (C) 2009-2010 David Martorana, Wildbit LLC, Python Software Foundation. Created by Maximillian Dornseif on 2010-09-27. Copyright (c) 2010 HUDORA. All rights reserved. """ from __future__ import...
39.869792
105
0.63305
68a7c98222a7d615c2214c566be96d27fccfd10d
578
py
Python
Chapter2_Python/NumpyIntro.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter2_Python/NumpyIntro.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter2_Python/NumpyIntro.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
import numpy as np noten_py_list = [100, 89, 44, 78, 45, 24, 18] noten_np_array = np.array(noten_py_list, dtype=np.int8) print(noten_py_list) print(noten_np_array) noten_max = np.max(noten_np_array) noten_min = np.min(noten_np_array) print(noten_max) print(noten_min) # [100, 89, 44, 78, 45, 24, 18]...
20.642857
56
0.737024
040d5cdf0764426d4a5fad9e219d5e223bed7899
2,844
py
Python
backend/app/schemas/task.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/app/schemas/task.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/schemas/task.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from enum import IntEnum from typing import Any, List, Optional, Union from pydantic import BaseModel from app.schemas.polygon_data import AnnotationData, OffsetPolygonData, RectangleData from app.schemas.task_hint import TaskHint class TaskType(IntEnum): DRAWING = 0 DRAWING_WITH_CLASS = 1 I...
23.7
88
0.694444
f0f18882272ae6c12c1fce43c15a285f618c91dc
3,335
py
Python
savageml/simulations/base_simulation.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
savageml/simulations/base_simulation.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
savageml/simulations/base_simulation.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
import inspect import numpy.random import time from typing import Tuple, List, Union from ..models import BaseModel from .simulation_state import SimulationState test = numpy.random.default_rng(10) def get_default_seed(): return int(time.time() * 1E6) class BaseSimulation: def __init__(self, model=None, s...
32.378641
81
0.5997
acb31395e812aa0a4264b248a76b52f58d1323e1
591
py
Python
vorl3-ueb3.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl3-ueb3.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl3-ueb3.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# 3. Vorlesung 09.10.2020 # Aufgabe 3 aus Skript Python 2 (05_Python_02.pdf): # Rechnen mit 'math' import math # Teil 1 for i in range(1,11): print("Potenz von '" + str(i) + "' ist '" + str(pow(i,2)) + "'") # Teil 2 for i in range(10,101,10): print("Quadratwurzen von '" + str(i) + "' ist '" + str(math.sqrt(...
28.142857
79
0.575296
c5f8f8de9b79169509e0565bb3b85b857fdc6690
1,541
py
Python
src/sankey-diagrams/sankey.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/sankey-diagrams/sankey.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/sankey-diagrams/sankey.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# sankey diagram # holoviews import holoviews as hv from holoviews import dim, opts hv.extension("matplotlib") nodes = [ "PhD", "Career Outside Science", "Early Career Researcher", "Research Staff", "Permanent Research Staff", "Professor", "Non-Academic Research", ] nodes = hv.Dataset(enum...
21.704225
66
0.506814
a87ad009a8d40e744bfd6b38f035414a29c9b86d
3,597
py
Python
crm/filter.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
1
2021-01-23T21:42:10.000Z
2021-01-23T21:42:10.000Z
crm/filter.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
crm/filter.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
import django_filters from crm.models import * from django_filters import DateFilter class KundenFilter(django_filters.FilterSet): """ Eine Klasse zur Repräsentation eines Kundenfilters ... Classes ---------- Meta: Felderdefinitionen de...
21.538922
95
0.448707
7666ef6b6165adb0de5f84f94724831b28d4757a
186
py
Python
frappe-bench/apps/erpnext/erpnext/non_profit/web_form/grant_application/grant_application.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/non_profit/web_form/grant_application/grant_application.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/non_profit/web_form/grant_application/grant_application.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals def get_context(context): context.no_cache = True context.parents = [dict(label='View All ', route='grant-application', title='View All')]
20.666667
47
0.747312
76c709aa37fccb6b1c7757d997d67ac32f4ad142
686
py
Python
GeeksForGeeks/Blum Integer/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
GeeksForGeeks/Blum Integer/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
GeeksForGeeks/Blum Integer/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# Function to cheek if number is Blum Integer def isBlumInteger(n): prime = [True]*(n + 1) # to store prime numbers from 2 to n i = 2 while (i * i <= n): if (prime[i] == True) : # Update all multiples of p for j in range(i * 2, n + 1, i): prime[j] = False i = i + 1 # to check if the giv...
20.176471
60
0.529155
50754c75dd902c8bb535bdd2d569987092113c39
9,288
py
Python
accuracy.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
1
2018-08-31T07:16:40.000Z
2018-08-31T07:16:40.000Z
accuracy.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
null
null
null
accuracy.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
1
2018-07-01T18:03:01.000Z
2018-07-01T18:03:01.000Z
""" __author__ = Yash Patel __name__ = accuracy.py __description__ = Runs tests on the spectral clustering deanonymization scripts to see performance in hierarchical clustering vs. k-means. Does tests over various values of p, q, and cluster sizes """ import os import numpy as np import matplotlib matplot...
35.450382
91
0.53876
0f95f1aa29c45be3679e69470af7e3a077c857f1
2,659
py
Python
official/recommend/deepfm/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/deepfm/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/deepfm/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.985714
101
0.713802
2ce860ea5c89eab3e21203b5f227e49c302e021b
3,665
py
Python
packages/watchmen-meta/src/watchmen_meta/gui/last_snapshot_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/gui/last_snapshot_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/gui/last_snapshot_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Optional from watchmen_auth import PrincipalService from watchmen_meta.common import LastVisitShaper, StorageService, UserBasedTupleShaper from watchmen_model.common import TenantId, UserId from watchmen_model.gui import LastSnapshot from watchmen_storage import ColumnNameLiteral, EntityCriteriaExpr...
37.397959
119
0.79809
a8eeb7ce310fab4fca4e883c1c9fb94fd8141a7e
1,741
py
Python
rbac/providers/common/expected_errors.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/providers/common/expected_errors.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/providers/common/expected_errors.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
38.688889
88
0.670304
0e7d16a6cd8165ec0a22f0cc552c9d7045fe0e76
9,196
py
Python
tests/test_web.py
reviforks/imgtl
b2141f9f0d7f2d318661f6ff6ab9594cff5b80f3
[ "MIT" ]
null
null
null
tests/test_web.py
reviforks/imgtl
b2141f9f0d7f2d318661f6ff6ab9594cff5b80f3
[ "MIT" ]
null
null
null
tests/test_web.py
reviforks/imgtl
b2141f9f0d7f2d318661f6ff6ab9594cff5b80f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import unittest import simplejson from imgtl.db import db, User from imgtl.lib import pw_hash from imgtl.i18n import i18n as _i18n class ImgTLTest(unittest.TestCase): @classmethod def setUpClass(cls): os.environ['TESTING'] = 'true' from ...
40.157205
133
0.651696
0e9394f4cdf4ab3d2411dc86ebaa680edbae5390
1,305
py
Python
ui/progressDialog.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
null
null
null
ui/progressDialog.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
9
2019-05-11T19:53:01.000Z
2020-11-10T07:24:14.000Z
ui/progressDialog.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'progressDialog.ui', # licensing of 'progressDialog.ui' applies. # # Created: Mon Jan 28 18:45:42 2019 # by: pyside2-uic running on PySide2 5.12.0 # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore, QtW...
39.545455
117
0.714176
bc273a9bdbceb1ea8929d75bd7f898e6bc07feed
6,121
py
Python
benchmark/dataset.py
zentonllo/tfg-tensorflow
095469a906de26984b4d781699e76bec02b1ef75
[ "MIT" ]
null
null
null
benchmark/dataset.py
zentonllo/tfg-tensorflow
095469a906de26984b4d781699e76bec02b1ef75
[ "MIT" ]
null
null
null
benchmark/dataset.py
zentonllo/tfg-tensorflow
095469a906de26984b4d781699e76bec02b1ef75
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Apr 25 13:06:11 2017 @author: Alberto Terceño Module used for data ingestion in the benchmark. It can read csv and npy datasets with numerical features, whose label column is the last one. Code used to start coding the class was obtained and adapted from TF MNIST data read...
34.977143
154
0.653978