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
685699c4367e0e8825d6b6013f0ab731876a434c
24,765
py
Python
2018-02-13/functionsExam.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
2018-02-13/functionsExam.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
2018-02-13/functionsExam.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Feb 8 21:38:06 2018 @author: roman """ ################################################################################### ################################# FUNCTIONS ####################################### ##########################################################...
63.82732
1,290
0.615829
6890d5cc01f449792f721af0c56badc7f257d33c
2,738
py
Python
storage/emulated/0/qpython/scripts3/google.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/google.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/google.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- try: from storage.baidu_cloud import qpython_sync qpython_sync("/scripts3/","★test_sync.py") except: print("using,testing,2") try: import androidhelper droid = androidhelper.Android() droid.makeToast("导入androidhelper成功") except: print("不存在androidhelper库")...
32.987952
92
0.550037
0bda66eac87ec5f73cbccfda324efb30725f2557
519
py
Python
leetcode/350 Intersection of Two Arrays II/IntersectionOfTwoArraysII.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2017-05-18T06:11:02.000Z
2017-05-18T06:11:02.000Z
leetcode/350 Intersection of Two Arrays II/IntersectionOfTwoArraysII.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/350 Intersection of Two Arrays II/IntersectionOfTwoArraysII.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def intersect(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ sect = {} res = [] for num in nums1: if num in sect: sect[num][0] += 1 else: ...
24.714286
38
0.396917
50021bfd24abb2cb111073042ac681c4dfd877b0
648
py
Python
src/convert.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
10
2018-01-11T01:15:15.000Z
2020-06-22T15:03:31.000Z
src/convert.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
null
null
null
src/convert.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import argparse def main(): guetzli = pd.read_csv('csv/0.csv', header=None).get_values() seq = int(guetzli.shape[0] * (2/3)) coeff_y, coeff_cbcr = guetzli[:seq], guetzli[seq:] coeff_cb = coeff_cbcr[:int(seq/4)] coeff_cr = coeff_cbcr[int(seq/4):] y_df = pd...
30.857143
66
0.680556
50590736e774e298e77ac6a689901fc2dcdfd474
490
py
Python
python/type_checking/parse_name.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/type_checking/parse_name.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/type_checking/parse_name.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# parse_name.py import parse def parse_name(text: str) -> str: patterns = ( "my name is {name}", "i'm {name}", "i am {name}", "call me {name}", "{name}", ) for pattern in patterns: result = parse.parse(pattern, text) if result: return res...
20.416667
43
0.526531
c584350b0a5641e55660febd5d14222db6887fd4
6,202
py
Python
brick/util.py
xsank/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
9
2015-01-06T01:32:43.000Z
2017-03-01T18:34:54.000Z
brick/util.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
null
null
null
brick/util.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
4
2015-02-05T09:48:43.000Z
2016-02-22T15:04:35.000Z
''' Created on 2013-4-21 @author: Xsank ''' import os import sys import hmac import time import base64 import thread import tempfile import threading import subprocess import inspect import warnings import email.utils import cPickle as pickle from exception import HTTPError from config import DEBUG def toa(s,encod...
29.961353
79
0.596421
a8b21dd8e9eee8ed1034339e43edec95f89504a6
1,917
py
Python
Coursera/Using Databases with Python/Week-2/Assignment/CountingEmail-InADatabase.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Coursera/Using Databases with Python/Week-2/Assignment/CountingEmail-InADatabase.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Coursera/Using Databases with Python/Week-2/Assignment/CountingEmail-InADatabase.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
import sqlite3 import re class MyDB: def __init__(self): self.db_name = 'emaildb.sqlite' self.con = '' self.cur = '' self.fl = '' def db_connect(self): self.con = sqlite3.connect(self.db_name) self.cur = self.con.cursor() def create_db(self): tr...
28.61194
91
0.518519
7679cae04200de5ee869a6ccd33514f5fb0f3c50
639
py
Python
VIP-master/ALAS.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
VIP-master/ALAS.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
VIP-master/ALAS.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import random import sys import time def mengetik(s): for c in s + '\n': sys.stdout.write(c) sys.stdout.flush() time.sleep(random.random() * 0.2) mengetik('menghubungi MR.K7C8NG..............') mengetik('.') mengetik('.') mengetik('mencoba meminta akses..') mengetik('..APA NYARIIN GUE..........
26.625
50
0.589984
8b30b58c251c86fca8f665582b078dc39daa12aa
593
py
Python
day19/etch-a-sketch.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day19/etch-a-sketch.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day19/etch-a-sketch.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
from turtle import Screen, Turtle def move_forward(): tim.forward(10) def move_backward(): tim.backward(10) def turn_right(): tim.setheading(tim.heading() - 10) def turn_left(): tim.setheading(tim.heading() + 10) def clear(): tim.home() tim.clear() tim = Turtle() tim.shape("turtle")...
16.942857
45
0.6914
50dd06abd0555b28d80f338a16abd481530a95d8
83
py
Python
euler16.py
akashsharma99/2ndSemPractise
ba854e8ef5089ad627cee6f7c8828b711437affa
[ "MIT" ]
null
null
null
euler16.py
akashsharma99/2ndSemPractise
ba854e8ef5089ad627cee6f7c8828b711437affa
[ "MIT" ]
null
null
null
euler16.py
akashsharma99/2ndSemPractise
ba854e8ef5089ad627cee6f7c8828b711437affa
[ "MIT" ]
null
null
null
li=[] str=pow(2,1000) s=0 while(str!=0): s=s+(str%10) str=str//10 print(s)
10.375
16
0.542169
e865876f61596d5810c55a9d6fc43880316d5555
141
py
Python
3.Python/Upama677.py
AyushSarode/Hacktoberfest2020-Newbie
f7194dabcefb7e808eaedc852c630cbd65367517
[ "MIT" ]
11
2020-10-02T06:37:32.000Z
2020-10-28T09:09:33.000Z
3.Python/Upama677.py
AyushSarode/Hacktoberfest2020-Newbie
f7194dabcefb7e808eaedc852c630cbd65367517
[ "MIT" ]
7
2020-10-08T09:03:22.000Z
2020-11-03T23:58:13.000Z
3.Python/Upama677.py
AyushSarode/Hacktoberfest2020-Newbie
f7194dabcefb7e808eaedc852c630cbd65367517
[ "MIT" ]
58
2020-09-29T15:35:39.000Z
2021-10-05T17:35:15.000Z
name, age = "Upama Dutta", 20yrs username = "Upama677" print ('Hello!') print("Name: {}\nAge: {}\nUsername: {}".format(name, age, username))
28.2
68
0.64539
ad604217760e08537c3d54fa703b0ab406da10e2
408
py
Python
tools/pythonpkg/tests/stubs/test_stubs.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/stubs/test_stubs.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/stubs/test_stubs.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import mypy.stubtest import subprocess import sys import tempfile import contextlib import os from typing import * MYPY_INI_PATH = os.path.join(os.path.dirname(__file__), 'mypy.ini') def test_stubs(): # just run stubtest assert ( subprocess.run([ sys.executable, '-m', 'mypy.stubtest', 'duckdb', '--mypy-...
19.428571
67
0.710784
d11509140b732749a89bbf28fbce2cc3c5a955b6
1,542
py
Python
jiuzhang/Nine Chapters/4 Dynamic Programming I/py/WordBreak_003.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
jiuzhang/Nine Chapters/4 Dynamic Programming I/py/WordBreak_003.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
jiuzhang/Nine Chapters/4 Dynamic Programming I/py/WordBreak_003.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# Complicated, not clear and straightforward # Have to handle special cases # O(n^2), same speed on leetcode tests as 002 # {Leetcode: AC, Lintcode : AC} class Solution: # @param s: A string s # @param dict: A dictionary of words dict def wordBreak(self, s, dict): # write your code here if ...
30.235294
66
0.398833
7d1de471297f5c14f6e4d77c43a81983ebbc2733
3,161
py
Python
research/hpc/pfnn/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/hpc/pfnn/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/hpc/pfnn/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...
40.525641
98
0.653274
7d4d37cee040db18e59e26cde4af1bcc3b3881bf
544
py
Python
angstrom/2019/crypto/Random_ZKP/lwe.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
angstrom/2019/crypto/Random_ZKP/lwe.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
angstrom/2019/crypto/Random_ZKP/lwe.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import numpy as np import os from Crypto.Util.number import getRandomInteger n = 640 b = 15 q = 1 << b sigma = 2.75 public = lambda: np.array([[getRandomInteger(b) for _ in range(n)] for _ in range(n)]) secret = lambda: np.array([getRandomInteger(b) for _ in range(n)]) def error(): np.random.seed(getRandomInteger(3...
20.923077
86
0.665441
70b8f7625970bddb36579ce204d209c8bb79fd1e
8,236
py
Python
x2paddle/project_convertor/pytorch/torch2paddle/optimizer.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
559
2019-01-14T06:01:55.000Z
2022-03-31T02:52:43.000Z
x2paddle/project_convertor/pytorch/torch2paddle/optimizer.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
353
2019-05-07T13:20:03.000Z
2022-03-31T05:30:12.000Z
x2paddle/project_convertor/pytorch/torch2paddle/optimizer.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
241
2018-12-25T02:13:51.000Z
2022-03-27T23:21:43.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
35.196581
102
0.57965
cb3dda88f06e5a4ff6a50eec27a1c06d71493a50
894
py
Python
src/ztc/tests/test_check.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/tests/test_check.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/tests/test_check.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python #pylint: disable=R0904 """ Test for ZTCCheck class """ import unittest from ztc.check import ZTCCheck from ztc.tests import setup_no_logging ZTCCheck._setup_logging = setup_no_logging class ZTCCheckTest(unittest.TestCase): """ Test for ZTCCheck class """ class ZTCTestCheck(ZTCCheck):...
27.9375
75
0.655481
38b81a553ab3d0f09507d0d257df8ec037a8eb3d
2,499
py
Python
daemon.py
wladimir-computin/SML-Logger
8fe106907871fd535870589ea54f498affb7239f
[ "MIT" ]
null
null
null
daemon.py
wladimir-computin/SML-Logger
8fe106907871fd535870589ea54f498affb7239f
[ "MIT" ]
null
null
null
daemon.py
wladimir-computin/SML-Logger
8fe106907871fd535870589ea54f498affb7239f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from cryptoiot import * from datetime import datetime import time import signal import json from json import JSONEncoder import os import dataset def _default(self, obj): return getattr(obj.__class__, "__json__", _default.default)(obj) _default.default = JSONEncoder().default JSONEncoder.de...
22.115044
89
0.631052
2ad6ce8076f00c3dadf829c0a1b4b232854fc31f
329
py
Python
_includes/snippets/python/monkey-patching/get_class.py
MarauderXtreme/justus
229703abda2bd90d34232c97c64999c216d98239
[ "CC-BY-4.0" ]
1
2020-02-02T16:09:43.000Z
2020-02-02T16:09:43.000Z
_includes/snippets/python/monkey-patching/get_class.py
MrNick7373/justusadam.github.io
0660026a7846389647cb3ce52d9f776aab10e3cd
[ "CC-BY-4.0" ]
1
2020-02-02T13:22:42.000Z
2020-02-02T13:22:42.000Z
_includes/snippets/python/monkey-patching/get_class.py
MarauderXtreme/justus
229703abda2bd90d34232c97c64999c216d98239
[ "CC-BY-4.0" ]
null
null
null
#! /usr/bin/env python3 class TestClass: pass my_obj = TestClass() print( type(my_obj) ) # =>> <class '__main__.TestClass'> or <class 'get_class.TestClass'> print( my_obj.__class__ ) # =>> <class '__main__.TestClass'> or <class 'get_class.TestClass'> print( type(my_obj) is my_obj.__class__ ) # ...
16.45
70
0.650456
35837b11bae5e1aa09ce3e3fca908c0ba12c17eb
5,799
py
Python
zencad/geom/solid.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/geom/solid.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/geom/solid.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
from zencad.geom.shape import Shape, nocached_shape_generator, shape_generator from zencad.util import as_indexed, angle_pair import OCC.Core.BRepPrimAPI from OCC.Core.gp import gp_Ax2, gp_Pnt, gp_Vec, gp_Dir, gp_Pln from OCC.Core.BRepLib import BRepLib_MakeFace from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeHalfSpac...
29.436548
82
0.607691
a4f23d5943608b990b084a4e828007b46edc2ea9
1,610
py
Python
RDS/circle2_use_cases/exporter/tests/test_server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/exporter/tests/test_server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/exporter/tests/test_server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import unittest import sys import os from pactman import Consumer, Provider from .test_research import Test_Research from .test_service import Test_Service def create_app(): testing_address = "http://localhost:3000" from src import bootstrap # creates a test client app = bootstrap(use_default_error=...
27.758621
83
0.652174
3533f69855f007d4176273a256fea2357241ffca
3,632
py
Python
svenHistoWorker.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
1
2020-12-31T01:57:33.000Z
2020-12-31T01:57:33.000Z
svenHistoWorker.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
null
null
null
svenHistoWorker.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
null
null
null
#This part of my project evaluates the Histogramm and looks at the accuracy #https://stackoverflow.com/questions/2270874/image-color-detection-using-python import os import cv2 from PIL import Image import json import argparse parser = argparse.ArgumentParser(description='create histogramms from the cutframes') par...
33.62963
159
0.663271
10801cbfd11b3b12be6b17b5752c0c8729733859
2,672
py
Python
backend/app/core/solver/task_result_factory.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
backend/app/core/solver/task_result_factory.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/core/solver/task_result_factory.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from app.schemas.task import TaskFeedback, TaskStatus, AnnotationFeedback class TaskResultFactory: @staticmethod def correct_status(task_result: TaskFeedback) -> TaskFeedback: """ Returns TaskResult with correct status :param task_result: TaskResult object :return: T...
35.157895
139
0.654566
5e04373faadcf8303048a1ba37d9b0c29f9517de
1,436
py
Python
ProjectEuler/#8_LargestProductInASeries.py
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
1
2022-01-26T14:50:07.000Z
2022-01-26T14:50:07.000Z
ProjectEuler/#8_LargestProductInASeries.py
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
ProjectEuler/#8_LargestProductInASeries.py
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
import numpy as np s = '''73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698747158523863050715693290963295227443043557 66896648950445244523161731856403098711121722383113 ...
38.810811
61
0.783426
761deb305e690fd6f7d1dc338689d62cd0621d34
231
py
Python
find-the-difference/find-the-difference.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
find-the-difference/find-the-difference.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
find-the-difference/find-the-difference.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def findTheDifference(self, s: str, t: str) -> str: t_list=[each for each in t] for each in s: if each in t_list: t_list.remove(each) return t_list[0]
28.875
55
0.52381
762b3d973ab53130a7569361f2a025cfdfff89f8
682
py
Python
haas_lib_bundles/python/libraries/mq3/mq3.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/mq3/mq3.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/mq3/mq3.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2015-2021 Alibaba Group Holding Limited MicroPython's driver for MQ3 Author: HaaS Date: 2022/03/15 """ from driver import ADC from utime import sleep_ms from micropython import const import math class MQ3(object): """ This class implements mq3 chip's defs. """ def _...
21.3125
65
0.642229
876fb9d3073636c58ebd2016f11e4aaa5d876d5b
4,585
py
Python
test/test_npu/test_network_ops/test_hinge_embedding_loss.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_hinge_embedding_loss.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_hinge_embedding_loss.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...
42.453704
99
0.679389
5ea4f40db8c212d312dd5b7f08687f9f38d8f133
153
py
Python
spotjuk/src/app.py
EliasJuk/SpotJuk
51ff417f1509d9ace96799e7d1be02c818c0abeb
[ "MIT" ]
null
null
null
spotjuk/src/app.py
EliasJuk/SpotJuk
51ff417f1509d9ace96799e7d1be02c818c0abeb
[ "MIT" ]
null
null
null
spotjuk/src/app.py
EliasJuk/SpotJuk
51ff417f1509d9ace96799e7d1be02c818c0abeb
[ "MIT" ]
null
null
null
from flask import Flask from src.ext import database from src.blueprints import views app = Flask(__name__) database.init_app(app) views.init_app(app)
17
32
0.803922
5eac694a537cf6ebe692edc42b1aefee6982e89b
1,500
py
Python
990/Fcat_990.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
990/Fcat_990.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
990/Fcat_990.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
from typing import List from collections import defaultdict class Solution: def equationsPossible(self, equations: List[str]) -> bool: equal_mapping = {} not_equal_mapping = defaultdict(set) for equation in equations: if equation[1] == '!': left, right = equatio...
40.540541
76
0.532
804ea2897c97119ceb52bbe0e816a4e6feeda5c8
6,472
py
Python
data.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
data.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
data.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
import torch import copy import random from torch.utils.data import Dataset from transformers import PreTrainedTokenizer from automata.fa.dfa import DFA import numpy as np import string class SimpleDFATokenizer(PreTrainedTokenizer): """ Custom Tokenizer that create tokens at the nucelotide level. Nucleo...
28.13913
127
0.621292
33d3283be432270cee1cbe4153658ae2e8b297aa
2,352
py
Python
scripts/update_sentiment.py
pratikkumar-jain/Twitter-Mining
228a852f38b8ff8b8c9b86f270d4b530840696f7
[ "MIT" ]
1
2020-10-04T13:46:21.000Z
2020-10-04T13:46:21.000Z
scripts/update_sentiment.py
pratikkumar-jain/Twitter-Mining
228a852f38b8ff8b8c9b86f270d4b530840696f7
[ "MIT" ]
null
null
null
scripts/update_sentiment.py
pratikkumar-jain/Twitter-Mining
228a852f38b8ff8b8c9b86f270d4b530840696f7
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 """Script to update the sentiment values for tweets.""" """which have not been analyzed or are newly added to database.""" from cassandra.cluster import Cluster from cassandra.query import BatchStatement from textblob import TextBlob def getTweets(session): """Get IDs and text for which...
26.426966
72
0.632228
d52f7283569994b2c5f2d1ad9490cc3d0c8becb5
3,194
py
Python
simple-sklearn-demo/test14/balanceTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-sklearn-demo/test14/balanceTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-sklearn-demo/test14/balanceTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
""" 以癌症判断为例, 假设原本的样本有100个, 真实的正确标记是99个癌症, 1个正常, 将癌症视作正例的话, 假设不进行任何科学预测, 而是直接把100个都胡乱猜测为正例, 则: 精确率为 99% 召回率为 100% F1-score为 2 * 0.99 * 1 / (0.99 + 1) = 1.98 / 1.99 = 0.99497487437185929648241206030151 在这种情况下, 因为样本不够均衡, 精确率/召回率/F1-score都无法用来判断真实的模型能力, 会认为胡乱猜测的结果预测很准确. TPR True Positive Rate 真正例比率 TP / (TP + FN) 所有真实为1的样...
32.262626
105
0.662805
d59eb832984eae7ee6bf4b3a76a8a8cc3875f2dd
10,347
py
Python
bolt/discord/events.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/discord/events.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/discord/events.py
ph7vc/Philbot
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
from bolt.discord.models.user import User from bolt.discord.models.base import Snowflake, Timestamp, Model, Field, ListField from bolt.discord.models.message import Message from bolt.discord.models.guild import Guild, GuildMember, VoiceState, Role from bolt.discord.models.emoji import Emoji from bolt.discord.models.cha...
24.062791
85
0.671402
8932a7131ab2b62552adae6f821e964903a482a7
1,445
py
Python
2019/finals/crypto-vmac/collide.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/finals/crypto-vmac/collide.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/finals/crypto-vmac/collide.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#! /usr/bin/python3 # Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
29.489796
74
0.706574
98370c185eda786dfbe47a9044a55a451f6a1149
5,990
py
Python
autologin/xq_follower.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
15
2018-05-16T02:39:01.000Z
2021-05-22T13:12:55.000Z
autologin/xq_follower.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
null
null
null
autologin/xq_follower.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
9
2018-05-16T00:47:34.000Z
2021-11-26T05:39:48.000Z
# coding:utf8 from __future__ import unicode_literals, print_function, division import json import re from datetime import datetime from numbers import Number from threading import Thread from .follower import BaseFollower from .log import log from .webtrader import NotLoginError class XueQiuFollower(BaseFollower):...
38.645161
106
0.632053
7f2ba9a7db3ebc519002eecb6cb79a44679c60b4
147
py
Python
Micropython_ESP8266/main.py
arkahu/Stuff
6b5955444a4c538ce194764c28389e7043ab5cdd
[ "MIT" ]
null
null
null
Micropython_ESP8266/main.py
arkahu/Stuff
6b5955444a4c538ce194764c28389e7043ab5cdd
[ "MIT" ]
null
null
null
Micropython_ESP8266/main.py
arkahu/Stuff
6b5955444a4c538ce194764c28389e7043ab5cdd
[ "MIT" ]
null
null
null
""" Main script for starting a webserver with input form and displaying the input on a TFT display. """ import wifi_serv wifi_serv.simpleserver()
18.375
77
0.77551
63f0ec51ae9dbb360e02e689319264766b73c73c
4,314
py
Python
marsyas-vamp/marsyas/src/marsyas_python/pitch_to_sine.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/pitch_to_sine.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/pitch_to_sine.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import marsyas import sys import numpy as np def medfilt1(x=None,L=None): ''' a simple median filter for 1d numpy arrays. performs a discrete one-dimensional median filter with window length L to input vector x. produces a vector the same size as x. boundaries handled by shrin...
31.720588
111
0.612888
c3a9f4a77d295b96a29c9b2d88d53e8406abf611
725
py
Python
envs/rpg/entity.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
envs/rpg/entity.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
envs/rpg/entity.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
class Entity: REPRESENTATION = 0 ENTITY_TYPE_COUNT = 4 # Count of all entity types def __init__(self, position): """Initialize an entity with its position.""" self.position = position self.representation = self.REPRESENTATION def start(self, world): """Gets called once...
27.884615
56
0.604138
f63679770b75d1b6fd6cae2e381c7e1a347007bf
2,524
py
Python
research/cv/AVA_cifar/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AVA_cifar/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AVA_cifar/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
42.066667
101
0.687005
9ccbc7e1bc0eab0b53fa2ace1d7ea970629d3de7
2,430
py
Python
Securinets/2021/Quals/crypto/MiTM_Revenge/app.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Securinets/2021/Quals/crypto/MiTM_Revenge/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Securinets/2021/Quals/crypto/MiTM_Revenge/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from Crypto.Util.number import long_to_bytes from Crypto.Util.Padding import pad from Crypto.Cipher import AES from secret import flag import hashlib, random, os import signal class DHx(): def __init__(self): self.g = 2 self.p = 0xf18d09115c60ea0e71137b1b35810d0c774f98faae5abcfa98d2e2924715278da4f2738fc...
33.75
270
0.699588
21184a637ca108132694c91fd8e217dd1ae559f5
4,374
py
Python
frappe-bench/apps/erpnext/erpnext/education/report/assessment_plan_status/assessment_plan_status.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/education/report/assessment_plan_status/assessment_plan_status.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/education/report/assessment_plan_status/assessment_plan_status.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from itertools import groupby from frappe.utils import cint DOCSTATUS = { 0: "saved", 1: "submitted", } def execute(filte...
24.3
97
0.693187
6c99e945b5a41278d80665e0e16d65fa82c0666c
497
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_8_Classes/95. return the number of 1's, 3's and 9's in an integer.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_8_Classes/95. return the number of 1's, 3's and 9's in an integer.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_8_Classes/95. return the number of 1's, 3's and 9's in an integer.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
''' Given an integer, determine the number of 1's, 3's and 9's that fit into the number. Create a class and define three variables - ones, threes and nines to do this. Example: test1 = Ones_threes_nines(5) Expected output: test1.ones = 5 test1.threes = 1 test1.nines = 0 ''' class Ones_threes_nines(): def _...
17.137931
85
0.653924
e24d8fe4fdc4ca996b5c3a3c722d92cd6ee1ea81
408
py
Python
src/jboss.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/jboss.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/jboss.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/python """ jboss.* scripts item Copyright (c) 2011 Vladimir Rusinov <vladimir@greenmice.info> Copyright (c) 2001 Wrike, Inc. [http://www.wrike.com] License: GNU GPL3 This file is part of ZTC [http://bitbucket.org/ztc/ztc/] Example usage: ./jboss.py get_prop jboss.system:type=ServerInfo FreeMemory """ ...
21.473684
63
0.708333
646996aa777fdf51c5a294aab7f1ef0a99e4a166
2,594
py
Python
tools/pythonpkg/tests/fast/arrow/test_time.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/arrow/test_time.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/arrow/test_time.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import duckdb import os import datetime import pytest try: import pyarrow as pa import pandas as pd can_run = True except: can_run = False class TestArrowTime(object): def test_time_types(self, duckdb_cursor): if not can_run: return data = (pa.array([1], type=pa...
39.907692
167
0.574017
6499031aacea8e8dd049c1aeec64c3e7ef3b74c5
713
py
Python
tests/test_concurrency.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
tests/test_concurrency.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
tests/test_concurrency.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
from uuid import uuid4 import pytest from volley.concurrency import run_worker_function from volley.util import FuncEnvelope @pytest.mark.asyncio async def test_run_worker_function() -> None: async_msg = str(uuid4()) sync_msg = str(uuid4()) async def async_fun(msg: str) -> str: return msg ...
26.407407
95
0.729313
b60263cc741869028377477e8b5a4053d9856530
724
py
Python
Packs/CommonScripts/Scripts/OnionURLReputation/OnionURLReputation.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/OnionURLReputation/OnionURLReputation.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/OnionURLReputation/OnionURLReputation.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 * # noqa: E402 lgtm [py/polluting-import] def main(): url_list = argToList(demisto.args().get('input')) entry_list = [] for url in url_list: entry_list.append({ 'Type': entryTypes['note'], 'ContentsFormat': form...
24.965517
73
0.48895
37610ca3bbdaa006df214505d38e51d9aa488b24
112
py
Python
scripts/HelloWorldAnandinha.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/HelloWorldAnandinha.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/HelloWorldAnandinha.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
## LANGUAGE: Python ## AUTHOR: Ananda Aguiar ## GITHUB: https://github.com/Anandinha print("Hello World!!!")
14
39
0.678571
376bf81b1e59082e6d07eca11d65dc092fe281c3
1,009
py
Python
Textadventure/items/consumables/potions/endurance_potion.py
clemens2107/textadventure
870f3ff98accdadad386a2cae4bd4328341f7eb9
[ "CC0-1.0" ]
null
null
null
Textadventure/items/consumables/potions/endurance_potion.py
clemens2107/textadventure
870f3ff98accdadad386a2cae4bd4328341f7eb9
[ "CC0-1.0" ]
null
null
null
Textadventure/items/consumables/potions/endurance_potion.py
clemens2107/textadventure
870f3ff98accdadad386a2cae4bd4328341f7eb9
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- from items.items import basic_item class EndurancePotion(basic_item): def __init__(self, level, drop_chanc_category, equipment_category, number, name, weight, worth, regenerated_endurance): basic_item.__init__(self, level, drop_chanc_category, equipment_category, number, name...
42.041667
124
0.708622
03e62d83aa183dc2f364ad666ecf7a64f1141867
25,388
py
Python
etl/alerts/server.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/alerts/server.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/alerts/server.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import pandas as pd pd.set_option('display.width', 200) import asyncio, asyncpg import concurrent.futures import logging import json import etl.io_config.server_protocol as protocol from etl.io_config.database import Database from etl.alerts.predictor_manager import PredictorManager import datetime as dt from dateutil ...
43.697074
134
0.61533
ff1ab0c87f2c6db2acb8c53cb977c1e380a5953d
556
py
Python
zd2.py
MaksimSimanskiy/2.10
82ffd1677e250bb79d4c5fe0a0d357d91afd989e
[ "MIT" ]
null
null
null
zd2.py
MaksimSimanskiy/2.10
82ffd1677e250bb79d4c5fe0a0d357d91afd989e
[ "MIT" ]
null
null
null
zd2.py
MaksimSimanskiy/2.10
82ffd1677e250bb79d4c5fe0a0d357d91afd989e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Решить поставленную задачу: написать функцию, вычисляющую среднее гармоническое своих аргументов. Если функции передается пустой список аргументов, то она должна возвращать значение None. """ def garmonic(*args): if args: values = [float(arg) ...
22.24
52
0.577338
ff1ab2b71b9c4179770991c2a4a35297c33ce775
18,779
py
Python
Packs/GSuiteSecurityAlertCenter/Integrations/GSuiteSecurityAlertCenter/GSuiteSecurityAlertCenter_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GSuiteSecurityAlertCenter/Integrations/GSuiteSecurityAlertCenter/GSuiteSecurityAlertCenter_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GSuiteSecurityAlertCenter/Integrations/GSuiteSecurityAlertCenter/GSuiteSecurityAlertCenter_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import pytest from GSuiteSecurityAlertCenter import MESSAGES, GSuiteClient, DemistoException from unittest.mock import patch def get_data_from_file(filepath): """ Returns data of specified file. :param filepath: absolute or relative path of file """ with open(filepath) as f: ...
30.684641
118
0.717078
45d2a4bab387f99f1c354f89948ed33fcde3c3b0
552
py
Python
Pythonjunior2020/Woche3/Aufgabe_3_1_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche3/Aufgabe_3_1_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche3/Aufgabe_3_1_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 3.1.2, Woche 3, Block 1, Aufgabe 2 # 3.1.2, Woche 3, Block 1, Aufgabe 2 # Imports from turtle import * import time # Dekleration durchlaeufe = 3 # Funktionen def baum(): setheading(90) forward(30) left(90) forward(30) right(120) forward(60) right(120) forward(60) right(120) ...
13.463415
36
0.576087
afda1991d6ceebb0341e4b76d1fec34e98ab7e82
1,903
py
Python
scripts/generate_statements.py
milafrerichs/koalitionstracker
6a8f1f7dbc7a90fc6dfac36a554915c73ab3e7a3
[ "CC-BY-2.0" ]
4
2021-12-19T23:36:34.000Z
2022-02-04T15:27:53.000Z
scripts/generate_statements.py
milafrerichs/koalitionstracker
6a8f1f7dbc7a90fc6dfac36a554915c73ab3e7a3
[ "CC-BY-2.0" ]
1
2021-12-11T23:36:32.000Z
2021-12-11T23:36:32.000Z
scripts/generate_statements.py
milafrerichs/koalitionstracker
6a8f1f7dbc7a90fc6dfac36a554915c73ab3e7a3
[ "CC-BY-2.0" ]
null
null
null
from datetime import date import re import os import sys import yaml def str_presenter(dumper, data): if len(data.splitlines()) > 1: # check for multiline string return dumper.represent_scalar('tag:yaml.org,2002:str', data, style='|') return dumper.represent_scalar('tag:yaml.org,2002:str', data) yam...
29.276923
80
0.656858
ff72ead26abeb580a750000d1d20c4f8087ed6f7
1,947
py
Python
Algorithms/5_Searching/9.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/5_Searching/9.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/5_Searching/9.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/knightl-on-chessboard/problem #!/bin/python3 import math import os import random import re import sys from collections import deque # # Complete the 'knightlOnAChessboard' function below. # # The function is expected to return a 2D_INTEGER_ARRAY. # The function accepts INTEGER...
31.403226
70
0.471495
445f3836985fbb28bab911677ed3da8768004841
731
py
Python
product/models.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
product/models.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
product/models.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from order.models import Order from user.models import User class Product(models.Model): # 外键关联订单 order = models.ForeignKey(Order, verbose_name='生产订单', related_name='products', on_delete=models.CASCADE) # 外键关联生产人员 user = models.Foreig...
31.782609
109
0.690834
92295ebc6faf05de5c14b2bca61883005de7dd03
254
py
Python
Pythonjunior2020/Woche2/Aufgabe_2_1_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_1_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_1_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 2.1.2, Woche 2, Block 1, Aufgabe 2 # Import from daten import name # name = ord(namen[randint(0, len(namen))][0]) # IF-Statement if ord(name[0]) < ord("M") : print(name,"kommt in die erste Etage.") else: print(name,"kommt ins Erdgeschoss.")
21.166667
46
0.641732
2bd300982e2a819e8b89bb3720fa109c6378dff1
137
py
Python
differentiable_models/__init__.py
CityU-AIM-Group/GFBS
d71361243f1bcf699e1a20b312b05fe0be4dfd6d
[ "MIT" ]
null
null
null
differentiable_models/__init__.py
CityU-AIM-Group/GFBS
d71361243f1bcf699e1a20b312b05fe0be4dfd6d
[ "MIT" ]
null
null
null
differentiable_models/__init__.py
CityU-AIM-Group/GFBS
d71361243f1bcf699e1a20b312b05fe0be4dfd6d
[ "MIT" ]
1
2021-12-19T12:31:05.000Z
2021-12-19T12:31:05.000Z
from .GateVGG import * from .GateResNet import * from .GateResNet50 import * from .GateMobileNetv2 import * from .GateDenseNet40 import *
27.4
30
0.788321
920e84187214ecd6b5437aed402c22b899edcb81
741
pyde
Python
sketches/obstacles/obstacles.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/obstacles/obstacles.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/obstacles/obstacles.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# obstacles tileSize = 32 from sprites import Orc, Wall def setup(): global bg bg = loadImage("field.png") frameRate(30) size(320, 320) global orc orc = Orc(8*tileSize, 0) orc.loadPics() orc.dx = 2 orc.dy = 2 global wall1 wall1 = Wall(5*tileSize, 3*tileSize) wall1.load...
19
40
0.541161
a6ff85b35fb669bc122fe151116d16bbcea74b2f
5,437
py
Python
EnergyCapacity/installed_energy_capacity.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
EnergyCapacity/installed_energy_capacity.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
EnergyCapacity/installed_energy_capacity.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
# %% import numpy as np import pandas as pd import os import pathlib import matplotlib.pyplot as plt plt.style.use("seaborn-whitegrid") # import hvplot.pandas import holoviews as hv hv.extension("bokeh") # %% Load data area_type = "CTY" output_path = pathlib.Path(os.getcwd()) / "data" / area_type country_names = [...
24.381166
78
0.648703
5b4b48877466a1ea5fcf4ffcf734744e249ec820
1,269
py
Python
reconnaissance/hibp.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
10
2018-03-13T13:34:36.000Z
2022-01-13T15:34:13.000Z
reconnaissance/hibp.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
2
2020-07-06T13:05:27.000Z
2020-08-13T17:48:30.000Z
reconnaissance/hibp.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
6
2019-04-10T13:35:32.000Z
2021-04-23T15:27:41.000Z
from hibpAPI import * import argparse begin = time.time() parser = argparse.ArgumentParser(description='Checks list of email addresses against haveibeenpwned.com') parser.add_argument('-e', action="store", dest="email", required=True, default="/root/emails.txt", help="Text File with one Email Addres per line") resul...
30.95122
147
0.686367
750fe2115b342d814e60c1bc8a68adbb540ba6bb
469
py
Python
Scripts/time-based_greetings.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
8
2020-10-26T06:51:06.000Z
2021-04-02T13:01:27.000Z
Scripts/time-based_greetings.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
71
2020-10-25T22:46:02.000Z
2021-10-14T06:47:39.000Z
Scripts/time-based_greetings.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
77
2020-10-24T01:53:46.000Z
2021-10-01T06:25:27.000Z
# A hello world with time-based greeting from datetime import datetime now = datetime.now() hour = int(now.strftime("%H")) greeting = "" if hour >= 5 and hour <= 11: greeting = "Good morning!" elif hour >= 12 and hour <= 17: greeting = "Good afternoon!" elif hour >= 18 and hour <= 20: greeting = "Good e...
21.318182
40
0.637527
f363533ab5559cb885b66ad6151c3a487ca858f5
106
py
Python
site/public/courses/SPD-2.31/exercises/unit-testing/tests/test_calculate_grades.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/SPD-2.31/exercises/unit-testing/tests/test_calculate_grades.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/SPD-2.31/exercises/unit-testing/tests/test_calculate_grades.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
import unittest from unittest import mock import pytest import math from ..calculate_grades import *
17.666667
33
0.792453
cab3728c6c0df192de73e810ad6bbb9fe3be55f2
566
py
Python
tests/test_utils.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
2
2021-03-18T04:34:23.000Z
2021-03-23T17:35:07.000Z
tests/test_utils.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
null
null
null
tests/test_utils.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
null
null
null
from pathlib import Path import pytest from babelbox import utils class Test_relative_path_to: @pytest.mark.parametrize( "path, src, expected", [ ("lang/abc.csv", "lang", "abc"), ("abc.csv", ".", "abc"), ("a/b/c/d/e/abc.csv", "a", "b.c.d.e.abc"), (...
26.952381
72
0.528269
94566e69c3d58a2de6f1bd005911ed7289ef1aae
2,809
py
Python
Utils/update_contribution_pack_in_base_branch.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Utils/update_contribution_pack_in_base_branch.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Utils/update_contribution_pack_in_base_branch.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
#!/usr/bin/env python3 import argparse import os from typing import Iterable, List from urllib.parse import urljoin import requests from demisto_sdk.commands.common.tools import print_success def main(): parser = argparse.ArgumentParser(description='Deploy a pack from a contribution PR to a branch') parser.a...
33.843373
104
0.646137
046783128f8b33bce86d0b52717faad4fa59e578
1,713
py
Python
zencad/util.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/util.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/util.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import math import os import numpy import sys from OCC.Core.gp import gp_Pnt, gp_Vec, gp_Dir, gp_XYZ, gp_Quaternion from OCC.Core.TopoDS import TopoDS_Vertex from OCC.Core.BRep import BRep_Tool from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_MakeVertex from OCC.Core.Geom import Geom_CartesianPoint import zencad.ge...
20.392857
76
0.619965
8e3401bae1a45107be6d5268cc3454b8b0cc99a8
2,648
py
Python
official/cv/ctpn/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/cv/ctpn/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/ctpn/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.941176
117
0.744335
f3fd3d0a2a202914b2b09fc0357d69b483385e03
2,355
py
Python
DataProcess/experiment_plot.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/experiment_plot.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/experiment_plot.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt def condition_1_hop_freq(): x_c1 = ['not hop', 'hop when rotation', 'hop after rotation'] y_c1 = [1.0, 0.9792, 1.0] # plt.figure(figsize=(4, 4)) plt.bar(x=x_c1, height=y_c1, width=0.4) for _x, _y in zip(x_c1, y_c1): plt.text(_x, _y + 0.01...
27.068966
91
0.60552
b62ae82ea1532c0eec85407583049b73e9e4a595
6,021
py
Python
python-bildungslogin/ucs-test/97_bildungslogin_python/30_cli_license_import.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/ucs-test/97_bildungslogin_python/30_cli_license_import.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/ucs-test/97_bildungslogin_python/30_cli_license_import.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
#!/usr/share/ucs-test/runner /usr/bin/py.test -slvv --cov --cov-config=.coveragerc --cov-append --cov-report= # -*- coding: utf-8 -*- # # Copyright 2021 Univention GmbH # # https://www.univention.de/ # # All rights reserved. # # The source code of this program is made available # under the terms of the GNU Affero Gener...
40.682432
109
0.676134
b65d6d5ddae5584f37653bf92a311ba1c17b907c
737
py
Python
CareerTinderServer/CareerTinder/migrations/0004_auto_20160918_0152.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
1
2016-09-18T16:40:27.000Z
2016-09-18T16:40:27.000Z
CareerTinderServer/CareerTinder/migrations/0004_auto_20160918_0152.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
CareerTinderServer/CareerTinder/migrations/0004_auto_20160918_0152.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-18 05:52 from __future__ import unicode_literals import CareerTinder.listfield from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('CareerTinder', '0003_auto_20160918_0128'), ] operatio...
27.296296
134
0.591588
1ecb3e780b09e87b41654a05b7f7ec286b60a7ff
2,693
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/sumolib/version.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
sumolib/version.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
sumolib/version.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2008-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.eclipse.org/legal/epl-2....
38.471429
91
0.646491
94cae3f84e6250e6cc2a1dd3a3fbe4c2450bda34
1,102
py
Python
python/oneflow/compatible/single_client/support/traceinfo.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/support/traceinfo.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/support/traceinfo.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
31.485714
72
0.749546
bf4b7d29518b262637fd2141e9df76a006266307
4,143
py
Python
scripts/calendar_view_gui/utils/pptx_utils.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
scripts/calendar_view_gui/utils/pptx_utils.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
scripts/calendar_view_gui/utils/pptx_utils.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Daniele Borio # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD # Version : Created on Mon Sep 7 10:00:19 2020 # Import python li...
34.239669
105
0.646392
1534474f1ab928cc51d390cd4b36762087f3da07
990
py
Python
tests/test_images.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
12
2021-02-26T08:19:00.000Z
2022-01-26T14:00:16.000Z
tests/test_images.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
null
null
null
tests/test_images.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
3
2021-03-19T13:51:56.000Z
2021-08-25T05:25:52.000Z
import modelindex import pytest from modelindex import Metadata from modelindex.models.Collection import Collection from modelindex.models.CollectionList import CollectionList from modelindex.models.Model import Model from modelindex.models.ModelList import ModelList from modelindex.models.Result import Result from mod...
30
64
0.746465
ecd2629dc43cf91430268513dc96c3f43b7fdc84
1,889
py
Python
mpy_code/blob_ulab2.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
1
2021-04-03T18:57:35.000Z
2021-04-03T18:57:35.000Z
mpy_code/blob_ulab2.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
null
null
null
mpy_code/blob_ulab2.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # blob.py # Function for blob detection in images # # The MIT License (MIT) # Copyright (c) 2019 Thomas Euler # 2020-08-21, v1.0 Using new functions added to ulab's user module # # ---------------------...
34.981481
78
0.527263
01ed4e0a6783b49b097fc36ee90a34c414ebaf9c
7,809
py
Python
pacman-arch/test/pacman/pmpkg.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/pmpkg.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/pmpkg.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
# Copyright (c) 2006 by Aurelien Foret <orelien@chez.com> # Copyright (c) 2006-2021 Pacman Development Team <pacman-dev@archlinux.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; eith...
33.952174
99
0.542067
e5d02aa94172d8554a883ccca1f45f3de284bf28
3,333
py
Python
tests/onegov/org/test_views_signing.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_signing.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_signing.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import re from unittest.mock import patch import transaction import vcr from webtest import Upload from yubico_client import Yubico from onegov.core.utils import module_path from onegov.file import FileCollection from onegov.user import UserCollection def test_sign_document(client): client.login_admin() pa...
34.360825
78
0.678668
006cf47165ebdb406ef0022871e55766a911a123
369
py
Python
server/act_taming.py
cutec-chris/sce
da1f906ff4a049722b8968eeab8a07b411c92a8c
[ "MIT" ]
null
null
null
server/act_taming.py
cutec-chris/sce
da1f906ff4a049722b8968eeab8a07b411c92a8c
[ "MIT" ]
null
null
null
server/act_taming.py
cutec-chris/sce
da1f906ff4a049722b8968eeab8a07b411c92a8c
[ "MIT" ]
null
null
null
import goap #violent Tame #original: Torpur tame and force feed #new Idea: throw Food in non-Attack Range until it follows you #at 20% taming its nonViolent and you can feed it same way as nonViolent Tame #maybe you have to add an save area with an Taming trap to feed it #alternative: Torpur and ad...
41
81
0.742547
97ae257d07753790c081720466b1480a5ef8f87d
941
py
Python
project/services/place.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
project/services/place.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
project/services/place.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
from sqlalchemy import func from project import db from project.models import Place, RecyclingStreet def get_place_query(keyword=None): query = Place.query if keyword: like_keyword = "%" + keyword + "%" keyword_filter = Place.name.ilike(like_keyword) query = query.filter(keyword_filt...
28.515152
78
0.68119
99cc2e09fde552ece3fbc40b1a4ab270fbc8d6a8
927
py
Python
Hackerrank_problems/Migratory Birds/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Migratory Birds/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Migratory Birds/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#!/bin/python3 #First we count the number of birds of types 1-5 by using the count function in python #Then we form a list of the counts we got #Then we find the index of the list with maximum count(the required as per the problem) then we add 1 to the index beacause when we are indexing in the list it starts from 0 ...
25.75
174
0.677454
99df4ef5e893c3df3d8a724f50cbb805a2fbde03
1,917
py
Python
test/test_npu/test_miopen_convolution_transpose.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_miopen_convolution_transpose.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_miopen_convolution_transpose.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
33.631579
90
0.720918
4136df9b2b9a38197831492ef4a406cfb35f35ab
2,268
py
Python
meerkat_consul/test/test_decorators.py
meerkat-code/meerkat_consul
983851b360f330ad258e15d45d98251e0fe21100
[ "MIT" ]
null
null
null
meerkat_consul/test/test_decorators.py
meerkat-code/meerkat_consul
983851b360f330ad258e15d45d98251e0fe21100
[ "MIT" ]
1
2018-07-18T16:36:12.000Z
2018-07-18T16:36:12.000Z
meerkat_consul/test/test_decorators.py
fjelltopp/meerkat_consul
983851b360f330ad258e15d45d98251e0fe21100
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch, MagicMock import meerkat_consul.decorators as decorators class RequestsTestCase(TestCase): """ Unit tests for the requests wrapper """ def setUp(self): self.kwargs = {"they": "shall", "pass": "ok"} self.fake_url = "http:/...
39.789474
105
0.693563
4174607b636c2d509fa3cf060877b7c2e805830f
890
py
Python
get-df.py
JD46/data-frame
1f9a73abb3dccc939583739c293274f1bc4f54d1
[ "CC0-1.0" ]
null
null
null
get-df.py
JD46/data-frame
1f9a73abb3dccc939583739c293274f1bc4f54d1
[ "CC0-1.0" ]
null
null
null
get-df.py
JD46/data-frame
1f9a73abb3dccc939583739c293274f1bc4f54d1
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 #demobrunch import pandas as pd import matplotlib.pyplot as plt url="https://github.com/EnergizedTechLabsDo/data-frame/raw/master/Datensammlung.xlsx" df = pd.read_excel(url) print(df.shape) print(df.info()) print(df.head()) print(df.describe()) df = df[['Entity','Year', 'Pop...
27.8125
169
0.698876
6bb91b82a34ce5019c399418264685f7b28a18c6
10,712
py
Python
src/pfun/operator.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/operator.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/operator.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
import operator from typing import Container, Optional, TypeVar, overload from . import protocols from .functions import Unary, curry A = TypeVar('A') B = TypeVar('B') @curry def lt(a: protocols.SupportsLt[A, B], b: A) -> B: """ Return `a < b`, for _a_ and _b_. Example: >>> lt(1)(2) Tru...
17.446254
75
0.520631
d481dad36ad6b5a6542c307dadb817cc6e5a67ed
704
py
Python
data/raspi/src/praxis/TestRPiGPIO.py
softwareengel/softwareengel-blog
e24192c096be4361c7f7bbe00d2c3e8263c9fd0b
[ "MIT" ]
null
null
null
data/raspi/src/praxis/TestRPiGPIO.py
softwareengel/softwareengel-blog
e24192c096be4361c7f7bbe00d2c3e8263c9fd0b
[ "MIT" ]
null
null
null
data/raspi/src/praxis/TestRPiGPIO.py
softwareengel/softwareengel-blog
e24192c096be4361c7f7bbe00d2c3e8263c9fd0b
[ "MIT" ]
null
null
null
""" An dieser Datei sollte nichts veraendert werden! """ BOARD = "board" BCM = "bcm" OUT = "out" IN = "in" LOW = 0 HIGH = 1 def output(pin,value): if value == 1: status = "on" else: status = "off" if pin == 17: print("green", status) elif pin == 27: print("yellow", sta...
15.644444
48
0.509943
2e15a0d27a1bf96c5d52ec189487ef1eeb9b9aa8
969
py
Python
src/python/py-stuff/demo-datetime.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-stuff/demo-datetime.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-stuff/demo-datetime.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python import datetime print('Timestamp: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now())) print('Timestamp: {:%Y-%b-%d %H:%M:%S}'.format(datetime.datetime.now())) print('Date now: %s' % datetime.datetime.now()) print('Date today: %s' % datetime.date.today()) today = datetime.date.today() print("...
27.685714
72
0.620227
2e15fc334f902f4b69464914301c1b32879ff942
13,733
py
Python
src/blockchain/block.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/blockchain/block.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/blockchain/block.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
import hashlib import json import logging import os import numpy as np from ecdsa import VerifyingKey, SECP256k1 from abc import ABC, abstractmethod from datetime import datetime from sklearn.cluster import KMeans from .merkle_tree import MerkleTree from db.mapper import Mapper class Serializable(ABC): ...
38.903683
101
0.541105
2e5331453a6003dfc738ab9c34f968be75cba081
9,614
py
Python
src/visuanalytics/analytics/sequence/sequence.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
null
null
null
src/visuanalytics/analytics/sequence/sequence.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
null
null
null
src/visuanalytics/analytics/sequence/sequence.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
null
null
null
""" Modul, welches Bilder und Audios zu einem Video kombiniert. """ import numbers import os import subprocess import uuid from mutagen.mp3 import MP3 from visuanalytics.analytics.control.procedures.step_data import StepData from visuanalytics.analytics.sequence.util.attach_utils import init_pipeline, extend_out_conf...
42.539823
171
0.627938
998e77a755e457cc316898a5acc8c1698b8faa96
517
py
Python
leetcode/238-Product-of-Array-Except-Self/ProdArrExcSelf_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/238-Product-of-Array-Except-Self/ProdArrExcSelf_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/238-Product-of-Array-Except-Self/ProdArrExcSelf_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# @author: cchen class Solution: # @param {integer[]} nums # @return {integer[]} def productExceptSelf(self, nums): if len(nums) < 2: return nums res = nums[:] for i in range(1, len(res)): res[i] *= res[i - 1] for j in range(len(nums) - 1, 0, -1): ...
22.478261
45
0.441006
5a9f56585daafa785675fbe8dc2b82674d8ce652
158
py
Python
Python-App/SampleLoginApp/validlogin.py
rohitbansal087/SampleFlaskApp
509fb9406af79a9702708ad84466908f44822b54
[ "MIT" ]
1
2020-04-25T01:19:58.000Z
2020-04-25T01:19:58.000Z
SampleLoginApp/validlogin.py
anupam-sy/FlaskApp
442d632f270569356d6d0ebd6050b5a30d55fecd
[ "Apache-2.0" ]
null
null
null
SampleLoginApp/validlogin.py
anupam-sy/FlaskApp
442d632f270569356d6d0ebd6050b5a30d55fecd
[ "Apache-2.0" ]
null
null
null
def valid_login(username, password): if((username == password) and username != "" and password != ""): return True else: return False
26.333333
69
0.601266
5adfbf10641c9e777472ebee6babd6ec6e810e27
1,069
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex12_pattern_checker.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex12_pattern_checker.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex12_pattern_checker.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def matches_pattern(pattern, input): # Vorbereitung values = input.split(" ") if len(values) != len(pattern) or (len(values) == 1 and not values[0]): return False placeholder_to_value_map = {} # Durchl...
27.410256
75
0.665108
cf9f105d15dde8177e9776d1dbdaae1eda2750df
11,250
py
Python
Packs/FeedMISP/Integrations/FeedMISP/FeedMISP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedMISP/Integrations/FeedMISP/FeedMISP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedMISP/Integrations/FeedMISP/FeedMISP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import pytest import demistomock as demisto from CommonServerPython import DemistoException, ThreatIntel from FeedMISP import clean_user_query, build_indicators_iterator, \ handle_file_type_fields, get_galaxy_indicator_type, build_indicators_from_galaxies, update_indicators_iterator def test_build_in...
30.160858
120
0.587556
cfd063f02206c355ff44f247de0a9ae09b7dfe11
791
py
Python
old/Car.py
friemoeh/stau
0a624759a9c65eda2be4cf62d0ece9a5ad7366bb
[ "Apache-2.0" ]
null
null
null
old/Car.py
friemoeh/stau
0a624759a9c65eda2be4cf62d0ece9a5ad7366bb
[ "Apache-2.0" ]
null
null
null
old/Car.py
friemoeh/stau
0a624759a9c65eda2be4cf62d0ece9a5ad7366bb
[ "Apache-2.0" ]
null
null
null
class Car: def __init__(self, n, a, m): self.name = n self.age = a self.speed = 0 self.maxspeed = m self.position = 0 self.lastTime = 0 def __str__(self): return "the %s is at position %d, and drives with the speed %d" % (self.name, self.position, self.sp...
23.969697
112
0.541087
8f26b625141152afdd2005abab158e4c258a1114
1,354
py
Python
unagipy/app/unagi.py
mazarimono/presentations
b947eb5c8266032fb0ce44562fcb8c81a2780edc
[ "MIT" ]
1
2020-12-09T11:41:03.000Z
2020-12-09T11:41:03.000Z
unagipy/app/unagi.py
mazarimono/presentations
b947eb5c8266032fb0ce44562fcb8c81a2780edc
[ "MIT" ]
null
null
null
unagipy/app/unagi.py
mazarimono/presentations
b947eb5c8266032fb0ce44562fcb8c81a2780edc
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html import pandas as pd import plotly.express as px from dash.dependencies import Input, Output data = pd.read_csv('./data/covid_daily.csv', parse_dates=['dateRep']) app = dash.Dash(__name__) app.layout =html.Div([ ...
42.3125
159
0.661004
854beb916a4cc55460a1a67e257652ef955f0d64
10,061
py
Python
python/src/BaseClock.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
null
null
null
python/src/BaseClock.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
null
null
null
python/src/BaseClock.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
1
2021-08-13T20:38:50.000Z
2021-08-13T20:38:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # RollingClock by joe703 / https://www.youtube.com/channel/UChMi8gAr52_jZXIpr9WXYQQ # Inspired by luma.led_matrix/examples/silly_clock.py by ttsiodras # https://github.com/rm-hull/luma.led_matrix/blob/master/examples/silly_clock.py import Clock import threading import t...
42.451477
179
0.543882
a4683e7384240ffa7f33b458cfac2543c3612889
26,626
py
Python
encoderui.py
FinlayDaG33k/HBC
e8aa7ae6b6d8af758f15613ab2aaf6cb276e4cd9
[ "MIT" ]
1
2016-06-15T07:22:14.000Z
2016-06-15T07:22:14.000Z
encoderui.py
FinlayDaG33k/HBC
e8aa7ae6b6d8af758f15613ab2aaf6cb276e4cd9
[ "MIT" ]
null
null
null
encoderui.py
FinlayDaG33k/HBC
e8aa7ae6b6d8af758f15613ab2aaf6cb276e4cd9
[ "MIT" ]
null
null
null
#!/usr/bin/python """ HBC by FinlayDaG33k under the MIT License """ import wx import wx.grid import wx.lib.agw.aui as aui import Pyro4 import os import threading from encoder_cfg import pyro_host, pyro_port, ftp_host, ftp_port, ftp_user, ftp_pass from ftplib import FTP import textwrap statusMapping = { 'Encodi...
40.281392
208
0.613536
f18e2acbff0bde2947b580810c1ce10a7fdbdd89
1,970
py
Python
loesungen/IT-Handbuch-Prog-Loesungen/kapitel_09/linear_algebra.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
null
null
null
loesungen/IT-Handbuch-Prog-Loesungen/kapitel_09/linear_algebra.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
null
null
null
loesungen/IT-Handbuch-Prog-Loesungen/kapitel_09/linear_algebra.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
null
null
null
import math import numpy as np print("VEKTORAUFGABEN (Aufgabe 8, S. 116)") print("==================================") print() print("Gegeben sind die Vektoren") print() print(" [[2] [[3]") print(" v = [5], w = [-1]") print(" [6]] [2]]") print() v = np.array([[2], [5], [6]]) w = np.array([[3], [-1...
28.550725
115
0.57868
2d2701c81a28aaf06c5609c6b60ab32098f0072a
631
py
Python
890-find-and-replace-pattern/890-find-and-replace-pattern.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
890-find-and-replace-pattern/890-find-and-replace-pattern.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
890-find-and-replace-pattern/890-find-and-replace-pattern.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def findAndReplacePattern(self, words: List[str], pattern: str) -> List[str]: # Brute-force output = [] pattern_matching = [] for p in set(pattern): pattern_matching.append([x for x, e in enumerate(pattern) if e==p]) pattern_matching.sort() ...
39.4375
81
0.570523
bb5027c98e61c0612bb8bacef213e2582e76f98a
364
py
Python
wordtest-master/models.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
null
null
null
wordtest-master/models.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
3
2021-03-10T13:18:31.000Z
2021-05-11T09:20:11.000Z
wordtest-master/models.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
null
null
null
class Answer: def __init__(self, correct, word, meaning, answer): self.correct = correct self.word = word self.meaning = meaning self.answer = answer def __repr__(self): return "Word: {}, correct answer: {}, your answer: {}. {}".format(self.word, self.meaning, self.answer...
45.5
154
0.620879
7069c6003c3f4cdbd02ca2a3a37e3ce0e15b14d7
822
py
Python
day27/tkinter_layout.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day27/tkinter_layout.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day27/tkinter_layout.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
import tkinter as t window = t.Tk() window.title("First GUI Program") window.minsize(width=500, height=500) window.config(padx=10, pady=10) #Labels label = t.Label(text="This is old text") label.config(text="This is new text") #label.pack() #label.place(x=100, y=50) label.grid(column=0, row=0) #Buttons def action()...
20.55
54
0.712895
8ec4f0a0efe93b3e99864e7ecbc40b4ebb287530
31,037
py
Python
cgi-bin/main.py
joecrop/SDMO
c9b5a2bcdd861f87e1470e012e9e882b51587dc6
[ "MIT" ]
1
2018-12-19T18:10:11.000Z
2018-12-19T18:10:11.000Z
cgi-bin/main.py
joecrop/SDMO
c9b5a2bcdd861f87e1470e012e9e882b51587dc6
[ "MIT" ]
1
2021-09-21T05:22:24.000Z
2021-09-21T05:22:24.000Z
cgi-bin/main.py
joecrop/SDMO
c9b5a2bcdd861f87e1470e012e9e882b51587dc6
[ "MIT" ]
null
null
null
import random, sys, time, pygame, os from pygame.locals import * #import wifitools import pickle import sqlite3 import datetime import medManager import userManager ##TODO: change for PI #os.environ["SDL_FBDEV"] = "/dev/fb1" #os.environ["SDL_MOUSEDEV"] = "/dev/input/touchscreen" #os.environ["SDL_MOUSEDRV"] = "TSLIB" ...
36.131548
102
0.620711