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
753e07d8365ed29a17544654ebb9254ddee2a621
1,063
py
Python
DataStructure/U2/Lecture/StueckweiseKonstant_mit_Generator.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
DataStructure/U2/Lecture/StueckweiseKonstant_mit_Generator.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
DataStructure/U2/Lecture/StueckweiseKonstant_mit_Generator.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
""" Stückweise konstante Funktionen, dargestellt durch ein Tupel ungerader Länge F = (a0,h1,a1,h2,a2, .... ,h_n,a_n) Für a_(i-1)<=x<a_i gilt: F(x)=h_i Außerhalb des Intervalls a_0<=x<a_n ist F(x) nicht definiert. """ def berechne(F,x): if x<F[0] or x>=F[-1]: return None i=0 while x>=F[i]: i+=2 ret...
21.693878
71
0.529633
341a9bfda9475bc9c94ce7bae3299be470966cc6
920
py
Python
day37/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day37/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day37/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
import requests import datetime as dt USERNAME = "nurmatthias" TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" GRAPH_ID = "graph-coding" HEADERS = { "X-USER-TOKEN": TOKEN } PIXELA_ENDPOINT = "https://pixe.la/v1/users" GRAPH_ENDPOINT = f"{PIXELA_ENDPOINT}/{USERNAME}/graphs" create_user = { "token": TOKEN, "u...
22.439024
93
0.681522
3441023f105ce5162034623a2a49ee00aa8a272f
3,745
py
Python
haas_lib_bundles/python/docs/examples/human_detector/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/human_detector/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/human_detector/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- from aliyunIoT import Device # iot组件是连接阿里云物联网平台的组件 import network # Wi-Fi功能所在库 import ujson # json字串解析库 import utime # 延时API所在组件 from driver import GPIO # GPIO类,用于控制微处理器的输入输出功能 import ir # ir人体红外传感器类 ...
25.650685
92
0.606676
1bbf65507d50d3b0375f284564188425c6c3b574
11,385
py
Python
repo/plugin.program.newscenter/starter.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/plugin.program.newscenter/starter.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/plugin.program.newscenter/starter.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
#!/usr/bin/python ########################################################################### # # FILE: plugin.program.newscenter/starter.py # # AUTHOR: Tobias D. Oestreicher # # LICENSE: GPLv3 <http://www.gnu.org/licenses/gpl.txt> # VERSION: 0.0.6 # CREATED: 13.02.2016 # ########...
54.214286
126
0.446904
ca4091b33ceb4c60be1ce6a8daeb6f2c9173e20b
1,079
py
Python
order/urls.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
order/urls.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
order/urls.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
from django.urls import path from order import views from order.views import OrderView, OrderFinishView, OrderDeleteView, OrderAllView, OrderAllFinishView, \ OrderAllDeleteView, OrderAllBillView, OrderBillView urlpatterns = [ # 待生产的生产订单 path('', OrderView.as_view(), name='order'), # 已完成的生产订单 ...
38.535714
105
0.679333
b6727090f30b77281969963d95e1931ca6d2cffd
419
py
Python
Python/BasicDataTypes/list.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/BasicDataTypes/list.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/BasicDataTypes/list.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
L = [] for i in range(int(input())): c = input().strip().split(" ") if c[0] == "append": L.append(int(c[1])) elif c[0] == "insert": L.insert(int(c[1]), int(c[2])) elif c[0] == "remove": L.remove(int(c[1])) elif c[0] == "pop": L.pop() elif c[0] == "sort": ...
23.277778
38
0.422434
fcd1ffb7d82d76e505b90095c72462610ecffdcc
2,952
py
Python
covidash/data/processing.py
CRitter93/covidash
9daaa8e17c2487068bfd7a7b581880ee6698cedd
[ "Apache-2.0" ]
1
2020-05-11T17:54:58.000Z
2020-05-11T17:54:58.000Z
covidash/data/processing.py
CRitter93/covidash
9daaa8e17c2487068bfd7a7b581880ee6698cedd
[ "Apache-2.0" ]
null
null
null
covidash/data/processing.py
CRitter93/covidash
9daaa8e17c2487068bfd7a7b581880ee6698cedd
[ "Apache-2.0" ]
null
null
null
import pandas as pd import os.path DATA_DIR = '../../data' def process_rki_covid_19(): raw_data_df = pd.read_csv(os.path.join(DATA_DIR, 'raw', 'rki_covid_19.csv')) landkreis_df = pd.read_csv(os.path.join(DATA_DIR, 'raw', 'rki_corona_landkreise.csv')) covid_19_df = raw_data_df.merge(landkreis_df[['county'...
46.125
158
0.668699
fcd9c908da3890a36fa35654f4d8d5018e6650f5
3,765
py
Python
model/topoml_util/np_gaussian_2d_loss.py
Empythy/geometry-learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
21
2018-10-09T08:15:29.000Z
2022-03-16T08:23:08.000Z
model/topoml_util/np_gaussian_2d_loss.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
31
2017-09-20T13:30:37.000Z
2018-03-01T13:24:58.000Z
model/topoml_util/np_gaussian_2d_loss.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
7
2018-11-29T11:39:02.000Z
2022-01-12T07:10:26.000Z
import numpy as np epsilon = 1e-8 def softplus(x): return np.logaddexp(1.0, x) def softmax(x): """Compute softmax values for each sets of scores in x.""" e_x = np.exp(x - np.max(x)) return e_x / e_x.sum() # Adapted version of the probability density function of # https://en.wikipedia.org/wiki/Mult...
43.77907
108
0.627623
fcf82f28e8bc1797ab03d0479065e44effb5a395
4,001
py
Python
research/cv/RefineDet/src/multibox.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/RefineDet/src/multibox.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/RefineDet/src/multibox.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...
40.01
119
0.645839
44cdd900ba3ef70c80ebac0416bd6ecb8fa3cc43
1,486
py
Python
lambdas/sdd-lambda-request-live.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
29
2020-03-21T00:47:51.000Z
2021-07-17T15:50:33.000Z
lambdas/sdd-lambda-request-live.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
7
2020-03-21T14:04:26.000Z
2022-03-02T08:05:40.000Z
lambdas/sdd-lambda-request-live.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
13
2020-03-21T01:08:08.000Z
2020-04-08T17:21:11.000Z
import json import boto3 import datetime def lambda_handler(event, context): list_dates = [] s3_client = boto3.client('s3') min_date = 'min_date' max_date = 'max_date' min_date = event[min_date] max_date = event[max_date] try: year, month, day = min_date.split("-") min_date...
31.617021
137
0.572005
44fda3415c025c857d90abfc2ea2eda7c7c3cd09
478
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_0/default_activity_rate.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_0/default_activity_rate.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_0/default_activity_rate.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): frappe.reload_doc("projects", "doctype", "activity_cost") for cost in frappe.db.get_list("Activity Cost", filters = {"employee": ""}, fields = ("name", "activity_type", "costing_rate", "billing_rate")): activity_type = frappe.get_doc("Activity Type", cost.activity_type) activity_t...
34.142857
76
0.742678
78447b1611bd56710d78c0595c4a1a367f2a01dd
338
py
Python
solution/brute_force/4690/main.py
gkgg123/baekjoon
4ff8a1238a5809e4958258b5f2eeab7b22105ce9
[ "MIT" ]
2,236
2019-08-05T00:36:59.000Z
2022-03-31T16:03:53.000Z
solution/brute_force/4690/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
225
2020-12-17T10:20:45.000Z
2022-01-05T17:44:16.000Z
solution/brute_force/4690/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
602
2019-08-05T00:46:25.000Z
2022-03-31T13:38:23.000Z
# Authored by : chj3748 # Co-authored by : - # Link : http://boj.kr/fb355cbf95324465b430f4423567a2c4 for a in range(2, 100 + 1): for b in range(2, a): for c in range(b, a): for d in range(c, a): if a ** 3 == b ** 3 + c ** 3 + d ** 3: print(f'Cube = {a}, Triple...
37.555556
64
0.470414
1577b83c5bfe369958d43a8ad0b5cc45d4aaed9e
285
py
Python
Problems/Depth-First Search/easy/RangeSumBST/test_range_sum_of_bst.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/easy/RangeSumBST/test_range_sum_of_bst.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/easy/RangeSumBST/test_range_sum_of_bst.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from range_sum_of_bst import rangeSumBST class Test(TestCase): def test_range_sum_bst(self): self.assertEqual(rangeSumBST([10, 5, 15, 3, 7, None, 18], 7, 15)) self.assertEqual(rangeSumBST([10, 5, 15, 3, 7, 13, 18, 1, None, 6], 6, 10))
40.714286
83
0.677193
e53fc746a496d1ccb980b6f3926d0d1819454401
5,445
py
Python
python/csv_column_modification.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/csv_column_modification.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/csv_column_modification.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import argparse import codecs import csv import sys import openapc_toolkit as oat ARG_HELP_STRINGS = { "csv_file": "The csv file where columns should be modified", "encoding": "The encoding of the CSV file. Setting this argument will " + "disable...
37.294521
80
0.616896
e54c05caf4b43b7a5fa424e3aede8acfad449cae
4,695
py
Python
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__urllib2.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__urllib2.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__urllib2.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Lib_test_test__urllib2.py,v 1.3 2021/06/23 18:30:24 schmonz Exp $ bpo-39503 (CVE-2020-8492): ReDoS on AbstractBasicAuthHandler taken from: https://gitweb.gentoo.org/fork/cpython.git/commit/?h=gentoo-2.7-vanilla&id=2273e65e11dd0234f2f51ebaef61fc6e848d4059 --- Lib/test/test_urllib2.py.orig 2021-06-22 19...
44.714286
115
0.56869
c1043490356ae6ad069d98cc7e89fed8516ddb53
726
py
Python
ressources/fonts/pixie/pixie_test.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
ressources/fonts/pixie/pixie_test.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
ressources/fonts/pixie/pixie_test.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
size(600, 450) # Import the library try: # This is the statement you normally use. pixie = ximport("pixie") except: # But since this example is "inside" the library # we may need to try something different when # the library is not located in /Application Support pixie = ximport("__init__") ...
27.923077
84
0.673554
c1a801a94bdc93020a01c2f7eaaece83345e5b88
4,008
py
Python
aoc2020/day_16/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_16/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_16/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from aoc2020 import * from functools import reduce from typing import List, Tuple import re class FieldValidator: def __init__(self, name: str, ranges: List[Tuple[int, int]]): self._name = name self._ranges = ranges def is_valid(self, value: int): for low, hi in self._ranges: ...
32.852459
123
0.595808
8213f9ceb879cc047586eee4e980d15ed06fd706
1,001
py
Python
server/api/src/blueprints/data/api.py
gustavodsf/rdx_hack
3b504bf8181495fdd1c3a06f963970469f6655f1
[ "MIT" ]
null
null
null
server/api/src/blueprints/data/api.py
gustavodsf/rdx_hack
3b504bf8181495fdd1c3a06f963970469f6655f1
[ "MIT" ]
null
null
null
server/api/src/blueprints/data/api.py
gustavodsf/rdx_hack
3b504bf8181495fdd1c3a06f963970469f6655f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import os import random from os import listdir from os.path import isfile, join from flask import jsonify from flasgger.utils import swag_from from flask import (Blueprint, Flask, Response, flash, jsonify, redirect, request, send_file, url_for) from werkzeug.util...
31.28125
74
0.601399
41bb1b98e6b1ea4be67d2c337dbf18dff3c1b1e7
346
py
Python
python/encoding/number_systems.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/encoding/number_systems.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/encoding/number_systems.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
print("Integer".center(20, "=")) print(int("11")) print(int("11", base=10)) # 10 is already default print(int("11", base=2)) # Binary print(int("11", base=8)) # Ocatal print(int("11", base=16)) # Hex print("Literal".center(20, "=")) print(11) print(0b11) # Binary literal print(0o11) # Octal literal pr...
26.615385
51
0.618497
d484ed3af6cf723d306dd1b894886915dcae0d98
917
py
Python
tests.py
JarSaa/BootDemo2
3ad61e25026a26fbd5ed2f0e9cc9cdc56696e805
[ "MIT" ]
null
null
null
tests.py
JarSaa/BootDemo2
3ad61e25026a26fbd5ed2f0e9cc9cdc56696e805
[ "MIT" ]
null
null
null
tests.py
JarSaa/BootDemo2
3ad61e25026a26fbd5ed2f0e9cc9cdc56696e805
[ "MIT" ]
2
2022-03-22T12:38:59.000Z
2022-03-23T07:33:29.000Z
import pytest from app import app @pytest.fixture def client(): return app.test_client() def test_homepage(client): response = client.get('/') assert response.status_code == 200 def test_api(client): response = client.get('/api/all') assert response.status_code == 200 def test_page_not_found(cli...
26.970588
70
0.716467
2e28516e0949aca629695d233b71e3b17b1f7306
1,312
py
Python
research/cv/fairmot/src/utils/lr_schedule.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/fairmot/src/utils/lr_schedule.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/fairmot/src/utils/lr_schedule.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.444444
78
0.681402
d8f0b2891566bffab9df2583e45c4565077127df
1,867
py
Python
02_Funktionen/fraction_functions.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
02_Funktionen/fraction_functions.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
02_Funktionen/fraction_functions.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
# Funktionen fuer Brueche in Tupeln (Uebungsaufgabe) from typing import Tuple def printFract(fraction: Tuple[float, float]) -> None: """ Print a fraction out to console. :param fraction: fraction as tuple of number :type fraction: fraction as tuple of numerator and denominator :return: nothing :rt...
21.964706
66
0.647027
5124603f8db2bac619af2f3cdab096febb0d310e
4,811
py
Python
svenHistosummaryVis.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
1
2020-12-31T01:57:33.000Z
2020-12-31T01:57:33.000Z
svenHistosummaryVis.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
null
null
null
svenHistosummaryVis.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
null
null
null
#we get a hist file as a an input and try to visualize it. import os import matplotlib.pyplot as plt from matplotlib import pyplot as plt all_histos=sorted(os.listdir('./histoSummary/')) all_histos.remove('.DS_Store') path='./histoSummary/' summary_dict={} '''fill the summary dict with information. THe key is the n...
28.3
153
0.614217
5a8d52fdeb95a6343f239fa3b69f0daa3368354c
103
py
Python
config.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
config.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
config.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
import model import data from yamlargs import expose_module expose_module(model) expose_module(data)
12.875
34
0.84466
5c8bcc55a85371aa33a511469cb1ba855c38fc94
3,471
py
Python
src/inspect_kp_train.py
tuanminh3395/gr-bone-age
248c929d75e9d88dc9fa102ea11f4eae1e0f3157
[ "MIT" ]
null
null
null
src/inspect_kp_train.py
tuanminh3395/gr-bone-age
248c929d75e9d88dc9fa102ea11f4eae1e0f3157
[ "MIT" ]
null
null
null
src/inspect_kp_train.py
tuanminh3395/gr-bone-age
248c929d75e9d88dc9fa102ea11f4eae1e0f3157
[ "MIT" ]
null
null
null
import Tkinter as tk from PIL import Image, ImageTk from constants import kp_test_path, color_red, color_yellow, color_blue import os import os.path from skimage.io import imread from Tkinter import Frame, SUNKEN, Scrollbar, Canvas, HORIZONTAL, E, S, N, W, BOTH, ALL from constants import key_points_max_size, key_points...
32.745283
120
0.754826
5cb228bdf44ce6f179f3c2a2dc1b39047c0a3f8f
219
py
Python
python/python_backup/PRAC_PYTHON/ab14.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/ab14.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/ab14.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
#array input from array import* #from numeric import* a=[] for i in range(0,10,1): k=input("value:") a.insert(i,k) for i in a: print(i) a.reverse() for i in a: print(i)
11.526316
24
0.511416
8f317d7ab37d66960fb8b76343008dfece36941f
1,302
py
Python
terminal_blog/models/post.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
terminal_blog/models/post.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
terminal_blog/models/post.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
import uuid import datetime from models.database import Database now = datetime.datetime.utcnow() # print(now) class Post(object): def __init__(self, blog_id, title, content, author, date=now, id=None): self.blog_id = blog_id self.title = title self.content = content self.author ...
28.933333
90
0.575269
56bb8b60f97eb59b841c699a3d1b942f199b8532
10,587
py
Python
research/cv/RefineDet/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/RefineDet/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/RefineDet/train.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...
51.393204
120
0.673184
85610542832694394d9864d6b4527eaf7fac442e
248
py
Python
Hello coding/text.py
wooooooogi/SAlgorithm
bf76bb721785a52b6abf158077b554b0626ee1f7
[ "MIT" ]
null
null
null
Hello coding/text.py
wooooooogi/SAlgorithm
bf76bb721785a52b6abf158077b554b0626ee1f7
[ "MIT" ]
null
null
null
Hello coding/text.py
wooooooogi/SAlgorithm
bf76bb721785a52b6abf158077b554b0626ee1f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Algorithm: Problem solving strategy. Graph algorithm can make AI in game. Make recommandation system using KNN algorithm NP-problem: Decide which problem cannot solve perfectly and show how to get resonable answer. '''
27.555556
93
0.758065
8587e6209a119c605100af423a317386013b2a74
4,593
py
Python
research/cv/simple_baselines/src/utils/coco.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/simple_baselines/src/utils/coco.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/simple_baselines/src/utils/coco.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...
33.282609
108
0.60614
85bce40a8c69ef85ab0a337b8b74a2c0e818c7de
1,380
py
Python
webapp/wine_dash/tabs/sidepanel.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/wine_dash/tabs/sidepanel.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/wine_dash/tabs/sidepanel.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import dash import plotly import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc import dash_table import pandas as pd from dash.dependencies import Input, Output from database import transforms df = transforms.df min_p = df.price.min() max_p = df.price.max() ...
30
103
0.496377
74d6d26f5e138ed48c36c9c731c5516342832f4a
2,603
py
Python
eigenfaces.py
vslkashyap/eigenfaces-vs-fisherfaces
ac547e1df843601ea8d8af065281420afe27c435
[ "MIT" ]
2
2019-11-14T14:25:22.000Z
2021-05-26T03:55:18.000Z
eigenfaces.py
vslkashyap/eigenfaces-vs-fisherfaces
ac547e1df843601ea8d8af065281420afe27c435
[ "MIT" ]
null
null
null
eigenfaces.py
vslkashyap/eigenfaces-vs-fisherfaces
ac547e1df843601ea8d8af065281420afe27c435
[ "MIT" ]
4
2018-01-29T20:49:53.000Z
2021-11-10T08:23:23.000Z
import cv2, sys, os import numpy as np dataset = 'att' if len(sys.argv) > 1: dataset = str(sys.argv[1]) root = './'+ dataset + '/s' trainimgs = 7 if len(sys.argv) > 2: trainimgs = int(sys.argv[2]) if dataset == 'att': img = cv2.imread(root + '1/1' + '.pgm', 0) testimgs = 10 - trainimgs if dataset == '...
32.5375
98
0.490204
74e71e84c823f71992d079051760c5423d6a2cdb
492
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_0/update_advance_paid.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/update_advance_paid.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/update_advance_paid.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 dt in ("Sales Order", "Purchase Order"): orders_with_advance = frappe.db.sql("""select name from `tab{0}` where...
37.846154
81
0.737805
2d01a8847fe896ca7a8850d37c66e11af826bb6f
2,697
py
Python
src/model/step.py
agusalex/PacketSnifferServer
95f72dfd5e3b4e11d4b8a70390be010b9bbb267f
[ "MIT" ]
null
null
null
src/model/step.py
agusalex/PacketSnifferServer
95f72dfd5e3b4e11d4b8a70390be010b9bbb267f
[ "MIT" ]
1
2021-05-24T19:25:35.000Z
2021-05-24T19:25:35.000Z
src/model/step.py
agusalex/PacketSnifferServer
95f72dfd5e3b4e11d4b8a70390be010b9bbb267f
[ "MIT" ]
null
null
null
from src.model.serial_listener import SerialListener import csv, operator import time import keyboard class Step: def __init__(self, i, value, u_name_step, sample_size=100, csv_values=2, device_list=None): self.device_list = device_list self.sample_size = sample_size self.csv_values = csv...
33.296296
108
0.579904
748ddc2c012f5f060de7c95bf66f1ec486c1a12e
2,692
py
Python
leetcode-and-lintcode/DFS-BFS/max_aread_of_island_695_leetcode_1080_lintcode.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode-and-lintcode/DFS-BFS/max_aread_of_island_695_leetcode_1080_lintcode.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode-and-lintcode/DFS-BFS/max_aread_of_island_695_leetcode_1080_lintcode.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
''' DFS, Recursive, set grid[i][j] as 0 instead of using visited ''' class SolutionRecursive1: def maxAreaOfIsland(self, grid: List[List[int]]) -> int: if not grid: return 0 res = 0 m, n = len(grid), len(grid[0]) for i in range(m): for j in range(n): ...
24.925926
103
0.416048
24f06fe4b555d5b73cfdff84cb3ac1890354a18e
5,192
py
Python
test/test_npu/test_network_ops/test_true_divide.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_true_divide.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_true_divide.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...
39.633588
79
0.697034
70049af3b49c7725ef5b1e65d303ee3aad96a6f8
1,926
py
Python
Pimoroni/Pi_Pico_Thermometer.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-03-22T18:38:43.000Z
2021-03-22T18:38:43.000Z
Pimoroni/Pi_Pico_Thermometer.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
null
null
null
Pimoroni/Pi_Pico_Thermometer.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-02-06T10:07:36.000Z
2021-02-06T10:07:36.000Z
# Pi_Pico_Thermometer.py # Raspberry Pi Pico connected w/ Pimoroni Pico Display # Using the internal temperature sensor connected to ADC(4) for measuring # ambient temperature in a simple way. # The temperature sensor measures the Vbe voltage of a biased bipolar diode. # Typically, Vbe = 0.706V at 27 degrees C, with a...
29.630769
90
0.680685
707aeabb3bde25bcae7a95e0678cdbc512130cc1
806
py
Python
backend/app/api/api.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
backend/app/api/api.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/api/api.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from fastapi import APIRouter from app.api.endpoints import ( login, users, courses, task_groups, base_task, task, annotations, ) """ Definition of all available API-Routes """ api_router = APIRouter() api_router.include_router(login.router, tags=["login"]) api_router.in...
29.851852
89
0.7134
707f6581793cbc99ef9350fa978054a75c6f92e5
1,082
py
Python
api/clean/sequence_region.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/sequence_region.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/sequence_region.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/7/19 下午7:43 # @Author : Latent # @Email : latentsky@gmail.com # @File : sequence_region.py # @Software: PyCharm # @class : 发货地址 """ 1. region_id 2.delivery_provins -----> 发货份 3.delivery_city ------> 发货城市 4.production_city -----> 生产城市 5.city_level -------> ...
26.390244
65
0.565619
d943d0fd688bd3a12a06baeba92f4d4e45ccae0e
39,920
py
Python
Packs/GoogleKubernetesEngine/Integrations/GoogleKubernetesEngine/GoogleKubernetesEngine.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleKubernetesEngine/Integrations/GoogleKubernetesEngine/GoogleKubernetesEngine.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleKubernetesEngine/Integrations/GoogleKubernetesEngine/GoogleKubernetesEngine.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
########### # IMPORTS # ########### # STD packages from typing import Dict, Callable, Tuple, Any, Optional, List # 3-rd party packages from google.cloud.container_v1 import ClusterManagerClient from google.protobuf.json_format import MessageToDict from google.protobuf.message import Message from google.cloud.container_...
43.628415
128
0.598171
30cd8d92ad0c62ec60a96b2b8a3220cd1bb2b532
3,769
py
Python
packages/watchmen-dqc/src/watchmen_dqc/topic_profile/topic_profile_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/topic_profile/topic_profile_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/topic_profile/topic_profile_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime from json import loads from logging import getLogger from typing import Any, Dict, List, Optional from pandas_profiling import ProfileReport from watchmen_auth import PrincipalService from watchmen_data_kernel.common import DataKernelException from watchmen_data_kernel.meta import TopicS...
40.967391
108
0.805253
ebcc93da8db7cb5ec113fe5625e0573f3ebd4434
1,550
py
Python
DarkCTF/2020/pynotes/share/template.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
DarkCTF/2020/pynotes/share/template.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
DarkCTF/2020/pynotes/share/template.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/python3 import sys import os import binascii import re import subprocess import signal def handler(x, y): sys.exit(-1) signal.signal(signal.SIGALRM, handler) signal.alarm(30) def gen_filename(): return '/tmp/' + binascii.hexlify(os.urandom(16)).decode('utf-8') def is_bad_str(code): code =...
21.232877
120
0.565161
c63d717af83e3b4b4927748462646de8f9706809
3,882
py
Python
py_script/result_check.py
skybluezx/GraphCompute
95dc176147a7a16eb2176fd1f384de467e3daad6
[ "MIT" ]
4
2021-07-29T11:32:34.000Z
2021-08-12T07:13:25.000Z
py_script/result_check.py
skybluezx/GraphCompute
95dc176147a7a16eb2176fd1f384de467e3daad6
[ "MIT" ]
null
null
null
py_script/result_check.py
skybluezx/GraphCompute
95dc176147a7a16eb2176fd1f384de467e3daad6
[ "MIT" ]
1
2021-11-29T03:47:35.000Z
2021-11-29T03:47:35.000Z
# *-* coding:utf8 *-* import os import json def kp_recall(kp_question_recall_result_directory, test_kp_courseware_question_file_path, recall_top_n): # 读取全部知识点召回 kp_question_recall_result_list = dict() # 遍历全部知识点的题目召回结果 for file in os.listdir(kp_question_recall_result_directory): # 检查文件正确性 ...
40.863158
132
0.655075
cee6e9cafe005019039f741cdb86e9f42bda80ec
432
py
Python
Python/diceSim/dicesim.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
null
null
null
Python/diceSim/dicesim.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
9
2020-08-19T19:31:51.000Z
2020-09-01T15:30:43.000Z
Python/diceSim/dicesim.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
2
2020-08-19T16:00:58.000Z
2020-08-21T08:16:23.000Z
import secrets import tkinter as tk # Hier die Logik dice = input("Welcher Würfel soll geworfen werden? ") num = input("Wie oft soll er geworfen werden? ") mod = input("Zusätzliche Modifikatoren? ") secretsGenerator = secrets.SystemRandom() diceVal = secretsGenerator.randint(1,int(dice[1:])) # Hier das Design windo...
22.736842
53
0.743056
aef041544e1c194f682c9e3594dd5a9dc3449848
146
py
Python
notemanager/models.py
muhammadsiraf/Maktub
eac81395a3347e567b3ba117414698230982bf0c
[ "MIT" ]
null
null
null
notemanager/models.py
muhammadsiraf/Maktub
eac81395a3347e567b3ba117414698230982bf0c
[ "MIT" ]
null
null
null
notemanager/models.py
muhammadsiraf/Maktub
eac81395a3347e567b3ba117414698230982bf0c
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractModel # Create your models here. class User(AbstractModel): pass
20.857143
52
0.794521
9dc684f1bee13ad43a97983e2e0238df22f4c93b
689
py
Python
spht/management/commands/delete_service.py
consbio/spht
96ec6a0931851b33eace08720d4d18ab34775a52
[ "BSD-2-Clause" ]
1
2019-08-04T21:13:41.000Z
2019-08-04T21:13:41.000Z
spht/management/commands/delete_service.py
consbio/spht
96ec6a0931851b33eace08720d4d18ab34775a52
[ "BSD-2-Clause" ]
23
2018-04-12T20:43:15.000Z
2022-02-10T12:10:53.000Z
spht/management/commands/delete_service.py
consbio/spht
96ec6a0931851b33eace08720d4d18ab34775a52
[ "BSD-2-Clause" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from ncdjango.models import Service, Variable, SERVICE_DATA_ROOT from django.db import transaction import os import os.path class Command(BaseCommand): help = 'Delete an ncdjango service' def add_arguments(self, parser): parser.add_arg...
31.318182
65
0.682148
888ed899aed49ff73396ec97e8f8db15ccae9aa3
620
py
Python
Tutorials/10 Days of Statistics/Day 7/spearman_rank_correlation.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Tutorials/10 Days of Statistics/Day 7/spearman_rank_correlation.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Tutorials/10 Days of Statistics/Day 7/spearman_rank_correlation.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 def get_rank(arr): n = len(arr) rank = [0 for i in range(n)] for i in range(n): rank_i = 0 for j in range(n): if arr[j] > arr[i]: rank_i += 1 rank[i] = rank_i + 1 return rank def spearman(rank1, rank2, n): total = 0 for i in ...
21.37931
61
0.522581
c9ab98086f85b3e6d44c8d241b4958650f9f2780
1,647
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex13_minesweeper.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex13_minesweeper.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex13_minesweeper.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import random from ch06_arrays.intro.intro import print_array, get_dimension from ch06_arrays.intro.intro_directions_example import Direction def place_bombs_randomly(width, height, probability): bombs = [[False for x in ran...
26.142857
74
0.571342
c9da00b5dced2e2d858bf181eb0d922c6d126dd2
369
py
Python
config_example.py
satapathyS/aws_dashboard
941d4ec10ead5eed7e1d4b1939fc4eb3ca9bdd90
[ "MIT" ]
null
null
null
config_example.py
satapathyS/aws_dashboard
941d4ec10ead5eed7e1d4b1939fc4eb3ca9bdd90
[ "MIT" ]
null
null
null
config_example.py
satapathyS/aws_dashboard
941d4ec10ead5eed7e1d4b1939fc4eb3ca9bdd90
[ "MIT" ]
null
null
null
#!/usr/bin/python # vim: set expandtab: import os def get_ec2_conf(): AWS_ACCESS_KEY_ID = 'YOUR ACCESS KEY ID' AWS_SECRET_ACCESS_KEY = 'YOUR SECRET ACCESS KEY' return {'AWS_ACCESS_KEY_ID' : AWS_ACCESS_KEY_ID, 'AWS_SECRET_ACCESS_KEY' : AWS_SECRET_ACCESS_KEY} def region_list(): region_list = ['us-east-1'...
30.75
101
0.723577
0182fa446d2ece057e691d56d6961404bc3ee7b5
375
py
Python
Python/M01_ProgrammingBasics/L04_ForLoop/Exercises/Solutions/P02_HalfSumElement.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L04_ForLoop/Exercises/Solutions/P02_HalfSumElement.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L04_ForLoop/Exercises/Solutions/P02_HalfSumElement.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
import sys max_num = -sys.maxsize total_num = 0 n = int(input()) for each in range(1, n + 1): number = int(input()) if max_num < number: max_num = number total_num += number total_num = total_num - max_num if total_num == max_num: print("Yes") print(f"Sum = {max_num}") else: print...
15.625
47
0.602667
6ded469bc9d53eaad5683d75b275d7e757dc0830
1,628
py
Python
http_server.py
BlueMesa/PiAlert
cd36ac3139ed45199e2b962b18e07edd309dc7bf
[ "BSD-2-Clause" ]
null
null
null
http_server.py
BlueMesa/PiAlert
cd36ac3139ed45199e2b962b18e07edd309dc7bf
[ "BSD-2-Clause" ]
null
null
null
http_server.py
BlueMesa/PiAlert
cd36ac3139ed45199e2b962b18e07edd309dc7bf
[ "BSD-2-Clause" ]
null
null
null
"""An example HTTP server with GET and POST endpoints.""" import socket from http.server import HTTPServer, BaseHTTPRequestHandler from http import HTTPStatus import json import re from alerts import AlertHandler from sensors import SensorReader sensors = [] alerts_handler = AlertHandler() class HTTPServer6(HTTPSer...
27.133333
75
0.666462
61d270fe1a630d504b6900531a9e5c922e1e56f3
301
py
Python
7_funktionen/1_drawBotFunktionen.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
7_funktionen/1_drawBotFunktionen.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
7_funktionen/1_drawBotFunktionen.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
""" DrawBot-Funktionen """ newPage("1000, 1000") oval(200, 200, 600, 600) saveImage("~/Desktop/myImage.pdf") """ Dies sind Beispiele für Funktionen, die nur in DrawBot existieren, aber nicht in Python. Informationen zu ihnen findest du in der DrawBot-Dokumentation. https://www.drawbot.com/ """
17.705882
64
0.724252
28ad12337081fe5210e523f61da83f53a01b95fb
2,668
py
Python
time_manager.py
zapfdk/broadcast-clock
b88d8daad784bc9fe06b00b50d3f56ceb16dfc96
[ "MIT" ]
null
null
null
time_manager.py
zapfdk/broadcast-clock
b88d8daad784bc9fe06b00b50d3f56ceb16dfc96
[ "MIT" ]
null
null
null
time_manager.py
zapfdk/broadcast-clock
b88d8daad784bc9fe06b00b50d3f56ceb16dfc96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 15 22:33:21 2016 @author: Dominik """ from datetime import datetime, timedelta import time import sys sleep_secs = 0.3 def get_time_from_txt(filename): written_yet = False while not written_yet: try: with open("end_time.txt", "r") as f: ...
32.144578
87
0.584333
28d6ee737a55190e9582fcaa25ba594225964b49
2,089
py
Python
Packs/CommonScripts/Scripts/WordTokenizeTest/WordTokenizeTest.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/WordTokenizeTest/WordTokenizeTest.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/WordTokenizeTest/WordTokenizeTest.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * import nltk import re from html.parser import HTMLParser from html import unescape html_parser = HTMLParser() CLEAN_HTML = (demisto.args().get('cleanHtml', 'yes') == 'yes') REMOVE_LINE_BREAKS = (demisto.args().get('removeLineBreaks', 'yes') == 'yes') TOKEN...
26.782051
88
0.631403
6e81203308dfbfecffe393831e7b9b3c4dd1c1b1
41
py
Python
src/autograph/services/__init__.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
src/autograph/services/__init__.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
src/autograph/services/__init__.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
from .autograph import autograph_session
20.5
40
0.878049
95768b162b83bf82c01da46dbae4229e08037daf
3,712
py
Python
deprecated/benchmark/reader/reader_libjpeg_turbo_base64.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/benchmark/reader/reader_libjpeg_turbo_base64.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/benchmark/reader/reader_libjpeg_turbo_base64.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
""" Reader using base64 with libjpeg_turbo. """ from __future__ import division from __future__ import print_function import os import pybase64 as base64 import numpy as np from turbojpeg import TurboJPEG, TJPF_RGB import cv2 from transformation import rotate_image, random_crop, distort_color from transformation import...
34.37037
112
0.618265
95b8e25e1288dbedb552a3c08f1a8d50ed1cbdcc
1,466
py
Python
sqlalchemy/sqlite3/generate.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
sqlalchemy/sqlite3/generate.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
sqlalchemy/sqlite3/generate.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import json import sqlalchemy import sqlalchemy.ext.declarative import sqlalchemy.orm import ORM def remove_non_ascii(text): return ''.join(i for i in text if ord(i) < 128) if __name__ == "__main__": json_file = open("dataMar-23-2018.json", encoding='utf-8') json_data = json.lo...
30.541667
87
0.553206
66b80bf1987fd4a042f9e529f7f12bd04f339e2f
1,174
py
Python
src/python3_learn_video/string_format.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/string_format.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/string_format.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
print('--------------------------------------------') # 位置参数 {0} {1} {2} print("{0} love {1}.{2}".format("I", "FishC", "com")) print("{} love {}.{}".format("I", "FishC", "com")) # 关键字参数 print("{a} love {b}.{c}".format(a="I", b="FishC", c="com")) print("{0} love {b}.{c}".format("I", b="FishC", c="com")) print('\ta') p...
15.447368
59
0.508518
dd9c9bf40a5959b1c1ae155d5de057c9d219b22d
223,143
py
Python
Backend/migrations/alembic/versions/91c9d723d958_add_population_survstat_agegroups.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/migrations/alembic/versions/91c9d723d958_add_population_survstat_agegroups.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/migrations/alembic/versions/91c9d723d958_add_population_survstat_agegroups.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
"""add population_survstat_agegroups Revision ID: 91c9d723d958 Revises: 296c837aaf67 Create Date: 2021-03-14 10:54:29.531033 """ from alembic import op # revision identifiers, used by Alembic. revision = '91c9d723d958' down_revision = '296c837aaf67' branch_labels = None depends_on = None def upgrade(): op.get_...
416.311567
633
0.677073
b0f947ebbeda642f9528c0c31bb01d95841e985d
1,789
py
Python
.xiaobu/custom/SpeakIP.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
1
2020-07-16T02:52:47.000Z
2020-07-16T02:52:47.000Z
.xiaobu/custom/SpeakIP.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
.xiaobu/custom/SpeakIP.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8-*- # 获取IP插件 import time import socket import subprocess from robot import logging from robot.sdk.AbstractPlugin import AbstractPlugin logger = logging.getLogger(__name__) class Plugin(AbstractPlugin): SLUG = "speak_ip" def getLocalIP(self): ip = None try: s = ...
29.816667
104
0.475126
b03fc6d807e23c926ebc7eab8d60fa353680a8a9
2,455
py
Python
backend/kerbholz_back.py
Syralist/kerbholz
93c8cacebb0dae317763ee29158848a1d5566086
[ "MIT" ]
null
null
null
backend/kerbholz_back.py
Syralist/kerbholz
93c8cacebb0dae317763ee29158848a1d5566086
[ "MIT" ]
null
null
null
backend/kerbholz_back.py
Syralist/kerbholz
93c8cacebb0dae317763ee29158848a1d5566086
[ "MIT" ]
null
null
null
from database import db_session, init_db from models import User, KerbJSONEncoder, Transaction from flask import Flask, request, jsonify, render_template, send_from_directory from flask_cors import CORS, cross_origin init_db() app = Flask(__name__) app.config['SECRET_KEY'] = 'the quick brown fox jumps over the lazy d...
26.117021
79
0.553157
c68afb391f66450fd49d57e6914fdad66c0b2270
40,165
py
Python
learning/test_ner_ml.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
learning/test_ner_ml.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
learning/test_ner_ml.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import argparse import pandas as pd import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import classification_report from sklearn.model_selection import cross_val_predict from sk...
37.052583
140
0.61708
05e3cf784e1f4b2fdb8a264e9a65e864c531e428
2,231
py
Python
setup.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
setup.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
setup.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import codecs import os import re from setuptools import setup, find_packages def read(*parts): filename = os.path.join(os.path.dirname(__file__), *parts) with codecs.open(filename, encoding='utf-8') as fp: return fp.read() def find_vers...
25.352273
68
0.570148
abc28f331c68154e12e0967d927b4800d5eba0aa
8,570
py
Python
jumeaux/models.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/models.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/models.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding: utf-8 -*- import datetime from typing import Optional, List, Any from owlmixin import OwlMixin, TOption, TList, TDict, OwlEnum from requests.structures import CaseInsensitiveDict as RequestsCaseInsensitiveDict from requests_toolbelt.utils import deprecated from jumeaux.addons.models import Addons from j...
24.485714
122
0.65846
28032c03e68ef3d6979b1346bd483328c98b7e72
895
py
Python
jumeaux/commands/viewer/main.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/commands/viewer/main.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/commands/viewer/main.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
"""Boot Jumeaux Viewer Usage: {cli} [--port <port>] [--responses-dir=<responses_dir>] {cli} (-h | --help) Options: --port <port> Running port [default: 5500] --responses-dir <responses_dir> Directory which has responses [default: responses] -h --help Show t...
22.948718
88
0.630168
05635fe2dbc008a13413d50bc95129e0e643b1dd
212
py
Python
python/pathlib/origin/globbing.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/globbing.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/globbing.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from pathlib import Path path = Path('C:/Users/imdff/Documents/Python Scripts') # .py으로 끝나는 파일 for e in path.rglob('*.py'): print(e) # .py으로 끝나는 파일 - 하위 폴더까지 조회 for e in path.rglob('**/*.py'): print(e)
19.272727
54
0.632075
e99840d23415afafa07a2016ab5de621e4a45ade
906
py
Python
generate.py
MrLys/misc
86ff874a5e427e290673d2173863253c062c2bcd
[ "MIT" ]
null
null
null
generate.py
MrLys/misc
86ff874a5e427e290673d2173863253c062c2bcd
[ "MIT" ]
null
null
null
generate.py
MrLys/misc
86ff874a5e427e290673d2173863253c062c2bcd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import secrets import string def get_words(loc): with open(loc) as f: return [word.strip() for word in f] def generate_phrase(n=0): w_loc = '/usr/share/dict/words' a_loc = 'complete_list.txt' satisfied = False words = get_words(w_loc) adjs = get_words(a_loc) ...
28.3125
75
0.551876
ddffad9b3e9f9a012f7c37ed2207b49cb9a1ace4
3,130
py
Python
setup.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
49
2018-11-07T06:43:33.000Z
2022-03-18T20:53:06.000Z
setup.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
94
2018-11-06T20:15:04.000Z
2022-01-06T09:06:15.000Z
setup.py
qucontrol/krotov
9f9a22336c433dc3a37637ce8cc8324df4290b46
[ "BSD-3-Clause" ]
20
2018-11-06T20:03:11.000Z
2022-03-12T05:29:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" import sys from setuptools import find_packages, setup def get_version(filename): """Extract the package version""" with open(filename, encoding='utf8') as in_fh: for line in in_fh: if line.startswith('__version__'): ...
26.752137
78
0.621725
fd3080509cbb856bcb14c42698ab4287204c3deb
413
py
Python
pacman-arch/test/pacman/tests/sync899.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/sync899.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/sync899.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "System upgrade - conflict/provide with an installed package" sp1 = pmpkg("pkg1", "1.0-2") sp1.conflicts = ["pkg2"] sp1.provides = ["pkg2"] self.addpkg2db("sync", sp1); lp1 = pmpkg("pkg1") self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2") self.addpkg2db("local", lp2) self.args = "-Su --ask=4" sel...
21.736842
80
0.690073
b5c488a0651d7beb716aa7c772bfeab36c4aee9c
390
py
Python
pyhton/jinja2/src/main/python/main.py
NovaOrdis/playground
6fe076b5d246ac5b492ab8d5de04eef43d797b62
[ "Apache-2.0" ]
5
2016-11-16T02:18:45.000Z
2018-03-14T19:57:11.000Z
pyhton/jinja2/src/main/python/main.py
NovaOrdis/playground
6fe076b5d246ac5b492ab8d5de04eef43d797b62
[ "Apache-2.0" ]
null
null
null
pyhton/jinja2/src/main/python/main.py
NovaOrdis/playground
6fe076b5d246ac5b492ab8d5de04eef43d797b62
[ "Apache-2.0" ]
10
2016-06-06T18:28:13.000Z
2018-07-01T18:20:06.000Z
from pathlib import Path from jinja2 import Environment, FileSystemLoader import yaml seq = ['A', 'B'] template_dir = Path(Path(__file__).parent, '../jinja2') text = Environment(loader=FileSystemLoader(template_dir))\ .get_template('my-template.yaml.j2') \ .render( variable_1='A', variable_2='B', seq...
19.5
58
0.707692
bd383adb49469aaee56e5706ce41700657b29e06
7,791
py
Python
test/test_npu/test_network_ops/test_frobenius_norm.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_frobenius_norm.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_frobenius_norm.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 la...
44.267045
119
0.635605
9524b0eddc447742352cb830f1968c16aad3ea2b
254
py
Python
exercises/ja/test_02_10_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/test_02_10_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/test_02_10_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "token1.similarity(token2)" or "token2.similarity(token1)" in __solution__ ), "2つのdocの類似度を比較しましたか?" assert 0 <= float(similarity) <= 1, "simirlarityは浮動小数点数である必要があります。きちんと計算しましたか?" __msg__.good("Nicely done!")
36.285714
83
0.685039
1f6f3ff90185c974fb1490d3853384947de1a063
1,579
py
Python
src/ztc/net/icmp/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/net/icmp/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/net/icmp/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python # pylint: disable-msg=W0232 """ ZTC net.icmp package Introduces ping check - can be used to do icmp ping from agents. Limitations: * works only on *nix systems Tested on: * GNU/Linux 2.6 This file is part of ZTC. License: GPL v3 Copyright (c) 2011 Wrike, Inc. [http://www.wrike.com]...
26.316667
74
0.576947
2f301effd50dbc7834ed4dd7c413f782a65d8b23
123
py
Python
nz_crawl_demo/day9/Agent/useragent_demo/start.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day9/Agent/useragent_demo/start.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day9/Agent/useragent_demo/start.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from scrapy import cmdline # cmdline.execute('scrapy crawl httpbin'.split()) cmdline.execute(['scrapy','crawl','ipproxy'])
30.75
49
0.747967
8d05461a9d233577eaac13a8387bd7af08bf5f88
71
py
Python
src/python/BI/SklearnModel.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
src/python/BI/SklearnModel.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
src/python/BI/SklearnModel.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
from sklearn.model_selection import train_test_split X_train, X_test,
23.666667
52
0.859155
7b4f928e6cd56598341d29c10f86f576704bafe9
756
py
Python
python/clipboard_kontoutskrift.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/clipboard_kontoutskrift.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/clipboard_kontoutskrift.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
from time import sleep import sys import os from time import strftime, strptime sys.path.append(os.path.abspath("SO_site-packages")) import pyperclip import re PATTERN = r'\t(\d{2}\.\d{2}\.\d{4})\t(KONTOUTSKRIFT)' from keyboard import * value_recent = "" selfchange = False while True: value_clp = pyperclip.past...
27
95
0.628307
a81347aca016a3b2e08e80af8146de63c5e03793
443
py
Python
0069sqrt-x.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
0069sqrt-x.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
0069sqrt-x.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- class Solution: def mySqrt(self, x: int) -> int: if x is 0: return 0 last = 0 recus = 1 while recus != last: last = recus recus = (recus + x / recus) / 2 return int(recus) if __name__ == "__...
20.136364
43
0.460497
b53457489311b63301479f71a8bc90fcbc98a413
1,931
py
Python
etl/mappings/unit_format.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/mappings/unit_format.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/mappings/unit_format.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
translation_map = [ # Time ('Seconds', ['seconds', 'sec',]), # Pressure ('mmHg', ['mmhg', 'mm[hg]']), # Temperature ('Celcius', ['celcius', 'c', '°c']), ('Fahrenheit', ['fahrenheit']), # Other ('Units/L', ['u/l', 'iu/l', 'units/l']), ('%', ['...
33.877193
94
0.386846
192a5811b3adcfb8270a0a5b59e2dc9bbd43bacf
6,518
py
Python
interface/mainwindow.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
1
2021-01-20T18:33:01.000Z
2021-01-20T18:33:01.000Z
interface/mainwindow.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
null
null
null
interface/mainwindow.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
2
2019-09-04T08:27:14.000Z
2019-09-06T20:32:30.000Z
from PyQt5.QtWidgets import QMainWindow, QPushButton, QVBoxLayout, QWidget, QHBoxLayout, QLabel, QMessageBox, QGroupBox from PyQt5.QtWidgets import QComboBox, QLineEdit, QSlider from PyQt5.QtGui import QIntValidator, QDoubleValidator from PyQt5.QtCore import Qt from bots import BaseBot, DummyBot, bot_manager from bots...
38.797619
119
0.667843
194603e7c09c1fae2e6a46df299b5a806f7598c8
1,737
py
Python
hrsweb/models.py
sirboldilox/hrsweb
7d0b9df08fde8edba9cdd4c86d9a4518aa5f9758
[ "MIT" ]
null
null
null
hrsweb/models.py
sirboldilox/hrsweb
7d0b9df08fde8edba9cdd4c86d9a4518aa5f9758
[ "MIT" ]
null
null
null
hrsweb/models.py
sirboldilox/hrsweb
7d0b9df08fde8edba9cdd4c86d9a4518aa5f9758
[ "MIT" ]
null
null
null
""" Plain models of database records """ from datetime import datetime # Dateformat used across apps DATE_FORMAT = "%Y/%m/%d %H:%M:%S" class Patient(object): """ Patitent object :param id: Uniquie identifier for the patient :param first_name: First name of the patient :param l...
26.318182
74
0.578584
8b4bd0173812384bb6d12cfd3a115751801ea1ac
2,075
py
Python
test/test_npu/test_network_ops/test_nms_v4.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_nms_v4.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_nms_v4.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...
37.727273
102
0.712771
9a3728f814a38c7756cca7d81ad588b10aae558e
3,784
py
Python
addition_module/model_convertor/convert_to_onnx/model_convert.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
addition_module/model_convertor/convert_to_onnx/model_convert.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
addition_module/model_convertor/convert_to_onnx/model_convert.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
""" @author: Jun Wang @date: 20210709 @contact: jun21wangustc@gmail.com """ import sys import cv2 import onnx import torch import argparse import onnxruntime import numpy as np sys.path.append('../../../') from backbone.MobileFaceNets import MobileFaceNet class OnnxConvertor: """Convert a pytorch model to a onnx m...
37.098039
105
0.647727
9a557cd9167eb2a019ed084b0de9bc14ff665b93
2,732
py
Python
MovingAverage.py
arii/MovingAverage
aff90d0a3188a47d067eb32788cf5f1ff4f9d4f1
[ "MIT" ]
1
2017-10-10T13:08:52.000Z
2017-10-10T13:08:52.000Z
MovingAverage.py
arii/MovingAverage
aff90d0a3188a47d067eb32788cf5f1ff4f9d4f1
[ "MIT" ]
null
null
null
MovingAverage.py
arii/MovingAverage
aff90d0a3188a47d067eb32788cf5f1ff4f9d4f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import Queue, sys """ MovingAverage.py Author: Ariel Anders Moving Average creates a queue of length num_samples (defaults to 100). A sample is assumed to be a float. self.que is initialized to 0 or values from init_vals. self.avg is actually the sum of the queue The two (usual...
29.695652
78
0.685578
9a6a1d2db71861b7e13283c5a9dc3c154580d323
244
py
Python
Project Euler/Problem_5/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Project Euler/Problem_5/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Project Euler/Problem_5/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
def gcd(a, b): if b==0: return a else: return gcd(b, a%b) def lcm(a, b): ans = a*b/gcd(a, b) return ans def main(): l = 1 for i in range(1, 21): l = lcm(l, i) print(l) if __name__ == '__main__': main()
15.25
28
0.487705
325377ca2c8609172c2fa82f9b447623d493ba22
1,330
py
Python
tests/test_lastgang.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_lastgang.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_lastgang.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import pytest # type:ignore[import] from bo4e.bo.lastgang import Lastgang, LastgangSchema from bo4e.enum.lokationstyp import Lokationstyp from bo4e.enum.mengeneinheit import Mengeneinheit from bo4e.enum.sparte import Sparte from tests.serialization_helper import assert_serialization_roundtrip # type:ignore[import] f...
34.102564
92
0.635338
328e4d16a053cdf7a963cc4117b37cfdf6a84de1
345
py
Python
python/fleetx/utils/test_barrier_client.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
python/fleetx/utils/test_barrier_client.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
python/fleetx/utils/test_barrier_client.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
import sys from barrier_client_impl import BarrierClient client = BarrierClient() server_endpoint = sys.argv[1] worker_endpoints = sys.argv[2].split("-") index = sys.argv[3] client.server_endpoint = server_endpoint client.my_endpoint = worker_endpoints[int(index)] client.connect() client.barrier() if index == "0": ...
21.5625
49
0.765217
08ec5c513c7fa9b87b5b1e297da9661e820b6260
573
py
Python
CareerTinderServer/CareerTinder/migrations/0005_auto_20160918_0221.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
1
2016-09-18T16:40:27.000Z
2016-09-18T16:40:27.000Z
CareerTinderServer/CareerTinder/migrations/0005_auto_20160918_0221.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
CareerTinderServer/CareerTinder/migrations/0005_auto_20160918_0221.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-18 06:21 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('CareerTinder', '0004_auto_20160918_0152'), ] operations = [ migrations.RenameField(...
22.038462
52
0.577661
dfaffc1e5867b3f957e55b5a9ed04fa0a628c108
220
py
Python
exercises/ja/exc_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/exc_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/exc_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("ja_core_news_sm") text = "公式発表:Appleが米国の上場企業として初めて時価評価額1兆ドルに到達しました。" # テキストを処理 doc = ____ # 予測された固有表現をイテレート for ent in ____.____: # 固有表現の文字列とラベルをプリント print(ent.____, ____.____)
15.714286
50
0.740909
cd822a8e7e9d421668fd77419093fd4050cf629d
416
py
Python
top/clearlight/base/liaoxuefeng/functional_programming/Anonymous_Function.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/functional_programming/Anonymous_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/liaoxuefeng/functional_programming/Anonymous_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
# 匿名函数 # 关键字lambda表示匿名函数, 冒号前面的x: 函数参数 print(list(map(lambda x: x * x, [1, 2, 3, 4, 5, 6, 7, 8]))) f = lambda x: x * x # 匿名函数也是一个函数对象 print(f) print(f(5)) # 匿名函数也可以作为返回值返回 def build(x, y): return lambda: x * x + y * y print(build(3, 2)()) def is_odd(n): return n % 2 == 1 L = list(filter(is_odd, range(...
13.866667
59
0.581731
e41ef764efd44eec18d8d643bc6beb35477edd67
141
py
Python
backend/fakebox/common/actions.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
backend/fakebox/common/actions.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
backend/fakebox/common/actions.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
from enum import auto, IntEnum class Actions(IntEnum): PLAYER_LOGIN = auto() PLAYER_ACCEPTED = auto() PLAYER_REJECTED = auto()
17.625
30
0.695035
e4c21be03f2d82f5bf636a3496b553757df49862
290
py
Python
django-rest-framework/tutorial_3/snippets/urls.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
django-rest-framework/tutorial_3/snippets/urls.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
django-rest-framework/tutorial_3/snippets/urls.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
from django.urls import path from snippets import views urlpatterns = [ path('snippets/', views.SnippetList.as_view()), path('snippets/<int:pk>', views.SnippetDetail.as_view()), path('users/', views.UserList.as_view()), path('users/<int:pk>', views.UserDetail.as_view()) ]
29
61
0.689655
90380ca353b4e756b1b9ed0bd5771e0826108245
3,822
py
Python
addition_module/HSST/HSST_Prototype.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
addition_module/HSST/HSST_Prototype.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
addition_module/HSST/HSST_Prototype.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
""" @author: Hang Du, Jun Wang @date: 20211020 @contact: jun21wangustc@gmail.com """ import torch from torch.nn import Module import math import random import torch.nn.functional as F class HSST_Prototype(Module): """Implementation for "Semi-Siamese Training for Shallow Face Learning". """ def __ini...
42.94382
118
0.628467
5fb25df1b1c279621c3a4e7d5b190e3bdb6b5618
517
py
Python
nffb/migrations/0002_backgroundextension_color.py
misli/nffb
63505a6c3e2b30fac2c869744e1536556c22e68b
[ "BSD-3-Clause" ]
null
null
null
nffb/migrations/0002_backgroundextension_color.py
misli/nffb
63505a6c3e2b30fac2c869744e1536556c22e68b
[ "BSD-3-Clause" ]
null
null
null
nffb/migrations/0002_backgroundextension_color.py
misli/nffb
63505a6c3e2b30fac2c869744e1536556c22e68b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-05-25 16:41 from __future__ import unicode_literals from django.db import migrations import nffb.models class Migration(migrations.Migration): dependencies = [ ('nffb', '0001_initial'), ] operations = [ migrations.AddField( ...
23.5
109
0.638298
f2a2fbeabf54ae1cfa8d7179daf828f46a777a0c
5,998
py
Python
pvtool/routes/_pv_modules.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
1
2019-10-31T13:34:12.000Z
2019-10-31T13:34:12.000Z
pvtool/routes/_pv_modules.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
1
2019-05-27T13:03:25.000Z
2019-05-27T13:03:25.000Z
pvtool/routes/_pv_modules.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
null
null
null
"""Overview of all modules and corresponding upload functions and insertion through forms""" import os from werkzeug.utils import secure_filename from flask import Blueprint, render_template, request, redirect, flash, url_for from ..db import PvModule, FlasherData, ManufacturerData, db from ..forms import PvModuleFor...
40.802721
95
0.631544
4ba2b1ab21825d6f2856da429b1fea2ccad3c895
1,502
py
Python
tests/test_regionskriterium.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_regionskriterium.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_regionskriterium.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import pytest # type:ignore[import] from bo4e.com.regionskriterium import Regionskriterium, RegionskriteriumSchema from bo4e.enum.gueltigkeitstyp import Gueltigkeitstyp from bo4e.enum.regionskriteriumtyp import Regionskriteriumtyp from tests.serialization_helper import assert_serialization_roundtrip # type:ignore[im...
36.634146
102
0.693742
8a5ea3182e7d459c332a174456131d607c1dc652
743
py
Python
testbed1/constants.py
Benny93/HMI-Protocol
5f98873129acebed1b2b3cf4376c2733907ead70
[ "MIT" ]
null
null
null
testbed1/constants.py
Benny93/HMI-Protocol
5f98873129acebed1b2b3cf4376c2733907ead70
[ "MIT" ]
null
null
null
testbed1/constants.py
Benny93/HMI-Protocol
5f98873129acebed1b2b3cf4376c2733907ead70
[ "MIT" ]
1
2019-10-20T20:35:23.000Z
2019-10-20T20:35:23.000Z
""" Protocol Constants """ """ Message Codes First Byte of Frame payload contains the messages code """ # TODO: Does not need a full byte to be transfered REQUEST = 0 REQUEST_ACK = 1 ACK = 2 RESPONSE_INFO = 3 DATA = 4 REQUEST_FIN = 5 """ IDs For a better performance: Lower IDs are better than higher IDs Identifier ...
14.568627
54
0.756393
8a860de370c28436f8ff9831f9fe4ddaa946b7aa
12,409
py
Python
scripts/migrate/migrate.py
big-tuwien/big.tuwien.ac.at
73aa8acc9e53e2354844c9bc21a950563bb6c4e7
[ "MIT" ]
null
null
null
scripts/migrate/migrate.py
big-tuwien/big.tuwien.ac.at
73aa8acc9e53e2354844c9bc21a950563bb6c4e7
[ "MIT" ]
null
null
null
scripts/migrate/migrate.py
big-tuwien/big.tuwien.ac.at
73aa8acc9e53e2354844c9bc21a950563bb6c4e7
[ "MIT" ]
1
2020-06-02T12:08:39.000Z
2020-06-02T12:08:39.000Z
import os import re import shutil import urllib.request from datetime import datetime import frontmatter import html2markdown import pytz import requests from bs4 import BeautifulSoup TEMPLATE_DIR = 'templates' CONTENT_DIR = '../../content' BIG_BASE = 'https://big.tuwien.ac.at' s = requests.Session() def _person...
35.658046
119
0.639455
e405a7e08669f174a3e153c1992667b4cf1955a4
2,704
py
Python
Python X/While+Loops+and+The+Break+Statement.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
Python X/While+Loops+and+The+Break+Statement.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
Python X/While+Loops+and+The+Break+Statement.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "10\n" ] } ], "source": [ "total = 0\n", "for i in range(1, 5):\n", " total += i\n", "print(total)" ]...
17.558442
57
0.425296
7c849128e0240e5e32785b36e2ac10bdfe38b619
3,192
py
Python
Codeforces/edu_89-2/D.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
6
2018-10-15T18:45:05.000Z
2022-03-29T04:30:10.000Z
Codeforces/edu_89-2/D.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
null
null
null
Codeforces/edu_89-2/D.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
4
2018-01-07T06:20:07.000Z
2019-08-21T15:45:59.000Z
""" Python 3 compatibility tools. """ from __future__ import division, print_function import itertools import sys import os from io import BytesIO, IOBase if sys.version_info[0] < 3: input = raw_input range = xrange filter = itertools.ifilter map = itertools.imap zip = itertools.izip def is_it_local(): ...
21.28
73
0.595551
9c27f9ed7e6ccac6b960bf9b0abb84bef9e2c153
51
py
Python
view/views.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
292
2015-05-13T07:33:24.000Z
2022-03-08T07:25:48.000Z
view/views.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
4
2015-07-27T02:56:45.000Z
2021-07-18T04:47:26.000Z
view/views.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
58
2015-05-13T08:16:35.000Z
2021-03-05T08:47:16.000Z
# coding:utf-8 import view.index import view.user
10.2
17
0.764706