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
0ea16548f0f826d4d646702d77e3c7620f6ca54f
34
py
Python
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/00.hello-wold.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/00.hello-wold.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/00.hello-wold.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
print("Hello World") print("ABC")
11.333333
20
0.676471
adcea4229783f065ea932e4d4dfb0a0abf933e0c
511
py
Python
src/lecture3_new/hog/examples/hog_exmaple.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
1
2020-08-17T07:09:09.000Z
2020-08-17T07:09:09.000Z
src/lecture3/hog/examples/hog_exmaple.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
null
null
null
src/lecture3/hog/examples/hog_exmaple.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
2
2020-07-26T07:27:57.000Z
2020-08-17T07:09:15.000Z
# get image from skimage import io # local dep import sys sys.path.append("..") from hog import hog EXAMPLE_FILE = "./example.jpg" RESULT_FILE = "./example-hog.jpg" """ test: test hog @params: None @rets: None """ def test(): image = io.imread(EXAMPLE_FILE, as_gray = True) normalis...
19.653846
125
0.655577
cbcdf4e51153847653a8f568644d00472f29b256
4,637
py
Python
tests/views/test_admin.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/views/test_admin.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/views/test_admin.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import pytest def test_normal_user(client, seeder, utils): seeder.create_user() utils.login() response = client.get("/admin") assert response.status_code == 403 def test_admin_user(client, seeder, utils, app): seeder.create_user(admin=True) utils.login() response = client.get("/admin") ...
28.98125
83
0.666379
6978de57c65d14f0447393111ca522bd2037a86e
6,558
py
Python
wz/core/groups.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/core/groups.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/core/groups.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ core/groups.py Last updated: 2021-09-25 Read the groups from the class courses table. =+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 Lice...
34.515789
75
0.6104
38b0e4a17d20e8d9e8313064436750771fc1ac51
1,548
py
Python
app/schema/file_schema.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/schema/file_schema.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/schema/file_schema.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
from marshmallow import Schema, fields, validate, EXCLUDE, pre_load, post_load, post_dump from app.models import File from app.services.file_services.file_status import FileStatus class FileSchema(Schema): class Meta: unknown = EXCLUDE uuid = fields.UUID(dump_only=True) file_name = fields.Str(va...
35.181818
89
0.691214
38e76c2440967a7a2b89a5c4691837778bff32a6
5,793
py
Python
spider/test1/test1/spiders/ttmeiju.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
spider/test1/test1/spiders/ttmeiju.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
spider/test1/test1/spiders/ttmeiju.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re; import scrapy import requests; from lxml import etree; from urllib.parse import unquote; from scrapy import Request; from ..items import TTmeiju; class TtmeijuSpider(scrapy.Spider): name = 'ttmeiju' allowed_domains = ['meijuxz.com',''] start_urls = ['http://www.meijuxz.co...
43.556391
155
0.461419
2a620f736d64577f1400a43df9c16b9cb4815c42
2,631
py
Python
websocket/piface_websocket.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
websocket/piface_websocket.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
websocket/piface_websocket.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import time import asyncio import threading from autobahn.asyncio.websocket import WebSocketServerProtocol, WebSocketServerFactory import pifacedigitalio # initialisiere PiFace pfd = pifacedigitalio.PiFaceDigital() # globale Variable zur Speicherung der aktuellen Lauflicht-Geschwindigkeit a...
30.593023
86
0.67997
aad3bc7253e4b5eb9176e327b2e13f0bc09572f0
746
py
Python
torch/quantization/quantize_fx.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
4
2020-02-03T23:48:24.000Z
2022-01-06T14:39:06.000Z
torch/quantization/quantize_fx.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
torch/quantization/quantize_fx.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
7
2020-08-31T22:49:59.000Z
2020-09-15T14:29:07.000Z
# flake8: noqa: F401 r""" This file is in the process of migration to `torch/ao/quantization`, and is kept here for compatibility while the migration process is ongoing. If you are adding a new entry/functionality, please, add it to the `torch/ao/quantization/quantize_fx.py`, while adding an import statement here. """ ...
24.866667
72
0.75067
aad7a79495145fd4b9a3a17a880b81f73f55c5ec
39
py
Python
sentinel/cosmos/__init__.py
allagog0x01/sentwg
52285ecf2b03c30a78901a29a7af96c8ab5764c8
[ "Apache-2.0" ]
342
2017-08-21T20:12:56.000Z
2022-03-19T17:58:25.000Z
sentinel/cosmos/__init__.py
allagog0x01/sentwg
52285ecf2b03c30a78901a29a7af96c8ab5764c8
[ "Apache-2.0" ]
57
2017-11-13T11:16:47.000Z
2022-03-01T13:54:31.000Z
vpn-node-cosmos/sentinel/cosmos/__init__.py
smtcrms/sentinel
ff65bc9200f6c940aa184c0ec0872fdcfef25363
[ "MIT" ]
72
2017-11-23T05:13:24.000Z
2022-02-25T14:18:33.000Z
# coding=utf-8 from .calls import call
13
23
0.74359
2d562bb40ec799511d36b27d529066c3ebdc4baa
508
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_0/update_refdoc_in_landed_cost_voucher.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/v7_0/update_refdoc_in_landed_cost_voucher.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/update_refdoc_in_landed_cost_voucher.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe def execute(): if "purchase_receipt" not in frappe.db.get_table_columns("Landed Cost Purchase Receipt"): return frappe.reload_doctype("Landed Cost Purchase Receipt") frappe.db.sql(""" update `tabLanded Cost Purchase Receipt` set receipt_document_type ...
33.866667
90
0.767717
2d5af3e698153ac54e7b3d3d2405c60d4d5d2ce7
38,159
py
Python
deutschland/bundesrat/api/default_api.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
deutschland/bundesrat/api/default_api.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
deutschland/bundesrat/api/default_api.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
""" Bundesrat: Live Informationen Bundesrat Informationen API # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from deutschland.bundesrat.api_client import ApiClient, Endpoint as _Endpoint fro...
40.294615
112
0.536047
937fe2bb2e2ca8cb5cf189af2bdf2ce1cf940488
2,040
py
Python
IVTa/2014/EGOROV_V_I/task_8_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/EGOROV_V_I/task_8_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/EGOROV_V_I/task_8_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 8. Вариант 8 ''' Доработайте игру "Анаграммы" (см. М.Доусон Программируем на Python. Гл.4) так, чтобы к каждому слову полагалась подсказка. Игрок должен получать право на подсказку в том случае, если у него нет никаких предположений. Разработайте систему начисления очков, по которой бы игроки, отгадавшие слово...
27.945205
105
0.687745
faf406f7ce6c85318b15d49d69eb640138d339d6
5,838
py
Python
casts/tests/test_cast_photo.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
casts/tests/test_cast_photo.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
casts/tests/test_cast_photo.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
# stdlib from datetime import datetime from shutil import rmtree # django from django.conf import settings from django.contrib.auth.models import User from django.core.files.images import ImageFile from django.test import TestCase from django.urls import reverse # library from rest_framework import status from rest_f...
38.156863
88
0.638746
ea63614f9f75ac454f895640566740dac7907dcf
164
py
Python
app/admin_views.py
jhogis/FlaskTest
545b4f3bb33f24c372e9918072f2d392ec5b624f
[ "CC-BY-3.0" ]
null
null
null
app/admin_views.py
jhogis/FlaskTest
545b4f3bb33f24c372e9918072f2d392ec5b624f
[ "CC-BY-3.0" ]
null
null
null
app/admin_views.py
jhogis/FlaskTest
545b4f3bb33f24c372e9918072f2d392ec5b624f
[ "CC-BY-3.0" ]
null
null
null
from app import app from flask import render_template @app.route("/admin/dashboard") def admin_dashboard(): return render_template("admin/dashboard.html")
27.333333
50
0.762195
57e68307bee3465bcb41b34a1c384f90531b5fef
4,044
py
Python
oneflow/python/experimental/dynamic_binary_split_concat_op.py
xxg1413/oneflow
f2e3c85a25b8aecfb6c0c0af1737833b1a77e135
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/experimental/dynamic_binary_split_concat_op.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
null
null
null
oneflow/python/experimental/dynamic_binary_split_concat_op.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
null
null
null
""" 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...
37.794393
88
0.75544
108116154af7194ae279a1c8f718b340f10ed691
629
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOopenGTOfile.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOopenGTOfile.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOopenGTOfile.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import os def run(id, gtotool, config, debug): try: # init info = gtotool.info metadata = gtotool.metadata # metadata file = config.get('file') if file is not None: if not os.path.isfile(file): # not absolute ...
25.16
58
0.527822
108983838f09c388da1ac346f778710eb7992cc9
2,126
py
Python
ops.py
yue1234567/QuantumCircuitZJY
097275a633bc0f0c92bb14ad63e94f460fa8567d
[ "Apache-2.0" ]
1
2021-06-15T11:19:43.000Z
2021-06-15T11:19:43.000Z
ops.py
yue1234567/QuantumCircuitZJY
097275a633bc0f0c92bb14ad63e94f460fa8567d
[ "Apache-2.0" ]
null
null
null
ops.py
yue1234567/QuantumCircuitZJY
097275a633bc0f0c92bb14ad63e94f460fa8567d
[ "Apache-2.0" ]
null
null
null
import numpy as np from math import sin, cos EPS = 1e-8 def NormalizeAngle(theta): '''make theta in [0, 2*np.pi)''' while theta<0: theta+=2*np.pi while theta>=2*np.pi: theta-=2*np.pi return theta def quantum_zero(): return np.matrix([[1],[0]], dtype=float) def qua...
25.614458
76
0.572437
875aec704c191b1e2e85cb4753000b47ed96f841
182
py
Python
Python/polar_coordinates.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
1
2021-05-19T06:44:03.000Z
2021-05-19T06:44:03.000Z
Python/polar_coordinates.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
Python/polar_coordinates.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
from cmath import phase complex_number = complex(input()) print(abs(complex(complex_number.real,complex_number.imag))) print(phase(complex(complex_number.real,complex_number.imag)))
36.4
62
0.824176
0da75e425655b68d306c56154fd1be359dd1eb01
2,141
py
Python
Cat/drf_project/migrations/0001_initial.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
Cat/drf_project/migrations/0001_initial.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
Cat/drf_project/migrations/0001_initial.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-25 07:56 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Goods', fi...
42.82
218
0.583372
21a752bed4694daf5f7096e3c84265c7918d63d3
2,175
py
Python
DataStructures/BalancedTrees/InsertAVL.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/BalancedTrees/InsertAVL.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/BalancedTrees/InsertAVL.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 ''' 高度:该节点作为根节点时的树高 空节点的高度为-1 叶子节点的高度为0 class Node(object): def __init__(self, data=None, height=None, left=None, right=None): self.data = data self.height = height self.left = left self.right = right ''' def Height(P): if p == None: return -1 else...
23.641304
70
0.542529
df82fe56afa5b08727e26e3b9bfe71e0f0b3e11a
4,449
py
Python
research/cv/LightCNN/src/lightcnn.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/LightCNN/src/lightcnn.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/LightCNN/src/lightcnn.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...
31.553191
106
0.606428
df8cf95073ac44fb1d202ac04fb4755b94bb4745
1,490
py
Python
gameoflife/timeMeasure.py
SilasDerProfi/study-hpc
7de9660f98cc0b65190ca9c348d9d2ff6518a81f
[ "Apache-2.0" ]
null
null
null
gameoflife/timeMeasure.py
SilasDerProfi/study-hpc
7de9660f98cc0b65190ca9c348d9d2ff6518a81f
[ "Apache-2.0" ]
null
null
null
gameoflife/timeMeasure.py
SilasDerProfi/study-hpc
7de9660f98cc0b65190ca9c348d9d2ff6518a81f
[ "Apache-2.0" ]
null
null
null
import os import re import csv import subprocess as sp from datetime import datetime thread_sizes = [(1,1), (1,2), (2,1), (2,2), (4,1), (1,4)] board_sizes = [1024, 2048, 4096] timestep = 350 timestamp = datetime.now().strftime("%Y-%m-%d-%H-%M-%S") if not os.path.exists("csv"): os.mkdir("csv") with open("csv/resu...
42.571429
139
0.572483
8039c85326ccb10300475ca532a16a16991c69ba
796
py
Python
sketches/ca02/cell.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/ca02/cell.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/ca02/cell.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# coding=utf-8 class Cell(): def __init__(self, c, r, sz, state = 0): self.c = c self.r = r self.sz = sz self.state = state def display(self): if self.state == 1: fill(0) # schwarz else: fill(255) # weiß rect(self.sz*...
24.121212
62
0.418342
d58e217d2312d2ecbd812b19cb0afbc0b20a394e
6,264
py
Python
Backend/misc/price_below_value.py
olivaresf/AWattPrice
db50930a016a4263638af64704d3233cc27e142b
[ "BSD-3-Clause" ]
8
2020-10-22T14:47:54.000Z
2022-01-23T20:17:51.000Z
v1_backend/misc/price_below_value.py
sp4c38/AwattarApp
b914e8042e5cdcb84485d6d45133a00244662bda
[ "BSD-3-Clause" ]
75
2020-11-16T16:13:28.000Z
2022-03-27T09:45:56.000Z
v1_backend/misc/price_below_value.py
sp4c38/AwattarApp
b914e8042e5cdcb84485d6d45133a00244662bda
[ "BSD-3-Clause" ]
4
2020-11-10T21:21:08.000Z
2021-10-20T12:35:33.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Find the time in which the most price points fall on or below a certain value. example: [3, 10, 4, -5, 9, 2, 1, -3, 7] in cents -> find longest time range in which prices drop on or below 5ct -> 2, 1, -3, 7 Note, the file ~/awattprice/data/awattar-data-de.json mus...
38.195122
158
0.661558
635ad5d5487103e41dc673ed15972c8f3324a658
1,995
py
Python
sourcebox_config/backend_sb.py
ebertmi/webbox
d2fa548e09a6c98be2bd0c6f6afc10e2d6df64b2
[ "MIT" ]
3
2018-03-12T18:01:53.000Z
2022-03-11T08:03:38.000Z
sourcebox_config/backend_sb.py
ebertmi/webbox
d2fa548e09a6c98be2bd0c6f6afc10e2d6df64b2
[ "MIT" ]
9
2017-10-04T20:09:20.000Z
2018-10-23T20:12:45.000Z
sourcebox_config/backend_sb.py
ebertmi/webbox
d2fa548e09a6c98be2bd0c6f6afc10e2d6df64b2
[ "MIT" ]
2
2018-03-17T18:55:07.000Z
2021-03-24T08:14:45.000Z
""" This backend overrides the pyplot show method for rendering mpl figures. It tries to send the figure as an PNG-Image over the file descriptor 3 to a listener. The data is sent as binary in the following format: STARTIMAGE IMAGEDATA ENDIMAGE """ from __future__ import (absolute_import, division, print_function, ...
30.227273
79
0.586967
98687e65e0fc336a4137c8d8ec31fc04ce9f2a28
1,565
py
Python
src/onegov/feriennet/exports/unlucky.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/exports/unlucky.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/exports/unlucky.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.activity import AttendeeCollection, Attendee, Booking from onegov.core.security import Secret from onegov.feriennet import FeriennetApp, _ from onegov.feriennet.exports.base import FeriennetExport from onegov.feriennet.forms import PeriodSelectForm from onegov.form import merge_forms from onegov.org.forms i...
35.568182
75
0.701597
7f7f5f84010cdb66181696b1babbd02c2ffd5c59
13,996
py
Python
src/main/requirements/old_versions.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
2
2021-08-23T21:56:07.000Z
2022-01-20T13:52:19.000Z
src/main/requirements/old_versions.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
src/main/requirements/old_versions.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
# __logs__ = { # 'version': "0.24.0", # 'date': "08/26/2021", # 'info': [ # "Password reset API/serializer ready.", # "Custom exception dict adaptation.", # "Account verification function removed.", # "New user attributes. (pass_token, and expirat...
39.204482
453
0.495785
f6e26d56eb90315f817315095f33ff7c738951f0
468
py
Python
INBa/2014/MorenkoAA/MorenkoAA_3_14.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/MorenkoAA/MorenkoAA_3_14.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/MorenkoAA/MorenkoAA_3_14.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 3. Вариант 14. # Напишите программу, которая выводит имя "Вильгельм Аполлинарий Костровицкий", и запрашивает его псевдоним. Программа должна сцеплять две эти строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире. # Моренко А.А. # 07.03.2016 print("Вильгельм Аполлинарий Костровиц...
31.2
221
0.745726
1252a0d4ae8322e3e5f988340a20e4a4a4b3c6f9
187
py
Python
py/jpy-integration/src/javaToPython/python/io/deephaven/jpy/integration/noop.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
55
2021-05-11T16:01:59.000Z
2022-03-30T14:30:33.000Z
py/jpy-integration/src/javaToPython/python/io/deephaven/jpy/integration/noop.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
py/jpy-integration/src/javaToPython/python/io/deephaven/jpy/integration/noop.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
29
2021-05-10T11:33:16.000Z
2022-03-30T21:01:54.000Z
def noop(obj): pass # the param t is just so we can get the method signature in java, and use an # appropriate return type for the proxy handler def identity(obj, t=None): return obj
26.714286
76
0.737968
f64588115345689bf686fe825a8e6bb315d140d0
35
py
Python
lib/python3.5/weakref.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
1
2020-08-16T04:04:23.000Z
2020-08-16T04:04:23.000Z
lib/python3.5/weakref.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
5
2020-06-05T18:53:24.000Z
2021-12-13T19:49:15.000Z
lib/python3.5/weakref.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
/usr/local/lib/python3.5/weakref.py
35
35
0.8
9cadb0e6292c72f940a95621d13ac1e367b9dc3b
4,569
py
Python
mod/user/user_handler.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
1
2015-06-28T15:26:52.000Z
2015-06-28T15:26:52.000Z
mod/user/user_handler.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
null
null
null
mod/user/user_handler.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
6
2015-03-20T16:36:22.000Z
2021-08-28T07:58:18.000Z
# -*- coding: utf-8 -*- # @Date : 2014-06-28 20:10:43 # @Author : xindervella@gamil.com yml_bright@163.com import tornado.web from tornado.httpclient import HTTPRequest, HTTPClient from ..models.user import User from ..units import update from ..units.config import AUTH, APPID, TIME_OUT import urllib c...
35.976378
85
0.445612
1423b9519873c049b8d4a92ab714ed906cb7380f
1,140
py
Python
IdeaProjects/crap/bingScrapy.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
IdeaProjects/crap/bingScrapy.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
IdeaProjects/crap/bingScrapy.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # -*- author:miko-*- # python3抓取bing主页所有背景图片 import urllib.request import urllib,re,sys,os def get_bing_backphoto(): if (os.path.exists('img')== False): os.mkdir('img') for i in range(0,24): url = 'https://cn.bing.com/?toHttps=1&redig=265CBC0D09884CB...
38
112
0.581579
1470f2748f41ec7099f12a304168728ed803cc1d
1,170
py
Python
2018/finals/re-drm/validator/validator.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/finals/re-drm/validator/validator.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/finals/re-drm/validator/validator.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # # Copyright 2018 Google LLC # # 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 ag...
29.25
92
0.733333
6cbccc8b42a958aecccc631127e9d1f0e16b38a5
1,756
py
Python
Utils/github_workflow_scripts/utils.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Utils/github_workflow_scripts/utils.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Utils/github_workflow_scripts/utils.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
#!/usr/bin/env python3 import os import json from datetime import datetime from typing import Optional CONTENT_ROOT_PATH = os.path.abspath(os.path.join(__file__, '../../..')) # full path to content root repo # override print so we have a timestamp with each print org_print = print def load_json(file_path: str) ->...
27.4375
107
0.656606
9f63d89543729f5d4067a8a9d6028309dff8feaa
1,065
py
Python
pythonProj/FZPython/pyquant/utils/monitor.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/utils/monitor.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/utils/monitor.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
#!/usr/bin/env python # coding: utf8 import time import functools class Monitor: """监控函数运行时间""" @staticmethod def start_monitor(): # return time.clock(); return time.time(); @staticmethod def end_monitor(): # return time.clock(); return time.time(); def listener(...
21.3
93
0.519249
e297dbf33644728d944b5fb8173421dfd1037347
504
py
Python
xiaobu/robot/sdk/LED.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
1
2020-07-16T02:52:47.000Z
2020-07-16T02:52:47.000Z
xiaobu/robot/sdk/LED.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
xiaobu/robot/sdk/LED.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
import _thread as thread from robot import config, logging from robot.drivers.pixels import pixels logger = logging.getLogger(__name__) def wakeup(): if config.get('/LED/enable', False): pixels.wakeup() else: logger.error('错误:不支持的灯光类型') def think(): if config.get('/LED/enable', False): ...
21.913043
40
0.626984
e2a285e4c18e44a857744766a7647c2b7e13ceb1
1,449
py
Python
src/onegov/fsi/models/course_subscription.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/models/course_subscription.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/models/course_subscription.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from uuid import uuid4 from sqlalchemy import Column, ForeignKey, Boolean, Table, Text from onegov.core.orm import Base from onegov.core.orm.types import UUID table_name = 'fsi_reservations' subscription_table = Table( table_name, Base.metadata, Column('id', UUID, primary_key=True, default=uuid4), Colu...
29.571429
74
0.692892
2c45dbd96db4583ec69f39d9d476bb54887b2971
783
py
Python
bookbar/common/validators.py
trenev/bookbar
bccfdf52293f7cf105d6768bb2a1a643c9a58bb7
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
expenses_tracker/expenses_tracker/web/validators.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
expenses_tracker/expenses_tracker/web/validators.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from django.utils.deconstruct import deconstructible ONLY_LETTERS_MESSAGE = 'Ensure this value contains only letters.' def validate_only_letters(value): if not value.isalpha(): raise ValidationError(ONLY_LETTERS_MESSAGE) @deconstructible class MaxFileS...
27.964286
65
0.727969
1acb288a500af889bce55aabd07b9ebc1f6d71d3
659
py
Python
day09/dictionary.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day09/dictionary.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day09/dictionary.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
programming_dictionary = { "Bug": "An error in a program that prevents the program from running as expected.", "Function": "A piece of code that you can easily call over and over again.", } print(programming_dictionary["Bug"]) # Adding new items programming_dictionary["Loop"] = "The action of doing something...
25.346154
88
0.726859
202b653e8eb935e9d16538bee87408180f1aa21a
193
py
Python
PlaidCTF/2020/misc/BonziScheme/app/bonzi/__init__.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
PlaidCTF/2020/misc/BonziScheme/app/bonzi/__init__.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
PlaidCTF/2020/misc/BonziScheme/app/bonzi/__init__.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from flask import Flask from config import Config from flask_uuid import FlaskUUID app = Flask(__name__) app.config.from_object(Config) FlaskUUID(app) from bonzi import routes, errors
21.444444
33
0.787565
b3eaf495140ef9ae542f1cb2202cd6d01e7bc07e
2,600
py
Python
python/various/snippets.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/various/snippets.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/various/snippets.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
import hashlib print(hashlib.sha1(b"abcdefg@cd").hexdigest()) # kwargs example def conditional_print(filename, local_style=True, custom_template=None): print(f"filename: {filename}, local_style: {local_style}, custom_template: {custom_template}") def handle_kwargs(filename, **kwargs): local_style = False ...
44.067797
98
0.599615
80dcffc9b6079fb6bcba6c3717ce01cf47c79c47
411
py
Python
balsn-2021-writeup/alldata/crypto/trinity/dist/deploy/src/server.py
Jimmy01240397/balsn-2021-writeup
91b71dfbddc1c214552280b12979a82ee1c3cb7e
[ "MIT" ]
null
null
null
balsn-2021-writeup/alldata/crypto/trinity/dist/deploy/src/server.py
Jimmy01240397/balsn-2021-writeup
91b71dfbddc1c214552280b12979a82ee1c3cb7e
[ "MIT" ]
null
null
null
balsn-2021-writeup/alldata/crypto/trinity/dist/deploy/src/server.py
Jimmy01240397/balsn-2021-writeup
91b71dfbddc1c214552280b12979a82ee1c3cb7e
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 -u import signal from blake3 import blake3 signal.alarm(15) key = b'wikipedia.org/wiki/Trinity'.ljust(32) God = bytes.fromhex(input('God >')) GOd = bytes.fromhex(input('GOd >')) GOD = bytes.fromhex(input('GOD >')) trinity = {God, GOd, GOD} assert 3 == len(trinity) assert 1 == len({blake3(...
19.571429
64
0.664234
037ee682ce976454a4164a68b71bdd9cba87b6b5
1,390
py
Python
listings/chapter05/binary_search_with_debug.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter05/binary_search_with_debug.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter05/binary_search_with_debug.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
def binary_search(search_space, search_object): # Vorerst Endlosschleife while True: # Index des mittleren Elements (unter der Mitte bei gerader Anzahl) center = len(search_space) // 2 # Aktuelles Element current = search_space[center] print(f"Suchraum: {search_space}, mi...
44.83871
86
0.62446
2bbc9117a3055bb048b227ff015fcbb0e8d9f8b6
178
py
Python
app/public/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
73
2018-12-14T18:12:33.000Z
2022-02-23T21:39:59.000Z
app/public/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
4
2019-11-23T18:08:18.000Z
2021-08-23T09:00:15.000Z
app/public/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
33
2019-06-03T00:30:57.000Z
2022-03-10T23:54:43.000Z
""" AUTOR: Juanjo FECHA DE CREACIÓN: 24/05/2019 """ from flask import Blueprint public_bp = Blueprint('public', __name__, template_folder='templates') from . import routes
12.714286
70
0.730337
755ddf36dfc64eb76891ef9255ed5435b532c15c
732
py
Python
code/preprocess_reporting_triangle.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
code/preprocess_reporting_triangle.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
code/preprocess_reporting_triangle.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
import pandas as pd from tqdm.auto import tqdm tqdm.pandas() df = pd.read_csv('../data-truth/COVID-19/COVID-19_hospitalizations.csv') for i, row in tqdm(df.iterrows(), total = len(df)): to_subtract = 0 for j, value in row[:2:-1].iteritems(): value += to_subtract if value < 0: to_su...
29.28
93
0.605191
341bb543e07e7d6036ee4e4037cb3e38606a4b3f
538
py
Python
python_lessons/Textastic_Files/myTestpy.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/Textastic_Files/myTestpy.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/Textastic_Files/myTestpy.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
print("Hallo, bitte gebe deinen Namen ein.") myName = input() print("Hallo " + myName) print("Bitte gebe deine PLZ ein.") myPLZ = input() print("Du Wohnst in der PLZ " + myPLZ) print("Bitte gebe den Ort in dem du wohnst.") myOrt = input() print("Du wohnst in " + myOrt) print("Gebe bitte deine Adresse ein.") myAdress...
24.454545
60
0.578067
34213d5328587bb326de16fdc5d959f3d139de02
476
py
Python
docker/django/restaurant/restapi/models/foodmenu.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
3
2019-08-29T10:14:40.000Z
2021-03-05T09:50:15.000Z
docker/django/restaurant/restapi/models/foodmenu.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
null
null
null
docker/django/restaurant/restapi/models/foodmenu.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
1
2021-03-05T09:50:29.000Z
2021-03-05T09:50:29.000Z
from django.db import models from django.utils import timezone from .restaurant import Restaurant class FoodMenu(models.Model): name = models.CharField(max_length=100) price = models.FloatField() current_date = models.DateField(default=timezone.now) vote_count = models.IntegerField() active = mod...
28
75
0.75
1b2932a5b27ef7c2bceb5f9bbfd6df9c4901f17e
5,119
py
Python
qmk_firmware/lib/python/qmk/cli/flash.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/flash.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/flash.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
"""Compile and flash QMK Firmware You can compile a keymap already in the repo or using a QMK Configurator export. A bootloader must be specified. """ from subprocess import DEVNULL from argcomplete.completers import FilesCompleter from milc import cli import qmk.path from qmk.decorators import automagic_keyboard, a...
46.963303
225
0.690955
1ba7c0254cc23bc40d00ca44a508d908382215cd
769
py
Python
pacman-termux/test/pacman/tests/symlink021.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/symlink021.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/symlink021.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "symlink -> dir replacment with file move" lp1 = pmpkg("pkg1") lp1.files = ["usr/include/foo/", "usr/include/bar -> foo", "usr/include/foo/header.h"] self.addpkg2db("local", lp1) sp1 = pmpkg("pkg1", "1.0-2") sp1.files = ["usr/include/foo/", "usr/include/foo/he...
28.481481
61
0.643693
84ba801f45e0a02ef0f3f119d6271c088f926194
747
py
Python
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-server/utils/hash_.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-server/utils/hash_.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-server/utils/hash_.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import hashlib def get_hash_from_string(str): ''' USE: hash.get_hash(str) Description: Generates a hash key with a given string ''' hash_object = hashlib.sha1(str.encode()) return hash_object.hexdigest() def get_hash_from_file(path): ''' USE: hash.get_hash_from_file(path) Description: Returns hash va...
22.636364
117
0.726908
ca07a00d7b74f0eda0ba7859c43b8b69b92f5569
1,668
py
Python
examples/passive_buzzer.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
1
2020-08-11T23:39:23.000Z
2020-08-11T23:39:23.000Z
examples/passive_buzzer.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
null
null
null
examples/passive_buzzer.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
1
2020-08-05T18:30:45.000Z
2020-08-05T18:30:45.000Z
import RPi.GPIO as GPIO #import the GPIO library import time #import the time library class Buzzer(object): def __init__(self): GPIO.setmode(GPIO.BCM) self.buzzer_pin = 17 #set to GPIO pin 17 GPIO.setup(self.buzzer_pin, GPIO.OUT) print("buzzer ready") def bu...
36.26087
108
0.604916
ca391646bc6fad05967bba0c48ee0a3285ffb929
73
py
Python
pages/themes/beginners/logicalExpressionsAndConditionalStatements/labs/break_more_real_examples.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/logicalExpressionsAndConditionalStatements/labs/break_more_real_examples.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/logicalExpressionsAndConditionalStatements/labs/break_more_real_examples.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
str = "alibaba" for s in str: print(s) print(i)
12.166667
20
0.424658
b6f5447a88c4af14d21ac1879d7d3e2ca9146f08
1,980
py
Python
tests/test_preisposition.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_preisposition.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_preisposition.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from decimal import Decimal import pytest # type:ignore[import] from bo4e.com.preisposition import Preisposition, PreispositionSchema from bo4e.enum.artikelid import ArtikelId from bo4e.enum.bdewartikelnummer import BDEWArtikelnummer from bo4e.enum.bemessungsgroesse import Bemessungsgroesse from bo4e.enum.kalkulatio...
38.076923
92
0.786869
fcdf303960545e2b84307720ab1c3dddc841ac20
1,776
py
Python
data/transform.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
data/transform.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
data/transform.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import os from pathlib import Path from WikiTransformer import WikiTransformer # # create a csv file for a given language and number of articles # def create_csv(language, wiki_base, wiki_files, number_of_articles, csv_base, csv_file): wikiTransformer = WikiTransformer(max_articles=number_of_articles) ...
36.244898
96
0.630631
1ee31ac8e3719d0bca8c29e2cb5f39c1b3cee04c
809
py
Python
Kapitel_1/_5_dunder_init.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_1/_5_dunder_init.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_1/_5_dunder_init.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
# --- Klassendeklaration mit Konstruktor --- # class MyClass: def __init__(self, arg1, arg2): self.arg1 = arg1 self.arg2 = arg2 # --- Instanziierung über die 'Dunder'-Methods --- # # 'Falscher' Weg (Funktioniert, aber man macht es nicht) # __new__ erstellt eins leers Objekt einer Klasse instanz1 = ...
42.578947
95
0.744129
bf81ee66fd95de2c988eb6412ae98e6d6c187fed
6,894
py
Python
Apps/Auswertung/graph_correctness_per_paragraph.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
1
2021-04-13T10:00:46.000Z
2021-04-13T10:00:46.000Z
Apps/Auswertung/graph_correctness_per_paragraph.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
Apps/Auswertung/graph_correctness_per_paragraph.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # import python libs import json import copy import numpy as np import matplotlib as mpl import matplotlib.mlab as mlab import matplotlib.pyplot as plt from pprint import pprint as pp # import project libs from constants import * from helper import * # defining global...
37.264865
149
0.653612
bf87eb495096fcb89286724ff0cd2000be700834
154
py
Python
app/Requests/Fund/Inference.py
Sainpse/FundAPI
308c646a1b4fa03e4abe53bc340cc959fdc14d9f
[ "MIT" ]
null
null
null
app/Requests/Fund/Inference.py
Sainpse/FundAPI
308c646a1b4fa03e4abe53bc340cc959fdc14d9f
[ "MIT" ]
null
null
null
app/Requests/Fund/Inference.py
Sainpse/FundAPI
308c646a1b4fa03e4abe53bc340cc959fdc14d9f
[ "MIT" ]
null
null
null
from pydantic import BaseModel from typing import List, Optional class Observation(BaseModel): asset: str observation: List[float] time: str
19.25
33
0.746753
bfd6d839b7b886d596e42f0195accdbcf8f7a9e6
351
py
Python
website/apps/fileupload/urls.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
1
2017-03-14T08:08:31.000Z
2017-03-14T08:08:31.000Z
website/apps/fileupload/urls.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
website/apps/fileupload/urls.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
# encoding: utf-8 from django.conf.urls import url from fileupload.views import FileCreateView, FileDeleteView, FileListView urlpatterns = [ url(r'^new', FileCreateView.as_view(), name='upload-new'), url(r'^delete/(?P<pk>\d+)', FileDeleteView.as_view(), name='upload-delete'), url(r'^view', FileListView.as_...
35.1
80
0.706553
449d3364eeef349b9c1c5723d39f32b8e5f3e351
348
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/58. Using sort() method, create a lambda function that sorts a list in descending order.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/58. Using sort() method, create a lambda function that sorts a list in descending order.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/58. Using sort() method, create a lambda function that sorts a list in descending order.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Using sort() method, create a lambda function that sorts a list in descending order. Please avoid using the reverse parameter. """ def sort_dec(input_list): input_list.sort() b=[] while True: if input_list==[]: break else: a=input_list.pop() ...
14.5
85
0.566092
44b638fd5c854e4ee670c9897652db333b487b8e
1,808
py
Python
2020-09-04-1133-gma_angestellter.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-04-1133-gma_angestellter.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-04-1133-gma_angestellter.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Klasse Angestellter Ergeänzen Sie die Klasse "Angestellter" um ein Attribut "monatsgehalt" und die Methoden "getMonatsgehalt" und "getJahresgehalt". """ import os os.chdir("D:\Selfcoding\WillmsBis040920\scara64anaconda\Klassen") from person import * class Angestellter(Per...
31.719298
66
0.63385
44dc9dbd75472762cfb2547317382c86a4618e71
8,867
py
Python
research/cv/metric_learn/src/utility.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/metric_learn/src/utility.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/metric_learn/src/utility.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...
36.489712
96
0.585542
bf042342c2664ed40c11f76df5121c81bdf7981e
327
py
Python
Algorithms/DynamticProgramming/SherlockAndCost.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/DynamticProgramming/SherlockAndCost.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/DynamticProgramming/SherlockAndCost.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 T = int(raw_input()) for _ in xrange(T): N = int(raw_input()) b_ar = map(int, raw_input().split()) lo = 0 hi = 0 for i in xrange(1, N): l = max(abs(1-b_ar[i-1]) + hi, lo) h = max(abs(b_ar[i]-1) + lo, abs(b_ar[i]-b_ar[i-1]) + hi) lo, hi = l, h print max(l...
19.235294
65
0.489297
da8da3961326d97671cc577775b69cf857048009
1,223
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/filenames.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/filenames.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/filenames.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
""" Provides access to example files and keeps track of all temp files created during a Python session. """ import os TEMPFILES = [] def data_dir(): """ Returns the data directory that contains example files for tests and documentation. """ return os.path.join(os.path.dirname(__file__), 'test', '...
26.586957
75
0.638594
e5973dd2ffcc50b21486c81d54f1def922f39734
73
py
Python
tmp/cython_jit.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
tmp/cython_jit.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
tmp/cython_jit.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic import jit @jit def func(a,b): return a+b func(0,1)
9.125
25
0.657534
975d263a080abad9946156865c215ecd18be45b2
648
py
Python
tmp/analyses/filter_body.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
tmp/analyses/filter_body.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
tmp/analyses/filter_body.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from pathlib import Path import gast as ast from transonic.analyses import beniget from transonic.analyses.util import ( get_annotations, print_ast, print_dump, print_unparsed, filter_code_typevars ) path_examples = Path("examples") files = sorted(path_examples.glob("*.py")) with open(files[1...
16.615385
60
0.743827
8af9bcf6d12f585e3a998662152401499f652d4d
260
py
Python
FUNDASTORE/APPS/PRINCIPAL/forms.py
GabrielB-07/FundaStore-cgb
b509a9743a651344b32dd7a40ab789f1db48e54b
[ "CC0-1.0" ]
null
null
null
FUNDASTORE/APPS/PRINCIPAL/forms.py
GabrielB-07/FundaStore-cgb
b509a9743a651344b32dd7a40ab789f1db48e54b
[ "CC0-1.0" ]
null
null
null
FUNDASTORE/APPS/PRINCIPAL/forms.py
GabrielB-07/FundaStore-cgb
b509a9743a651344b32dd7a40ab789f1db48e54b
[ "CC0-1.0" ]
null
null
null
from django import forms class FormularioContactenos(forms.Form): nombre = forms.CharField(max_length=128) email = forms.EmailField(max_length=128) telefono = forms.CharField(max_length=64) mensaje = forms.CharField(widget=forms.Textarea)
28.888889
52
0.753846
a9cb12a7edd1c6591f799849121ff3e1c9c72ff4
1,923
py
Python
page_stats.py
cutinha/devportal
fc564c7f0f779bba6a9713c27470d40a96fbc37a
[ "CC-BY-4.0" ]
null
null
null
page_stats.py
cutinha/devportal
fc564c7f0f779bba6a9713c27470d40a96fbc37a
[ "CC-BY-4.0" ]
null
null
null
page_stats.py
cutinha/devportal
fc564c7f0f779bba6a9713c27470d40a96fbc37a
[ "CC-BY-4.0" ]
null
null
null
from usp.tree import sitemap_tree_for_homepage from bs4 import BeautifulSoup from urllib.parse import urljoin import os import requests def index_pages(es, base_url): successes = [] skips = [] fails = [] response = requests.get(base_url) root = BeautifulSoup(response.content, "html.parser") c...
32.59322
87
0.616745
a9eb11b9acc5e6a246c358f3149463ffc07b0f2a
196
py
Python
exercises/en/exc_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/en/exc_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/en/exc_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Import spaCy import ____ # Create the German nlp object nlp = ____ # Process a text (this is German for: "Kind regards!") doc = nlp("Liebe Grüße!") # Print the document text print(____.text)
16.333333
54
0.709184
99eb5bdfa330db77819f27f9b9b8cdb410460023
2,440
py
Python
benwaonline/gateways/gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/gateways/gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/gateways/gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
import os from typing import List from requests import request as _request from requests import Response from requests.exceptions import ConnectionError, Timeout, HTTPError from benwaonline.exceptions import BenwaOnlineRequestError API_URL = os.getenv('API_URL') TokenAuth = 'TokenAuth' Parameter = 'Parameter' HEADE...
28.372093
112
0.631557
82305f34c2d5f5bac7023cb558778eea89675c01
4,034
py
Python
python/odml/test_scripts/cardinality_validation.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/test_scripts/cardinality_validation.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/test_scripts/cardinality_validation.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
""" Test validations of odml cardinality feat """ def section_properties_cardinality_validation(): import odml validate = odml.validation.Validation msg_base = "Section properties cardinality violated" doc = odml.Document() # Test no caught warning on empty cardinality sec = odml.Section(nam...
35.078261
99
0.63882
ec2f47dd522d53b637f9ee70510811dc2d78eb4f
78
py
Python
spiders/example_juejin/start.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-08-20T14:26:39.000Z
2019-08-20T14:26:39.000Z
spiders/example_juejin/start.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
9
2019-05-24T03:53:09.000Z
2022-02-26T10:53:48.000Z
spiders/example_juejin/start.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-11-08T08:12:40.000Z
2019-11-08T08:12:40.000Z
from scrapy import cmdline cmdline.execute(["scrapy","crawl","juejin_spider"])
39
51
0.782051
d483493586d423eaf381560eb9beb439851ded0b
10,748
py
Python
src/onegov/activity/models/occasion.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/models/occasion.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/models/occasion.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import sedate from datetime import datetime, timedelta from onegov.activity.models.occasion_date import DAYS from onegov.core.orm import Base from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.types import UUID from psycopg2.extras import NumericRange from sqlalchemy import Boolean from sqlalchemy ...
31.153623
79
0.64626
cf0f99df3a8747e9b795a2da2bd1b21e514b37b4
19,447
py
Python
Packs/SecurityScorecard/Integrations/SecurityScorecard/SecurityScorecard_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SecurityScorecard/Integrations/SecurityScorecard/SecurityScorecard_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SecurityScorecard/Integrations/SecurityScorecard/SecurityScorecard_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * from SecurityScorecard import \ SecurityScorecardClient, \ incidents_to_import, \ get_last_run, \ portfolios_list_command, \ portfolio_list_companies_command, \ company_score_get_command, \ company_factor_score_get_command, \ company_history_score_get_com...
31.416801
129
0.650486
2b79f82df7e414647f5756434d712b9a1e2cb654
357
py
Python
codeit/oop/menu_item.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/menu_item.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/menu_item.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
class MenuItem: # 음식 메뉴를 나타내는 클래스 def __init__(self, name, price): self.name = name self.price = price def __str__(self): return f'{self.name} 가격: {self.price}' # 메뉴 인스턴스 생성 burger = MenuItem("햄버거", 4000) coke = MenuItem("콜라", 1500) fries = MenuItem("후렌치 후라이", 1500) # 메뉴 인스턴스 출력 p...
19.833333
46
0.62465
9917a650667e8a8ed7e8a261b349d17c2f1c0c6b
3,268
py
Python
pizza_roulette.py
gautelinga/PizzaRoulette
5102b53d516128cb675bf9b0775e423b4e834bb5
[ "MIT" ]
null
null
null
pizza_roulette.py
gautelinga/PizzaRoulette
5102b53d516128cb675bf9b0775e423b4e834bb5
[ "MIT" ]
null
null
null
pizza_roulette.py
gautelinga/PizzaRoulette
5102b53d516128cb675bf9b0775e423b4e834bb5
[ "MIT" ]
null
null
null
import random import csv import sys import cPickle as pickle import time class PizzaMenu: def __init__(self, filename): self.pizzas = dict() with open(filename) as pizza_menu_file: reader = csv.DictReader(pizza_menu_file, delimiter='\t') for row in reader: s...
31.728155
78
0.585067
99ab3c50906360ac1f23d91bdca455c073520745
176
py
Python
30-Days-of-Code/Day16-Exceptions-StringToInteger.py
sadikkuzu/HackerRank
2b1ed2cf41f6a5404c5b9293186f301b646b5d33
[ "Apache-2.0" ]
5
2019-03-09T22:44:01.000Z
2021-09-14T00:11:38.000Z
30-Days-of-Code/Day16-Exceptions-StringToInteger.py
jguerra7/HackerRank-4
7e1663d0050ffbb0fd885b8affdada9ea13b0e80
[ "Apache-2.0" ]
4
2018-08-16T09:39:47.000Z
2018-09-14T17:37:07.000Z
30-Days-of-Code/Day16-Exceptions-StringToInteger.py
jguerra7/HackerRank-4
7e1663d0050ffbb0fd885b8affdada9ea13b0e80
[ "Apache-2.0" ]
1
2020-06-01T23:38:35.000Z
2020-06-01T23:38:35.000Z
# https://www.hackerrank.com/challenges/30-exceptions-string-to-integer #!/bin/python import sys S = raw_input().strip() try: print int(S) except: print "Bad String"
16
71
0.698864
5ac30ec7e7cb0d3003fcb2275ef89634f9229675
2,003
py
Python
app/core/migrations/0002_auto_20210626_1406.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
app/core/migrations/0002_auto_20210626_1406.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
app/core/migrations/0002_auto_20210626_1406.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-26 14:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( name='Distrito', f...
35.767857
117
0.54668
851052125d35d0e7fa20a330299b7543e6bb0bc6
149
py
Python
Python/M01_ProgrammingBasics/L02_ConditionalStatements/Lab/Solutions/P04_Number100...200.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L02_ConditionalStatements/Lab/Solutions/P04_Number100...200.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L02_ConditionalStatements/Lab/Solutions/P04_Number100...200.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
num1 = int(input()) if num1 < 100: print("Less than 100") elif num1 <= 200: print('Between 100 and 200') else: print('Greater than 200')
18.625
32
0.61745
cfadcc9adfbe873523db4fdc9a17cc1f4d4faf13
1,178
py
Python
intelligence/anthill/src/util/response_utils.py
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
10
2018-04-12T22:29:52.000Z
2021-10-18T17:07:45.000Z
intelligence/anthill/src/util/response_utils.py
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
null
null
null
intelligence/anthill/src/util/response_utils.py
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
1
2018-07-06T18:42:05.000Z
2018-07-06T18:42:05.000Z
def products_list_from_response(resp): """products_list_from_response takes a recommender response and returns a python list of integer product ids """ return [prod['id'] for prod in resp['products']] def zip_responses(recommender_resp, es_response): """zip_responses combines a list of full...
31.837838
70
0.657046
5c5efa77fe29b4f6df4cb6c37744aa7df9d76da0
15,302
py
Python
FileExport/FileSaver.py
Robsen01/Brain_Interface
2525dc5e90bc5ac6b67f8f596fdf26a9ae6b391e
[ "Apache-2.0" ]
null
null
null
FileExport/FileSaver.py
Robsen01/Brain_Interface
2525dc5e90bc5ac6b67f8f596fdf26a9ae6b391e
[ "Apache-2.0" ]
null
null
null
FileExport/FileSaver.py
Robsen01/Brain_Interface
2525dc5e90bc5ac6b67f8f596fdf26a9ae6b391e
[ "Apache-2.0" ]
null
null
null
import sys sys.path.append('../../Brain_Interface') from FileExport.FileDialog import FileDialog from PySide2.QtWidgets import QFileDialog, QMessageBox import ArduinoToPiDataTransfer.PiDataReceiverGeneric as PDRG import tempfile import os import datetime ''' Expects the user to hook its on_new_data event to the even...
37.970223
154
0.586851
5c740fe672e3f0141ddbadb8bdebe51e9f3229bd
599
py
Python
Trees/BinaryTree.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Trees/BinaryTree.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Trees/BinaryTree.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
1
2020-02-12T16:57:46.000Z
2020-02-12T16:57:46.000Z
from Trees.Tree import Tree from Trees.TreeNode import TreeNode class BinaryTree(Tree): def __init__(self, root=None): super().__init__(root) def inorder(self, root, result): if root: self.inorder(root.left, result) result.append('(' + str(root.val) + ')') ...
27.227273
104
0.604341
5ce17e8b7368de7dc2319a60b698856a4241f4c1
855
py
Python
configurations/migrations/0001_initial.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
1
2019-07-22T14:03:11.000Z
2019-07-22T14:03:11.000Z
configurations/migrations/0001_initial.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
null
null
null
configurations/migrations/0001_initial.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-16 14:40 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CategorySalesRank', fields=[ ('id', models....
29.482759
114
0.560234
7a4ed73396ffb147870189f6c73ac13d4cf95808
1,366
py
Python
Python/pandas/index_fortgeschritten.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/pandas/index_fortgeschritten.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/pandas/index_fortgeschritten.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np df = pd.DataFrame(np.random.randint(20, size=(3, 3))) print(df) print("df[0] ist:") # col print(df[0]) # row print(df.loc[0]) # sum print() print(df[0].sum()) print(" === ") df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]}, index=['a', 'b', 'c']) print(df) # Kann auch bestimmt...
23.152542
95
0.654466
a47a94e03afbccf3a6da77d4d8d15046a062d7c6
992
py
Python
Backend/services/crypt_service.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/services/crypt_service.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/services/crypt_service.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
import os from cryptography.fernet import Fernet # noinspection PyUnresolvedReferences import loadenv # https://devqa.io/encrypt-decrypt-data-python/ def generate_key(): """ Generates a key and save it into a file """ key = Fernet.generate_key() print(key) def load_key(): """ Load the ...
18.716981
57
0.670363
7433c9401b474654333bfb116932480058c53196
426
py
Python
Hackerrank_problems/Maximum_draws/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Maximum_draws/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Maximum_draws/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#!/bin/python3 import os import sys def maximumDraws(n): # in short all the possibilities for drawing can # be done by just adding the number of colours with 1 return n+1 if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') t = int(input()) for t_itr in range(t): ...
21.3
58
0.607981
563fcb008075238965c8e95ca582ae4e7466525b
179
py
Python
source/blog/admin.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
source/blog/admin.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
source/blog/admin.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import BlogPost, PostComments, VisitorIp admin.site.register([BlogPost, PostComments, VisitorIp]) # Register your models here.
29.833333
57
0.787709
567675e2db2037a27d34738730aa1ab538e1e617
5,258
py
Python
lib/util/ImageProcessing/image_processing.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
5
2018-02-06T22:48:34.000Z
2020-01-07T20:19:05.000Z
lib/util/ImageProcessing/image_processing.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
11
2018-01-31T21:47:49.000Z
2018-04-21T16:42:52.000Z
lib/util/ImageProcessing/image_processing.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
2
2020-06-18T05:40:03.000Z
2022-02-02T03:46:30.000Z
import cv2 import imutils import numpy as np from mouse_click import define_points def ordered_points(pts): """Create an np array (list) of the input coordinates ordered as top left, top right, bottom right, and then bottom left. Keyword arguments: pts -- list of manually selected points from an image ...
30.569767
93
0.677824
5c1bc55f6d74645180904dd30fe0938410be4efa
998
py
Python
PINp/2014/KOROTKOVA_D_S/task_4_39.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/KOROTKOVA_D_S/task_4_39.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/KOROTKOVA_D_S/task_4_39.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4 Вариант 39 # Напишите программу, которая выводит имя, под которым скрывается Евгений Петрович Катаев. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения всех н...
62.375
444
0.788577
5c45fe78b054ae3fe41b437615dbec71d465db53
15,978
py
Python
research/nlp/ktnet/run_KTNET_squad_eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/ktnet/run_KTNET_squad_eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/ktnet/run_KTNET_squad_eval.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...
50.403785
118
0.652272
eb62d0ba9d1113e53d9f731d49979e9bd89f655c
1,695
py
Python
main.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
main.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
main.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
import _thread import asyncio import mimetypes import os import time from flask import render_template, request from flask_talisman import Talisman import db_init import routes import statics.secrets as secrets from bot import client from globals import app, discord from statics import config if not os.path.exists("...
22.6
75
0.745723
15d6ad9b877813331159dd90a9662c53ad413125
987
py
Python
python/fastcampus/chapter06_04_02.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/fastcampus/chapter06_04_02.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/fastcampus/chapter06_04_02.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""파이썬 심화 Asyncio 비동기 I/O Coroutine 작업 - Generator -> 반복적인 객체 Return(yield) - 즉, 실행 stop -> 다른 작업으로 위임 -> stop 지점부터 재실행 원리 - Non-Blocking 비동기 처리에 적합 """ # BlockIO -> Thread 사용 # 쓰레드 개수 및 GIL 문제 염두, 공유 메모리 문제 해결 import timeit from urllib.request import urlopen from concurrent.futures import ThreadPoolExecutor import th...
21
77
0.647416
ba68b229911309a32b966623ff183a6813a27d90
2,457
py
Python
src/keyboard_simulator.py
minhluu2000/AggiePass
a86198b26e5fbec0f2de68f88fc4fd6aac362233
[ "MIT" ]
null
null
null
src/keyboard_simulator.py
minhluu2000/AggiePass
a86198b26e5fbec0f2de68f88fc4fd6aac362233
[ "MIT" ]
null
null
null
src/keyboard_simulator.py
minhluu2000/AggiePass
a86198b26e5fbec0f2de68f88fc4fd6aac362233
[ "MIT" ]
null
null
null
NULL_CHAR = chr(0) KEY_CODES = { 0x04:['a', 'A'], 0x05:['b', 'B'], 0x06:['c', 'C'], 0x07:['d', 'D'], 0x08:['e', 'E'], 0x09:['f', 'F'], 0x0A:['g', 'G'], 0x0B:['h', 'H'], 0x0C:['i', 'I'], 0x0D:['j', 'J'], 0x0E:['k', 'K'], 0x0F:['l', 'L'], 0x10:['m', 'M'], 0x11:['n'...
23.625
94
0.444444
bab7dd50b346050ad2a124737006d382bbb602e7
152
py
Python
4_loop/1_Zweierreihe.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
4_loop/1_Zweierreihe.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
4_loop/1_Zweierreihe.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Zweierreihe Wie kannst du die Zweierreihe bis 10 auf der Konsole ausgeben? """ for i in range(1, 11): print(i, 'Element:') print(2*i)
13.818182
62
0.631579
3032db5d52a7edfc28855f1a463c87c5e9d8c1b9
76
py
Python
tests/__init__.py
ralfkret/hvz
842c25d58fb3c30060080efcfa8b3d183b78e2ab
[ "MIT" ]
1
2019-07-30T14:39:43.000Z
2019-07-30T14:39:43.000Z
tests/__init__.py
ralfkret/hvz
842c25d58fb3c30060080efcfa8b3d183b78e2ab
[ "MIT" ]
11
2019-07-31T13:40:30.000Z
2019-08-07T21:54:52.000Z
tests/__init__.py
ralfkret/hvz
842c25d58fb3c30060080efcfa8b3d183b78e2ab
[ "MIT" ]
null
null
null
# Without this file pytest does not discover the tests when run von vs code.
76
76
0.789474
88cbdcb1b15f4390e7297e64654d23ada15748bc
3,235
py
Python
python_experiments/data_analysis/vldbj_data_parsing/reads_indexing_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/data_analysis/vldbj_data_parsing/reads_indexing_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/data_analysis/vldbj_data_parsing/reads_indexing_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from data_analysis.vldbj_data_parsing.indexing_time_space_statistics import \ get_tag_info, data_set_lst, index_size_tag, index_time_tag, v_num_dict, \ format_str from data_analysis.vldbj_data_parsing.reads_accuracy_statistics import * import os reads_efficiency_folder = '/home/yche/mnt/wangyue-clu/csproject/b...
37.183908
118
0.717774
cca102c2c8a8c949b8be17a3d7a04a47afb10152
368
py
Python
kts/util/debug.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/util/debug.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/util/debug.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import logging from kts.settings import cfg logging.basicConfig(format='%(asctime)s,%(msecs)d %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s', datefmt='%H:%M:%S', level=logging.DEBUG) logger = logging.getLogger(__name__) if not cfg.debug: logger.level = 50 def debug(*args): logger.debug(' ...
18.4
105
0.673913
cca2e7342577534f762834bdd426346f07509616
4,524
py
Python
demo/demo.py
JACKYLUO1991/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
24
2019-09-01T09:02:59.000Z
2022-03-22T08:38:16.000Z
demo/demo.py
HeroOneHY/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
2
2019-10-25T02:39:03.000Z
2022-03-20T15:45:22.000Z
demo/demo.py
HeroOneHY/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
11
2019-10-25T01:36:18.000Z
2021-04-09T06:51:58.000Z
""" For static image landmarks detection """ import numpy as np import cv2 import time import glob # import imutils import sys import os sys.path.append("../") # from transformer import FaceAlign from detection.detector import MarkDetector import tensorflow as tf tf.logging.set_verbosity(tf.logging.ERROR) CNN_INPUT_S...
39
99
0.493811
4e28f7a77a4b2c108ff692f17c67dae3e449d1f2
20,517
py
Python
tests/addons/judgement/test_ignore.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
tests/addons/judgement/test_ignore.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
tests/addons/judgement/test_ignore.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 from owlmixin.util import load_yaml from jumeaux.addons.judgement.ignore import Executor from jumeaux.models import ( JudgementAddOnPayload, Response, CaseInsensitiveDict, JudgementAddOnReference, ) CONFIG = load_yaml( r""" ignores: - ...
33.800659
99
0.394795
d1f32786a238021915eacb24044c173c4425569f
986
py
Python
apps/ExtraSliders/app.py
critterandguitari/Organelle_Web
eb8692930127b0fa980722e3f1870893a4fbed7f
[ "BSD-3-Clause" ]
1
2017-09-22T21:16:32.000Z
2017-09-22T21:16:32.000Z
apps/ExtraSliders/app.py
critterandguitari/Organelle_Web
eb8692930127b0fa980722e3f1870893a4fbed7f
[ "BSD-3-Clause" ]
null
null
null
apps/ExtraSliders/app.py
critterandguitari/Organelle_Web
eb8692930127b0fa980722e3f1870893a4fbed7f
[ "BSD-3-Clause" ]
1
2019-10-20T17:28:47.000Z
2019-10-20T17:28:47.000Z
import os.path import time import glob import json import cherrypy import urllib import time import socket from cherrypy.lib import static import imp import liblo try: osc_target = liblo.Address(4000) except liblo.AddressError as err: print(err) sys.exit() current_dir = os.path.dirname(os.path.abspath(__f...
19.72
92
0.644016
ae03e9d74c3995fa7eacd8dbc22faaffdd7cea4f
899
py
Python
exercises/fr/test_03_12.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/test_03_12.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/test_03_12.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( len(nlp.pipeline) == 1 and nlp.pipe_names[0] == "countries_component" ), "As-tu ajouté le composant correctement ?" assert Span.has_extension("capital"), "As-tu défini l'extension du span ?" ext = Span.get_extension("capital") assert ext[2] is not None, "As-tu déclaré ge...
44.95
96
0.657397