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
493873f3e80c9edd28cb66679e0dc8022713066a
306
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v9_0/remove_subscription_module.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/v9_0/remove_subscription_module.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v9_0/remove_subscription_module.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): if frappe.db.exists('Module Def', 'Subscription'): frappe.db.sql(""" delete from `tabModule Def` where name = 'Subscription'""")
34
79
0.748366
62923f3ac33792aa30377e38c803cc00ac619f41
2,778
py
Python
Beginner/03. Python/Dijkistra.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2021-10-06T13:55:02.000Z
2021-10-06T13:55:02.000Z
Beginner/03. Python/Dijkistra.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/Dijkistra.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
class graph: def __init__(self,n): #self.vertices=int(input("Enter number of Vertices: ")) self.vertices=n self.adj=[] for i in range(self.vertices): temp=[-1 for j in range(self.vertices)] self.adj.append(temp) print("The Nodes are Numbered as...
40.26087
101
0.527718
b82d289e9c1c3cc2c3a668cbc17ab403cd3775d0
2,399
py
Python
repo/script.module.urlresolver/lib/urlresolver/plugins/lib/aadecode.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
script.module.resolveurl/lib/resolveurl/plugins/lib/aadecode.py
Reapercrew666/crypt
e1e0994f5323c6b454ac0f65fb2e579f7bea8e5a
[ "Beerware" ]
null
null
null
script.module.resolveurl/lib/resolveurl/plugins/lib/aadecode.py
Reapercrew666/crypt
e1e0994f5323c6b454ac0f65fb2e579f7bea8e5a
[ "Beerware" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # Alfa Addon - Kodi Plugin # https://github.com/alfa-addon/addon/blob/master/plugin.video.alfa/lib/aadecode.py # ------------------------------------------------------------ # Modified by jsergio import re def decode(text): tex...
32.863014
112
0.444769
b863ab8cc082867a54d994fa2570604353e8d3ad
1,122
py
Python
visualize_latents.py
ben-eysenbach/DDO
3751e0a830814650dd8d965b9d9945d2d82def0e
[ "MIT" ]
1
2021-11-17T04:45:21.000Z
2021-11-17T04:45:21.000Z
visualize_latents.py
ben-eysenbach/DDO
3751e0a830814650dd8d965b9d9945d2d82def0e
[ "MIT" ]
null
null
null
visualize_latents.py
ben-eysenbach/DDO
3751e0a830814650dd8d965b9d9945d2d82def0e
[ "MIT" ]
1
2021-02-28T16:37:34.000Z
2021-02-28T16:37:34.000Z
import matplotlib.pyplot as plt import numpy as np import cv2 import data import time import sys from logger import Logger import os from tqdm import tqdm import json exp_name = sys.argv[1] with open(os.path.join(exp_name, 'args.json')) as f: game = json.load(f)['game'] traj_index = int(sys.argv[2]) iteration = in...
26.714286
77
0.690731
b25ae1d882c989ba14bd534ca875783c034d2840
813
py
Python
imageDelta/experiment-2p-TGOT-MT.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
4
2017-06-20T19:56:22.000Z
2021-05-29T10:07:47.000Z
imageDelta/experiment-2p-TGOT-MT.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
11
2017-05-31T19:14:32.000Z
2018-09-12T23:44:11.000Z
imageDelta/experiment-2p-TGOT-MT.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
2
2017-06-20T17:14:38.000Z
2017-06-20T19:51:34.000Z
""" Analysis of two-photon time-series data (filenames do not contain date codes) """ import os import imageDelta as id if __name__ == "__main__": folderPath = R"X:\Data\OTR-Cre\GCaMP6f PFC injection patch and linescan\2019-02-13\slice2\TSeries-02132019-1317-1418" print(f"\n\nANALYZING: {folderPath}") dru...
38.714286
121
0.726937
a2ad9eced62834db29adec5de3582c1d9a0c5d90
13,053
py
Python
gui/GUI.py
lhalb/gfmanager
449f071b3239faa672b7f06122dfc9bc23e68d79
[ "MIT" ]
1
2022-01-18T12:53:17.000Z
2022-01-18T12:53:17.000Z
gui/GUI.py
lhalb/gfmanager
449f071b3239faa672b7f06122dfc9bc23e68d79
[ "MIT" ]
null
null
null
gui/GUI.py
lhalb/gfmanager
449f071b3239faa672b7f06122dfc9bc23e68d79
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file './gui/gui.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Qt...
56.262931
115
0.728262
a2e40b574156cd1c8c482ca284d9427fe55aa2fd
3,869
py
Python
main.py
liyufan/Sport
758e71d405a515a9c2ffbc93c814b3f8bbe0a775
[ "Apache-2.0" ]
null
null
null
main.py
liyufan/Sport
758e71d405a515a9c2ffbc93c814b3f8bbe0a775
[ "Apache-2.0" ]
null
null
null
main.py
liyufan/Sport
758e71d405a515a9c2ffbc93c814b3f8bbe0a775
[ "Apache-2.0" ]
null
null
null
import pymysql import wx from pymysql.err import * import sport # SCORE表记录成绩 # EVENT表记录项目名称Ename与编号Eno关系,静态表,即已在运动会前定好,不会改变,且项目名称唯一 # ATHLETE表记录运动员姓名Aname与编号Ano,静态表,即已在运动会前定好,不会改变,且姓名唯一 class MainSport(sport.MyFrame): def __init__(self, parent): super().__init__(parent) self.db = pymysql.connect(host='localhos...
34.238938
110
0.680021
0c1f69538993fe9a7a41fdbbccdb6fb93216b44d
34
py
Python
cs/lambda_cs/05_hash_tables_and_blockchain/Blockchain/notes/blockchain_notes.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/05_hash_tables_and_blockchain/Blockchain/notes/blockchain_notes.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/05_hash_tables_and_blockchain/Blockchain/notes/blockchain_notes.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Blockchain :: Day 1 notes """
8.5
25
0.558824
ce7513894ca872be1ffbe7222840f50e43f6218b
248
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/storage_bridge/ask_action_defined_as.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/storage_bridge/ask_action_defined_as.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/storage_bridge/ask_action_defined_as.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Any, Callable from watchmen_model.admin import PipelineAction ActionDefinedAs = Callable[[], Any] def parse_action_defined_as(action: PipelineAction) -> ActionDefinedAs: defined_as = action.dict() return lambda: defined_as
22.545455
71
0.802419
0cd86b39e130ba6150d47655e89fe46841031e34
18,042
py
Python
src/tools/fx/movietools/mandelbulb_movie.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/mandelbulb_movie.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/mandelbulb_movie.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import os # This function rotates about an axis. For simplicity, we just select a # coordinate axis. Of course, you could define viewNormal, viewUp, viewFocus # to define a different axis. def RotateAxis(axis, angle): import math v1 = [0.,0.,0.] v2 = [0.,0.,0.] v3 = [0.,0.,0.] t1 = [1.,0.,0.,0.,...
31.652632
181
0.492407
f013b6ea0e5fbd5f9a30be24f72712df9924c47c
464
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 78/78.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 78/78.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 78/78.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#When writing web apps, you may need to generate default random passwords for users. #Create a program that generates a password of 6 random alphanumeric characters in the range abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()? import random characters = "abcdefghijklmnopqrstuvwxyz01234567890...
35.692308
167
0.797414
f042f52c317d796c6309a5714f0202da15e7d584
483
py
Python
exercises/de/test_01_02_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/test_01_02_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/test_01_02_03.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.es assert isinstance( nlp, spacy.lang.es.Spanish ), "Das nlp-Objekt sollte eine Instanz der Klasse Spanish sein." assert isinstance( doc, spacy.tokens.Doc ), "Hast du den Text mit dem nlp-Objekt verarbeitet und ein Doc erstellt?"...
34.5
85
0.691511
3329818e520ad8b3ed3ca78c786bf5149f9f0982
876
py
Python
transonic/__init__.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/__init__.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/__init__.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic._version import __version__ from transonic.aheadoftime import Transonic, boost from transonic.backends import set_backend_for_this_module from transonic.config import set_backend from transonic.compiler import wait_for_all_extensions from transonic.justintime import jit, set_compile_jit from transonic.u...
18.638298
58
0.670091
cc237513153fa0232d33b90aa4d32a25316591a5
542
py
Python
backend/apps/accounts/migrations/0006_auto_20200501_2346.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/accounts/migrations/0006_auto_20200501_2346.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/accounts/migrations/0006_auto_20200501_2346.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-01 23:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0005_auto_20200410_2113'), ] operations = [ migrations.AlterField( model_name='newsletter', name='user_v...
28.526316
183
0.634686
f0f84ca67de5c48ec8a142eda8d7e42b7cb51930
632
py
Python
source/pkgsrc/emulators/unicorn/patches/patch-bindings_python_setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/emulators/unicorn/patches/patch-bindings_python_setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/emulators/unicorn/patches/patch-bindings_python_setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-bindings_python_setup.py,v 1.2 2021/02/25 19:47:51 leot Exp $ --- bindings/python/setup.py.orig 2020-10-21 11:34:41.000000000 +0000 +++ bindings/python/setup.py @@ -208,13 +208,11 @@ class custom_build(build): log.info("Skipping building C extensions since LIBUNICORN_PATH is set") ...
33.263158
84
0.651899
aca7796dc5ec15228195fc110162d11863bfe884
1,203
py
Python
research/cv/gan/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/gan/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/gan/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.1
83
0.692436
acffb6c9aeb69fefb2cb5a9d2b42333c6458d544
5,179
py
Python
fcm.py
Mohammad-Robati/FuzzyCMeans
398efa3c913b1cad211f2435764edbad3db62426
[ "MIT" ]
null
null
null
fcm.py
Mohammad-Robati/FuzzyCMeans
398efa3c913b1cad211f2435764edbad3db62426
[ "MIT" ]
null
null
null
fcm.py
Mohammad-Robati/FuzzyCMeans
398efa3c913b1cad211f2435764edbad3db62426
[ "MIT" ]
null
null
null
from math import sqrt, pow, log, inf from point import Point from random import random from copy import deepcopy import numpy as np import matplotlib.pyplot as plt class FCM: def __init__(self, points, m, minCluster, maxCluster): self.points = points self.centers = [] self.m = m s...
36.992857
125
0.555706
a8ab5c80c25aaf60d534d82b39b49c70b449d358
916
py
Python
verto/utils/image_file_name_components.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/utils/image_file_name_components.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/utils/image_file_name_components.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
"""Splits components of image file path.""" import re from os.path import splitext def image_file_name_components(full_file_path): """Splits components of image file path. Args: full_file_path (str): The complete image file path. Returns: Dictionary of strings for components of file pat...
33.925926
101
0.707424
763b983c4ae72b797d2817ee983cf1cbf1ce8188
1,554
py
Python
tests/test_markdown.py
PlaidWeb/Publ
67efc5e32bf25dbac72a83d1167de038b79db5a7
[ "MIT" ]
27
2018-11-30T21:32:26.000Z
2022-03-20T19:46:25.000Z
tests/test_markdown.py
PlaidWeb/Publ
67efc5e32bf25dbac72a83d1167de038b79db5a7
[ "MIT" ]
249
2018-09-30T07:04:37.000Z
2022-03-29T04:31:00.000Z
tests/test_markdown.py
fluffy-critter/Publ
868c5a17c605707dde4d1a95d79405301bd12f05
[ "MIT" ]
4
2019-03-01T06:46:13.000Z
2019-06-30T17:45:46.000Z
""" Tests of Markdown renderer """ # pylint:disable=missing-function-docstring from publ import markdown from . import PublMock def test_render_title(): app = PublMock() with app.app_context(): assert markdown.render_title("This *is* a test") == "This <em>is</em> a test" assert markdown.rend...
50.129032
99
0.566281
8b211f75b6751fbba4b998327b0d430b70f51edb
3,114
py
Python
lib/wallet.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
1
2022-03-09T20:44:33.000Z
2022-03-09T20:44:33.000Z
lib/wallet.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
null
null
null
lib/wallet.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
null
null
null
import os import io import time import datetime import pandas as pd from . import api from . import dex FOLDER = "wallet" def read_file (filepath): content = "" with io.open(filepath, "r") as f: content = f.read() return content def write_file (filepath, line): with io.open(filepath, "w")...
27.315789
95
0.637765
8cf48c63d96124b635df6ad63ea3b9bdf99e78f5
4,085
py
Python
tests/onegov/core/test_static.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_static.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_static.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath import os.path import time from onegov.core.framework import Framework from onegov.core import utils from onegov.core.static import StaticFile from webtest import TestApp as Client def test_static_file(temporary_directory): class App(Framework): serve_static_files = True @App.static...
26.525974
79
0.675153
50e418de29ff16034f2bdd62244bb3b019bea7c6
3,550
py
Python
weeman-master/core/shell.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
weeman-master/core/shell.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
weeman-master/core/shell.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
## ## shell.py - the weeman main shell ## ## Written by @Hypsurus ## import sys import os from core.complete import complete from core.complete import array from core.config import __version__ from core.config import __codename__ from core.misc import printt from core.misc import print_help from core.config import ...
34.134615
92
0.470423
ba01937944f183d3ffea88ca6aa48691568815ae
12,025
py
Python
myems-api/reports/metertracking.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
82
2021-02-19T10:24:31.000Z
2022-03-28T06:30:18.000Z
myems-api/reports/metertracking.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
188
2021-02-22T07:08:30.000Z
2022-03-02T04:11:03.000Z
myems-api/reports/metertracking.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
54
2021-02-19T08:48:46.000Z
2022-03-30T06:21:34.000Z
import falcon import simplejson as json import mysql.connector import config from anytree import AnyNode, LevelOrderIter import excelexporters.metertracking from datetime import datetime, timedelta, timezone class Reporting: @staticmethod def __init__(): """"Initializes Reporting""" pass ...
52.741228
120
0.487568
e86a7dfbeae8b63e05029403e4c3616b9eee578f
2,094
py
Python
Config_unet.py
ramesh152/SegmentationExperiment
b52dbc57759c086155e79c6621e6d25a4db0e974
[ "Apache-2.0" ]
2
2019-06-12T13:53:00.000Z
2020-04-29T13:11:12.000Z
Config_unet.py
ramesh152/SegmentationExperiment
b52dbc57759c086155e79c6621e6d25a4db0e974
[ "Apache-2.0" ]
1
2019-12-10T12:23:06.000Z
2019-12-10T12:23:06.000Z
Config_unet.py
ramesh152/SegmentationExperiment
b52dbc57759c086155e79c6621e6d25a4db0e974
[ "Apache-2.0" ]
1
2020-08-05T18:12:24.000Z
2020-08-05T18:12:24.000Z
import os from trixi.util import Config def get_config(): # Set your own path, if needed. #data_root_dir = os.path.abspath('data') # The path where the downloaded dataset is stored. #data_root_dir = "/home/ramesh/Desktop/WS/Implementation/experiment/Data/Filtereddataset" data_root_dir ="/home/ramesh...
40.269231
158
0.683381
ad08b5d7024044d02f3511f90384c82ef5af7b28
1,566
py
Python
official/cv/c3d/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/c3d/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/c3d/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...
36.418605
95
0.657088
ad95f798fe783147251f6958eede0dcc781992a1
1,588
py
Python
gener/BinaryTreeDFS/TreeValOrder.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
gener/BinaryTreeDFS/TreeValOrder.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
gener/BinaryTreeDFS/TreeValOrder.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class TreeNode: def __init__(self, val): self.left = None self.right = None self.val = val def valOrder(root): val, h = 0, 0 stack = [(root, val, h)] arr, minarr = [], [] start = 0 while stack != [] and stack[0][0] is not None: node, val, h = stack.pop() ...
22.055556
51
0.424433
d15af70c6f12f74bdf241ba1bac23f82c7a62a75
3,166
py
Python
pyconuk/settings.py
OddBloke/2016.pyconuk.org
831d510a83c9cab8541198005c8024003b5049f5
[ "MIT" ]
null
null
null
pyconuk/settings.py
OddBloke/2016.pyconuk.org
831d510a83c9cab8541198005c8024003b5049f5
[ "MIT" ]
null
null
null
pyconuk/settings.py
OddBloke/2016.pyconuk.org
831d510a83c9cab8541198005c8024003b5049f5
[ "MIT" ]
null
null
null
""" Django settings for pyconuk project. Generated by 'django-admin startproject' using Django 1.9.6. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os #...
23.279412
79
0.687934
cb5236143a2749a2a29b9cdcdf4156c41b40c820
5,144
py
Python
tests/test_queues.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
tests/test_queues.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
tests/test_queues.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
from typing import Dict, List, Type, Union import pytest from volley.connectors.base import BaseConsumer, BaseProducer from volley.connectors.confluent import ConfluentKafkaConsumer, ConfluentKafkaProducer from volley.connectors.rsmq import RSMQConsumer, RSMQProducer from volley.data_models import GenericMessage from...
35.972028
113
0.70937
0e0e68b3690e8c9ce08bc82d6579a16ff767dbec
6,475
py
Python
haferml/blend/config.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
11
2021-04-17T18:51:45.000Z
2021-06-25T19:42:25.000Z
haferml/blend/config.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
3
2021-04-29T19:24:15.000Z
2021-05-21T04:30:54.000Z
haferml/blend/config.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
2
2021-06-10T00:55:43.000Z
2021-12-30T07:37:07.000Z
import os from loguru import logger import simplejson as json from haferml.data.wrangle.misc import get_all_paths_in_dict as _get_all_paths_in_dict from haferml.data.wrangle.misc import ( update_dict_recursively as _update_dict_recursively, ) def load_config(config_path, base_folder=None): """ load_config...
31.740196
227
0.634286
38519fc7985b3ca3a2e8a10ee41a107f36b136d2
399
py
Python
Language Proficiency/Python/Collections/DefaultDict Tutorial/defaultdict_example.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Language Proficiency/Python/Collections/DefaultDict Tutorial/defaultdict_example.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Language Proficiency/Python/Collections/DefaultDict Tutorial/defaultdict_example.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import defaultdict if __name__ == "__main__": n, m = map(int, input().split()) d = defaultdict(list) l = [] for i in range(n): d[input()].append(i+1) for _ in range(m): l.append(input()) for j in range(m): if l[j] in d: ...
16.625
46
0.496241
38aa6555c17d7b6ab70a14f57a80fcf2a5969f96
4,689
py
Python
research/cv/tsn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/tsn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/tsn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
41.131579
118
0.660269
aaa19ae8377da69725ba050a4391414beab064fb
94
py
Python
genutil/__init__.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
genutil/__init__.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
genutil/__init__.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
"""__init__.py""" __all__ = ["date_time", "file_folder", "lists_dicts", "sharepoint_helper"]
23.5
74
0.691489
2dab82815622a7b354d2bbdcb8c0c91b427da02f
15,522
py
Python
tests/onegov/gazette/test_cli.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_cli.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_cli.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os import yaml from click.testing import CliRunner from datetime import date from datetime import datetime from onegov.core.cli.commands import cli as core_cli from onegov.gazette.cli import cli from unittest.mock import patch from xlsxwriter import Workbook def write_config(path, postgres_dsn, temporary_dire...
34.264901
79
0.631298
9369365b84da2879206a1397aa8813572d525a3c
2,978
py
Python
research/nlp/gpt2/src/GPT2ForLambada.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/gpt2/src/GPT2ForLambada.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/gpt2/src/GPT2ForLambada.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...
41.943662
110
0.647414
35ce6f3be0b7243d27c6296093d789e3374fc956
453
py
Python
zencad/examples/Integration/trimesh/bulbasaur.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/Integration/trimesh/bulbasaur.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/Integration/trimesh/bulbasaur.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import zencad try: import trimesh except: raise Exception( "You should install `trimesh` module for start this script") h = 10 r = 30 mesh = trimesh.load('bulbasaur.STL') bulb = zencad.polyhedron(mesh.vertices, mesh.faces) x, y, z = bulb.center() bulb = bulb.move(-x, -y, -z) ...
16.777778
68
0.655629
3509640d4607137d4468f782953082054aac0b4f
2,332
py
Python
furniture_store/furniture_store/web/views.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
furniture_store/furniture_store/web/views.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
furniture_store/furniture_store/web/views.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from furniture_store.web.forms import CreateFurnitureForm, EditFurnitureForm from furniture_store.web.models import Furniture def create_user(request): return render(request, 'register.html') def login_user(request): return render(request, 'login.html') def e...
22.862745
76
0.632075
109cad4629c449c1e7a17d774e1bed30c0f76ad9
55
py
Python
python/python_new/Python 3/untitled0.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_new/Python 3/untitled0.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_new/Python 3/untitled0.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import numpy as np A=np.array([4,5,8]) B=A[1] print(B)
11
19
0.636364
10a71116faaf7978c698408afb91f724a6e0644e
696
py
Python
Python Stuff/LCD_Funktionen/PrintL2.py
Hyperfluff/tic_motion
b7856bc2a14f7683c8cacdafda32ebaff8be8e5b
[ "MIT" ]
1
2020-12-07T09:39:20.000Z
2020-12-07T09:39:20.000Z
Python Stuff/LCD_Funktionen/PrintL2.py
Hyperfluff/tic_motion
b7856bc2a14f7683c8cacdafda32ebaff8be8e5b
[ "MIT" ]
null
null
null
Python Stuff/LCD_Funktionen/PrintL2.py
Hyperfluff/tic_motion
b7856bc2a14f7683c8cacdafda32ebaff8be8e5b
[ "MIT" ]
null
null
null
from Adafruit_CharLCD import Adafruit_CharLCD import Adafruit_GPIO.PCF8574 as PCF import RPi.GPIO as GPIO import sys LCD = PCF.PCF8574(address=0x27) LCD.setup(5,0) LCD.output(5,0) # Deklariert welche PCF-Pins mit welchem LCD-Pin verbunden sind. lcd_rs = 4 # RegisterSelect Pin des LCDs ist an GPIO4 lcd_en = 7 # Enable P...
31.636364
76
0.751437
52fc287977cad745d77561b11bd92871b1a130f2
781
py
Python
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/mystery_sqrt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/mystery_sqrt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/mystery_sqrt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# Mystery computation in Python # Takes input n and computes output named result import simplegui # global state result = 1 iteration = 0 max_iterations = 10 # helper functions def init(start): """Initializes n.""" global n n = start print "Input is", n def get_next(current): """??? Part of my...
17.75
48
0.65557
eaebf496ad6c74c7d05aed9a7c5cf55e1434ba3b
633
py
Python
Algorithms/Implementation/Beautiful_Triplets.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Algorithms/Implementation/Beautiful_Triplets.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Algorithms/Implementation/Beautiful_Triplets.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# beautiful triples # https://www.hackerrank.com/challenges/beautiful-triplets/problem?h_r=internal-search #from itertools import permutations as pt, combinations as cb #print(list(cb(range(10**4),3))) arr = [2,2,3,4,5] d = 1 arr =[1,2,4,5,7,8,10] d = 3 #################################################### n = len(a...
21.1
86
0.50237
dca0b91117c78d4f45fa337a0b6fab97b3ccce83
923
py
Python
bolt/utils/decorators.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/utils/decorators.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/utils/decorators.py
ph7vc/Philbot
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
import time def add_method_tag(metadata): def decorate(callback): if not hasattr(callback, 'tags'): callback.tags = [] callback.tags.append(metadata) return callback return decorate class cache(object): def __init__(self, ttl): self.cache = {...
24.945946
66
0.502709
dcb94da278f6604f5796be7409e9e954c01230ff
1,068
py
Python
source/pkgsrc/graphics/py-imaging/patches/patch-PIL_JpegImagePlugin.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/graphics/py-imaging/patches/patch-PIL_JpegImagePlugin.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/graphics/py-imaging/patches/patch-PIL_JpegImagePlugin.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-PIL_JpegImagePlugin.py,v 1.1 2014/05/15 06:23:06 spz Exp $ patch for CVE-2014-1932 and CVE-2014-1933 taken from https://github.com/python-imaging/Pillow/commit/4e9f367dfd3f04c8f5d23f7f759ec12782e10ee7 --- PIL/JpegImagePlugin.py.orig 2009-11-01 00:44:12.000000000 +0000 +++ PIL/JpegImagePlugin.py @@ -344...
35.6
88
0.608614
5228ce412e0c43783dc1ad20be69fc10e25269e4
11,276
py
Python
DHParser/scripts/dhparser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
DHParser/scripts/dhparser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
DHParser/scripts/dhparser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """dhparser.py - command line tool for DHParser Copyright 2016 by Eckhart Arnold (arnold@badw.de) Bavarian Academy of Sciences an Humanities (badw.de) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Licens...
39.704225
98
0.586556
87742cb960ed7cdef61da8e97277b123a3443cb4
2,075
py
Python
Codeforces/646-2/D.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
6
2018-10-15T18:45:05.000Z
2022-03-29T04:30:10.000Z
Codeforces/646-2/D.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
null
null
null
Codeforces/646-2/D.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
4
2018-01-07T06:20:07.000Z
2019-08-21T15:45:59.000Z
""" Python 3 compatibility tools. """ from __future__ import division, print_function import itertools import sys import os from io import BytesIO, IOBase if sys.version_info[0] < 3: input = raw_input range = xrange filter = itertools.ifilter map = itertools.imap zip = itertools.izip def is_it_local(): ...
17.584746
69
0.552771
21ae9037070888ebbd966bb0b330223c00ae2a70
2,313
py
Python
DeepRTS/python/scenario/envs.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
null
null
null
DeepRTS/python/scenario/envs.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
null
null
null
DeepRTS/python/scenario/envs.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
null
null
null
from DeepRTS.python.scenario.engine import Scenario from DeepRTS.python import util, Config, Game from DeepRTS import Engine class GeneralAI_1v1(Scenario,): def __init__(self,theMap): rlconf = {} gui_config = Config( render=True, view= True, inputs=True, ...
32.577465
73
0.617812
df0191bfeb05861b4e0029370ff1cf8d3cc0dd69
741
py
Python
Cracking_the_Coding_Interview/tries_contacts.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/tries_contacts.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/tries_contacts.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from bisect import insort_left, bisect_left, bisect_right names = [] for _ in range(int(input().strip())): op, contact = input().strip().split(' ') cnt = 0 if op == 'add': insort_left(names, contact) else: next_contact = contact[0:-1] + chr(ord(contact[-1]) + 1) ...
23.15625
64
0.546559
1d0f96f491b1dfafe796906076cde90c6bbd5e4e
196
py
Python
ODAW/tf/tagfilter/services/web/project/utils.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
ODAW/tf/tagfilter/services/web/project/utils.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
ODAW/tf/tagfilter/services/web/project/utils.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
def sanitize(args): t = [] for tag in args: t.append(tag.lower()) return sorted(t) def gen_hash(list_tags): t = "".join(sanitize(list_tags)) return str(hash(t))[-8:]
17.818182
36
0.576531
1adc8d2c5d4fba1ecb1745105df25d6efd130e37
2,655
py
Python
src/classifier/data_processing/data_augmentation/gendered_prompts.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/classifier/data_processing/data_augmentation/gendered_prompts.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/classifier/data_processing/data_augmentation/gendered_prompts.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import random from src import constants def replace_with_gendered_pronouns(augment, text_col, df): assert len(set(df.Gender.unique()) - set(["F", "M", "N"])) == 0 if augment == "single_gender": df = replace_with_single_option(text_col, df) elif augment == "list_gender": df = replace_from_...
31.987952
88
0.590584
dcc78961b6ce10f39a4eaf30aa72efa09708f418
266
py
Python
local_socket/mySerial/main.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
1
2020-07-16T02:52:47.000Z
2020-07-16T02:52:47.000Z
local_socket/mySerial/main.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
local_socket/mySerial/main.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
import myserial import threading import time t1 = threading.Thread(target = myserial.serial_port0.receivemsg) t1.start() while True: if myserial.serial_port0.recvmsg != "": print(myserial.serial_port0.recvmsg) myserial.serial_port0.recvmsg = ""
24.181818
64
0.736842
0d21dfa626ac3fb5f9960bf01d3dc15eb5b1fffa
17,719
py
Python
src/lecture4/bp_network/bp_without_theano.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
1
2020-08-17T07:09:09.000Z
2020-08-17T07:09:09.000Z
src/lecture4/bp_network/bp_without_theano.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
null
null
null
src/lecture4/bp_network/bp_without_theano.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
2
2020-07-26T07:27:57.000Z
2020-08-17T07:09:15.000Z
import numpy as np import timeit import os import sys import six.moves.cPickle as pickle sys.path.append("..") import bp_network.utils #using tanh class HiddenLayer(object): def __init__(self, rng, n_in, n_out, input=None,W=None, b=None, activation='tanh'): """ Typical hidden layer...
35.580321
107
0.541566
370d889e2d8a045bc83dbcc263b0f7350fbfb202
646
py
Python
Controller/control/Injector.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
Controller/control/Injector.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
7
2020-07-19T03:29:21.000Z
2022-03-02T06:46:12.000Z
Controller/control/Injector.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
# As Flask creates own instances of given classes, dependency injection is challenging. # It could either be provided using kwargs or using this injector from control.WorkerControl import WorkerControl from data.StorageIO import StorageIO from data.ArchitectureIO import ArchitecureIO class Injector: workerControl...
35.888889
87
0.778638
d39f132eab70ca57646535cb30a28d435eff354a
3,890
py
Python
Packs/Troubleshoot/Scripts/TroubleshootGetInstanceParameters/TroubleshootGetInstanceParameters.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Troubleshoot/Scripts/TroubleshootGetInstanceParameters/TroubleshootGetInstanceParameters.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Troubleshoot/Scripts/TroubleshootGetInstanceParameters/TroubleshootGetInstanceParameters.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from typing import Tuple from CommonServerPython import * def get_configurations_from_xsoar() -> dict: res = demisto.executeCommand('demisto-api-post', { 'uri': 'settings/integration/search', 'body': """{"size": 500}""" }) if is_error(res): raise DemistoException(get_error(res)) ...
33.826087
107
0.671208
4cc57463912c6a48631e9dfc011c0f9b7a9ba1bb
1,607
py
Python
tests/verena/test_verenadownloader.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
445
2021-07-26T22:00:26.000Z
2022-03-31T08:31:08.000Z
tests/verena/test_verenadownloader.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
30
2021-07-27T15:42:23.000Z
2022-03-26T16:14:11.000Z
tests/verena/test_verenadownloader.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
28
2021-07-27T10:48:43.000Z
2022-03-26T14:31:30.000Z
from deutschland.verena.verenadownloader import VerenaDownloader def test_downloader_page_count(): vd = VerenaDownloader() res = vd.scrape() assert ( len(res) > 0 ), "Scraping all pages of the VERENA portal (block size 100) returned 0 pages. It very likely shouldn't." def test_downloader_pag...
32.14
142
0.684505
e256e566e1afe5e164228e890eb71ee4f7828bcd
1,377
py
Python
spo/utils/meldestelle_invoice.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
null
null
null
spo/utils/meldestelle_invoice.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
6
2019-08-23T18:36:26.000Z
2019-11-12T13:12:12.000Z
spo/utils/meldestelle_invoice.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
1
2021-08-14T22:22:43.000Z
2021-08-14T22:22:43.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, libracore and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe @frappe.whitelist() def get_logs(meldestelle): meldestelle = frappe.get_doc("Meldestelle", meldestelle) logs = frappe.db.sq...
49.178571
161
0.509078
e2e559eb182301dfd4b2cedc02f46d73179e0cf6
136
py
Python
insomniac/actions_providers.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
533
2020-06-01T10:40:11.000Z
2022-03-29T17:05:50.000Z
insomniac/actions_providers.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
399
2020-06-01T22:01:55.000Z
2022-03-29T20:39:29.000Z
insomniac/actions_providers.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
166
2020-06-01T21:51:52.000Z
2022-03-12T14:14:44.000Z
from enum import Enum, unique @unique class Provider(Enum): UNKNOWN = 0 INTERACTION = 1 SCRAPING = 2 TARGETS_LIST = 3
13.6
29
0.654412
203795a4ac0b46ffbbb706e06faf788b60524d32
1,355
py
Python
INBa/2015/Chinkirov_V_V/task_7_29.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Chinkirov_V_V/task_7_29.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Chinkirov_V_V/task_7_29.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 7. Вариант 15. # Разработайте систему начисления очков для задачи 6, в соответствии с которой игрок получал бы большее # количество баллов за меньшее количество попыток. # Чинкиров В.В. ИНБ-ДБ1 # 11.05.2016, 11.05.16 balls=7 import random print("Создайте игру, в которой компьютер загадывает имя одного из две...
26.568627
118
0.691513
b3a9e8afad40b3e9a76472a303a3eac9a5eae86d
115
py
Python
2021-05-09/城市地图带后端/城市地图后端/coffee/admin.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
395
2017-02-24T02:59:29.000Z
2022-03-31T15:48:19.000Z
2021-05-09/城市地图带后端/城市地图后端/coffee/admin.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
7
2020-03-17T08:33:00.000Z
2021-09-02T23:10:46.000Z
2021-05-09/城市地图带后端/城市地图后端/coffee/admin.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
235
2017-03-14T03:31:38.000Z
2022-03-29T16:14:51.000Z
from django.contrib import admin # Register your models here. from .models import Spot admin.site.register(Spot)
16.428571
32
0.791304
03e2fbfe1daafd1461fc0c669bbad4eccc173db8
6,029
py
Python
test/test_npu/test_network_ops/test_pdist.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_pdist.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_pdist.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
42.457746
74
0.680046
208a9e0cbb55f59b51da33f3e0dae51b432fc07a
10,211
py
Python
src/models/utils.py
jejjohnson/hsic_alignment
3c676a378008634576593abec3a4a01e7daf9218
[ "MIT" ]
null
null
null
src/models/utils.py
jejjohnson/hsic_alignment
3c676a378008634576593abec3a4a01e7daf9218
[ "MIT" ]
null
null
null
src/models/utils.py
jejjohnson/hsic_alignment
3c676a378008634576593abec3a4a01e7daf9218
[ "MIT" ]
null
null
null
import collections from typing import List, NamedTuple, Optional, Union import numpy as np from scipy.spatial.distance import pdist, squareform from sklearn.utils import check_array, check_random_state from statsmodels.nonparametric import bandwidths GammaParam = collections.namedtuple("GammaParam", ["method", "perce...
27.302139
105
0.563118
20c420d25162a30898683c02115fb62fd0aade65
2,325
py
Python
Utils/py/WhistleDetector/create_reference_whistle.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
15
2015-01-12T10:46:29.000Z
2022-03-28T05:13:14.000Z
Utils/py/WhistleDetector/create_reference_whistle.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
2
2019-01-20T21:07:50.000Z
2020-01-22T14:00:28.000Z
Utils/py/WhistleDetector/create_reference_whistle.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
5
2018-02-07T18:18:10.000Z
2019-10-15T17:01:41.000Z
import numpy as np import cpp_spectrum as cpp import matplotlib.pyplot as plt np.set_printoptions(threshold=np.inf) # NOTE: works only with python 3 def bytes_from_file(filename, chunksize=2): # chunksize is size of short with open(filename, "rb") as f: while True: chunk = f.read(chunksize) ...
27.352941
102
0.649892
b3148a749ba5357594289438185302e0a9a9febf
494
py
Python
scripts/hw_gnare.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hw_gnare.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hw_gnare.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
# Hello World Script by Galen Nare GREEN = '\033[92m' strings = [ '# # #### # # ####', '# # # # # # #', '#### ### # # # #', '# # # # # # #', '# # #### ### ### ####', ' ', '# # #### ### # ### ', '# # # ...
27.444444
35
0.151822
641cd4fe30db19b0e257b1e41239116dbb5ee3a3
98
py
Python
Online-Judges/CodingBat/Python/List-01/04-common_end.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/List-01/04-common_end.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/List-01/04-common_end.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def common_end(a, b): if a[0] == b[0] or a[-1] == b[-1]: return True return False
19.6
38
0.489796
4443cc4b54ae92203ca62baed472e0f5d4d9581f
64,594
py
Python
src/Sephrasto/UI/CharakterWaffen.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-02-02T16:15:59.000Z
2022-02-02T16:15:59.000Z
src/Sephrasto/UI/CharakterWaffen.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-01-14T11:04:19.000Z
2022-01-14T11:04:19.000Z
src/Sephrasto/UI/CharakterWaffen.py
lukruh/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'CharakterWaffen.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCo...
56.810906
115
0.711072
447fa88ac8f18eeb903b03340f952d9bf6ded263
44,435
py
Python
applications/experimental/pipelines/pipelines/pipelines/base.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
applications/experimental/pipelines/pipelines/pipelines/base.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
applications/experimental/pipelines/pipelines/pipelines/base.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # Copyright 2021 deepset GmbH. 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.o...
46.67542
130
0.562079
a61f69d70e980c70ecec68a2637dcf9a5ec513da
4,623
py
Python
test/test_npu/test_network_ops/test_cdist_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_cdist_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_cdist_backward.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/licen...
38.848739
95
0.592689
f3a5c8ae7bf52e2bbbd4990ea0583b0abf6032a6
275
py
Python
website/zip.py
MasterQ32/spu-mark-ii
e6ee2a8206cbf32cf81ea217c087bd47a0fd0ec5
[ "MIT" ]
13
2020-05-03T15:47:51.000Z
2021-09-18T04:44:57.000Z
website/zip.py
MasterQ32/spu-mark-ii
e6ee2a8206cbf32cf81ea217c087bd47a0fd0ec5
[ "MIT" ]
null
null
null
website/zip.py
MasterQ32/spu-mark-ii
e6ee2a8206cbf32cf81ea217c087bd47a0fd0ec5
[ "MIT" ]
3
2020-06-24T16:04:44.000Z
2021-07-20T10:54:11.000Z
import zipfile as zf, sys z = zf.ZipFile(sys.argv[1], "a") z.write(sys.argv[2], sys.argv[3]) z.close() # myfile.zip source/dir/file.txt dir/in/zip/file.txt # This will open myfile.zip and add source/dir/file.txt from the file system as dir/in/zip/file.txt in the zip file.
30.555556
116
0.712727
343f0e3f05314aa0707340edc9627ee531dfa312
341
py
Python
exercises/de/test_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/test_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/test_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "patterns = list(nlp.pipe(people))" in __solution__ ), "Verwendest du nlp.pipe in einer Liste?" __msg__.good( "Gut gemacht! Als nächstes schauen wir uns ein praktisches Beispiel " "an, das nlp.pipe verwendet, um Dokumente mit zusätzlichen Metadaten " "zu...
31
78
0.642229
346514eb5a85084a3207afb8da01e3262c21d460
1,744
py
Python
Zh3r0/2021/misc/cheater-mind/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Zh3r0/2021/misc/cheater-mind/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Zh3r0/2021/misc/cheater-mind/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from random import randint, random from collections import Counter class Agent: def __init__(self,N,K,mutation,guess_limit): self.N = N self.K = K self.mutation = mutation self.guess_limit = guess_limit self.secret = [randint(1,N) for i in range(K)] def play(self,guess)...
30.068966
111
0.567661
34664d2801af5f70c7ba7b9f70e07344c05e85ed
2,213
py
Python
bin/sync_pocket.py
leeleilei/blog
74f0d4686cff0826dd68c78f344f6637e7daa7bb
[ "Apache-2.0" ]
1
2021-01-10T14:20:16.000Z
2021-01-10T14:20:16.000Z
bin/sync_pocket.py
leeleilei/blog
74f0d4686cff0826dd68c78f344f6637e7daa7bb
[ "Apache-2.0" ]
null
null
null
bin/sync_pocket.py
leeleilei/blog
74f0d4686cff0826dd68c78f344f6637e7daa7bb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- ''' 从pocket下载我的收藏夹信息里面标记为52etf的书签,并写入到52etf仓库文件中。 hugo模板将这些文件渲染成页面item呈现出来,效果是reddit的列表样式,并且可以进入讨论。 ''' import requests as req import sys import os import jiagu import jieba.analyse import html2text from datetime import (datetime, timedelta) import pytz try: dest = sys.argv[1] except IndexE...
26.035294
91
0.558518
346c8402879cde7d6476adbc94f692c1dda8552a
2,820
py
Python
Aggregator/hystreet_export.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
29
2020-03-21T00:47:51.000Z
2021-07-17T15:50:33.000Z
Aggregator/hystreet_export.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
7
2020-03-21T14:04:26.000Z
2022-03-02T08:05:40.000Z
Aggregator/hystreet_export.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
13
2020-03-21T01:08:08.000Z
2020-04-08T17:21:11.000Z
import boto3 import pandas as pd import json from datetime import datetime, timedelta from datetime import date as dt from coords_to_kreis import coords_convert from tqdm import tqdm import settings result_df = pd.DataFrame() for x in tqdm(range(700)): date = dt.today() - timedelta(days=x) s3_client = boto3.cl...
38.108108
133
0.685106
caaf979f6ff773971998f2bebf18a3195607b853
675
py
Python
Problems/Depth-First Search/medium/FindAllGroupsFarmLand/find_all_groups_farm_land.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/medium/FindAllGroupsFarmLand/find_all_groups_farm_land.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/FindAllGroupsFarmLand/find_all_groups_farm_land.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def findFarmland(self, land: List[List[int]]) -> List[List[int]]: group = [] m, n = len(land), len(land[0]) def dfs(row: int, col: int) -> (int, int): if row < 0 or row >= m or col < 0 or col >= n or land[row][col] == 0: return (0, 0) land[row][col] = ...
24.107143
77
0.466667
04943db926857c6b5c61ddc174aacec686067f40
4,178
py
Python
plugins/xkcd_json/xkcd_json.py
whatifrussian/xkcdbird
e21cd93b6f45ef04a46328cdd0feececfdd58984
[ "Unlicense" ]
null
null
null
plugins/xkcd_json/xkcd_json.py
whatifrussian/xkcdbird
e21cd93b6f45ef04a46328cdd0feececfdd58984
[ "Unlicense" ]
null
null
null
plugins/xkcd_json/xkcd_json.py
whatifrussian/xkcdbird
e21cd93b6f45ef04a46328cdd0feececfdd58984
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function from pelican import signals from pelican.generators import Generator from pelican.writers import Writer import os import logging import json import requests logger = logging.getLogger(__name__) class XkcdJsonGenerator(Generator): ...
36.017241
108
0.706079
610767470146eae6f369a6e174f1200659214a19
1,437
py
Python
SoSe-21/Code-Vorlesungen/VL-9/Bibel-Beispiel.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/VL-9/Bibel-Beispiel.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/VL-9/Bibel-Beispiel.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
import os # Variablen initialisieren woerterCounter = 0 woerterDict = {} # Zuweisen des Verzeichnisses der Datei aktuelles_Verzeichnis = os.path.dirname(__file__) # Dateiname für Eingabe dateiname = os.path.join(aktuelles_Verzeichnis, 'bibel.txt') print("Der Dateipfad lautet: ", dateiname) # Datei öffnen datei = o...
27.113208
74
0.659012
61183950961b021551b4335b0a9513bdfccfaadd
3,171
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/netvisor/test_pn_dhcp_filter.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/netvisor/test_pn_dhcp_filter.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/netvisor/test_pn_dhcp_filter.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# Copyright: (c) 2018, Pluribus Networks # 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 from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_coll...
42.851351
140
0.659098
fcf2732c8ea3300b74e821114c52b0733d2a4af8
425
py
Python
Python/Exercícios_Python/012_calculando_descontos.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/012_calculando_descontos.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/012_calculando_descontos.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """012 - Calculando Descontos Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1dRPsYpJ1DAKPlmia8UwDqklzL5vwr6Vr """ p = float(input('Qual é o preço do produto? R$ ')) d = int(input('Quantos % de deconto? ')) pd = p*(100-d)/100 p...
32.692308
106
0.682353
1e1c26671069f84e76d6db1af8c719d1788587e3
5,596
py
Python
qmk_firmware/lib/python/qmk/cli/__init__.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/__init__.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/__init__.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
"""QMK CLI Subcommands We list each subcommand here explicitly because all the reliable ways of searching for modules are slow and delay startup. """ import os import shlex import sys from importlib.util import find_spec from pathlib import Path from subprocess import run from milc import cli, __VERSION__ from milc.q...
27.98
122
0.627949
1ecb4e7ef328309d942b1463273ddbe01f01eab7
6,006
py
Python
Webpage/arbeitsstunden/management/commands/utils/import_functions.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/management/commands/utils/import_functions.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/management/commands/utils/import_functions.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from sys import exec_prefix from typing import List from django.contrib.auth.models import User from arbeitsstunden.models import customHours from arbeitsstunden.management.commands.utils.data import member from arbeitsstunden.models import account, costCenter, project, season, work from...
39.513158
177
0.583417
94cb30743aab8fc38db24573ea0d6bc918ba39a0
2,769
py
Python
Part.py
Nuaa-IMG/RL_Sequence
0b54598852a760833ef213afc17f41fc9d9058cb
[ "Apache-2.0" ]
null
null
null
Part.py
Nuaa-IMG/RL_Sequence
0b54598852a760833ef213afc17f41fc9d9058cb
[ "Apache-2.0" ]
null
null
null
Part.py
Nuaa-IMG/RL_Sequence
0b54598852a760833ef213afc17f41fc9d9058cb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Aug 8 17:35:59 2018 @author: ZZw """ import numpy as np from matplotlib import pyplot as plt from collections import deque class Sequence: def __init__(self,length, width, pocket,cut_depth ): self.a = "aba" self.length = length self.width = width ...
28.546392
110
0.574576
44da738c1617a78dd5bb2a68fa9b891afb910a2d
7,841
py
Python
ppyt/commands/update_data.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
4
2016-08-16T07:47:15.000Z
2017-12-11T10:08:47.000Z
ppyt/commands/update_data.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
null
null
null
ppyt/commands/update_data.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 from datetime import datetime from ppyt import const from ppyt.commands import CommandBase from ppyt.exceptions import CommandError from ppyt.models.orm import start_session, start_raw_connection, Stock, FinancialData logger = logging.getLogger(__name__) class Command(Command...
38.625616
99
0.546741
78c3b8178f7a313fa11070841be7ed77ec059ae1
816
py
Python
tests/onegov/chat/test_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/chat/test_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/chat/test_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.chat import MessageCollection def test_collection_filter(session): msgs = MessageCollection(session) msgs.add(channel_id='public', text='Yo!') msgs.add(channel_id='public', text='Yo Sup?') msgs.add(channel_id='public', text='Sup?') msgs.add(channel_id='private', text='U female?') ...
30.222222
62
0.672794
01de0d92e56c4903451c77d0451e69370c3d140d
1,704
py
Python
Webpage/utils/loginFunctions.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/utils/loginFunctions.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/utils/loginFunctions.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
''' Checked if der Nutzer des Request Teil der gegebenen Gruppe ist oder nicht @param request - Der request der geprüft werden soll @param groupName {[String]} - Die Namen der zu prüfenden Gruppe @return True oder false, je nachdem ob der Nutzer zur Gruppe gehört ''' def isUserPartOfGroup_Editor(user)-> bool: # Bi...
37.043478
109
0.734742
bda1dde2b406f28fadf1a275481c9f0a7418b1b1
373
py
Python
begin-python/cp13/query.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
3
2021-08-04T07:59:48.000Z
2022-03-26T23:58:17.000Z
begin-python/cp13/query.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
null
null
null
begin-python/cp13/query.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf8 -*- import sqlite3, sys conn = sqlite3.connect('food4.db') curs = conn.cursor() query = 'SELECT * FROM food WHERE %s' % sys.argv[1] print query curs.execute(query) names = [f[0] for f in curs.description] print names print curs.fetchall() for row in curs.fetchall(): for pair ...
21.941176
51
0.670241
bddfc3c3bb670ca71993509e699d2796e131b1b0
14,259
py
Python
Packs/CommonScripts/Scripts/ReadPDFFileV2/ReadPDFFileV2_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/CommonScripts/Scripts/ReadPDFFileV2/ReadPDFFileV2_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/CommonScripts/Scripts/ReadPDFFileV2/ReadPDFFileV2_test.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto import os import pytest from ReadPDFFileV2 import ShellException CWD = os.getcwd() if os.getcwd().endswith('test_data') else f'{os.getcwd()}/test_data' def open_html_file(file): with open(file, "r", encoding='utf-8') as f: return f.read() def test_urls_are_found_correctly...
38.959016
119
0.676625
da8ef0927f1b11e508c9a39c9a44dcab5ed8be66
1,526
py
Python
robolib/kerasplot/plot_callbacks.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
2
2017-11-30T21:12:11.000Z
2017-12-01T07:52:43.000Z
robolib/kerasplot/plot_callbacks.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
14
2017-11-14T18:12:53.000Z
2018-06-03T16:07:57.000Z
robolib/kerasplot/plot_callbacks.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
3
2018-02-05T10:40:03.000Z
2018-02-09T09:29:19.000Z
from keras.callbacks import Callback import matplotlib.pyplot as plt from threading import Thread from threading import Event class PlotWindowThread(Thread): def __init__(self, loss_callback_obj): self.is_changed = Event() super().__init__() self.loss_callback_obj = loss_callback_obj ...
25.016393
50
0.590433
f909ee2d9e22fc1d8ee71c03e7188a4b19b86034
434
py
Python
python/class_variables/class_variables.py
miroadamy/language-matrix
510bc33d058555da8a67f87d25353b93d219d750
[ "MIT" ]
15
2015-03-13T03:45:52.000Z
2022-02-26T00:11:18.000Z
python/class_variables/class_variables.py
miroadamy/language-matrix
510bc33d058555da8a67f87d25353b93d219d750
[ "MIT" ]
5
2015-02-23T18:20:17.000Z
2021-03-20T21:54:48.000Z
python/class_variables/class_variables.py
miroadamy/language-matrix
510bc33d058555da8a67f87d25353b93d219d750
[ "MIT" ]
9
2016-05-11T13:03:22.000Z
2021-04-11T13:07:12.000Z
# By default any variable that is list under the class # is a class variable that belongs solely to the class # not to any instance class Counter: """A simple counter class""" count = 0 Counter.count = 12 assert Counter.count == 12 Counter.count += 1 assert Counter.count == 13 # There is a specialized method ...
24.111111
64
0.737327
0091169d70f8b64eae259497323114e5bbb8d37c
178
py
Python
Webpage/member/filters.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/member/filters.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/member/filters.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from .models import profile import django_filters class userFilter(django_filters.FilterSet): class Meta: model = profile fields = ['status', 'roles']
17.8
43
0.668539
0092e6e24986576fba653f47bd99342eb9995a27
26
py
Python
x2paddle/op_mapper/onnx2paddle/opset9/__init__.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
559
2019-01-14T06:01:55.000Z
2022-03-31T02:52:43.000Z
x2paddle/op_mapper/onnx2paddle/opset9/__init__.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
353
2019-05-07T13:20:03.000Z
2022-03-31T05:30:12.000Z
x2paddle/op_mapper/onnx2paddle/opset9/__init__.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
241
2018-12-25T02:13:51.000Z
2022-03-27T23:21:43.000Z
from .opset import OpSet9
13
25
0.807692
c14b9f64b950a94722f89a48d663c12b1da1d78d
1,257
py
Python
Liquid-experiments/heartbeat/launcher.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
2
2021-08-30T14:12:09.000Z
2022-01-20T02:14:22.000Z
Liquid-experiments/heartbeat/launcher.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
Liquid-experiments/heartbeat/launcher.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
import random import json import time def train(jm=None, api=None, seed=2020, case=None): pass def test(jm=None, api=None, seed=2020, case=1): cases = ["before", "after"] if case not in cases: print('[WARN] case not in ' + str(cases)) return api.conf_reset() conf = {} if case == 'befor...
18.761194
57
0.574383
c1b61712aa0de5e1835a38791639cbe616b1364d
907
py
Python
___Python/Thomas/pycurs_180625/p04_oop/m04_oop_kalenderuhr.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Thomas/pycurs_180625/p04_oop/m04_oop_kalenderuhr.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Thomas/pycurs_180625/p04_oop/m04_oop_kalenderuhr.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from p04_oop.m02_oop_kalender import Kalender from p04_oop.m03_oop_uhr import Uhr class KalenderUhr(Kalender, Uhr): #vererben def __init__(self, tag, monat, jahr, stunde, minute, sekunde): Kalender.__init__(self, tag, monat, jahr) Uhr.__init__(self, stunde, minute, sekunde) def __repr_...
37.791667
99
0.643881
c1ffdc64141c3f2aa582d7ba000f6adf0221201b
321
py
Python
loesung/blatt1b_4d.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
1
2019-09-27T13:47:20.000Z
2019-09-27T13:47:20.000Z
loesung/blatt1b_4d.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
null
null
null
loesung/blatt1b_4d.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
null
null
null
# Hier sollen alle Zahlen von 1 bis 4 in jeder Kombination mit einander # multipliziert und sinnvoll ausgegeben werden. for factor1 in range(1, 5): for factor2 in range(1, 5): # Die Platzhalter werden von links nach rechts eingesetzt. print("{} * {} = {}".format(factor1, factor2, factor1*factor2))...
35.666667
71
0.691589
a9d5a6db940720f47b0626976025b28d4fd626e2
584
py
Python
965-univalued-binary-tree/965-univalued-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
965-univalued-binary-tree/965-univalued-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
965-univalued-binary-tree/965-univalued-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isUnivalTree(self, root: Optional[TreeNode]) -> bool: univalue=root.val stack=[root] ...
30.736842
61
0.527397
e7c14d8169150a0f0bab15fb21e3fc2b7e04bee5
2,486
py
Python
Packs/DeveloperTools/Scripts/VerifyObjectFieldsList/VerifyObjectFieldsList.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/DeveloperTools/Scripts/VerifyObjectFieldsList/VerifyObjectFieldsList.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/DeveloperTools/Scripts/VerifyObjectFieldsList/VerifyObjectFieldsList.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: E402 lgtm [py/polluting-import] from CommonServerPython import * # noqa: E402 lgtm [py/polluting-import] from typing import Dict, Any, Tuple import traceback def check_components(components: list, context: Any): """ Args: components(list): list of components re...
30.691358
94
0.658488
820d2127977a40a201200399eaacee67706b9ad7
1,613
py
Python
data/raspi/src/praxis/led-raten-erweiterung.py
softwareengel/softwareengel-blog
e24192c096be4361c7f7bbe00d2c3e8263c9fd0b
[ "MIT" ]
null
null
null
data/raspi/src/praxis/led-raten-erweiterung.py
softwareengel/softwareengel-blog
e24192c096be4361c7f7bbe00d2c3e8263c9fd0b
[ "MIT" ]
null
null
null
data/raspi/src/praxis/led-raten-erweiterung.py
softwareengel/softwareengel-blog
e24192c096be4361c7f7bbe00d2c3e8263c9fd0b
[ "MIT" ]
null
null
null
''' Instanziieren Sie auch für diese LED ein Objekt Ihrer LED Klasse. Entwickeln Sie ein Programm, bei dem eine Zahl geraten werden soll, welche ein anderer Spieler zu Beginn eingibt. Wenn ein Spieler eine falsche Zahl eingibt, soll die eine LED so oft blinken, wie der Abstand der falschen zur richtigen Zahl ist. G...
34.319149
138
0.704278
ec2ac68f7f248c2c7d30936057f571389db5f474
13,585
py
Python
webdav77-master/data/ScripCreate.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
webdav77-master/data/ScripCreate.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
webdav77-master/data/ScripCreate.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#Compiled By 404rgr #Hargai Karya Orang lain :) #404rgr@gmail.com import marshal exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00@\x00\x00\x00s!\x02\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00d\x02\x00Z\x02\x00d\x03\x00Z\x03\x00d\x04\x00Z\x04\x00d\x05\x00Z\x05\x0...
2,264.166667
13,503
0.713139
2e490d5877ecd4e0667cc3a4fae14a09ae9b018e
279
py
Python
backend/app/models/hint_image.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/app/models/hint_image.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/models/hint_image.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from sqlalchemy import Column, ForeignKey, Integer, String from app.db import Base class HintImage(Base): id = Column(Integer, primary_key=True, index=True) image_name = Column(String(length=255)) task_hint_id = Column(Integer, ForeignKey("taskhint.id"))
27.9
62
0.72043
2b551538d3271a08f0cb26ec0936ebe8488bb45e
19,046
py
Python
2017/finals/2017-finals-pwn-superman/build/src/generate.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2017/finals/2017-finals-pwn-superman/build/src/generate.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2017/finals/2017-finals-pwn-superman/build/src/generate.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
36.209125
824
0.53082
5cc851deb64fb8334b8b8543a5b88754750b03ff
335
py
Python
Python/Random/List-Comprehensions/00.01-List-Comprehensions-2.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Random/List-Comprehensions/00.01-List-Comprehensions-2.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Random/List-Comprehensions/00.01-List-Comprehensions-2.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
squares = [] for x in range(10): squares.append(x ** 2) print(squares) squares2 = [x ** 2 for x in range(10)] print(squares2) combs = [] for x in [1, 2, 3]: for y in [3, 1, 4]: if x != y: combs.append([x, y]) print(combs) combs2 = [[x, y] for x in [1, 2, 3] for y in [3, 1, 4] if x != y]...
16.75
65
0.519403
7a21b5bb93ea499681ed921802c88d67f62db602
408
py
Python
vorl3-ueb2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl3-ueb2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl3-ueb2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# 3. Vorlesung 09.10.2020 # Aufgabe 2 aus Skript Python 2 (05_Python_02.pdf): # Fehlerbehandlung (Div durch 0) while True: try: print("Fehler wird erzeugt: Division durch die Zahl 0...\n") (a,b) = (1.0,0.0) c = a/b except: print(" --> Fehler: Bei der Ausfühung ist ein undefinier...
29.142857
91
0.629902
857c469042c46c23ba5313400917cf3d13eac3f3
538
py
Python
python/contextlib/contextlib_exitstack_callbacks_error.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/contextlib/contextlib_exitstack_callbacks_error.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/contextlib/contextlib_exitstack_callbacks_error.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
""" The callbacks are invoked regardless of whether an error occurred, and they are not given any information about whether an error occurred. Their return value is ignored. """ import contextlib def callback(*args, **kwargs): print('closing callback({}, {})'.format(args, kwargs)) try: with contextlib.ExitS...
26.9
70
0.695167
a42cc3bf91edb896e5af17d666ee6fe7327a27a2
1,303
py
Python
test_pyparsing_1.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
test_pyparsing_1.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
test_pyparsing_1.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
import pyparsing as pp pp_identifier = ( # keywords is not identifier, pp.NotAny( pp.Keyword("void") | pp.Keyword("unsigned") | pp.Keyword("signed") | pp.Keyword("int") | pp.Keyword("float") | pp.Keyword("const") | pp.Keyword("volatile") | pp.Keyword("extern") | pp.Keyword("static") ) + pp.Word(...
21.016129
83
0.66462