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
3d873971e0ef9fabea646948db78b261e0b15c9e
768
py
Python
task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 7. # Напишите программу, которая выводит имя, под которым скрывается Ричард Дженкинс. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения всех необходим...
48
436
0.770833
b25fa4252b8503869440658c8e0c0879140d3961
372
py
Python
python_gui_tkinter/KALU/Version 0.1/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/Version 0.1/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/Version 0.1/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from AppOperations import AppOperations as ao from AppOperations import Rec from MISman import MIS_calculations from load_data import cleanData #ao.update_Sl(3,'2018-07-30T20:15:54') #ao.reset_slno() #k = Rec.timestmp() #print("Type of k : ",type(k)) #print(Rec.timestmp()) #val = "T-93" #MIS_calculations.separate_data(...
28.615385
50
0.755376
b27fde0ca72e1e6d0366963abe6c1f427df38489
639
py
Python
03 Python/Entwicklung eines IoT-Devices/aufgabe/src/my_iot_device/statusled.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Entwicklung eines IoT-Devices/aufgabe/src/my_iot_device/statusled.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Entwicklung eines IoT-Devices/aufgabe/src/my_iot_device/statusled.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
import RPi.GPIO as GPIO LED_GPIO = 18 LED_FREQ = 2 LED_DUTY = 50 class StatusLedHandler: """ Subscriber-Klasse für die Status-LED. Lässt die LED blinken, so lange eine Messung läuft. """ def __init__(self, broker): """ Konstruktor. @param broker: Zentraler Pu...
22.034483
73
0.594679
a75f5d4a8e6cae719657f70803354a65d8a10528
1,310
py
Python
Packs/Campaign/Scripts/ShowCampaignSimilarityRange/ShowCampaignSimilarityRange_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Campaign/Scripts/ShowCampaignSimilarityRange/ShowCampaignSimilarityRange_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Campaign/Scripts/ShowCampaignSimilarityRange/ShowCampaignSimilarityRange_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto import pytest import ShowCampaignSimilarityRange INCIDENT_SIMILARITIES = [{"similarity": 1.000}, {"similarity": 0.946}, {"similarity": 0.977}, {"similarity": 0.999}] @pytest.mark.parametrize('incident_similarities, expected_header, expected_similarity, pixels', [ (INCIDENT_SIMILAR...
39.69697
117
0.694656
a767a2eba29e3d0cf529cc265b85c2b364aba4fe
336
py
Python
user/admin.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
user/admin.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
user/admin.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from user import models from user.models import User @admin.register(User) class UserAdmin(admin.ModelAdmin): list_display = ('name', 'professional', 'password', 'power', 'is_valid', 'created_time') list_per_page = 10 ordering = ['-...
25.846154
93
0.702381
ac25b7ed9b584c115d88fc42e86fa7be1406cd9c
2,220
py
Python
src/mmnt.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
4
2019-08-16T20:48:33.000Z
2021-05-23T20:10:08.000Z
src/mmnt.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
16
2019-08-21T19:06:15.000Z
2020-06-02T11:31:32.000Z
src/mmnt.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
null
null
null
# Movement import time from src import ca, gtps def _find_getch(): try: import termios except ImportError: # Non-POSIX. Return msvcrt's (Windows') getch. import msvcrt return msvcrt.getch # POSIX system. Create and return a getch that manipulates the tty. ...
30.833333
82
0.46036
ac4b7c5c69851d14fa894b93bb763e30d0574431
1,029
py
Python
Curso-Em-Video-Python/1Materias/20_Funcoes/#20 Funções part. 1.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/20_Funcoes/#20 Funções part. 1.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/20_Funcoes/#20 Funções part. 1.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
print('Apos fazer a def sempre pular 2 linhas') ''' def linha(): # função sem parametro print('-' * 24) linha() print(' Hello Word') linha() ''' ''' def mensagem(msg): # função com parametro print('-' * 24) print(msg) print('-' * 24) mensagem('Pedro') mensagem('Hello mundo') mensagem(f'{"oi":^...
15.358209
70
0.551992
3bad1ba404f9db0a7633d01b0c34c95ef55f33f3
1,116
py
Python
Algorithms/4_Sorting/14.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/4_Sorting/14.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/4_Sorting/14.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/insertion-sort/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'insertionSort' function below. # # The function is expected to return an INTEGER. # The function accepts INTEGER_ARRAY arr as parameter. # def add(arr, L, R): y...
21.461538
62
0.547491
0272fec82ad42f82118f0550a04ebd98a45da3db
2,141
py
Python
examples/allsmaller_pattern.py
xinetzone/dash-tests
cd4526caa2f9d906915c31370b3487bdcef92aa4
[ "Apache-2.0" ]
1
2022-03-01T07:38:32.000Z
2022-03-01T07:38:32.000Z
examples/allsmaller_pattern.py
xinetzone/dash-tests
cd4526caa2f9d906915c31370b3487bdcef92aa4
[ "Apache-2.0" ]
12
2021-07-13T12:33:36.000Z
2021-07-14T05:25:19.000Z
examples/allsmaller_pattern.py
xinetzone/dash-book
1f624e87e2aa02c9931318918df969e44bdd2c07
[ "Apache-2.0" ]
null
null
null
from dash import dcc, html from dash.dependencies import Input, Output, State, MATCH, ALL, ALLSMALLER import pandas as pd from sanstyle.github.file import lfs_url from app import app url = lfs_url('SanstyleLab/plotly-dastsets', 'gapminder2007.csv') df = pd.read_csv(url) layout = html.Div([ html.Butt...
33.453125
85
0.609995
ce58b63fab2aadf769bbcb2796fafd5c79646b52
1,360
py
Python
mumath/node/__init__.py
fourpoints/mumath
f1c36c4a5b3c32a3e7f8e7a922eafea8b7a14fd4
[ "MIT" ]
null
null
null
mumath/node/__init__.py
fourpoints/mumath
f1c36c4a5b3c32a3e7f8e7a922eafea8b7a14fd4
[ "MIT" ]
null
null
null
mumath/node/__init__.py
fourpoints/mumath
f1c36c4a5b3c32a3e7f8e7a922eafea8b7a14fd4
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from functools import partial from types import SimpleNamespace as Namespace from .mathml import node, collection, empty class Element(ET.Element): def __repr__(self): return f"<{self._name()} />" def _name(self): name = [self.tag] for key, value in ...
21.587302
61
0.615441
cecbd4e4bd517d1d6f0943ea8bdc2a63786af54c
35
py
Python
bbs/__init__.py
euphoriabbs/dark
6c2252181e95522d8fa718e2ef3b9e4395494457
[ "MIT" ]
1
2018-03-01T06:26:40.000Z
2018-03-01T06:26:40.000Z
bbs/__init__.py
euphoriabbs/dark
6c2252181e95522d8fa718e2ef3b9e4395494457
[ "MIT" ]
null
null
null
bbs/__init__.py
euphoriabbs/dark
6c2252181e95522d8fa718e2ef3b9e4395494457
[ "MIT" ]
null
null
null
""" The euphoriadark prototype. """
35
35
0.685714
0cf1733dc04158e7db230970ce35e37476616d3e
1,981
py
Python
research/cv/LearningToSeeInTheDark/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/LearningToSeeInTheDark/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/LearningToSeeInTheDark/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
41.270833
102
0.680464
b2c856564de735e7c4670895e7522b75320fcc16
1,325
py
Python
SOP/03/uebung.py
chfrank-cgn/FOM
72ada98bb287b00807911a070a390964b681f099
[ "CC-BY-4.0" ]
null
null
null
SOP/03/uebung.py
chfrank-cgn/FOM
72ada98bb287b00807911a070a390964b681f099
[ "CC-BY-4.0" ]
null
null
null
SOP/03/uebung.py
chfrank-cgn/FOM
72ada98bb287b00807911a070a390964b681f099
[ "CC-BY-4.0" ]
null
null
null
# Deklarationen text_1 = "Hallo Welt!" text_2 = "FOM" tupel = (1,2,3,4,5,6,7,8,9,10) # entspricht: tupel = tuple(range(1, 11)) liste_1 = [1,2,3,4,5,6,7,8,9,10] # s. o. (falls Sie die Zahlen nicht abschreiben wollen) liste_2 = [6,7,8,9,10,11,12,13,14,15] # ... zahl_1 = 6 zahl_2 = 12 # Uebung 1 print(len(text_1)) print...
18.928571
99
0.669434
d7e040cb384bd4dcdb55e2eade6b50bca1da47ae
100
py
Python
python/advanced_sw/KALO/mail/mail_Secrets.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/KALO/mail/mail_Secrets.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/KALO/mail/mail_Secrets.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
class Secret(): username="d" # write the username here password="" # write the password here
25
42
0.68
50576bcfb13aec7a32b5c641be96624fc6de387b
58,703
py
Python
src/bin/visitdiff.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/bin/visitdiff.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/bin/visitdiff.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
############################################################################### # # Purpose: Sets up a 2x2 layout of vis windows and expressions for database # differencing of scalar variables (vector variables are still to # be added). The intersection of the scalar variable names is # calcu...
37.606022
129
0.564128
acdd775e871487667ae7abcd249bc6bf3d6f57d1
2,969
py
Python
workspace/cogrob/service_manager/client/create.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
8
2019-05-07T02:30:58.000Z
2021-12-10T18:44:45.000Z
workspace/cogrob/service_manager/client/create.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
1
2021-03-17T07:18:23.000Z
2021-03-17T07:18:23.000Z
workspace/cogrob/service_manager/client/create.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
2
2019-05-21T14:15:24.000Z
2022-02-09T12:50:24.000Z
# Copyright (c) 2019, The Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
44.313433
79
0.780734
4a174d585a32843e35f9a317fe2219fcbf6eaace
7,453
py
Python
paddlenlp/taskflow/models/sentiment_analysis_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/taskflow/models/sentiment_analysis_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/taskflow/models/sentiment_analysis_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 # Copyright (c) 2021 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 req...
46.291925
144
0.630753
4a1d95d154648ea47f80e169fcd9dfd0f2a67bbd
3,373
py
Python
2018/finals/re-drm/validator/hash_asparagus.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/finals/re-drm/validator/hash_asparagus.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/finals/re-drm/validator/hash_asparagus.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
30.944954
126
0.66973
a8c572cbc113a2414cdc3ff1d5b3c6be2b3554f5
2,536
py
Python
Packs/HelloWorld/Scripts/HelloWorldScript/HelloWorldScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/HelloWorld/Scripts/HelloWorldScript/HelloWorldScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/HelloWorld/Scripts/HelloWorldScript/HelloWorldScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""HelloWorld Script for Cortex XSOAR (aka Demisto) This script is just a simple example on Code Conventions to write automation scripts in Cortex XSOAR using Python 3. Please follow the documentation links below and make sure that your integration follows the Code Conventions and passes the Linting phase. Developer ...
25.36
77
0.694006
e884906ff9d8b70ac2c46bfcc62dd222af15820a
303
py
Python
imgFilter/filter/models.py
xiang2002/Web
f12393c38ea3e88ceb67d270d707f3df0cf5e05a
[ "MIT" ]
1
2020-10-21T07:18:00.000Z
2020-10-21T07:18:00.000Z
imgFilter/filter/models.py
xiang2002/Web
f12393c38ea3e88ceb67d270d707f3df0cf5e05a
[ "MIT" ]
null
null
null
imgFilter/filter/models.py
xiang2002/Web
f12393c38ea3e88ceb67d270d707f3df0cf5e05a
[ "MIT" ]
null
null
null
from django.db import models class Queue(models.Model): name = models.CharField(max_length=50, blank=True, null=True) state = models.CharField(max_length=20, default='0') class Meta: db_table = 'queue' verbose_name = "筛选队列" verbose_name_plural = "筛选队列"
25.25
66
0.640264
d75a2bbe6da79e97b3926517ae10841b3db2e543
2,205
py
Python
task_3/Tests/Test_Find_winning_players.py
christopher-besch/bwinf39
e5394b37894a56608312057d179029d8a5df98fd
[ "MIT" ]
1
2021-01-04T15:16:44.000Z
2021-01-04T15:16:44.000Z
task_3/Tests/Test_Find_winning_players.py
christopher-besch/bwinf39
e5394b37894a56608312057d179029d8a5df98fd
[ "MIT" ]
null
null
null
task_3/Tests/Test_Find_winning_players.py
christopher-besch/bwinf39
e5394b37894a56608312057d179029d8a5df98fd
[ "MIT" ]
null
null
null
from find_winning_players import find_winning_player_liga, find_winning_player_ko import unittest def test_best_player_wins(player1, player2, skill_levels): skill_level1 = skill_levels[player1] skill_level2 = skill_levels[player2] if skill_level1 > skill_level2: return player1 return ...
38.017241
109
0.67483
d142bfb847c98cebae37d69f944e91c4b188415e
6,216
py
Python
Packs/MaxMind_GeoIP2/Integrations/MaxMind_GeoIP2/MaxMind_GeoIP2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/MaxMind_GeoIP2/Integrations/MaxMind_GeoIP2/MaxMind_GeoIP2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/MaxMind_GeoIP2/Integrations/MaxMind_GeoIP2/MaxMind_GeoIP2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import requests from collections import defaultdict from requests.auth import HTTPBasicAuth # disable insecure warnings requests.packages.urllib3.disable_warnings() '''GLOBAL VARS''' BASE_URL = demisto.params().get('ur...
34.533333
114
0.60843
0f255f633c40da62aae451d5af2692fce6735c72
1,110
py
Python
xiaobu/client.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
1
2020-07-16T02:52:47.000Z
2020-07-16T02:52:47.000Z
xiaobu/client.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
xiaobu/client.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
from socket import * import threading import binascii import re import time class Client: def __init__(self): HOST = '127.0.0.1' PORT = 23458 BUFSIZ = 1024 ADDRESS = (HOST, PORT) self.tcpClientSocket = socket(AF_INET, SOCK_STREAM) self.tcpClientSocket.connect(ADDRE...
21.764706
60
0.576577
0f3546c09a446ff267061333a2fa0b338562b1eb
2,004
py
Python
public/chart/integrations/django/samples/fusioncharts/samples/Plotting_Two_Variables.py
AizaDapitan/PMC-IMS_V3
271ce3193edbf5182a9e232666ca417561ba2d16
[ "MIT" ]
14
2016-11-03T19:06:21.000Z
2021-11-24T09:05:09.000Z
public/chart/integrations/django/samples/fusioncharts/samples/Plotting_Two_Variables.py
AizaDapitan/PMC-IMS_V3
271ce3193edbf5182a9e232666ca417561ba2d16
[ "MIT" ]
10
2022-02-16T07:17:49.000Z
2022-03-08T12:43:51.000Z
asset/integrations/django/samples/fusioncharts/samples/Plotting_Two_Variables.py
Piusshungu/catherine-junior-school
5356f4ff5a5c8383849d32e22a60d638c35b1a48
[ "MIT" ]
17
2016-05-19T13:16:34.000Z
2021-04-30T14:38:42.000Z
from django.shortcuts import render from django.http import HttpResponse # Include the `fusioncharts.py` file which has required functions to embed the charts in html page from ..fusioncharts import FusionCharts from ..fusioncharts import FusionTable from ..fusioncharts import TimeSeries import requests # Loading Dat...
39.294118
137
0.615768
7ebd009331bf245f3e2a5c5a82a3f710485095a0
198
py
Python
Python/Django/Django_Pseudo-Hashmap/api/urls.py
extrajp2014/computer-science-notes
fa06b72f7c388cb31630cf9aea9fefc46340756d
[ "MIT" ]
2
2021-02-22T02:55:33.000Z
2021-02-24T09:12:34.000Z
Python/Django/Django_Pseudo-Hashmap/api/urls.py
extrajp2014/computer-science-notes
fa06b72f7c388cb31630cf9aea9fefc46340756d
[ "MIT" ]
9
2020-01-07T16:49:07.000Z
2021-09-22T18:24:59.000Z
cs/lambda_cs/04_cs_build_week_1/api/urls.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
1
2019-11-19T00:54:54.000Z
2019-11-19T00:54:54.000Z
from django.urls import include, path from django.conf.urls import url urlpatterns = [ path('', include('rest_auth.urls')), path('registration/', include('rest_auth.registration.urls')), ]
24.75
66
0.712121
cb2c72b0f88080527609526e7509a27264045ab0
6,460
py
Python
src/visuanalytics/analytics/transform/calculate.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/analytics/transform/calculate.py
SWTP-SS20-Kammer-2/Data-Analytics
23f71b49efed53bba2887d68e389c732566e1932
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/analytics/transform/calculate.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
""" Modul für Berechnungen für den `transform`-Typ `calculate`. """ import collections import numbers import operator import numpy as np from visuanalytics.analytics.control.procedures.step_data import StepData from visuanalytics.analytics.transform.util.key_utils import get_new_keys CALCULATE_ACTIONS = {} """Ein Di...
34.361702
120
0.677709
cb4a4c7c8b252d2299aa1cac7a1a702a2386355c
814
py
Python
Codeforces/641-2/C.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
6
2018-10-15T18:45:05.000Z
2022-03-29T04:30:10.000Z
Codeforces/641-2/C.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
null
null
null
Codeforces/641-2/C.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
4
2018-01-07T06:20:07.000Z
2019-08-21T15:45:59.000Z
primes = [] def sieve(n): marked = [True for i in range(n+4)] p = 2 while (p * p <= n): if (marked[p] == True): for i in range(p * p, n+1, p): marked[i] = False p += 1 for p in range(2, n+1): if marked[p]: primes.append(p) def get_result(arr): res = 1 for p in primes: ...
16.28
38
0.46683
cb76b56bce6a703379465fc4f8b8421768b9d588
231
py
Python
exercises/es/exc_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/exc_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/exc_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # Carga el modelo es_core_news_sm nlp = ____ # Imprime en pantalla los nombres de los componentes del pipeline print(____.____) # Imprime en pantalla el pipeline entero de tuples (name, component) print(____.____)
21
68
0.779221
2a1e13efbc15ad014fc89c0afc185758a62c3985
121
py
Python
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/WK2/pol_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/WK2/pol_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/WK2/pol_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import math def ret_area(n,s): #PI_BY_N = math.pi/n return (n*s**2)/(4*math.tan(math.pi/n)) print(ret_area(7,3))
20.166667
43
0.628099
2a5c13d0abfa90d4ca44158b0ae5c50dcedf3d70
9,042
py
Python
profiles.py
Saeldur/sl-shadow-priest
a7b027506e52db8e7786ed9d67971adbba7389bd
[ "MIT" ]
null
null
null
profiles.py
Saeldur/sl-shadow-priest
a7b027506e52db8e7786ed9d67971adbba7389bd
[ "MIT" ]
null
null
null
profiles.py
Saeldur/sl-shadow-priest
a7b027506e52db8e7786ed9d67971adbba7389bd
[ "MIT" ]
null
null
null
"""Generates profiles used to sim based on the base profiles""" import os from itertools import combinations_with_replacement import re import yaml import internal.utils as utils with open("config.yml", "r") as ymlfile: config = yaml.load(ymlfile, Loader=yaml.FullLoader) fightExpressions = { "pw": 'fight_sty...
37.518672
95
0.606945
2a629442a621e8c1889682a2d7a1773bccda33eb
496
py
Python
src/labtest/migrations/0007_auto_20220321_0750.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
src/labtest/migrations/0007_auto_20220321_0750.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
1
2022-03-25T05:33:19.000Z
2022-03-25T05:33:19.000Z
src/labtest/migrations/0007_auto_20220321_0750.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2022-03-21 07:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('labtest', '0006_auto_20220321_0749'), ] operations = [ migrations.AlterField( model_name='labte...
24.8
124
0.647177
2da8331b2c6fb10a4dc1704ce3d30105e4ff6798
1,508
py
Python
Contests/CCC/CCC '01 S1 - Keeping Score.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/CCC/CCC '01 S1 - Keeping Score.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/CCC/CCC '01 S1 - Keeping Score.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
import sys input = sys.stdin.readline # I didn't use lists/dictionaries because Andrew claimed his code was faster # So I had to outclass him and not use lists/dictionaries at all. score = 0 # row score cards = 0 # cards in dealing total = 0 # complete total score inp = input() # take in the input # necessary outpu...
26
76
0.500663
2dfaea47cc067ef7efc4899fe1aadc20193ac7ec
3,621
py
Python
official/recommend/tbnet/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/tbnet/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/tbnet/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.685393
119
0.627451
faff3a361b5cb86ff3649f026991be548a3d8e12
2,625
py
Python
DataGenerator/createImages.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
6
2017-04-12T14:05:19.000Z
2021-01-29T11:23:50.000Z
DataGenerator/createImages.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
DataGenerator/createImages.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
######################################################################## ### Skript liest Fonts ein und erzeugt Trainings- und Testbilder ### ### Configuration erfolgt in "config.py" ### ######################################################################## import random from pathlib i...
36.458333
83
0.663619
35d6e77f9978e87c25de6699747fe5693bb8055e
4,270
py
Python
kts/core/feature_constructor/generic.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/core/feature_constructor/generic.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/core/feature_constructor/generic.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import inspect from copy import copy from functools import wraps from inspect import Signature, Parameter import numpy as np import kts.ui.components as ui from kts.core.feature_constructor.user_defined import FeatureConstructor from kts.util.misc import extract_requirements, validate_source class GenericFeatureCon...
40.666667
116
0.611944
57c338e0b24d9f027f4ebc839260fdc614acbc45
5,837
py
Python
src/its_duration_fit.py
icestorm972/Covid19-PyAnalysis-Collection
16127e9c590d37d3dfc89ec9877c52e6336d7d30
[ "MIT" ]
1
2021-05-02T09:53:25.000Z
2021-05-02T09:53:25.000Z
src/its_duration_fit.py
icestorm972/Covid19-PyAnalysis-Collection
16127e9c590d37d3dfc89ec9877c52e6336d7d30
[ "MIT" ]
null
null
null
src/its_duration_fit.py
icestorm972/Covid19-PyAnalysis-Collection
16127e9c590d37d3dfc89ec9877c52e6336d7d30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Nov 21 18:43:11 2021 @author: David """ from datetime import datetime import pandas as pd import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator, AutoMinorLocator import matplotlib.dates as mdates from matplotlib.dates import DateFormatter import num...
31.38172
99
0.581977
10399bb3f3d30a317130a5f774325626484cebdb
11,907
py
Python
packages/watchmen-rest-doll/src/watchmen_rest_doll/admin/space_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/admin/space_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/admin/space_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Callable, List, Optional from fastapi import APIRouter, Body, Depends from watchmen_auth import PrincipalService from watchmen_meta.admin import SpaceService, TopicService, UserGroupService, UserService from watchmen_meta.common import ask_meta_storage, ask_snowflake_generator from watchmen_model.a...
36.52454
120
0.793987
52e50ec60d395754b5ac0aae016a10cc78d73387
5,867
py
Python
src/visuanalytics/analytics/processing/image/wordcloud/wordcloud.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/analytics/processing/image/wordcloud/wordcloud.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/analytics/processing/image/wordcloud/wordcloud.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
""" Modul, welches die Wordcloud-Image-Funktionen beinhaltet. """ import numbers import random import numpy as np from wordcloud import WordCloud from visuanalytics.analytics.control.procedures.step_data import StepData from visuanalytics.util import resources WORDCLOUD_DEFAULT_PARAMETER = { "background_color": ...
38.097403
126
0.665417
52833bfedb8b505928bcdfd15b911f94b4f358d4
568
py
Python
loesungen/chapter07/k-nearest-neighbors.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
loesungen/chapter07/k-nearest-neighbors.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
loesungen/chapter07/k-nearest-neighbors.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
from sklearn.datasets import load_iris from sklearn.neighbors import KNeighborsClassifier from sklearn.model_selection import train_test_split # Iris-Datenmenge laden X, y = load_iris(return_X_y=True) # In Trainings- und Testdaten unterteilen, dabei mischen X_train, X_test, y_train, y_test = train_test_split( X, ...
29.894737
56
0.799296
528be7ceeede591d0730bbadf6296512b7924bf1
5,729
py
Python
DataProcess/train/train_resnet_aug.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
3
2021-12-24T04:52:03.000Z
2021-12-27T02:14:49.000Z
DataProcess/train/train_resnet_aug.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
DataProcess/train/train_resnet_aug.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ @File :train_resnet_aug.py @Author :Zhang Qihang @Date :2022/1/13 19:09 @Description : 采取数据增强的方式利用ResNet进行分类 """ from utils.constants import UNIVARIATE_ARCHIVE_NAMES as ARCHIVE_NAMES from utils.constants import MAX_PROTOTYPES_PER_CLASS from utils.constants impor...
41.817518
103
0.65439
21d8ef86409cc12d0915d5dd2da84deadea02a3f
106
py
Python
Beginner/03. Python/Palindrome.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
3
2021-03-16T16:44:04.000Z
2021-06-07T17:32:51.000Z
Beginner/03. Python/Palindrome.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/Palindrome.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
2
2020-10-12T15:58:02.000Z
2020-10-20T05:31:11.000Z
string = input("Enter the string : ") print("Palindrome" if string == string[::-1] else "Not Palindrome")
35.333333
67
0.679245
21e8a6ca949e1302dcd689fea822281e552b617d
356
py
Python
exercises/zh/solution_01_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/zh/solution_01_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/zh/solution_01_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.blank("zh") # 处理文本 doc = nlp( "在1990年,一份豆腐脑可能只要¥0.5。" "现在一份豆腐脑可能要¥5左右了。" ) # 遍历doc中的词符 for token in doc: # 检测词符的文本是否是"¥" if token.text == "¥": # 获取文档中的下一个词符 next_token = doc[token.i + 1] # 检测下一个词符是否组成一个数字 if next_token.like_num: pri...
17.8
50
0.575843
338321c2f57453d148d98f06f38e00de9dc4e4a2
37
py
Python
Zhihu/Python/Utils/Dictionary/Main.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
1,107
2016-09-21T02:18:36.000Z
2022-03-29T02:52:12.000Z
Zhihu/Python/Utils/Dictionary/Main.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
18
2016-12-22T10:24:47.000Z
2022-03-11T23:18:43.000Z
Zhihu/Python/Utils/Dictionary/Main.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
776
2016-12-21T12:08:08.000Z
2022-03-21T06:12:08.000Z
from GUI import * GUI().mainloop()
7.4
17
0.648649
33e858237967edf8c28428aabdc5de68f83bb015
1,503
py
Python
INBa/2015/Kurchatov_N_V/z7_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Kurchatov_N_V/z7_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Kurchatov_N_V/z7_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 11. #Создайте игру, в которой компьютер загадывает название # одного из девяти действующих вокзалов Москвы, а игрок должен его угадать. # Kurchatov N. V. # 11.04.2016 import random score=10 x=random.randint(1,9) if x==1: name="Белорусский" print("Игра.") elif x==2: name = "Казанский" print("...
28.903846
101
0.72322
1d6b0067f6c2f7e82de4954bd9ee023cd64aba9c
11,154
py
Python
Packs/LogsignSiem/Integrations/LogsignSiem/LogsignSiem.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/LogsignSiem/Integrations/LogsignSiem/LogsignSiem.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/LogsignSiem/Integrations/LogsignSiem/LogsignSiem.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from typing import Dict, List, Tuple import requests from CommonServerPython import * from CommonServerUserPython import * import demistomock as demisto from datetime import datetime, timedelta # Disable insecure warnings requests.packages.urllib3.disable_warnings() # pylint: disable=no-member ''' CONSTANTS ''' D...
32.614035
119
0.612336
d5953914b2e151ee57b99f17e267c23a7bd577c8
29,031
py
Python
research/cvtmodel/regnet/src/regnet_y_800mf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/regnet/src/regnet_y_800mf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/regnet/src/regnet_y_800mf.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...
59.734568
119
0.508766
63c6bb25b50983de442936046d9a98e3558b5bf1
1,834
py
Python
nz_crawl_demo/day11/first_celery/django_celery/first_celery/apps/celery_conf.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day11/first_celery/django_celery/first_celery/apps/celery_conf.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day11/first_celery/django_celery/first_celery/apps/celery_conf.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
BROKER_URL = 'redis://127.0.0.1:6379/1' CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379/2' CELERY_IMPORTS = ( 'apps.task1', 'apps.task2', 'apps.beat_task', 'apps.sina_spider_task', ) CELERY_TIMEZONE = 'Asia/Shanghai' #是否使用本地的时区 CELERY_ENABLE_UTC = False #重写task的属性 CELERY_ANNOTATIONS = {'apps.task1...
25.123288
72
0.667394
7fbe4ab367a661c6d476a8ddc1fb600094b86638
211
py
Python
python/pathlib/origin/parents.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/parents.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/parents.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from pathlib import Path path = Path('C:/Users/imdff/Downloads') print(f'{path}의 부모 디렉터리는 {path.parent}') print(f'{path}의 부모의 부모 디렉터리는 {path.parent.parent}') print(f'{path}의 모든 부모 디렉터리는 {list(path.parents)}')
26.375
51
0.706161
f68697e78922a91bcd6ce89cc9bcd7ed965c2d75
304
py
Python
1351-count-negative-numbers-in-a-sorted-matrix/1351-count-negative-numbers-in-a-sorted-matrix.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1351-count-negative-numbers-in-a-sorted-matrix/1351-count-negative-numbers-in-a-sorted-matrix.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1351-count-negative-numbers-in-a-sorted-matrix/1351-count-negative-numbers-in-a-sorted-matrix.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def countNegatives(self, grid: List[List[int]]) -> int: col_len = len(grid[0]) output=0 for row in grid: for i, val in enumerate(row): if val<0: output+=(col_len-i) break return output
30.4
59
0.473684
f68af226b47a7d4e7543874778bc649b7c5b99ad
528
py
Python
Cracking_the_Coding_Interview/strings_making_anagrams.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/strings_making_anagrams.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/strings_making_anagrams.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from collections import Counter arr1 = list(input().strip()) arr2 = list(input().strip()) c1 = Counter() c2 = Counter() for a in arr1: c1[a] += 1 for a in arr2: c2[a] += 1 diff = 0 dups = c1.keys() & c2.keys() for k, v in c1.items(): if k in dups: m = min(c1[k], ...
17.032258
31
0.50947
d614a5023609b1be26ead1700e15e121006f39f0
5,485
py
Python
spam-wa-master/wa.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
spam-wa-master/wa.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
spam-wa-master/wa.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# Compile by Sanz # Youtube : Tutorial Android ID # Github : https://github.com/B4N954N2-ID import marshal exec marshal.loads(b'c\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00@\x00\x00\x00s!\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00e\x00\x00j\x01\x00d\x02\x00\x83\x01\x00d\x01\x00\x04Ud\x01\x00S(\x03\x00\x00\x0...
914.166667
5,376
0.755515
615ead8990405767514a290287325ae3778d16a2
451
py
Python
Prediction/append.py
Nivram710/Seretra
dc7a509ff37e07ea4688a87ab89d13783299c069
[ "Apache-2.0" ]
2
2018-04-12T14:24:33.000Z
2020-09-16T07:03:28.000Z
Prediction/append.py
Nivram710/Seretra
dc7a509ff37e07ea4688a87ab89d13783299c069
[ "Apache-2.0" ]
null
null
null
Prediction/append.py
Nivram710/Seretra
dc7a509ff37e07ea4688a87ab89d13783299c069
[ "Apache-2.0" ]
null
null
null
import sys import os MAX_DATAPOINTS = 60 assert len(sys.argv) == 6 imei = sys.argv[1] time = sys.argv[2] x = sys.argv[3] y = sys.argv[4] z = sys.argv[5] # Force correct types, else error int(time) float(x) float(y) float(z) path = ".data/" + imei with open(path, "a") as f: f.write(time + " " + x + " " + y + "...
16.703704
79
0.572062
f627d306df7fc4312c3146b9a68053e48579bc02
352
py
Python
tools/my-tools/wechat-assistant/v1/send-to-multi-person.py
iamjoel/tools-and-material
e206bf4113f1b4eb83a32326503459b4818ba76d
[ "MIT" ]
9
2018-07-31T04:49:39.000Z
2019-11-04T10:06:04.000Z
tools/my-tools/wechat-assistant/v1/send-to-multi-person.py
iamjoel/tools
e206bf4113f1b4eb83a32326503459b4818ba76d
[ "MIT" ]
6
2020-02-10T14:46:57.000Z
2022-02-13T05:50:12.000Z
tools/my-tools/wechat-assistant/v1/send-to-multi-person.py
iamjoel/tools-and-material
e206bf4113f1b4eb83a32326503459b4818ba76d
[ "MIT" ]
5
2019-02-19T09:26:58.000Z
2019-10-29T05:00:31.000Z
#!/usr/bin/python # -*- coding:UTF-8 -*- from wxpy import * # 初始化机器人,扫码登陆 bot = Bot() friends = bot.friends() # freinds = bot.friends().search(city="苏州",sex=MALE) for friend in friends: if 'Joel' in friend.nick_name: # friend.send((friend.nick_name + ':xxx 节日快乐').encode('utf-8')) friend.send(friend.nick_n...
20.705882
67
0.650568
f64e21c04f61300bc15324ebe6c2aa96fa2b15ad
21,648
py
Python
Packs/CTIX/Integrations/CTIXv3/CTIXv3_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/CTIX/Integrations/CTIXv3/CTIXv3_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
40
2022-03-03T07:34:00.000Z
2022-03-31T07:38:35.000Z
Packs/CTIX/Integrations/CTIXv3/CTIXv3_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import io import json from CTIXv3 import ( Client, create_tag_command, get_tags_command, delete_tag_command, whitelist_iocs_command, get_whitelist_iocs_command, remove_whitelisted_ioc_command, get_threat_data_command, get_saved_searches_command, get_server_collections_command, ...
28.335079
87
0.684266
2129f512d4d30d0a9903d3ea4cbdffb91850e5d7
728
py
Python
python/src/RasperryPi.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
null
null
null
python/src/RasperryPi.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
null
null
null
python/src/RasperryPi.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
1
2021-08-13T20:38:50.000Z
2021-08-13T20:38:50.000Z
''' Created on 30.08.2021 @author: stephan ''' import abc class RasperryPi(abc.ABC): ''' classdocs ''' def __init__(self): ''' Constructor ''' @abc.abstractclassmethod def ShowText(self, text): pass class DummyRasperryPi(RasperryPi): def ShowText(self, t...
14
34
0.592033
0d448d0d09c251ccd10e1ea5bf364f23d8c5cd5a
352
py
Python
pacman-arch/test/pacman/tests/remove043.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/remove043.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/remove043.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Remove a package required by another package" lp1 = pmpkg("pkg1") lp1.depends = ["imaginary"] self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2") lp2.provides = ["imaginary"] self.addpkg2db("local", lp2) self.args = "-R %s" % lp2.name self.addrule("!PACMAN_RETCODE=0") self.addrule("PKG_EXIST=pkg1")...
22
65
0.707386
2eccb46e29d9270ed0ed47ebe79fad2e72039444
419
py
Python
BIZa/2014/Novikova_J_v/task_1_34.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/Novikova_J_v/task_1_34.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/Novikova_J_v/task_1_34.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №1. Вариант 34. # Напишите программу, которая будет сообщать род деятельности и псевдоним под #которым скрывается Борис Николаевич Кампов. После вывода информации #pрограмма должна дожидаться пока пользователь нажмет Enter для выхода. # Novikova J. V. # 07.04.2016 print("Борис Николаевич Кампов более из...
38.090909
98
0.782816
6cbcfae1b52f36916ee0511e27da9dd04bfcc22b
1,873
py
Python
python_gui_tkinter/KALU/GARBAGE/mail/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE/mail/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE/mail/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import smtplib from email.message import EmailMessage from email.headerregistry import Address from email.utils import make_msgid server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() username = "" password = "" server.login(username, password) FROM = "jimutbahanpal@gmail.com" #<from-address> TO = "jimutba...
29.730159
83
0.667912
4cc919660b2709a9493c58a21d1cfd4b60d5c706
1,210
py
Python
web/models.py
ralfkret/hvz
842c25d58fb3c30060080efcfa8b3d183b78e2ab
[ "MIT" ]
1
2019-07-30T14:39:43.000Z
2019-07-30T14:39:43.000Z
web/models.py
ralfkret/hvz
842c25d58fb3c30060080efcfa8b3d183b78e2ab
[ "MIT" ]
11
2019-07-31T13:40:30.000Z
2019-08-07T21:54:52.000Z
web/models.py
ralfkret/hvz
842c25d58fb3c30060080efcfa8b3d183b78e2ab
[ "MIT" ]
null
null
null
from flask import url_for from . import db class Product(db.Model): __tablename__ = 'product' __table_args__ = {'schema': 'hvs'} id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique = True) wanted_amount = db.Column(db.Integer, nullable=False) stock_movements = ...
33.611111
101
0.654545
2c5ffb0d8e26d2d833116f2bfbb264b466e483e5
1,215
py
Python
Projeto/atualiza.py
joaoantonio17/Space-war
e348164698df56dd89665410734516fc69f4c8ac
[ "MIT" ]
null
null
null
Projeto/atualiza.py
joaoantonio17/Space-war
e348164698df56dd89665410734516fc69f4c8ac
[ "MIT" ]
null
null
null
Projeto/atualiza.py
joaoantonio17/Space-war
e348164698df56dd89665410734516fc69f4c8ac
[ "MIT" ]
null
null
null
import pygame, sys from aliens import criar_aliens from laser import laser # Atualiza a tela e todos os seus elementos def atualiza(janela, janela_fundo, persona, aliens, L, Label): janela.blit(janela_fundo, [0, 0]) # Primeiro redesenha a tela persona.desenha_persona() Label.__Desenha__() # Pondo e atu...
25.3125
65
0.58107
390a00cfa57de2123aac783f16f835068384fc89
8,118
py
Python
ggit_platform/views.py
girlsgoit/GirlsGoIT
447cd15c44ebee4af9e942a079d681be8683239f
[ "MIT" ]
1
2019-02-27T21:20:54.000Z
2019-02-27T21:20:54.000Z
ggit_platform/views.py
girlsgoit/GirlsGoIT
447cd15c44ebee4af9e942a079d681be8683239f
[ "MIT" ]
null
null
null
ggit_platform/views.py
girlsgoit/GirlsGoIT
447cd15c44ebee4af9e942a079d681be8683239f
[ "MIT" ]
null
null
null
import datetime from django.shortcuts import render, get_object_or_404, redirect from markdownx.utils import markdownify from .forms import EventForm from .forms import MemberForm from .forms import RegionForm from .forms import StoryForm from .forms import TrackForm from .models import Event from .models import Memb...
28.787234
92
0.642523
1aa6c070d289d6f23f9ec185122437cf9224215c
114,539
py
Python
repo/service.vpn.manager/libs/common.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/service.vpn.manager/libs/common.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/service.vpn.manager/libs/common.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2016 Zomboided # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your...
51.992283
310
0.601428
1ac6064a5509398b4692687cb84fddcfb38865f6
506
py
Python
source/pkgsrc/devel/py-uvloop/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-uvloop/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-uvloop/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.4 2019/09/25 08:45:54 adam Exp $ Use system libuv (--use-system-libuv option does not work for 'install'). --- setup.py.orig 2019-09-25 08:40:47.000000000 +0000 +++ setup.py @@ -87,7 +87,7 @@ class uvloop_build_ext(build_ext): return super().initialize_options() - ...
31.625
73
0.644269
46f46bbfb032bc7b12593ba1d103caba778d41a2
179
py
Python
site/public/courses/CS-1.1/Examples/ControlFlowExamples/conditionals.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/CS-1.1/Examples/ControlFlowExamples/conditionals.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/CS-1.1/Examples/ControlFlowExamples/conditionals.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
import time keep_going = True times = 2 while keep_going: print("Loops are fun!!") time.sleep(1) times -= 1 if times <= 0: keep_going = False
14.916667
29
0.558659
b393ae78af3672c9ddef63e9ba108b372e2ac596
275
py
Python
Weather.py
flohwag/Weather-Feed
92d15bb985d75aac376e0605a18be10a3c0372a5
[ "BSD-2-Clause" ]
null
null
null
Weather.py
flohwag/Weather-Feed
92d15bb985d75aac376e0605a18be10a3c0372a5
[ "BSD-2-Clause" ]
null
null
null
Weather.py
flohwag/Weather-Feed
92d15bb985d75aac376e0605a18be10a3c0372a5
[ "BSD-2-Clause" ]
null
null
null
#!/bin/python from weather import Weather import time while True: Weather = Weather() print("Die aktuelle Uhrzeit") print(time.asctime()) print("Das Wetter:") lookup = Weather.lookup(687154) condition = lookup.condition() print(condition['text']) time.sleep(90)
19.642857
32
0.716364
b395becdd2bb780884b493db8cac36b06e35934e
13,835
py
Python
python/GenSimulatorFile.py
Greakz/mdh-cmake-cubevis
6c64ec0e14dcdd07e69fa1f018aa7954eeeaf173
[ "MIT" ]
null
null
null
python/GenSimulatorFile.py
Greakz/mdh-cmake-cubevis
6c64ec0e14dcdd07e69fa1f018aa7954eeeaf173
[ "MIT" ]
5
2021-08-24T11:09:54.000Z
2021-08-24T21:14:15.000Z
python/GenSimulatorFile.py
Greakz/mdh-cmake-cubevis
6c64ec0e14dcdd07e69fa1f018aa7954eeeaf173
[ "MIT" ]
null
null
null
from Expression import Expression from Whitespace import ws from GenAppearance import AppearanceGenerator class SimulatorFileGenerator: @staticmethod def generate(data): file = open("./src/mdhconfig/include/gen_templates/gen_mdh_simulator.template.h", "r") simulator_template = file.read() ...
50.126812
171
0.506831
2097e711de4b46fb89ba59ed82eedb4f2c318627
1,400
py
Python
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee_advance/test_employee_advance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee_advance/test_employee_advance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee_advance/test_employee_advance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest from frappe.utils import nowdate from erpnext.hr.doctype.employee_advance.employee_advance import make_bank_entry from erpnext.hr.doctype....
29.787234
91
0.793571
4565c8c6a7aa1f21efb1ec0dfbc53e4f16a27a35
428
py
Python
pyhokchew/utils.py
MindongLab/PyHokchew
7d742ab5547d2da8c214bd1ebd80f9b6f963965d
[ "MIT" ]
3
2018-04-05T12:04:08.000Z
2020-04-30T14:00:58.000Z
python/pyhokchew/utils.py
MindongLab/libhokchew
7e5b2e11377ec57bf9a5bb8bb66be6d99237640c
[ "MIT" ]
6
2020-04-25T05:20:04.000Z
2021-08-30T09:08:50.000Z
python/pyhokchew/utils.py
MindongLab/libhokchew
7e5b2e11377ec57bf9a5bb8bb66be6d99237640c
[ "MIT" ]
1
2018-04-05T11:52:07.000Z
2018-04-05T11:52:07.000Z
import unicodedata def normalise(s) -> str: """ Normalise the Foochow Romanized string, by replacing combining characters with a combined character. ['e', '̤', '́', 'u', '̤', 'k'] normalize ---> ['é', '̤', 'ṳ', 'k'] :param s: The original string to be normalized. :return: string """ retur...
26.75
104
0.614486
45c62b08f957279e66a80470d5fb7f11855ea18b
1,058
py
Python
m5-101/content/solutions/web-crawler-changed/section1&2.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:15:38.000Z
2021-11-10T12:29:19.000Z
m5-101/content/solutions/web-crawler-changed/section1&2.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
null
null
null
m5-101/content/solutions/web-crawler-changed/section1&2.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:18:10.000Z
2021-04-08T13:44:48.000Z
from posix import listdir import requests from bs4 import BeautifulSoup as bs import math import sys, getopt import re import os def re_cleaner(target: str, rep: str) -> str: return re.sub("[^0-9a-zA-Z]+", rep, target) def download_pages_oxford(): ######################## ### Section 1 Starts ### bas...
20.346154
69
0.571834
444b9abeb923e694234746a10752c76459dbf5c2
2,205
py
Python
twitter/mask.py
fvcproductions/coding-interviews
9761ac5e0b8e34ec4fbf97fd344dea917c7dd96e
[ "MIT" ]
1
2020-04-03T23:28:25.000Z
2020-04-03T23:28:25.000Z
twitter/mask.py
fvcproductions/coding-interviews
9761ac5e0b8e34ec4fbf97fd344dea917c7dd96e
[ "MIT" ]
null
null
null
twitter/mask.py
fvcproductions/coding-interviews
9761ac5e0b8e34ec4fbf97fd344dea917c7dd96e
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT def maskEmailAndPhoneNumber(email, phone): masked_email = maskEmail(email) masked_phone = maskPhone(phone) return masked_email, masked_phone def maskEmail(email): pos_of_separater = email.find('@') email_name = email[:pos_of_se...
27.911392
69
0.601361
2b98cd86f00f48b29cb0f66fae9ad67f43b5213a
509
py
Python
kafka/cruise-control/cruise-control-client/cruisecontrolclient/util/print.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
2,177
2017-08-28T15:07:01.000Z
2022-03-30T11:06:01.000Z
kafka/cruise-control/cruise-control-client/cruisecontrolclient/util/print.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
1,079
2017-08-30T07:25:06.000Z
2022-03-31T17:49:07.000Z
kafka/cruise-control/cruise-control-client/cruisecontrolclient/util/print.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
489
2017-08-28T16:17:03.000Z
2022-03-31T15:52:18.000Z
# Copyright 2019 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). # See License in the project root for license information. import sys def print_error(*args, sep=' ', end='\n'): """ Like the print() builtin, but presumes printing to stderr, rather than stdout :param sep: string i...
36.357143
88
0.693517
921ad9ad1e7dc01b1fc6903769a3ed566f2bb5d1
604
py
Python
inclusive_prime.py
VinayakBector2002/Hacktoberfest2021
c99fb3dc3f3dc83f99b459b0a9089c3a91ae77a2
[ "MIT" ]
null
null
null
inclusive_prime.py
VinayakBector2002/Hacktoberfest2021
c99fb3dc3f3dc83f99b459b0a9089c3a91ae77a2
[ "MIT" ]
null
null
null
inclusive_prime.py
VinayakBector2002/Hacktoberfest2021
c99fb3dc3f3dc83f99b459b0a9089c3a91ae77a2
[ "MIT" ]
null
null
null
def inclusive_prime(*args): l = len(*args) if l==0: raise TypeError("Got 0 arguments") elif l==1: start, stop, step = 0, args[0], 1 elif l==2: start, stop, step = args, 1 elif l==3: start, stop, step = args else: raise TypeError("Expected maximum 3 arguments got {l}") primes = [] while st...
17.257143
58
0.554636
a606b36113294ee1fe70fc402383353533ac560e
75
py
Python
python/coding_dojang/calcpkg/geometry.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/calcpkg/geometry.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/calcpkg/geometry.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import math def circle_area(radius): return radius * radius * math.pi
15
36
0.72
5ba3587765d68d44520a84d545b15027be1aac8f
292
py
Python
9.12.py
RonaldZhao/NowCoder
935af39835a98efc14157e20df1e3458e02b9803
[ "MIT" ]
null
null
null
9.12.py
RonaldZhao/NowCoder
935af39835a98efc14157e20df1e3458e02b9803
[ "MIT" ]
null
null
null
9.12.py
RonaldZhao/NowCoder
935af39835a98efc14157e20df1e3458e02b9803
[ "MIT" ]
null
null
null
class CombineByMistake: def countWays(self, n): if n == 1: return 0 elif n == 2: return 1 pre, ret = 0, 1 for i in range(3, n + 1): t = (i - 1) * (pre + ret) % 1000000007 pre, ret = ret, t return ret
24.333333
50
0.417808
7510c218962e9c49145b5195ebac9929453426f7
2,214
py
Python
SymbolicCalculation/manifold.py
qianduanXIAOHAOZI/NERenderer
bc8565e67e946648ab4fd8c986184d87f8fb85f4
[ "Apache-2.0" ]
2
2022-02-06T15:02:57.000Z
2022-02-06T15:13:40.000Z
SymbolicCalculation/manifold.py
qianduanXIAOHAOZI/NERenderer
bc8565e67e946648ab4fd8c986184d87f8fb85f4
[ "Apache-2.0" ]
null
null
null
SymbolicCalculation/manifold.py
qianduanXIAOHAOZI/NERenderer
bc8565e67e946648ab4fd8c986184d87f8fb85f4
[ "Apache-2.0" ]
null
null
null
from sympy import symbols, pi, sqrt, atan2, cos, sin, latex, simplify from sympy.diffgeom import Patch, CoordSystem from sympy.diffgeom import Manifold as MF from sympy.diffgeom import TensorProduct as TP from sympy.diffgeom import metric_to_Riemann_components as Riemann from sympy.diffgeom import metric_to_Christ...
33.545455
97
0.558266
34188219016e31e69dae3bbe49d370a0397c2711
5,075
py
Python
Packs/Jira/Scripts/ScriptJiraChangeTransition/ScriptJiraChangeTransition.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Jira/Scripts/ScriptJiraChangeTransition/ScriptJiraChangeTransition.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Jira/Scripts/ScriptJiraChangeTransition/ScriptJiraChangeTransition.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def create_output(error_msg): return { "Type": entryTypes["error"], "ContentsFormat": formats["text"], "Contents": error_msg, "HumanReadable": error_msg, "ReadableContentsFormat": for...
48.798077
127
0.392709
1b7495c07ac47a903b7cf2494b91e5059af34fd1
910
py
Python
raspberry-code/wetterstation.py
maschnetwork/raspberry-alexa-iot
e75d1f1363010beacc105536cf6866e4f9fe9f7f
[ "MIT" ]
null
null
null
raspberry-code/wetterstation.py
maschnetwork/raspberry-alexa-iot
e75d1f1363010beacc105536cf6866e4f9fe9f7f
[ "MIT" ]
null
null
null
raspberry-code/wetterstation.py
maschnetwork/raspberry-alexa-iot
e75d1f1363010beacc105536cf6866e4f9fe9f7f
[ "MIT" ]
null
null
null
import time import subprocess from cloud import Cloud from sense_hat import SenseHat def get_cpu_temperature(): cpu_temp = subprocess.check_output("vcgencmd measure_temp", shell=True) cpu_temp = cpu_temp.split("=") cpu_temp = cpu_temp[1].split("'") cpu_temp = float(cpu_temp[0]) return cpu_temp clo...
27.575758
79
0.676923
1b891ce85b6b918417a153dc44a894a886466511
644
py
Python
__main__.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
__main__.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
__main__.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
# coding: utf-8 from logging import info import logging; logging.basicConfig(level=logging.DEBUG) from json import dumps from multiprocessing import Process from tentacle.sensor import discover from tentacle.client import publish sensors = discover() payload = {} for sensor in sensors: payload = {**payload, *...
25.76
92
0.757764
1b91126f885fc01ab261261727eb6f36adacc0fc
1,282
py
Python
create_dot_file.py
serlo/autorenbetreuung-visualisierung
715d4f3b4392d681ab458d2ab173c9d62a1d99a9
[ "CC0-1.0" ]
null
null
null
create_dot_file.py
serlo/autorenbetreuung-visualisierung
715d4f3b4392d681ab458d2ab173c9d62a1d99a9
[ "CC0-1.0" ]
null
null
null
create_dot_file.py
serlo/autorenbetreuung-visualisierung
715d4f3b4392d681ab458d2ab173c9d62a1d99a9
[ "CC0-1.0" ]
null
null
null
import csv import sys import hashlib def hash(text): result = hashlib.sha1(bytes(text, "utf-8")).hexdigest() for number, letter in { "0": "g", "1": "h", "2": "i", "3": "j", "4": "k", "5": "l", "6": "m", "7": "n", "8": "o", "9": "p" }.items(): result = result.replace(number, letter)...
26.708333
87
0.567083
1bbb0ab24d0fa3283ed89229befd9c5b2895e2b2
1,492
py
Python
us1/python/durchschall.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
2
2019-12-10T10:25:11.000Z
2021-01-26T13:59:40.000Z
us1/python/durchschall.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
null
null
null
us1/python/durchschall.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 from scipy import optimize from scipy.stats import sem t1, t2, s_schieb = np.genfromtxt('python/daten/durchschallung.txt', unpack=True) t1 *= 1e-6 # t in sekunden t2 *= 1e-6 # t in sekunden s_schieb *= 1e-3 # s in meter length = le...
22.268657
80
0.622654
04600baed175660ad2500e6846217535ffa9799f
4,022
py
Python
Packs/PcapAnalysis/Scripts/PcapFileExtractor/PcapFileExtractor_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PcapAnalysis/Scripts/PcapFileExtractor/PcapFileExtractor_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PcapAnalysis/Scripts/PcapFileExtractor/PcapFileExtractor_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import os import pytest from PcapFileExtractor import filter_files, upload_files, INCLUSIVE, EXCLUSIVE from magic import Magic from pytest import raises OUTPUTS = [ { 'FileMD5': 'dca7766edd1e4976cac5e64fcaeec1fd', 'FileSHA1': 'e1a60d05cd5b6b1bae28e7e5c0b368be6b48c2b5', 'FileSHA256': '39c953...
31.421875
112
0.644704
048ac5b4352882525c7d943a1e1114a4401bdfd0
835
py
Python
elements/python/6/12/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/6/12/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/6/12/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import math import random def primes_less_than_seive(n): """ Return all the primes less than n. """ is_prime = [True]*n is_prime[0], is_prime[1] = False, False upper = int(math.sqrt(n)) for p in range(2, upper+1): if not p: continue for k in range(2*p, n, p): ...
19.880952
60
0.59521
8e0d5f7becdfdd5278d7c30c6c6dc5e456f9e889
941
py
Python
python/unittest/mock/medium/06_class_attributes/test_pricer.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/medium/06_class_attributes/test_pricer.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/medium/06_class_attributes/test_pricer.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from unittest import TestCase, expectedFailure, mock from pricer import Pricer class TestClassAttribute(TestCase): def test_patch_instance_attribute(self): pricer = Pricer() pricer.DISCOUNT = 0.5 self.assertAlmostEqual(pricer.get_discounted_price(100), 50.0) def test_set_c...
33.607143
74
0.668438
edc75ce6c084dd1e877529c5e1cc5af530011cfd
719
py
Python
PINp/2014/TsivunchikDVnew/task_6_25.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/TsivunchikDVnew/task_6_25.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/TsivunchikDVnew/task_6_25.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задание 6. Вариант 25. # Создайте игру, в которой компьютер загадывает название одного из четырех # океанов Земли, а игрок должен его угадать. # Цивунчик Денис Владимирович # 27.05.2016 import random guessesTaken = 0 print("Привет, отгадай один из четрыех океанов Земли.") x = random.choice(["Северный Ледовитый", "...
22.46875
80
0.650904
1e25973a94c31dc4e58b6b201577b09bc6e31092
441
py
Python
2015/07/theater-ranks-plays-20150721/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/07/theater-ranks-plays-20150721/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/07/theater-ranks-plays-20150721/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 = '1dd8n6Avdw99wwnnmMBGZWl4e1quxjFpPsX0R4lvE6kg' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 # def classify(value): # return value|lower|replace(' ', '-')|replace('\'', ''...
27.5625
129
0.668934
1ea9ec7566097100d2ba60f9d546ea457828f1a8
3,524
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/cnos/test_cnos_static_route.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/cnos/test_cnos_static_route.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/cnos/test_cnos_static_route.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# (c) 2016 Red Hat Inc. # Copyright (C) 2017 Lenovo. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any late...
46.986667
137
0.713394
94b6c8747ca85c85fab37be68d9095d9c17622bc
8,565
py
Python
src/main/apps/authentication/serializers.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
2
2021-08-23T21:56:07.000Z
2022-01-20T13:52:19.000Z
src/main/apps/authentication/serializers.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
src/main/apps/authentication/serializers.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
import uuid from .models import User from datetime import ( datetime, timedelta, timezone, ) from django.contrib.auth import authenticate from django.contrib.auth.password_validation import validate_password from django.contrib.auth.signals import user_logged_in from main.exceptions import CustomError from...
38.236607
291
0.619031
bf44f838b3e40cbce35888c5312db54291e60d93
51
py
Python
5_ifElse/2_ifElse.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
5_ifElse/2_ifElse.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
5_ifElse/2_ifElse.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Bedingungen und Alternative Keine Lösung """
7.285714
27
0.705882
bf983ca5f83526a21e20dd918fe5407e5265dcc0
7,272
py
Python
linearfitter.py
EstelleRobert/ztfflat
ccaa5786021a0f5bbbd97b1991c8b2e349f19411
[ "Apache-2.0" ]
null
null
null
linearfitter.py
EstelleRobert/ztfflat
ccaa5786021a0f5bbbd97b1991c8b2e349f19411
[ "Apache-2.0" ]
null
null
null
linearfitter.py
EstelleRobert/ztfflat
ccaa5786021a0f5bbbd97b1991c8b2e349f19411
[ "Apache-2.0" ]
null
null
null
from astropy.io import fits import numpy as np import pandas from .io import * from . import starflat_nicolas_zp as nr_sf from scipy.interpolate import RectBivariateSpline from ztfquery import fields def from_dataframe_to_recarray(dataframe, year = 2019, filter_ = 'zg', month = 3, keys=None, store = False): ...
41.084746
168
0.570407
ecb7f56ff8a1c2fbe1cf86702e8fc0a92614a2b7
3,349
py
Python
rbac/common/protobuf/key_state_pb2.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/common/protobuf/key_state_pb2.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/common/protobuf/key_state_pb2.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: key_state.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _ref...
28.623932
209
0.735742
17136393742e79fe2bad6d7c032795ef8256e47a
6,743
py
Python
examples/benchmark/clue/grid_search_tools/grid_search.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/benchmark/clue/grid_search_tools/grid_search.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/benchmark/clue/grid_search_tools/grid_search.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 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 required by appli...
33.884422
125
0.558209
e55169ec4a60552ae60e1d0f29817fb604ea79de
4,979
py
Python
preprocessing.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
preprocessing.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
preprocessing.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import glob import langid import os import random import re from preprocessing import cleaning from preprocessing.file_scheme import FileScheme from preprocessing.text_extraction import TextExtractor from preprocessing.tokenization import sentence_tokeni...
40.479675
119
0.655553
e5694a0002762dafbd08072f4f77f8d7fb1f883f
927
py
Python
leetcode/418-Sentence-Screen-Fitting/SentenceScreenFitting_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/418-Sentence-Screen-Fitting/SentenceScreenFitting_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/418-Sentence-Screen-Fitting/SentenceScreenFitting_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def wordsTyping(self, sentence, rows, cols): """ :type sentence: List[str] :type rows: int :type cols: int :rtype: int """ cnt = 0 start = 0 row_circ = len(''.join(sentence)) + len(sentence) nrc = (cols + 1) / ro...
29.903226
70
0.443366
41647de26b8ac5407951c49e9411053d71cd4f9b
5,804
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch09_search_and_sort/solutions/ex08_serach_rotated_sorted.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch09_search_and_sort/solutions/ex08_serach_rotated_sorted.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch09_search_and_sort/solutions/ex08_serach_rotated_sorted.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def find_flank_pos_simple(values): for i in range(len(values)): next_idx = (i + 1) % len(values) if values[i] > values[next_idx]: return next_idx raise Exception("should never reach here!") de...
32.424581
91
0.660579
6bf50c541d4526f920863b17134817e35da02b42
680
py
Python
src/palsquare.py
xiaonanln/python-usaco
8f0fef19cb5f89232d985f79d955f0de5ef4e10d
[ "MIT" ]
null
null
null
src/palsquare.py
xiaonanln/python-usaco
8f0fef19cb5f89232d985f79d955f0de5ef4e10d
[ "MIT" ]
null
null
null
src/palsquare.py
xiaonanln/python-usaco
8f0fef19cb5f89232d985f79d955f0de5ef4e10d
[ "MIT" ]
null
null
null
""" ID: isaiahl1 LANG: PYTHON2 TASK: palsquare """ def main(fin, fout): B = int(fin.readline()) res = solve( B ) for a, b in res: print >>fout, a, b def solve(B): res = [] for N in xrange(1, 301): N2 = N*N N2 = fit(N2, B) if N2: res.append( (strbase(N, B), N2) ) return res def fit(num, B): s = str...
16.190476
47
0.583824
cf0c45f130e27cd5371405d61a66683a9bd8141c
608
py
Python
249/Fcat_249.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
249/Fcat_249.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
249/Fcat_249.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
from typing import List import string from collections import defaultdict class Solution: def groupStrings(self, strings: List[str]) -> List[List[str]]: alphabet_num_mapping = {} group_mapping = defaultdict(list) for i, alphabet in enumerate(string.ascii_lowercase): alphabet_num...
32
98
0.618421
993172c685b8f95b1ce5b04fcbe6ebb718848cea
553
py
Python
simulador.py
Alpacow/Reverse-TM
43f4a226454471093abcedf638f0d27457810c3c
[ "MIT" ]
null
null
null
simulador.py
Alpacow/Reverse-TM
43f4a226454471093abcedf638f0d27457810c3c
[ "MIT" ]
null
null
null
simulador.py
Alpacow/Reverse-TM
43f4a226454471093abcedf638f0d27457810c3c
[ "MIT" ]
null
null
null
import sys import select from rtm import Rtm def readFile(file): dt = file.splitlines() n = dt[0].split() rtm = Rtm( int(n[0]), int(n[1]), int(n[2]), int(n[3]), dt[1], dt[2], dt[3], dt[4:-1], dt[len(dt) - 1]) rtm.execution() def main (args): print("*-- Máquina de Turing Reversível --*\n") if n...
29.105263
106
0.594937
51de176a4d13475e1850011666793b8607c68d2c
2,232
py
Python
mcsf/commands/configure.py
beremaran/mcsf
7651e849b860cf4f0517fa8e4fc4b7a417bbc3a4
[ "MIT" ]
null
null
null
mcsf/commands/configure.py
beremaran/mcsf
7651e849b860cf4f0517fa8e4fc4b7a417bbc3a4
[ "MIT" ]
null
null
null
mcsf/commands/configure.py
beremaran/mcsf
7651e849b860cf4f0517fa8e4fc4b7a417bbc3a4
[ "MIT" ]
null
null
null
import logging from mcsf.commands.base import Command from mcsf.services.crypto import CryptoService from mcsf.services.json_storage import JsonStorage from mcsf.services.vultr import VultrService class ConfigureCommand(Command): def __init__(self): self.vultr = VultrService() self.json_storage =...
32.823529
72
0.602599
a4047116b014db109822975ae7cbd8eedcddcf1c
2,437
py
Python
frappe-bench/env/lib/python2.7/site-packages/stdnum/it/iva.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/it/iva.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/it/iva.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# iva.py - functions for handling Italian VAT numbers # # Copyright (C) 2012, 2013 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 # version 2.1 of the License, or...
33.383562
73
0.707838
cff93a0d95b1a7b68502dcdaba8634af4ebcad69
920
py
Python
___Python/Jonas/Python/p02_datenstrukturen/m01_temperaturen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Jonas/Python/p02_datenstrukturen/m01_temperaturen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Jonas/Python/p02_datenstrukturen/m01_temperaturen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from p01_kennenlernen import meinebibliothek from p01_kennenlernen.meinebibliothek import celsius_to_fahrenheit celsius = [0.7, 2.1, 4.2, 8.2, 12.5, 15.6, 16.9, 16.3, 13.6, 9.5, 4.6, 2.3,] #Durchschinttstemperatur in Bielefed nach Monaten in C # Aufgabe: neue Liste Fahrenheit erzeugen, die die Temperaturen in Fahr...
36.8
132
0.744565