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
fc54a279a0b15a68004d34c981e62e6b8ccdec4d
271
py
Python
Beginner/03. Python/boot-time.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2021-10-04T05:41:43.000Z
2021-10-04T05:41:43.000Z
Beginner/03. Python/boot-time.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/boot-time.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
import psutil import platform from datetime import datetime print("="*40, "Boot Time", "="*40) boot_time_timestamp = psutil.boot_time() bt = datetime.fromtimestamp(boot_time_timestamp) print(f"Boot Time: {bt.year}/{bt.month}/{bt.day} {bt.hour}:{bt.minute}:{bt.second}")
30.111111
84
0.734317
53904af3d0ccc22a36392a88bb13320439f920d6
515
py
Python
Versuch5/versuch5/task1.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch5/versuch5/task1.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch5/versuch5/task1.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
1
2022-01-06T12:47:53.000Z
2022-01-06T12:47:53.000Z
import redlab as rl print("-------einzelneWerte-------------------------") print("16BitValue:" + str(rl.cbAIn(0, 0, 1))) print("VoltageValue:" + str(rl.cbVIn(0, 0, 1))) print("-------Messreihe-------------------------") print("Messreihe:" + str(rl.cbAInScan(0, 0, 0, 300, 8000, 1))) print("Messreihe:" + str(rl.cbVInSca...
42.916667
62
0.528155
54dd0fbc20403e70c25cf0cf151fb4d0a1b24e2a
2,667
py
Python
src/features/document_frequency.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
1
2015-11-30T09:27:51.000Z
2015-11-30T09:27:51.000Z
src/features/document_frequency.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
src/features/document_frequency.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
# Headers __author__ = 'Somsubhra Bairi' __email__ = 'somsubhra.bairi@gmail.com' # All imports from os import walk, path, stat from extras import Logger # Counts the document frequency of a term class DocumentFrequency: # Constructor for the document frequency def __init__(self, in_dir, out_file, dict_fil...
29.966292
87
0.623922
ab44462fe3373962ba576cf73d474e5b6234942c
3,635
py
Python
haferml/command.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
11
2021-04-17T18:51:45.000Z
2021-06-25T19:42:25.000Z
haferml/command.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
3
2021-04-29T19:24:15.000Z
2021-05-21T04:30:54.000Z
haferml/command.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
2
2021-06-10T00:55:43.000Z
2021-12-30T07:37:07.000Z
import os import time import click import simplejson as json from loguru import logger __CWD__ = os.getcwd() @click.group(invoke_without_command=True) @click.pass_context def haferml(ctx): if ctx.invoked_subcommand is None: click.echo("Hello {}".format(os.environ.get("USER", ""))) click.echo("We...
30.805085
88
0.446217
db7fe378ed9f4a64c12fb277890b27a752456d7f
1,065
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/oracle_creatable_resource.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/oracle_creatable_resource.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/oracle_creatable_resource.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# Copyright (c) 2018, Oracle and/or its affiliates. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): DOCUMENTATION = """ options: force_create: description: Whether to attempt non-idempotent creation of a resource...
50.714286
120
0.631925
37ed054efe1e4a2dca20fa27870a510a677d589f
273
py
Python
scripts/remove_duplicates.py
graylion-wa/world-anvil-generators
f9718517b95997b6dfbc9ab6370d03ab87e40601
[ "MIT" ]
1
2021-06-08T17:34:24.000Z
2021-06-08T17:34:24.000Z
scripts/remove_duplicates.py
graylion-wa/world-anvil-generators
f9718517b95997b6dfbc9ab6370d03ab87e40601
[ "MIT" ]
2
2021-06-23T07:58:38.000Z
2021-06-28T18:00:18.000Z
scripts/remove_duplicates.py
graylion-wa/world-anvil-generators
f9718517b95997b6dfbc9ab6370d03ab87e40601
[ "MIT" ]
1
2021-06-19T10:03:06.000Z
2021-06-19T10:03:06.000Z
if __name__ == '__main__': with open('duplicated_list.txt') as f: names = f.read().split('\n') names = sorted(set(names), key=lambda x: x.lower()) with open('unique_names.txt', 'w') as f: for name in names: f.write(name + '\n')
21
55
0.549451
37f3eaefb4b5c09f05a371b92971948044e4d148
2,605
py
Python
torba/client/basemanager.py
binaryflesh/torba
6788e09ae922df55c9d164d77d351665b4138d10
[ "MIT" ]
4,076
2018-06-01T05:54:24.000Z
2022-03-07T21:05:52.000Z
torba/client/basemanager.py
binaryflesh/torba
6788e09ae922df55c9d164d77d351665b4138d10
[ "MIT" ]
80
2018-06-14T01:02:03.000Z
2019-06-19T10:45:39.000Z
torba/torba/client/basemanager.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
20
2018-06-27T21:52:22.000Z
2022-03-08T11:25:23.000Z
import asyncio import logging from typing import Type, MutableSequence, MutableMapping from torba.client.baseledger import BaseLedger, LedgerRegistry from torba.client.wallet import Wallet, WalletStorage log = logging.getLogger(__name__) class BaseWalletManager: def __init__(self, wallets: MutableSequence[Wall...
32.160494
87
0.634165
5321381505726efcd64b1466476beed32b78202d
766
py
Python
deutschland/bundestag/__init__.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
deutschland/bundestag/__init__.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
deutschland/bundestag/__init__.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """ Bundestag: Live Informationen Bundestag Informationen API # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ __version__ = "1.0.0" # import ApiClient from deutschland.bundestag.api_client import ApiClient # import Configur...
27.357143
62
0.819843
f41a2e4c22e0036606a8d6a94e75570d23e6a48a
1,318
py
Python
GLSC/2021/crypto/Bashing_My_Head_In/passwordgen.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
GLSC/2021/crypto/Bashing_My_Head_In/passwordgen.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
GLSC/2021/crypto/Bashing_My_Head_In/passwordgen.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import time import os import sys class Random: def __init__(self, seed=None): if seed is None: self.seed = int(time.time() * (10 ** 7)) else: try: self.seed = int(seed) except ValueError: raise ValueError("Please use ...
28.652174
95
0.544006
be92074da1096ffc81f2c8588370fb8404ab7483
657
py
Python
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee/employee_dashboard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee/employee_dashboard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee/employee_dashboard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from frappe import _ def get_data(): return { 'heatmap': True, 'heatmap_message': _('This is based on the attendance of this Employee'), 'fieldname': 'employee', 'transactions': [ { 'label': _('Leave and Attendance'), 'items': ['Attendance', 'Leave Application', 'Leave Allocation'] }, { '...
21.9
75
0.564688
60f82787a7ab7a3d0340424bb67079f174f74f0f
2,634
py
Python
src/test/tests/databases/RAW.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/RAW.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/databases/RAW.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: RAW.py # # Tests: mesh - 3D unstructured # plots - Mesh, Pseudocolor, FilledBoundary # # Programmer: Brad Whitlock # Date: Wed Oct 10 12:05:17 PDT 2007 # # Modificatio...
28.021277
78
0.590357
e09408bf2d1ed839ed7d3458f31ea39a98021c72
705
py
Python
Packs/IntegrationsAndIncidentsHealthCheck/Scripts/IncidentsCheck_NumberofTotalEntriesErrors/IncidentsCheck_NumberofTotalEntriesErrors.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/IntegrationsAndIncidentsHealthCheck/Scripts/IncidentsCheck_NumberofTotalEntriesErrors/IncidentsCheck_NumberofTotalEntriesErrors.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/IntegrationsAndIncidentsHealthCheck/Scripts/IncidentsCheck_NumberofTotalEntriesErrors/IncidentsCheck_NumberofTotalEntriesErrors.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 RED_HTML_STYLE = "color:#FF1744;text-align:center;font-size:800%;>" GREEN_HTML_STYLE = "color:#00CD33;text-align:center;font-size:800%;>" def main(): incident = demisto.incidents() query = incident[0].get('CustomFields...
26.111111
81
0.638298
1cd080b13c8c86dfe1efa6752ae089c07f66bab3
347
py
Python
SoSe-21/Code-Vorlesungen/VL-4/Einstieg-Funktionen-1.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/VL-4/Einstieg-Funktionen-1.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/VL-4/Einstieg-Funktionen-1.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Funktion definieren, die Sternchen in die Konsole ausgibt def sternchenausgabe(anzahl_sternchen): for i in range(anzahl_sternchen): print("Brötchen", end=" ") print() print("Hier kommen die Sternchen:") # Ausführen der Funktion sternchenausgabe(5) print("Hier kommen noch mehr:") # Ausführen der Fun...
23.133333
59
0.740634
c71a3095f204f5d917c384056e69ccc6b917679c
7,922
py
Python
tests/onegov/election_day/models/test_archived_result.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/models/test_archived_result.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/models/test_archived_result.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from datetime import datetime from datetime import timezone from onegov.election_day.models import ArchivedResult from tests.onegov.election_day.common import DummyRequest def test_archived_result(session): result = ArchivedResult() result.date = date(2007, 1, 1) result.last_modi...
34.146552
79
0.666751
c73aff7ce8599c82f610ee906373d19270fd6331
38,053
py
Python
Packs/McAfee_ESM-v10/Integrations/McAfee_ESM-v10/McAfee_ESM-v10.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/McAfee_ESM-v10/Integrations/McAfee_ESM-v10/McAfee_ESM-v10.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/McAfee_ESM-v10/Integrations/McAfee_ESM-v10/McAfee_ESM-v10.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 * """ IMPORTS """ import base64 import json import re import sys import requests import time import traceback from datetime import datetime, timedelta from distutils.util import strtobool MAX_CASES_PER_FETCH = 30 # by d...
34.751598
120
0.559036
c79317d6c51cc3314044a391399f4cc1867d5b43
7,614
py
Python
Openharmony v1.0/vendor/hisi/hi35xx/third_party/uboot/arch/arm/mach-rockchip/make_fit_atf.py
clkbit123/TheOpenHarmony
0e6bcd9dee9f1a2481d762966b8bbd24baad6159
[ "MIT" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/device/hisilicon/third_party/uboot/u-boot-2020.01/arch/arm/mach-rockchip/make_fit_atf.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/device/hisilicon/third_party/uboot/u-boot-2020.01/arch/arm/mach-rockchip/make_fit_atf.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ # SPDX-License-Identifier: GPL-2.0+ # # A script to generate FIT image source for rockchip boards # with ARM Trusted Firmware # and multiple device trees (given on the command line) # # usage: $0 <dt_name> [<dt_name> [<dt_name] ...] """ import os import sys import getopt import logging impor...
31.725
104
0.60612
40275c29a9bcff9e0271dbd101082700dd83f07a
1,912
py
Python
sdk/sdk_settings.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
sdk/sdk_settings.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
sdk/sdk_settings.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
import os from base64 import b64decode # Link Server Settings LINK_SERVER_URL = os.getenv("LINK_SERVER_URL", "https://link.example.com/v1/") # Beaker Server Settings BEAKER_SERVER_URL = os.getenv("BEAKER_SERVER_URL", "http://api.example.com/api/v1/service/") BEAKER_API_USERNAME = os.getenv("BEAKER_API_USERNAME", "") ...
39.833333
92
0.807531
2964d5377821e5e68ef2bc1105b705e3e276c8f0
845
py
Python
exercises/de/solution_01_12_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/solution_01_12_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/solution_01_12_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy from spacy.matcher import Matcher nlp = spacy.load("de_core_news_sm") matcher = Matcher(nlp.vocab) doc = nlp( "Dieses Update von iOS ist kein radikales, systemweites Redesign und kein " "Vergleich zum ästhetischen Erlebnis vom Upgrade zu iOS 7. Der Großteil der " "Ausstattung von iOS 11 ist g...
35.208333
83
0.736095
31d426cce5eb4aece85ea21aebe2728c697d834e
1,801
py
Python
src/lcdoc/mkdocs/blacklist/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
src/lcdoc/mkdocs/blacklist/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
src/lcdoc/mkdocs/blacklist/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
""" ## Blacklist When any word of `$blacklisted_words` (e.g. "mypass::mycompany::myuser") occurs in non git ignored sources, we die. This prevents private information being pushed to a public repo. Set `$blacklisted_words` e.g. via `$(pass show my/sensitive_words)` in an environ file. This is run after config is re...
31.051724
87
0.609661
48c0c5e2a901a987c0519dabfe935a1be4aa9ac0
6,495
py
Python
official/cv/yolov3_resnet18/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/yolov3_resnet18/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/yolov3_resnet18/eval.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...
42.175325
118
0.611701
7dc214ac3db752bb4376b6442454e0e4ca6b02e2
591
py
Python
src/onegov/translator_directory/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.utils import module_path from onegov.org.theme import OrgTheme # options editable by the user user_options = { 'primary-color': '#1d487c', } class TranslatorDirectoryTheme(OrgTheme): name = 'onegov.translator_directory.theme' @property def post_imports(self): return super()...
22.730769
70
0.666667
81ba53d01bc8d98bdab6243d6cbb344d80b8cab5
4,604
py
Python
Utils/py/SimsparkTests/main.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/SimsparkTests/main.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/SimsparkTests/main.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf8 -*- import argparse import logging import multiprocessing import shutil import os import Tests from Utils import remove_simspark_logfile def parseArguments(): """ Parses the application arguments and returns the values as Namespace. Errors during parsing and sho...
46.04
194
0.627281
c49fe1a4970917282cd3c4d2c2e974bb024547aa
3,701
py
Python
scripts/signal_marker_processing/notebook/full_initializer.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
scripts/signal_marker_processing/notebook/full_initializer.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
scripts/signal_marker_processing/notebook/full_initializer.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Daniele Borio, Csaba WIRNHARDT # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD from ipywidgets import Button, VBox, HTML import jso...
33.645455
91
0.568765
483bb44614db541844b39a6c7b3744c471ad6dc3
14,991
py
Python
zencad/geom/shape.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/geom/shape.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/geom/shape.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_Transform, BRepBuilderAPI_GTransform from OCC.Core.TopoDS import TopoDS_Shape, TopoDS_Vertex from OCC.Core.BinTools import BinTools_ShapeSet from OCC.Core.TopAbs import TopAbs_WIRE, TopAbs_EDGE, TopAbs_VERTEX, TopAbs_FACE, TopAbs_SOLID, TopAbs_...
33.763514
143
0.647455
6f8b4b5d11624c92efb80d298e1ae453eb519768
2,966
py
Python
insomniac/safely_runner.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
533
2020-06-01T10:40:11.000Z
2022-03-29T17:05:50.000Z
insomniac/safely_runner.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
399
2020-06-01T22:01:55.000Z
2022-03-29T20:39:29.000Z
insomniac/safely_runner.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
166
2020-06-01T21:51:52.000Z
2022-03-12T14:14:44.000Z
from http.client import HTTPException from socket import timeout import adbutils import urllib3 from insomniac import __version__ from insomniac.device_facade import DeviceFacade from insomniac.globals import is_insomniac from insomniac.navigation import LanguageChangedException, close_instagram_and_system_dialogs fr...
42.985507
137
0.666554
96625681e057c10afb6ca7894c7529936f3cf577
398
py
Python
events/urls.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
events/urls.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
events/urls.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( CastingListCreate, CastingRetrieveUpdateDestroy, EventRetrieveUpdateDestroy, ) urlpatterns = [ path("<int:pk>", EventRetrieveUpdateDestroy.as_view(), name="event"), path("<int:pk>/castings", CastingListCreate.as_view(), name="castings"), path("c...
30.615385
86
0.723618
73f78a354b9a5ec3bbe31d9968cbbf3432d60385
8,578
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/ipa_group.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/ipa_group.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/ipa_group.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, 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', ...
32.492424
111
0.631149
580c2babc0fdf7e738e4831b07d3729be95b0c88
7,621
py
Python
python/etc/preprocessing/gates_foundation/gates_foundation_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/etc/preprocessing/gates_foundation/gates_foundation_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/etc/preprocessing/gates_foundation/gates_foundation_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import argparse import csv import datetime import json from os import path import sys from urllib.error import HTTPError, URLError ARG_HELP_STRINGS = { "source_file": "The csv input file", "doi_file": "The additional report containing a PublicationID -> DOI mappi...
39.283505
150
0.625902
546062378561a39aa4900d4e3c2ba2c00c27bcec
2,331
py
Python
fhirclient/r4models/invoice_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/invoice_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/invoice_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07. # 2019, SMART Health IT. import os import io import unittest import json from . import invoice from .fhirdate import FHIRDate class InvoiceTests(unittest.TestCase): def instantiate_from(self, ...
43.166667
112
0.652939
3f9089199545874c95c63f9fd18233a10865a1dd
207
py
Python
exercises/ja/solution_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/solution_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/solution_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# 日本語クラスをインポートし、nlpオブジェクトを作成 from spacy.lang.ja import Japanese nlp = Japanese() # テキストを処理 doc = nlp("私はツリーカンガルーとイルカが好きです。") # 最初のトークンを選択 first_token = doc[0] # 最初のトークンのテキストをプリント print(first_token.text)
14.785714
34
0.768116
b756e27719c4ef29ef1c6f0a9ec0e269bcca040d
4,295
py
Python
gateway-os/software/brain-module/src/main.py
LucasRGoes/ladon-io
ab55219b461e918cc0ba45e6cdc9bcdfbce8c0d6
[ "MIT" ]
1
2018-04-29T22:33:42.000Z
2018-04-29T22:33:42.000Z
gateway-os/software/brain-module/src/main.py
LucasRGoes/ladon-io
ab55219b461e918cc0ba45e6cdc9bcdfbce8c0d6
[ "MIT" ]
null
null
null
gateway-os/software/brain-module/src/main.py
LucasRGoes/ladon-io
ab55219b461e918cc0ba45e6cdc9bcdfbce8c0d6
[ "MIT" ]
null
null
null
## IMPORTS ## import cv2 # OpenCV: usage ranges from interactive art, to mines inspection, stitching maps on the web or through advanced robotics import json # Json: is a lightweight data interchange format inspired by JavaScript object literal syntax import logging # Logging: provides a set of c...
30.899281
139
0.65099
4202cfc4041bece4334ef8fd73cddf92d0073fa2
1,554
py
Python
backend/apps/ineedstudent/migrations/0001_initial.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
backend/apps/ineedstudent/migrations/0001_initial.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
backend/apps/ineedstudent/migrations/0001_initial.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-26 16:07 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('accounts', '0001_initial'), ] oper...
39.846154
156
0.603604
c03e4a73ad70d0c7adb1b8cdaa31816508aefbab
606
py
Python
flask/microblog-db/migrations/versions/38e4ae76378b_user_migrate.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
flask/microblog-db/migrations/versions/38e4ae76378b_user_migrate.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
flask/microblog-login/migrations/versions/38e4ae76378b_user_migrate.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
"""user migrate Revision ID: 38e4ae76378b Revises: acd5f325d4e7 Create Date: 2019-04-14 17:27:18.271469 """ # revision identifiers, used by Alembic. revision = '38e4ae76378b' down_revision = 'acd5f325d4e7' from alembic import op import sqlalchemy as sa def upgrade(): # ### commands auto generated by Alembic -...
22.444444
74
0.679868
2259ce845dc91fd1456b7f11543a0b3390ef9e0c
604
py
Python
ALP4/U7/plot.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
ALP4/U7/plot.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
ALP4/U7/plot.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
from math import pow from matplotlib import pyplot as plt def plotGraphic(): # Aufgabe 4 a) plt.plot([1, 1, 2, 3, 4, 5, 6, 7, 8, 16, 32], [2.119 * pow(10, -4), 3.147 * pow(10, -4), 5.210 * pow(10, -4), 2.805 * pow(10, -3), 2.881 * pow(10, -3), 1.0852 * pow(10, -3), 1.258 * pow(10, -3), 1.5128 * pow(10, -3), 1.357 * ...
35.529412
288
0.597682
3f54476a1851d8ae8caedfce60fa64db264d518e
278
py
Python
fg/tournaments/admin.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
fg/tournaments/admin.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
fg/tournaments/admin.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Player, Person, Tournament, TournamentPlayer, TournamentPick admin.site.register(Person) admin.site.register(Player) admin.site.register(Tournament) admin.site.register(TournamentPlayer) admin.site.register(TournamentPick)
27.8
80
0.838129
18967e558816d6a5e897b6b22dec7a50863db2fc
384
py
Python
Language Proficiency/Python/Collections/collections.Counter()/counter.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Language Proficiency/Python/Collections/collections.Counter()/counter.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Language Proficiency/Python/Collections/collections.Counter()/counter.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import Counter if __name__ == "__main__": num_shoes = int(input()) shoes = Counter(map(int, input().split())) num_customers = int(input()) res = 0 for i in range(num_customers): size, price = map(int, input().split()) if shoes[size]: ...
20.210526
47
0.567708
18d2cf1a13fd80685873f24ace26cf8cc335c998
2,200
py
Python
src/config_db/tests/test_cli.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
2
2019-07-15T09:49:34.000Z
2019-10-14T16:04:17.000Z
src/config_db/tests/test_cli.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
17
2019-07-15T14:51:50.000Z
2021-06-02T00:29:43.000Z
src/config_db/tests/test_cli.py
ska-telescope/sdp-configuration-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
1
2019-10-10T08:16:48.000Z
2019-10-10T08:16:48.000Z
"""Tests for sdpcfg command line utility.""" # pylint: disable=missing-docstring import os from datetime import date import pytest from ska_sdp_config import cli PREFIX = "/__test_cli" def test_cli_simple(capsys): if os.getenv("SDP_TEST_HOST") is not None: os.environ["SDP_CONFIG_HOST"] = os.getenv("S...
25.287356
76
0.571818
8345c8da4cddc0217b78e235bc389214f80b5009
28,746
py
Python
hintstool/gui.py
TU-Blueberry/hintstool
4d4b988354337d9055de88729688734bfbf9c053
[ "MIT" ]
null
null
null
hintstool/gui.py
TU-Blueberry/hintstool
4d4b988354337d9055de88729688734bfbf9c053
[ "MIT" ]
null
null
null
hintstool/gui.py
TU-Blueberry/hintstool
4d4b988354337d9055de88729688734bfbf9c053
[ "MIT" ]
null
null
null
import argparse import re from abc import ABC, abstractmethod from enum import Enum import PySimpleGUI as sg import yaml from pathlib2 import Path """ Simple tool to simplify the creation of hints for the learning platform. The tool preserves the existing IDs and adds a given prefix to new entries. These ...
36.387342
111
0.605893
3d2d7a7af2f3310e8ada0680963983b7ca6dbdb6
212
py
Python
checklisten/admin.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/checklisten/admin.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/checklisten/admin.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.contrib import admin from simple_history.admin import SimpleHistoryAdmin from .models import Checkliste, Aufgabe, ChecklisteAufgabe, ChecklisteRecht admin.site.register(Aufgabe, SimpleHistoryAdmin)
30.285714
75
0.858491
3d46b13b5a939271da7c2dbfeab9e3559e5069f6
9,360
py
Python
python/DeepLearning/lesson1/week2/homework/main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/DeepLearning/lesson1/week2/homework/main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/DeepLearning/lesson1/week2/homework/main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # @Time:2021/4/30 16:39 # @Author:TimVan # @File:main.py # @Software:PyCharm import numpy import numpy as np import matplotlib.pyplot as plt from lr_utils import load_dataset print("\n") train_set_x_orig, train_set_y, test_set_x_orig, test_set_y, classes = load_dataset() index = 25 # # plt.imsho...
28.623853
138
0.598611
183e9acf0ab4287666bd0b59af5515d60ea7608a
751
py
Python
SQL_python/DataBasePython/py_update.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
SQL_python/DataBasePython/py_update.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
SQL_python/DataBasePython/py_update.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
import psycopg2 def update_vendor(vendor_id, vendor_name): """ update vendor name based on the vendor id """ sql = """ UPDATE vendors SET vendor_name = %s WHERE vendor_id = %s""" conn = None updated_rows = 0 try: conn = psycopg2.connect("dbname='pos...
25.033333
103
0.552597
a1505b8ac532ece9d8249c9eec16f3d87b3ba81c
2,679
py
Python
Voting_Orig.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
Voting_Orig.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
Voting_Orig.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
import random votes = [] Rollennummer = 1 # Spieler ID gesamt_spieler = [] # Ort zum Sammeln aller Spielernamen spieler_nummer = {} # Ort zum Sammeln von Spieler ID und zugewiesener Spieler for x in range(0, 4): # 4 Spieler eingeben spielername = input("Was ist ihr Spielername? ") # Spielernamen ...
30.443182
120
0.661814
62baafad65068b359dd971b75d527e8931ceffe8
717
py
Python
python/clipboard_yvid.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/clipboard_yvid.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/clipboard_yvid.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
""" Script for fetching youtube video ID as url appear in clipboard """ PATTERN=r'(https:\/\/www\.youtube\.com\/watch\?v=)(\w+)' FORMAT = '%Y-%m-%d %H:%M:%S' from time import strftime as now from time import sleep import sys import os from time import strftime, strptime sys.path.append(os.path.abspath("SO_site-packag...
24.724138
63
0.663877
9ad1c5cf85ce21dee90a8fce3bbf6284228c3fd8
3,898
py
Python
frappe-bench/apps/erpnext/erpnext/buying/utils.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/buying/utils.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/buying/utils.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# 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.utils import flt, cstr, cint from frappe import _ import json from erpnext.stock.doctype.item.item import get_last_purchase_d...
37.480769
107
0.727553
49326b7f76171a6e4c3018363dc191db9d2b6e72
8,565
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/gsl_function.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/gsl_function.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/gsl_function.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/env python # Author : Pierre Schnizer """ Collection of Callbacks systems for pygsl. They follow the GSL definitions as close as possible. Instead os a struct python classes are used. All solvers accept a C void pointer, which is passed to the callback. In Pygsl this is an abitrary python object. See the...
26.682243
79
0.585873
7714abfb3833ec9bc2891a58542eb38f6ae8b607
2,910
py
Python
Packs/X509Certificate/Scripts/CertificateExtract/CertificateExtract_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/X509Certificate/Scripts/CertificateExtract/CertificateExtract_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/X509Certificate/Scripts/CertificateExtract/CertificateExtract_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto import pytest @pytest.fixture(autouse=True) def handle_calling_context(mocker): mocker.patch.object(demisto, 'callingContext', {'script': True}) def load_json_data(path): import json with open(path, 'r') as f: return json.load(f) def test_pem(): """ Given...
29.1
90
0.690378
65b62656aad49e1c98f650f3f820e27481bec52b
1,217
py
Python
Algorithms/Search/CountLuck.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Search/CountLuck.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Search/CountLuck.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 T = int(raw_input()) def dfs(cell, count, grid, N, M): global Count, seen x, y = cell if grid[x][y] == '*': Count = count return seen.add((x, y)) directions = [] #up if x>0 and (x-1, y) not in seen and grid[x-1][y] != 'X': directions.append((x-1, y)) ...
22.127273
62
0.477403
65e92a86ccaceb1827941b6d6af0dc8d7d4e7d4c
725
py
Python
utest/convert.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
utest/convert.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
utest/convert.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import unittest import zencad from functools import cmp_to_key import evalcache import zencad.util import os import tempfile class ConvertProbe(unittest.TestCase): def setUp(self): zencad.lazy.encache = False zencad.lazy.decache = False zencad.lazy.fastdo = True def test_stl_probe(se...
25.892857
56
0.65931
b8901880b11ca02122efe27dfafad4f96463cfcf
910
py
Python
IVTp/2014/Karamyan/Karamyan 4_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Karamyan/Karamyan 4_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Karamyan/Karamyan 4_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 8. # Напишите программу, которая выводит имя, под которым скрывается # Карамян Н.Г. # 18.05.2016 real_name = 'Алексей Максимович Пешков' p_name = 'Максим Горький' interests = ('Проза и драматургия') born_place = 'Новгород' born_year = 1868 death_year = 1936 death_oldness = death_year...
36.4
162
0.681319
b29e0b3f34535f8ecbc5547f21dbf6f4c4f63427
237
py
Python
exercises/pt/solution_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/solution_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/solution_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Importe a biblioteca spaCy import spacy # Crie um objeto nlp do Alemão nlp = spacy.blank("de") # Processe o texto (equivalente ao português: "Atenciosamente") doc = nlp("Liebe Grüße!") # Imprima o texto do documento print(doc.text)
19.75
63
0.734177
a757267767ef990769352991168a516915aa1b20
4,062
py
Python
PathPlanning/planning_framework.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
null
null
null
PathPlanning/planning_framework.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
null
null
null
PathPlanning/planning_framework.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
1
2020-09-25T18:31:34.000Z
2020-09-25T18:31:34.000Z
import numpy as np import os import matplotlib.pyplot as plt def get_neighborhood(cell, occ_map_shape): """ @params cell - cell coordinates occ_map_shape - shape of the occupancy map returns - list of neighbor coordinate tuples """ result = [] for i in [-1, 0, 1]: ...
25.54717
83
0.582718
ac54a99cf5cf81a6af8f7077351e33bd532120b0
2,729
py
Python
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/rendering_angular_gauge_using_dictionary_example.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
30
2018-04-01T09:08:40.000Z
2022-01-23T07:30:07.000Z
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/rendering_angular_gauge_using_dictionary_example.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
14
2018-07-17T08:33:35.000Z
2021-09-29T17:26:15.000Z
asset/integrations/django/samples/fusioncharts/samples/rendering_angular_gauge_using_dictionary_example.py
Piusshungu/catherine-junior-school
5356f4ff5a5c8383849d32e22a60d638c35b1a48
[ "MIT" ]
17
2016-05-19T13:16:34.000Z
2021-04-30T14:38:42.000Z
from django.shortcuts import render from django.http import HttpResponse # Include the `fusioncharts.py` file which has required functions to embed the widget in html page from ..fusioncharts import FusionCharts from collections import OrderedDict # Loading Data from a Ordered Dictionary # Example to create a Angula...
36.878378
120
0.648223
3bdbe8887b29262d9c774ff897f7ed52bf0c9043
508
py
Python
BITs/2014/Borsheva_ V_O/task_4_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Borsheva_ V_O/task_4_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Borsheva_ V_O/task_4_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача4. Вариант 6 #Компьютер выводит имя, под которым скрывается София Шиколоне,выводит область интересов, место рождения, годы рождения и смерти. #Борщёва В.О #14.03.2016 print ("София Шиколоне известна, как итальянская актриса и певица Софи Лорен.") born= 1934 years= 2016- born place="Рим, Италия" inte...
29.882353
129
0.724409
b2bbe5b319838eb49a2ecbff8996b86c5388e3eb
5,324
py
Python
research/cv/ProtoNet/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/ProtoNet/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/ProtoNet/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.492958
117
0.674493
041a912d695ea806ef10f363031f7a313b3986e6
1,740
py
Python
Packs/CommonScripts/Scripts/RepopulateFiles/RepopulateFiles.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/RepopulateFiles/RepopulateFiles.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/RepopulateFiles/RepopulateFiles.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import os from CommonServerPython import * def parse_attachment_entries(entries): # list -> list """Parse the attachments entries. Args: entries: entries of attachments. Returns: List of entry context dict containing the attachments metadata. """ entry_context = [] for e...
29
83
0.559195
0431a2d751e12ab5c7947ca1a1698fa6dd5794e1
938
py
Python
Course_1/Week_01/1_Karatsuba_Multiplication.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
Course_1/Week_01/1_Karatsuba_Multiplication.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
1
2020-07-16T08:03:22.000Z
2020-07-16T08:09:34.000Z
Course_1/Week_01/1_Karatsuba_Multiplication.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
from functools import lru_cache def split_number(number): length = len(number) if length % 2 == 0: index = int(length // 2) else: index = int(length // 2 + 1) return int(number[: index]), int(number[index :]) @lru_cache() def multiply(x, y): x = str(x) y = str(y) # for numbers with different lengths padd...
17.698113
50
0.56823
a894f8e0a31fed2e1085334ad6999493560dd511
3,741
py
Python
tests/test-icarthash.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
tests/test-icarthash.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
tests/test-icarthash.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017, Joseph deBlaquiere <jadeblaquiere@yahoo.com> # All rights reserved # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this ...
32.530435
80
0.59984
4f291a8c0c08057f4b21c0f78c9a3c67de63fb94
1,441
py
Python
tests/envs/base/shin_env_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
tests/envs/base/shin_env_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
tests/envs/base/shin_env_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
import chex import gym import jax.numpy as jnp from shinrl import EnvConfig, ShinEnv @chex.dataclass class MockConfig(EnvConfig): dS: int = 10 dA: int = 5 discount: float = 0.99 horizon: int = 10 class MockEnv(ShinEnv): def __init__(self, config): super().__init__(config) @property...
23.622951
78
0.611381
4f4dd510b05f3b361aa7bd08b35cee945155e7d0
153
py
Python
apps/grolsch/admin.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
1
2017-01-08T13:21:43.000Z
2017-01-08T13:21:43.000Z
apps/grolsch/admin.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
17
2018-12-03T14:22:14.000Z
2021-07-14T15:15:12.000Z
apps/grolsch/admin.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
2
2018-12-03T14:58:49.000Z
2019-12-01T13:24:42.000Z
from django.contrib import admin from apps.grolsch import models admin.site.register(models.Product) admin.site.register(models.UnresolvedPriceChange)
21.857143
49
0.843137
8c87c4e3d3e07c19b58b3c1e70585460e114fc4b
530
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_0/remove_administrator_role_in_doctypes.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v7_0/remove_administrator_role_in_doctypes.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/remove_administrator_role_in_doctypes.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe def execute(): frappe.db.sql("""delete from tabDocPerm where role="Administrator" and parent in ("Payment Gateway", "Payment Gateway Account", "Payment Request", "Academic Term", "Academic Year", "Course", "Course Schedule", "Examination", "Fee Category", "Fe...
58.888889
130
0.726415
e885d3b99ea9a72b36805ca792df2f623e473772
554
pyde
Python
sketches/natureOfCode/chapter01/bbvector/bbvector.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/natureOfCode/chapter01/bbvector/bbvector.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/natureOfCode/chapter01/bbvector/bbvector.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
r = 15 def setup(): global location, velocity size(640, 360) this.surface.setTitle("Bouncing Ball with PVectors") location = PVector(100, 100) velocity = PVector(2.5, 5) def draw(): background(235, 215, 182) location.add(velocity) # check boundaries if (location.x > width - r) or (...
25.181818
56
0.597473
e88c23d3735c56a51da5c366e716340153d8c25c
831
py
Python
RESTApi/flaskapp/jsonParser.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
null
null
null
RESTApi/flaskapp/jsonParser.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
32
2018-06-19T15:27:04.000Z
2018-09-30T20:17:23.000Z
RESTApi/flaskapp/jsonParser.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
null
null
null
import json class JsonParser(): def __init__(self, jsonFilePath): self.file_path = jsonFilePath self.data = None def parse(self): try: with open(self.file_path, "r") as read_file: self.data = json.load(read_file) except: return False ...
25.96875
56
0.505415
d700b52391d375278bcf7f6bff309408ad90b6fd
2,779
py
Python
test/defense/dp/test_dpsgd.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
24
2021-11-17T02:16:47.000Z
2022-03-27T01:04:08.000Z
test/defense/dp/test_dpsgd.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
9
2021-12-03T06:09:27.000Z
2022-03-29T06:33:53.000Z
test/defense/dp/test_dpsgd.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
5
2022-01-12T09:58:04.000Z
2022-03-17T09:29:04.000Z
def test_dpsgd(): import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import TensorDataset from aijack.defense import GeneralMomentAccountant, PrivacyManager torch.manual_seed(0) lot_size = 1 batch_size = 1 itera...
28.070707
78
0.596977
ad0719f3f50fc0c6bafda4671409802de12d78ed
3,270
py
Python
init/Param.py
Berni1557/MDDoc
06dd3cae302e6f125ebfbb2fc513bb754d72f07d
[ "BSD-3-Clause" ]
null
null
null
init/Param.py
Berni1557/MDDoc
06dd3cae302e6f125ebfbb2fc513bb754d72f07d
[ "BSD-3-Clause" ]
null
null
null
init/Param.py
Berni1557/MDDoc
06dd3cae302e6f125ebfbb2fc513bb754d72f07d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from xml.dom import minidom class Param: doc = None xmlpath = None params = dict() def __init__(self, xmlpath): self.xmlpath = xmlpath self.params['AnacondaPath01']=None self.params['AnacondaPath02']=None self.params['UIPath']=None ...
40.37037
132
0.662691
ad3483400b5ead72a22676fd70d3dbd604bdc4dd
375
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 88/88.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 88/88.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 88/88.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Create a script that uses countries_by_area.txt file as data sourcea and prints out the top 5 most densely populated countries import pandas data = pandas.read_csv("countries_by_area.txt") data["density"] = data["population_2013"] / data["area_sqkm"] data = data.sort_values(by="density", ascending=False) for index,...
34.090909
127
0.752
0f2832a6094b4b864368b114457bf1a8d6a88e5f
2,099
py
Python
research/nlp/dam/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/dam/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/dam/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.365385
102
0.708909
0f28cd9dfbec693a4850d5209d7c9a3848fec630
14,001
py
Python
Packs/Gurucul/Integrations/GuruculGRA/GuruculGRA.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Gurucul/Integrations/GuruculGRA/GuruculGRA.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Gurucul/Integrations/GuruculGRA/GuruculGRA.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 ''' IMPORTS ''' import traceback from typing import Any, Dict, List, Optional, Tuple, cast import dateparser import urllib3 # Disable insecure warnings urllib3.disable_warnings() ''' CONSTANTS ''' MAX_INCIDENTS_TO_FETCH = 25...
40.465318
118
0.606814
0e1b8164c48500c53623520cfe773a430d4ffef5
29,093
py
Python
research/cvtmodel/resnet_ipl/src/resnet51q.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/resnet_ipl/src/resnet51q.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/resnet_ipl/src/resnet51q.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
import mindspore.ops as P from mindspore import nn class Module0(nn.Cell): def __init__(self, conv2d_0_in_channels, conv2d_0_out_channels, conv2d_0_kernel_size, conv2d_0_padding, conv2d_0_pad_mode, conv2d_3_in_channels, conv2d_3_out_channels, conv2d_3_stride, conv2d_3_group): super(Module...
57.045098
114
0.478844
0e9bf673da2df85ce8b23a0c2c43186e1e876484
67,903
py
Python
isp/safrs.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
isp/safrs.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
isp/safrs.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ safrs ===== swagger yaml definition ----------------------- The definition is at the beginning of the docstring and starts with ``.. restdoc::`` for sphinx It can be terminated with ``----`` to add further documentation for sphinx example :: description - summary - args -...
31.407493
209
0.517901
7ef783d43712d00f8311c9bb6f3b9056cbefc5c0
162
py
Python
Licence 2/I33/TP 4/ex_8.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/TP 4/ex_8.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/TP 4/ex_8.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
def gen_circulante2(k, t): L = [k] for i in range(1, t): a = L[i-1] & 1 b = a << (t - 1) L.append((L[i-1] >> 1) ^ b) return L
20.25
35
0.388889
bc2660b113e7caea479386b0b9c3e05f03d7f256
3,653
py
Python
python/oneflow/test/modules/test_smoothl1loss.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-09-13T02:34:53.000Z
2021-09-13T02:34:53.000Z
python/oneflow/test/modules/test_smoothl1loss.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_smoothl1loss.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-01-17T03:34:39.000Z
2021-01-17T03:34:39.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
34.140187
82
0.675609
70c41086318d6f9e30dee6776b205bbbb6893c61
536
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Backup/Backup.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/Backup/Backup.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/Backup/Backup.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
94
2016-06-16T10:49:07.000Z
2022-03-28T09:14:03.000Z
from mongodb_consistent_backup.Backup.Mongodump import Mongodump # NOQA from mongodb_consistent_backup.Pipeline import Stage class Backup(Stage): def __init__(self, manager, config, timer, base_dir, backup_dir, replsets, backup_stop=None, sharding=None): super(Backup, self).__init__(self.__class__.__name...
48.727273
112
0.718284
cb7c3f1fdd2905291cdbce95baf33b199102a0ed
285
py
Python
quark_core_api/exceptions/context_exceptions.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/exceptions/context_exceptions.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/exceptions/context_exceptions.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
from future.builtins import super class ContextException(Exception): pass class InvalidContextException(Exception): def __init__(self, ctx): super().__init__( "Invalid context of type '{}' has been provided." .format(type(ctx).__name__))
23.75
61
0.65614
69beef79bb3f42a2da65e5570cf406c8ceb311e5
1,539
py
Python
project/services/user.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/services/user.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/services/user.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from flask_security import hash_password from project import user_datastore from project.models import Role, User def create_user(email, password): return user_datastore.create_user(email=email, password=hash_password(password)) def add_roles_to_user(email, roles): user = find_user_by_email(email) if ...
25.65
84
0.762833
0e06fd442b1ad8ced4321d8be4b34166cc88ca6b
11,494
py
Python
src/tools/fx/movietools/imageops.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/tools/fx/movietools/imageops.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/tools/fx/movietools/imageops.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import os, pickle, Image, movietools, arial ############################################################################### # Class: ImageOpsBase # # Purpose: This class is responsible for managing and processing a list # of image operations. # # Programmer: Brad Whitlock # Date: Wed Dec 18 11:33:...
34.830303
103
0.589873
38cc78c8b25adffdfd2f492ea91f82c4d075b43a
1,632
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/63a1/src/searching/searching.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/63a1/src/searching/searching.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/63a1/src/searching/searching.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
def linear_search(arr, target): ''' procedure linear_search (arr, target) for each item in arr: if match item == target: return the item's location end procedure ''' for item in range(len(arr)): if arr[item] == target: return item return -1 # ...
29.142857
77
0.536152
38d8bfd8ee3f175c72da2859301e436c6f5b0e89
28,564
py
Python
models/criterions/SNAP_Res.py
scott-mao/CroP
f1e0a25224e341683cf47e7ce451ce0fe996e950
[ "MIT" ]
null
null
null
models/criterions/SNAP_Res.py
scott-mao/CroP
f1e0a25224e341683cf47e7ce451ce0fe996e950
[ "MIT" ]
null
null
null
models/criterions/SNAP_Res.py
scott-mao/CroP
f1e0a25224e341683cf47e7ce451ce0fe996e950
[ "MIT" ]
1
2021-11-08T16:34:45.000Z
2021-11-08T16:34:45.000Z
import copy import os import types from collections import OrderedDict import numpy as np import torch import torch.nn.functional as F from torch import nn from models.criterions.General import General from models.networks.assisting_layers.GateDecoratorLayers import GatedBatchNorm from utils.constants import SNIP_BAT...
43.60916
141
0.496009
2ac7d16b1d8bcb9e6e62e24537567ec6ca6d821f
42
py
Python
Beginner/03. Python/helloWorld.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
3
2021-03-16T16:44:04.000Z
2021-06-07T17:32:51.000Z
Beginner/03. Python/helloWorld.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2020-10-03T16:21:40.000Z
2020-10-03T16:21:40.000Z
Beginner/03. Python/helloWorld.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
2
2020-10-12T15:58:02.000Z
2020-10-20T05:31:11.000Z
print("Hello there! This is Saurav Gupta")
42
42
0.761905
2da302b0b03171512b6f02a709c34d5ba768a877
1,110
py
Python
coco2yolov5-converter/tests/converter/test_yaml_util.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
coco2yolov5-converter/tests/converter/test_yaml_util.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
coco2yolov5-converter/tests/converter/test_yaml_util.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
# disabling PyLint docstring, no self using # pylint: disable=C0114,C0115,C0116,R0201 import tempfile from pathlib import Path import yaml from src.converter.yaml_util import YamlUtil class TestYamlUtil: def test_write_yaml(self): with tempfile.TemporaryDirectory() as tmp_dir: yaml_config_path...
38.275862
77
0.584685
2de356081c87befecfbf892deb6e329b3fab0eae
15,275
py
Python
rbac/common/protobuf/user_transaction_pb2.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
rbac/common/protobuf/user_transaction_pb2.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2019-07-08T22:32:43.000Z
2019-07-08T22:32:43.000Z
rbac/common/protobuf/user_transaction_pb2.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: user_transaction.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection ...
43.028169
1,216
0.727594
9364e8e0fb7031ddfc7f19fed6854e2e45a5db15
2,077
py
Python
synFlood.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
synFlood.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
synFlood.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# -*- coding: utf-8 -*- # @Author: lock # @Date: 2016-11-20 23:43:09 # @Last Modified by: lock # @Last Modified time: 2016-11-21 10:34:32 # coding=UTF-8 #用 Scapy 简单的复制一个 TCP SYN 洪水攻击,将制作一些 IP 数据包, TCP 513 目标端口。 #运行攻击发送 TCP SYN 数据包耗尽目标主机资源,填满它的连接队列,基本瘫 痪目标发送 TCP 重置包的能力。 #netstat -an 大量的半链接状态 SYN_RECV import optpa...
29.253521
118
0.68416
ea269a4e8ce90fe8a09f8db8bc504f646e26155a
632
py
Python
WiSe-2122/Wiederholung/Vorlesung/schleifen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Wiederholung/Vorlesung/schleifen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Wiederholung/Vorlesung/schleifen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# for - Schleife # läuft für eine fest vorgebene Anzahl von Durchläufen for zeilen in range(1,11): print("Zeile Nr.", zeilen, end=" ") for spalten in range(1,11): print("_", end =" ") print() # while - Schleife # läuft solange, bis eine Abbruchbedingung eintritt falsche_aussage = True while fa...
26.333333
72
0.655063
ea3c90899f7b16c199e9e45105957ca0c66f1775
2,140
py
Python
notebook_converter.py
Blacksuan19/blacksuan19.github.io
b071cd77f08865496a2b461110e19deda241b743
[ "CC-BY-3.0" ]
12
2019-06-10T08:11:58.000Z
2021-11-27T14:47:55.000Z
notebook_converter.py
Blacksuan19/blacksuan19.github.io
b071cd77f08865496a2b461110e19deda241b743
[ "CC-BY-3.0" ]
12
2019-12-17T05:27:16.000Z
2021-12-05T17:29:28.000Z
notebook_converter.py
Blacksuan19/blacksuan19.github.io
b071cd77f08865496a2b461110e19deda241b743
[ "CC-BY-3.0" ]
13
2019-10-03T02:42:52.000Z
2020-10-06T02:32:06.000Z
#!/usr/bin/env python """ notebook_converter.py Copyright 2021 Abubakar Yagoub Contact: blacksuan19.dev This script converts a jupyter notebook to markdown and moves converted markdown to posts and images to assets. Requirements: - jupyter (for converting notebooks to md) - imagemagick (for adding background to imag...
26.75
82
0.676636
ea773379fa27a9afe2eb97f530184ef06715d487
744
py
Python
hourglass2d.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
hourglass2d.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
hourglass2d.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # https://www.hackerrank.com/challenges/2d-array/problem def hourglassSum(arr): hgSum = [] for row in range(0, 4): for column in range(0, 4): add = sum(arr[row][column:column + 3]) + arr[row + ...
20.666667
110
0.548387
ea9850d8b6101aaed24c23a5f71a4baf64a2d9cb
727
py
Python
lib/AccessLogger.py
TechLabCommunity/SaintPeterTalent
eb80237de4d73f3a99e82e02edb714f5057bd559
[ "MIT" ]
1
2019-01-03T12:59:19.000Z
2019-01-03T12:59:19.000Z
lib/AccessLogger.py
TechLabCommunity/SaintPeterTalent
eb80237de4d73f3a99e82e02edb714f5057bd559
[ "MIT" ]
null
null
null
lib/AccessLogger.py
TechLabCommunity/SaintPeterTalent
eb80237de4d73f3a99e82e02edb714f5057bd559
[ "MIT" ]
null
null
null
import logging import os from logging.handlers import RotatingFileHandler class AccessLogger: def __init__(self, filename): if not os.path.exists('./log'): os.makedirs('./log') log_formatter = logging.Formatter('%(asctime)s %(levelname)s %(funcName)s(%(lineno)d) %(message)s') l...
36.35
107
0.672627
57e46d0cff595659163e5369aad7c66538d3f46a
1,184
py
Python
t1nkuy/apps/goods/views_base.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
t1nkuy/apps/goods/views_base.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
t1nkuy/apps/goods/views_base.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'bobby' from django.views.generic.base import View from goods.models import Goods # from django.views.generic import ListView class GoodsListView(View): def get(self, request): """ 通过django的view实现商品列表页 :param request: :return: ...
28.878049
60
0.581081
5e0337c200eeebda07a70ccdf3ce462e54cb2b49
2,288
py
Python
beispielanwendungen/sound/main2.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
5
2017-03-11T13:27:27.000Z
2022-01-09T10:52:05.000Z
beispielanwendungen/sound/main2.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
2
2021-02-14T10:59:59.000Z
2021-10-30T21:46:32.000Z
beispielanwendungen/sound/main2.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
1
2019-08-07T03:08:18.000Z
2019-08-07T03:08:18.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python import sys import wave from PyQt4 import QtCore, QtGui, QtMultimedia def main(argv): app = QtGui.QApplication(argv) main = MainWindow() main.show() sys.exit(app.exec_()) class MainWindow(QtGui.QWidget): def __init__(self, *args...
28.6
69
0.60271
5e173fabeb2b9b3376fc48cf3e21c077c2bcea9f
38,556
py
Python
research/cvtmodel/hrnet/src/hrnet_w18_small.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/hrnet/src/hrnet_w18_small.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/hrnet/src/hrnet_w18_small.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
import mindspore.ops as P from mindspore import nn class Module3(nn.Cell): def __init__(self, conv2d_0_in_channels, conv2d_0_out_channels, conv2d_0_kernel_size, conv2d_0_stride, conv2d_0_padding, conv2d_0_pad_mode): super(Module3, self).__init__() self.conv2d_0 = nn.Conv2d(in_chan...
56.368421
118
0.469032
dc5234e8fa63994466d8fe50c102cbacea17eec6
133
py
Python
ACM Training/2018-08-02 牛客多校第五场/B.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
ACM Training/2018-08-02 牛客多校第五场/B.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
ACM Training/2018-08-02 牛客多校第五场/B.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
m = int(input()) a, b = 0, 2 while b < m: a, b = b, b * 6 - a c, d = 0, 6 while d < m: c, d = d, d * 14 - c print(min(b, d))
14.777778
24
0.406015
dc89d3338257e34853e5749f7b0b5162669a0244
645
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-010/pg-10.7-2-search-number-thoure-computer.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-010/pg-10.7-2-search-number-thoure-computer.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-010/pg-10.7-2-search-number-thoure-computer.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
import random number = random.randint(1, 1000) attempts = 0 low = 1 high = 1000 while True: print("Guess the number (between 1 and 1000):") input_number = (low + high) // 2 # only integer print("My guess is", input_number) attempts += 1 if input_number == number: print("Yes, your guess is ...
29.318182
65
0.634109
dc9ec370893f2ca5ef7d374c099857ce5d0f15f9
160
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 25/25.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
50-Python-Exercises/Exercises/Exercise 25/25.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
50-Python-Exercises/Exercises/Exercise 25/25.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Make a script that prints out letters of English alphabet from a to z import string for letter in string.ascii_lowercase: print(letter) #Video question
17.777778
70
0.775
df87f9c906e2e0bfc7bfc43a5fbe9a20e2c77be7
384
py
Python
RunFaster/simple_workouts/simple_2.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/simple_workouts/simple_2.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/simple_workouts/simple_2.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
from multiprocessing import Manager def execute_queue(): colors = ['red', 'green', 'white', 'blue', 'orange'] que_obj = Manager().Queue() for x in colors: print("Adding: {x} - color".format(x=x)) que_obj.put(x) while not que_obj.empty(): print("Getting: {x} - color".format(x=...
22.588235
61
0.598958
33c60ecfbf8819378438c6f65ed26343125d79e5
1,540
py
Python
Pwn2Win/2021/misc/lost_exponent/encode.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Pwn2Win/2021/misc/lost_exponent/encode.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Pwn2Win/2021/misc/lost_exponent/encode.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from math import sqrt from random import seed, shuffle from lost import e, flag from itertools import product from numpy import sign, diff assert flag.startswith('CTF-BR{') seed(6174) n = int(sqrt(len(flag))) + 2 order = list(product(range(n), repeat=2)) shuffle(order) order.sort(key=(lambda x: sign(diff(x)))) clas...
23.333333
71
0.533766
1d9fd20d614af08ad371898df23753e84fc5e920
3,039
py
Python
dtdocker/containers/MssqlContainer.py
oxsoftdev/dt-docker
8ba30bf5ca2a7b89f3c7658a7768b16dbf8514a5
[ "MIT" ]
null
null
null
dtdocker/containers/MssqlContainer.py
oxsoftdev/dt-docker
8ba30bf5ca2a7b89f3c7658a7768b16dbf8514a5
[ "MIT" ]
null
null
null
dtdocker/containers/MssqlContainer.py
oxsoftdev/dt-docker
8ba30bf5ca2a7b89f3c7658a7768b16dbf8514a5
[ "MIT" ]
null
null
null
import os import time import logging from constants import BASEPATH from ._ContainerMixin import ContainerMixin from ..metaclasses import Singleton logger = logging.getLogger('dt-docker') class MssqlContainer(ContainerMixin, metaclass=Singleton): def __init__(self, client): self.client = client ...
29.504854
78
0.521553
6359db60ceb647ac668709bc75800f096face672
710
py
Python
webinterface/templatetags/webinterface_filters.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
webinterface/templatetags/webinterface_filters.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
webinterface/templatetags/webinterface_filters.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
from django import template from django.template.defaultfilters import stringfilter register = template.Library() @register.filter(is_safe=True) @stringfilter def truncatechars_noellipses(value, arg): """Truncate a string after `arg` number of characters.""" try: length = int(arg) except ValueErr...
28.4
70
0.695775
63ba3b320499017e6a33546b7c7c5598da5d56f2
1,230
py
Python
haas_lib_bundles/python/docs/examples/rc522_write_read/haas506/code/read.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/rc522_write_read/haas506/code/read.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/rc522_write_read/haas506/code/read.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import mfrc522 import utime as time def do_read(rdr): print("enter do_read()") try: (stat, tag_type) = rdr.request(rdr.REQIDL) if stat == rdr.OK: (stat, raw_uid) = rdr.anticoll() if stat == rdr.OK: print("New card detected") print(" - tag type: 0x%02x" % tag_type) print(" - uid : 0x%02x%02x...
25.625
93
0.6
63d17ea70fbe42d43f20ea9b1a7b5bf61a910bc9
304
py
Python
Pythonjunior2020/Woche3/Aufgabe_3_1_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche3/Aufgabe_3_1_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche3/Aufgabe_3_1_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 3.1.1, Woche 3, Block 1, Aufgabe 1 # Imports from turtle import * import time # Funktionen def baum(): setheading(90) forward(30) left(90) forward(30) right(120) forward(60) right(120) forward(60) right(120) forward(30) # malen baum() # Ende time.sleep(10)
12.16
36
0.605263
8940ec91ab69ff33d8bc76be8e8be7dc5e13553b
1,610
py
Python
d_tree.py
J-CIC/Label_Propagation
02997bb463e1021d4de354b270d0c7bbd93817ca
[ "MIT" ]
3
2018-07-17T12:19:44.000Z
2019-04-25T14:00:59.000Z
d_tree.py
J-CIC/Label_Propagation
02997bb463e1021d4de354b270d0c7bbd93817ca
[ "MIT" ]
null
null
null
d_tree.py
J-CIC/Label_Propagation
02997bb463e1021d4de354b270d0c7bbd93817ca
[ "MIT" ]
null
null
null
from sklearn import tree import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from scipy.misc import comb edge_link = pd.read_table("email-Eu-core.txt",' ',header=None) labels_res = pd.read_table("email-Eu-core-department-labels.txt"," ",header=None) # label_class = 42 # from 0 t...
29.814815
103
0.640373
89476fa711067265b1f2c68f36ef7b012b8d97b1
365
py
Python
pyScript/custom_src/ListWidget_NameLineEdit.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
18
2021-01-18T09:52:41.000Z
2022-03-22T10:48:44.000Z
Ryven/custom_src/custom_list_widgets/ListWidget_NameLineEdit.py
xamofb-xsk/Ryven
8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1
[ "MIT" ]
null
null
null
Ryven/custom_src/custom_list_widgets/ListWidget_NameLineEdit.py
xamofb-xsk/Ryven
8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1
[ "MIT" ]
3
2021-01-18T09:49:42.000Z
2022-03-22T10:48:47.000Z
from PySide2.QtWidgets import QLineEdit from PySide2.QtCore import Signal class ListWidget_NameLineEdit(QLineEdit): unfocused = Signal() def __init__(self, text, parent): super(ListWidget_NameLineEdit, self).__init__(text, parent) def focusOutEvent(self, arg__1): self.unfocused.emit() ...
24.333333
67
0.728767
89b27604a12899511be438bad5f201092ebd0023
269
py
Python
CS208/exercise1/n2.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
CS208/exercise1/n2.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
CS208/exercise1/n2.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
import random def work(n): a = [x for x in range(0, n)] random.shuffle(a) for i in range(0, n): for j in range(i + 1, n): if a[i] > a[j]: a[i], a[j] = a[j], a[i] # print(a) if __name__ == "__main__": work(10)
16.8125
39
0.446097