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
16d802cc9d9b55f67f0d07bbbab033dc07275b27
237
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/01_function_with_argument.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/01_function_with_argument.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/01_function_with_argument.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Einleitung mit Funktion und Argument def test(name, age): print('Hallo', name + '. Bist du wirklich schon', str(age), 'Jahre alt?') print('Wie ist dein Name?') inp1=input() print('Wie alt bist du?') inp2=input() test(inp1, inp2)
21.545455
77
0.670886
4c090c1f1f01db76103639b4864cdd96a7cede2e
1,085
py
Python
leetcode/288-Unique-Word-Abbreviation/UniqueWordAbbr_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2017-05-18T06:11:02.000Z
2017-05-18T06:11:02.000Z
leetcode/288-Unique-Word-Abbreviation/UniqueWordAbbr_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/288-Unique-Word-Abbreviation/UniqueWordAbbr_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class ValidWordAbbr(object): def __init__(self, dictionary): """ :type dictionary: List[str] """ wordset = set() abbr2cnt = {} for word in dictionary: if len(word) > 2: abbr = word[0] + str(len(word) - 2) + word[-1] else: ...
26.463415
68
0.489401
4c267c9c3b57817afd565c41fd5092b3f07769b6
328
py
Python
exercises/zh/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): import spacy.tokens import spacy.lang.de assert isinstance( nlp, spacy.lang.de.German ), "nlp应该是德文类的一个实例。" assert isinstance( doc, spacy.tokens.Doc ), "你用nlp实例处理过文本并且创建了一个doc吗?" assert "print(doc.text)" in __solution__, "你打印doc.text了吗?" __msg__.good("Sehr gu...
23.428571
62
0.637195
d5cb38faaecd0015ce5ee8540c33801279edd1ff
704
py
Python
page_objects/login.py
WETESTERR/Mehwish-Peter
1b6beb5352683243dfd5667e0749d07ce119254f
[ "MIT" ]
null
null
null
page_objects/login.py
WETESTERR/Mehwish-Peter
1b6beb5352683243dfd5667e0749d07ce119254f
[ "MIT" ]
1
2020-06-23T07:25:39.000Z
2020-06-23T07:25:39.000Z
page_objects/login.py
WETESTERR/Mehwish-Peter
1b6beb5352683243dfd5667e0749d07ce119254f
[ "MIT" ]
null
null
null
from selenium.webdriver.common.by import By class Login: def __init__(self, driver): self.driver = driver email_textbox = "email" password_textbox = "password" signIn_tab = driver.find_element_by_class_name("login").click() submit = driver.find_element_by_id("SubmitLogin") logout_bu...
24.275862
82
0.705966
e6d856898e960d7f4bd5da5c288173333ae07ad0
2,617
py
Python
research/cv/SPPNet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/SPPNet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/SPPNet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
45.912281
119
0.71303
e6fef5c5f40b1f33e4fd68eac1554330ee8f8c75
249
py
Python
exercises/en/exc_01_03_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/en/exc_01_03_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/en/exc_01_03_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Import spaCy and create the English nlp object import ____ nlp = ____ # Process the text doc = ____("I like tree kangaroos and narwhals.") # Select the first token first_token = doc[____] # Print the first token's text print(first_token.____)
17.785714
49
0.746988
fc3d4090350cdf87d21e3b79df30409d3656d930
28,556
py
Python
tests/test_objectives.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
49
2018-11-07T06:43:33.000Z
2022-03-18T20:53:06.000Z
tests/test_objectives.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
94
2018-11-06T20:15:04.000Z
2022-01-06T09:06:15.000Z
tests/test_objectives.py
qucontrol/krotov
9f9a22336c433dc3a37637ce8cc8324df4290b46
[ "BSD-3-Clause" ]
20
2018-11-06T20:03:11.000Z
2022-03-12T05:29:21.000Z
"""Tests for krotov.Objective in isolation""" import copy import copyreg import io import os import pickle from collections import OrderedDict from itertools import product import numpy as np import pytest import qutip import scipy from qutip import identity, ket, sigmam, sigmap, sigmax, sigmay, sigmaz, tensor import...
37.475066
179
0.631076
54f055960eb387d4772e10f54392c738a03a7adc
190
py
Python
spo/spo/doctype/facharzt_bericht/facharzt_bericht_dashboard.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
null
null
null
spo/spo/doctype/facharzt_bericht/facharzt_bericht_dashboard.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
6
2019-08-23T18:36:26.000Z
2019-11-12T13:12:12.000Z
spo/spo/doctype/facharzt_bericht/facharzt_bericht_dashboard.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
1
2021-08-14T22:22:43.000Z
2021-08-14T22:22:43.000Z
from frappe import _ def get_data(): return { 'fieldname': 'facharzt_bericht', 'transactions': [ { 'label': _('Referenzen'), 'items': ['SPO Anhang'] } ] }
14.615385
35
0.531579
075babd59857fcff331284c3aa14472dd06a5d10
1,887
py
Python
0-notes/job-search/Leetcode/08-LongestSemiAlternatingSubString.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Leetcode/08-LongestSemiAlternatingSubString.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Leetcode/08-LongestSemiAlternatingSubString.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# You are given a string s of length n containing only characters a and b. # A substring of s called a semi-alternating substring if it does not # contain three identical consecutive characters. # Return the length of the longest semi-alternating substring. # Example 1: Input: "baaabbabbb" | Output: 7 ...
28.590909
75
0.579226
4adbe84bc68a9f22866016f140f56679942c3075
487
py
Python
Licence 1/I11/TP4/ex3.3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP4/ex3.3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP4/ex3.3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
liste = [1, 34, 8, 9, 72, -5, 2] max_1, index_1 = liste[0], 0 max_2, index_2 = liste[], 0 tmp = 0 if max_1 < max_2: tmp = max_1 max_1 = max_2 max_2 = tmp i = 0 while i < len(liste): if liste[i] > max_1: max_2 = max_1 max_1, index_1 = liste[i], i elif liste[i] > max_2 and liste[i] !...
22.136364
54
0.562628
ab1f21176ba0434f65b9661900bb6aa00b313f5e
59
py
Python
cs/python/python_general/30-seconds-of-python-code/test/keys_only/keys_only.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
1
2020-09-11T14:59:16.000Z
2020-09-11T14:59:16.000Z
test/keys_only/keys_only.py
quantumahesh/30-seconds-of-python-code
0a7a85f479106ddecc28bdbb7867c1f6abdc1dd4
[ "CC0-1.0" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/python/python_general/30-seconds-of-python-code/test/keys_only/keys_only.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
2
2020-08-07T05:38:27.000Z
2021-11-09T11:54:18.000Z
def keys_only(flat_dict): return list(flat_dict.keys())
29.5
33
0.745763
534a9865e5bfe5df6ed375f053171329e5bc24f7
302
py
Python
ACM Training/2018-07-25 HDU多校第二场/P1006.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
ACM Training/2018-07-25 HDU多校第二场/P1006.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
ACM Training/2018-07-25 HDU多校第二场/P1006.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
from scipy.special import comb, perm def pow(x): res = 1 for i in range(1, x + 1): res = res * 2 return res n = 3 m = 4 a = 1 b = 2 ans = 0 for i in range(a, n + 1): for j in range(b, m + 1): ans += comb(n, i) * comb(m, j) * (2 ** (i * m + j * n - i * j)) print(ans)
15.894737
71
0.466887
be7d70793678121a48de2b9a1a07d5db91a971d5
87,952
py
Python
oneflow/python/ops/user_data_ops.py
lenran/oneflow
7c34e35ad6505bc12b48ce0fafa20322d280b2b1
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/ops/user_data_ops.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
null
null
null
oneflow/python/ops/user_data_ops.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
37.410464
347
0.607479
be9e8fc3a6ab03b08d510a3a59e56c785c1b4e09
1,313
py
Python
mini_challenges/mini_challenge2/src/gen_samples.py
AbinMM/PYNQ_Hackathon_2017
711c75e8590b02f313295cef712188691690c948
[ "BSD-3-Clause" ]
19
2017-10-08T03:18:38.000Z
2020-07-07T02:34:18.000Z
mini_challenges/mini_challenge2/src/gen_samples.py
AbinMM/PYNQ_Hackathon_2017
711c75e8590b02f313295cef712188691690c948
[ "BSD-3-Clause" ]
2
2017-10-08T03:15:10.000Z
2017-10-10T16:10:32.000Z
mini_challenges/mini_challenge2/src/gen_samples.py
AbinMM/PYNQ_Hackathon_2017
711c75e8590b02f313295cef712188691690c948
[ "BSD-3-Clause" ]
28
2017-10-07T23:24:36.000Z
2022-03-29T08:03:40.000Z
from pynq.overlays.base import BaseOverlay import numpy as np import matplotlib.pyplot as plt import wave #print("Init overlay") base = BaseOverlay("base.bit") pAudio = base.audio #print("Init audio") fs = 44100 # sampling rate, Hz, must be integer duration =1.0/5.0 # in seconds, may be float f = 440.0 ...
28.543478
79
0.677837
fe71cfbf25ed5535da5bd00548425a43ac744a94
2,212
py
Python
official/cv/yolov3_darknet53/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/yolov3_darknet53/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/yolov3_darknet53/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.962963
119
0.65009
fea17af81de2cbec133e5c080cfdc00a125278b7
1,884
py
Python
convert.py
notaTeapot/SchwurbelTranskipt
d17a8535986ebff8be49ac04e530e303d586beec
[ "MIT" ]
1
2021-12-29T10:20:48.000Z
2021-12-29T10:20:48.000Z
convert.py
notaTeapot/SchwurbelTranskipt
d17a8535986ebff8be49ac04e530e303d586beec
[ "MIT" ]
null
null
null
convert.py
notaTeapot/SchwurbelTranskipt
d17a8535986ebff8be49ac04e530e303d586beec
[ "MIT" ]
null
null
null
# Unterprogramm zur Konvertierung und Einteilung von .ogg Dateien # Angelehnt an https://stackoverflow.com/a/62872679 from pydub import AudioSegment import os import math class SplitConvert(): def __init__(self,folder,filename): self.folder = folder self.filename = filename self.filepath = ...
34.888889
81
0.58811
430fdac8f2d7f53c45281295be387a375d488b33
13,913
py
Python
resources/mechanics_lib/api/component.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/api/component.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/api/component.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from api.symbolic import Symbol from drawing import Drawing import edge import sys def getSubcomponentObject(c): try: mod = __import__(c, fromlist=[c]) obj = getattr(mod, c) return obj() except ImportError: obj = Component(c + ".yaml") return obj class Component: def __init__(self, yamlFile=...
31.12528
102
0.636096
4310a108c7bee34612a860592eebf8f32f1f4eb6
3,729
py
Python
marsyas-vamp/marsyas/src/marsyas_python/twosinusoids.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/twosinusoids.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/twosinusoids.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from marsyas import * from marsyas_util import * print "Some things will be printed, but they only make sense if you read the source code" # Welcome to the bonus secret honeypot step four of our tutorial! # By this point, you should have passed through helloworld.py, windowing.py and phone.py. ...
54.043478
130
0.755967
432de996a10dc1bc1146e6975a515ae9cd13a4ac
17,570
py
Python
examples/multimodal/layoutxlm/run_xfun_re.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/multimodal/layoutxlm/run_xfun_re.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/multimodal/layoutxlm/run_xfun_re.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
import sys import os import random import numbers import logging import argparse import paddle import numpy as np from paddlenlp.transformers import LayoutXLMModel, LayoutXLMTokenizer, LayoutXLMForRelationExtraction from xfun import XFUN # Todo: delete the following line after the release of v2.2 sys.path.insert(0, "...
40.765661
188
0.568127
4a4812fa409f23b951bfe4f4d8c5ff491223fc28
2,069
py
Python
tools/pythonpkg/tests/fast/test_result.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/test_result.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/test_result.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import duckdb import pytest import datetime class TestPythonResult(object): def test_result_closed(self, duckdb_cursor): connection = duckdb.connect('') cursor = connection.cursor() cursor.execute('CREATE TABLE integers (i integer)') cursor.execute('INSERT INTO integers VALUES (0),(...
48.116279
230
0.625423
437ef236eb9f0964362b66736b3f274e06645daf
10,202
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/onyx_l3_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/onyx_l3_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/onyx_l3_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
33.781457
111
0.613703
60fe0e7088a460e7e70a9fc2ed516850ff2d901b
1,763
py
Python
my_music_app/my_music_app/web/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
my_music_app/my_music_app/web/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
my_music_app/my_music_app/web/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.core.validators import MinLengthValidator, MinValueValidator from django.db import models from my_music_app.web.validators import validate_username_characters class Profile(models.Model): USER_NAME_MAX_LENGTH = 15 USER_NAME_MIN_LENGTH = 2 MIN_AGE = 0 username = models.CharField( ...
22.602564
131
0.642087
71a8955dc05e71a7f9e858543aef761a3dd8b00d
3,012
py
Python
tf/clasificador2/_et/lector_entrenador_multi_deep.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/clasificador2/_et/lector_entrenador_multi_deep.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/clasificador2/_et/lector_entrenador_multi_deep.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
# coding=UTF-8 import numpy as np import matplotlib.pyplot as plt import os import cv2 from tqdm import tqdm import random import filetype from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D from ...
28.415094
109
0.675963
e0fdf11d358bf61bc29cd61188829017c8155b7f
2,644
py
Python
test/test_npu/test_network_ops/test_tensor_npu.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_tensor_npu.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_tensor_npu.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
34.789474
74
0.628215
1cb6b39a9f252f9d35a99db8ef522a2eae852cc4
6,128
py
Python
tests/rbac/common/user/create_user_helper_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
tests/rbac/common/user/create_user_helper_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
tests/rbac/common/user/create_user_helper_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# 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 ...
32.42328
79
0.728296
c718dfeda2c1ac9b8391383a9a2e83737cdc16ae
106
py
Python
buzzer/_buzzer_callback.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
buzzer/_buzzer_callback.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
buzzer/_buzzer_callback.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
class BuzzerCallback: def on_buzz(self, buzzer: str): pass def reset(self): pass
15.142857
35
0.584906
c776254b572214d111df474d5513ea61bc4a2a13
2,983
py
Python
chord_rec/harmalysis/inputRN2Chord.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/inputRN2Chord.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/inputRN2Chord.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
''' harmalysis - a language for harmonic analysis and roman numerals Copyright (C) 2020 Nestor Napoles Lopez This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of t...
37.2875
79
0.651022
c781bcf7c8b4db7f0dac64422aac1103176cf5f9
2,230
py
Python
scripts/generate_shh_publist.py
stschiff/homepage-gatsby
e901472bcc5adba6611646067b8f49932ae86d22
[ "MIT" ]
null
null
null
scripts/generate_shh_publist.py
stschiff/homepage-gatsby
e901472bcc5adba6611646067b8f49932ae86d22
[ "MIT" ]
2
2021-03-24T08:42:46.000Z
2021-10-01T20:44:11.000Z
scripts/generate_shh_publist.py
stschiff/homepage-gatsby
e901472bcc5adba6611646067b8f49932ae86d22
[ "MIT" ]
null
null
null
#!/usr/bin/env python import bibtexparser import sys import json # from bs4.dammit import EntitySubstitution month_names = "jan feb mar apr may jun jul aug sep oct nov dec".split() def month_replace(s): ret = s for m in month_names: search = " " + m rep = " {" + m + "}" ret = ret.repla...
33.283582
145
0.576682
c7cd6d78deeab159c0469413cf76450ae62fefe1
1,593
py
Python
Python/Strings/Minion_game.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Strings/Minion_game.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Strings/Minion_game.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/the-minion-game/problem?isFullScreen=false import string s = 'BANANA' s = 'BAANANAS' n = len(s) # Kevin has to make words starting with vowels. # Stuart has to make words starting with consonants. and Y is also a Consonant # A player gets +1 point for each occurrence of the su...
18.102273
82
0.57941
4642162229a95bbe297b4e8b9c69ddc068e1f75d
4,736
py
Python
src/onegov/gazette/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/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.types import JSON from onegov.core.upgrade import upgrade_task from onegov.gazette.collections.categories import CategoryCollection from onegov.gaze...
32.662069
75
0.673353
7350fd4fee9849c7acd2e2af7bdd4be858e5ef00
7,438
py
Python
official/nlp/ernie/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/ernie/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/ernie/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.004975
105
0.652864
b45b1fb5658dbe1c9ae8e688bd77f38dcb5005dc
544
py
Python
leetcode/006-ZigZag-Conversion/ZigZagConversion_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/006-ZigZag-Conversion/ZigZagConversion_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/006-ZigZag-Conversion/ZigZagConversion_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param {string} s # @param {integer} numRows # @return {string} def convert(self, s, numRows): if numRows < 2: return s halfsize = numRows - 1 size = 2 * halfsize res = '' for i in range(numRows): j, cnt = i, 1 ...
25.904762
38
0.384191
81fc1477fac2e5617e94a7ce606b77e493dcc732
4,588
py
Python
ppyt/finders.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
4
2016-08-16T07:47:15.000Z
2017-12-11T10:08:47.000Z
ppyt/finders.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
null
null
null
ppyt/finders.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
2
2018-06-15T04:43:15.000Z
2020-05-02T07:47:15.000Z
# coding: utf-8 import logging import os import importlib import inspect from ppyt import const from ppyt.mixins import SingletonMixin from ppyt.exceptions import DuplicateFindkeyError logger = logging.getLogger(__name__) class SimpleFinder(SingletonMixin): """indicatorsなどを検索するクラスです。 検索対象とするクラスはppyt.mixins.F...
34.238806
74
0.619224
5b21192557a650e5deabf3513b05c28b9682fc59
1,041
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Common/Lock.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
282
2016-06-16T14:41:44.000Z
2022-03-02T03:43:02.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Common/Lock.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
146
2016-06-16T08:55:45.000Z
2020-09-08T10:37:32.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Common/Lock.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
94
2016-06-16T10:49:07.000Z
2022-03-28T09:14:03.000Z
import os import logging from fcntl import flock, LOCK_EX, LOCK_NB from mongodb_consistent_backup.Errors import OperationError class Lock: def __init__(self, lock_file, acquire=True): self.lock_file = lock_file self._lock = None if acquire: self.acquire() def acquire(sel...
30.617647
88
0.605187
825bd9b7780974b69a997ea605f7d6ee29550b82
15,127
py
Python
api/bpm/services.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
api/bpm/services.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
api/bpm/services.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
class BPMmethod(object): # benchmark # usage # name # beats LATER # description NO NEED def __init__(self,step,step_index,setting,avg): self.name = 'step{}{}'.format(step,step_index) self.step = step self.step_index = step_index if self.step == 1: se...
35.097448
186
0.587559
81e5c8c98bb7fe79ebac6ce6f59b8707c2a340a1
3,947
py
Python
python_code_file/lstm22.py
Karllzy/DaJiDuPin
12fc752caa23f510fbc895d0be2f702b5afde0ea
[ "MIT" ]
null
null
null
python_code_file/lstm22.py
Karllzy/DaJiDuPin
12fc752caa23f510fbc895d0be2f702b5afde0ea
[ "MIT" ]
null
null
null
python_code_file/lstm22.py
Karllzy/DaJiDuPin
12fc752caa23f510fbc895d0be2f702b5afde0ea
[ "MIT" ]
null
null
null
from xlrd import open_workbook from numpy import array, concatenate, sqrt, arange from pandas import DataFrame, concat from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import mean_squared_error from keras import Sequential, Model from keras.layers import LSTM, Dense, Dropout, Activation, Input, TimeD...
31.07874
83
0.64758
483e11a2e773dd472ed6fb142b1303f76764ac4f
39,672
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/traci/constants.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/traci/constants.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/traci/constants.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 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.eclipse.org/legal/epl-2....
29.495911
112
0.763158
4861d0268176081a8f6c8f06f8674ca6d51261af
911
py
Python
prototype/examples/user_support/lab_orchestrator_prototype/template_engine.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
null
null
null
prototype/examples/user_support/lab_orchestrator_prototype/template_engine.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
null
null
null
prototype/examples/user_support/lab_orchestrator_prototype/template_engine.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
1
2021-09-26T12:09:52.000Z
2021-09-26T12:09:52.000Z
import re import yaml class TemplateEngine: def __init__(self, data): self.path_matcher = re.compile(r'\$\{([^}^{]+)\}') self.data = data def path_constructor(self, loader, node): value = node.value match = self.path_matcher.match(value) var = match.group()[2:-1] ...
28.46875
62
0.594951
73655ecb1c2058ee250cd5110b92b7add0366c26
700
py
Python
src/server/State.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/State.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/State.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
class State: """The implementation of a exemplary state class. """ def __init__(self): self._id = 0 self._name = "" def get_id(self): """Reads out the id.""" return self._id def set_id(self, val): """Sets the id.""" self._id = val def get_n...
21.875
55
0.52
f7c899cd526974a56945b8b5384f82234a3a4f87
5,639
py
Python
src/evaluate_bias_in_nlg/eval_bias_in_labeled_generations.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/evaluate_bias_in_nlg/eval_bias_in_labeled_generations.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/evaluate_bias_in_nlg/eval_bias_in_labeled_generations.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os import json import hydra.utils import pandas as pd from scipy.stats import chi2, chi2_contingency import matplotlib.pyplot as plt import src.constants as constants from src.evaluate_bias_in_nlg.bias_eval_helpers import ( single_file_to_dict, mult_files_to_dict, plot_regard_ratios, ) def read_r...
33.565476
88
0.637524
f7684fa7aeeb164e9ff3505cb61ce54c5a9fdbaf
280
py
Python
exercises/zh/solution_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/zh/solution_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/zh/solution_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.blank("en") # 导入Doc类 from spacy.tokens import Doc # 目标文本:"Go, get started!" words = ["Go", ",", "get", "started", "!"] spaces = [False, True, True, False, False] # 使用words和spaces创建一个Doc doc = Doc(nlp.vocab, words=words, spaces=spaces) print(doc.text)
18.666667
48
0.667857
e3a92f526215656149b254d63a0ddb17366589a7
86
py
Python
pk/data/common/try.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
pk/data/common/try.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
pk/data/common/try.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
""" try using python exception to conclude the base info of except """ i=0 print(1J)
10.75
38
0.709302
5417a9cb34a9e3b29d697c849e3a65e5a70d736a
463
py
Python
lib/python/qmk/cli/pytest.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
lib/python/qmk/cli/pytest.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/cli/pytest.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
"""QMK Python Unit Tests QMK script to run unit and integration tests against our python code. """ import subprocess from milc import cli @cli.subcommand('QMK Python Unit Tests', hidden=False if cli.config.user.developer else True) def pytest(cli): """Run several linting/testing commands. """ flake8 = s...
27.235294
93
0.706263
3f8d17b75299e375c616ac4861f6ed4748e1ba94
1,388
py
Python
Coursera/Using Databases with Python/Week-4/Excercise/roster.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Coursera/Using Databases with Python/Week-4/Excercise/roster.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Coursera/Using Databases with Python/Week-4/Excercise/roster.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
import json import sqlite3 as sql con = sql.connect('rosterdb.sqlite') cur = con.cursor() cur.executescript(''' DROP TABLE IF EXISTS User; DROP TABLE IF EXISTS Member; DROP TABLE IF EXISTS Course; CREATE TABLE User( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, name TEXT UNIQU...
23.931034
68
0.610231
4dd08c734e5d7427b29ec0a31af0825b2692b54a
4,914
py
Python
src/onegov/translator_directory/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import json from onegov.gis import Coordinates from onegov.gis.utils import MapboxRequests, outside_bbox from onegov.translator_directory import log from onegov.translator_directory.models.translator import Translator def to_tuple(coordinate): return coordinate.lat, coordinate.lon def found_route(response): ...
28.404624
79
0.622507
4de982f822f20f40b9ffc89fd3f2577838fc6c05
4,281
py
Python
qmk_firmware/lib/python/qmk/cli/generate/layouts.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/generate/layouts.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/generate/layouts.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
"""Used by the make system to generate layouts.h from info.json. """ from milc import cli from qmk.constants import COL_LETTERS, ROW_LETTERS from qmk.decorators import automagic_keyboard, automagic_keymap from qmk.info import info_json from qmk.keyboard import keyboard_completer, keyboard_folder from qmk.path import i...
40.386792
133
0.638869
c45110a0110390fba8b70236c7b6aeb5058affaa
11,074
py
Python
gui.py
WolleTD/RackSorterPython
f6eb4f562e4b6008ce9ec9e64de1f1947cb84318
[ "MIT" ]
null
null
null
gui.py
WolleTD/RackSorterPython
f6eb4f562e4b6008ce9ec9e64de1f1947cb84318
[ "MIT" ]
null
null
null
gui.py
WolleTD/RackSorterPython
f6eb4f562e4b6008ce9ec9e64de1f1947cb84318
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ gui.py ~~~~~~~~~~~ Graphical interface for racksorter and pyads modules in context of the project :copyright: (c) 2017-2018 by Eicke Herbertz, Dominik Hilbers :license: MIT, see LICENSE for details """ import sys from collections import name...
33.456193
121
0.643038
c452e987b6dcdbdfab8b9c8ef6622d36e7afebdc
3,287
py
Python
src/onegov/core/metadata.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/metadata.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/metadata.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Metadata about the instance, available through HTTP. """ import hashlib import inspect import morepath import socket from onegov.core.framework import Framework from onegov.core.security import Public, Secret from onegov.core.utils import dict_path from webob import exc # The metadata responses contain either pu...
26.942623
78
0.676909
220a7afe69f5883be4682d8a48edd40e3b969382
229
py
Python
Object Oriented Programming/Object Oriented Programming 2/roboter.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/Object Oriented Programming 2/roboter.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/Object Oriented Programming 2/roboter.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
class Roboter: def sage_hallo(self): self.name = 1 print("Hallo, ich heisse", self.name) def __init__(self): # self.name = input("Name: ") # self.baujahr = input("Baujahr: ") pass
19.083333
45
0.541485
221578b2db8db749ceb3d54f308ceae8d7a92ffc
964
py
Python
Packs/Intezer/Scripts/IntezerScanHost/IntezerScanHost.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Intezer/Scripts/IntezerScanHost/IntezerScanHost.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Intezer/Scripts/IntezerScanHost/IntezerScanHost.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 * import uuid demisto.executeCommand('createNewIndicator', {'value': demisto.args()['host'], 'type': 'hostname'}) endpoint_analysis_id = str(uuid.uuid4()) scanner_result = demisto.executeCommand('IntezerRunScanner', ...
43.818182
99
0.538382
3f0402b95d48ae49b008b9871131dcee385f0007
805
py
Python
color_mask.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
null
null
null
color_mask.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
null
null
null
color_mask.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
2
2019-05-16T05:48:26.000Z
2021-01-27T01:26:22.000Z
### Take mask and orginal image and return the orginal with the mask on it - color import numpy as np import matplotlib.pyplot as plt def imageshow(img, dpi=200): if dpi > 0: F = plt.gcf() F.set_dpi(dpi) plt.imshow(img) def checking(image_orginal,image_mask): orginal_array = image_orginal.copy() ...
24.393939
83
0.617391
e17ced621bfddafc9d1203a9ee0857587bc3c6c2
985
py
Python
ebenezer/atencion/models/diagnostic_tag.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
ebenezer/atencion/models/diagnostic_tag.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
3
2020-02-11T23:15:00.000Z
2021-06-10T20:52:17.000Z
ebenezer/atencion/models/diagnostic_tag.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
from uuid import uuid4 from django.db import models from .related_factor import RelatedFactor class DiagnosticTag(models.Model): id = models.UUIDField( primary_key=True, default=uuid4, editable=False) related_factor = models.ManyToManyField( RelatedFactor, blank=True, ...
22.906977
45
0.636548
187abc80eb43bb826a9265aa261481ff3d98f7f7
2,311
py
Python
src/main.py
TheMagnat/Projet-RP
74d5bb7c07705b06fbdf93e5587568d9ecf574e0
[ "MIT" ]
null
null
null
src/main.py
TheMagnat/Projet-RP
74d5bb7c07705b06fbdf93e5587568d9ecf574e0
[ "MIT" ]
null
null
null
src/main.py
TheMagnat/Projet-RP
74d5bb7c07705b06fbdf93e5587568d9ecf574e0
[ "MIT" ]
null
null
null
import helper import algorithm import numpy as np #Generation d'instances random n = 7 error = 0.1 #For integer durations #durations = helper.generateRandomDurations(n, maxDuration=300) durations = helper.generateRandomParetoDurations(n) #For integer predictions #predictions = helper.generatePredictionsOnD...
36.68254
126
0.790567
3da2f6b4ef967b0edf5bddfaa270888af26738f0
6,851
py
Python
TFLCycles/unfinished/TFLSummaryRegression.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
TFLCycles/unfinished/TFLSummaryRegression.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
TFLCycles/unfinished/TFLSummaryRegression.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
# %% [markdown] # # Transport for London Cycle Data Exploration # # Seasonality stuff # https://otexts.com/fpp2/regression-intro.html # https://stats.stackexchange.com/questions/204670/predict-seasonality-and-trend-combined-better-approach # https://stats.stackexchange.com/questions/137995/is-there-a-way-to-allow-seaso...
27.186508
129
0.704131
9afd19688e87d037533ceb7d6b4f8c96b0ecfd86
532
py
Python
src/gvz/migrations/0008_auto_20210424_2211.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
7
2021-04-24T19:11:15.000Z
2021-10-30T12:59:16.000Z
src/gvz/migrations/0008_auto_20210424_2211.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
10
2021-04-25T10:25:12.000Z
2021-04-26T17:55:20.000Z
src/gvz/migrations/0008_auto_20210424_2211.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-04-24 22:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gvz', '0007_auto_20210424_2209'), ] operations = [ migrations.AlterField( model_name='zipcode', name='zip_code', ...
23.130435
70
0.590226
b1419002f212ab4ab6f7a9ba77675ef0a8bf27ca
561
py
Python
AutosClasificados/core/migrations/0002_auto_20171010_1747.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
AutosClasificados/core/migrations/0002_auto_20171010_1747.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
AutosClasificados/core/migrations/0002_auto_20171010_1747.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-10-10 20:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AlterField( ...
26.714286
173
0.600713
b150b3b2684b88ca5f3af3791cb0d124156d6f19
2,348
py
Python
src/main/python/multi_processing.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/multi_processing.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/multi_processing.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
from numpy import * from pandas import * from tools import logger import os import math log = logger.getLogger() def get_threshold(): from context.resource_manager import Properties from view import shape_view from view import plot_utils from cluster import density_cluster id = np.l...
30.493506
133
0.662692
655cdfc998569f086ca10d1bfc19462edb3265d4
569
py
Python
website/apps/pages/models.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
1
2017-03-14T08:08:31.000Z
2017-03-14T08:08:31.000Z
website/apps/pages/models.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
website/apps/pages/models.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ class Page(models.Model): """Page model.""" title = models.CharField(_('title'), max_length=100) slug = models.SlugField(_('slug'), unique=True) body = models.TextField(_('body'), ) script = models.TextField(_('scr...
25.863636
65
0.634446
65927db4dd49db9148c0cd45a8f9a97c9661371c
2,374
py
Python
Imaginary/2021/crypto/Primetime/primetime.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/crypto/Primetime/primetime.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/crypto/Primetime/primetime.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from itertools import islice from math import gcd from random import randint ELEMENT_LEN = 16 def primes(): num = 2 while True: prime = 1 for i in range(2, num): if num%i == 0: prime = 0 if prime: yield num num += ...
23.74
62
0.456613
02b6e9c1f4434bb8c8f9857aadc43f866b9472eb
425
py
Python
books/PythonAutomate/pdf_word_documents/encrypting_pdf.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/pdf_word_documents/encrypting_pdf.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/pdf_word_documents/encrypting_pdf.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""encrypting_pdf.py PDF 파일 암호화 하기 """ import PyPDF2 pdf_file = open("meetingminutes.pdf", "rb") pdf_reader = PyPDF2.PdfFileReader(pdf_file) pdf_writer = PyPDF2.PdfFileWriter() # PDF 복사 for page_num in range(pdf_reader.numPages): pdf_writer.addPage(pdf_reader.getPage(page_num)) # PDF 암호화 pdf_writer.encrypt("swor...
21.25
52
0.764706
b87ec042ebb30b49620316a307b851556906a165
974
py
Python
demos/Multiscale/ThreeSidedBasic/model/config.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/ThreeSidedBasic/model/config.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/ThreeSidedBasic/model/config.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
import math from decimal import Decimal from datetime import timedelta import numpy as np from typing import Dict, List from cadCAD.configuration import Experiment from cadCAD.configuration.utils import bound_norm_random, ep_time_step, config_sim, access_block from copy import deepcopy from cadCAD import configs from ...
22.651163
96
0.764887
a270485967d9267eb69b1036d03ad37f9fe4355e
31,752
py
Python
code/modules/front_pygame.py
snakeuschi/robotling
836ec8d2f313fd4b82cc0c7f8801aeb89b354a8e
[ "MIT" ]
10
2019-07-09T10:49:46.000Z
2022-03-23T16:08:29.000Z
front_pygame.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
1
2020-08-09T13:17:50.000Z
2020-08-21T05:41:26.000Z
front_pygame.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
6
2019-03-27T16:16:23.000Z
2021-05-18T15:33:48.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # front_pygame.py # Simple widget-based GUI that uses the drawing functions of pygame # # The MIT License (MIT) # Copyright (c) 2018-20 Thomas Euler # 2019-05-01, v1 # 2019-08-03, `WidgetCamera` added ...
32.433095
80
0.520534
a2dbbbd0854cf0bd5e2a25c068e678824f0e7156
264
py
Python
src/python/test.py
allenjzhang/playground
ef32d383d6c1751e204cb77db6658c6ed72624ad
[ "MIT" ]
1
2020-06-10T11:34:59.000Z
2020-06-10T11:34:59.000Z
src/python/test.py
allenjzhang/playground
ef32d383d6c1751e204cb77db6658c6ed72624ad
[ "MIT" ]
null
null
null
src/python/test.py
allenjzhang/playground
ef32d383d6c1751e204cb77db6658c6ed72624ad
[ "MIT" ]
2
2020-05-26T06:39:04.000Z
2020-11-16T06:34:23.000Z
import random def test(): days = ["Mon", "Tues", "Wed", "Thur", "Fri", "Sat", "Sun"] return days def main(): days = test() for day in days: rand = random.randint(0, 10) print("On {0} is {1}".format(day, rand)) if __name__ == "__main__": main()
18.857143
60
0.564394
a76c3026a7e8a598d889311c1ef9a7b3a3017a6b
3,387
py
Python
src/onegov/directory/models/directory_entry.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/models/directory_entry.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/models/directory_entry.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm import Base from onegov.core.orm.mixins import ContentMixin from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.mixins import UTCPublicationMixin from onegov.core.orm.types import UUID from onegov.file import AssociatedFiles from onegov.gis import CoordinatesMixin from onegov.sea...
29.973451
78
0.684086
ced256595272e27233b5a8710e424c696cfad3a3
91
py
Python
a.py
smartiori/wolf
d980b2a0ba0c95e640d3bea5143bed3b0fc2246c
[ "Apache-2.0" ]
null
null
null
a.py
smartiori/wolf
d980b2a0ba0c95e640d3bea5143bed3b0fc2246c
[ "Apache-2.0" ]
null
null
null
a.py
smartiori/wolf
d980b2a0ba0c95e640d3bea5143bed3b0fc2246c
[ "Apache-2.0" ]
null
null
null
!#/etc/bin/python import os print('hello world') def test(): print('def test') test()
11.375
21
0.637363
0c9bd88d99f468b3285cfd4bf2e338e5dac9519d
6,437
py
Python
Packs/Okta/Integrations/OktaEventCollector/OktaEventCollector.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/Okta/Integrations/OktaEventCollector/OktaEventCollector.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
40
2022-03-03T07:34:00.000Z
2022-03-31T07:38:35.000Z
Packs/Okta/Integrations/OktaEventCollector/OktaEventCollector.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
from enum import Enum from pydantic import BaseModel, AnyUrl, Json # pylint: disable=no-name-in-module from CommonServerPython import * class Method(str, Enum): """ A list that represent the types of http request available """ GET = 'GET' POST = 'POST' PUT = 'PUT' HEAD = 'HEAD' PATCH ...
35.174863
115
0.60028
0ce72cb444f618e01216129c46bf318179f7d3ee
4,767
py
Python
backend/api/btb/jsd/__init__.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
4
2020-04-30T16:11:24.000Z
2020-06-02T10:08:07.000Z
backend/api/btb/jsd/__init__.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
291
2020-04-20T13:11:13.000Z
2022-02-10T21:54:46.000Z
backend/api/btb/jsd/__init__.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
2
2020-04-19T14:56:01.000Z
2020-04-19T18:09:34.000Z
import requests from requests.auth import HTTPBasicAuth from urllib.parse import urljoin import json class JSDClientError(Exception): """General exception when JSD api returns an error code""" pass class JSDNotFoundError(JSDClientError): """Raised when JSD api returns 404 error""" pass class JS...
33.808511
137
0.642962
0b9e03e1da3478fd23e75933bd4a3b801042b24d
826
py
Python
extra_script.py
cultur98/ESP32_Vorrat
0dba638677c32ccb46069403a71cefa2460974ad
[ "MIT" ]
null
null
null
extra_script.py
cultur98/ESP32_Vorrat
0dba638677c32ccb46069403a71cefa2460974ad
[ "MIT" ]
null
null
null
extra_script.py
cultur98/ESP32_Vorrat
0dba638677c32ccb46069403a71cefa2460974ad
[ "MIT" ]
null
null
null
from shutil import copyfile from os import path Import("env") version_from_buildflags = "not_found" my_flags = env.ParseFlags(env['BUILD_FLAGS']) for x in my_flags.get("CPPDEFINES"): if isinstance(x, list): # grab as key, value k, v = x if k == "FW_VERSION_MAJ": fw_version_maj ...
30.592593
70
0.657385
e7f1fd92016a5b004fba74f0c308b7e6a72c69fe
15,510
py
Python
Packs/DemistoRESTAPI/Scripts/DemistoUploadFileV2/DemistoUploadFileV2_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/DemistoRESTAPI/Scripts/DemistoUploadFileV2/DemistoUploadFileV2_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/DemistoRESTAPI/Scripts/DemistoUploadFileV2/DemistoUploadFileV2_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import pytest from DemistoUploadFileV2 import upload_file_command RAW_RESPONSE = [ { "Brand": "Demisto REST API", "Category": "Utilities", "Contents": { "response": { "ShardID": 0, "category": "", "childs": None, "c...
37.283654
120
0.416505
685497d8326b5efbf8d6054de0d3771ebb81bf91
3,918
py
Python
MidnightSun/2021/Quals/crypto/Dbcsig_64434/keygen_sign_proto.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
MidnightSun/2021/Quals/crypto/Dbcsig_64434/keygen_sign_proto.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
MidnightSun/2021/Quals/crypto/Dbcsig_64434/keygen_sign_proto.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
""" We have designed a determinstic signature scheme with password-based keys, suitable for the post-modern blockchain. It is resistant to partitioning oracle attacks and requires no access to randomness under a fixed modulus. Although not quantum safe, we deem the threat from quantum attacks to be negligible. ...
61.21875
451
0.374936
d79ab75b58226464ffb515ecf72ad013db19d8f8
600
py
Python
qmk_firmware/lib/python/qmk/cli/list/keymaps.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
qmk_firmware/lib/python/qmk/cli/list/keymaps.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/list/keymaps.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
"""List the keymaps for a specific keyboard """ from milc import cli import qmk.keymap from qmk.decorators import automagic_keyboard from qmk.keyboard import keyboard_completer, keyboard_folder @cli.argument("-kb", "--keyboard", type=keyboard_folder, completer=keyboard_completer, help="Specify keyboard name. Example...
33.333333
148
0.771667
cc09b5f333b4d82bebddb86a7a22f4621022694c
3,679
py
Python
Zhihu/RNN/RNN.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
1,107
2016-09-21T02:18:36.000Z
2022-03-29T02:52:12.000Z
Zhihu/RNN/RNN.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
18
2016-12-22T10:24:47.000Z
2022-03-11T23:18:43.000Z
Zhihu/RNN/RNN.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
776
2016-12-21T12:08:08.000Z
2022-03-21T06:12:08.000Z
import numpy as np import tensorflow as tf import tensorflow.contrib.layers as layers from tensorflow.contrib.rnn import BasicRNNCell, LSTMStateTuple class LSTMCell(BasicRNNCell): def __call__(self, x, state, scope="LSTM"): with tf.variable_scope(scope): s_old, h_old = tf.split(state,...
39.138298
95
0.574884
504b633d4099c1fc7388f24237fc1b0fb3018a91
312
py
Python
models/test_myfft.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
models/test_myfft.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
models/test_myfft.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
import math import cmath import scipy import matplotlib import matplotlib.pyplot as plt a = scipy.array([[1,2,3,4,5,6]]) b = scipy.array([[1,2,3,4,5,6]]) s = scipy.fft(a) print a print s #s = cmath.real(s) print s #fig = plt.figure() #ax = fig.add_subplot( 111) #ax.plot(a, b) #fig.show() #fig.savefig('symlog')
17.333333
32
0.673077
50540742c5a89ba75771926782d99629a8ab6c1c
13,739
py
Python
examples/multimodal/layoutxlm/run_xfun_ser.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/multimodal/layoutxlm/run_xfun_ser.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/multimodal/layoutxlm/run_xfun_ser.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
import sys import os import random import copy import logging import argparse import paddle import numpy as np from seqeval.metrics import classification_report, f1_score, precision_score, recall_score from paddlenlp.transformers import LayoutXLMModel, LayoutXLMTokenizer, LayoutXLMForTokenClassification from xfun impo...
39.823188
120
0.580974
ac9a42f53a284cdcea21b7a99aec8c682a5b06cd
1,210
py
Python
INBa/2015/RotkinAM/Zadacha_8_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/RotkinAM/Zadacha_8_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/RotkinAM/Zadacha_8_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №8, Вариант 21 #1-50. Доработайте игру "Анаграммы" (см. М.Доусон Программируем на Python. Гл.4) так, чтобы к каждому слову полагалась подсказка. Игрок должен получать право на подсказку в том случае, если у него нет никаких предположений. Разработайте систему начисления очков, по которой бы игроки, отгадавшие с...
35.588235
361
0.663636
ace339936fdec76dda6fdb12a034e41baf3fd9b1
713
py
Python
src/test/tests/unit/annotation_objects.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/unit/annotation_objects.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/unit/annotation_objects.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: annotation_objects.py # # Tests: AnnotationObject unit test # # Alister Maguire, Fri Jul 16 12:50:11 PDT 2021 # # Modifications: # # ---------------------------------------------------------------...
23.766667
80
0.531557
c5b55c6ec61ce2cfe14f36654e9176ea41006be8
280
py
Python
python/python_backup/PRAC_PYTHON/22_armstrong.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/22_armstrong.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/22_armstrong.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def armstrong1(n): a0=n s=0 d=0 while a0>0: d=a0%10 s=s+d*d*d a0=a0//10 print(s) if s==n: return 1 else : return 0 d=int(input("Enter a number :")) if armstrong1(d) == 1 : print("armstrong number") else: print("not an armstrong number")
12.727273
34
0.560714
8c129e03abe9fc000f0d8a2010fc8f63b4fa41e3
6,472
py
Python
jobScanner/jobScanner.py
gordodev/Automation
254ddce367f1369b7e4355f7d42af21090493aa1
[ "Apache-2.0" ]
2
2020-07-21T04:59:42.000Z
2020-12-15T16:42:00.000Z
jobScanner/jobScanner.py
gordodev/Automation
254ddce367f1369b7e4355f7d42af21090493aa1
[ "Apache-2.0" ]
null
null
null
jobScanner/jobScanner.py
gordodev/Automation
254ddce367f1369b7e4355f7d42af21090493aa1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 #jobScanner 2.0 (migrate from shell to Python) 8/10/20 #Purpose: Scan jobs, determine suitability then generate email response import csv import time import sys import os import tkinter as tk #from tkinter import simpledialog from tkinter import simpledialog ROOT = tk.Tk() ROOT.withdraw() # the...
27.776824
133
0.597806
8b3bda816d2aba8df241cb52a633863302a94921
574
py
Python
src/onegov/feriennet/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.feriennet.collections.activity import VacationActivityCollection from onegov.feriennet.collections.billing import BillingCollection from onegov.feriennet.collections.match import MatchCollection from onegov.feriennet.collections.notification_template import ( NotificationTemplateCollection ) from oneg...
28.7
76
0.825784
0fc178fa72c906092e4406007765121fa4c9b7aa
4,019
py
Python
21-fs-ias-lec/FrontEnd/socialgraph/importer.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/FrontEnd/socialgraph/importer.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/FrontEnd/socialgraph/importer.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
__author__ = "Philipp Haller, Pascal Kunz, Sebastian Schlachter" import os import json from datetime import datetime import datetime as dt import pytz import tzlocal as tzlocal from socialgraph.models import Profile, FollowRecommendations, Status def create_profiles(data): """ Creates profile database ob...
39.401961
196
0.603135
0fdfdf746cdb45a43896e4229cb639bad57ab542
1,768
py
Python
research/cv/glore_res/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/glore_res/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/glore_res/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.181818
86
0.714367
ba223fa3d62a68abe3ee4835c3d8838da16a24e3
175
py
Python
book/_build/jupyter_execute/docs/001_uebersicht.py
tom-tubeless/Biologie
44660ea21971d4b3d77118606bfe1264993465fc
[ "MIT" ]
null
null
null
book/_build/jupyter_execute/docs/001_uebersicht.py
tom-tubeless/Biologie
44660ea21971d4b3d77118606bfe1264993465fc
[ "MIT" ]
null
null
null
book/_build/jupyter_execute/docs/001_uebersicht.py
tom-tubeless/Biologie
44660ea21971d4b3d77118606bfe1264993465fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Übersicht über die Unterrichtsinhalte # In[1]: import pandas as px bio_g9_05 = px.read_excel("bio_g9_05.xlsx") bio_g9_05.head()
13.461538
43
0.714286
e8cd6aa8d4036a8cb05299f4aa6839ece6c6bcd5
322
py
Python
hardware/beacon/beacon.py
BlueHC/TTHack-2018--Easy-Rider-1
8cd8f66de88ff80751a1083350c38985ac26914d
[ "Apache-2.0" ]
null
null
null
hardware/beacon/beacon.py
BlueHC/TTHack-2018--Easy-Rider-1
8cd8f66de88ff80751a1083350c38985ac26914d
[ "Apache-2.0" ]
null
null
null
hardware/beacon/beacon.py
BlueHC/TTHack-2018--Easy-Rider-1
8cd8f66de88ff80751a1083350c38985ac26914d
[ "Apache-2.0" ]
null
null
null
from subprocess import call call(["sudo hciconfig hci0 up"], shell=True) call(["sudo hciconfig hci0 leadv 3"], shell=True) def make_beacon(): call(["sudo hcitool -i hci0 cmd 0x08 0x0008 1d 02 01 06 03 03 aa fe 15 16 aa fe 10 00 02 65 61 73 79 72 69 64 65 72 65 72 6e 61 30 30 00 00"], shell=True) make_beacon(...
32.2
162
0.692547
d7828dccf277a564f8fb0240fbb5ca9973c28795
1,309
py
Python
ms17_shodan_extractor/ms17Extractor.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
ms17_shodan_extractor/ms17Extractor.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
ms17_shodan_extractor/ms17Extractor.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
import shodan import subprocess from termcolor import colored import argparse import shlex parser = argparse.ArgumentParser() parser.add_argument("-a", dest ="api_key", ,type=str ,help="Shodan API key") parser.add_argument("-s", dest = "search_query", help="Search query") parser.add_argument("-l", dest = "limit", defa...
29.75
114
0.662338
7e64260b6a24d009bf30358b59625c86301ddbdd
68,907
py
Python
repo/plugin.video.EasyNews/default.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/plugin.video.EasyNews/default.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/plugin.video.EasyNews/default.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
import urllib,urllib2,sys,re,xbmcplugin,xbmcgui,xbmcaddon,xbmc,base64,datetime,os import settings from urlparse import urlparse import time import threading from functools import wraps import json PLUGIN='plugin.video.EasyNews' #Global Constants ADDON = settings.addon() USER_AGENT = 'Mozilla/5.0 (Window...
54.515032
1,062
0.533066
0e454a366024f56a49b75bb2fa8edf091aa69352
1,351
py
Python
kivy-demo/leprechaun.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
kivy-demo/leprechaun.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
kivy-demo/leprechaun.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
from random import random from kivy.app import App from kivy.uix.widget import Widget from kivy.uix.button import Button from kivy.graphics import Color, Line, Rectangle class MyPaintWidget(Widget): def on_touch_down(self, touch): color = (random(), random(), random()) self.canvas.clear() ...
32.95122
72
0.589193
0e632c84c257e78f4906f56c64fdda5272aa6ba3
774
py
Python
scripts/invite_all_participants.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
scripts/invite_all_participants.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
scripts/invite_all_participants.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
1
2019-10-19T10:11:17.000Z
2019-10-19T10:11:17.000Z
#!/usr/bin/env python3 import os import logging from configparser import ConfigParser from imwievaluation.limesurvey import LimeSurveySession logger = logging.getLogger(__name__) configParser = ConfigParser() configParser.read('config.ini') semester = configParser['structure']['semester'] basepath = configParser['st...
27.642857
70
0.77907
cbb6ad629fd62bbfb0758e2e347f944c03e8e88e
3,700
py
Python
imwievaluation/tests/test_semester_old.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/tests/test_semester_old.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/tests/test_semester_old.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
1
2019-10-19T10:11:17.000Z
2019-10-19T10:11:17.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- import pytest from imwievaluation.semester_old import Semester, Lecturer, Lecture @pytest.fixture def semester(): return Semester('WS2017/18') @pytest.fixture def lecturers(): return [ ('Maier', 'm', 'herr_maier@example.com'), ('Müller', 'f', '...
34.259259
79
0.642432
1df0439850f1832a067706dcba8642182e2a011d
253
py
Python
Hackerrank_problems/Triangle_Quest/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Triangle_Quest/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Triangle_Quest/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# Used the fact that 9ths as decimals have repeating digits (1/9=.11111, 2/9=.22222) with powers of 10 to get the correct length of each number. # Completed in 2 lines as required by problem. for i in range(1,int(input())): print((10**(i)//9)*i)
50.6
146
0.6917
1df332880bc7837c5e85e826c83fa5240a990199
446
py
Python
backend/config.py
LouisaWatch/openschufa
64e2efaf0d66ab7e6fb8696248bf51e7a9a441ba
[ "MIT" ]
null
null
null
backend/config.py
LouisaWatch/openschufa
64e2efaf0d66ab7e6fb8696248bf51e7a9a441ba
[ "MIT" ]
null
null
null
backend/config.py
LouisaWatch/openschufa
64e2efaf0d66ab7e6fb8696248bf51e7a9a441ba
[ "MIT" ]
null
null
null
# 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...
22.3
67
0.793722
69a89327edbae2cd9dee48ae1a911464d9b928c4
119
py
Python
spangle/models/__init__.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
spangle/models/__init__.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
spangle/models/__init__.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
from .http import Request, Response from .websocket import Connection __all__ = ["Request", "Response", "Connection"]
23.8
47
0.756303
69ec7ed126ec2c57174a51697494c9fe6182bd91
1,346
py
Python
Packs/Yara/Scripts/YaraScan/YaraScan_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Yara/Scripts/YaraScan/YaraScan_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Yara/Scripts/YaraScan/YaraScan_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from YaraScan import main import demistomock as demisto from CommonServerPython import entryTypes def test_main(mocker): rule = '''rule PE_file_identifier { meta: author = "Adam Burt" description = "Detects PE files" date = "12/08/2016" strings: $MZ = "MZ" ascii cond...
27.469388
86
0.537147
2a9eb312219e19c7d231a30e3eadf29bc8298676
48
py
Python
backend/fakebox/common/handling_exception.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
backend/fakebox/common/handling_exception.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
backend/fakebox/common/handling_exception.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
class HandlingException(RuntimeError): pass
16
38
0.791667
2ad6a9646a0af5c275b8847dd600d2996b248aa2
164
py
Python
exercises/ja/exc_02_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/exc_02_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/exc_02_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("ja_core_news_md") doc1 = nlp("暖かい夏の日です") doc2 = nlp("外は晴れています") # doc1とdoc2の類似度を取得 similarity = ____.____(____) print(similarity)
14.909091
35
0.737805
10945428aee4bdd3279073246b07fdf32f488926
491
py
Python
frappe-bench/apps/erpnext/erpnext/selling/doctype/campaign/campaign.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/selling/doctype/campaign/campaign.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/selling/doctype/campaign/campaign.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.model.naming import set_name_by_naming_series class Campaign(Document): def auto...
30.6875
81
0.800407
10ac3db1b8b42d233fb1564a76c3609e69bb9798
802
py
Python
Linked List/CycleAtIndex.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Linked List/CycleAtIndex.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Linked List/CycleAtIndex.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
1
2020-02-12T16:57:46.000Z
2020-02-12T16:57:46.000Z
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def getIntersection(self, head): slow = head fast = head while fast is not None and fast.next is not None: slow = slow....
22.277778
57
0.524938
52a67144c07e1467ceae24988244cf76185f1491
38,022
py
Python
warp/workspace/workspace.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
warp/workspace/workspace.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
warp/workspace/workspace.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
# stdlib import os import shutil import time import datetime import subprocess import inspect import functools from copy import deepcopy # extern import networkx as nx # lazyily loaded modules from warp.utils import LazyLoader as LL pd = LL('pd', globals(), 'pandas') yaml = LL('yaml', globals(), 'ya...
44.314685
225
0.587739
52830312ac6ea59c8c74c64cddcdca62ffa4d707
4,315
py
Python
pubs_mover/pubs_mover/spiders/crawler.py
icyphy/icyphy.github.io
192e7f522c1282b3ca03ee11142d2fcf1142b6b6
[ "CC-BY-3.0" ]
null
null
null
pubs_mover/pubs_mover/spiders/crawler.py
icyphy/icyphy.github.io
192e7f522c1282b3ca03ee11142d2fcf1142b6b6
[ "CC-BY-3.0" ]
1
2021-08-27T23:05:43.000Z
2021-08-28T14:35:15.000Z
pubs_mover/pubs_mover/spiders/crawler.py
icyphy/icyphy.github.io
192e7f522c1282b3ca03ee11142d2fcf1142b6b6
[ "CC-BY-3.0" ]
1
2022-03-14T11:38:43.000Z
2022-03-14T11:38:43.000Z
import scrapy import bibtexparser import os import re from bibtexparser.bparser import BibTexParser import hashlib class IcyphySpider(scrapy.Spider): name = 'icyphy_pub' custom_settings = { 'CONCURRENT_REQUESTS': '16' } count = 0 start_urls = [ 'https://ptolemy.berkeley.edu/project...
40.327103
89
0.506373
8721b69ab449961e85527c51d5a9e9d3cf09354d
1,083
py
Python
src/main/python/floatingpoints/floating_points_fixed_worker.py
mkisser-tgm/floating_points
ef6c93c1d1fa5bbb38615c0d2fc7632b31f06e8e
[ "MIT" ]
null
null
null
src/main/python/floatingpoints/floating_points_fixed_worker.py
mkisser-tgm/floating_points
ef6c93c1d1fa5bbb38615c0d2fc7632b31f06e8e
[ "MIT" ]
null
null
null
src/main/python/floatingpoints/floating_points_fixed_worker.py
mkisser-tgm/floating_points
ef6c93c1d1fa5bbb38615c0d2fc7632b31f06e8e
[ "MIT" ]
null
null
null
from floatingpoints.floating_points_fixed_controller import living_point from multiprocessing import Process import random class WorkerProcess(Process): """ Describes a worker Process that processes point coordinates while taking window width, height and max speed into account """ def __init__(self...
31.852941
76
0.647276
d512ecb6f7383042159e3b5bff014c17e9efcca9
110
py
Python
UAS/UAS 10/Class.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
UAS/UAS 10/Class.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
UAS/UAS 10/Class.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
#Class program class Kuis: def __init__(self, soal, jawaban): self.soal = soal self.jawaban = jawaban
22
36
0.7