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
337257682cd144f3e6d84511eddcd3aeaf44f9fd
1,538
py
Python
scrapers/scrape_vs.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_vs.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_vs.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import datetime import re from bs4 import BeautifulSoup import scrape_common as sc xls_url = 'https://raw.githubusercontent.com/statistikZH/covid19_drop/master/Chiffres%20%20COVID-19%20Valais.xlsx' main_url = 'https://www.vs.ch/de/web/coronavirus' xls = sc.xlsdownload(x...
37.512195
114
0.686606
5047da0e1cdecd1ef96fe5ff8e60909133bb15dc
2,795
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/check-ibt-off-auto.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/check-ibt-off-auto.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/check-ibt-off-auto.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys import glob import eval_manager import mar_collection import subprocess import pipes def single_file_ibt(filename): cmd = "ibt -off -i \"auto-regen\" %s " % ( pipes.quote(filename)) subprocess.call(cmd, shell=True) basename = os.path.basename(os.path.sp...
24.734513
75
0.649374
a8942f50c32d074e11f3e070410da5b2c76bdc5d
3,389
py
Python
home-assistant/custom_components/kkm/sensor.py
Adamvg/SmartHouse
740b010260f6f6b38a19e2a75d431446abd54253
[ "MIT" ]
136
2019-06-27T08:11:47.000Z
2022-03-11T12:26:53.000Z
home-assistant/custom_components/kkm/sensor.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
5
2020-05-30T00:19:22.000Z
2022-03-25T18:49:47.000Z
home-assistant/custom_components/kkm/sensor.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
63
2019-07-15T21:11:58.000Z
2022-03-13T09:43:24.000Z
""" Fetch how many days you have left on your train card from http://www.mpk.krakow.pl/ """ import voluptuous as vol import logging import homeassistant.helpers.config_validation as cv import async_timeout import aiohttp import asyncio import homeassistant.util as util from datetime import timedelta, datetime import ...
30.531532
138
0.709354
76bb27ed22de5b72b5d4678614f793d344474fc5
2,317
py
Python
src/test/tests/simulation/ghostcells.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/simulation/ghostcells.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/simulation/ghostcells.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: ghostcells.py # # Tests: libsim - connecting to simulation and retrieving data from it. # mesh - 2D structured mesh. # scalars defined on material sub regions. # # Progr...
27.583333
78
0.54208
8cb6a544072c15a1c62d2b273a833391f439b95b
3,915
py
Python
model/dataset.py
mWollenhaupt/Mask_R-CNN_3D-Buildings
220f20b41a7290a01c0bb47672453e646254f8fc
[ "MIT" ]
2
2021-05-20T22:49:28.000Z
2021-06-16T06:35:07.000Z
model/dataset.py
mWollenhaupt/Mask_R-CNN_3D-Buildings
220f20b41a7290a01c0bb47672453e646254f8fc
[ "MIT" ]
null
null
null
model/dataset.py
mWollenhaupt/Mask_R-CNN_3D-Buildings
220f20b41a7290a01c0bb47672453e646254f8fc
[ "MIT" ]
null
null
null
from matterport import utils from utils.multiprocessing import ThreadPool import os import random import shutil import numpy as np import skimage.io # label mapping roofs = {1: "FD", 2: "PD", 3: "SD", 4: "WD", 5: "KWD", 6: "MD"} class RoofTypeDataset(utils.Dataset): de...
36.933962
116
0.590294
8ce834a526627b37b4dc1da5642c6d7ef2a8f6ac
2,915
py
Python
WiSe-2122/Uebung-11/Gruppe-A/U11-A2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Uebung-11/Gruppe-A/U11-A2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Uebung-11/Gruppe-A/U11-A2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Entwickeln Sie eine Version von Hangman in Python. Hierbei soll randomisiert aus einer Liste von Ihnen # vorgegebener Wörter eines ausgewählt und dem Nutzer zugewiesen werden. Dieser rät dann einzelne Buchstaben. # Ist der Buchstabe korrekt, wird dieser in der nächsten Ausgabe an der richtigen Stelle angezeigt. Ist e...
37.857143
152
0.653859
8cebed7f02fe69f3b6e14b5fecb27a7082ef7937
1,207
py
Python
Vorlesungsinhalte/2020-11-02_Damen/Python-Code/test.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-11-02_Damen/Python-Code/test.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-11-02_Damen/Python-Code/test.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
2
2020-10-08T18:08:59.000Z
2020-10-29T19:53:34.000Z
import spielfeld def testfeld(): feld = spielfeld.new_spielfeld(4) feld[1][2] = "X" feld[2][1] = "Y" feld[1][0] = "Z" feld[2][3] = "U" return feld def test_zeile(): feld = testfeld() assert(spielfeld.zeile(feld,0) == [' ', ' ', ' ', ' ']) assert(spielfeld.zeile(feld,1) == ['Z', ' ', 'X', ' ']) ass...
32.621622
64
0.531897
e86f16926141665fd9ba70e267ac7cc442da8592
427
bzl
Python
tools/build_rules/external_tools/external_tools_toolchain.bzl
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
1,168
2015-01-27T10:19:25.000Z
2018-10-30T15:07:11.000Z
tools/build_rules/external_tools/external_tools_toolchain.bzl
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
2,811
2015-01-29T16:19:04.000Z
2018-11-01T19:48:06.000Z
tools/build_rules/external_tools/external_tools_toolchain.bzl
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
165
2015-01-27T19:06:27.000Z
2018-10-30T17:31:10.000Z
"""Build rules used to define toolchains for external tools.""" def _external_tools_toolchain_impl(ctx): return [ platform_common.ToolchainInfo( asciidoc = ctx.attr.asciidoc, path = ctx.attr.path, ), ] external_tools_toolchain = rule( implementation = _external_tool...
23.722222
63
0.620609
fa413340d38b4e7694acc94b2008c7c92ad5701b
5,639
py
Python
research/cv/stgcn/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/stgcn/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/stgcn/export.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...
42.719697
174
0.717326
d7450774d5cc73c14ea4490dc82ee61a4a68a3e7
4,914
py
Python
test/test_npu/test_network_ops/test_exp.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_exp.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_exp.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...
44.672727
83
0.596663
add883de1c91c30cc472a037c968225ccdb09fd8
3,590
py
Python
benchmarks/matbench_v0.1_Ax_SAASBO_CrabNet_v1.2.7/utils/search.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
15
2021-11-01T09:02:19.000Z
2022-03-19T10:59:41.000Z
benchmarks/matbench_v0.1_Ax_SAASBO_CrabNet_v1.2.7/utils/search.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
62
2021-09-20T14:09:59.000Z
2022-03-30T19:03:22.000Z
benchmarks/matbench_v0.1_Ax_SAASBO_CrabNet_v1.2.7/utils/search.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
3
2021-11-26T10:13:48.000Z
2022-01-08T06:56:03.000Z
from ax.core import SearchSpace from ax.core.parameter_constraint import SumConstraint, OrderConstraint from ax import RangeParameter, ChoiceParameter, ParameterType # %% constraint parameters and constraints betas1 = RangeParameter( name="betas1", parameter_type=ParameterType.FLOAT, lower=0.5, upper=0.9999 ) beta...
34.190476
86
0.618942
cb5646e650450ee98a4426536b85bda3c14b00a6
901
py
Python
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week1/mul_ball_green.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week1/mul_ball_green.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week1/mul_ball_green.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# Examples of mouse input import simplegui import math # intialize globals width = 450 height = 300 ball_list = [] ball_radius = 15 # helper function def distance(p, q): return math.sqrt((p[0] - q[0]) ** 2 + (p[1] - q[1]) ** 2) # define event handler for mouse click, draw def click(pos): changed = False ...
21.97561
80
0.654828
2d66f9587175fdea29af1e19ded4141f462f2378
5,385
py
Python
Crossbar/crossbarDataBasePython/wildcard_publish.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
Crossbar/crossbarDataBasePython/wildcard_publish.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
Crossbar/crossbarDataBasePython/wildcard_publish.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
############################################################################### # # Copyright (C) 2014, Tavendo GmbH and/or collaborators. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redi...
33.65625
99
0.612442
9322eb081d3be0e7d5a93390be7c1f8cf5da0ae1
358
py
Python
3kCTF/2021/web/pawnshop/apache/src/admin.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
3kCTF/2021/web/pawnshop/apache/src/admin.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
3kCTF/2021/web/pawnshop/apache/src/admin.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from funcs import * form = cgi.FieldStorage() action = form.getvalue('action') if action=='list': list_items() elif action=='lookup': mail = form.getvalue('mail') if(mail != None): verify_email(mail) api({'msg':lookupSeller(mail)}) api({'msg':'error'}) elif action=='edit': api({'msg':'...
17.9
33
0.653631
faa8930ebf97e29895f11d2f3d2c78c6bfc5670d
65
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 16/16.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
50-Python-Exercises/Exercises/Exercise 16/16.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
50-Python-Exercises/Exercises/Exercise 16/16.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Print out the value of key b d = {"a": 1, "b": 2} print(d["b"])
16.25
29
0.523077
4f010fe5b5ccb4648514fa92447c7351d79455e6
154
py
Python
config.py
quiode/Radioaktiver-Mutter-Tochter-Zerfall-mit-Python
3bc6cb297fcb7318d74616d80aefaec1857825ae
[ "MIT" ]
null
null
null
config.py
quiode/Radioaktiver-Mutter-Tochter-Zerfall-mit-Python
3bc6cb297fcb7318d74616d80aefaec1857825ae
[ "MIT" ]
1
2021-11-15T10:44:18.000Z
2021-11-15T10:50:52.000Z
config.py
quiode/Radioaktiver-Mutter-Tochter-Zerfall-mit-Python
3bc6cb297fcb7318d74616d80aefaec1857825ae
[ "MIT" ]
null
null
null
ANZAHL_MOEGLICHE_TOECHTER = 10 ANFANGS_WERT = 1000 ZERFALLSKONSTANTE_MUTTER = 0.2 ZERFALLSKONSTANTE_TOCHTER = 0.1 ZEITSCHRITT = 0.05 ANZAHL_RUNDEN = 2000
22
31
0.824675
87e4bd70c5b05da02a6d175fe92070cace97768b
3,480
py
Python
solutions/graph_based_recommend/webserver/src/main.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/graph_based_recommend/webserver/src/main.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/graph_based_recommend/webserver/src/main.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import os import logging from service.search import do_search, get_list_info, get_ids_info from service.count import do_count from service.delete import do_delete_table from indexer.index import milvus_client from indexer.tools import connect_mysql from common.config import OUT_PATH import time from fastapi import Fast...
29
88
0.662356
e21100e0531b60d0f6e13a0963a869edcaad79ed
418
py
Python
spider_django/django_app/migrations/0005_tspiderresult_module.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
spider_django/django_app/migrations/0005_tspiderresult_module.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
spider_django/django_app/migrations/0005_tspiderresult_module.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-10 15:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('django_app', '0004_auto_20200806_1124'), ] operations = [ migrations.AddField( model_name='tspiderresult', name='mod...
22
74
0.614833
aa2b5eb0b93b8cacba8546c418bd12284f058d96
525
py
Python
scripts/generate_vector_sizes.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
scripts/generate_vector_sizes.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
scripts/generate_vector_sizes.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
supported_vector_sizes = [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096] result = "" for i in range(len(supported_vector_sizes)): vsize = supported_vector_sizes[i] if i == 0: result += "#if" else: result += "#elif" result += " STANDARD_VECTOR_SIZE == " + str(vsize) + "\n" result += "const sel_t FlatVec...
23.863636
79
0.626667
350e5721a4f86f4b292865015c9aebd91fd28eea
2,861
py
Python
app/extract.py
jpcrespo/twanalysis
16047f22796983464dd6367aab110947e18b1670
[ "MIT" ]
null
null
null
app/extract.py
jpcrespo/twanalysis
16047f22796983464dd6367aab110947e18b1670
[ "MIT" ]
null
null
null
app/extract.py
jpcrespo/twanalysis
16047f22796983464dd6367aab110947e18b1670
[ "MIT" ]
null
null
null
''' Este Script recopila los 3200 tuits mas recientes de un target y genera: 1. user_info.txt file - Toda la información disponible de contacto 2. user_historial.csv file - Un csv con los tuits: fecha y texto. ''' from dotenv import load_dotenv import os, tweepy, csv, pytz from datetime import datetime load_dotenv(...
38.662162
126
0.667599
10adcdb76ddccf27172b5c3a32e7c33302e92c00
3,488
py
Python
tests/onegov/election_day/formats/test_common.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/formats/test_common.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/formats/test_common.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest from io import BytesIO from onegov.core.utils import module_path from onegov.election_day.formats.common import load_csv def test_load_csv(): result = load_csv(BytesIO(), 'text/plain', []) assert result[1].error == 'The csv/xls/xlsx file is empty.' result = load_csv(BytesIO(''.encode('utf-...
36.715789
79
0.643922
d8042782cc31101f325204baaa44dcae43445c12
701
py
Python
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section2DataTypes/8ExerciseStrings.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
1
2022-02-02T21:56:08.000Z
2022-02-02T21:56:08.000Z
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section2DataTypes/8ExerciseStrings.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
27
2020-06-27T23:25:59.000Z
2022-02-27T20:40:56.000Z
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section2DataTypes/8ExerciseStrings.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
null
null
null
print("------------------") print("This program is going to ask for your name. And then print the intials.") print("------------------") firstName = input("Please enter your first name. ") middleName = input("Please enter your middle name. ") lastName = input("Please enter your last name. ") print("Your initials are: "...
36.894737
80
0.589158
f4b9c2527b21dd09afc05ad8c8c656c87bc8a11e
39
py
Python
doc/precursers/2019_09-Sneakernet/Sneakernet/menu.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
doc/precursers/2019_09-Sneakernet/Sneakernet/menu.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
doc/precursers/2019_09-Sneakernet/Sneakernet/menu.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
#!/usr/bin/env python3 import curses
7.8
22
0.717949
f4d0df776dd45deeb53057da93e09d2a69727794
966
py
Python
research/cv/ICNet/src/lr_scheduler.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ICNet/src/lr_scheduler.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ICNet/src/lr_scheduler.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...
42
82
0.678054
8715f5a017936137c598332fa6e9ed44049e9f3c
1,235
py
Python
lesson5/rayproject/scripts/deploy.py
raynardj/sbs
726dd47c7a3da0874b97b3df8dcf5b34060d79f6
[ "MIT" ]
null
null
null
lesson5/rayproject/scripts/deploy.py
raynardj/sbs
726dd47c7a3da0874b97b3df8dcf5b34060d79f6
[ "MIT" ]
null
null
null
lesson5/rayproject/scripts/deploy.py
raynardj/sbs
726dd47c7a3da0874b97b3df8dcf5b34060d79f6
[ "MIT" ]
null
null
null
from brownie import accounts, config, SimpleStorage, network def deploy_simple_storage(): account = get_account() simple_storage = SimpleStorage.deploy({"from": account}) stored_value = simple_storage.retrieve() print(stored_value) transaction = simple_storage.store(15, {"from": account}) tran...
33.378378
86
0.74251
5e5d56f205da53e1b41e27f9fa14bf934250bae2
2,957
py
Python
Packs/CommonScripts/Scripts/SearchIncidentsV2/SearchIncidentsV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/SearchIncidentsV2/SearchIncidentsV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/SearchIncidentsV2/SearchIncidentsV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from SearchIncidentsV2 import * import pytest data_test_check_if_found_incident = [ ([], 'failed to get incidents from demisto.\nGot: []'), (None, 'failed to get incidents from demisto.\nGot: None'), ('', 'failed to get incidents from demisto.\nGot: '), ([{'Contents': {'data': None}}], False), ([{'...
26.881818
121
0.601285
5ea349f6dcf32ad20156d73f2041fa01b1e9dee0
1,017
py
Python
gallery/rate.py
jeroenvantilburg/PPG
6f893337d70e1e9f50e08eac9e4e557b97299ead
[ "MIT" ]
null
null
null
gallery/rate.py
jeroenvantilburg/PPG
6f893337d70e1e9f50e08eac9e4e557b97299ead
[ "MIT" ]
null
null
null
gallery/rate.py
jeroenvantilburg/PPG
6f893337d70e1e9f50e08eac9e4e557b97299ead
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt # Data points with individual y-errors x = [0, 22.5, 45, 67.5, 90 ] y = [12.48, 10.73, 7.55, 2.01, 0.95 ] yerr = [0.22, 0.19, 0.15, 0.05, 0.05] # Create a numpy array of 100 entries with expected dependence x_theory = np.linspace(0, 90, 100) y_theory = y[0] * np.powe...
29.911765
83
0.67355
5ed293e76576801d043a0c434aa3eb5e1ac4ccc1
65
py
Python
Online-Judges/CodingBat/Python/List-01/07-reverse3.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/List-01/07-reverse3.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/List-01/07-reverse3.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def reverse3(nums): return nums[2:3] + nums[1:2] + nums[0:1]
21.666667
44
0.6
df0db46b393d710cbafbd58711a761aa031c9a26
759
py
Python
aecb/api/management/commands/check_media_dirs.py
snvc00/aecb-backend
96847008d7b8d986099c0ce08e1026926ef3c68d
[ "MIT" ]
null
null
null
aecb/api/management/commands/check_media_dirs.py
snvc00/aecb-backend
96847008d7b8d986099c0ce08e1026926ef3c68d
[ "MIT" ]
null
null
null
aecb/api/management/commands/check_media_dirs.py
snvc00/aecb-backend
96847008d7b8d986099c0ce08e1026926ef3c68d
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from os import mkdir, path from django.conf import settings class Command(BaseCommand): """ """ def handle(self, *args, **kwargs): required_dirs = [ "cards", "reports" ] try: for dir i...
31.625
121
0.55863
10ed571d6163d236cc73acb3215c1016a817d81c
39
py
Python
lib/python3.5/sre_compile.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
1
2020-08-16T04:04:23.000Z
2020-08-16T04:04:23.000Z
lib/python3.5/sre_compile.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
5
2020-06-05T18:53:24.000Z
2021-12-13T19:49:15.000Z
lib/python3.5/sre_compile.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
/usr/local/lib/python3.5/sre_compile.py
39
39
0.820513
33e4ef5b98a9ebcf5831cf5fc55df967335947c8
3,945
py
Python
test/test_npu/test_miopen_convolution_transpose_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_miopen_convolution_transpose_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_miopen_convolution_transpose_backward.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...
38.300971
98
0.667427
63a874c7a5c9974f87a8189fd2dd9b8a785dc788
48
py
Python
test/testar/main.py
Smeds/WorkflowSandbox
30755d2ad54bde1db7b2468563f8f3966294cde0
[ "MIT" ]
null
null
null
test/testar/main.py
Smeds/WorkflowSandbox
30755d2ad54bde1db7b2468563f8f3966294cde0
[ "MIT" ]
1
2022-03-18T10:59:52.000Z
2022-03-18T10:59:52.000Z
test/testar/main.py
Smeds/WorkflowSandbox
30755d2ad54bde1db7b2468563f8f3966294cde0
[ "MIT" ]
null
null
null
print("TEST") print("PLEASE") print("WORK1234")
12
17
0.6875
63b84679bc5cf2283229b6654c79fbd2284283e6
2,460
py
Python
test/test_npu/test_any.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_any.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_any.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...
37.846154
74
0.656098
8999d4768dbac2e5a8e8481dedbbadcfedf69bfa
852
py
Python
github_observer/services/calculate.py
dsc-sangmyung/2021GithubContest
d8fc93b2b50e98877a39cac8eafe814e5c18c4a6
[ "MIT" ]
12
2021-10-05T04:58:16.000Z
2021-12-25T19:06:48.000Z
github_observer/services/calculate.py
dsc-sangmyung/2021GithubContest
d8fc93b2b50e98877a39cac8eafe814e5c18c4a6
[ "MIT" ]
9
2021-10-02T19:21:25.000Z
2021-10-05T08:12:30.000Z
github_observer/services/calculate.py
dsc-sangmyung/2021GithubContest
d8fc93b2b50e98877a39cac8eafe814e5c18c4a6
[ "MIT" ]
1
2021-11-23T01:29:22.000Z
2021-11-23T01:29:22.000Z
from classes import Github from typing import List, Tuple from classes import Member, Repo from github_api import fetch_repos, fetch_user, fetch_grass_count async def calculate(members: List[Member], token='') -> Tuple[List[Github], List[Repo]]: ret_githubs = [] ret_repos: List[Repo] = [] for member in m...
31.555556
90
0.665493
7f2ee35f567ffcf6ff339f33d7534e1ae393aad1
1,093
pyde
Python
sketches/castledefender/castledefender.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/castledefender/castledefender.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/castledefender/castledefender.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
import math from castle import Castle from bullet import Bullet WIDTH = 900 HEIGHT = 600 FPS = 60 bullets = [] def setup(): global bg, castle size(WIDTH, HEIGHT) this.surface.setTitle("Burg-Verteidiger") bg = loadImage("bg.png") castle = Castle("castle_100.png") frameRate(FPS) def draw(): ...
23.76087
61
0.602928
f68fff850628d0b4353aeec266fcf3f5aa0ef4c2
161
py
Python
abfahrt/testutils/test_simulator/__main__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
1
2022-01-30T14:30:02.000Z
2022-01-30T14:30:02.000Z
abfahrt/testutils/test_simulator/__main__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
abfahrt/testutils/test_simulator/__main__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
from abfahrt.testutils.test_simulator.test_simulator import test_simulator if __name__ == '__main__': ts = test_simulator("abfahrt/testfiles") ts.run()
26.833333
74
0.763975
f6a265aaa08277af1819d747dc315a2d8a812c45
3,053
py
Python
packages/watchmen-model/src/watchmen_model/indicator/indicator.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/indicator/indicator.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/indicator/indicator.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from enum import Enum from typing import List, Optional, Union from pydantic import BaseModel from watchmen_model.common import BucketId, construct_parameter_joint, DataModel, FactorId, IndicatorId, \ OptimisticLock, ParameterJoint, SubjectDatasetColumnId, SubjectId, TenantBasedTuple, TopicId, UserGroupId from watch...
28.268519
106
0.765804
89db226a9f7512c8a9878ad4602bbf435ef73d38
267
py
Python
python/type_checking/do_twice.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/type_checking/do_twice.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/type_checking/do_twice.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# do_twice.py from typing import Callable def do_twice(func: Callable[[str], str], argument: str) -> None: print(func(argument)) print(func(argument)) def create_greeting(name: str) -> str: return f"Hello {name}" do_twice(create_greeting, "Jekyll")
17.8
64
0.692884
c3ab80a506790cc023af16a6be725303ab0910f5
242
py
Python
Proyecto21dias/urls.py
sergioandrespenarandatarazona/Tesis1
24ad878189aefa932895b2f42e8059a9720fcf1f
[ "MIT" ]
null
null
null
Proyecto21dias/urls.py
sergioandrespenarandatarazona/Tesis1
24ad878189aefa932895b2f42e8059a9720fcf1f
[ "MIT" ]
null
null
null
Proyecto21dias/urls.py
sergioandrespenarandatarazona/Tesis1
24ad878189aefa932895b2f42e8059a9720fcf1f
[ "MIT" ]
null
null
null
""" URLs module.""" from django.urls import path from Proyecto21dias import views def hello_world(request): """Return a greeting.""" return HttpResponse('Hello, world!') urlpatterns = [ path('hello-world/', hello_world) ]
13.444444
40
0.673554
c3ac9941cd184bae097420181e8e18077d7817ed
6,440
py
Python
api/bpm/local.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
api/bpm/local.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
api/bpm/local.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
import json import csv from services import BPMServices from services import BPMmethod class Setting(object): def __init__(self,step1_usage,step1_benchmarks,step15_usage,step2_usage,step3_usage,crazy_var,min_spacing,iter_window_len,window_length): self.step1_usage = step1_usage self.step1_benchma...
42.091503
416
0.670807
f638e2066cfcff9e4e44e3a7e47ac4b7b6179d94
522
py
Python
aoc2020/day_07/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_07/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_07/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from aoc2020 import * from .rule_parser import parse_rule from .graph import Graph class Solution(SolutionABC): expected = 4 def build_graph(self): rules = list(self.resource_lines("input", parse_rule)) graph = Graph([n for n, _ in rules]) for src, edges in rules: for dst...
24.857143
62
0.618774
140d2ffe282c553d9220a1cfda5ab98864d48cbc
175
py
Python
Curso-Em-Video-Python/2Exercicios/049_tabuada_v2.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/049_tabuada_v2.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/049_tabuada_v2.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
print('Tabuada') print('-' * 20) tabu = int(input('Qual Tabuada deseja Multiplicar: ')) for c in range(1, 11): print('{} X {:2} = {}'.format(tabu, c, tabu*c)) print('Fim')
29.166667
54
0.594286
dcdabecb0e97230c9c3197cc990807264fcd3046
1,343
py
Python
src/onegov/onboarding/forms/town.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/onboarding/forms/town.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/onboarding/forms/town.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import re from onegov.form import Form from onegov.onboarding import _ from wtforms import StringField, validators from wtforms.fields.html5 import EmailField from wtforms_components import ColorField class TownForm(Form): """ First step when starting a new town. """ # the name is limited to 63 characters b...
27.408163
75
0.614296
25cdf0a20dce78fed4fb7bafd38ea1ed9886310c
7,815
py
Python
hihope_neptune-oh_hid/00_src/v0.1/drivers/adapter/khdf/liteos/test/tools/hc-gen/test/unittest/update_case.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/drivers/adapter/khdf/liteos/test/tools/hc-gen/test/unittest/update_case.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/drivers/adapter/khdf/liteos/test/tools/hc-gen/test/unittest/update_case.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above ...
35.522727
93
0.658349
d3239fa8ebf1a630150243d32f60249e2a42642f
493
py
Python
INBa/2014/Mamedov_R_A/Mamedov 3_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/Mamedov_R_A/Mamedov 3_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/Mamedov_R_A/Mamedov 3_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 3, Вариант 12 # Напишите программу, которая выводит имя "Тициано Вечеллио", и запрашивает его псевдоним. Программа должна сцеплять две эти строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире. # Мамедов Р.А. # 16.03.2016 name = "Тициано Вечеллио" print("Герой нашей сегоднящней програ...
29
202
0.728195
6cd0d8bd6fcf2d0c0ebaa359747e973152488911
4,047
py
Python
pocketthrone/widgets/gamebutton.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
4
2016-06-05T16:48:04.000Z
2020-03-23T20:06:06.000Z
pocketthrone/widgets/gamebutton.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
pocketthrone/widgets/gamebutton.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
__all__ = ('GameButton') import string from kivy.properties import * from kivy.uix.image import Image from kivy.core.image import Image as CoreImage from kivy.graphics import Rectangle from kivy.core.window import Window from kivy.core.text import Label as CoreLabel from pocketthrone.managers.pipe import L from pock...
28.907143
127
0.721769
9f2db17446cdcd020da521115e4c69e83721fb1f
857
py
Python
challenge13/challenge13-exp-skel.py
dobin/yookiterm-challenges-files
81daab38d83bdc083bd9a66e90eea1397c5e30ed
[ "MIT" ]
17
2017-05-03T22:00:30.000Z
2021-12-07T10:15:41.000Z
challenge/13/src/challenge13-exp-skel.py
roo7vijos1/exploit-courses
a13c95726d330081ca4db77aa8391dcd4c6fcb00
[ "MIT" ]
2
2017-06-16T02:09:05.000Z
2018-03-01T08:58:24.000Z
challenge/13/src/challenge13-exp-skel.py
roo7vijos1/exploit-courses
a13c95726d330081ca4db77aa8391dcd4c6fcb00
[ "MIT" ]
11
2017-05-04T13:04:21.000Z
2020-12-15T23:00:02.000Z
#!/usr/bin/python import sys import socket shellcode = "\x48\x31\xc9\x48\x81\xe9\xf5\xff\xff\xff\x48\x8d\x05\xef" + "\xff\xff\xff\x48\xbb\xd2\x44\xe6\x0a\xfb\xc8\x96\x10\x48" + "\x31\x58\x27\x48\x2d\xf8\xff\xff\xff\xe2\xf4\xb8\x6d\xbe" + "\x93\x91\xca\xc9\x7a\xd3\x1a\xe9\x0f\xb3\x5f\xc4\xd7\xd6" + "\x60\xe4\x0a\xea\x...
35.708333
567
0.68028
2ca1320d943a69ee247f71baf322726a67425960
5,111
py
Python
uberlangweiligenbaum.py
sylap/uberlangweiligenbaum
b5628524ccea146d50f35da17591c22854228b67
[ "MIT" ]
null
null
null
uberlangweiligenbaum.py
sylap/uberlangweiligenbaum
b5628524ccea146d50f35da17591c22854228b67
[ "MIT" ]
null
null
null
uberlangweiligenbaum.py
sylap/uberlangweiligenbaum
b5628524ccea146d50f35da17591c22854228b67
[ "MIT" ]
null
null
null
"""Growing Tree Animation Boring a boring tree. """ from cs1graphics import * from time import sleep paper_from = Color((30, 29, 29)) paper_to = Color('white') paper = Canvas(500, 500, title='School of Hacking, 케이MIT') paper.setBackgroundColor(paper_from) from math import cos, sin, degrees, radians def gradien...
26.210256
87
0.529838
1a7df91801d2fd2c4ec9aec79f726eaccfc4eea8
587
py
Python
apps/home/models.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
apps/home/models.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
4
2020-09-21T01:32:14.000Z
2020-09-21T01:32:47.000Z
apps/home/models.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
# *-* coding: utf-8 *-* import textwrap from django.db import models class MarketProduct(models.Model): pk_product = models.CharField(max_length=50, verbose_name='Código', primary_key=True) product_description = models.TextField('Descrição do Produto') product_stock = models.FloatField('Estoque', default=...
32.611111
89
0.706985
80b57d5b02f7b061be5a3a502967c5a92b4cc133
697
py
Python
Algorithms/Implementation/Kangaroo.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/Kangaroo.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/Kangaroo.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 x1, v1, x2, v2 = map(int, raw_input().split()) if x1 < x2: if v1 > v2: #相对速度 v = v1 - v2 x = x2 - x1 if x % v == 0: print 'YES' else: print 'NO' ''' #笨笨的 while x1 < x2: x1 += v1 x2 += v2 ...
17
46
0.332855
80c1335c03552e00910e66ef0545d5d0f9d89fdd
8,209
py
Python
research/cv/pointnet2/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/pointnet2/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/pointnet2/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.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...
40.240196
117
0.681204
03f3cf5001c75dac27f6436f7dd046e014ff5639
5,517
py
Python
backend/LDAPHandler.py
bytebang/ppvm
07a0650c618b9dd6abc7563070a80c132034f532
[ "MIT" ]
null
null
null
backend/LDAPHandler.py
bytebang/ppvm
07a0650c618b9dd6abc7563070a80c132034f532
[ "MIT" ]
null
null
null
backend/LDAPHandler.py
bytebang/ppvm
07a0650c618b9dd6abc7563070a80c132034f532
[ "MIT" ]
null
null
null
from helpers.Config import Config from helpers.Tools import Tools from ldap3 import Connection, Server, ALL, SUBTREE LDAPAuthType = { "LOGIN": 0x001f, "ANONYMOUS": 0x002f } class LDAPHandler: def __init__(self): self.__config = self.__getLDAPConfig() self.__connection = Fals...
35.824675
126
0.563893
20b6a915041a080483e1c29fceeba3cf7c636bfe
629
py
Python
Python/B8-Sanduhr/B8-Sanduhr.py
frankyhub/Calliope
335f0ef5ca9bcf57e14166319501ec9086bc09bf
[ "MIT" ]
null
null
null
Python/B8-Sanduhr/B8-Sanduhr.py
frankyhub/Calliope
335f0ef5ca9bcf57e14166319501ec9086bc09bf
[ "MIT" ]
null
null
null
Python/B8-Sanduhr/B8-Sanduhr.py
frankyhub/Calliope
335f0ef5ca9bcf57e14166319501ec9086bc09bf
[ "MIT" ]
null
null
null
ef on_button_pressed_a(): global Reihe, Spalte basic.show_leds(""" # # # # # # # # # # # # # # # # # # # # # # # # # """) Reihe = 0 for index in range(5): for index2 in range(5): led.toggle(Spalte, Reihe) basic....
20.290323
55
0.399046
ff7cbc177a2715a997e893eedac89e7bd94b4041
591
py
Python
LifiEnigma/pot_vol.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
LifiEnigma/pot_vol.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
LifiEnigma/pot_vol.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from gpiozero import MCP3008 from time import sleep import os import time pot = MCP3008(0) pot_stay = 0 while True: pot_changed = True if (pot_stay==pot.value): pot_changed = False else: print (pot) volume = pot volume = round...
23.64
97
0.598985
a60645972cca785adb8dd6564c17fd2f1900f43c
457
py
Python
pacman-arch/test/pacman/tests/sync1008.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync1008.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync1008.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Conflicting package names in sync repos" sp1 = pmpkg("cpkg", "1.0-1") sp1.provides = [ "provision1" ] self.addpkg2db("sync1", sp1) sp2 = pmpkg("cpkg", "2.0-1") sp2.provides = [ "provision2" ] self.addpkg2db("sync2", sp2) sp3 = pmpkg("pkg") sp3.depends = [ "provision1" , "provision2" ] self.addpkg...
22.85
60
0.678337
472cfb1864ff94a33d7da191a1d55f570a57f378
3,548
py
Python
official/cv/simclr/src/nt_xent.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/simclr/src/nt_xent.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/simclr/src/nt_xent.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.565217
98
0.631342
750e0c534277b74c379a223e41b80df6671f3a34
1,826
py
Python
codeit/oop/clock.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/clock.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/clock.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from counter import Counter class Clock: """ 시계 클래스 """ HOURS = 24 # 시 최댓값 MINUTES = 60 # 분 최댓값 SECONDS = 60 # 초 최댓값 def __init__(self, hour, minute, second): """ 각각 시, 분, 초를 나타내는 카운터 인스턴스 3개(hour, minute, second)를 정의한다. 현재 시간을 파라미터 hour시, minute분, second초로 지정한다. ...
22.825
65
0.53724
752119b0a714c29305fbbcf878a0874f03a1c452
723
py
Python
robot/tieba.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
robot/tieba.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
robot/tieba.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 urllib.request, urllib.error, urllib.parse import scrapy class TiebaSpider(scrapy.Spider): name = 'tieba' start_urls = ['http://tieba.baidu.com/f?kw=blackpink&ie=utf-8'] def parse(self, response): for href in response.css('.threadlist_title a:...
31.434783
83
0.627939
753c4f0436cf137fe2afe6ddb07e832d7978208f
190
py
Python
Algorithms/Implementation/viral_advertising.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/viral_advertising.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/viral_advertising.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from math import floor days = int(input().strip()) n = 5 liked = 0 for _ in range(days): like = floor(n/2) n = floor(n/2) * 3 liked += like print(liked)
14.615385
27
0.6
1b38383b13291b693de29fd0eadc2f6c5784cbe8
2,241
py
Python
RedPitayaUltraschall/sr04SignProc_IQDemod.py
StefanMack/RedPitaya
f1de620e2f2f8d8bd239863386a79087705dd9d0
[ "CC0-1.0" ]
null
null
null
RedPitayaUltraschall/sr04SignProc_IQDemod.py
StefanMack/RedPitaya
f1de620e2f2f8d8bd239863386a79087705dd9d0
[ "CC0-1.0" ]
null
null
null
RedPitayaUltraschall/sr04SignProc_IQDemod.py
StefanMack/RedPitaya
f1de620e2f2f8d8bd239863386a79087705dd9d0
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #An dem analogen Echosignal des Ultraschallsensors HC-SR04 wird eine #Quadraturdemodulation durchgeführt. #Der Signalverlauf wird über eine Textdatei eingelesen. #Durch Multiplikation mit einem Kosinus bwzw. Sinus und anschließender #Tiefpassfilterung wird die I und die Q...
32.014286
73
0.747434
1b8202c5221a42c200927b7f4feb39bf0699e7bd
3,510
py
Python
src/main/apps/mlops/utils/general_functions.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
2
2021-08-23T21:56:07.000Z
2022-01-20T13:52:19.000Z
src/main/apps/mlops/utils/general_functions.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
src/main/apps/mlops/utils/general_functions.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
import json import re import unicodedata from bs4 import BeautifulSoup from pathlib import Path from typing import ( Generic, TypeVar, ) SELFCLASS = TypeVar('SELFCLASS') ABBREVIATIONS_WORDLIST_PATH = Path(__file__).resolve( ).parent.joinpath("resources/abbreviations_wordlist.json") class ImdbSentimentTextMo...
39.438202
130
0.638462
946b332d93255fa137f9804514984d3367eaf4c2
13,851
py
Python
bildungslogin-plugin/bildungslogin_plugin/backend_udm_rest_api.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
bildungslogin-plugin/bildungslogin_plugin/backend_udm_rest_api.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
bildungslogin-plugin/bildungslogin_plugin/backend_udm_rest_api.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import annotations import enum from hashlib import sha256 import logging import os import zlib from typing import Dict, List, Optional, Set # TODO: UDM REST client should raise application specific exception: from aiohttp.client_exceptions import ClientConnectorError from ud...
43.694006
105
0.627536
846df64a4fd25b12811bdefc0026f6d2e4199549
8,690
py
Python
research/cv/ntsnet/train_gpu.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ntsnet/train_gpu.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ntsnet/train_gpu.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...
45.260417
119
0.684695
84fbf32b4e1b8600949bffa9b95a82a183999c56
3,129
py
Python
variables.py
Packauskas/dongus
7c18e24716ea53fcec88cb6efc1913bdb36f0448
[ "MIT" ]
null
null
null
variables.py
Packauskas/dongus
7c18e24716ea53fcec88cb6efc1913bdb36f0448
[ "MIT" ]
null
null
null
variables.py
Packauskas/dongus
7c18e24716ea53fcec88cb6efc1913bdb36f0448
[ "MIT" ]
null
null
null
basic_response_list = ["I heard you, {0}! You said {1}", "Don't @ me bro!!", "I AM SO TIRED", "Why would you say {1} to me, {0}????", "I am who you say I am", "My bottom is itchy because of {0}", "Yo...
71.113636
158
0.527005
ca86b25cd78bed6239264e748758858a4faaead2
3,517
py
Python
src/bo4e/bo/ansprechpartner.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/ansprechpartner.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/ansprechpartner.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Ansprechpartner class and corresponding marshmallow schema for de-/serialization """ import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt, GeschaeftsobjektSchema from bo4e.bo.geschaeftspartner import ...
45.089744
184
0.76969
6d392831b4060439e5579624eaf7e49bd16af07f
495
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_0/reclculate_planned_operating_cost_in_production_order.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/patches/v5_0/reclculate_planned_operating_cost_in_production_order.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/reclculate_planned_operating_cost_in_production_order.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 from __future__ import unicode_literals import frappe def execute(): for wo in frappe.db.sql("""select name from `tabWork Order` where docstatus < 2""", as_dict=1): work_order = frapp...
38.076923
96
0.757576
44dd7b3db4cd33f54b5e09941e2d75a2627aa2c7
1,611
py
Python
loghub-master/tests.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
null
null
null
loghub-master/tests.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
3
2021-03-10T13:18:31.000Z
2021-05-11T09:20:11.000Z
loghub-master/tests.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
null
null
null
import loghub import unittest import json import datetime from redis import StrictRedis class LoghubTestCase(unittest.TestCase): def setUp(self): loghub.app.testing = True self.app = loghub.app.test_client() self.redis = StrictRedis(host='localhost', port=6379, db=0) def tearDown(sel...
28.767857
118
0.600248
155d607f324378c34537000f2d130d354dac7096
1,147
py
Python
sketches/handyballs/ball.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/handyballs/ball.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/handyballs/ball.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
import random as r class Ball(object): def __init__(self, renderer): self.h = renderer self.r = r.randint(20, 40) self.vel = PVector(1, 1)*r.uniform(1.0, 4.0) self.dir = PVector(-1.5, 1.5) self.pos = PVector(r.randint(80, width - 80), r.randint(80, height - 80)) sel...
31.861111
81
0.517001
01f59dd3a155b0bff342085ede2cd71d9048b5e1
185
py
Python
src/server/app/models/TaskList.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
6
2020-12-15T18:57:53.000Z
2022-02-06T18:54:35.000Z
src/server/app/models/TaskList.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
186
2020-11-17T10:18:17.000Z
2022-03-02T07:19:22.000Z
src/server/app/models/TaskList.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
1
2020-12-14T19:37:30.000Z
2020-12-14T19:37:30.000Z
from ..db.settings import db from .Task import Task import json class TaskList(db.Document): p_id = db.StringField(required=True, primary_key=True) t_color = db.StringField()
20.555556
58
0.740541
bda66254eab847e2bcd5ee9f8939d7f36af01d65
3,434
py
Python
huTools/unicode.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
huTools/unicode.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
huTools/unicode.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ Copyright (c) 2007, 2015 HUDORA GmbH. BSD Licensed. """ from __future__ import unicode_literals import doctest import string import sys import unicodedata from types import StringType def deUTF8(data): """This is meant to help with utf-8 data appearing where unicode sh...
31.218182
92
0.569889
da169c8e26b33cf2beefcb7b75d167352d296186
603
py
Python
ProjectEuler_plus/euler_113.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_113.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_113.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from math import factorial def binomial(x, y): try: binom = factorial(x) // factorial(y) // factorial(x - y) except ValueError: binom = 0 return binom def p113(): modulo = 10 ** 9 + 7 for _ in range(int(input().strip())): N = int(input().strip()) ...
20.793103
64
0.470978
da8965d1c11d9d50593b9a2ecf9063a357050ca3
663
py
Python
___Python/KarPoo/po1_kennenlernen/p11_gui/m01_input_click.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/KarPoo/po1_kennenlernen/p11_gui/m01_input_click.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/KarPoo/po1_kennenlernen/p11_gui/m01_input_click.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from tkinter import * from p09_isbn import m02_isbn window = Tk() window.title("ISBN Prüfung") window.geometry('350x200') lbl = Label(window, text="ISBN") lbl.grid(column=0, row=0) lbl2 = Label(window, text="") lbl2.grid(column=1, row=1) txt = Entry(window, width=10) txt.grid(column=1, row...
15.785714
52
0.60181
e564850edd99803fd92914312c328eb15b606b2b
1,415
py
Python
python_gui_tkinter/KALU/GARBAGE1/testck.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/testck.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/testck.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import tkinter as tk from tkinter import messagebox # --- classes --- (CamelCase names) class PopUp(tk.Toplevel): def __init__(self, number=10): tk.Toplevel.__init__(self) # - global checkbox to set all "small" checkboxes - self.global_state = tk.BooleanVar() cb = tk.Checkbutto...
23.583333
67
0.587986
e5a4b1ca3e3eb8ec5f955aa643ab581ea9a16629
2,311
py
Python
tp1/source/AStar.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
tp1/source/AStar.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
tp1/source/AStar.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Trabalho Pratico 1: Inteligência Artificial Autor: Hugo Araujo de Sousa (2013007463) AStar.py: A* graph search. Two available heuristics: Manhattan and Octile. ''' from GraphSearch import GraphSearch from heapq import * from Node import Node class AStar(GraphSearch): def __init__(self,...
22.436893
74
0.687581
e5d938639ffa10b181812ebc5d631ccc1d3fe024
487
py
Python
python/coursera_python/MICHIGAN/DataStructures/week2/mbox.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/DataStructures/week2/mbox.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/DataStructures/week2/mbox.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# Use the file name mbox-short.txt as the file name fname = input("Enter file name: ") fh = open(fname) count=0 float_tot=0.0 for line in fh: if not line.startswith("X-DSPAM-Confidence:") : continue count=count+1 pos_col = line.find(':') len_str = len(line) collect_str = line[pos_col+1:len_str] str_sp = collect_...
23.190476
57
0.720739
e5f0e23ecce9c2037fcca9f4b5539b44f1c81291
9,524
py
Python
src/Sephrasto/pdf.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
15
2017-11-09T12:49:52.000Z
2022-03-06T12:18:48.000Z
src/Sephrasto/pdf.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
40
2018-02-01T21:32:01.000Z
2022-03-22T11:35:28.000Z
src/Sephrasto/pdf.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
13
2018-03-12T17:50:42.000Z
2022-03-06T12:21:41.000Z
# -*- coding: utf-8 -*- """ This file consists of the following merged together into one file for usability # FIRST # Port of the PHP forge_fdf library by Sid Steward (http://www.pdfhacks.com/forge_fdf/) Anders Pearson <anders@columbia.edu> at Columbia Center For New Media Teaching and Learning <http://ccnmtl.col...
33.77305
162
0.597963
e5f8b9d38ec9bfd190c584da9879b59e8f971177
8,053
py
Python
hihope_neptune-oh_hid/00_src/v0.1/third_party/LVM2/daemons/lvmdbusd/pv.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/daemons/lvmdbusd/pv.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/daemons/lvmdbusd/pv.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015-2016 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions # of the GNU General Public License v.2. # # You should have received a copy of the GNU General Public License # a...
30.854406
79
0.724823
f90d4a1402091e6a8059daaac55e69bb40e386bb
3,973
py
Python
python_experiments/paper_figures/vldbj/draw_varying_rmax.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/vldbj/draw_varying_rmax.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/vldbj/draw_varying_rmax.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import matplotlib.pyplot as plt from data_analysis.vldbj_data_parsing.varying_eps_statistics import * from paper_figures.vldbj.draw_indexing_time_size import TICK_SIZE, LEGEND_SIZE, LABEL_SIZE import json from paper_figures.vldbj.draw_varying_c import us_to_ms_factor, large_size_plus def get_dict(file_path): wit...
39.73
126
0.668512
9740af5cff0b79c40661265d5b074d8f9a6c522c
932
py
Python
tools/oss_file_exist.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
tools/oss_file_exist.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
tools/oss_file_exist.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
import os import oss2 def check_existence(endpoint, bucket, path): ki = os.getenv("OSS_ACCESS_KEY_ID") ks = os.getenv("OSS_ACCESS_KEY_SECRET") auth = oss2.Auth(ki, ks) bucket_obj = oss2.Bucket(auth, endpoint, bucket) files = bucket_obj.list_objects(path) file_cnt = 0 for f in files.object_...
25.189189
63
0.655579
e700f1d6ea5f61a9b26cf0fc9216829cb3c7a3e0
624
py
Python
228-summary-ranges/228-summary-ranges.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
228-summary-ranges/228-summary-ranges.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
228-summary-ranges/228-summary-ranges.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def summaryRanges(self, nums: List[int]) -> List[str]: output = [] if nums: cur = [nums[0]] for num in nums[1:]: if cur[-1]+1!=num: if len(cur)==1: output.append(str(cur[-1])) else...
34.666667
68
0.379808
e79e2bd8072e1f9621c7020513b2f33617ccdc46
2,436
py
Python
preprocessing/file_scheme.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
preprocessing/file_scheme.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
preprocessing/file_scheme.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
import os.path import shutil class FileScheme: def __init__(self, path: str, output_dir="/srv/output"): self.steps = { # 1 => "extract_texts, # 2 => "manual_cleaning", # ... } self.input_path = path (basepath, _) = os.path.splitext(path) ...
32.052632
88
0.616174
6b6958252a59c502312f5c7b8f6b70cafed97bfb
13,115
py
Python
ppyt/models/__init__.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
4
2016-08-16T07:47:15.000Z
2017-12-11T10:08:47.000Z
ppyt/models/__init__.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
null
null
null
ppyt/models/__init__.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
2
2018-06-15T04:43:15.000Z
2020-05-02T07:47:15.000Z
# coding: utf-8 import logging import os from ppyt import const from ppyt.decorators import cached_property from ppyt.utils import format_for_date, format_with_comma from ppyt.utils import format_with_padding logger = logging.getLogger(__name__) class Position(object): """仕掛けから手仕舞いまでに関する情報を保持します。""" def __i...
31.526442
116
0.57926
d42c854a2dd2de8f7ca2b2f81915b38b691420d3
1,367
py
Python
top/clearlight/base/liaoxuefeng/object_oriented/Access_restrict.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/liaoxuefeng/object_oriented/Access_restrict.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/liaoxuefeng/object_oriented/Access_restrict.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
# 访问限制 class Student(object): # 私有变量: 属性名称前加两个下划线__. 只有内部可以访问, 稳步不能访问 # 一个下划线_开头的实例变量名: 这样的实例变量外部是可以访问的, 但是规定'虽然可以被访问, # 但请把它视为私有变量, 不能随意访问 def __init__(self, name, score): self.__name = name self.__score = score def print_score(self): print('%s : ...
21.359375
54
0.590344
d44e8fbd868de6b66fe09f3ded07c1fa6d61575a
1,261
py
Python
wz/_test/systemtrayapp.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/_test/systemtrayapp.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/_test/systemtrayapp.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
from qtpy.QtGui import * from qtpy.QtWidgets import * from qtpy.QtCore import QEvent app = QApplication([]) app.setQuitOnLastWindowClosed(False) from pynput.keyboard import Key, Controller keyboard = Controller() def do_action(): keyboard.press('≈') def activated(reason): if reason == QSystemTrayIcon.Trigge...
22.517857
59
0.68755
2e3a8ba3405842679b3663ed3511b1af8a759863
1,161
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/behavioral/iterator_alt.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/behavioral/iterator_alt.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/behavioral/iterator_alt.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" Implementation of the iterator pattern using the iterator protocol from Python *TL;DR Traverses a container and accesses the container's elements. """ class NumberWords: """Counts by word numbers, up to a maximum of five""" _WORD_MAP = ( "one", "two", "three", "four", ...
19.032787
78
0.578811
2e3f81846cc7c9b1d0ac1ef5edd1ccae975a31d1
186
py
Python
1051-height-checker/1051-height-checker.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1051-height-checker/1051-height-checker.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1051-height-checker/1051-height-checker.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def heightChecker(self, heights: List[int]) -> int: expected = sorted(heights) return sum([1 for i in range(len(heights)) if heights[i]!=expected[i]])
46.5
79
0.650538
5ac13d25bf7ecf91266f724dd599ae7d328b0689
137
py
Python
books/PythonAutomate/remove_txt_files.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/remove_txt_files.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/remove_txt_files.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from pathlib import Path cur_path = Path(".") txt_files = cur_path.glob("*.txt") for txt_file in txt_files: txt_file.unlink()
19.571429
35
0.678832
5ad9a1309a8f77c8bd19546e37f544a6b334b070
25,147
py
Python
Admin/res/status.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
1
2019-02-28T08:39:55.000Z
2019-02-28T08:39:55.000Z
Admin/res/status.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
5
2018-07-17T13:09:34.000Z
2018-09-11T13:55:33.000Z
Admin/res/status.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
2
2019-05-17T03:07:08.000Z
2022-01-01T07:04:31.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'status.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! import copy from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import * import pipeline as pipe import pandas as ...
40.42926
113
0.59856
5af81f49a166cfc546541ccd7526b0d11bf37183
238
py
Python
Python/WhatsAppBot/whatsappbot.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/WhatsAppBot/whatsappbot.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/WhatsAppBot/whatsappbot.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
from selenium import webdriver import time from webdriver_manager.chrome import ChromeDriverManager driver = webdriver.Chrome(ChromeDriverManager().install()) driver.get('https://web.whatsapp.com/') time.sleep(30) contato = ['','Vanessa']
34
58
0.794118
85aef749ef4391e4cea4a0255ff24b19327f666b
114
py
Python
oldp/apps/backend/processing/processing_steps/__init__.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/backend/processing/processing_steps/__init__.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/backend/processing/processing_steps/__init__.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
class BaseProcessingStep(object): pass def process(self, content): raise NotImplementedError()
14.25
35
0.684211
745a8ef31b36d904a0ee586ead19e9f302e8efe7
1,543
py
Python
transonic/backends/__init__.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/backends/__init__.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/backends/__init__.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
"""Backends for different accelerators ====================================== .. autosummary:: :toctree: base base_jit for_classes .. autosummary:: :toctree: pythran cython numba py User API -------- .. autofunction:: set_backend_for_this_module .. autofunction:: make_backend_files ""...
21.136986
68
0.719378
bb1447444cfd7986a0062437d4b3a5d5c7eea707
5,180
py
Python
Crawler/decommisioned/crawl_rki_bed_capacity_oldimport_once.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Crawler/decommisioned/crawl_rki_bed_capacity_oldimport_once.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Crawler/decommisioned/crawl_rki_bed_capacity_oldimport_once.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
#!/usr/bin/env python # coding: utf-8 # author: Max Fischer import datetime import logging from datetime import date import psycopg2 as pg import psycopg2.extensions import psycopg2.extras import requests from db_config import SQLALCHEMY_DATABASE_URI logger = logging.getLogger(__name__) logger.info('Crawler for RKI...
38.656716
892
0.718919
7013da2b5d6d6e68a8bed98c036e436ef6528b53
8,938
py
Python
src/onegov/feriennet/views/period.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/views/period.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/views/period.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.activity import Period, PeriodCollection from onegov.core.security import Secret from onegov.feriennet import _, FeriennetApp from onegov.feriennet.forms import PeriodForm from onegov.feriennet.layout import PeriodCollectionLayout from onegov.feriennet.layout import PeriodFormLayout from onegov.core.element...
31.921429
79
0.5
3b1bb2eedc72419cd40992378bc06a1918cc50c7
5,936
py
Python
tests/onegov/election_day/views/test_views_archive.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/views/test_views_archive.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/views/test_views_archive.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import transaction import pytest from datetime import date from onegov.election_day.collections import ArchivedResultCollection from tests.onegov.election_day.common import login from webtest import TestApp as Client def test_view_latest(election_day_app): client = Client(election_day_app) client.get('/locale...
31.743316
74
0.651112
8dbcbecef0bf18d7c90fdd9a2d0ebe8b646ae0e8
188
py
Python
oldp/apps/accounts/apps.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/accounts/apps.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/accounts/apps.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AccountsConfig(AppConfig): """This app is only an extension to the account management from django-allauth.""" name = 'oldp.apps.accounts'
26.857143
86
0.744681
8dc6807a261d9fc26cfa8024f173ff55905cd51b
934
py
Python
Lab10/checkpoint4.py
zwimer/IntroToOpenSourceLabs
2c8592d84355cd4c80b2693e08c931902bb85e6f
[ "MIT" ]
null
null
null
Lab10/checkpoint4.py
zwimer/IntroToOpenSourceLabs
2c8592d84355cd4c80b2693e08c931902bb85e6f
[ "MIT" ]
null
null
null
Lab10/checkpoint4.py
zwimer/IntroToOpenSourceLabs
2c8592d84355cd4c80b2693e08c931902bb85e6f
[ "MIT" ]
null
null
null
from pymongo import MongoClient from bson.objectid import ObjectId client = MongoClient() if __name__ == '__main__': #Define the database db = client.csci2963.definitions #Fetch all records i = 0 for post in db.find(): i = i + 1 print "Num records = " + str(i) + " = " + str(db.count(...
22.780488
86
0.607066
eb4a347a32669d62cb49454eac4c86854c8a42b1
926
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_1/set_total_amount_currency_in_je.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_1/set_total_amount_currency_in_je.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_1/set_total_amount_currency_in_je.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe from erpnext import get_default_currency def execute(): frappe.reload_doc("accounts", "doctype", "journal_entry") frappe.db.sql(""" update `tabJournal Entry` set total_amount_currency = %s where ifnull(multi_currency, 0) = 0 and (pay_to_recd_from is not null or pay_to_recd_from != "") """, get_def...
38.583333
91
0.735421
ba8791f4a463bb109015d4d3a466ee914ac8fc67
934
py
Python
Kapitel_2/_4_standard_descriptor_dekoratoren_1.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_2/_4_standard_descriptor_dekoratoren_1.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_2/_4_standard_descriptor_dekoratoren_1.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
# --- Deklaration einer Klasse mit Konstruktor und @property Methodoverloading eines Attributs --- # class PC: # --- Hier wird bereits auf den @gpu.setter zugegriffen --- # def __init__(self, cpu, gpu): self.cpu = cpu self.gpu = gpu # --- Standard Descriptor für das Attribut 'gpu' --- # ...
32.206897
100
0.655246
baba0e4ac702538b790c56d9fe72948f707f0f86
312
py
Python
App.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
1
2017-08-09T23:15:15.000Z
2017-08-09T23:15:15.000Z
App.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
App.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding=utf-8 -*- import sys,os from library.AppCore import * if __name__ == "__main__": app = QSingleApplication(sys.argv) app.setApplicationName("PtProject V 1.0") win = MainWindow(debug_level=INFO,path = os.getcwd()) app.singleStart(win) sys.exit(app.exec_())
24
57
0.676282
24522dd31e6484ececcf62209b24c7469e1b9d40
758
py
Python
src/pyramids/pop_pyramid.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/pyramids/pop_pyramid.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/pyramids/pop_pyramid.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# pyramid fig, ax = plt.subplots() group_col = "Gender" order_of_bars = df.Stage.unique()[::-1] colors = [ plt.cm.Spectral(i / float(len(df[group_col].unique()) - 1)) for i in range(len(df[group_col].unique())) ] for c, group in zip(colors, df[group_col].unique()): sns.barplot( x="Users", ...
24.451613
68
0.62533