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
702723adc9f8c8a932242d0b321fc2689435e79d
121
py
Python
nz_django/day8/cache_demo/caches.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day8/cache_demo/caches.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day8/cache_demo/caches.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.core.cache import cache def set(token,key,value,timeout=60*60*24*7): return cache.set(token,key,value)
20.166667
44
0.743802
d92523578d27b43ab6c226443a48eb427921a5d6
292
py
Python
docker/api/api/scheduledRunner.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
2
2021-03-23T20:32:38.000Z
2021-04-21T11:20:12.000Z
docker/api/api/scheduledRunner.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
4
2021-04-19T11:00:55.000Z
2021-04-20T08:21:48.000Z
docker/api/api/scheduledRunner.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import schedule import update_data import datetime import time def update(): print("Running data update at " + str(datetime.datetime.now())) update_data.update() schedule.every(15).minutes.do(update) while True: schedule.run_pending() time.sleep(1)
17.176471
67
0.722603
d93b69d4974d54c6d6a5cb7df2ccd3256804ba86
442
py
Python
INBa/2015/Perepyelkov_Y_A/task_1_33.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Perepyelkov_Y_A/task_1_33.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Perepyelkov_Y_A/task_1_33.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 1. Вариант 33 #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Филип Ауреол Теофраст Бомбаст фон Гогенгейм. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. #Perepyelkov Y.A. #09.02.2016 print("Филип Ауреол Теофраст Бо...
63.142857
235
0.821267
d9441a2bbbc9e9bcf099db8381111befd513d351
9,702
py
Python
app.py
sabya90/SabyaTime
544c3fbeac16cdc6ad1c049e9736f37e821a99e7
[ "MIT" ]
1
2020-04-24T19:10:17.000Z
2020-04-24T19:10:17.000Z
app.py
sabya90/SabyaTime
544c3fbeac16cdc6ad1c049e9736f37e821a99e7
[ "MIT" ]
5
2020-04-24T17:58:14.000Z
2022-02-10T01:42:10.000Z
app.py
sabya90/SabyaTime
544c3fbeac16cdc6ad1c049e9736f37e821a99e7
[ "MIT" ]
null
null
null
import numpy as np from flask import Flask, request, jsonify, render_template import pickle import pandas as pd from collections import defaultdict import re from bs4 import BeautifulSoup import os import keras import preprocessor as p from textblob import TextBlob from keras.preprocessing.text import Tokenizer from ...
35.669118
333
0.594001
8dd7d1672794b10889b104d644a4ba9442029eec
2,295
py
Python
normalize_labels.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
6
2016-08-15T17:57:45.000Z
2019-03-19T05:08:29.000Z
normalize_labels.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
10
2016-04-11T10:20:34.000Z
2016-08-09T21:47:48.000Z
normalize_labels.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
7
2016-06-21T04:08:58.000Z
2018-09-01T14:02:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Make all images in a folder binary.""" import os from PIL import Image import numpy import scipy.misc from keras.preprocessing.image import img_to_array def main(directory): """Find all png images in directory and make them binary.""" files = [os.path.join(di...
28.333333
79
0.610022
5c2cad97e1bae7ba92ff374a27c8eaa3f071af60
1,610
py
Python
tests/nlu/emulators/test_luis.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
5
2020-08-28T06:44:31.000Z
2021-03-14T18:46:01.000Z
tests/nlu/emulators/test_luis.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
tests/nlu/emulators/test_luis.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
3
2019-02-27T10:13:16.000Z
2019-07-26T08:33:45.000Z
def test_luis_request(): from rasa.nlu.emulators.luis import LUISEmulator em = LUISEmulator() norm = em.normalise_request_json({"text": ["arb text"]}) assert norm == {"text": "arb text", "time": None} def test_luis_response(): from rasa.nlu.emulators.luis import LUISEmulator em = LUISEmulato...
35.777778
88
0.536646
6949c2fd19c09fe333a0e0e919b0182b30be5fba
4,193
py
Python
contest_server/pjkiserver/game.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
contest_server/pjkiserver/game.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
contest_server/pjkiserver/game.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
from flask import Blueprint, request, Response import json from copy import deepcopy from .storage.storage import storage, syncDB from . import schemas, rules, util api = Blueprint('game', __name__) @api.route('/games', methods=['POST']) def post_game(): # Parse and validate payload game, error = schemas.parseA...
29.528169
102
0.689959
c642a7f4cce2563beb55c2cf730d281f494ce188
11,248
py
Python
extraction/test/test_extract_linkcontext.py
dbmdz/webarchiv-dh-bestandsausbau
98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6
[ "MIT" ]
null
null
null
extraction/test/test_extract_linkcontext.py
dbmdz/webarchiv-dh-bestandsausbau
98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6
[ "MIT" ]
null
null
null
extraction/test/test_extract_linkcontext.py
dbmdz/webarchiv-dh-bestandsausbau
98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6
[ "MIT" ]
null
null
null
from chispa import assert_df_equality from pyspark.sql.functions import explode from links_in_context.extract_linkcontext import ( extract_links_in_context_udf, normalize_url_udf, get_inv_path_depth_udf, ) from pyspark.sql.types import StructType, StructField, StringType, FloatType def test_extract_linkc...
46.098361
1,759
0.597973
cef14eeda9cf77b3907d568f7a8a59f42c1642df
229
py
Python
src/third_party_module/requests_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/third_party_module/requests_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/third_party_module/requests_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ requests.post requests.post.status_code requests.post.json requests.post.json.get requests.get requests.delete requests requests.exceptions requests.exceptions.RequestException """
14.3125
36
0.772926
061fd16d0afd3aa6390572016f35dd4690ab50c7
962
py
Python
upload_audiofile.py
NickForero11/Subbler
ed528514e96ddc30d58230ff98ff0fd5216ea5de
[ "MIT" ]
null
null
null
upload_audiofile.py
NickForero11/Subbler
ed528514e96ddc30d58230ff98ff0fd5216ea5de
[ "MIT" ]
null
null
null
upload_audiofile.py
NickForero11/Subbler
ed528514e96ddc30d58230ff98ff0fd5216ea5de
[ "MIT" ]
null
null
null
""""Module to handle the uploading of a file to an AWS S3 Bucket using a preSignedUrl. """ from requests import put from requests.exceptions import RequestException from sys import exit def upload_audiofile(filename, url): """Uploads of a file to an AWS S3 Bucket using a preSignedUrl on a HTTP PUT Request. ...
30.0625
79
0.616424
06a496351a332b49ecd31b6879f6bfee20d69949
3,001
py
Python
algorithm/main.py
xSAVIKx/SHUP-algorithm
d188add53da7ec0a163f02ea4ad49fa9f33d2402
[ "Apache-2.0" ]
null
null
null
algorithm/main.py
xSAVIKx/SHUP-algorithm
d188add53da7ec0a163f02ea4ad49fa9f33d2402
[ "Apache-2.0" ]
null
null
null
algorithm/main.py
xSAVIKx/SHUP-algorithm
d188add53da7ec0a163f02ea4ad49fa9f33d2402
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from bitstring import BitArray from algorithm.implementation import MasterKey, Message, Crypter def compare_bit_arrays(bit_array_1, bit_array_2): """ :param bit_array_1: :type bit_array_1: BitArray :param bit_array_2: :type bit_array_2: BitArray """ if bit_array_1.length !...
37.049383
130
0.743752
d1824105e60252028c8c4ef9bc3245f401623bd0
4,792
py
Python
python_experiments/run_vldbj_experiments/run_other_executables_rand_pairs.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/run_vldbj_experiments/run_other_executables_rand_pairs.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/run_vldbj_experiments/run_other_executables_rand_pairs.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from exec_utilities import time_out_util from exec_utilities.exec_utils import * def run_exp(): other_exec_path_lst = [ '/homes/ywangby/workspace/yche/git-repos/SimRank/SPS-Variants/sling/build/sling-rand-bench-gt', '/homes/ywangby/workspace/yche/git-repos/SimRank/SPS-Variants/isp-yche/build/isp-r...
49.916667
119
0.575334
886228cf70626e0849b3460eb8b0e5f83c347dbf
2,559
py
Python
Packs/HealthCheck/Scripts/HealthCheckWorkers/HealthCheckWorkers.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/HealthCheck/Scripts/HealthCheckWorkers/HealthCheckWorkers.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/HealthCheck/Scripts/HealthCheckWorkers/HealthCheckWorkers.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 DESCRIPTION = '{} busy workers has reached {} of total workers' RESOLUTION = 'Performance Tuning of Cortex XSOAR Server: https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-0/' \ 'cortex-xsoar-admin/cortex-xso...
36.042254
118
0.595154
31f6f4aea0b38ce84491c4371228ab3323f6278b
2,103
py
Python
ladon-server/software/src/python/kafka-file-wrapper/KafkaFileWrapper.py
LucasRGoes/ladon-io
ab55219b461e918cc0ba45e6cdc9bcdfbce8c0d6
[ "MIT" ]
1
2018-04-29T22:33:42.000Z
2018-04-29T22:33:42.000Z
ladon-server/software/src/python/kafka-file-wrapper/KafkaFileWrapper.py
LucasRGoes/ladon-io
ab55219b461e918cc0ba45e6cdc9bcdfbce8c0d6
[ "MIT" ]
null
null
null
ladon-server/software/src/python/kafka-file-wrapper/KafkaFileWrapper.py
LucasRGoes/ladon-io
ab55219b461e918cc0ba45e6cdc9bcdfbce8c0d6
[ "MIT" ]
null
null
null
## IMPORTS ## import json # Json: is a lightweight data interchange format inspired by JavaScript object literal syntax import logging # Logging: provides a set of convenience functions for simple logging usage import math # Math: it provides access to the mathematical functions defined by the...
32.859375
114
0.73942
ee4d90a588927d4796ab35acabd5feaf4857d4fb
399
py
Python
HackerP/test.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
HackerP/test.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
HackerP/test.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
# test # Created by JKChang # 14/08/2018, 14:55 # Tag: # Description: # !/bin/python3 if __name__ == '__main__': N = int(input()) d = {} for _ in range(N): name, number = input().split() d[name] = number for _ in range(N): name = input() if name in d: pri...
17.347826
48
0.486216
4ea9d30a513a806f27732ecbac2d71ba7ce66bd3
6,004
py
Python
Python_GUI/main.py
michaelloose/DualStepperController
a18e280ac4612b8b787a3f5217ff0b33215ad7db
[ "MIT" ]
1
2020-12-08T12:15:44.000Z
2020-12-08T12:15:44.000Z
Python_GUI/main.py
michaelloose/DualStepperController
a18e280ac4612b8b787a3f5217ff0b33215ad7db
[ "MIT" ]
null
null
null
Python_GUI/main.py
michaelloose/DualStepperController
a18e280ac4612b8b787a3f5217ff0b33215ad7db
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ GUI zur einfachen Ansteuerung des DualStepperControllers. Angepasst für die Objektpositionierung in den Radar-Messkammern der FHWS """ __author__ = "Michael Loose" __copyright__ = "FHWS, Labor für Mikrowellentechnik" __license__ = "Unset" __version__ = "0.0.1" __main...
32.454054
130
0.649567
11f047f813b8911fee86c2c7c7375a83d422edda
5,088
py
Python
test/test_npu/test_network_ops/test_logsumexp.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_logsumexp.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_logsumexp.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...
47.111111
87
0.599843
eee2eec835b5ea0f10a2ab75d1496cda7fcab90d
7,243
py
Python
tests/test_credentials.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
4
2019-07-18T10:58:28.000Z
2021-11-18T16:57:45.000Z
tests/test_credentials.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
1
2019-07-05T09:21:47.000Z
2019-07-05T09:21:47.000Z
tests/test_credentials.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
2
2019-07-05T08:56:34.000Z
2020-06-09T10:03:42.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2020 Niko Sandschneider """Module containing all tests for p2p_credentials.""" import unittest.mock from keyring.errors import PasswordDeleteError from easyp2p.p2p_credentials import ( keyring_exists, get_credentials_from_keyring, get_credentials_from_user, get_...
44.435583
80
0.704957
febf8d232edf77ab5adba5d8986a5acff4effb31
7,524
py
Python
src/built_in_functions/__import__sys_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/built_in_functions/__import__sys_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/built_in_functions/__import__sys_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ 模块:逻辑上组织代码的 包:组织模块的 ------------------------------------------------------------------------------------------------------------------------------------------------ 搜索路径:查找一组目录 路径搜索:查找某个文件的操作 -----------------------------------------------------------------------------...
29.857143
144
0.537613
28fe6ec91082786c45f270b4103b09e4478031fc
2,084
py
Python
Question4.py
LuisGMM/Num-Lab
69e41628a14c7b3ea94be44c78653592fe5891cc
[ "MIT" ]
null
null
null
Question4.py
LuisGMM/Num-Lab
69e41628a14c7b3ea94be44c78653592fe5891cc
[ "MIT" ]
null
null
null
Question4.py
LuisGMM/Num-Lab
69e41628a14c7b3ea94be44c78653592fe5891cc
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from algorithm import get_T_density dt = 0.005 tf = 50 dx = 0.05 xmin = -60 xmax = 60 k0 = 1 sigma0 = 3 x0 = -10 L = 2 V0 = 2 M = 2401 def start_plot(): global fig, ax, line fig = plt.figure() ax = plt.axes(xlim=(0, 10),...
27.064935
157
0.572457
c959db234992f80a81739c3350193b2a25255af0
1,059
py
Python
garden_timing.py
mzurhorst/wassersteuerung
88e1f31d50e2f4e95606d4612687eceaf6ece69b
[ "MIT" ]
2
2017-08-06T12:53:12.000Z
2018-05-27T18:03:54.000Z
garden_timing.py
mzurhorst/wassersteuerung
88e1f31d50e2f4e95606d4612687eceaf6ece69b
[ "MIT" ]
null
null
null
garden_timing.py
mzurhorst/wassersteuerung
88e1f31d50e2f4e95606d4612687eceaf6ece69b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # #File : garden_timing.py #Author : Marcus Zurhorst #Email : marcuszurhorst@gmail.com #License : MIT License #Copyright : (c) 2017 Marcus Zurhorst # #Description : This module provides functions to calculate the next # watering duratio...
24.627907
79
0.585458
6e62bf98bf12caca1cbbb7f6f325bbfd93d82291
481
py
Python
hostsystem/stop_in_use_warning.py
DockerComposeFiles/Arm_2
b5888fe62edd6450da4139de02e145513a078697
[ "MIT" ]
null
null
null
hostsystem/stop_in_use_warning.py
DockerComposeFiles/Arm_2
b5888fe62edd6450da4139de02e145513a078697
[ "MIT" ]
null
null
null
hostsystem/stop_in_use_warning.py
DockerComposeFiles/Arm_2
b5888fe62edd6450da4139de02e145513a078697
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) # Broadcom pin-numbering scheme GPIO.setup(6, GPIO.OUT) # output rf # Initial state for LEDs: print("Testing RF out, Press CTRL+C to exit") try: print("set GIOP high") GPIO.output(6, GPIO.HIGH) time.sleep(5) except KeyboardInterrupt: # If CTRL+C...
20.913043
63
0.694387
42e197b3a96444137de5c5467c9aaeac8f315413
1,257
py
Python
algorithm/heapq_example.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
algorithm/heapq_example.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
algorithm/heapq_example.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import heapq import itertools def heapsort(iterable): h = [] for value in iterable: heapq.heappush(h, value) return [heapq.heappop(h) for i in range(len(h))] print(heapsort([1, 3, 5, 7, 9, 2, 4, 6, 8, 0])) """ Priority Queue Implementation Notes """ pq = [] # list of en...
27.933333
73
0.638027
6e3cfcee932696eb1811b5454481be426f73f8d0
2,112
py
Python
list/DoublyLinkedList.py
EliHar/List-ADT
78a576e1816f765877f24c4cdb0ff49e12e812a5
[ "MIT" ]
1
2020-11-27T12:32:51.000Z
2020-11-27T12:32:51.000Z
list/DoublyLinkedList.py
EliHar/List-ADT
78a576e1816f765877f24c4cdb0ff49e12e812a5
[ "MIT" ]
null
null
null
list/DoublyLinkedList.py
EliHar/List-ADT
78a576e1816f765877f24c4cdb0ff49e12e812a5
[ "MIT" ]
null
null
null
__author__ = 'Elias Haroun' from List_ADT.list.Node import * class DoublyLinkedList(object): def __init__(self): self.head = None self.tail = None self.size = 0 def isEmpty(self): return self.size == 0 def getSize(self): return self.size def getHead(self): ...
22.468085
65
0.54072
283ccf87062adc05fbeedad00cc59d7ffe4a7640
3,362
py
Python
sftpserver/src/sftpserver/__init__.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
sftpserver/src/sftpserver/__init__.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
sftpserver/src/sftpserver/__init__.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
############################################################################### # # Copyright (c) 2011-2017 Ruslan Spivak # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction...
33.287129
79
0.666568
2880fd5551b6a28ff84c4593858329b0e25d7b5b
399
py
Python
Python/EstruturaSequencial/Exercicios/Exercicio04.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/EstruturaSequencial/Exercicios/Exercicio04.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/EstruturaSequencial/Exercicios/Exercicio04.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
#Faça um Programa que peça as 4 notas bimestrais e mostre a média. b1 = float(input('Digite a Nota do Primeiro bimestre: ')) b2 = float(input('Digite a Nota do Segundo bimestre: ')) b3 = float(input('Digite a Nota do Terceiro bimestre: ')) b4 = float(input('Digite a Nota do Quarto bimestre: ')) media = (b1+b2+b3+b4) ...
39.9
74
0.701754
6c8a1e6a0f088922b22e1842e9d08dcee831e1c7
98
py
Python
pocketthrone/__init__.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
4
2016-06-05T16:48:04.000Z
2020-03-23T20:06:06.000Z
pocketthrone/__init__.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
pocketthrone/__init__.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
from pocketthrone.app import PocketThroneApp print("Pocket Throne START") PocketThroneApp().run()
24.5
44
0.816327
66da0e149d81534bb1ce0568480ca6d33b8381e4
9,720
py
Python
enrich/enrich_data.py
sonar-idh/Transformer
bbfde9d19ad4a4917257483ba66eb30a8294244d
[ "MIT" ]
null
null
null
enrich/enrich_data.py
sonar-idh/Transformer
bbfde9d19ad4a4917257483ba66eb30a8294244d
[ "MIT" ]
null
null
null
enrich/enrich_data.py
sonar-idh/Transformer
bbfde9d19ad4a4917257483ba66eb30a8294244d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: melina """ import requests from enrich.queries import per_wd import re import time from enrich.sonar_server import Neo4jConnection import fire def wd_id_to_gnd(wd_id): """ Searches whether the Wikidata entry provides a linked GND ID. --------- wd_id : str ...
36
110
0.566667
b0a8618872c39ac5289779c75a163b5bd99e515a
2,219
py
Python
nodes/ue05_action_server/turtlebot3_server_path.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
nodes/ue05_action_server/turtlebot3_server_path.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
nodes/ue05_action_server/turtlebot3_server_path.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python3 # ################################################################################ # edited WHS, OJ , 15.11.2021 # # usage # $1 roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch # $2 rosrun rtc turtlebot3_server_path.py # $3 rosrun rtc turtlebot3_client_path.py import rospy impo...
36.377049
82
0.607932
b0b2e38688bc464eb77102a612298579d2cea4b0
167
py
Python
app/common/code.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
app/common/code.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
app/common/code.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding=utf-8 -*- class Code: SUCCESS = 1200 NO_PARAM = 1201 msg = { SUCCESS: "执行成功", NO_PARAM: "没有参数", }
13.916667
25
0.497006
b0eadd0a3ef124625b6bc52411ebcf0c0277b025
3,443
py
Python
radiomics/radiomics_ria/shape.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/radiomics_ria/shape.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/radiomics_ria/shape.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
import numpy import SimpleITK as sitk from radiomics_ria import base, cShape, deprecated class RadiomicsShape(base.RadiomicsFeaturesBase): def __init__(self, inputImage, inputMask, **kwargs): assert inputMask.GetDimension() == 3, 'Shape features are only available in 3D. If 2D, use shape2D instead' super(Radio...
34.43
114
0.728144
b050c9ec5b6abafec32b9a3e94482cd1f3fd17db
341
py
Python
puat_main.py
Pelleplutt/PUAT
b083d2ec5776bb73f6ba83a5ddab271a7b742e89
[ "MIT" ]
null
null
null
puat_main.py
Pelleplutt/PUAT
b083d2ec5776bb73f6ba83a5ddab271a7b742e89
[ "MIT" ]
null
null
null
puat_main.py
Pelleplutt/PUAT
b083d2ec5776bb73f6ba83a5ddab271a7b742e89
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from flask import Flask from flask_restful import Resource, Api, reqparse import api.importjobs.jobs import api.runtime app = Flask(__name__) flapi = Api(app) flapi.add_resource(api.importjobs.jobs.Jobs, '/import.jobs') api.runtime.init() if __name__ == "__main__": ...
18.944444
60
0.727273
c6600b00b89a311fe7ac5e18701eb47d56a7e3a2
1,469
py
Python
test/test_query_selector.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
test/test_query_selector.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
test/test_query_selector.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
import pytest from quark_core_api.data.storage.query_operators import QueryOperators testcases_logical = [ ("$and", True, True, True), ("$and", True, False, False), ("$or" , True, True, True), ("$or" , True, False, True), ("$or" , False, False, False), ("$not", 1, 1, False), ("$not"...
29.38
78
0.613342
c69ad075d009d0726b99987cc8d545ee8e7a88dc
9,223
py
Python
src/main/python/debug.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/debug.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/debug.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import sys import math from tools import logger import numpy as np from PIL import Image # from PIL.Image import core as image import os, random, string, shutil from scipy import * from scipy import misc from pandas import DataFrame as df # logging.basicConfig...
32.135889
187
0.622032
c6b9d09b97cbba02e72d2082ed9d757f9fc48009
2,922
py
Python
logsource/generate_log.py
hanxuanliang/sparktime
491ed69930ef7c27fe90b24d086def5bc1dc0a8c
[ "MIT" ]
null
null
null
logsource/generate_log.py
hanxuanliang/sparktime
491ed69930ef7c27fe90b24d086def5bc1dc0a8c
[ "MIT" ]
null
null
null
logsource/generate_log.py
hanxuanliang/sparktime
491ed69930ef7c27fe90b24d086def5bc1dc0a8c
[ "MIT" ]
null
null
null
# coding=UTF-8 import random import time url_paths = [ "class/112.html", "class/153.html", "class/249.html", "class/215.html", "class/172.html", "class/146.html", "class/145.html", "class/131.html", "class/128.html", "class/217.html", "class/361.html", "class/368.html", "class/358.html", "c...
24.35
77
0.666324
bbe08e884b0c4d6e1583be97f1830acf5e642408
3,017
py
Python
Webpage/utils/faker.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/utils/faker.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/utils/faker.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from faker import Faker # from arbeitsstunden.models import * import random from member.models import profile ''' Erstellt die gewünschte Anzahl an fakeNews. fakeNews sind dabei News müssen nicht zwangsläufig einen Sinn haben. @return Array, bestehend aus Objekten mit Text, Titel ''' def fakeNews(Anzahl: int) -> []: ...
31.103093
96
0.545907
3cc2688ebfc2146d05c8019717150affd2b1ded6
276
py
Python
Crashkurs Python/05_Ranges.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
2
2020-03-23T14:57:50.000Z
2021-03-24T18:12:07.000Z
Crashkurs Python/05_Ranges.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
Crashkurs Python/05_Ranges.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
# Ein Range stellt einen Wertebereich dar # range ist ein eigener Datentyp in Python # (Seit C# 8 auch in C# verfügbar) r = range(6) # startet bei 0 und endet bei 5 print(r) print(type(r)) r1 = range(2,6) r2 = range(2,10,2) r3 = range(10,-4,-3) for i in r3: print(i)
16.235294
44
0.655797
59b205d11853708dc664015ebf234569c9835121
5,636
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/output/computeCoordination.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/output/computeCoordination.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/output/computeCoordination.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2007-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
40.546763
111
0.624024
59c0fab6315ba2d7e9da347dd4a690d3ad0b86c1
2,503
py
Python
project/api/news_item/resources.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
project/api/news_item/resources.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
project/api/news_item/resources.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
from flask import url_for from flask_apispec import doc, marshal_with from project.api import add_api_resource from project.api.news_item.schemas import ( LegacyNewsItemSchema, get_publisher_icon_url_for_news_item, ) from project.api.resources import BaseResource from project.models import NewsFeed, NewsItem, ...
36.808824
111
0.628845
057567bb6bd81e40abd0c529877419da7f785d8c
6,280
py
Python
DarkRise/darkrise_reverse.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
DarkRise/darkrise_reverse.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
DarkRise/darkrise_reverse.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python2 #-*- coding:utf-8 -*- import socket import colorama import nclib from datetime import datetime import time import random import sys import argparse import os import platform banner1 = ''' ▓█████▄ ▄▄▄ ██▀███ ██ ▄█▀ ██▀███ ██▓ ██████ ▓█████ ▒██▀ ██▌▒████▄ ▓██ ▒ ██▒ ██▄█▒ ▓██ ▒ ██...
42.432432
87
0.315446
7593fcc56451782d0e761c9106f744a802464bbe
2,048
py
Python
verto/tests/ProcessorTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/tests/ProcessorTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/tests/ProcessorTest.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
import pkg_resources import json import markdown from verto.VertoExtension import VertoExtension from jinja2 import Environment, PackageLoader, select_autoescape from verto.tests.BaseTest import BaseTest class ProcessorTest(BaseTest): '''A base test class for individual test classes. ''' def __init__(sel...
32.507937
100
0.639648
1fad989ab1a2d70114a0259ff02044b32a1a19bb
2,462
py
Python
src/blockchain/blockchain.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/blockchain/blockchain.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/blockchain/blockchain.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
import hashlib import os import logging from blockchain.block import Block from db.mapper import Mapper from network.conversations.block_broadcasting import Block_broadcasting class Blockchain(): def add_block(self, transactions, node=None): pred_hash = Mapper().read_latest_block_hash() ...
33.726027
96
0.624695
1fb8549d0f63765a3d2440493de81c9f741798ec
1,556
py
Python
agents/q_table.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
agents/q_table.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
agents/q_table.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
import random import numpy as np class QTable: """基于Q表的强化学习""" def __init__(self, state_shape, actions, eps_greedy=0.15, eps_decay=1, reward_decay=0.9, learning_rate=0.03): self.state_shape = state_shape self.actions = actions self.q_table = np.random.random_sample((*state_shape, len(a...
29.923077
113
0.59126
c0d682d254dfe2e19ee0cdec3d044acaf1c7bfde
1,789
py
Python
rawio/grouping/group.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
rawio/grouping/group.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
rawio/grouping/group.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
# # RawIO # Copyright (c) 2021 Yusuf Olokoba. # from concurrent.futures import ThreadPoolExecutor from PIL import Image from typing import Callable, List from .timestamp import exposure_timestamp def group_exposures (exposure_paths: List[str], similarity_fn: Callable[[str, str], bool], workers: int=8) -> List[L...
37.270833
126
0.692566
23c43ea0a720ff82ccb24e890a09cede7754fca7
711
py
Python
INBa/2015/Serdechnaya_A_M/task_6_25.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Serdechnaya_A_M/task_6_25.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Serdechnaya_A_M/task_6_25.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 25. # Создайте игру, в которой компьютер загадывает название одного из четырех океанов Земли, а игрок должен его угадать. # Serdechnaya A.M. # 29.04.2016 import random x=random.randint(1,4) if x==1: name="Тихий океан" elif x==2: name = "Атлантический океан" elif x==3: name = "Индийский оке...
25.392857
117
0.706048
f1ea9355246978c695c9b53733ad508639ae44dc
28,090
py
Python
Python/adventure/beta/lib/npc.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
null
null
null
Python/adventure/beta/lib/npc.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
null
null
null
Python/adventure/beta/lib/npc.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
null
null
null
import random import time from lib.game_object import Weapon, Armor from lib.static import screen_width, clear class NPC: def __init__(self, health, strength): self.health = health * random.randrange(10, 21) self.strength = strength * random.randrange(5, 11) self.active_effect = [] de...
53.709369
554
0.440263
a943a011588da66d0b3fd7b00a639106acaa4af2
216
py
Python
Projects/InetBib/generate_urls.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Projects/InetBib/generate_urls.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Projects/InetBib/generate_urls.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ https://www.inetbib.de/listenarchiv/msg70057.html """ max_id = 70057 for i in range(1, max_id + 1): url = "https://www.inetbib.de/listenarchiv/msg{:05d}.html".format(i) print(url)
19.636364
72
0.662037
a949d44d436db35483b29547845e4dd8ec45cdea
836
py
Python
001-C97-NumberGuessingGame/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
2
2021-09-28T13:55:20.000Z
2021-11-15T10:08:49.000Z
001-C97-NumberGuessingGame/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
null
null
null
001-C97-NumberGuessingGame/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
1
2022-01-20T03:02:20.000Z
2022-01-20T03:02:20.000Z
import random numbers = ['1','2','3','4','5','6','7','8','9','10'] currentchoice = random.randint(0,len(numbers)-1) def check_answer(value): if value == numbers[currentchoice]: return True else: return False print('----- Number Guessing Game -----\nI am thinking of a number between one to ...
29.857143
120
0.545455
8d634c467f2e3771caa18b3ff407edfbf3c4971d
5,261
py
Python
verto/tests/ScratchTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/tests/ScratchTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/tests/ScratchTest.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
import markdown from verto.VertoExtension import VertoExtension from verto.processors.ScratchTreeprocessor import ScratchImageMetaData from verto.tests.ProcessorTest import ProcessorTest class ScratchTest(ProcessorTest): '''Scratch blocks are unique in that they override behaviour in markdown and behaviour i...
51.578431
164
0.744915
8d9b7e79d722226f077d0bfe0680b7ef4b4f96b1
437
py
Python
Contests/CCC/CCC '00 S4 - Golf.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/CCC/CCC '00 S4 - Golf.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/CCC/CCC '00 S4 - Golf.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
import sys input = sys.stdin.readline length = int(input()) amount = int(input()) clubs = [int(input()) for a in range(amount)] l = [1000 for n in range(length + 1)] l[0] = 0 for a in range(length): for b in clubs: t = [b + a, l[a] + 1] if t[0] <= length and l[t[0]] > t[1]: l[t[0]] = t...
21.85
46
0.549199
93fcda59952d9376530ed76319886380a40ecc93
3,207
py
Python
___Python/Jonas/Python/p04_oop/m01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Jonas/Python/p04_oop/m01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Jonas/Python/p04_oop/m01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from datetime import date class Teilnehmer(object): # Konstruktormethode def __init__(self, vorname, ort, geburtsdatum, sprachen): self.vorname = vorname self.ort = ort self.geburtsdatum = geburtsdatum self.sprachen = sprachen def __repr__(self): # representatio...
43.337838
143
0.706579
9e14edb7f8738f4e0d64e656b4259578018260c2
579
py
Python
udacity course code/01-03-numpyarithmeticoperations.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
1
2021-03-22T22:25:54.000Z
2021-03-22T22:25:54.000Z
udacity course code/01-03-numpyarithmeticoperations.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
6
2017-01-16T09:53:21.000Z
2017-01-18T12:20:09.000Z
udacity course code/01-03-numpyarithmeticoperations.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
null
null
null
"""Arithmetic operations.""" import numpy as np def test_run(): a = np.array([(1, 2, 3, 4, 5), (10, 20, 30, 40, 50)]) print "Array a:\n", a # Multiply print "Multiply a by 2:\n", 2 * a # Division print "Multiply a by 2:\n", a / 2.0 b = np.array([(100, 200, 300, 400, 500),(1, 2, 3, 4, 5)...
19.965517
61
0.535406
f5a5a015a4b00d87c6912da35a28f9f222559221
1,937
py
Python
test/test_npu/test_network_ops/test_nonzero.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_nonzero.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_nonzero.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # 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/lice...
36.54717
88
0.694889
fd8989f50e737abf92a5ce2355ef80321214046b
2,373
py
Python
znacky/znacky1.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
znacky/znacky1.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
znacky/znacky1.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
from tkinter import Tk, Canvas from PIL import ImageTk, Image, ImageDraw, ImageFont import random from math import sin, cos, pi W, H = 512, 512 img = Image.new("RGBA", (W, H)) imgDraw = ImageDraw.Draw(img) font = ImageFont.truetype("fonts/Roboto-Regular.ttf", 128) lineWidth = int(W/10) print(lineWidth) b = lineWidth...
23.49505
76
0.584492
8b6385a9aecc003cb9a634c805c7213b3de54109
130
py
Python
blockschaltbilder/__init__.py
mp4096/blockschaltbilder
9253022b5518e42d784176594d4d6fee7baa1050
[ "MIT" ]
11
2016-08-19T18:11:19.000Z
2020-07-27T07:04:52.000Z
blockschaltbilder/__init__.py
mp4096/blockschaltbilder
9253022b5518e42d784176594d4d6fee7baa1050
[ "MIT" ]
8
2016-09-17T16:46:01.000Z
2021-04-29T19:59:57.000Z
blockschaltbilder/__init__.py
mp4096/blockschaltbilder
9253022b5518e42d784176594d4d6fee7baa1050
[ "MIT" ]
4
2016-09-21T18:45:09.000Z
2020-07-27T07:08:17.000Z
"""Blockschaltbilder: Simple block diagrams in LaTeX/TikZ.""" from .bsb import * from .boilerplate import * __version__ = "dev"
18.571429
61
0.730769
d0c02518003058e4deff0fd2ccca0465075f5a39
151
py
Python
exercises/ja/test_03_14_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/test_03_14_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/test_03_14_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "docs = list(nlp.pipe(TEXTS))" in __solution__ ), "nlp.pipeの結果に対してlistを呼び出しましたか?" __msg__.good("Great work!")
25.166667
54
0.622517
ef7067003f2c7ccef94fc668d0f12a74bb8c04f9
7,198
py
Python
examples/relationship/manytomanyfield/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/relationship/manytomanyfield/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/relationship/manytomanyfield/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.test import TestCase, TransactionTestCase from .models import Publication, Article # Create your tests here. class SimpleTest(TransactionTestCase): reset_sequences = True def test_a_n_plus_1(self): # 准备数据 p1 = Publication.objects.create(title='The Python Journal') p2 = Pu...
47.045752
118
0.650875
ef48650369584e2dade23ab8277fe2d2cd03bf35
3,490
py
Python
tests/addons/dump/test_html.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
tests/addons/dump/test_html.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
tests/addons/dump/test_html.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import datetime import os import pytest from owlmixin.util import load_yaml from jumeaux.addons.dump.html import Executor from jumeaux.models import Response, DumpAddOnPayload NORMAL_BODY = """<!DOCTYPE html> <html> <head> <title>タイトル</title> <meta name="format-detec...
27.480315
98
0.489971
eb24b18ebc4bb023c63275422910203c4c9ff3f2
9,328
py
Python
wz/ui/grade_grid.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/grade_grid.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/grade_grid.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui/grade_grid.py Last updated: 2021-05-04 Manage the grid for the grade-editor. =+LICENCE============================= Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. ...
36.724409
77
0.51265
de6a662768cd6137f1296b6bdbcd1a9b7ec8a9cc
3,902
py
Python
stanford1/py/min_cut_remove_nodes.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
stanford1/py/min_cut_remove_nodes.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
stanford1/py/min_cut_remove_nodes.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import collections import copy import random import cProfile # App #import min_cut_big_super_vertices class Edge(object): def __init__(self, begin, end): # Исходное пложение ребра self.source_ = (begin, end) # Рабочее пложение ребра self.work = (begin, end) ...
23.22619
76
0.568683
a0d45c3b4ed30e88a5664eae6b3abadf86c4344b
739
py
Python
djangoForm/member/models.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
djangoForm/member/models.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
djangoForm/member/models.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
from django.db import models class Member(models.Model): firstName = models.CharField(max_length=100, null=True, blank=True, verbose_name="First Name") lastName = models.CharField(max_length=100, null=True, blank=True, verbose_name="Lase Name") dob = models.DateField(auto_now=False, auto_now_add=False, nul...
56.846154
115
0.738836
9d3de1191123c03ec45a0c25a31b0ba2dbb50fba
525
py
Python
src/tools/data/DataManualExamples/CreatingCompatible/vwrect2d.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/tools/data/DataManualExamples/CreatingCompatible/vwrect2d.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/tools/data/DataManualExamples/CreatingCompatible/vwrect2d.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import visit_writer NX = 4 NY = 5 x = (0., 1., 2.5, 5.) y = (0., 2., 2.25, 2.55, 5.) z = [0.] # Create a zonal variable zonal = [] index = 0 for j in range(NY-1): for i in range(NX-1): zonal = zonal + [index] index = index + 1 # Create a nodal variable nodal = [] index = 0 for j in range(NY): ...
19.444444
67
0.550476
dfac131eb5cc1709eea8e5204f41dcdef2a0197b
66
py
Python
Python/M01_ProgrammingBasics/L02_ConditionalStatements/Lab/Solutions/P01_ExcellentResult.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L02_ConditionalStatements/Lab/Solutions/P01_ExcellentResult.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L02_ConditionalStatements/Lab/Solutions/P01_ExcellentResult.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
number = float(input()) if number >= 5.5: print("Excellent!")
16.5
23
0.606061
dfc6e6e86493a07157665fe95ebb0478b5d9de77
8,225
py
Python
CommandExecuter.py
Berni1557/MDDoc
06dd3cae302e6f125ebfbb2fc513bb754d72f07d
[ "BSD-3-Clause" ]
null
null
null
CommandExecuter.py
Berni1557/MDDoc
06dd3cae302e6f125ebfbb2fc513bb754d72f07d
[ "BSD-3-Clause" ]
null
null
null
CommandExecuter.py
Berni1557/MDDoc
06dd3cae302e6f125ebfbb2fc513bb754d72f07d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from MDDoc import MDDoc import os import optparse class CommandExecuter: parser = optparse.OptionParser() MD = MDDoc() opts = {} args = 0 def __init__(self): strCommand=" \ GRAPHML - Create .graphml file, \ DOCU - Create pdf documentaion, \...
44.22043
112
0.573739
26237479b9035075be9dbcef6f0d4b460a51dccf
10,824
py
Python
DatabaseMeta.py
HerrMoch/ETL-SCD-prototype
01d983c69cf4e51c7b94514bfe22791edb48566e
[ "MIT" ]
null
null
null
DatabaseMeta.py
HerrMoch/ETL-SCD-prototype
01d983c69cf4e51c7b94514bfe22791edb48566e
[ "MIT" ]
null
null
null
DatabaseMeta.py
HerrMoch/ETL-SCD-prototype
01d983c69cf4e51c7b94514bfe22791edb48566e
[ "MIT" ]
null
null
null
from sqlalchemy import MetaData from sqlalchemy import Table, Column from sqlalchemy import Integer, String, Date, Numeric, Boolean from sqlalchemy import ForeignKey class DatabaseMeta: # Konstante LINESEPERATOR wird nur für die Ausgabe der Methode __check_tables benötigt. LINESEPERATOR = '-' * 40 def __...
54.39196
118
0.490576
cd03ac27b1998fafe082f480bc3e9c843a3cc1a7
1,534
py
Python
source/pkgsrc/graphics/py-Pillow6/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/graphics/py-Pillow6/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/graphics/py-Pillow6/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.1 2021/03/10 18:40:04 adam Exp $ Disable mp_compile hack; it has problems with native parallel building. --- setup.py.orig 2019-10-20 09:47:22.000000000 +0000 +++ setup.py @@ -22,7 +22,6 @@ from setuptools import Extension, setup # monkey patch import hook. Even though flake8 says it's ...
41.459459
83
0.602347
f855053a65b97c8dcadd3c715c571745933d52ef
242
py
Python
Lab1/Task[4-6].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
Lab1/Task[4-6].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
Lab1/Task[4-6].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
#task4 r=int(input("Radius=")) print("Area of you circle:", 3.14159*(r)**2) #task5 f=str(input("Your first name:")) l=str(input("Your last name:")) print(f[::-1], l[::-1]) #task6 n=str(int(input("n="))) print(int(n)+int(n+n)+int(n+n+n))
15.125
44
0.590909
843ed5e5ba71e6967f248fb6636706bb38981d57
2,863
py
Python
Fortgeschrittenenpraktikum/Protokolle/V27_Zeeman-Effekt/Python/blau_s.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2019-03-07T08:55:36.000Z
2019-04-22T18:13:03.000Z
Fortgeschrittenenpraktikum/Protokolle/V27_Zeeman-Effekt/Python/blau_s.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
null
null
null
Fortgeschrittenenpraktikum/Protokolle/V27_Zeeman-Effekt/Python/blau_s.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2017-10-27T13:26:43.000Z
2018-01-13T09:12:24.000Z
import numpy as np from scipy.stats import sem import scipy.constants as const from uncertainties import ufloat import uncertainties.unumpy as unp from uncertainties.unumpy import (nominal_values as noms, std_devs as stds) import matplotlib.pyplot as plt from scipy.optimize import curve_fit from PIL import Image import...
28.346535
98
0.637793
29e659835d3e68932b1496d27ee1a79e9bf69f85
456
py
Python
backups/Arsenic/arsenic/parser.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
backups/Arsenic/arsenic/parser.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
backups/Arsenic/arsenic/parser.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
1
2020-10-02T04:57:25.000Z
2020-10-02T04:57:25.000Z
''' Created on Nov 12, 2019 @author: froske ''' from bs4 import BeautifulSoup import sys def parse_file(): try: filename = sys.argv[1] except: filename = '/home/froske/Workspaces/SafariBooks/DownloadTests/script/library/view/kanban-in-action/9781617291050/kindle_split_017.html' file ...
21.714286
143
0.682018
4b1a6b5f79798e97810a934b2534d389f8aaad53
174
py
Python
Webpage/cruises/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/cruises/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/cruises/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import * admin.site.register(cruise) admin.site.register(sailor) admin.site.register(cruiseShare)
21.75
32
0.804598
d9bba637752c66f4a9b413e9c51d85e8f63e2a5a
75,222
py
Python
paddlenlp/trainer/trainer_base.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/trainer/trainer_base.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/trainer/trainer_base.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-present the HuggingFace Inc. team. # 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.o...
43.107163
138
0.605501
8ab32422bd4a6b76a79c952d53e603db424bc257
2,477
py
Python
Sample/Connector.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
1
2019-02-28T08:39:55.000Z
2019-02-28T08:39:55.000Z
Sample/Connector.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
5
2018-07-17T13:09:34.000Z
2018-09-11T13:55:33.000Z
Sample/Connector.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
2
2019-05-17T03:07:08.000Z
2022-01-01T07:04:31.000Z
import DB import subprocess import socket import json def getSSID(): args = ['/sbin/iwgetid', '-r'] proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True) (output, dummy) = proc.communicate() return output.split()[0] class Socket: def __init__(sel...
27.522222
108
0.566815
6ae126856cd416e37e4e0a4f854a469e6c24cc75
4,093
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/district/gridDistricts.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/district/gridDistricts.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/district/gridDistricts.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2007-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
40.93
114
0.591498
7c77a84f6510b879b6f6d2dd5277d73935bd4e5c
300
py
Python
2_postitionierung/4_translateRotate.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
2_postitionierung/4_translateRotate.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
2_postitionierung/4_translateRotate.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Einmitten und rotieren - Kannst du das Rechteck einmitten, indem du die ersten beiden Argumente der Funktion rect() änderst? """ newPage(1000, 1000) posX = width() / 2 posY = height() / 2 rectSide = 200 translate(posX, posY) rotate(30) rect(0-rectSide/2, 0-rectSide/2, rectSide, rectSide)
15.789474
101
0.71
7ce974f6b08400c203c80e968e47efab55add48a
389
py
Python
task_5_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
task_5_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
task_5_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 5. Вариант 7. # Напишите программу, которая бы при запуске случайным образом отображала имя одного из семи гномов, друзей Белоснежки. # Videneev P. A. # 26.05.2016 print("\nимя одного из семи гномов, друзей Белоснежки:") import random gnomes=["Doc","Bashful","Sneezy","Happy","Dopey","Sleepy","Grumpy"] ...
32.416667
120
0.724936
7cf8d98b044fea9d50cdb5d575832d5b0438dfd6
697
py
Python
day02/tipCalculator.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day02/tipCalculator.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day02/tipCalculator.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
#If the bill was $150.00, split between 5 people, with 12% tip. #Each person should pay (150.00 / 5) * 1.12 = 33.6 #Format the result to 2 decimal places = 33.60 #Tip: There are 2 ways to round a number. You might have to do some Googling to solve this.💪 print("Hello to the TipCalco 2001") bill = float(input("what ...
43.5625
92
0.705882
869cd8704f0dde1977055dfebca6435d533e2811
28,305
py
Python
Packs/FeedUnit42v2/Integrations/FeedUnit42v2/FeedUnit42v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
null
null
null
Packs/FeedUnit42v2/Integrations/FeedUnit42v2/FeedUnit42v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
null
null
null
Packs/FeedUnit42v2/Integrations/FeedUnit42v2/FeedUnit42v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
null
null
null
from taxii2client.common import TokenAuth from taxii2client.v20 import Server, as_pages from CommonServerPython import * # disable insecure warnings requests.packages.urllib3.disable_warnings() UNIT42_TYPES_TO_DEMISTO_TYPES = { 'ipv4-addr': FeedIndicatorType.IP, 'ipv6-addr': FeedIndicatorType.IPv6, 'dom...
39.095304
121
0.644692
81309a41dbe348eced5be664505063b3e5d34021
2,875
py
Python
src/models/chen2017/preprocess.py
kaphka/imi-master-thesis
2331a3534dc32e30a1333bb21c68c1e1b07ec9e4
[ "MIT" ]
2
2018-04-27T09:02:15.000Z
2019-04-19T19:12:13.000Z
src/models/chen2017/preprocess.py
kaphka/imi-master-thesis
2331a3534dc32e30a1333bb21c68c1e1b07ec9e4
[ "MIT" ]
1
2019-04-19T19:13:08.000Z
2021-02-22T21:29:55.000Z
src/models/chen2017/preprocess.py
kaphka/imi-master-thesis
2331a3534dc32e30a1333bb21c68c1e1b07ec9e4
[ "MIT" ]
null
null
null
from experiment.data import Environment import datasets.divahisdb as diva import experiment.data as exd from models.chen2017.transforms import * from pathlib import Path from PIL import Image from os.path import splitext from tqdm import tqdm import logging env = exd.Environment() processed_path = env.dataset('DIVA_C...
34.22619
98
0.658087
813252a3e4b21ed3011ea9a4c685e718ee1b76bd
301
py
Python
Python/Strings/alphabet_rangoli.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Strings/alphabet_rangoli.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Strings/alphabet_rangoli.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
import string n = int(input()) w = 4*n - 3 abc = string.ascii_lowercase save = {} for i in range(n): c = abc[n-1-i] l = abc[n-1:n-1-i:-1] r = l[::-1] save[i] = '-'.join(list(l + c + r)) print(save[i].center(w,'-')) for i in range(n-2,-1,-1): print(save[i].center(w,'-'))
18.8125
39
0.498339
ed37b51cc27c10e3fb30f1aa5b3bac2b68e3ebd8
9,273
py
Python
verteilung_daten/sig_coocurrence_pre.py
ovanov/Kollokationsprofile-von-DFCP
4d45410a4f0b1e692f18da965d51d9a8e5eb7a08
[ "MIT" ]
null
null
null
verteilung_daten/sig_coocurrence_pre.py
ovanov/Kollokationsprofile-von-DFCP
4d45410a4f0b1e692f18da965d51d9a8e5eb7a08
[ "MIT" ]
null
null
null
verteilung_daten/sig_coocurrence_pre.py
ovanov/Kollokationsprofile-von-DFCP
4d45410a4f0b1e692f18da965d51d9a8e5eb7a08
[ "MIT" ]
null
null
null
""" This programm computes the HEATMAPS and STATISTICAL TESTS for the collocators that occur BEFORE a dfcp or 'dass' """ import re import pandas as pd import scipy.stats as stats # import stat calculator import matplotlib.pyplot as plt # plor graphs import seaborn as sns # create heatmaps import pre_plots.dass.plot_10...
50.672131
171
0.594845
1340a05c6321ac2017b6ce19c19e78b1a57ef9af
145
py
Python
3.Python/Aakash-Cyberlama.py
tresa2002/Learn-Coding
2ad4c8948f77c421a97b58adc00a59bb85c37de0
[ "MIT" ]
8
2020-10-01T14:15:53.000Z
2021-10-03T06:10:03.000Z
3.Python/Aakash-Cyberlama.py
tresa2002/Learn-Coding
2ad4c8948f77c421a97b58adc00a59bb85c37de0
[ "MIT" ]
null
null
null
3.Python/Aakash-Cyberlama.py
tresa2002/Learn-Coding
2ad4c8948f77c421a97b58adc00a59bb85c37de0
[ "MIT" ]
29
2020-10-02T14:24:53.000Z
2020-10-12T10:52:31.000Z
name, age = "aakash k s", 19 username = "Aakash-Cyberlama" print ('Hello!') print("Name: {}\nAge: {}\nUsername: {}".format(name, age, username))
29
68
0.641379
1393bcb52bb15df88cc3ad6922643258e5b20aa0
5,835
py
Python
20-hs-redez-sem/groups/05-decentGames/src/Chess.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/05-decentGames/src/Chess.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/05-decentGames/src/Chess.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import copy import json import os import socket import sys import xmlrpc.client from Chessnut.game import InvalidMove import State from AbsGame import AbsGame, MY_IP from Exceptions import FileAlreadyExists from Chessnut import Game from datetime import datetime from GameInformation import GameInformation as gi, Game...
32.780899
119
0.582519
13ed8d7a3a30bd25de15221d35a89144b993b093
25,677
py
Python
voices/rms_arctic/local/util.py
blackbawx/LEXA
75e5180ca61d3e0bd78c3b8b1ece0b21c8300026
[ "Apache-2.0" ]
null
null
null
voices/rms_arctic/local/util.py
blackbawx/LEXA
75e5180ca61d3e0bd78c3b8b1ece0b21c8300026
[ "Apache-2.0" ]
null
null
null
voices/rms_arctic/local/util.py
blackbawx/LEXA
75e5180ca61d3e0bd78c3b8b1ece0b21c8300026
[ "Apache-2.0" ]
null
null
null
import os, sys FALCON_DIR = os.environ.get('FALCONDIR') sys.path.append(FALCON_DIR) from hyperparameters import hparams from utils.misc import * from utils import audio from utils.plot import plot_alignment import random from sklearn.metrics import classification_report, confusion_matrix import torch.nn as nn import ...
32.420455
150
0.634303
b9218cd773e8b102cbda726535e090bf608e8b04
929
py
Python
challenges/replaceMiddle/python2/replaceMiddle.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/replaceMiddle/python2/replaceMiddle.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/replaceMiddle/python2/replaceMiddle.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
def replaceMiddle(arr): L = len(arr) M = int(L/2) return arr[0:M-1] + [sum(arr[M-1:M+1])] + arr[M+1:] if L%2==0 else arr if __name__ == '__main__': input0 = [[7, 2, 2, 5, 10, 7], [-5, -5, 10], [45, 23, 12, 33, 12, 453, -234, -45], [2, 8], [-12, 34, 40, -5, -12, 4, 0, 0, -12], [9, 0, 15, 9], [-6, 6, -6], [26, 26, -...
71.461538
188
0.559742
e02bcaaa81e10bb9d0d45e65461d82b413ae393d
4,910
py
Python
python/oneflow/compatible/single_client/nn/modules/tensor_buffer.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/modules/tensor_buffer.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/compatible/single_client/nn/modules/tensor_buffer.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...
32.302632
126
0.661507
0ec3ac6a82bebea5b9a2c9ea00b415796cdaa612
669
py
Python
Python/Docs/The-Python-Tutorial.python.org/4.2-for-Statements.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Docs/The-Python-Tutorial.python.org/4.2-for-Statements.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Docs/The-Python-Tutorial.python.org/4.2-for-Statements.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
# Measure some strings: words = ["cat", "window", "defenestrate"] for w in words: print(w, len(w)) # Create a sample collection users = {"Hans": "active", 'Eleonore': 'inactive', '景太郎': 'active'} # new_users = users.copy() # # print(users) # print(new_users) # # new_users["Eleonore"] = "Some Other things" # # pr...
19.114286
67
0.650224
16f007f6a206d0672b9d974ba969055b3b8ea9bf
420
py
Python
frappe-bench/apps/erpnext/erpnext/stock/doctype/material_request_item/material_request_item.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/stock/doctype/material_request_item/material_request_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/material_request_item/material_request_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class MaterialRequestItem(Document): pass...
28
73
0.792857
bc46002dc1005e06f9b1a50d93fde2f07197f0d1
167
py
Python
python/counter/counter_update.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/counter/counter_update.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/counter/counter_update.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import collections c = collections.Counter() print("Initial :", c) c.update("abcdaab") print("Sequence:", c) c.update({"a": 1, "d": 5}) print("Dict:", c)
15.181818
27
0.586826
5dbe91d3f159a95894995937b91194723e82bc86
2,157
py
Python
python_reference/useful_scripts/combinations.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
python_reference/useful_scripts/combinations.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
python_reference/useful_scripts/combinations.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
#!/usr/bin/env python # Sebastian Raschka 2014 # Functions to calculate factorial, combinations, and permutations # bundled in an simple command line interface. def factorial(n): if n == 0: return 1 else: return n * factorial(n-1) def combinations(n, r): numerator = factorial(n) d...
30.380282
128
0.639777
54ed3f390c5a48d2196da349bebd501d9a431bf8
3,658
py
Python
logya/content.py
yaph/logya
9647f58a0b8653b56ad64332e235a76cab3acda9
[ "MIT" ]
12
2015-03-04T03:23:56.000Z
2020-11-17T08:09:17.000Z
logya/content.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
78
2015-01-05T11:40:41.000Z
2022-01-23T21:05:39.000Z
logya/content.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
6
2015-04-20T06:58:42.000Z
2022-01-31T00:36:29.000Z
# -*- coding: utf-8 -*- from datetime import datetime from operator import itemgetter from pathlib import Path from typing import Union from markdown import markdown from logya.template import render from logya.util import load_yaml, slugify # Extensions of content files that will be processed. process_extensions =...
27.096296
91
0.630672
07252a031c400c5b5470edbef4b2fd0c15e37a73
334
py
Python
sk/smart-panda/table.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
sk/smart-panda/table.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
sk/smart-panda/table.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import pandas as pd df = pd.read_csv("food.csv") df["day"] = df["time"].apply(lambda time: time.split(" ")[0]) df2 = df[df.type == "milk"].groupby(by=["day"])["size"].agg({"size": np.sum}).reindex() df2.plot() plt.show() ...
23.857143
87
0.631737
91e8db9e0be42af0e44c66e88bde24f3eae8e29f
6,119
py
Python
plugins/PermssionManage.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
plugins/PermssionManage.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
1
2020-09-22T02:30:40.000Z
2020-09-22T02:30:40.000Z
plugins/PermssionManage.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from pluginsinterface.PluginLoader import on_message, Session, on_preprocessor, on_plugloaded from pluginsinterface.PluginLoader import PlugMsgReturn, plugRegistered, PlugMsgTypeEnum, PluginsManage from pluginsinterface.PluginLoader import PlugArgFilter from pluginsinterface.PermissionGroup imp...
28.863208
118
0.579997
72e1039a4ed4cc6ff06cf9ba4b72451f7573efaf
1,192
py
Python
Backend/migrations/alembic/versions/56a467c77bd8_create_divi_krankenhaus_standorte_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/migrations/alembic/versions/56a467c77bd8_create_divi_krankenhaus_standorte_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/migrations/alembic/versions/56a467c77bd8_create_divi_krankenhaus_standorte_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
"""create divi_krankenhaus_standorte table Revision ID: 56a467c77bd8 Revises: 757ac6b4af83 Create Date: 2020-11-25 21:18:22.072429 """ from alembic import op # revision identifiers, used by Alembic. revision = '56a467c77bd8' down_revision = '757ac6b4af83' branch_labels = None depends_on = None def upgrade(): o...
26.488889
57
0.60151
be4145c18d3578b49ffcd0a95cf1a389524d4771
831
py
Python
exercises/pt/test_02_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_02_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_02_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "list(doc.ents) + [span]" in __solution__ ), "Você adicionou a partição a doc.ents?" assert ( "span_root_head = span.root.head" in __solution__ ), "Você está selecionando o 'head' do token raiz da partição?" assert ( "print(span_root_head.text" in __solut...
43.736842
84
0.65343
a3bacc987d2614975bc5dd59bce38b9d887a9880
414
py
Python
Python/Exercícios_Python/SomaValoresInteiros.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/SomaValoresInteiros.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/SomaValoresInteiros.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# Função que soma os três números inteiros digitados def sum(num1, num2, num3): return num1 + num2 + num3 # Atribui valores nas variáveis print("\tSoma de três números\n") num1 = int(input('Digite o primeiro valor: ')) num2 = int(input('Digite o segundo valor: ')) num3 = int(input('Digite o terceiro valor: ')) #I...
29.571429
56
0.700483
4a5d2877020d204b5c83f6160fbafb13115d2cd6
4,544
py
Python
src/pfun/aio_trampoline.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/aio_trampoline.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/aio_trampoline.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from abc import ABC, abstractmethod from asyncio import iscoroutine from typing import (Awaitable, Callable, Generic, Iterable, List, TypeVar, Union, cast) from .immutable import Immutable from .monad import Monad A = TypeVar('A', covariant=True) B = TypeVar('B') C = TypeVar('C') class Trampolin...
28.759494
77
0.588468
43c6166adf620ecaf601cd2df9ed9382df041e61
4,038
py
Python
kernel/product/migrations/0001_initial.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/product/migrations/0001_initial.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/product/migrations/0001_initial.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-05 05:45 from django.db import migrations, models import painless.functions class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Product', fields=[ ...
39.980198
133
0.549529
71dff3b6fde1613ddefd1b98b4e8e035affe2572
375
py
Python
api/scheduledRunner.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
2
2021-03-23T20:32:38.000Z
2021-04-21T11:20:12.000Z
api/scheduledRunner.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
4
2021-04-19T11:00:55.000Z
2021-04-20T08:21:48.000Z
api/scheduledRunner.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import schedule import update_data import datetime import time def update(): print("Running data update at " + str(datetime.datetime.now())) try: update_data.update() except Exception: print("Update failed.") pass schedule.every(15).minutes.do(update) wh...
15.625
67
0.666667
1c29f20c97f33eed74f78fef23418862af10cd19
36
py
Python
lib/python3.5/tokenize.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
1
2020-08-16T04:04:23.000Z
2020-08-16T04:04:23.000Z
lib/python3.5/tokenize.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
5
2020-06-05T18:53:24.000Z
2021-12-13T19:49:15.000Z
lib/python3.5/tokenize.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
/usr/local/lib/python3.5/tokenize.py
36
36
0.805556
40b1d915a5435c098c801a3cfe546fa8552bf9c8
1,188
py
Python
src/onegov/swissvotes/views/exceptions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/views/exceptions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/views/exceptions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Public from onegov.swissvotes import _ from onegov.swissvotes import SwissvotesApp from onegov.swissvotes.layouts import DefaultLayout from webob.exc import HTTPForbidden from webob.exc import HTTPNotFound @SwissvotesApp.html( model=HTTPForbidden, template='exception.pt', ...
25.276596
77
0.670875