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
1bd08e2439f96266f5ccc3cf226a744dc0eb9660
537
py
Python
Algorithms/DynamicProgramming/Ugly Numbers/ugly_numbers.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Algorithms/DynamicProgramming/Ugly Numbers/ugly_numbers.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Algorithms/DynamicProgramming/Ugly Numbers/ugly_numbers.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
n = int(input()) ugly_numbers = [] ugly_numbers.append(1) p2 = p3 = p5 = 0 next2 = ugly_numbers[p2] * 2 next3 = ugly_numbers[p3] * 3 next5 = ugly_numbers[p5] * 5 for i in range(n-1): ugly_numbers.append(min(next2, next3, next5)) if ugly_numbers[-1] == next2: p2 = p2 + 1 next2 = ugly_number...
19.888889
49
0.575419
1bd840fb3aa2f33222a4607a2bffb862ac4c6cbe
7,230
py
Python
listings/chapter05/game_of_life.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter05/game_of_life.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter05/game_of_life.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
import time, os, platform from sys import argv class Grid: def __init__(self, cells = None): if cells: self.cells = cells else: self.cells = set() self.global_min_x = 0 self.global_min_y = 0 self.history = [] self.period_start = -1 se...
32.421525
94
0.514385
8483693380dc94dd3f6a946640e1cf4d42e45847
426
py
Python
challenge/test.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
challenge/test.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
challenge/test.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
import timeit # import pyximport; pyximport.install() # import doit # import cy_sum_arrays as flo # import numpy as np setup = ''' import pyximport; import numpy as np pyximport.install(setup_args={'include_dirs': np.get_include()}) import doit a = np.random.random_integers(0,255, (10,10)).astype(np.uint8) ''' print...
23.666667
85
0.730047
84da7ccbd2f81e29e75f4a47f22021c325c506ca
5,985
py
Python
src/onegov/fsi/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains upgrade tasks that are executed when the application is being upgraded on the server. See :class:`onegov.core.upgrade.upgrade_task`. """ import textwrap from sqlalchemy import Column, ARRAY, Text, Boolean from onegov.core.orm.types import UTCDateTime from onegov.core.upgrade import upgrade_task from one...
34.2
79
0.70142
8e348f05c726eb5013d0ff579ebbe27a24359dcc
2,331
py
Python
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/urls.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/urls.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/urls.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', (r'^$', 'birdsong.main.views.index'), (r'^$', 'birdsong.main.views.index'), (r'^recordings$', 'birdsong.recordings.views.index'...
48.5625
124
0.660232
fcc20bbf8243bace23d7027b19e51828c71ac47f
530
py
Python
exercises/fr/test_02_14.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/test_02_14.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/test_02_14.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "from spacy.matcher import PhraseMatcher" in __solution__ ), "As-tu importé correctement le PhraseMatcher ?" assert ( "PhraseMatcher(nlp.vocab)" in __solution__ ), "As-tu initialisé correctement le PhraseMatcher ?" assert "matcher(doc)" in __solution__, "As-tu ap...
48.181818
98
0.703774
78a0137eaeeaaacd7efd06612f6a7eb76fae27bb
3,745
py
Python
code/fetch_nowcasts/sz-url2nowcast.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
code/fetch_nowcasts/sz-url2nowcast.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
code/fetch_nowcasts/sz-url2nowcast.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
from urllib.request import urlretrieve from datetime import date today = date.today().strftime('%Y-%m-%d') # Import pandas import pandas as pd # Assign url of file: url url = "https://gfx.sueddeutsche.de/storytelling-assets/datenteam/2021_corona-automation/hosp_incidence/archive/" + today + "_hosp_incidence_nowcast_...
57.615385
267
0.645394
1732cc3592d1d3535fad23165af46ba84ebcf3eb
423
py
Python
PYTHON/Regex_and_Parsing/start_end.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Regex_and_Parsing/start_end.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Regex_and_Parsing/start_end.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import re if __name__ == '__main__': S = input() k = input() len_k = len(k) ret = [i for i in range(len(S) - len_k + 1) if S[i:i+len_k] == k] if len(ret) == 0: print((-1, -1)) else: for r in ret: print((r, r+len_k - 1)) # for r ...
20.142857
69
0.479905
175efffb41c31908dccb46b10f3b506a74b3db44
163
py
Python
python/en/_matplotlib/001_plot_a_line2.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/001_plot_a_line2.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/001_plot_a_line2.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
!#/usr/bin/env python3 # -*- coding: utf-8 -*- import matplotlib.pyplot as plt plt.plot([1, 2, 3, 4, 5], [1, 4, 9, 16, 25]) plt.ylabel('Two numbers') plt.show()
18.111111
44
0.601227
bdad9d8112764c7009944ce5a0dd78acc36dceba
3,211
py
Python
simple-sklearn-demo/test6/naiveBayesTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-sklearn-demo/test6/naiveBayesTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-sklearn-demo/test6/naiveBayesTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
from sklearn.naive_bayes import MultinomialNB import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.model_selection import train_test_split import jieba def naive_bayes_test(): """ 朴素 + 贝叶斯 联合概率: 所有条件同时成立的概率 P(A, B) 条件概率: A在B已经发生的情况下出现的概率 P(A|B) 相互独立: A和B相互独立...
30.875
113
0.587979
971735f457b6ef16a2747cdd58bbc80227da5708
4,950
py
Python
test/test_npu/test_network_ops/test_where.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_where.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_where.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
38.372093
78
0.661818
973f4b5f2f5862de539b2135e7aa1c675bce8060
60
py
Python
src/nfz_module/network/EventEncoder.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/network/EventEncoder.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/network/EventEncoder.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
__author__ = 'Hans-Werner Roitzsch' # Not implemented yet.
15
35
0.75
97b78c405ac622ec687a6100d7c14591c7e65557
873
py
Python
tmnt.py
ghallberg/tmnt
fda60b74785db59c3cad371162c8dbf8525cb673
[ "MIT" ]
null
null
null
tmnt.py
ghallberg/tmnt
fda60b74785db59c3cad371162c8dbf8525cb673
[ "MIT" ]
null
null
null
tmnt.py
ghallberg/tmnt
fda60b74785db59c3cad371162c8dbf8525cb673
[ "MIT" ]
null
null
null
from tinydb import TinyDB, Query import tournament import tournament_round import player import match if __name__ == '__main__': t_id = tournament.add('granament') player_names = ['gran grankvinna', 'gran granbarn', 'gran granhund'] player_ids = [player.add(player_name) for player_name in player_names] ...
24.942857
76
0.703322
e7aff36e828adeb8fa61fd6b72046e84dda39fa3
2,411
py
Python
frappe-bench/apps/erpnext/erpnext/selling/report/inactive_customers/inactive_customers.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/selling/report/inactive_customers/inactive_customers.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/selling/report/inactive_customers/inactive_customers.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.utils import cint from frappe import _ def execute(filters=None): if not filters: filters ={} days_since_last_order = filters.get(...
32.581081
82
0.701783
68edf00abc91f99413ff14529c4d7f343f840b34
4,778
py
Python
abfahrt/classes/Line.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
1
2022-01-30T14:30:02.000Z
2022-01-30T14:30:02.000Z
abfahrt/classes/Line.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
abfahrt/classes/Line.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
from abfahrt.classes.Station import Station class Line: id: int = 0 start: Station = None end: Station = None capacity: int = 0 length: float = 0.0 def __init__(self, id: int, start: Station, end: Station, length: float, capacity: int): """ Creating a Line Args: ...
23.653465
162
0.516325
993150ce3898dfa71272da91eaf2bd6ac93d929d
365
py
Python
DataStructures/BalancedTrees/ChangeArray.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/BalancedTrees/ChangeArray.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/BalancedTrees/ChangeArray.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 N, M = map(int, raw_input().split()) array = raw_input().split() for _ in range(M): t, i, j = map(int, raw_input().split()) s = slice(i-1, j) array_slice = array[s] del array[s] if t == 1: array = array_slice + array elif t == 2: array = array + array_slice prin...
19.210526
43
0.558904
997e57a0f000022bd66fd4e909f34e9c59063719
2,074
py
Python
03_TicTacToe/0 Arbeitsversion/tic_tac_toe_ansicht.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
03_TicTacToe/0 Arbeitsversion/tic_tac_toe_ansicht.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
03_TicTacToe/0 Arbeitsversion/tic_tac_toe_ansicht.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
from turtle import * from tic_tac_toe_modell import Pos, Zustand class Ansicht(): def zeichne_spielfeld(self): print("Neues leeres Spielfeld") stift = Turtle() stift.speed(0) stift.penup() stift.goto(-300,-100) stift.pendown() stift.forward(600) ...
26.253165
68
0.487464
5164f0437fd7aecd697bd5e0d636cff0b41c5b4a
12,567
py
Python
src/bias_mitigator/prepare_target_texts.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/bias_mitigator/prepare_target_texts.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/bias_mitigator/prepare_target_texts.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os import random import hydra.utils from bidict import bidict import src.constants as constants def prepare_texts(params): target_texts_all = get_target_texts(params) if constants.DEMO not in params.trigger_position: ( neg_demo_neg_target_texts, neg_demo_neu_target_tex...
42.0301
124
0.608419
5afcb9c74d5f58ce58580cb4a67a69b715fb4f46
2,415
py
Python
year_2/prog_base_sem1/lab1/tcp_client.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_2/prog_base_sem1/lab1/tcp_client.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_2/prog_base_sem1/lab1/tcp_client.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
#!/usr/bin/python3.5 import socket import sys def main(): client_prompt = 'max@max-pc:/client$' # Get client address from the user. print('{0} Create a client:'.format(client_prompt)) try: host = input('Enter server address: ') port = input('Enter the port: ') except KeyboardInte...
29.814815
84
0.575155
cfd4afe32375393f8b176b025b4a25dc78378693
3,353
py
Python
src/onegov/election_day/views/upload/parties.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/upload/parties.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/upload/parties.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" The upload view. """ import transaction from onegov.ballot import Election from onegov.ballot import ElectionCompound from onegov.election_day import ElectionDayApp from onegov.election_day.collections import ArchivedResultCollection from onegov.election_day.formats import import_party_results from onegov.election...
28.176471
69
0.61527
cfe086b57b8c240c0a50f56f8602dc1001134a3c
270
py
Python
___Python/Marco/PythonProj/p06_persistence/m01_pickle.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Marco/PythonProj/p06_persistence/m01_pickle.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Marco/PythonProj/p06_persistence/m01_pickle.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import pickle from p01.m_01 import teilnehmerliste # pickling with open("teilnehmer.pickles", "wb") as datei: pickle.dump(teilnehmerliste, datei) #unpickling with open ("teinehmer.pickle", "rb") as datei: liste = pickle.load(datei) print(liste)
19.285714
48
0.696296
cfe7d53eabd6bca407319edb0f5084bb9560b1b4
6,250
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/osmBuild.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/osmBuild.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/osmBuild.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2009-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
44.642857
111
0.66848
7a367617364ab4e740441f174474cb9710771478
2,319
py
Python
PINp/2014/Valkovskey_M_A/task_10_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Valkovskey_M_A/task_10_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Valkovskey_M_A/task_10_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 10. Вариант 49. #Напишите программу "Генератор персонажей" для игры. Пользователю должно быть предоставлено 30 пунктов, которые можно распределить между четырьмя характеристиками: Сила, Здоровье, Мудрость и Ловкость. Надо сделать так, чтобы пользователь мог не только брать эти пункты из общего "пула", но и воз...
26.05618
372
0.609746
890ccf686a2ffd5789d17ea880fb3407ef4435e0
503
py
Python
Code/CustomTypes/courses.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/CustomTypes/courses.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/CustomTypes/courses.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
class Module: def __init__(self, name, courses): self.name = name self.courses = courses def credits(self): return sum([c.credits for c in self.courses]) class Course: def __init__(self, name, credits): self.name = name if credits < 1: raise ValueErr...
23.952381
62
0.580517
85543ed4d3b025a3a94487a999dbb31fa03e11db
1,401
py
Python
debt_info.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
debt_info.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
debt_info.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
from PyQt5 import uic from PyQt5.QtWidgets import QDialog from dbm import * class DebtInfo(QDialog): def __init__(self, dbm: DataBaseManager, debt: Debt): try: super(DebtInfo, self).__init__() uic.loadUi("designer/debt_info.ui", self) self.dbm = dbm self.de...
32.581395
78
0.622413
f14bb5e709a0ffa7459aaa526faa18f72b867d59
1,310
py
Python
PYTHON/Regex_and_Parsing/matrix_script.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Regex_and_Parsing/matrix_script.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Regex_and_Parsing/matrix_script.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re T = list(map(int, input().split())) N, M = T[0], T[1] arr = [input() for _ in range(N)] res = ''.join([a[m] for m in range(0, M) for a in arr]) print(re.sub(r"(?<=\w)([^\w]+)(?=\w)", " ", res)) ''' (?<=...) Matches if the current position in the string is preceded by a match fo...
38.529412
221
0.678626
7441a8cee2b8b92f4b1fa230dc0b237a7b40ae60
291
py
Python
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/fabfile.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/fabfile.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/fabfile.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
from fabric.context_managers import cd from fabric.operations import sudo from fabric.api import settings,run from fabric.api import * env.hosts = ['django.venus.orchive.net'] def update(): with cd('/var/www/calls/'): run('svn up') sudo('/usr/sbin/apache2ctl restart')
24.25
44
0.701031
249d3f456395b578a4a7c169b71550aad72c5d21
3,546
py
Python
Utils/py/ActionSelection/compare_decision_schemes.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/ActionSelection/compare_decision_schemes.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/ActionSelection/compare_decision_schemes.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os import pickle from tools import field_info as field from state import State from tools import action as a import timeit import numpy as np import play_striker as striker """ For every position(x, y) and a fixed rotation the time and the number of kicks and turns are calculated for different strategies. The o...
34.764706
130
0.620981
5c1b3d6669219b1801674f46e0dbac9e0ef12316
13,693
py
Python
RDS/circle3_central_services/research_manager/src/tests/test_server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle3_central_services/research_manager/src/tests/test_server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle3_central_services/research_manager/src/tests/test_server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import unittest from lib.EnumStatus import Status def create_app(): from src import bootstrap # creates a test client app = bootstrap(use_default_error=True, testing=True).app # propagate the exceptions to the test client app.config.update({"TESTING": True}) return app class TestProjectServ...
34.491184
108
0.534142
5c3876dcb9c62ef12e299a9a75c3355beb7bdd87
746
py
Python
ISTp/2014/korsakov_a_a/task_6_34.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2014/korsakov_a_a/task_6_34.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2014/korsakov_a_a/task_6_34.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 34 # Создайте игру, в которой компьютер загадывает имя одного из трех # племянников Скруджа МакДака, а игрок должен его угадать. # Korsakov A.A. # 13.04.2016 print ('Программа случайным образом загадывает имя одного из трёх племянников Скруджа МакДака, а игрок должен его угадать') import random Sl...
32.434783
123
0.734584
694c69e7a079ad29f49dccc73c6a180ed5e0e915
2,161
py
Python
.arch/arch/lob_client.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
.arch/arch/lob_client.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
.arch/arch/lob_client.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Testing lob.py snippets """ from plugins import _tools as tools from devapp.app import app import os, sys, json # ------------------------------------------------------------------------------ config class Flags(tools.BaseFlags): autoshort = '' class snippet: n = 'Snippet...
22.989362
87
0.57242
baa8a1cfd901eb857528b9f922d93f288d1b3ee2
2,783
py
Python
DesignPatterns/CreationalPattern/Factory/factory_p.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
DesignPatterns/CreationalPattern/Factory/factory_p.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
DesignPatterns/CreationalPattern/Factory/factory_p.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
#################################### # Author: "BALAVIGNESH" # # Maintainer: "BALAVIGNESH" # # License: "CC0 1.0 Universal" # # Date: "25/04/2021" # #################################### from abc import ABC, abstractmethod ''' Problem: - If your creating the insurance ap...
34.358025
92
0.608696
aeeb60e8b45a61abeeaa0ba36f04b09c6c80c3c9
1,384
py
Python
src/onegov/form/parser/snippets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/parser/snippets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/parser/snippets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.form import _ class Snippets(object): fragments = ( (_("General"), None), (_("Title"), '#'), (_("Text"), '___'), (_("Multiline"), '...'), (_("E-Mail"), '@@@'), (_("Website"), 'http://'), (_("Comment"), None), (_("Example Comment"), '<< ...
25.163636
56
0.376445
9d98c49ca5a27ab5cd79e9e122584a5bd397f770
247
py
Python
3_DeepLearning-CNNs/06_DogsCats_Classification/test.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/06_DogsCats_Classification/test.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/06_DogsCats_Classification/test.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt img_array = np.load('../DeepLearning/data/PetImages/x.npy') plt.imshow(img_array[20000], cmap='BrBG') plt.show() label = np.load('../DeepLearning/data/PetImages/y.npy') print(label[20000])
24.7
59
0.740891
c9ab6572868030a9a26ff4a07bba02dddf046d5a
26,588
py
Python
frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_entry/test_stock_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_entry/test_stock_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_entry/test_stock_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, unittest import frappe.defaults from frappe.utils import flt, nowdate, nowtime from erpnext.stock.doctype.serial_no.serial_no import * fr...
37.447887
143
0.728035
14fcb6b3cb3ff99e6c8475a5ff2ad919dbe4b331
1,144
py
Python
Reverse_Ip_MultiThread-main/rev.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Reverse_Ip_MultiThread-main/rev.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Reverse_Ip_MultiThread-main/rev.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python # -*- coding: utf-8 -* #JametKNTLS - h0d3_g4n - Moslem - Jenderal92 # Blog : https://www.blog-gan.org #DONATE ME :( # BTC = 31mtLHqhaXXyCMnT2EU73U8fwYwigiEEU1 # PERFECT MONEY = U22270614 import os import requests from colorama import Fore, init from multiprocessing import Pool from multi...
29.333333
85
0.668706
e10d207c5dfbf6cd9a724936fbf4e66b1ebd9839
905
py
Python
6_ObjectOriented/inheritance_with_super.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
6_ObjectOriented/inheritance_with_super.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
6_ObjectOriented/inheritance_with_super.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
# Vererbung (inheritance) mit super: # vererbt an die Kindklasse alle Variablen und Methoden class A: def __init__(self): print("Init A called!") self.a = 2 def hello(self): print('hi') class B(A): # erbt von A def __init__(self): super().__init__() # ruft von der Eltern...
25.138889
113
0.561326
017a5d55acf41033d7b91e557407b9e4264c3187
452
py
Python
src/onegov/agency/collections/agencies.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/collections/agencies.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/collections/agencies.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.agency.models import ExtendedAgency from onegov.people import AgencyCollection class ExtendedAgencyCollection(AgencyCollection): __listclass__ = ExtendedAgency # Used to create link for root pdf based on timestamp def __init__(self, session, root_pdf_modified=None, browse=None): supe...
32.285714
69
0.772124
6d770e3d2d903866c8df6c6185b4b1d04d0fa1aa
14,895
py
Python
tools/legacy/veh-parser/vehicleInfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/veh-parser/vehicleInfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/veh-parser/vehicleInfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
from functools import partial import parseFiles import intMountsInfo def createExecContext(): contextToOverwrite = intMountsInfo.createExecContext() sfxStrings = parseFiles.parseStringsFromFile("sfx.strings.cs") result = { "vehicles": [], "H": "human", "C": "cybrid", "X": "x...
36.329268
189
0.640551
c946846933d3331c43030bd39cb401ebb235396f
3,791
py
Python
research/cv/stgcn/src/dataloader.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/stgcn/src/dataloader.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/stgcn/src/dataloader.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...
35.429907
120
0.638618
c29d4abfeb9f69306bb31778c8b5785530cca6a6
314
py
Python
src/python3_learn_video/open.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/open.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/open.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
f = open('E:\\a.txt') print(f) print(f.read(5)) print(f.tell()) print(f.seek(45, 0)) print(f.readline()) print(list(f)) f.seek(0, 0) lines = list(f) for each_line in lines: print(each_line) f.seek(0, 0) for each_line in f: print(each_line) f = open('E:\\test.txt', 'w') f.write('I love fish') f.close()
14.952381
29
0.621019
06d5f086933b81ed30537a8842b6353892140d31
114
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 61/61.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 61/61.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 61/61.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Create a program that prints Hello every 2 seconds import time while True: print("Hello") time.sleep(2)
16.285714
51
0.710526
c6fbd3e97667f0d5e1115399bc1cc989e588be9b
12,912
py
Python
research/nlp/tprr/src/albert.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/tprr/src/albert.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/tprr/src/albert.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...
51.238095
119
0.631351
af6b46e6b11f4e699ee903e89cc1161f9c4f9943
2,061
py
Python
image_inhance/main.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
image_inhance/main.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
image_inhance/main.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
from PIL import Image, ImageEnhance import matplotlib.pyplot as plt from glob import glob import cv2 import numpy as np def using_pillow(img, path_image): image = Image.open(img) # increase contrast contrast_enhancer = ImageEnhance.Contrast(image) factor = 1.5 output_contrast = contrast_enhancer.e...
27.851351
91
0.654051
bbb8bed3a42c41d774935a7198e5c41a2eef4c9e
732
py
Python
wk-sentiment/app/main/api/health/controller.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
4
2020-10-08T15:05:02.000Z
2021-08-03T01:00:08.000Z
wk-sentiment/app/main/api/health/controller.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
null
null
null
wk-sentiment/app/main/api/health/controller.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
1
2020-10-08T15:05:04.000Z
2020-10-08T15:05:04.000Z
from flask import request from flask_restplus import Resource, abort from main.api.restplus import api hns = api.namespace( 'health', description='Operations related to health status of the service') @hns.route('') class Health(Resource): """This class represents the health endpoints of the service.""" ...
20.333333
85
0.653005
595fcded353dcf546c848904a34cae2989c9ae53
445
py
Python
nz_crawl_demo/day5/demo4.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day5/demo4.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day5/demo4.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from selenium import webdriver import time driver = webdriver.Chrome() driver.get("https://www.douban.com/") # print(driver.get_cookies()) for cookie in driver.get_cookies(): print(cookie) print(driver.get_cookie('bid')) print(driver.delete_cookie('bid')) print("*"*30) for cookie in driver.get_cookies(): p...
17.8
37
0.719101
056d720355ace5693778e7a7392584fb70b046b6
172
py
Python
foundation/patches/v0_0/change_website_to_website_url.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
59
2017-03-15T08:14:52.000Z
2021-11-17T14:21:58.000Z
foundation/patches/v0_0/change_website_to_website_url.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
147
2017-01-25T10:44:47.000Z
2020-11-05T04:24:22.000Z
foundation/patches/v0_0/change_website_to_website_url.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
134
2017-03-14T14:04:21.000Z
2022-03-18T08:19:47.000Z
import frappe def execute(): frappe.db.sql(''' ALTER TABLE `tabFoundation Fellowship` CHANGE `website` `website_url` varchar(140); ''', ignore_ddl = True)
24.571429
91
0.662791
f9c2e02448a48804cb05c254e5103d2e0ac02777
6,679
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/pn_vrouter_loopback_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/pn_vrouter_loopback_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/pn_vrouter_loopback_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright: (c) 2018, Pluribus Networks # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['...
29.422907
111
0.628537
f9c42ede0edd5f3a5692603b8a71f3305089ee88
2,147
py
Python
src/classifier/visualizers/plots.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/classifier/visualizers/plots.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/classifier/visualizers/plots.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from matplotlib import pyplot as plt sns.set(style="white") def plot_label_histogram(label_col, name=""): label_col.hist() plt.title(name) if -1.0 in label_col: plt.xticks([-1, 0, 1]) elif ...
27.883117
75
0.633442
dda888a799dc8e8708fb2010cd9f217cd551a0e6
651
py
Python
autologin/log.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
15
2018-05-16T02:39:01.000Z
2021-05-22T13:12:55.000Z
autologin/log.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
null
null
null
autologin/log.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
9
2018-05-16T00:47:34.000Z
2021-11-26T05:39:48.000Z
# -*- coding: utf-8 -*- """ ------------------------------------------------- @File : log.py Description : @Author : pchaos date: 18-4-16 ------------------------------------------------- Change Activity: 18-4-16: @Contact : p19992003#gmail.com -------------------...
20.34375
91
0.477727
ddc0177fd6bc882f400df7b573118e22112860d1
3,198
py
Python
bot/exts/utils/internal.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/exts/utils/internal.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/exts/utils/internal.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
from datetime import datetime import logging from os import utime from collections import Counter import coloredlogs import discord from discord.ext import commands from bot.bot import Bot from bot.constants import Roles logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger) class I...
34.387097
83
0.666354
fd0af5b78c4f6c8ddc5f6503184b97e3e1b995f1
3,140
py
Python
LFA/class_moore.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
LFA/class_moore.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
LFA/class_moore.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
from random import randint as rand from utils import export_graph, export_error import time as t class Moore: identifier = "" current_state = None current_letter = None valid = True def __init__( self, name, alphabet, states, delta_function, start_...
33.404255
88
0.56242
b5d3210d7a663609c5e6c8227b9f0273e7cb4d16
1,327
py
Python
2018/finals/re-drm/validator/validator_driver.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/validator_driver.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/validator_driver.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...
28.234043
121
0.741522
950faefb0ffb12b705aa6c15b12afdd78b7461a7
3,516
py
Python
pelicanconf.py
fernanluis/fernanluis.github.io
eb063d40f2893fb9dd5b22662f343827aa6b157a
[ "MIT" ]
1
2021-02-15T12:19:44.000Z
2021-02-15T12:19:44.000Z
pelicanconf.py
fernanluis/fernanluis.github.io
eb063d40f2893fb9dd5b22662f343827aa6b157a
[ "MIT" ]
null
null
null
pelicanconf.py
fernanluis/fernanluis.github.io
eb063d40f2893fb9dd5b22662f343827aa6b157a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # AUTHOR = 'Fernando Ramos' SITENAME = 'Mi primer sitio' SITEURL = '' PATH = 'content' OUTPUT_PATH = 'docs/' THEME = 'MinimalXY' TIMEZONE = 'America/Argentina/Cordoba' DEFAULT_LANG = 'es' # Feed generation is usually not desired when developing FEED_ALL_ATOM = None CAT...
28.128
111
0.687144
1f2f8d0362898475770f20166d5a7cb1a5716ca9
61
py
Python
___Python/Angela/PyKurs/p13_berechnungen/m02_check_ob_primzahl.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Angela/PyKurs/p13_berechnungen/m02_check_ob_primzahl.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Angela/PyKurs/p13_berechnungen/m02_check_ob_primzahl.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
zahl = input("Zahl?") zaehler = 1 def primzahl(zahl):
10.166667
22
0.590164
85cf8c0bf45d62c6b9a13c9225feb8dc72eafded
791
py
Python
scripts/component_graph/test/server/util/test_url.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/component_graph/test/server/util/test_url.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/test/server/util/test_url.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python3 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from server.util.url import * class TestUrl(unittest.TestCase): def test_package_to_url(self): self.asse...
28.25
72
0.678887
c07c49fc8705be5dbc8cb90ed4439c45c5757b9c
457
py
Python
884-uncommon-words-from-two-sentences/884-uncommon-words-from-two-sentences.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
884-uncommon-words-from-two-sentences/884-uncommon-words-from-two-sentences.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
884-uncommon-words-from-two-sentences/884-uncommon-words-from-two-sentences.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def uncommonFromSentences(self, s1: str, s2: str) -> List[str]: words1= s1.split(" ") words2 = s2.split(" ") filtered_words1= [word for word in words1 if words1.count(word)==1] filtered_words2= [word for word in words2 if words2.count(word)==1] o1 = [word for ...
50.777778
75
0.63895
9e497ff281916953d2a52834a8a4e8f1ac2aeeb2
2,090
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/conversion.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/conversion.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/conversion.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# Copyright (c) 2008-2010, Michigan State University from openscreed import ScreedDB _MAXLINELEN = 80 _null_accuracy = '\"' # ASCII 34, e.g 75% chance of incorrect read def GetComments(value): """ Returns description or annotations attributes from given dictionary object """ if 'description' in v...
28.243243
80
0.591866
9ec0212c73bdbb8263139f7c693ce69c8f5bb41e
14,388
py
Python
research/nlp/DYR/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/DYR/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/DYR/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...
42.949254
118
0.657979
c8d10465a62d7628a1e0ffcb7c5d07175395142a
218
py
Python
exercises/en/solution_02_10_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/solution_02_10_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/solution_02_10_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("en_core_web_md") doc = nlp("TV and books") token1, token2 = doc[0], doc[2] # Get the similarity of the tokens "TV" and "books" similarity = token1.similarity(token2) print(similarity)
19.818182
51
0.720183
a8014ac35d7386e806d28bee157359424c45705d
487
py
Python
elements/python/9/10/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/9/10/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/9/10/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import tree def depth_order(n): nodes = [n] i = 0 while i < len(nodes): n = nodes[i] if n.left is not None: nodes.append(n.left) if n.right is not None: nodes.append(n.right) i += 1 return [n.content for n in nodes] def test(): t = tree.exa...
15.709677
37
0.519507
93d9d635d4d721c1933ce161a7a1e4b638026f93
1,040
py
Python
Regression/SingleVariableRegression.py
moeinmd1380/MachineLearning
3f5490fb379a217be5bca993b6e3983d151db11c
[ "Unlicense" ]
null
null
null
Regression/SingleVariableRegression.py
moeinmd1380/MachineLearning
3f5490fb379a217be5bca993b6e3983d151db11c
[ "Unlicense" ]
null
null
null
Regression/SingleVariableRegression.py
moeinmd1380/MachineLearning
3f5490fb379a217be5bca993b6e3983d151db11c
[ "Unlicense" ]
null
null
null
import numpy as np class SingleVariableRegression: def __init__(self, data, label, learningRate=0.01): self.x = data self.y = label self.a = 1 self.b = 1 self.lr = learningRate self.predictResult = [] def predict(self): self.predictResult =...
28.888889
71
0.535577
27bb4e18c9eb150c41567770f3f27bc7a4e44dea
1,831
py
Python
Prototype/main prototype/test/TestExport.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
4
2019-12-03T16:13:09.000Z
2019-12-11T23:22:58.000Z
Prototype/main prototype/test/TestExport.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
65
2019-12-08T17:43:59.000Z
2020-08-14T15:26:21.000Z
Prototype/main prototype/test/TestExport.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
null
null
null
import Calculation from TabData import TabData from LayerData import LayerData from Exporter import Exporter from Parser import Parser class Export: def __init__(self): # erstelle erste Schicht self.layer_1 = LayerData() self.layer_1.widthUnit = 1 self.layer_1.width = 0.02 ...
26.536232
52
0.604588
fddea73b6e12c330abd33500d2f17f585ff0e1fd
204
py
Python
python_gui_tkinter/KALU/SAFE1AUG/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/SAFE1AUG/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/SAFE1AUG/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 #ao.update_Sl(3,'2018-07-30T20:15:54') ao.reset_slno() #k = Rec.timestmp() #print("Type of k : ",type(k)) #print(Rec.timestmp())
29.142857
45
0.735294
e33b579398e7ff44da39f2efd2267d9936de6970
2,614
py
Python
begin-python/cp5/chapter5.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
3
2021-08-04T07:59:48.000Z
2022-03-26T23:58:17.000Z
begin-python/cp5/chapter5.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
null
null
null
begin-python/cp5/chapter5.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf8 -*- # ##条件、循环和其他语句 import logging logging.basicConfig(level=logging.INFO, filename='resultlog.log') info = logging.info # ###5.1print 和 import 的更多信息 # print 可以连续打印多个值,用逗号隔开 print 1,3,4 # import 的一些高级用法 from math import sqrt from math import sqrt as mathSqrt # ###5.2赋值魔法 # ####...
16.03681
65
0.594491
7bd0b0c197e5338c2a8ccab6cdcfc0406bcd0c3a
3,722
py
Python
CC8550-SimulacaoETesteDeSoftware/Lab04/Lab04.py
phdomingues/FEI-CS
e1dc19c190d61f5f13492ba5179f5d41295f1b50
[ "MIT" ]
null
null
null
CC8550-SimulacaoETesteDeSoftware/Lab04/Lab04.py
phdomingues/FEI-CS
e1dc19c190d61f5f13492ba5179f5d41295f1b50
[ "MIT" ]
null
null
null
CC8550-SimulacaoETesteDeSoftware/Lab04/Lab04.py
phdomingues/FEI-CS
e1dc19c190d61f5f13492ba5179f5d41295f1b50
[ "MIT" ]
null
null
null
from random import random from math import log, log10, sqrt # log = base e # === DADOS COMUNS === # a = 110/3600 # msg/s (razao de mensagens no sistema) theta = 8 # segundos # === FORMULAS === # # 4 formas diferentes de calcular o 'r' (nomeadas r, r_, r__ e r___) def r(Lw): D = sqrt(pow(Lw,2)+(4*Lw)) raiz1 = ...
27.776119
70
0.552123
ef35a18d48f1530cd496e5c07c59d030f95e466f
934
py
Python
exercises/en/test_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/test_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/test_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert Span.has_extension( "wikipedia_url" ), "Did you register the extension on the span?" ext = Span.get_extension("wikipedia_url") assert ext[2] is not None, "Did you set the getter correctly?" assert ( "getter=get_wikipedia_url" in __solution__ ), "Did you assign ...
38.916667
79
0.656317
32294035310044c11e1d78acaec90ce1f5024889
8,936
py
Python
test/py/dubbo/test_pb2.py
wybosys/nnt.logic.jvm
249aedd7f8dd03d94dcb0780b91dadacd4b25270
[ "BSD-3-Clause" ]
2
2020-09-22T11:01:31.000Z
2020-09-22T11:12:29.000Z
test/py/dubbo/test_pb2.py
wybosys/nnt.logic.jvm
249aedd7f8dd03d94dcb0780b91dadacd4b25270
[ "BSD-3-Clause" ]
null
null
null
test/py/dubbo/test_pb2.py
wybosys/nnt.logic.jvm
249aedd7f8dd03d94dcb0780b91dadacd4b25270
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: dubbo/test.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.prot...
33.468165
1,110
0.762645
4100c2ea91f4db2ef9eb0b51132c3bc52755cb54
2,331
py
Python
autojail/model/config.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/model/config.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/model/config.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
from typing import TYPE_CHECKING, List, Optional from pydantic import BaseModel if TYPE_CHECKING: from pydantic.typing import CallableGenerator class AutojailLogin(str): @classmethod def __get_validators__(cls) -> "CallableGenerator": yield cls.validate @classmethod def validate(cls, v:...
24.536842
70
0.573574
9d33dc448d7cc9b2f2a7de036230732b0eafc4df
473
py
Python
数据结构/NowCode/A1_binarySearch.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/A1_binarySearch.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/A1_binarySearch.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 二分查找 class Solution: def binarySearch(self, array, key): left = 0 right = len(array) while(left < right): middle = int((right + left) / 2) if array[middle] == key: return middle elif array[middle] > key: right = middle - ...
26.277778
53
0.477801
c219e7d7ad22bb82e3871261ccd97878a860cc1d
263
py
Python
1399-count-largest-group/1399-count-largest-group.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1399-count-largest-group/1399-count-largest-group.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1399-count-largest-group/1399-count-largest-group.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def countLargestGroup(self, n: int) -> int: numarr = [0]*37 # 9999 returns the max value which is 36 for i in range(1, n+1): numarr[sum([int(j) for j in str(i)])]+=1 return numarr.count(max(numarr))
37.571429
64
0.562738
260b981c147d81b430ef6fef59b1eb692232b02e
6,916
py
Python
src/test/tests/plots/molecule.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/plots/molecule.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/plots/molecule.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: molecule.py # # Tests: mesh - 3D points # plots - Molecule # operators - CreateBonds, Replicate # # Programmer: Kathleen Biagas # Date: June 15, 2021 # #...
28.344262
101
0.671342
263e00ecfa4fcfaa8b28e4e70edc6a04087999a1
55
py
Python
packages/watchmen-dqc/src/watchmen_dqc/topic_profile/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/topic_profile/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/topic_profile/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .topic_profile_service import TopicProfileService
27.5
54
0.909091
f881f62013a8666ac98e7dab5b6b19bd500a50a1
1,546
py
Python
preprocess.py
wmhst7/EmotionAnalysis
e94fbbb5bba4706abcea06f503c9a8da5f60203a
[ "MIT" ]
null
null
null
preprocess.py
wmhst7/EmotionAnalysis
e94fbbb5bba4706abcea06f503c9a8da5f60203a
[ "MIT" ]
null
null
null
preprocess.py
wmhst7/EmotionAnalysis
e94fbbb5bba4706abcea06f503c9a8da5f60203a
[ "MIT" ]
2
2020-05-29T15:56:13.000Z
2021-06-03T14:18:39.000Z
import numpy as np # from elmoformanylangs import Embedder import gensim import torch.nn.functional as F import torch max_len = 500 # Embedding model = gensim.models.KeyedVectors.load_word2vec_format('./word2vec/sgns.merge.word') def preprocess(filename): textlist = [] scorelist = [] with open(filename, ...
29.730769
85
0.5511
f893f1780584d054b50ffdd3090745bf2bbe66ed
4,073
py
Python
WordDocument.py
StefanHol/SchoolReport_Excel2Word2PDF
49be73f669df7b5f25713dac3cc96929d44211e4
[ "Apache-2.0" ]
1
2022-03-16T11:25:31.000Z
2022-03-16T11:25:31.000Z
WordDocument.py
StefanHol/SchoolReport_Excel2Word2PDF
49be73f669df7b5f25713dac3cc96929d44211e4
[ "Apache-2.0" ]
null
null
null
WordDocument.py
StefanHol/SchoolReport_Excel2Word2PDF
49be73f669df7b5f25713dac3cc96929d44211e4
[ "Apache-2.0" ]
null
null
null
''' Auslesen aller nötigen Word Informationen (Textfelder, CheckBox Namen, ...) XML Informationen Lesen. ''' import zipfile from lxml import etree from collections import OrderedDict import logging # import glob import os import csv class WordDocument: NSMAP = {'w': 'http://schemas.openxmlformats.org/wordproce...
35.72807
93
0.577216
3e07451cb6ce24464a25e86c46ef495943b1b9cb
999
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch06_arrays/ex05_jewels_board_init_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch06_arrays/ex05_jewels_board_init_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch06_arrays/ex05_jewels_board_init_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import numpy as np from ch06_arrays.solutions.ex05_jewels_board_init import check_board_validity def test_check_board_validity_with_conflicts(): values_with_errors = [[2, 3, 3, 4, 4, 3, 2], [1, 3, 3,...
28.542857
77
0.542543
3e77753336af969173a45b97547753e2821d8fea
778
py
Python
leetcode/add_two_numbers_II.py
ekselan/abw_cc
54ca8986c6e5d28398299d615a987dfd8e39a9c0
[ "MIT" ]
null
null
null
leetcode/add_two_numbers_II.py
ekselan/abw_cc
54ca8986c6e5d28398299d615a987dfd8e39a9c0
[ "MIT" ]
null
null
null
leetcode/add_two_numbers_II.py
ekselan/abw_cc
54ca8986c6e5d28398299d615a987dfd8e39a9c0
[ "MIT" ]
null
null
null
# Recursive solution for add_two_numbers Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: if l1 == None: return l2 ...
29.923077
96
0.553985
5fb707b2ff570dc84181c6497d0c9a74a19d3d70
10,299
py
Python
plugins/tff_backend/bizz/flow_statistics.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/flow_statistics.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/flow_statistics.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2018 GIG Technology NV # # 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...
44.584416
120
0.733761
f241b328a2d5540a155864c93364b766e20efa24
1,129
py
Python
___Python/KarPoo/po1_kennenlernen/p01_kennenlernen/p02_excel_write.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/KarPoo/po1_kennenlernen/p01_kennenlernen/p02_excel_write.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/KarPoo/po1_kennenlernen/p01_kennenlernen/p02_excel_write.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import pandas as pd import xlsxwriter as ew from datetime import date torsten = ["Torsten", "Aachen"] michael = ["Michael", "Moormerland"] karpoo = ["Karpoo", "Düsseldorf"] carsten = ["Carsten", "Aachen"] thomas = ["Thomas", "Bielefeld"] angela = ["Angela", "Lingen"] jonas = ["Jonas", "Löhne"] marco = ["Mar...
35.28125
117
0.704163
8a3b1018fd0b2952e51ca7bd028a63bea88f51a0
114
py
Python
hoursToSec.py
mrmayurs4/Hacktoberfest-2020
f2bc129bd8574d5870b9595a019bff3baddeaf73
[ "MIT" ]
null
null
null
hoursToSec.py
mrmayurs4/Hacktoberfest-2020
f2bc129bd8574d5870b9595a019bff3baddeaf73
[ "MIT" ]
null
null
null
hoursToSec.py
mrmayurs4/Hacktoberfest-2020
f2bc129bd8574d5870b9595a019bff3baddeaf73
[ "MIT" ]
null
null
null
x = int(input("Enter the number of hours")) sec = x*60*60 print (str(x) + " hours in seconds are " + str(sec))
28.5
53
0.614035
8a46439f7683510f8a48b43330ee8395c7d4174d
3,156
py
Python
back-end/server.py
ludanxer/MovieShop
1fd757943edf85e55b60a295249f5447db46563b
[ "MIT" ]
1
2019-05-27T15:46:38.000Z
2019-05-27T15:46:38.000Z
back-end/server.py
ludanxer/MovieShop
1fd757943edf85e55b60a295249f5447db46563b
[ "MIT" ]
null
null
null
back-end/server.py
ludanxer/MovieShop
1fd757943edf85e55b60a295249f5447db46563b
[ "MIT" ]
null
null
null
""" Micro Server For Movie Shop """ import json from pymongo import MongoClient import time from flask import request, Flask from pyhive import hive cursor = hive.connect(host='localhost', port='10000').cursor() client = MongoClient() db = client['movie'] cart = db['cart'] member = db['member'] app = Flask(__name...
28.432432
88
0.591888
0a4133717f5def76ea75339d4a8f8c6817f5b7c7
2,321
py
Python
temp_over_modbus/modbus_slave_to_http.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
temp_over_modbus/modbus_slave_to_http.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
temp_over_modbus/modbus_slave_to_http.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
import thread import logging import BaseHTTPServer from pymodbus.server.async import StartTcpServer from pymodbus.device import ModbusDeviceIdentification from pymodbus.datastore import ModbusSparseDataBlock from pymodbus.datastore import ModbusSlaveContext, ModbusServerContext from pymodbus.transaction import Modbus...
30.142857
80
0.724257
6a75d02e347ac9146bf36b2d3f23e72e860f76c3
264
py
Python
rpi/car/motor.py
dani-9/robbie9-2020
95069da86b346e691d05bddd99ac2092848b1d55
[ "Apache-2.0" ]
null
null
null
rpi/car/motor.py
dani-9/robbie9-2020
95069da86b346e691d05bddd99ac2092848b1d55
[ "Apache-2.0" ]
null
null
null
rpi/car/motor.py
dani-9/robbie9-2020
95069da86b346e691d05bddd99ac2092848b1d55
[ "Apache-2.0" ]
null
null
null
class Motor: def __init__(self, forward_pin, backward_pin): self.forward_pin = forward_pin self.backward_pin = backward_pin def move_forward(self): pass def move_backward(self): pass def stop(self): pass
17.6
50
0.621212
6a8fabcb13d153708be57bbd5e8ff1b03ebc6810
643
py
Python
Uebung10/test.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-18T19:10:06.000Z
2018-04-18T19:10:06.000Z
Uebung10/test.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
null
null
null
Uebung10/test.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-29T08:48:00.000Z
2018-04-29T08:48:00.000Z
string1 = "haus baum welt" string2 = "rot blau blau" list1 = str.split(string1) list2 = str.split(string2) encoding = {} for i in range(len(list1)): encoding[list1[i]] = list2[i] print(encoding) string = "baum welt haus" encodedstring = "" toencode = str.split(string) for i in range(len(toencode)): encoded...
19.484848
49
0.695179
6aa2ec5307df7b9a17973117e59fb8a208f580ca
948
py
Python
src/bo4e/com/marktgebietinfo.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/marktgebietinfo.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/marktgebietinfo.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Marktgebietinfo class and corresponding marshmallow schema for de-/serialization """ import attr from marshmallow import fields from bo4e.com.com import COM, COMSchema # pylint: disable=too-few-public-methods @attr.s(auto_attribs=True, kw_only=True) class MarktgebietInfo(COM): """ Informationen ...
26.333333
185
0.736287
0a7af5e33c9dbeb58105639b35e6625d7e101943
3,910
py
Python
official/cv/resnet/infer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/cv/resnet/infer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/resnet/infer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.494949
118
0.687468
0aaf7ad60cf5e8a1ac5f6535a4d12d6e558d39fc
6,629
py
Python
official/nlp/textcnn/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/nlp/textcnn/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/nlp/textcnn/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
""" # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
37.451977
96
0.621059
7cbfb1fac3f3d180a121fc506f173d3b96a98ab7
3,623
py
Python
oldp/apps/cases/management/commands/process_cases.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/cases/management/commands/process_cases.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/cases/management/commands/process_cases.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
import os from django.conf import settings from django.core.management.base import BaseCommand from oldp.apps.backend.processing.processing_steps.post.send_to_es import SendToES from oldp.apps.cases.models import Case from oldp.apps.cases.processing.case_processor import CaseProcessor, CaseInputHandlerFS, CaseInputHa...
40.255556
123
0.655258
8694be7df570c5d7402bd895deb8502e8f357364
3,046
py
Python
attach/agora_key/RtcTokenBuilder.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
5
2021-03-25T09:16:28.000Z
2021-06-12T06:48:43.000Z
attach/agora_key/RtcTokenBuilder.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
null
null
null
attach/agora_key/RtcTokenBuilder.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
1
2021-07-20T05:37:16.000Z
2021-07-20T05:37:16.000Z
import os import sys from collections import OrderedDict from .AccessToken import * Role_Attendee = 0 # depreated, same as publisher Role_Publisher = 1 # for live broadcaster Role_Subscriber = 2 # default, for live audience Role_Admin = 101 # deprecated, same as publisher class RtcTokenBuilder: # appID: The App...
57.471698
119
0.684504
86a822e6f8a65c190549b91fea072fc424afafe6
779
py
Python
python/classes/classes.py
miroadamy/language-matrix
510bc33d058555da8a67f87d25353b93d219d750
[ "MIT" ]
15
2015-03-13T03:45:52.000Z
2022-02-26T00:11:18.000Z
python/classes/classes.py
miroadamy/language-matrix
510bc33d058555da8a67f87d25353b93d219d750
[ "MIT" ]
5
2015-02-23T18:20:17.000Z
2021-03-20T21:54:48.000Z
python/classes/classes.py
miroadamy/language-matrix
510bc33d058555da8a67f87d25353b93d219d750
[ "MIT" ]
9
2016-05-11T13:03:22.000Z
2021-04-11T13:07:12.000Z
"""A simple class declaration with nothing in it must use 'pass' The 'pass' statement is like {} in C++ or Java""" class Simple: pass """Instantiating the class""" g = Simple() """Placing a property that doesn't exist and using it""" g.some_variable = 17 """Using that property to continually mutate the class...
22.257143
95
0.706033
810148db53979cc32c3735838e1816ca48d26ea5
641
py
Python
projects/controllers/parameters.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/controllers/parameters.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/controllers/parameters.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Parameters controller.""" from werkzeug.exceptions import NotFound from ..models import Component from ..jupyter import read_parameters def list_parameters(component_id, is_checked=False): """Lists all parameters from the experiment notebook of a component. Args: componen...
26.708333
75
0.720749
ed2a6f1f7554fe21521b31c12fdb4c63c05212ef
1,471
py
Python
lib/widgets/elements/graphctrl.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/widgets/elements/graphctrl.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/widgets/elements/graphctrl.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
from PyQt5.QtWidgets import (QLabel, QPushButton, QComboBox, QGridLayout) class GraphControl(QGridLayout): def __init__(self, parent=None): super(GraphControl, self).__init__() self.canvasList = [] self.selectedCanvasId = 0 self.__controls() self.__layout() self.set...
29.42
73
0.649898
ed4ea5ded12237b51fd8d109789b5775e56a35ad
41
py
Python
python/coursera_python/MICHIGAN/DataStructures/test/for.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/DataStructures/test/for.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/DataStructures/test/for.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
s='kxskxlkxokxlox' for i in s: print(i)
10.25
18
0.682927
9c01e16454b3aee0c47f82c6fd72a0b895b7fbb1
314
py
Python
007 Geheimtext_Funktion.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
007 Geheimtext_Funktion.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
007 Geheimtext_Funktion.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
def caesar_chiffre(text,schlüssel): neuer_text = "" for buchstabe in text: neuer_text += chr(ord(buchstabe)+schlüssel) return neuer_text nachricht = input("Bitte Text eingeben: ") schlüssel = input("Bitte Schlüssel eingeben (- für Entschlüsselung): ") print(caesar_chiffre(nachricht, int(schlüssel)))
31.4
71
0.742038
9c5126ce5dc5d7e32a1338946f7b087dec1b2bb1
3,079
py
Python
experimental/OUTDATED/ts2dataclass/tst_ts2dataclass_grammar.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
experimental/OUTDATED/ts2dataclass/tst_ts2dataclass_grammar.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
experimental/OUTDATED/ts2dataclass/tst_ts2dataclass_grammar.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """tst_ts2dataclass_grammar.py - runs the unit tests for the ts2dataclass-grammar """ import os import sys LOGGING = 'LOGS' DEBUG = True TEST_DIRNAME = 'tests_grammar' scriptpath = os.path.dirname(__file__) dhparserdir = os.path.abspath(os.path.join(scriptpath, '../../../examples', '..')) if ...
34.988636
89
0.659305
92c5ff7f1cd1fa6288dde5ede85d7bc075696977
33
py
Python
live/settings/settings.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
1
2017-01-08T13:21:43.000Z
2017-01-08T13:21:43.000Z
live/settings/settings.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
17
2018-12-03T14:22:14.000Z
2021-07-14T15:15:12.000Z
live/settings/settings.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
2
2018-12-03T14:58:49.000Z
2019-12-01T13:24:42.000Z
SOCKETIO_NAMESPACE = '/sbz/flow'
16.5
32
0.757576
1335972549488556e11e14df8ef5168fd25e1ac2
152
py
Python
__init__.py
lum4chi/chinltk
f129394984858e7789bec39a2900ebff6f9ae380
[ "Apache-2.0" ]
null
null
null
__init__.py
lum4chi/chinltk
f129394984858e7789bec39a2900ebff6f9ae380
[ "Apache-2.0" ]
null
null
null
__init__.py
lum4chi/chinltk
f129394984858e7789bec39a2900ebff6f9ae380
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2016 Francesco Lumachi <francesco.lumachi@gmail.com> from .vocabulary import Vocabulary
25.333333
68
0.717105
e03baae4ef540b47e8b52c19500aa6681f8e49a4
327,363
py
Python
World-master/black.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
World-master/black.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
World-master/black.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#Encrypt By Vivek import base64 exec(base64.b32decode("EMQS65LTOIXWE2LOF5YHS5DIN5XDEDIKENRW6ZDJNZTT25LUMYWTQDIKENKGQZJAINZGKZDJOQQEM33SEBKGQ2LTEBBW6ZDFEBDW6ZLTEBKG6ICWNF3GK22DNBQW4ZDFNQGQUI2JMYQFS33VEBLWC3TOMEQFIYLLMUQEG4TFMRUXI4ZAIZXXEICUNBUXGICDN5SGKLBAKBWGKYLTMUQEY33PNMQFS33VOJZWK3DGEBAWOYLJNYXC4LQNBIRVEZLTMVZHMZLEG...
81,840.75
327,330
0.999939
e05d7ce38d9ce03fa068a9ec9f14e34831151b66
641
py
Python
setup.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
setup.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
setup.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
import os try: from setuptools import setup except ImportError: from distutils.core import setup def get_packages(package): """ Return root package and all sub-packages. """ return [ dirpath for dirpath, dirnames, filenames in os.walk(package) if os.path.exists(os.pat...
19.424242
63
0.594384
bca3832241257a42aaa9c929a6ada04ff684cf18
6,231
py
Python
pluginsinterface/EventHandling.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
pluginsinterface/EventHandling.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
1
2020-09-22T02:30:40.000Z
2020-09-22T02:30:40.000Z
pluginsinterface/EventHandling.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import threading import queue import functools import asyncio import time import module.msgStream as msgStream from module.msgStream import SendMessage from helper import getlogger logger = getlogger(__name__) """ 接收插件处理过的消息,并打包成事件转发到对应插件 消息结构: #标识来源(用于回复及后续处理) bottype botuu...
29.530806
90
0.500722