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
dc9e80b17d900ec90393870f8906fe436c356ec1
1,488
py
Python
DataStructures/Tree/SwapNodes.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Tree/SwapNodes.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Tree/SwapNodes.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 class Node(object): def __init__(self, data=None, left=None, right=None): self.data = data self.left = left self.right = right ''' def Inorder(root): if root: Inorder(root.left) print root.data, Inorder(root.right) ''' def Inorder(root): stack =...
21.882353
57
0.531586
f492bed62e1882e3e6396c6cfee470471ba493a9
1,834
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/02_string_manipulation.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/02_string_manipulation.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/02_string_manipulation.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Manipulation von Strings teststring='das ist EIN TEsTsTRInG' low='lower' upp='UPPER' print('Stirings wie dieser:['+teststring+'] Können auch manipuliert werden') print() input() print('Man kann z.b. mit upper() den kompletten Inhalt des Strings\nin Grossbuchstaben schreiben.') print('Beispiel:', teststring.upper())...
33.962963
202
0.700109
f498818387aca8d1ffbc362c5834f282b3df40c7
1,979
py
Python
src/wrapped/spotify_access.py
willfurtado/SMAS
d094c9e021cd863e7f59ec171f0e46572aff4944
[ "MIT" ]
null
null
null
src/wrapped/spotify_access.py
willfurtado/SMAS
d094c9e021cd863e7f59ec171f0e46572aff4944
[ "MIT" ]
null
null
null
src/wrapped/spotify_access.py
willfurtado/SMAS
d094c9e021cd863e7f59ec171f0e46572aff4944
[ "MIT" ]
null
null
null
import spotipy from secrets import CLIENT_ID, CLIENT_SECRET, REDIRECT_URI from spotipy.oauth2 import SpotifyOAuth class SpotifyAccess: "Spotify API abstraction" def __init__(self, username, scope): self.name = username self.client_id = CLIENT_ID self.client_secret = CLIENT_SECRET ...
30.446154
82
0.48762
87558778217907e7ad6e2757d46f7b63f196d6c0
614
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex03_gcd.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex03_gcd.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex03_gcd.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def gcd(a, b): # rekursiver Abbruch if b == 0: return a # rekursiver Abstieg return gcd(b, a % b) def gcd_iterative(a, b): while b != 0: remainder = a % b a = b b = remainder ...
14.619048
50
0.54886
0d8798a4459cff7883b93d07ec3abd2396710c2a
3,301
py
Python
bin/oblique.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
5
2017-04-18T20:21:06.000Z
2020-12-28T05:44:39.000Z
bin/oblique.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
35
2016-09-21T18:04:51.000Z
2020-03-11T02:39:20.000Z
bin/oblique.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
2
2018-12-17T03:16:35.000Z
2020-10-18T10:09:01.000Z
#! /usr/bin/env python # coding=UTF-8 # https://en.wikipedia.org/wiki/Oblique_Strategies # https://traviscj.com/blog/oblique_programming_strategies.html import random import sys strategies = [ 'Solve the easiest possible problem in the dumbest possible way.', 'Write a test for it.', 'Is there...
60.018182
235
0.690094
1d9f3242b01e5f1f01dbd28ac9421ff8c1a43857
3,805
py
Python
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/crop_cycle/crop_cycle.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/crop_cycle/crop_cycle.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/crop_cycle/crop_cycle.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document import ast class CropCycle(Document): def validate(self)...
36.586538
93
0.731143
d5226c97411f131e717abc22e12c0b3d226b34e1
3,446
py
Python
test/test_npu/test_network_ops/test_split_with_sizes.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_split_with_sizes.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_split_with_sizes.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...
41.518072
104
0.600406
6357cce4d583c7224a83f27e093a4b38c493a752
2,772
py
Python
u1.py
watsondeservescredit/BIOINF101-Aufgabe-1
d366195be0ee663ec1b7aae50230f9d64e7c7a6a
[ "MIT" ]
null
null
null
u1.py
watsondeservescredit/BIOINF101-Aufgabe-1
d366195be0ee663ec1b7aae50230f9d64e7c7a6a
[ "MIT" ]
null
null
null
u1.py
watsondeservescredit/BIOINF101-Aufgabe-1
d366195be0ee663ec1b7aae50230f9d64e7c7a6a
[ "MIT" ]
null
null
null
from itertools import product #quick hack script. replace K in kmer function and DNA in check_mer_count function with your data. #returns the most occured mers and their reverse also the maximum count these achieved in the line below #this function reverses the sequence (c) bioinfo 101 def reverse(input_sequence): ...
47.793103
883
0.762987
8931bf1a634ff1fdeb557edf81ff16bd5adbb4e3
102
py
Python
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .main import get_pipeline_surface_routers from .surface import pipeline_surface, PipelineSurface
34
54
0.882353
f6efa192a45c3642639edc2fbe191fe680a1e3ad
811
py
Python
utils/set_logger.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
utils/set_logger.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
utils/set_logger.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
import os import datetime import logging def get_logger(logdir): logger = logging.getLogger() logger.setLevel(logging.INFO) ts = str(datetime.datetime.now()).split('.')[0].replace(' ', '_') ts = ts.replace(':', '_').replace('-', '_') file_path = os.path.join(logdir, 'run_{}.log'.format(ts)) h...
25.34375
74
0.678175
121808267cd88566be6d48f7e597d5d6a0929315
6,919
py
Python
test/test_projects.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
test/test_projects.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
test/test_projects.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
import filecmp import os import shutil import stat import subprocess from pathlib import Path import pytest from cleo import CommandTester from ruamel.yaml import YAML from autojail.main import AutojailApp project_folder = os.path.join(os.path.dirname(__file__), "test_data") autojail_root_folder = Path(__file__).par...
28.356557
85
0.658043
f677f647ebf8811bcbaaad98110ca329e748efa8
214
py
Python
python/testlint/test/example.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/testlint/test/example.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/testlint/test/example.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
def add_up(a, b): return a + b def test_add_up_succeed(): assert add_up(1, 2) == 3 def test_add_up_fail(): assert add_up(1, 2) == 4 def ignore_me(): assert "I will be" == "completely ignored"
14.266667
46
0.616822
2c2eaacdbe05595ce43fe9776180f59f5a25e7c8
3,279
py
Python
KnowledgeQuizTool/MillionHeroAssistant/core/baiduzhidao.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
KnowledgeQuizTool/MillionHeroAssistant/core/baiduzhidao.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
KnowledgeQuizTool/MillionHeroAssistant/core/baiduzhidao.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Baidu zhidao searcher """ from concurrent.futures import ThreadPoolExecutor from concurrent.futures import as_completed import requests from lxml import html def zhidao_search(keyword, default_answer_select, timeout=2): """ Search BaiDu zhidao net :param keyword: ...
27.099174
149
0.57853
d39eef683e28c026412fcde0ec7a621230d23f23
373
py
Python
src/tango_sdp_subarray/SDPSubarray/release.py
ska-telescope/sdp-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
2
2019-07-15T09:49:34.000Z
2019-10-14T16:04:17.000Z
src/tango_sdp_subarray/SDPSubarray/release.py
ska-telescope/sdp-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
17
2019-07-15T14:51:50.000Z
2021-06-02T00:29:43.000Z
src/tango_sdp_subarray/SDPSubarray/release.py
ska-telescope/sdp-configuration-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
1
2019-10-10T08:16:48.000Z
2019-10-10T08:16:48.000Z
# -*- coding: utf-8 -*- """Release information for Python Package.""" # Consider change to: ska-tangods-sdpsubarray ? NAME = "ska-sdp-subarray" # For version names see: https://www.python.org/dev/peps/pep-0440/ VERSION = "0.7.0" VERSION_INFO = VERSION.split(".") AUTHOR = "ORCA team, Sim Team" LICENSE = 'License :: OSI...
31.083333
66
0.689008
e238eb32ae178f2903389d762bb3cfb34a7a3943
2,273
py
Python
LFA/class_factory.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
LFA/class_factory.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
LFA/class_factory.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
from class_assembly_line import Assembly_Line class Factory: errors = 0 closed = False def __init__(self, assembly_type, max_errors): self.line = Assembly_Line(assembly_type) self.name = self.line.type self.lines = [Assembly_Line(assembly_type) for lines in range(len(self.line))]...
29.141026
86
0.529256
e287a0457d5207c6452dd8cebc2b4c0bb4c0e738
28,372
py
Python
multisensor.py
ClimberWue/greenhouse
e6ebcb1456cfb2727522925d83a66d105594526d
[ "Unlicense" ]
null
null
null
multisensor.py
ClimberWue/greenhouse
e6ebcb1456cfb2727522925d83a66d105594526d
[ "Unlicense" ]
null
null
null
multisensor.py
ClimberWue/greenhouse
e6ebcb1456cfb2727522925d83a66d105594526d
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import paho.mqtt.client as mqtt import os import io import glob import time import datetime import sys from ctypes import c_short from ctypes import c_byte from ctypes import c_ubyte import tkinter from tkinter import * from tkinter import ttk import board import busio import...
33.029104
527
0.587551
2c3e667abd99e930482c8e8cef703c288102caa7
1,914
py
Python
src/assets/experiences/sortierroboter/libs/berrytemplates.py
TU-Blueberry/bluestberry
fbde8dbcd730fe5c4e69ba15a1208a5c0903aa7d
[ "MIT" ]
1
2022-03-28T17:23:03.000Z
2022-03-28T17:23:03.000Z
src/assets/experiences/sortierroboter/libs/berrytemplates.py
TU-Blueberry/bluestberry
fbde8dbcd730fe5c4e69ba15a1208a5c0903aa7d
[ "MIT" ]
null
null
null
src/assets/experiences/sortierroboter/libs/berrytemplates.py
TU-Blueberry/bluestberry
fbde8dbcd730fe5c4e69ba15a1208a5c0903aa7d
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd from skimage import io from skimage import transform from sklearn import metrics from sklearn.ensemble import RandomForestClassifier path = "BlueberryData/TrainingData/" def load_images(): labels = [] samples = [] for file in os.listdir(path): res...
33
120
0.666144
2c5aaef3311d500de5b9190f6ad53c422b1093d0
83
py
Python
lanz/apps.py
linemax/lanz
c7f6eb150c260f088faa8255f0b15fcc9435c4af
[ "Apache-2.0" ]
null
null
null
lanz/apps.py
linemax/lanz
c7f6eb150c260f088faa8255f0b15fcc9435c4af
[ "Apache-2.0" ]
null
null
null
lanz/apps.py
linemax/lanz
c7f6eb150c260f088faa8255f0b15fcc9435c4af
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class LanzConfig(AppConfig): name = 'lanz'
13.833333
33
0.73494
3944578d8286250ff00f6c926ac4e5a4339602bb
448
py
Python
BIZa/2014/Tskipu_a_k/task_1_28.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/Tskipu_a_k/task_1_28.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/Tskipu_a_k/task_1_28.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 0. # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Эдсон Арантис ду Насименту. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Krasnikov A. S. # Цкипуришвили Александр # 01.02.2016 print("Норма Бе...
34.461538
219
0.792411
1a9bd64a56d2b4ec6de5f16589f26b1830724b61
183
py
Python
c++filt_perf.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
c++filt_perf.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
c++filt_perf.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
import os file = 'perf.log' with open(file) as f: for line in f: if 'libdecode.so' in line: cmd = 'c++filt %s' % line.split()[2] os.system(cmd)
18.3
49
0.508197
64915ff5a35a2793d7aedc73dc95311668c1712e
827
py
Python
RedBook/ch2/parse_image.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/parse_image.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/parse_image.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from urllib.request import urlopen from html.parser import HTMLParser class ImageParser(HTMLParser): def handle_starttag(self, tag, attrs): if tag != 'img': return if not hasattr(self, 'result'): self.result = [] for name, value in attrs: if name == 'src'...
23.628571
48
0.588875
809beefea9164b42b3043627eddace8595d6c694
7,519
py
Python
src/balldetection/Ball.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
src/balldetection/Ball.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
src/balldetection/Ball.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
from src.Util import getcolour class Ball(object): def __init__(self, position, radius=10, meta=None, max_history=2): """Represents a single ball mid-air, with its positions being updated every frame.""" self.colour = getcolour() self.position = position self.radius = radius ...
32.409483
94
0.583322
205c4f5006de32509c2ebf5478f3b17df6e65c0a
3,409
py
Python
scripts/generate_tpcds_schema.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
scripts/generate_tpcds_schema.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
scripts/generate_tpcds_schema.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import os import subprocess duckdb_program = '/Users/myth/Programs/duckdb-bugfix/build/release/duckdb' struct_def = '''struct $STRUCT_NAME { static constexpr char *Name = "$NAME"; static const char *Columns[]; static constexpr idx_t ColumnCount = $COLUMN_COUNT; static const LogicalType Types[]; static constexpr ...
32.466667
167
0.683485
45665b29494df65951d81b30841b182a36eb842d
867
py
Python
reverse/HolyGrenade/HolyGrenade.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
1
2019-06-15T11:45:41.000Z
2019-06-15T11:45:41.000Z
reverse/HolyGrenade/HolyGrenade.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
reverse/HolyGrenade/HolyGrenade.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
# uncompyle6 version 3.3.3 # Python bytecode 3.7 (3394) # Decompiled from: Python 2.7.16 (default, Mar 4 2019, 09:01:38) # [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)] # Embedded file name: HolyGrenade.py # Size of source mod 2**32: 829 bytes from secret import flag from hashlib import md5 def OO0o(...
29.896552
66
0.61707
45b1793519009229cd66f10c162d926a05e3b58b
1,799
py
Python
src/network/conversations/block_broadcasting.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
2
2021-11-08T12:00:02.000Z
2021-11-12T18:37:52.000Z
src/network/conversations/block_broadcasting.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
null
null
null
src/network/conversations/block_broadcasting.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
1
2022-03-28T13:49:37.000Z
2022-03-28T13:49:37.000Z
from .block_download import Block_download from ..bo.messages.get_blocks import Get_blocks from ..bo.messages.block_message import Block_message import os import sys sys.path.append("..") from src.db.mapper import Mapper from src.blockchain.block import Block class Block_broadcasting(): def __init__(self, node) -...
36.714286
111
0.654252
ff27b6f9ec2e89a4fdaa12005c4ca5d1c836ac12
47,692
py
Python
python/course/leetcode/53. Maximum Subarray.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/course/leetcode/53. Maximum Subarray.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/course/leetcode/53. Maximum Subarray.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # @Time:2020/6/29 18:52 # @Author:TimVan # @File:53. Maximum Subarray.py # @Software:PyCharm # 53. Maximum Subarray # Given an integer array nums, find the contiguous subarray (containing at least one number) # which has the largest sum and return its sum. # # Example: # Input: [-2,1,-3,4,-1,2,1...
104.358862
120
0.417701
caac73a15a8be8420cc3018ebf3c70bf80421433
2,073
py
Python
tarefas-poo/lista-03/balde/view/paineis/painel_manipula_baldes.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/balde/view/paineis/painel_manipula_baldes.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/balde/view/paineis/painel_manipula_baldes.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5663 # Exercício do Balde # -------------------------- # Classe que permite manipular os baldes. # from view.menu import Menu from model.balde import Balde class PainelManipulaBaldes: def __init__(self): opcoes = { 0: 'Voltar', 1...
32.390625
59
0.4959
942e89a9a1c8ae591995de386de5dd738b0b5bd9
660
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/59_exercicio/exercicio.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/59_exercicio/exercicio.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/59_exercicio/exercicio.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
lista_inteiros = [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [9, 1, 8, 9, 9, 7, 2, 1, 6, 8], [1, 3, 2, 2, 8, 6, 5, 9,6, 7], [3, 8, 2, 8, 6, 7, 7, 3, 1, 9], [4, 8, 8, 8, 5, 1, 10, 3, 1, 7], [1, 3, 7, 2, 2, 1, 5, 1, 9, 9], [10, 2, 2, 1, 3, 5, 1, 9, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ] def encont...
23.571429
39
0.506061
ca52c9ae898ef39b3b29c0708676ba0da8e0937f
368
py
Python
012-C108-BellCurve/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
2
2021-09-28T13:55:20.000Z
2021-11-15T10:08:49.000Z
012-C108-BellCurve/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
null
null
null
012-C108-BellCurve/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
1
2022-01-20T03:02:20.000Z
2022-01-20T03:02:20.000Z
# 012-C108-BellCurve # This is a python script made by @somePythonProgrammer # for a WhiteHat Junior project. import pandas as pd import plotly.figure_factory as ff df = pd.read_csv('012-C108-BellCurve/csv/data.csv') figure = ff.create_distplot([df['Rating'].tolist()],['Rating'], show_hist=False,) figure.write_html('...
33.454545
81
0.763587
f3fc8364ac9e9c09cc222faa4c67f6365e9be7b8
1,144
py
Python
Problems/Depth-First Search/medium/ArrayNesting/array_nesting.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/ArrayNesting/array_nesting.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/ArrayNesting/array_nesting.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def arrayNesting(self, nums: List[int]) -> int: res, seen = 0, set() for i in nums: j, l = i, 0 while j not in seen: seen.add(j) j = nums[j] l += 1 if l > res: res = l if l > len(nums) - len(seen): # early...
23.346939
52
0.444056
b6a5cabcd0af6dfd5329f5cfe8a6a89b5fb46a01
6,075
py
Python
biowardrobe_airflow_advanced/utils/initialize.py
Barski-lab/biowardrobe-airflow-advanced
e43aa268fd05635e8356788b8e814279b698263f
[ "Apache-2.0" ]
null
null
null
biowardrobe_airflow_advanced/utils/initialize.py
Barski-lab/biowardrobe-airflow-advanced
e43aa268fd05635e8356788b8e814279b698263f
[ "Apache-2.0" ]
1
2018-09-30T16:57:06.000Z
2018-09-30T16:57:06.000Z
biowardrobe_airflow_advanced/utils/initialize.py
Barski-lab/biowardrobe-airflow-advanced
e43aa268fd05635e8356788b8e814279b698263f
[ "Apache-2.0" ]
null
null
null
import os import logging import subprocess from json import dumps, loads from airflow.settings import DAGS_FOLDER from airflow.bin.cli import api_client from biowardrobe_airflow_advanced.templates.outputs import TEMPLATES from biowardrobe_airflow_advanced.utils.utilities import (validate_locations, ...
46.730769
133
0.617613
94d7b47a20db36530cab4c2967c969681e17940a
2,224
py
Python
python/game-of-life/src/board.py
enolive/learning
075b714bd7bea6de58a8da16cf142fc6c8535e11
[ "MIT" ]
8
2016-10-18T09:30:12.000Z
2021-12-08T13:28:28.000Z
python/game-of-life/src/board.py
enolive/learning
075b714bd7bea6de58a8da16cf142fc6c8535e11
[ "MIT" ]
29
2019-12-28T06:09:07.000Z
2022-03-02T03:44:19.000Z
python/game-of-life/src/board.py
enolive/learning
075b714bd7bea6de58a8da16cf142fc6c8535e11
[ "MIT" ]
4
2018-07-23T22:20:58.000Z
2020-09-19T09:46:41.000Z
from itertools import product class Board(object): def __init__(self, cell_array): self.living_cells = set() for p in self.__get_only_living_cells(cell_array): self.set_alive_at(p) def count_living_neighbours_of(self, position): (x, y) = position all_neighbours = [...
33.19403
87
0.617806
bfa7b094bd252f96cca44b38bd5cf048e4f776bc
11,769
py
Python
tests/test_experiments.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
tests/test_experiments.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
tests/test_experiments.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from json import dumps from unittest import TestCase from projects.api.main import app from projects.controllers.utils import uuid_alpha from projects.database import engine from projects.object_storage import BUCKET_NAME EXPERIMENT_ID = str(uuid_alpha()) NAME = "foo" PROJECT_ID = str(uuid_alp...
40.582759
198
0.57592
1572ef7362f0874b11201d2353bf0efd88af5413
1,482
py
Python
Apps/Model Evaluation/corpus_stats.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
1
2021-04-13T10:00:46.000Z
2021-04-13T10:00:46.000Z
Apps/Model Evaluation/corpus_stats.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
Apps/Model Evaluation/corpus_stats.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
from itertools import repeat from nltk import Tree from nltk.chunk.api import ChunkParserI from os import listdir from os.path import isfile, join from pprint import pprint as pp import csv import json import nltk import pickle import ner_pipeline TEXT_SET = 'NER-de-train' def read_germeval(): total_annotation_co...
27.444444
107
0.612011
159242fd716e8dfc6893e64d2936389428fbd757
210
py
Python
exercises/fr/solution_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/solution_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/solution_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importe la classe de langue "English" from spacy.lang.en import English # Crée l'objet nlp nlp = English() # Traite un texte doc = nlp("This is a sentence.") # Affiche le texte du document print(doc.text)
17.5
39
0.719048
172a78087505ee3ad01da87d77290f9d3a87e3dd
30,973
py
Python
labeldcm/module/app.py
hyh520/label-dcm
07f8257dcc52b827fcb6d1dec311b532c3ae8925
[ "MIT" ]
1
2021-12-20T11:06:42.000Z
2021-12-20T11:06:42.000Z
labeldcm/module/app.py
hyh520/label-dcm
07f8257dcc52b827fcb6d1dec311b532c3ae8925
[ "MIT" ]
null
null
null
labeldcm/module/app.py
hyh520/label-dcm
07f8257dcc52b827fcb6d1dec311b532c3ae8925
[ "MIT" ]
null
null
null
from labeldcm.module import static from labeldcm.module.config import config from labeldcm.module.mode import LabelMode from labeldcm.ui.form import Ui_Form from PyQt5.QtCore import pyqtBoundSignal, QCoreApplication, QEvent, QObject, QPointF, QRectF, QSize, Qt from PyQt5.QtGui import QColor, QCursor, QFont, QIcon, QMou...
38.285538
119
0.588383
bdfb629621674223dd543633dd0f525b0de89455
4,201
py
Python
tests/onegov/translator_directory/test_collections.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/translator_directory/test_collections.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/translator_directory/test_collections.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.translator_directory.collections.language import LanguageCollection from onegov.translator_directory.collections.translator import \ TranslatorCollection from onegov.translator_directory.constants import INTERPRETING_TYPES, \ PROFESSIONAL_GUILDS from tests.onegov.translator_directory.shared import c...
35.905983
79
0.712687
97c79deb52086a69f6295b76053c75a7863ee135
3,894
py
Python
examples/rasa_demo/actions/actions.py
ajay-cz/chatbot-engine
df58f3e7e899151feedb847e56d9fc699e66f60c
[ "MIT" ]
null
null
null
examples/rasa_demo/actions/actions.py
ajay-cz/chatbot-engine
df58f3e7e899151feedb847e56d9fc699e66f60c
[ "MIT" ]
1
2021-12-20T07:05:33.000Z
2021-12-29T01:35:37.000Z
examples/rasa_demo/actions/actions.py
ajay-cz/chatbot-engine
df58f3e7e899151feedb847e56d9fc699e66f60c
[ "MIT" ]
null
null
null
import os from mailchimp3 import MailChimp from mailchimp3.mailchimpclient import MailChimpError from rasa_sdk import Action from typing import Text class ActionAboutMe(Action): def name(self): return "action_about_me" def run(self, dispatcher, tracker, domain): message = { "type":...
32.181818
97
0.541089
c19d0cf43ece4171691192bd4d15debabda2a0a8
78
py
Python
open_archives.py
EmanuelDms/automation
25a0f370f40aa955225d7c3a1e28c2d8cc988689
[ "MIT" ]
null
null
null
open_archives.py
EmanuelDms/automation
25a0f370f40aa955225d7c3a1e28c2d8cc988689
[ "MIT" ]
null
null
null
open_archives.py
EmanuelDms/automation
25a0f370f40aa955225d7c3a1e28c2d8cc988689
[ "MIT" ]
null
null
null
arquivo = open('argv.py', 'r') for line in arquivo: print(line.rstrip())
15.6
30
0.628205
a9e1c83b048b08de68f1fd0dda0a5a9caf861ea9
973
py
Python
PMIa/2014/KUCHERYAVENKO_A_I/task_6_38.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2014/KUCHERYAVENKO_A_I/task_6_38.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2014/KUCHERYAVENKO_A_I/task_6_38.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 38. #Создайте игру, в которой компьютер загадывает имя одной из девяти муз в #древнегреческой мифологии, а игрок должен его угадать. # Kucheryavenko A. I. # 14.04.2016 import random muza = random.randint(1,9) print("Программа случайным образом загадывает имя одной из девяти муз в древнегреческо...
22.113636
128
0.638232
e7cfa98d5137209be1a30c32430d74089b87cf0a
2,054
py
Python
homepage/pelicanconf.py
ecs-org/ecs-docs
0d685db17731a35c90852d7f75fbdf3791bd696c
[ "Apache-2.0" ]
1
2020-01-04T05:51:39.000Z
2020-01-04T05:51:39.000Z
homepage/pelicanconf.py
ecs-org/ecs-docs
0d685db17731a35c90852d7f75fbdf3791bd696c
[ "Apache-2.0" ]
null
null
null
homepage/pelicanconf.py
ecs-org/ecs-docs
0d685db17731a35c90852d7f75fbdf3791bd696c
[ "Apache-2.0" ]
1
2021-11-23T15:41:01.000Z
2021-11-23T15:41:01.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals import os from datetime import datetime AUTHOR = ( datetime.now().strftime("%Y") + " Medizinische Universität Wien, Medizinische Universität Innsbruck, Medizinische Universität Graz, Johannes Kepler Universität Linz, Karl L...
25.358025
236
0.72298
99f35a1b101c11e72ff82ce426bd6f75cd636f82
2,842
py
Python
Prototype/main prototype/TempWidget.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
4
2019-12-03T16:13:09.000Z
2019-12-11T23:22:58.000Z
Prototype/main prototype/TempWidget.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
65
2019-12-08T17:43:59.000Z
2020-08-14T15:26:21.000Z
Prototype/main prototype/TempWidget.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
null
null
null
# This Python file uses the following encoding: utf-8 from PyQt5 import QtCore from PyQt5 import QtWidgets from CustomMiniWidgets import MyDoubleSpinBox class TempWidget(QtWidgets.QWidget): def __init__(self): QtWidgets.QWidget.__init__(self) #layout tempLayout = QtWidgets.QGridLayout() ...
38.405405
73
0.711471
68d09f1a8cb5d48ac305b586bd15eed139cbf565
345
py
Python
Python/M01_ProgrammingBasics/L05_WhileLoop/Exercises/Solutions/P06_Cake.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L05_WhileLoop/Exercises/Solutions/P06_Cake.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L05_WhileLoop/Exercises/Solutions/P06_Cake.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
width = int(input()) lenght = int(input()) count = width * lenght while count > 0: line = input() if line == "STOP": break else: new_pieces = int(line) count = count - new_pieces if count > 0: print(f"{count} pieces are left.") else: print(f"No more cake left! You need {ab...
19.166667
67
0.57971
6bf8c3921bd21176630543d5abaa7bb8dead2c28
1,912
py
Python
experiments/Non_RL.py
june6723/sumo-rl-offset
775cddc8d168fb7c4959610a96a791d746fa0afd
[ "MIT" ]
4
2020-10-11T01:30:13.000Z
2021-04-27T16:03:41.000Z
experiments/Non_RL.py
june6723/sumo-rl-offset
775cddc8d168fb7c4959610a96a791d746fa0afd
[ "MIT" ]
null
null
null
experiments/Non_RL.py
june6723/sumo-rl-offset
775cddc8d168fb7c4959610a96a791d746fa0afd
[ "MIT" ]
null
null
null
import argparse import os import sys if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) else: sys.exit("Please declare the environment variable 'SUMO_HOME'") import pandas as pd import ray from ray.rllib.agents.dqn.dqn import DQNTrainer from ray.rllib...
36.769231
110
0.544456
cf0f8c321f820512301141ab6ebc985c3606b464
1,078
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_06_Funktionen/12_chapter_06_repetition_task_5_turtle_figures.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_06_Funktionen/12_chapter_06_repetition_task_5_turtle_figures.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_06_Funktionen/12_chapter_06_repetition_task_5_turtle_figures.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 12_chapter_06_repetition_task_5_turtle_figures.py # Project: Kapitel_06_Funktionen # Created Date: Sunday 24.02.2019, 16:38 # Author: Apop85 # ----- # Last Modified: Tuesday 26.02.2019, 10:57 # ----- # Copyright (c) 2019 Apop85 # This software is published under...
17.966667
88
0.628015
d8d2741472f0ce94802ba1d021af9c447fa28883
1,639
py
Python
lab2/argparser.py
B0mM3L6000/CI
3b55ef8e6017a596e7b22e20a16ca7659bc73204
[ "MIT" ]
1
2018-04-18T19:55:42.000Z
2018-04-18T19:55:42.000Z
lab2/argparser.py
B0mM3L6000/CI
3b55ef8e6017a596e7b22e20a16ca7659bc73204
[ "MIT" ]
null
null
null
lab2/argparser.py
B0mM3L6000/CI
3b55ef8e6017a596e7b22e20a16ca7659bc73204
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser( description = "Parse TSP files and calculate paths using simple " "algorithms.") parser.add_argument ( "-n" , "--nearest" , action = "store_true" , dest = "need_nearest_neighbor" , default = False , help = "ca...
23.414286
79
0.591214
998081c4931a275b5bbe547b62f81755c8b87241
3,130
py
Python
python/system/gen_algo_core.py
Nekel-Seyew/SRN
806384cd11aff044b02b36e820940036c2352798
[ "Apache-2.0" ]
1
2016-08-30T18:25:08.000Z
2016-08-30T18:25:08.000Z
python/system/gen_algo_core.py
Nekel-Seyew/SRN
806384cd11aff044b02b36e820940036c2352798
[ "Apache-2.0" ]
null
null
null
python/system/gen_algo_core.py
Nekel-Seyew/SRN
806384cd11aff044b02b36e820940036c2352798
[ "Apache-2.0" ]
null
null
null
import pt_rand def reproduce(a,b, mutate_func, numkids = 10, mutate_chance=0.001): kids = [] agenes = a.get_genes() bgenes = b.get_genes() #half-and-half -> 2 a1 = agenes[:len(agenes)/2] a2 = agenes[len(agenes)/2:] b1 = bgenes[:len(bgenes)/2] b2 = bgenes[len(bgenes)/2:] kids.append(organism(a1+b2)) kids.appe...
28.198198
98
0.685304
5af3249a53fbc3a531538ae7c9ac5bd47c4436ca
3,524
py
Python
21-fs-ias-lec/FrontEnd/socialgraph/utils/jsonUtils.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/FrontEnd/socialgraph/utils/jsonUtils.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/FrontEnd/socialgraph/utils/jsonUtils.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import json import os def extract_connections(data, text): index = text.index(" ") id = text[0:index] hops = int(text[index+1:]) nodes = data['nodes'] links = data['links'] connections = [] for x in range(len(links)): s = links[x]['source'] t = links[x]['target'] ...
23.337748
78
0.458002
5cce56d4b59061c632b5ce82ab74819bc6dada71
590
py
Python
Automate your Morning Routine/Play Youtube.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-05T14:30:34.000Z
2021-07-05T14:30:34.000Z
Automate your Morning Routine/Play Youtube.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-02T15:36:02.000Z
2021-07-02T15:37:25.000Z
Automate your Morning Routine/Play Youtube.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-02T15:15:17.000Z
2021-07-02T15:15:17.000Z
from WakeyCore import youtubePlayList, playerVLC from tkinter import * # GlobalVars filePath = "c:\\logs\\" # Windows Path # MainWindow root = Tk() root.title("Youtube Player") # Playlist Entry Box v = StringVar() e = Entry(root, textvariable=v, width=60) e.pack() # YouTube Callback(WakeyCore) def youTube(event):...
18.4375
48
0.708475
7a460777e0253ac93482a0df5e7ab9eb081be3b2
2,590
py
Python
listings/chapter05/naive_salesman.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter05/naive_salesman.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter05/naive_salesman.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
from itertools import permutations # Brute-Force-Ansatz für das Problem des Handlungsreisenden def generate_distances(): source_distances = { ("Berlin", "Kopenhagen"): 355, ("Berlin", "Warschau"): 517, ("Berlin", "Prag"): 280, ("Berlin", "Wien"): 524, ("Berlin", "Bern"): 753, ("Berlin", "P...
40.46875
116
0.568726
711f71885dae50ce9d4c7ad8e5845a836e13dd20
5,404
py
Python
tw_map.py
subkultur/teilwas_bot
dbdf5a65ce5056c6ffa159dd8fe3a96da1e8a074
[ "MIT" ]
null
null
null
tw_map.py
subkultur/teilwas_bot
dbdf5a65ce5056c6ffa159dd8fe3a96da1e8a074
[ "MIT" ]
null
null
null
tw_map.py
subkultur/teilwas_bot
dbdf5a65ce5056c6ffa159dd8fe3a96da1e8a074
[ "MIT" ]
null
null
null
import staticmaps import cairo import s2sphere import io # https://github.com/flopp/py-staticmaps/blob/master/examples/custom_objects.py class TextLabel(staticmaps.Object): def __init__(self, latlng: s2sphere.LatLng, text: str) -> None: staticmaps.Object.__init__(self) self._latlng = latlng ...
33.565217
109
0.536825
855ba6e229e44a9086582d6c4444528564430686
332
py
Python
tools/pythonpkg/tests/fast/api/test_dbapi04.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/api/test_dbapi04.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/api/test_dbapi04.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
#simple DB API testcase class TestSimpleDBAPI(object): def test_regular_selection(self, duckdb_cursor): duckdb_cursor.execute('SELECT * FROM integers') result = duckdb_cursor.fetchall() assert result == [(0,), (1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (None,)], "Incorrect resul...
36.888889
123
0.605422
8581899fa611131e70c08071b3cdf9b73659dc5b
901
py
Python
opencv_tutorial/opencv_python_tutorials/Image_Processing/image_processing.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/image_processing.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/image_processing.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 28 16:10:12 2019 @author: jone """ import cv2 import numpy as np # Camera 객체를 생성 후 사이즈로 320 x 240으로 조정 cap = cv2.VideoCapture(0) cap.set(3, 320) cap.set(4, 240) while(1): # camera에서 frame capture ret, frame = cap.read() if ret: # BGR -> HSV로 변환...
21.452381
55
0.551609
859d1cd548c1779a34d8dee902b3966ef89b0db1
353
py
Python
python/en/archive/books/jump2python/j2p-05_2-module.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/jump2python/j2p-05_2-module.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/jump2python/j2p-05_2-module.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ p.212 05-2.모듈 @author: aimldl """ # mod1.py def sum(a,b): return a+b def safe_sum(a,b): if type(a) != type(b): print("Different types!") return else: result = sum(a,b) return result print( safe_sum('a',1) ) print( safe_...
15.347826
33
0.535411
2d1a1ce3dc32764d0032a039e350c60e1237d086
997
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOopenfile.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOopenfile.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOopenfile.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from builtins import str from qgis.core import QgsProject import os def run(id, gtotool, config, debug): try: #init iface = gtotool.iface info = gtotool.info #metadata layer = config['layer'] field = config['field'] ...
26.945946
73
0.51655
74a04c83aadbdc1884746415fc7b8496e6ab8206
996
py
Python
game1/Players.py
JordanG8/Bahr
03911f3ac7275f46abc510cf85c8850c31572203
[ "MIT" ]
null
null
null
game1/Players.py
JordanG8/Bahr
03911f3ac7275f46abc510cf85c8850c31572203
[ "MIT" ]
null
null
null
game1/Players.py
JordanG8/Bahr
03911f3ac7275f46abc510cf85c8850c31572203
[ "MIT" ]
null
null
null
class player_class: number = 0 name = "" HP = 10 live = True raceWeapon = "" comp = False real_player_list = [] def addRealPlayers(): n = 0 real_player_list.append(player_class()) print("Enter the first player's name:") real_player_list[n].name = input() real_p...
26.918919
71
0.543173
776a42827dbcedebf2a318afa9aebf089adeb9d2
4,753
py
Python
NN-modelSave2.py
bailejor/Behav_Interventions
8ef238ed913ee9b2744787a0bb2a67318df3fd3d
[ "MIT" ]
null
null
null
NN-modelSave2.py
bailejor/Behav_Interventions
8ef238ed913ee9b2744787a0bb2a67318df3fd3d
[ "MIT" ]
null
null
null
NN-modelSave2.py
bailejor/Behav_Interventions
8ef238ed913ee9b2744787a0bb2a67318df3fd3d
[ "MIT" ]
null
null
null
import numpy as np import pandas from keras.models import Sequential from keras.layers import Dense, Dropout, Activation from keras.optimizers import SGD from math import sqrt from numpy.random import seed from keras.regularizers import l1 import random from keras.models import model_from_json import os import tensorfl...
43.209091
167
0.680202
778e7868fad1486d1910460c266cb53f41a39a90
2,789
py
Python
tests/views/test_root.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/views/test_root.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/views/test_root.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import os from project import dump_path def test_home(client, seeder, utils): url = utils.get_url("home") utils.get_ok(url) url = utils.get_url("home", src="infoscreen") response = client.get(url) utils.assert_response_redirect(response, "home") def test_organizations(client, seeder, utils): ...
26.561905
63
0.684833
247c1a22827c11203217b99c29919e0f08c34ce6
162
py
Python
reverse/MasterPiece/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
1
2019-06-15T11:45:41.000Z
2019-06-15T11:45:41.000Z
reverse/MasterPiece/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
reverse/MasterPiece/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
data = open("data-14006B000", "r").read() a = [] index = 0 for _ in range(266504): index = data.find("dup(", index) + 4 a.append(int(data[index])) print(a)
13.5
41
0.598765
24e0b2d4837ab5dd9943937938b6187617c6cf17
848
py
Python
30 Days of Code/30DoC-day-14/30DoC_day_14.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
30 Days of Code/30DoC-day-14/30DoC_day_14.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
30 Days of Code/30DoC-day-14/30DoC_day_14.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
# class constructor takes an array of integers as a parameter and saves it to the __elements instance variable. class Difference: def __init__(self, a): self.__elements = a def computeDifference(self): maxDiff = 0 # computeDifference method that finds the maximum absolute difference betwee...
27.354839
165
0.666274
704bd52ef8843f83305e2e04d15495f302b727e3
966
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/user_role.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/user_role.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/user_role.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # -*- codi...
27.6
68
0.60559
561185359411f00e5f3b001c6373cc97191aff53
191
py
Python
main_qr_scanner.py
Themishau/AGI_QR_CODE_PROJEKT
390bcd4d211e66f0520646591d7e542edc683ad6
[ "MIT" ]
null
null
null
main_qr_scanner.py
Themishau/AGI_QR_CODE_PROJEKT
390bcd4d211e66f0520646591d7e542edc683ad6
[ "MIT" ]
null
null
null
main_qr_scanner.py
Themishau/AGI_QR_CODE_PROJEKT
390bcd4d211e66f0520646591d7e542edc683ad6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #from GUI_rasp_noasyn import * from GUI import * if __name__ == '__main__': print("start") menu = Controller(['update_process'], 'controller') menu.run()
21.222222
55
0.633508
568ee2e81e13d10d2ab110904919a0a24f58d7eb
2,572
py
Python
2-resources/__DATA-Structures/Code-Challenges/cc71meanMedianMode/meanMedianMode.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/Code-Challenges/cc71meanMedianMode/meanMedianMode.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/Code-Challenges/cc71meanMedianMode/meanMedianMode.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# cc71 meanMedianMode https://repl.it/student/submissions/1871422 ''' Write a function that, given a list of numbers, calculates the mean, median, and mode of those numbers. Return a dictionary with properties for the mean, median and mode. For example: mmm_dict = meanMedianMode([1,2,3,4,5,6,7,8,9,10,10]) print(mmm_di...
48.528302
520
0.634526
d917fa47c8a01e532ee22f07c029dc93c2ec783b
616
py
Python
697-degree-of-an-array/697-degree-of-an-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
697-degree-of-an-array/697-degree-of-an-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
697-degree-of-an-array/697-degree-of-an-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def findShortestSubArray(self, nums: List[int]) -> int: max_cnt = 0 for num in set(nums): cur_cnt = nums.count(num) if cur_cnt > max_cnt: max_cnt=cur_cnt max_num = [num] elif cur_cnt == max_cnt: max_n...
34.222222
75
0.517857
d99062f3972070691aa56b50d43f312be1bf3393
6,324
py
Python
stiff_ode_solvers.py
patcher1/numerik
ad24c8522d61970a3a881e034a7940d43ba486be
[ "BSD-3-Clause" ]
null
null
null
stiff_ode_solvers.py
patcher1/numerik
ad24c8522d61970a3a881e034a7940d43ba486be
[ "BSD-3-Clause" ]
null
null
null
stiff_ode_solvers.py
patcher1/numerik
ad24c8522d61970a3a881e034a7940d43ba486be
[ "BSD-3-Clause" ]
1
2019-10-01T14:36:03.000Z
2019-10-01T14:36:03.000Z
import numpy as np import numpy.linalg import scipy import scipy.linalg import scipy.optimize import matplotlib.pyplot as plt from ode_solvers import * from scipy.linalg import expm from numpy.linalg import solve, norm from numpy import * def exp_euler_long(f, Df, y0, t0, T, N): """ Exponentielles...
26.460251
109
0.502214
8de845bfa833cfc074c6fa3cb0f50088a38251b6
129
py
Python
nz_crawl_demo/day3/demo2.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day3/demo2.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day3/demo2.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from lxml import etree html = etree.parse('tencent.html') #读取外部文件 result = etree.tostring(html,pretty_print=True) print(result)
21.5
47
0.775194
5c1c779cd3f8953665f6406dded8e3885de8e2eb
4,150
py
Python
vae2gan/vae_train.py
x6rulin/AiLab
b810590d4da645915b8472554794d0c6908109e3
[ "MIT" ]
null
null
null
vae2gan/vae_train.py
x6rulin/AiLab
b810590d4da645915b8472554794d0c6908109e3
[ "MIT" ]
null
null
null
vae2gan/vae_train.py
x6rulin/AiLab
b810590d4da645915b8472554794d0c6908109e3
[ "MIT" ]
null
null
null
import sys import os import torch import torchvision rootpath = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(rootpath) from dnnlib.miscs import ArgParse, Trainer from dnnlib.util import Logger from vae2gan.core.loss import G_loss, D_loss class Args(ArgParse): def __init__(self): ...
45.604396
125
0.620964
308b4ed278155160def59d59484fc2cb5ee8c724
2,833
py
Python
src/onegov/foundation6/cli.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/foundation6/cli.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/foundation6/cli.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os import shutil import sys from pathlib import Path import click from subprocess import check_output from onegov.core.cli import command_group from onegov.core.utils import module_path cli = command_group() def pre_checks(): node_version = check_output('node --version', shell=True) if 'v10' not in no...
30.793478
76
0.643487
ccf73f0d1b8f873f11d2b58f0be1e4399a8c6dee
1,651
py
Python
Packs/MicrosoftGraphDeviceManagement/Integrations/MicrosoftGraphDeviceManagement/MicrosoftGraphDeviceManagement_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
1
2021-11-02T05:36:38.000Z
2021-11-02T05:36:38.000Z
Packs/MicrosoftGraphDeviceManagement/Integrations/MicrosoftGraphDeviceManagement/MicrosoftGraphDeviceManagement_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/MicrosoftGraphDeviceManagement/Integrations/MicrosoftGraphDeviceManagement/MicrosoftGraphDeviceManagement_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import pytest import json from CommonServerPython import DemistoException from MicrosoftGraphDeviceManagement import MsGraphClient, build_device_object, try_parse_integer, find_managed_devices_command with open('test_data/raw_device.json', 'r') as json_file: data: dict = json.load(json_file) raw_device = data....
34.395833
126
0.701393
15f013c2f580e0e4533d7434c3d7a954c320f8ae
2,072
py
Python
logya/main.py
yaph/logya
9647f58a0b8653b56ad64332e235a76cab3acda9
[ "MIT" ]
12
2015-03-04T03:23:56.000Z
2020-11-17T08:09:17.000Z
logya/main.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
78
2015-01-05T11:40:41.000Z
2022-01-23T21:05:39.000Z
logya/main.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
6
2015-04-20T06:58:42.000Z
2022-01-31T00:36:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse from logya import __version__ from logya.create import create from logya.generate import generate from logya.server import serve def main(): parent = argparse.ArgumentParser(add_help=False) parent.add_argument('--verbose', '-v', action='store_true...
44.085106
139
0.707529
ba7f4030ae455e9f7ae26ae173007edd78136a9d
135
py
Python
setting.py
MaliziaGrimm/pbd2lodas
a2447084177c87d1f2e8d1e2a7c0c4607bbbde74
[ "MIT" ]
null
null
null
setting.py
MaliziaGrimm/pbd2lodas
a2447084177c87d1f2e8d1e2a7c0c4607bbbde74
[ "MIT" ]
null
null
null
setting.py
MaliziaGrimm/pbd2lodas
a2447084177c87d1f2e8d1e2a7c0c4607bbbde74
[ "MIT" ]
null
null
null
Flask_Server_Name = 'localhost:1701' Version_Titel = 'Tool pbd2lodas V0.3b' Version_Program = 'Lohnabrechnungsdatenerfassung V0.3a'
33.75
56
0.8
307f46a0c84c6008055ac28c59d8daa035ed83a8
12,914
py
Python
ev3/sysroot/home/robot/roborinth/app/robo/Io.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
ev3/sysroot/home/robot/roborinth/app/robo/Io.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
ev3/sysroot/home/robot/roborinth/app/robo/Io.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
1
2019-10-22T07:47:51.000Z
2019-10-22T07:47:51.000Z
#!/usr/bin/env python3 import threading from time import sleep from ev3dev2.sensor.lego import TouchSensor from ev3dev2.sensor.lego import ColorSensor from ev3dev2.sensor.lego import UltrasonicSensor from ev3dev2.sensor.lego import GyroSensor from ev3dev2.motor import MediumMotor from ev3dev2.motor import MoveSteeri...
27.653105
109
0.736178
234b02195d5d0a10461a732ea220e1e57ba24840
8,047
py
Python
src/main/python/gps/gpsmap.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/gps/gpsmap.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/gps/gpsmap.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import logging import PIL.Image import PIL.ImageDraw import PIL.ImageTk # GUI import tkinter as tk import tkinter.font as tkFont # OSM import smopy # GPS import pynmea2 class GPSMap(tk.Frame): zoom = 13 font = None spdLabel = None mapLabel = None lastGpsPosition ...
40.034826
130
0.553001
001d01a64ab29960f6d6b58a05cef6b8e3e80ab0
4,339
py
Python
setup.py
spaeth/docassemble-onboarding
f4adc1d4123675a7ea564babb75e6c8f9723a593
[ "MIT" ]
null
null
null
setup.py
spaeth/docassemble-onboarding
f4adc1d4123675a7ea564babb75e6c8f9723a593
[ "MIT" ]
null
null
null
setup.py
spaeth/docassemble-onboarding
f4adc1d4123675a7ea564babb75e6c8f9723a593
[ "MIT" ]
null
null
null
import os import sys from setuptools import setup, find_packages from fnmatch import fnmatchcase from distutils.util import convert_path standard_exclude = ('*.pyc', '*~', '.*', '*.bak', '*.swp*') standard_exclude_directories = ('.*', 'CVS', '_darcs', './build', './dist', 'EGG-INFO', '*.egg-info') def find_package_dat...
71.131148
1,958
0.649228
cc40739c2f2da1ea2067e7244a419440bb8562f5
247
py
Python
rev/VerytriVialreVersing/gen.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
rev/VerytriVialreVersing/gen.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
rev/VerytriVialreVersing/gen.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
flag = "rarctf{See,ThatWasn'tSoHard-1eb519ed}" out = [] key = [0x13, 0x37] for c in flag: c = ord(c) out.append((c ^ key[0]) + key[1]) key = key[::-1] # print(', '.join([chr(c) for c in out])) print(', '.join([hex(c) for c in out]))
20.583333
46
0.54251
d1d8ae1f41bdb41e7d29727dc4f5b6a469563ef4
16
py
Python
flask_rabbitmq/exception/__init__.py
NimzyMaina/flask-rabbitmq
0005577f9ad2ec4a692d117b25c01246862437bd
[ "MIT" ]
55
2018-12-29T13:36:01.000Z
2022-01-13T09:49:44.000Z
schemas/__init__.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
3
2019-04-25T14:57:42.000Z
2020-03-29T09:27:42.000Z
flask_rabbitmq/exception/__init__.py
PushyZqin/flask-rabbitmq
5d6f4b16e56dcd818953ba875ab838bfb1fc5529
[ "MIT" ]
14
2019-02-12T12:38:50.000Z
2020-11-29T09:23:32.000Z
# encoding:utf-8
16
16
0.75
ae24fe4a14e5fd6f88af92fca4a5980dc9a34c1b
1,702
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_student_groups_from_student_batches.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/v8_0/update_student_groups_from_student_batches.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_student_groups_from_student_batches.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 from frappe.model.utils.rename_field import * from frappe.model.mapper import get_mapped_doc def execute(): if frappe.db.table_exists("Student Batch"): stud...
43.641026
105
0.740306
ee4075c33fd77c8c28f8ff666551a31823214bc6
3,765
py
Python
app/user/forms.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
app/user/forms.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
4
2020-08-29T16:11:12.000Z
2022-03-12T00:47:03.000Z
app/user/forms.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
# coding:utf-8 from flask_wtf import Form from wtforms import SelectField, StringField, TextAreaField, SubmitField, PasswordField,IntegerField,FileField from wtforms.validators import DataRequired, Length, Email, EqualTo class CommonForm(Form): types = SelectField(u'博文分类', coerce=int, validators=[DataRequired()])...
39.631579
110
0.726428
c9dc36d1051433a3833f90b43ab519958948fa3f
599
py
Python
tf/clasificador2/probador.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/clasificador2/probador.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/clasificador2/probador.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
# coding=UTF-8 import cv2 import sys import tensorflow as tf CATEGORIAS = ['dormido', 'despierto', 'otro'] def preparaimg(filepath): IMG_SIZE = 70 img_array = cv2.imread(filepath, cv2.IMREAD_GRAYSCALE) new_array = cv2.resize(img_array, (IMG_SIZE, IMG_SIZE)) return new_array.reshape(-1, IMG_SIZE, IMG_...
24.958333
97
0.709516
11c582fc493a90df167f7ad1d3230c9bf0b4c766
631
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_6/remove_fiscal_year_from_leave_allocation.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/v6_6/remove_fiscal_year_from_leave_allocation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_6/remove_fiscal_year_from_leave_allocation.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.reload_doctype("Leave Allocation") if frappe.db.has_column("Leave Allocation", "fiscal_year"): for leave_allocation in frappe.db.sql("select name, fiscal_year from `tabLeave Allocation`", as_dict=True): dates = frappe.db.get_value("Fisc...
35.055556
109
0.73851
11f7128f323718ee073335dd0c6aa3a87c371403
11,512
py
Python
tests/onegov/core/test_upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os.path import pytest import textwrap from click.testing import CliRunner from onegov.core.cli import cli from onegov.core.upgrade import get_tasks, upgrade_task, get_module_order_key from unittest.mock import patch def test_upgrade_task_registration(): class MyUpgradeModule(object): @upgrade_ta...
32.066852
79
0.562804
ee934c93a62c2d23a14f93d8d3b9f0fe16d29f7a
439
py
Python
us2/python/imports.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
2
2019-12-10T10:25:11.000Z
2021-01-26T13:59:40.000Z
us1/python/imports.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
null
null
null
us1/python/imports.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
1
2020-12-06T21:24:58.000Z
2020-12-06T21:24:58.000Z
import numpy as np import matplotlib.pyplot as plt from uncertainties import ufloat import uncertainties.unumpy as unp from scipy import optimize import scipy.constants as const from scipy.stats import sem np.genfromtxt('python/*.txt', unpack=True) np.savetxt('build/*.txt', np.column_stack([*, *]), header='*') param...
29.266667
78
0.767654
e12381001b2d923bee7e3222971790c087ba30d1
85
py
Python
v2/test.py
timm/py
28be3bb63433895e2bcab27ad82cb0b0cc994f37
[ "Unlicense" ]
1
2021-03-31T03:41:06.000Z
2021-03-31T03:41:06.000Z
v2/test.py
timm/py
28be3bb63433895e2bcab27ad82cb0b0cc994f37
[ "Unlicense" ]
null
null
null
v2/test.py
timm/py
28be3bb63433895e2bcab27ad82cb0b0cc994f37
[ "Unlicense" ]
null
null
null
def kk(): class B(A): pass from fred import jj B() jj() class A: pass kk()
8.5
21
0.552941
09a720a5da9143b12d040c70979b514811400002
1,044
py
Python
autojail/utils/draw_tree.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/utils/draw_tree.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/utils/draw_tree.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
# Adapted from https://rosettacode.org/wiki/Visualize_a_tree#Simple_decorated-outline_tree from itertools import chain, repeat, starmap from operator import add def draw_tree(trees, nest=lambda x: x.children, str=str): """ASCII diagram of a tree.""" res = [] for tree in trees: res += draw_node(tre...
27.473684
90
0.516284
1147c8f2c6c02528184acd3929699f1cf35822e7
709
py
Python
Praxisseminar/run.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
Praxisseminar/run.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
2
2020-06-24T13:01:22.000Z
2020-06-24T13:10:07.000Z
Praxisseminar/run.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
""" Praxisseminar run.py """ from mininet.net import Mininet from mininet.cli import CLI from minicps.mcps import MiniCPS from topo import CbTopo import sys class PraxisseminarCPS(MiniCPS): """Main container used to run the simulation.""" def __init__(self, name, net): self.name = name se...
16.880952
52
0.605078
fed9ad1bc5a5b7035112e3428b4d466ea7d4b8ea
594
py
Python
sdiff/__init__.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2016-05-10T13:57:14.000Z
2016-09-29T21:01:53.000Z
sdiff/__init__.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2015-10-20T22:29:37.000Z
2022-01-18T18:20:06.000Z
sdiff/__init__.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
1
2016-11-05T04:23:05.000Z
2016-11-05T04:23:05.000Z
from typing import Type from .parser import parse, MdParser, ZendeskHelpMdParser # noqa from .renderer import TextRenderer from .compare import diff_struct, diff_links # noqa def diff(md1, md2, renderer=TextRenderer(), parser_cls: Type[MdParser] = MdParser): tree1 = parse(md1, parser_cls) tree2 = parse(md2...
31.263158
83
0.739057
fef9ff0a45e015d4033dd22ca2db4e79d3d4d848
1,913
py
Python
source/data/streaming/kafkaStream.py
aaarl/Spotify-Auswertung-Big-Data-Plattform
47684db8eb3a8764568c1365dd02a8c2b3975dba
[ "Apache-2.0" ]
1
2021-12-29T20:06:54.000Z
2021-12-29T20:06:54.000Z
source/data/streaming/kafkaStream.py
aaarl/Spotify-Auswertung-Big-Data-Plattform
47684db8eb3a8764568c1365dd02a8c2b3975dba
[ "Apache-2.0" ]
null
null
null
source/data/streaming/kafkaStream.py
aaarl/Spotify-Auswertung-Big-Data-Plattform
47684db8eb3a8764568c1365dd02a8c2b3975dba
[ "Apache-2.0" ]
null
null
null
from pyspark import SparkConf, SparkContext from pyspark.sql import SparkSession from pyspark.sql.functions import explode, split def foreachBatch(dataframe, _id): dataframe.write\ .mode("overwrite") \ .format("jdbc") \ .option("truncate", "true") \ .option("driver", "com.mysql.jdb...
35.425926
152
0.652901
fefce893892fb66773e36fecf31825621dd9927e
2,866
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/evaluate_bpms.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/evaluate_bpms.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/evaluate_bpms.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import mar_collection def exact_accuracy(bpm_detected, bpm_ground): tolerance = 0.04 diff = abs(bpm_detected - bpm_ground) if diff <= tolerance * bpm_ground: return True return False def major_extended_harmonic_accuracy(bpm_detected, bpm_ground): toleranc...
29.546392
75
0.592463
28af0f0dfc6dd3b88bd3053f57afc1c1a5468139
9,024
py
Python
Liquid-optimizer/serve_lstm.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
2
2021-08-30T14:12:09.000Z
2022-01-20T02:14:22.000Z
Liquid-optimizer/serve_lstm.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
Liquid-optimizer/serve_lstm.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from threading import Thread from threading import Lock from http.server import BaseHTTPRequestHandler, HTTPServer import cgi import json from urllib import parse import pandas as pd import csv from pandas import DataFrame from pandas import Series from pandas import concat from pandas imp...
29.016077
98
0.653812
e92f9a8ff441e9c69572dfa4d665798b467df68d
386
py
Python
INBa/2015/SHEMYAKIN_A_V/task_1_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SHEMYAKIN_A_V/task_1_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SHEMYAKIN_A_V/task_1_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 31. # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Эмиль Эрзог. # Shemyakin A.V. # 29.02.2016 input ("Андре Моруа, более известный как Эмиль Саломон Вильгельм Эрзог, французский писатель и член Французской академии. Примечание: впоследствии псевдон...
55.142857
188
0.787565
3ac26ba81bff5703bf1f9963084b393544e98106
1,631
py
Python
checklisten/tests/test_views.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/checklisten/tests/test_views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/checklisten/tests/test_views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.test import TestCase, Client from django.urls import reverse from django.contrib.auth import get_user_model class TestViews(TestCase): def setUp(self): self.client = Client() # Hinzufügen von Admin user = get_user_model().objects.create_superuser( username='testluk...
35.456522
79
0.676885
c91fad73bc202f2f6ca2596c7f29b7587f9b2084
418
py
Python
code/fetch_nowcasts/fetch-LMU.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
code/fetch_nowcasts/fetch-LMU.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
code/fetch_nowcasts/fetch-LMU.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
import os import pandas as pd today = pd.to_datetime('today').date() filename = f'data-processed/LMU_StaBLab-GAM_nowcast/{today}-LMU_StaBLab-GAM_nowcast.csv' if os.path.exists(filename): print(f'Nowcast for today ({today}) has already been added.') else: df = pd.read_csv('https://raw.githubusercontent.com/Max...
34.833333
113
0.739234
a33607aa70c8061cf5f69960b1add31ab9a798b6
432
py
Python
oldp/apps/cases/processing/processing_steps/assign_topics.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/cases/processing/processing_steps/assign_topics.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/cases/processing/processing_steps/assign_topics.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
import logging from oldp.apps.cases.models import Case from oldp.apps.cases.processing.processing_steps import CaseProcessingStep logger = logging.getLogger(__name__) class AssignTopics(CaseProcessingStep): description = 'Assign topics' # default_court = Court.objects.get(pk=Court.DEFAULT_ID) def __ini...
24
74
0.74537
95504bdf9712bfdfd314c59e6f807636cd8d722f
1,762
py
Python
solution/graph_traversal/2206/main.py
gkgg123/baekjoon
4ff8a1238a5809e4958258b5f2eeab7b22105ce9
[ "MIT" ]
2,236
2019-08-05T00:36:59.000Z
2022-03-31T16:03:53.000Z
solution/graph_traversal/2206/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
225
2020-12-17T10:20:45.000Z
2022-01-05T17:44:16.000Z
solution/graph_traversal/2206/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
602
2019-08-05T00:46:25.000Z
2022-03-31T13:38:23.000Z
# Authored by : kis03160 # Co-authored by : tony9402 # Link : http://boj.kr/2cb5e18deb964794bec3e960225ad83e from collections import deque import sys def input(): return sys.stdin.readline().rstrip() def answer(row, col): global m, n shortest = 10000001 q = deque() direction = [(1, 0), (0, 1), (-...
25.171429
74
0.494325
6c8ce6b17de9741630222627955901ecc88f2264
1,471
py
Python
research/cv/LightCNN/src/get_list.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/LightCNN/src/get_list.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/LightCNN/src/get_list.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...
33.431818
78
0.67981
66a4c20641c6bdb09005a56ab1de9c436a1e1ca9
1,262
py
Python
02.Sort/M/B2578-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
02.Sort/M/B2578-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
02.Sort/M/B2578-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
array = [list(map(int, input().split())) for i in range(5)] check = [list(map(int, input().split())) for i in range(5)] def checkBingo(arr): bingoNum = 0 rightSlide = 0 leftSlide = 0 for i in range(5): colZeroNum = 0 verZeroNum = 0 for j in range(5): if...
24.745098
59
0.434231
dd4528d88f39cfca7fdec8f69f522d848fe2f268
2,308
py
Python
WebApp/WebApp/urls.py
wallamejorge/PepqaWebApp
20896a1224d1a2cea3a137950c4f0306f0269db7
[ "Apache-2.0" ]
null
null
null
WebApp/WebApp/urls.py
wallamejorge/PepqaWebApp
20896a1224d1a2cea3a137950c4f0306f0269db7
[ "Apache-2.0" ]
null
null
null
WebApp/WebApp/urls.py
wallamejorge/PepqaWebApp
20896a1224d1a2cea3a137950c4f0306f0269db7
[ "Apache-2.0" ]
null
null
null
"""WebApp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
39.118644
132
0.694974
dd844e63e96defa0bb0844fd4a4da33befd17415
617
py
Python
api/celeb.py
Solutions-Incorporated/beige-as-a-service
dd832bff2b9add83b0ce53c028ce533396b73cf8
[ "MIT" ]
null
null
null
api/celeb.py
Solutions-Incorporated/beige-as-a-service
dd832bff2b9add83b0ce53c028ce533396b73cf8
[ "MIT" ]
null
null
null
api/celeb.py
Solutions-Incorporated/beige-as-a-service
dd832bff2b9add83b0ce53c028ce533396b73cf8
[ "MIT" ]
null
null
null
import random import re BORING_COLOURS = [ "red", "blue", "green", "yellow", "pink", "orange", "purple", "white", ] def load_names(): with open("famous_names.txt") as f: names = [] for line in f: _, name, *_ = line.split(",") names.append(nam...
18.147059
51
0.570502
05b57339627f5649ef93cf286cd6996df52242c0
1,184
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex04_lca.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex04_lca.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex04_lca.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden from ch08_binary_trees.util import TreeUtils from ch08_binary_trees.intro.intro_binary_tree_node import BinaryTreeNode from ch08_binary_trees.intro.intro_binary_search_tree import insert def create_lca_example_tree(): _6 = Bi...
23.215686
73
0.706081
bb83eda8aec15b8b1e6b12caec27e31f2991c933
3,340
py
Python
tests/addons/reqs2reqs/test_empty_guard.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
tests/addons/reqs2reqs/test_empty_guard.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
tests/addons/reqs2reqs/test_empty_guard.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- from unittest.mock import patch import pytest from owlmixin import TOption from owlmixin.util import load_yaml from jumeaux.addons.reqs2reqs.empty_guard import Executor from jumeaux.domain.config.vo import Config as JumeauxConfig from jumeaux.models import Reqs2ReqsAddOnPa...
28.067227
96
0.526946