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
6b8602aa64870ec151dd0c5df1d405598125c29c
3,885
py
Python
py/grid_pruner.py
atfrank/RNACavityMiner
938581781108f40c333708b4f68681cfc57bf6ee
[ "OLDAP-2.7" ]
1
2020-09-27T18:25:52.000Z
2020-09-27T18:25:52.000Z
py/grid_pruner.py
atfrank/RNACavityMiner
938581781108f40c333708b4f68681cfc57bf6ee
[ "OLDAP-2.7" ]
1
2021-06-04T15:46:45.000Z
2021-06-06T17:56:00.000Z
py/grid_pruner.py
atfrank/RNACavityMiner
938581781108f40c333708b4f68681cfc57bf6ee
[ "OLDAP-2.7" ]
1
2021-06-24T16:27:45.000Z
2021-06-24T16:27:45.000Z
import os import sys import argparse import pandas as pd import numpy as np from glob import glob from pymol import cmd, CmdException import itertools as it def logic(index, skip): """ check modulus """ if index % skip == 0: return True return False def check_file(file): "...
35.972222
158
0.612098
d4132aacb944600cab003dfb8276bec54a634d45
2,115
py
Python
research/gnn/sgcn/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/gnn/sgcn/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/gnn/sgcn/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.105263
104
0.668558
cf21932b969fa4bb2a68ac0dd1df88b4ef8c0385
1,172
py
Python
challenges/arrayReplace/python3/arrayReplace.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/arrayReplace/python3/arrayReplace.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/arrayReplace/python3/arrayReplace.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
def arrayReplace(inputArray, elemToReplace, substitutionElem): return [substitutionElem if x == elemToReplace else x for x in inputArray] if __name__ == '__main__': input0 = [[1, 2, 1], [1, 2, 3, 4, 5], [1, 1, 1], [1, 2, 1, 2, 1], [1, 2, 1, 2, 1], [3, 1], [10, 10], [2, 1]] input1 = [1, 3, 1, 2, 2, 3, 0, 3] input2 ...
78.133333
142
0.616041
d85a8f8f1935c8b8e7d18136a0824d636ec64b10
49
py
Python
geek/geek1.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
1
2021-12-18T15:29:24.000Z
2021-12-18T15:29:24.000Z
geek/geek1.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
null
null
null
geek/geek1.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
3
2021-08-23T22:45:20.000Z
2022-02-17T13:17:09.000Z
piu = 3.1456 def funcao1(a, b) : return a + b
16.333333
19
0.571429
850e7e6ebe5df5c469be65b34073d3df1c27a17c
10,632
py
Python
Packs/D2/Scripts/RegPathReputationBasicLists/RegPathReputationBasicLists.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/D2/Scripts/RegPathReputationBasicLists/RegPathReputationBasicLists.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/D2/Scripts/RegPathReputationBasicLists/RegPathReputationBasicLists.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 WHITELIST = [r'HKEY_LOCAL_MACHINE\Software\wow6432node\Microsoft\Windows\CurrentVersion\Run\vmware-tray.exe'] BLACKLIST = [r'HKEY_CURRENT_USER\Software\Locky', r'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentV...
77.605839
127
0.750658
51c5ce6424622b6b412b09d184912b0b57987f22
444
py
Python
SoSe-21/Code-Vorlesungen/VL-8/dict-list-vergleich.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/VL-8/dict-list-vergleich.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/VL-8/dict-list-vergleich.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
a = 27 b = 1.55412 c = True d = "Test" e = ["Test", 2, True, "Bla Bla", 1.84] beispiel_liste = [["Jonas", 28], ["Jasper", 24], ["Laura", 25]] beispiel_dict = {"Jonas": 28, "Jasper": 24, "Laura": 25} # Alter von Jasper mit Dict print(beispiel_dict[...
18.5
38
0.511261
a416cb8a335363734ec4069a4ea0aa48f6878306
355
py
Python
src/onegov/org/views/clipboard.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/clipboard.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/clipboard.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath from onegov.core.security import Private from onegov.org import _, OrgApp from onegov.org.models import Clipboard @OrgApp.view(model=Clipboard, permission=Private) def copy_to_clipboard(self, request): self.store_in_session() request.success(_("A link was added to the clipboard")) return ...
27.307692
59
0.785915
a4997fb11e2cfdbf1ba08ac68b1bc43cfee3097b
257
py
Python
pacman-arch/test/pacman/tests/sync100.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync100.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync100.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Sysupgrade with a newer sync package" sp = pmpkg("dummy", "1.0-2") lp = pmpkg("dummy") self.addpkg2db("sync", sp) self.addpkg2db("local", lp) self.args = "-Su" self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=dummy|1.0-2")
19.769231
57
0.692607
7497e2ab54d673e0170cce872aa54f71b235114b
2,142
py
Python
Packs/CommonScripts/Scripts/ProductJoin/ProductJoin_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/ProductJoin/ProductJoin_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/ProductJoin/ProductJoin_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from ProductJoin import product_join def test_when_list1_is_csv_and_list2_is_list(): list1 = 'a,b,c' list2 = ['1', '2'] result = product_join({'value': list1, 'list2': list2, 'join': '='}) expectedOutput = ['a=1', 'a=2', 'b=1', 'b=2', 'c=1', 'c=2'] assert expectedOutput == result def test_when_...
28.945946
72
0.587302
8e64523acc2ea93d012025d1b0d5f09145c84168
572
py
Python
SiteGadget-main/insides/Banner.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
SiteGadget-main/insides/Banner.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
SiteGadget-main/insides/Banner.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from insides.Colors import Colors def Banner(): print(f'''{Colors.BOLD} ______ _ _______ _ / _____|_) _ (_______) | | _ ( (____ _ _| |_ _____ _ ___ _____ __| | ____ _____ _| |_ \____ \| (_ _) ___ | | | (_ (____ |/ _ |/ _ ...
44
64
0.421329
30b8b4c149d0645313280150f3ae9aa304c43878
1,209
py
Python
src/showcase/showcase.py
th-koeln-intia/ip-sprachassistent-team1
69fbc06a326da91fd3d84f222eba6cd2b1a79975
[ "MIT" ]
1
2021-04-28T09:45:34.000Z
2021-04-28T09:45:34.000Z
src/showcase/showcase.py
th-koeln-intia/ip-sprachassistent-team1
69fbc06a326da91fd3d84f222eba6cd2b1a79975
[ "MIT" ]
1
2020-09-24T07:20:16.000Z
2020-09-24T07:20:16.000Z
src/showcase/showcase.py
th-koeln-intia/ip-sprachassistent-team1
69fbc06a326da91fd3d84f222eba6cd2b1a79975
[ "MIT" ]
1
2020-12-04T13:38:33.000Z
2020-12-04T13:38:33.000Z
import logging import coloredlogs def setup_logger(): logger = logging.getLogger('showcase') coloredlogs.install(level='DEBUG') def setup(): client = mqtt.connect() mqtt.subscribe_and_add_callback("hermes/hotword/toggleOn", wake_word.on_wakeword_activation) mqtt.subscribe_and_add_callback("herm...
33.583333
99
0.771712
a516dfa3f2fd570b61381f7e5f00e1a3dfc47bd5
1,280
py
Python
Packs/Ja3er/Integrations/Ja3er/Ja3er.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Ja3er/Integrations/Ja3er/Ja3er.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Ja3er/Integrations/Ja3er/Ja3er.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 # Disable insecure warnings requests.packages.urllib3.disable_warnings() class Client(BaseClient): pass def test_module(client: Client, **args) -> str: uri = '/json' client._http_request('GET', uri) return "...
21.694915
79
0.630469
eb89a34a3cc38117edd42aaa2b007dee98501980
1,061
py
Python
Utils/py/PathPlanner/naiv.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/PathPlanner/naiv.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/PathPlanner/naiv.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import numpy as np import BISEC as B from random import randint as rand def compute_gait(start, target, obstacles): hit_obstacle = None direction = np.array(target) - np.array(start) distance = np.linalg.norm(direction) gait_vec = direction / distance max_steplength = min(60, max(...
30.314286
121
0.540999
c61110a113505da8d7217c4445d57242c3a992cf
1,837
py
Python
Category/Raw/parser.py
ZexinLi0w0/LeetCode
cf3988620ccdcc3d54b9beafd04c517c96f01bb9
[ "MIT" ]
1
2020-12-03T10:10:15.000Z
2020-12-03T10:10:15.000Z
Category/Raw/parser.py
ZexinLi0w0/LeetCode
cf3988620ccdcc3d54b9beafd04c517c96f01bb9
[ "MIT" ]
null
null
null
Category/Raw/parser.py
ZexinLi0w0/LeetCode
cf3988620ccdcc3d54b9beafd04c517c96f01bb9
[ "MIT" ]
null
null
null
import re class Test(): def __init__(self): self.test = 0 def printer(self): print("test = {}".format(self.test)) def parser(self, file_path): with open(file_path) as f: content = f.readline() content = re.sub(r'<[^>]*>',' ',content) content = r...
33.4
85
0.333152
0348e722dd4a9521e1fd01f4e71bdc174f90db86
1,025
py
Python
Pokemon.py
ArielBM/Sesion9
6bf1835e6dc8187f45cd910ff4997dded180e96e
[ "Apache-2.0" ]
null
null
null
Pokemon.py
ArielBM/Sesion9
6bf1835e6dc8187f45cd910ff4997dded180e96e
[ "Apache-2.0" ]
null
null
null
Pokemon.py
ArielBM/Sesion9
6bf1835e6dc8187f45cd910ff4997dded180e96e
[ "Apache-2.0" ]
null
null
null
class Pokemon: def __init__(self, id, nombre, tipo1, tipo2, total, hp, ataque, defensa, ataqueEs, defensaEs, velocidad,generacion,legendario, foto): self.id = id self.nombre = nombre self.tipo1 = tipo1 self.tipo2 = tipo2 self.total = total self.hp = hp self.a...
26.973684
137
0.534634
067d7670d96442e181b754dba3ec7d21b326c26b
51
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/pg-6.9-not-1++.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/pg-6.9-not-1++.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/pg-6.9-not-1++.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
result = 0 for i in range(1, 20, 5): print(i)
10.2
25
0.54902
231ecb52f86dc7394db1daab36c0869b1489d420
2,829
py
Python
Prototype/printing_proto.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
4
2019-12-03T16:13:09.000Z
2019-12-11T23:22:58.000Z
Prototype/printing_proto.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
65
2019-12-08T17:43:59.000Z
2020-08-14T15:26:21.000Z
Prototype/printing_proto.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
null
null
null
from PyQt5 import QtWidgets, QtCore, QtPrintSupport, QtGui class Window(QtWidgets.QWidget): def __init__(self): QtWidgets.QWidget.__init__(self) self.setWindowTitle(self.tr('ProtoDrucken')) self.table = QtWidgets.QTableWidget(5, 10, self) for row in range(self.table.rowCount()): ...
42.863636
74
0.646518
ccc1b5c2619fe87dc12778726fedef4f8223e811
2,589
py
Python
Sahran-Qahran-master/Brute force Netflex/Sahran-Qahran.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Sahran-Qahran-master/Brute force Netflex/Sahran-Qahran.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Sahran-Qahran-master/Brute force Netflex/Sahran-Qahran.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 mechanize import sys from proxylist import ProxyList import logging import winsound print(''' ------------------------------------- Sahran Qahran Netflix ------------------------------------- * -> Development: 0xfff0800 * * -> Telegram: https...
29.420455
119
0.500193
aef43ec74d6804a4214f789f4808ccf0e61bc997
591
py
Python
tests/test_scripts.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
tests/test_scripts.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
tests/test_scripts.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from unittest.mock import Mock import pytest from pfun.effect import success from scripts.check_version import NoVersionMatchError, check_version def test_check_version_accepts_matching_versions(): mock_env = Mock() mock_env.files.read.return_value = success('version = "1.0.0"') check_version('foo.toml'...
29.55
68
0.744501
31fabef610bfe9a3859d38acdf4c122d56fd32bf
13,063
py
Python
test/test_npu/test_network_ops/test_pow.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_pow.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_pow.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...
43.983165
110
0.652224
ee830fe003c8fe103555816407870e3405459c63
2,198
py
Python
Packs/Campaign/Scripts/ShowCampaignIncidentsOwners/ShowCampaignIncidentsOwners.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Campaign/Scripts/ShowCampaignIncidentsOwners/ShowCampaignIncidentsOwners.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Campaign/Scripts/ShowCampaignIncidentsOwners/ShowCampaignIncidentsOwners.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 * from CommonServerUserPython import * def get_incident_ids() -> list: """ Gets all the campaign incident ids. Returns: List of all the ids. """ incidents = demisto.get(demisto.context(), "EmailCampaign.incidents") return [i...
31.855072
119
0.622384
c9ecd4444cfbb82e21ccf2a21d1af2abccc65091
4,700
py
Python
pyhokchew/models/yngping/YngPingTwo.py
MindongLab/PyHokchew
7d742ab5547d2da8c214bd1ebd80f9b6f963965d
[ "MIT" ]
3
2018-04-05T12:04:08.000Z
2020-04-30T14:00:58.000Z
python/pyhokchew/models/yngping/YngPingTwo.py
MindongLab/libhokchew
7e5b2e11377ec57bf9a5bb8bb66be6d99237640c
[ "MIT" ]
6
2020-04-25T05:20:04.000Z
2021-08-30T09:08:50.000Z
python/pyhokchew/models/yngping/YngPingTwo.py
MindongLab/libhokchew
7e5b2e11377ec57bf9a5bb8bb66be6d99237640c
[ "MIT" ]
1
2018-04-05T11:52:07.000Z
2018-04-05T11:52:07.000Z
from ...utils import normalise YP_CONSONANTS = ['b', 'p', 'm', 'd', 't', 'n', 'l', 'z', 'c', 's', 'g', 'k', 'ng', 'h', 'w', 'j', 'nj'] # 連讀特有聲母, 不含 r (併入 l) YP_VOWELS = ['a', 'o', 'e', 'oe', 'i', 'u', 'y'] YP_CODAS = ['ng', 'h', 'k', ''] YP_INITIALS = YP_CONSONANTS + [''] # 韻母總表 # 甲類: # 乙類: 不...
29.192547
117
0.445106
4eb23224386791239425bb2d427c5619b202483a
1,321
py
Python
python/unittest/mock/medium/02_patching_classes/test_worker.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/medium/02_patching_classes/test_worker.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/medium/02_patching_classes/test_worker.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from unittest import TestCase, mock from worker import Helper, Worker class TestWorker(TestCase): def test_patching_class(self): with mock.patch("worker.Helper") as MockHelper: MockHelper.return_value.get_path.return_value = "testing" worker = Worker() MockHe...
40.030303
76
0.638153
61d0deafeac492cbb38f8eb10fe90238d1d0524b
2,495
py
Python
ppyt/filters/financial_filters.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
4
2016-08-16T07:47:15.000Z
2017-12-11T10:08:47.000Z
ppyt/filters/financial_filters.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
null
null
null
ppyt/filters/financial_filters.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
2
2018-06-15T04:43:15.000Z
2020-05-02T07:47:15.000Z
# coding: utf-8 import logging from collections import defaultdict from ppyt.filters import FilterBase from ppyt.models.orm import start_session, FinancialData logger = logging.getLogger(__name__) class CashFlowIncreasingFilter(FilterBase): """営業キャシュフローが毎年している銘柄を絞り込みます。""" _findkey = '営業キャッシュフローフィルタ' # フィル...
28.033708
89
0.551904
fee539eb958b1f6a23a654f1c134bf0d58f980d0
1,541
py
Python
data/namedb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
data/namedb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
data/namedb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
class NameDB: def __init__(self, cache): first_names = NameDB.read_names(cache.resolve_entry("first_names.txt", NameDB.download_first_names)) second_names = NameDB.read_names(cache.resolve_entry("second_names.txt", NameDB.download_second_names)) count = min(len(first_names), len(second_name...
35.837209
111
0.595717
e94208b6a0edef7b3db463a577b58c704857f02a
463
py
Python
exercises/zh/test_01_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/zh/test_01_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/zh/test_01_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( "if next_token.like_num" in __solution__ ), "你有检查下一个词符的like_num属性了吗?" assert ( 'token.text == "¥"' in __solution__ ), "你有检查词符的文本是¥了吗?" assert ( next_token.like_num == True ), "你有检查下一个词符的like_num属性了吗?" assert ( "token.i + 1" in __solution__...
24.368421
70
0.580994
aaf18c48b893ed99d62d0827fa8ac1215ad77e65
922
py
Python
showcase3/com/aaron/connmysql.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase3/com/aaron/connmysql.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase3/com/aaron/connmysql.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# -*- codiing:utf-8 -*- """os example""" __author__="aaron.qiu" """connect mysql database test""" # 导入MySQL驱动: import mysql.connector import logging def queryDataTest(): try: conn = mysql.connector.connect(host='192.168.1.112',user='root', password='root', database='mydb') #cursor = conn.cursor()...
28.8125
106
0.598698
6e649d1370a44e4cdc3e0d9f1f918336c6a5ba15
164
py
Python
zmq_pub_sub/pub.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
zmq_pub_sub/pub.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
zmq_pub_sub/pub.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
import zmq import random context = zmq.Context() socket = context.socket(zmq.PUB) socket.bind("tcp://*:5556") while True: socket.send_string("Hello World")
13.666667
37
0.707317
6eb2de8f0dc7aaffe5b084821898c5c5a793540a
907
py
Python
Technical_Indicator_OBV.py
sonomarina/Stock-sentiment-analysis
2b3ddd88c73916ea06d39ef5d455f9220c69fdf7
[ "Unlicense" ]
null
null
null
Technical_Indicator_OBV.py
sonomarina/Stock-sentiment-analysis
2b3ddd88c73916ea06d39ef5d455f9220c69fdf7
[ "Unlicense" ]
null
null
null
Technical_Indicator_OBV.py
sonomarina/Stock-sentiment-analysis
2b3ddd88c73916ea06d39ef5d455f9220c69fdf7
[ "Unlicense" ]
null
null
null
# ============================================================================= # Import OHLCV data and calculate OBV technical indicator # Author : Mayank Rasu # Please report bug/issues in the Q&A section # ============================================================================= # Import necesary librar...
36.28
103
0.550165
95b99aa2355aa25086954cd3aa707b96b2025ef2
3,758
py
Python
source/pkgsrc/lang/python27/patches/patch-Lib_urllib2.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python27/patches/patch-Lib_urllib2.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python27/patches/patch-Lib_urllib2.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Lib_urllib2.py,v 1.2.10.1 2021/10/13 21:04:01 tm Exp $ bpo-39503 (CVE-2020-8492): ReDoS on AbstractBasicAuthHandler Taken from: https://gitweb.gentoo.org/fork/cpython.git/commit/?h=gentoo-2.7-vanilla&id=2273e65e11dd0234f2f51ebaef61fc6e848d4059 bpo-43075 (CVE-2021-3733): Fix ReDoS in request Taken fro...
38.742268
115
0.529803
2569b9084be5a92b8796341d776ab26419e2fc19
40,112
py
Python
question_generator.py
ottermegazord/nmt-graph
7e2f73cd617fe262d984eb05f2157f7aebac8982
[ "MIT" ]
null
null
null
question_generator.py
ottermegazord/nmt-graph
7e2f73cd617fe262d984eb05f2157f7aebac8982
[ "MIT" ]
null
null
null
question_generator.py
ottermegazord/nmt-graph
7e2f73cd617fe262d984eb05f2157f7aebac8982
[ "MIT" ]
null
null
null
''' Query from Python ''' from py2neo import Graph import re graph = Graph(host="localhost", password="farmers@heart") # a = graph.run("MATCH (c:crop) RETURN c.id, c.name LIMIT 4").data() # print(a) class CypherQuestion(): def __init__(self, english_question_template, cypher_question_template, cypher_answer_t...
37.699248
127
0.747831
c2dd9171f17b63481801e1647e88191a2414e12d
1,416
py
Python
WeChatTool/main.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatTool/main.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatTool/main.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
# -*-coding=utf8-*- import itchat from itchat.content import * from logger import logger def get_content(): global msgs, switch with open('AutoReplyContent.txt', 'r', encoding='utf8') as f: lines = f.readlines() msgs = [line.lstrip().rstrip() for line in lines] @itchat.msg_register([PICTURE, REC...
28.897959
110
0.614407
6613104f66a96148f044a191804aaf72e48939ba
130
py
Python
backend/fakebox/common/message_types.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
backend/fakebox/common/message_types.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
backend/fakebox/common/message_types.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
from enum import Enum class MessageTypes(Enum): SUCCESSFUL_LOGIN = 1 SUCCESSFUL_VIP_LOGIN = 2 VIP_PRESSES_START = 3
16.25
28
0.730769
b08af1524cf1a3ea069cfabd2331567ec79cc4b8
407
py
Python
docs/labs/lab9/solutions/sol_tr_te_split.py
tteenathankachan/2021-CS109A
9349749539f439deff280ceb25621fc61a337253
[ "MIT" ]
19
2021-08-29T21:23:48.000Z
2022-03-16T14:38:25.000Z
docs/labs/lab9/solutions/sol_tr_te_split.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
null
null
null
docs/labs/lab9/solutions/sol_tr_te_split.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
22
2021-09-01T13:03:05.000Z
2022-03-31T14:34:36.000Z
################################### Train Test split np.random.seed(40) #test_proportion test_prop = 0.2 msk = np.random.uniform(0, 1, len(cancer_scaled)) > test_prop #Split predictor and response columns x_train, y_train = cancer_scaled[msk], target[msk] x_test , y_test = cancer_scaled[~msk], target[~msk] print("...
31.307692
61
0.675676
05e9715c2a3f6c316e6a378691c026ad78ef606f
1,818
py
Python
server/editTree.py
codeforcologne/baumkataster
fa61e550341167630578173e4891712074c562a7
[ "BSD-2-Clause" ]
null
null
null
server/editTree.py
codeforcologne/baumkataster
fa61e550341167630578173e4891712074c562a7
[ "BSD-2-Clause" ]
null
null
null
server/editTree.py
codeforcologne/baumkataster
fa61e550341167630578173e4891712074c562a7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 import cgi import json import psycopg2 from datetime import datetime, timedelta try: date_object = datetime.today() date_string = date_object.strftime("%Y-%m-%d") arguments = cgi.FieldStorage() uuid = arguments.getvalue("id") name_ger = arguments.getvalue("name_ger") if name_g...
37.102041
323
0.647415
afd13f7e900a5ed8b84f60732b2076b964799792
28
py
Python
6_text/text.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
6_text/text.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
6_text/text.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Text Keine Lösung """
4
12
0.535714
a5b3ebfb773ff5cabbe7a9fbe0511543d6f9c487
235
py
Python
vorl2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# 2. Vorlesung mit Python (4. zu Skriptsprachen insges. -- 26.09.2020 Nachmittag- 2. PDF dazu) # dateihandling bis Seite 8 import sys from sys import intern for dir in sys.path: print (dir) import math pi = math.pi print (pi)
15.666667
94
0.706383
a5b95c100409e274d315c8730eaf9d92fd9d1c92
14,646
py
Python
event_detector/event_detector.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
event_detector/event_detector.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
event_detector/event_detector.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
import sys import os from time import sleep, time from numpy.lib.type_check import asscalar from sqlalchemy.sql.operators import exists from gttm.ts.task_scheduler import TaskScheduler from gttm.db import PostgresHandler_EventDetection, PostgresHandler_Tweets from dotenv import load_dotenv from datetime import datetim...
38.952128
188
0.608562
b1b02886cae23dcf2f8740e8c0b6ae9ff1272ed5
2,801
py
Python
deprecated/examples/ctr/train.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/examples/ctr/train.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/examples/ctr/train.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
from __future__ import print_function from args import parse_args import os import sys import paddle.fluid as fluid from network_conf import ctr_dnn_model_dataset import paddle.fluid.incubate.fleet.base.role_maker as role_maker from paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler import fleet from p...
34.580247
84
0.656551
28055a8558fc7d0db40e4ed076e47edaf9c0bcbe
660
py
Python
other/find_sum_target.py
yujungcheng/algorithm_and_data_structure
3742238227067217b82bf35ca3a968db4375f3c9
[ "Apache-2.0" ]
null
null
null
other/find_sum_target.py
yujungcheng/algorithm_and_data_structure
3742238227067217b82bf35ca3a968db4375f3c9
[ "Apache-2.0" ]
null
null
null
other/find_sum_target.py
yujungcheng/algorithm_and_data_structure
3742238227067217b82bf35ca3a968db4375f3c9
[ "Apache-2.0" ]
1
2020-04-16T01:17:04.000Z
2020-04-16T01:17:04.000Z
#!/usr/bin/python2.7 import sys # find two index of values that sum up with a target value. def main(): int_list = [4, 5, 7, 2, 3] target = 8 print("integer list: %s" % int_list) print("target : %s" % target) complement_map = dict() for i in range(len(int_list)): complement = ...
25.384615
74
0.584848
0509120d3d73d050c6da86289199d4abca924c80
12,426
py
Python
modules/options.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/options.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/options.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
"""Stores options needed to run modules in MMM Explorer Some options are set at runtime by the user, and others may be set while various code executes. Options are saved using the pickle module, which serializes the entire object in binary, and is unreadable by the user. Consequently, we also save a CSV of all option...
38.233846
118
0.668518
5504915bfbb04e49c67314a5012d4a132602e973
476
py
Python
1475-final-prices-with-a-special-discount-in-a-shop/1475-final-prices-with-a-special-discount-in-a-shop.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1475-final-prices-with-a-special-discount-in-a-shop/1475-final-prices-with-a-special-discount-in-a-shop.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1475-final-prices-with-a-special-discount-in-a-shop/1475-final-prices-with-a-special-discount-in-a-shop.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def finalPrices(self, prices: List[int]) -> List[int]: result=[] for i in range(len(prices)-1): flag=False for j in range(i+1, len(prices)): if prices[i] >= prices[j]: result.append(prices[i]-prices[j]) f...
34
58
0.468487
9b9abf84a638ba80a5090ad4985dbe9d4a782214
11,878
py
Python
letspuppet/alphatrade.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
15
2018-05-16T02:39:01.000Z
2021-05-22T13:12:55.000Z
letspuppet/alphatrade.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
null
null
null
letspuppet/alphatrade.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
9
2018-05-16T00:47:34.000Z
2021-11-26T05:39:48.000Z
# -*- coding: utf-8 -*- """ ------------------------------------------------- @File : AlphaTrade.py Description : alpha Trade @Author : 久久为功 pchaos date: 2018-4-15 ------------------------------------------------- Change Activity: 2018-4-10: login(self, tradeExeTi...
37.707937
133
0.489224
a90ddc6829b4c410b41833dc753d6f58434ed1f8
1,267
py
Python
simple-tensorflow-demo/4.demos/structural demo/forward.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-tensorflow-demo/4.demos/structural demo/forward.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-tensorflow-demo/4.demos/structural demo/forward.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
""" 前向传播 # 搭建结构(输入参数x, 正则化权重r), 定义整个过程, 返回输出y # > test4/nnTest def forward(x, regularizer): w = b = y = return y # 生成权重(w形状, 正则化权重) def get_weight(shape, regularizer): w = tf.Variable() tf.add_to_collection("losses", tf.contrib.layers.l2_regularizer(regularizer)(w)) return w # 生成偏置(b形状) d...
19.796875
84
0.627466
a5e824bf507ff98064aa11249fdfe9655f9ce331
529
py
Python
COVID_info.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
COVID_info.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
COVID_info.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
1
2020-09-30T18:53:05.000Z
2020-09-30T18:53:05.000Z
import requests from bs4 import BeautifulSoup from plyer import notification import time def notifyMe(title, message): notification.notify( title = title, message = message, timeout = 5 ) result = requests.get('https://www.worldometers.info/coronavirus/').text soup = BeautifulSoup(r...
20.346154
75
0.676749
f549d5ea5c0e02a513defde19276e5d2ea97487c
1,429
py
Python
mysite/blog/migrations/0002_auto_20210622_1226.py
lidia-struzyna/django_projekt
ba15ef43fdf6f765a0f6615ad23e31434ae01bcc
[ "bzip2-1.0.6" ]
null
null
null
mysite/blog/migrations/0002_auto_20210622_1226.py
lidia-struzyna/django_projekt
ba15ef43fdf6f765a0f6615ad23e31434ae01bcc
[ "bzip2-1.0.6" ]
null
null
null
mysite/blog/migrations/0002_auto_20210622_1226.py
lidia-struzyna/django_projekt
ba15ef43fdf6f765a0f6615ad23e31434ae01bcc
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-22 10:26 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
26.962264
110
0.563331
f587fa5fac89c0daa1d57fd0afbd95aa52f1626a
3,628
py
Python
S3cr3t/S3cr3t_server.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
S3cr3t/S3cr3t_server.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
S3cr3t/S3cr3t_server.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python2 #-*- coding:utf-8 -*- import platform import time import shlex import sys from datetime import datetime from itertools import izip, cycle import base64 import socket import select import string import requests import platform import json def xor_crypt_string(data, key, encode=False, decode=False):...
36.28
143
0.529217
47a279d3e8acf173a809d14001f2167868310ebb
150
py
Python
UAS/UAS 11 & 12/Class.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
UAS/UAS 11 & 12/Class.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
UAS/UAS 11 & 12/Class.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
#Class item class Barang: def __init__(self, nama, harga, kuantitas): self.nama = nama self.harga = harga self.kuantitas = kuantitas
18.75
45
0.673333
32c3034af7f322dc867d349f4bdf52d26b2c34d5
1,885
py
Python
preprocessor/two_input_preprocessor.py
michal-choinski/sequential_moral_dilemmas
c6364672b996f04e4c791e20fd8b96eb5cf15b91
[ "MIT" ]
1
2021-04-21T10:08:10.000Z
2021-04-21T10:08:10.000Z
preprocessor/two_input_preprocessor.py
michal-choinski/sequential_moral_dilemmas
c6364672b996f04e4c791e20fd8b96eb5cf15b91
[ "MIT" ]
null
null
null
preprocessor/two_input_preprocessor.py
michal-choinski/sequential_moral_dilemmas
c6364672b996f04e4c791e20fd8b96eb5cf15b91
[ "MIT" ]
null
null
null
from collections import OrderedDict import cv2 import logging import numpy as np import gym from typing import Any, List from ray.rllib.utils.annotations import override, PublicAPI from ray.rllib.models.preprocessors import Preprocessor, get_preprocessor from ray.rllib.utils.spaces.repeated import Repeated from ray.rl...
38.469388
78
0.690186
721bad5e11fd4b90dc4045caf2a79beec58578a5
33
py
Python
lib/python3.5/heapq.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
1
2020-08-16T04:04:23.000Z
2020-08-16T04:04:23.000Z
lib/python3.5/heapq.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
5
2020-06-05T18:53:24.000Z
2021-12-13T19:49:15.000Z
lib/python3.5/heapq.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
/usr/local/lib/python3.5/heapq.py
33
33
0.787879
a079985da69ca5b6e43034db487ef7e7b9e3568c
2,281
py
Python
util/ap/py/BestTimetoBuyandSellStock1.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
util/ap/py/BestTimetoBuyandSellStock1.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
util/ap/py/BestTimetoBuyandSellStock1.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
''' You can run it directly to see results. ''' def maxProfit(prices): # The idea is pretty simple. # for example: [1, 3, 2, 1] # The maximal difference must appear in one of cases. # # 1. max([3, 2, 1]) - min([1]) # 2. max([2, 1]) - min([1, 3]) # 3. max([1]) - min([1, 3, 2]) ...
20.926606
72
0.462516
cd3129105027e8576bf228303d0c695601223530
2,044
py
Python
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/constants.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/constants.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/constants.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 # # Copyright (c) 2020 Huawei Device 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...
26.894737
75
0.693738
f86d736e35d2ba2365d7e84db5c934a88e6f45de
5,774
py
Python
pylokid/library/pdftotext.py
tobru/pylokid
15b46d19c62ef62c068873554cafdc5b1bc0072a
[ "MIT" ]
3
2020-03-03T07:38:24.000Z
2021-07-21T22:40:41.000Z
pylokid/library/pdftotext.py
tobru/pylokid
15b46d19c62ef62c068873554cafdc5b1bc0072a
[ "MIT" ]
10
2018-01-02T17:46:06.000Z
2021-12-13T20:58:38.000Z
pylokid/library/pdftotext.py
tobru/pylokid
15b46d19c62ef62c068873554cafdc5b1bc0072a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ extracts data from ELZ PDFs using Poppler pdftotext """ import subprocess import logging class PDFParsing: """ PDF parsing """ def __init__(self): self.logger = logging.getLogger(__name__) self.logger.info("PDF parsing based on pdftotext loaded") def extract(...
28.029126
83
0.370107
f8cc959ab6a3e9087efa8f252c9418968cdf135c
434
py
Python
diversos/Estringues.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
1
2021-12-18T15:29:24.000Z
2021-12-18T15:29:24.000Z
diversos/Estringues.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
null
null
null
diversos/Estringues.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
3
2021-08-23T22:45:20.000Z
2022-02-17T13:17:09.000Z
# -*- coding: utf-8 -*- a = "Dieguitto" b = "Mary-Ann" print (a) c = a + " " + b + "\n" print (c) print ( len(c)) print ( c[6] ) print (c [4:9]) print (c.lower() ) print (c.strip()) minha_string = "O REato roeu a Roupa do Rei de A Romea" minha_lista = minha_string.split(" ") print (minha_lista) busca = minha_...
14
55
0.615207
e4f18d28eb30a04bb45d0b67407e0bd312fe50b0
717
py
Python
Rapid-Payload-main/py_fud.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Rapid-Payload-main/py_fud.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Rapid-Payload-main/py_fud.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/local/bin/python #https://github.com/AngelSecurityTeam/RapidPayload from cryptography.fernet import Fernet import os,sys,random with open(sys.argv[1], 'r+') as f: Tstring = f.read() key = Fernet.generate_key() f = Fernet(key) payload1 = f.encrypt(Tstring) datetxt = open("date"+".txt", "a+") datetxt.write(payl...
25.607143
53
0.694561
5f70d5e4e05683e7193084da957db5d27df64767
968
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/encryption/sha256_encryptor.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/encryption/sha256_encryptor.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/encryption/sha256_encryptor.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Any, Union from watchmen_model.admin import FactorEncryptMethod from .encryptor import Encryptor class SHA256Encryptor(Encryptor): def accept(self, method: Union[FactorEncryptMethod, str]) -> bool: return method == FactorEncryptMethod.SHA256 def is_encrypted(self, value: Any) -> bool: if va...
25.473684
67
0.741736
4b129a976d94d556f5b91bdc38d65499b5172cf4
1,900
pyde
Python
sketches/tile_based_movement/tile_based_movement.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/tile_based_movement/tile_based_movement.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/tile_based_movement/tile_based_movement.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
TILESIZE = 32 from orc import Orc orc = Orc(3, 3) def setup(): size(320, 320) this.surface.setTitle("Tile Based Movement") orc.loadPics() def draw(): background(100, 150, 0) drawGrid() orc.move() orc.display() def drawGrid(): stroke(255) for i in range(0, width, TILESIZE): ...
27.536232
59
0.378947
8a65d0bd5762b1c0cc9f1248cff2b06e58537a8e
1,795
py
Python
repo/script.module.urlresolver/lib/urlresolver/plugins/xstreamcdn.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/script.module.urlresolver/lib/urlresolver/plugins/xstreamcdn.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/xstreamcdn.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
# -*- coding: utf-8 -*- # XStreamCDN resolver for URLResolver # Feb 22 2019 import json from lib import helpers from urlresolver.common import Net, RAND_UA from urlresolver.resolver import UrlResolver, ResolverError class XStreamCDNResolver(UrlResolver): name = 'XStreamCDN' domains = ['xstreamcdn.com'] ...
33.867925
106
0.594986
76f3b5f203cc07244f5f205c5866e2cbf3ea1d54
1,599
py
Python
HW2/display_matches.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
HW2/display_matches.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
HW2/display_matches.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
import numpy as np import cv2 def display_matches(image1, image2, features1, features2, matches): rows1, columns1 = [item[0] for item in features1], [item[1] for item in features1] rows2, columns2 = [item[0] for item in features2], [item[1] for item in features2] offset = image1.shape[0] try: output_image = np.co...
41
83
0.672921
0a306d6fd67d5cae0c16daf18b83eafa89e90761
1,165
py
Python
python/pyopenGL/ogl2/ogl_15_ellipse_d.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/pyopenGL/ogl2/ogl_15_ellipse_d.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/pyopenGL/ogl2/ogl_15_ellipse_d.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
#// last done till 43 pg no do the graph inequalities the next day. from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * import sys #from numpy import * import numpy as np import math def init(): glClearColor(1.0,1.0,1.0,1.0) gluOrtho2D(-5.0,5.0,-5.0,5.0) def plotfunc(): glClear(GL_...
23.77551
120
0.615451
0a4303e68dae940b3c7d3bd6ecda85a0a4d533fb
7,634
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/integration/targets/inventory_kubevirt/server.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/integration/targets/inventory_kubevirt/server.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/integration/targets/inventory_kubevirt/server.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import os try: from http.server import HTTPServer from http.server import SimpleHTTPRequestHandler except ImportError: from BaseHTTPServer import HTTPServer from SimpleHTTPServer import SimpleHTTPRequestHandler from threading import Thread try: from urllib.parse...
47.123457
146
0.460571
6ad7ba3afcc8d1cd73a0e3580d5067270668f1f0
5,310
py
Python
PyTorchStuff/pytorch_lightning/pytorch_example.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
PyTorchStuff/pytorch_lightning/pytorch_example.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
PyTorchStuff/pytorch_lightning/pytorch_example.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 torch import matplotlib.pyplot as plt plt.style.use("seaborn-whitegrid") # %% Generate linear regression data with heteroskedasticity # amount of noise that is added is a function of x n = 2000 x = np.random.uniform(-10, 10, size=n) noise_std = np.sin(x * 0.4) + 1 y = ( ...
26.954315
98
0.641055
6adb4db2aede7d28183ccc058f8f0a90144b5f3e
5,172
py
Python
6.Tree/Binary Tree/Binary_Tree_.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
3
2020-09-10T18:40:40.000Z
2020-09-15T17:32:12.000Z
6.Tree/Binary Tree/Binary_Tree_.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
null
null
null
6.Tree/Binary Tree/Binary_Tree_.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
null
null
null
class Node: def __init__(self, value): self.value = value self.left = None self.right = None class BTree: def __init__(self): self.root = None def insert(self, value): if not self.root: self.root = Node(value) return q = [...
28.574586
76
0.527456
6ae5a495c875497ab4e24c215e6133b3bb580795
330
py
Python
quasar-master/packs/binchecker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
82
2018-10-11T20:05:46.000Z
2019-08-01T20:44:10.000Z
quasar-master/packs/binchecker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
1
2018-10-17T18:37:14.000Z
2018-10-17T21:58:20.000Z
quasar-master/packs/binchecker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
37
2018-10-11T20:34:52.000Z
2019-08-23T14:30:58.000Z
#!/usr/bin/python #coding: utf-8 import requests import json url= 'https://lookup.binlist.net/' b = raw_input(" \033[1;31m[\033[1;32m+\033[1;31m]\033[1;37m Enter Credit Card bin : ") http = requests.get(url+b) content = http.content json_data = json.loads(content) for i in json_data.keys(): print (i+" : "+str(json_...
22
86
0.684848
e402fd99e2fcbeacd372469c004182d0993d220c
1,505
py
Python
Assembler/tests/test_assemble_data_strings.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
1
2019-01-28T01:53:20.000Z
2019-01-28T01:53:20.000Z
Assembler/tests/test_assemble_data_strings.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
null
null
null
Assembler/tests/test_assemble_data_strings.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
null
null
null
from tests import test import datastrings as datastr #wir müssen wg labels nur auf richtige datenstringform testen def test_get_datastring_indexes(): test.assertEquals(datastr.get_datastring_indexes(['R4 = R5 + R6']), []) test.assertEquals(datastr.get_datastring_indexes(['R4 = R5 + R6', ...
53.75
80
0.568106
7c2a14d770c14cb3240793decd90bdac11ddc14d
2,392
py
Python
model_zoo/ernie-3.0/deploy/python/infer_cpu.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-3.0/deploy/python/infer_cpu.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-3.0/deploy/python/infer_cpu.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# 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 appli...
28.819277
87
0.656355
7cc840b0596b9ceedd8ed1476874411bdc0fc044
64
py
Python
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/01.Taking-Input-From-User.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/01.Taking-Input-From-User.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/01.Taking-Input-From-User.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
name = input("Your name: ") print(f"Hello {name}") # f-string
16
34
0.609375
7ce04f18e743c53a44caf722d2398c1b588c14b3
16,076
py
Python
Utils/py/SimsparkTests/SimsparkController.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/SimsparkTests/SimsparkController.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/SimsparkTests/SimsparkController.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import logging import math import multiprocessing import socket import struct import subprocess import time import sexpr class SimsparkController(multiprocessing.Process): """Represents the controlling class of an simspark instance. It serves two purposes, first its starts the simspark application and second...
46.32853
169
0.564133
6b076078261eb0f3b331a80467f2140167d0aa60
5,290
py
Python
Liquid-job-CNN/official/r1/mnist/mnist_test.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
2
2021-08-30T14:12:09.000Z
2022-01-20T02:14:22.000Z
Liquid-job-CNN/official/r1/mnist/mnist_test.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
Liquid-job-CNN/official/r1/mnist/mnist_test.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow 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...
35.743243
81
0.689414
8663a9e03cddcb1a59bbce5cc7de4e33085dce5a
609
py
Python
zer0pts/2021/rev/infected/pow.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
3
2020-11-02T06:53:39.000Z
2021-12-10T00:59:01.000Z
pwn/kstack/files/pow.py
SECCON/SECCON2020_online_CTF
dd639d140ad61ea0fbfadb7827157ca53f7b88b2
[ "Apache-2.0" ]
null
null
null
pwn/kstack/files/pow.py
SECCON/SECCON2020_online_CTF
dd639d140ad61ea0fbfadb7827157ca53f7b88b2
[ "Apache-2.0" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
""" i.e. sha256("????v0iRhxH4SlrgoUd5Blu0") = b788094e2d021fa16f30c83346f3c80de5afab0840750a49a9254c2a73ed274c Suffix: v0iRhxH4SlrgoUd5Blu0 Hash: b788094e2d021fa16f30c83346f3c80de5afab0840750a49a9254c2a73ed274c """ import itertools import hashlib import string table = string.ascii_letters + string.digits + "._" suff...
26.478261
101
0.71757
07a4d88d2ef2efc3e4635743fcf9cf8160ba8e63
5,587
py
Python
test/test_npu/test_network_ops/test_miopen_convolution_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_miopen_convolution_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_miopen_convolution_backward.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...
45.422764
144
0.665115
07f4228850870fe8f22d7f66df0c46440bc82e92
304
py
Python
Packs/CommonScripts/Scripts/URLSSLVerification/URLSSLVerification_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/URLSSLVerification/URLSSLVerification_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/URLSSLVerification/URLSSLVerification_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest from URLSSLVerification import mark_http_as_suspicious @pytest.mark.parametrize('arg, expected_result', [ ('false', False), ('true', True), (None, True) ]) def test_is_http_should_be_suspicious(arg, expected_result): assert mark_http_as_suspicious(arg) == expected_result
25.333333
60
0.753289
ed2186aa19d5f7e3876cb69e70697a26e761e4fc
12,956
py
Python
lale/lib/aif360/protected_attributes_encoder.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
265
2019-08-06T14:45:43.000Z
2022-03-30T23:57:48.000Z
lale/lib/aif360/protected_attributes_encoder.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
467
2019-08-08T02:01:21.000Z
2022-03-25T16:12:00.000Z
lale/lib/aif360/protected_attributes_encoder.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
81
2019-08-07T19:59:31.000Z
2022-03-31T09:11:58.000Z
# Copyright 2020, 2021 IBM Corporation # # 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 in wri...
37.337176
241
0.526551
ed462e46c1988a27d0de55e2210cc05a8cc3073d
8,832
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/radware/test_vdirect_commit.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/radware/test_vdirect_commit.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/radware/test_vdirect_commit.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017 Radware LTD. # # This file is part of Ansible # # Ansible 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, either version 3 of the License, or # (at your option) any l...
44.16
112
0.637681
ed6d0b9d191fa27cf7cb3d5a9b6cc26f4f7586d6
23,138
py
Python
examples/simultaneous_translation/stacl/demo/demo.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/simultaneous_translation/stacl/demo/demo.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/simultaneous_translation/stacl/demo/demo.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# 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 appli...
33.827485
80
0.504754
ed8854b26249bf0cdfa01f054f56ceb363e976c0
504
py
Python
tests/resources/simple/simple-project/tests/conftest.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
14
2021-03-27T22:18:56.000Z
2022-03-21T19:04:48.000Z
tests/resources/simple/simple-project/tests/conftest.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
33
2021-03-28T21:06:22.000Z
2022-03-07T14:18:26.000Z
tests/resources/simple/simple-project/tests/conftest.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
null
null
null
import asyncio import pytest from asgi_lifespan import LifespanManager from dotenv import load_dotenv from httpx import AsyncClient load_dotenv(".env") @pytest.fixture(scope="session", autouse=True) def event_loop(): loop = asyncio.get_event_loop_policy().new_event_loop() yield loop loop.close() @pyte...
21
88
0.740079
92f62f0f593ba05c831dc129e78e1695bff1021b
430
py
Python
examples/external_resources.py
xinetzone/dash-tests
cd4526caa2f9d906915c31370b3487bdcef92aa4
[ "Apache-2.0" ]
1
2022-03-01T07:38:32.000Z
2022-03-01T07:38:32.000Z
examples/external_resources.py
xinetzone/dash-tests
cd4526caa2f9d906915c31370b3487bdcef92aa4
[ "Apache-2.0" ]
12
2021-07-13T12:33:36.000Z
2021-07-14T05:25:19.000Z
examples/external_resources.py
xinetzone/dash-book
1f624e87e2aa02c9931318918df969e44bdd2c07
[ "Apache-2.0" ]
null
null
null
from dash import html layout = html.Div([ html.Div( className="app-header", children=[ html.Div('Plotly Dash', className="app-header--title") ] ), html.Div( children=html.Div([ html.H5('Overview'), html.Div(''' This is an ...
20.47619
66
0.465116
13dacf2ff16babad071080904c71e54614a34114
40,469
py
Python
source/lib/ptp/src/twitter.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:56:12.000Z
2020-03-26T12:06:51.000Z
source/lib/ptp/src/twitter.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:55:31.000Z
2018-04-25T07:43:29.000Z
source/lib/ptp/src/twitter.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2019-09-06T22:31:43.000Z
2020-03-26T12:06:51.000Z
import twitter import random import time from fuzzywuzzy import process <<<<<<< HEAD:source/api_wrapper/src/twitter.py from source.api_wrapper.src.threads.thread_management import ThreadManagement from source.api_wrapper.src.logger import Logger from source.api_wrapper.src.helper import Helper from source.api_wrapper.s...
34.947323
120
0.562356
bcf2a90658fc87be2a99b72fc6eedd1476ebd049
923
py
Python
Hackerrank_problems/Repeated String/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Repeated String/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Repeated String/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#!/bin/python3 import math import os import random import re import sys #line 20 - 22 counts the number of "a" in a full string, and in the last, potentially partial string, # and calculates the total amount of "a" based on that. # "a" count of full string * number of string repeats + "a" count of last st...
26.371429
111
0.542795
fc9b99814c3fdb0caafb36d4ed835b87546c2b48
1,117
py
Python
official/gnn/gcn/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/gnn/gcn/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/gnn/gcn/src/config.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...
31.027778
78
0.660698
5d8b8057c3aae37b69493ab253a39d7c5dbe7888
3,709
py
Python
attach/urls.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
null
null
null
attach/urls.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
null
null
null
attach/urls.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
null
null
null
from django.urls import path from django.conf.urls import url, include from .import views from django.conf import settings from django.conf.urls.static import static from django.urls import path from .views import peer1, peer2, peer urlpatterns = [ #video call urls path('peer/', peer, name='peer'), path('...
42.147727
85
0.700728
b9084e663368e19b981192178c92a21373b64f11
313
py
Python
0-notes/job-search/Cracking the Coding Interview/C13Java/questions/13.7-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C13Java/questions/13.7-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C13Java/questions/13.7-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 13.7 Lambda Expressions # There is a class Country that has getContinent() and getPopulation(). # Write a function int getPopulation(List<Country> countries, String continent) # that computes the total population of a given continent, given a list of # all countries and the name of a continent.
39.125
79
0.744409
5d27b3f6c156b5ee319679733a8d04905d5b970f
3,373
py
Python
models/networks/Conv12.py
scott-mao/CroP
f1e0a25224e341683cf47e7ce451ce0fe996e950
[ "MIT" ]
null
null
null
models/networks/Conv12.py
scott-mao/CroP
f1e0a25224e341683cf47e7ce451ce0fe996e950
[ "MIT" ]
null
null
null
models/networks/Conv12.py
scott-mao/CroP
f1e0a25224e341683cf47e7ce451ce0fe996e950
[ "MIT" ]
1
2021-11-08T16:34:45.000Z
2021-11-08T16:34:45.000Z
import torch import torch.nn as nn from models.Pruneable import Pruneable from utils.constants import PROD_BIG_POOL, BIG_POOL, PROD_MIDDLE_POOL, MIDDLE_POOL class Conv12(Pruneable): def __init__(self, device="cuda", output_dim=2, input_dim=(1,), **kwargs): super(Conv12, self).__init__(device=device, out...
40.154762
112
0.633264
5d73ac2b02ec65eaa27142d58fe135ae9f2b72f8
573
py
Python
DataProcess/main.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/main.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/main.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. import data_process from config import * import glob import os if __name__ == '__main__': rp_path = glob.glob(os.path.j...
31.833333
98
0.710297
54d63694aa3ca4bc1c5c1a24caadbfd96f962b36
562
py
Python
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_copia.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_copia.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_copia.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício Processa Números # -------------------------- # Classe responsável por obter uma cópia dos números. from view.paineis.painel_abstrato import PainelAbstrato from model.processa_numeros import copia as faz_copia class PainelCopia(PainelAbstrato): ...
29.578947
72
0.620996
54f940255440898a0248289341be19455cb0c05d
945
py
Python
models/hr_employee_formation.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_employee_formation.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_employee_formation.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- from openerp import api, exceptions, fields, models, _ class HrEmployeeFormation(models.Model): """Gestion des formations des employes chez ARO""" _name = 'hr.employee.formation' _description = u'Formations' _rec_name = 'name' _order = 'name ASC' ref = fields.Integer(...
42.954545
92
0.718519
536855037bc10ba91cddc23bb2f196bc6208f756
4,432
py
Python
python/brain.py
DubskySteam/Facharbeit_Schlitten
4ce8764a13ea41120b1b17f9f77d516aa958442b
[ "MIT" ]
null
null
null
python/brain.py
DubskySteam/Facharbeit_Schlitten
4ce8764a13ea41120b1b17f9f77d516aa958442b
[ "MIT" ]
null
null
null
python/brain.py
DubskySteam/Facharbeit_Schlitten
4ce8764a13ea41120b1b17f9f77d516aa958442b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import tinkerforge import os import sys import math import time import ctypes import urllib.request from tkinter import * from tinkerforge.ip_connection import IPConnection from tinkerforge.brick_dc import BrickDC from tinkerforge.brick_stepper import BrickStepper from tinkerforge.bricklet_joys...
26.698795
91
0.708032
726031c0d6fa7261cfe536651bc2543324bc6110
420
py
Python
chemist/chemist/items.py
ChineseGardenCat/chemist_crawler
28fdf1e93c38cddc5f8b16e7098a60e2a51b1a7a
[ "MIT" ]
null
null
null
chemist/chemist/items.py
ChineseGardenCat/chemist_crawler
28fdf1e93c38cddc5f8b16e7098a60e2a51b1a7a
[ "MIT" ]
null
null
null
chemist/chemist/items.py
ChineseGardenCat/chemist_crawler
28fdf1e93c38cddc5f8b16e7098a60e2a51b1a7a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class ChemistItem(scrapy.Item): name = scrapy.Field() price = scrapy.Field() image_url = scrapy.Field() shop_url = scrapy.Field() ...
16.153846
52
0.666667
72ef30803a2ff10a37dadab8568f04f689e5d05f
16,399
py
Python
Packs/CrowdStrikeMalquery/Integrations/CrowdStrikeMalquery/CrowdStrikeMalquery.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CrowdStrikeMalquery/Integrations/CrowdStrikeMalquery/CrowdStrikeMalquery.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CrowdStrikeMalquery/Integrations/CrowdStrikeMalquery/CrowdStrikeMalquery.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] from CommonServerUserPython import * # noqa: E402 lgtm [py/polluting-import] # Disable insecure warnings requests.packages.urllib3.disable_warnings() # CONSTANTS DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ' VENDOR_NAME = 'C...
38.676887
120
0.637844
f4664de2df420ff75573de4b8e935244fc722f42
2,123
py
Python
common/landmark_helper.py
JACKYLUO1991/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
24
2019-09-01T09:02:59.000Z
2022-03-22T08:38:16.000Z
common/landmark_helper.py
HeroOneHY/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
2
2019-10-25T02:39:03.000Z
2022-03-20T15:45:22.000Z
common/landmark_helper.py
HeroOneHY/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
11
2019-10-25T01:36:18.000Z
2021-04-09T06:51:58.000Z
# coding=utf-8 ''' Jacly LUO in 20190114 ''' import numpy as np import cv2 import sys class LandmarkHelper(object): ''' Helper for different landmark type ''' def __init__(self): pass @classmethod def parse(cls, line): ''' use for parse txt line to get file path and l...
29.486111
108
0.474329
fe8d9dfe1fcd049a4bd26de638b75b5877d53247
20,612
py
Python
source/pkgsrc/lang/python27/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python27/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python27/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.2 2021/06/23 18:30:24 schmonz Exp $ Disable certain modules, so they can be built as separate packages. Only check the BUILDLINK_DIR for libraries etc, do not pick up random headers and libraries from the system. Do not look for ncursesw. Assume panel_library is correct; this is a fix for ...
46.952164
192
0.518145
fe9a71ddda37e89b8012522431db04347e9f3bfb
365
py
Python
test/testsetup.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
test/testsetup.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
test/testsetup.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
import sys ''' mock has been included in the built-in unittest library since Python 3.3 This block intends to support Python 2.7 builds in which mock resides as a standalone package.''' if sys.version_info.major == 3: from unittest import mock mock = mock builtins = "builtins" else: import mock...
28.076923
76
0.69863
fea06986ecc9af9ead356ad09ef5916678201752
2,521
py
Python
sdss/scripts/extent.py
zhewang/rdm
b2c00c5db6ee4861c1b7214e3a63b630be30bb31
[ "Apache-2.0" ]
null
null
null
sdss/scripts/extent.py
zhewang/rdm
b2c00c5db6ee4861c1b7214e3a63b630be30bb31
[ "Apache-2.0" ]
null
null
null
sdss/scripts/extent.py
zhewang/rdm
b2c00c5db6ee4861c1b7214e3a63b630be30bb31
[ "Apache-2.0" ]
null
null
null
# Generate .dmp file from .csv import argparse import csv import sys import math def isfloat(value): try: float(value) return True except ValueError: return False def sanityCheck(row): legal = True for i in range(6, 21): if isfloat(row[i]) is False: legal = ...
30.373494
78
0.532328
229fad994f753858228476e45ad755ce3546bfe6
1,474
py
Python
Koordinatendarstellung_Downloadgeschwindigkeit.py
raswz/wifionice
67f1fa7a6b396afe7a447a4d10adbc64dcbcdd4f
[ "CC-BY-4.0" ]
null
null
null
Koordinatendarstellung_Downloadgeschwindigkeit.py
raswz/wifionice
67f1fa7a6b396afe7a447a4d10adbc64dcbcdd4f
[ "CC-BY-4.0" ]
null
null
null
Koordinatendarstellung_Downloadgeschwindigkeit.py
raswz/wifionice
67f1fa7a6b396afe7a447a4d10adbc64dcbcdd4f
[ "CC-BY-4.0" ]
null
null
null
import plotly.express as px import pandas as pd #data = pd.read_csv(r'c:\users\Ronja\Documents\20171212_wifionice\wifionice.csv', sep=';', low_memory=False) #Importiert die WifionIce.parquet-Datei data_raw = pd.read_feather(r'c:\Users\Ronja\Documents\GitHub\wifionice\wifionice.feather') #Importiert die WifionIce.parqu...
43.352941
161
0.699457
22f750872ce615c5a274af72d20fa01f472b5340
465
py
Python
Algorithms/Graph_Algorithms/DFS/DFS.py
hussamEL-Hwary/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
18
2016-11-01T04:00:36.000Z
2021-09-13T14:26:35.000Z
Algorithms/Graph_Algorithms/DFS/DFS.py
JEERU/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
60
2016-10-11T14:50:47.000Z
2016-10-31T11:05:01.000Z
Algorithms/Graph_Algorithms/DFS/DFS.py
JEERU/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
87
2016-09-08T05:04:50.000Z
2016-10-30T19:19:53.000Z
def dfs(graph, start): visited, stack = set(), [start] while stack: vertex = stack.pop() if vertex not in visited: visited.add(vertex) stack.extend(graph[vertex] - visited) return visited graph = {'A': set(['B', 'C']), 'B': set(['A', 'D', 'E']), 'C...
24.473684
49
0.412903
4a760820f5052c3ac47a37bef3894bfd89269f5f
4,779
py
Python
Game_Engine.py
BogyMitutoyoCTL/Riesen-Tetris-3
349d7b6f12c2ddf0b66683c904406a5e8596228d
[ "MIT" ]
1
2019-10-22T14:02:34.000Z
2019-10-22T14:02:34.000Z
Game_Engine.py
BogyMitutoyoCTL/Riesen-Tetris-3
349d7b6f12c2ddf0b66683c904406a5e8596228d
[ "MIT" ]
null
null
null
Game_Engine.py
BogyMitutoyoCTL/Riesen-Tetris-3
349d7b6f12c2ddf0b66683c904406a5e8596228d
[ "MIT" ]
null
null
null
import Playground import RandomBlock import Ws2812Painter import LED_Matrix_Maler import pygame import Startmenu import Points import Music import Tetrisblock import Control_feedback import Sound from Highscore import Highscore def start_screen(playground, painter, controller): s = Startmenu.Startmenu(playground)...
30.832258
100
0.627119
4a9df9fdb943070531fb88e374ee12eea1546672
249
py
Python
python_gui_tkinter/Tkinter/FRAME/1_noteBook.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/FRAME/1_noteBook.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/FRAME/1_noteBook.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * from tkinter import ttk parent = ttk() n = ttk.Notebook(parent) f1 = ttk.Frame(n) # first page, which would get widgets gridded into it f2 = ttk.Frame(n) # second page n.add(f1, text='One') n.add(f2, text='Two') mainloop()
24.9
73
0.690763
438e918173de067e37a3443325c4475a09801e64
651
py
Python
Algorithms/Search/GridlandMetro.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Search/GridlandMetro.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Search/GridlandMetro.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 from collections import defaultdict n, m, k = map(int, raw_input().split()) track_dic = defaultdict(list) for _ in xrange(k): r, c1, c2 = map(int, raw_input().split()) track_dic[r].append((c1, c2)) track_count = 0 for track_ar in track_dic.values(): track_ar.sort(key=lambda x:...
24.111111
48
0.545315
7148917be6adf6764247f00ee018955af5451243
1,387
py
Python
ci/check/run_py_format.py
caishenghang/oneflow
db239cc9f98e551823bf6ce2d4395bd5c339b1c5
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
ci/check/run_py_format.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
null
null
null
ci/check/run_py_format.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
import argparse import sys import platform from subprocess import Popen import os if __name__ == "__main__": major = platform.sys.version_info.major minor = platform.sys.version_info.minor if major == 3 and minor < 6: print("WARNING: python >= 3.6 required, python source format won't run") ...
30.152174
109
0.610671
e0a28e66247f2104ae60e42f048d0530119ffc85
5,519
py
Python
src/backend/student.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
null
null
null
src/backend/student.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
null
null
null
src/backend/student.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
null
null
null
import course from course import Course, Instructor, Session from typing import List, Set import DB.dbModels as dbMdl from DB.dbModels import db class Preference: def __init__(self, course_wishlist: List[Course] = None, no_morning=False, no_noon=False, ...
31.005618
108
0.596304