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
97ab609f42be4555cf25340da063fdd975e6e25a
293
py
Python
BITs/2014/Gasanov_A_F/task_1_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Gasanov_A_F/task_1_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Gasanov_A_F/task_1_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №1 Вариант 9 #Программа пишет род деятельности и псевдоним данного персонажа #Гасанов АФ #29.02.2016 print("Борис Николаевич Бугаев - русский писатель, поэт, критик, мемуарист, стиховед; один из ведущих деятелей русского символизма и модернизма в целом.") input("Enter для выхода")
29.3
154
0.784983
e7344d020747a47a28c6ab9bd63fd1a144f22c64
1,523
py
Python
hplc_area_reformat.py
furubayashim/hplc-analysis-hitachi
d8f2b594b577032548e860b424f55241bbe72b37
[ "MIT" ]
null
null
null
hplc_area_reformat.py
furubayashim/hplc-analysis-hitachi
d8f2b594b577032548e860b424f55241bbe72b37
[ "MIT" ]
null
null
null
hplc_area_reformat.py
furubayashim/hplc-analysis-hitachi
d8f2b594b577032548e860b424f55241bbe72b37
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Hitachi HPLC Chromaster # script to reformat the area table inside "REPRC0001.xls" # put the exported data (REPRC0001.XLS) into "data" directory # prepare "peak.xls" where you assign the peak RT and molecule name import pandas as pd import numpy as np import glob import os import matplotlib.py...
28.203704
111
0.680893
d894d42ed02f26552970827871fbee2e0edc8d0c
768
py
Python
ProjectEuler_plus/euler_022.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_022.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_022.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from collections import OrderedDict def get_name_worth(d, aa): worth = 0 for i in range(len(aa)): worth += d[aa[i]] return worth position_dict = {'A': 1, 'B': 2, 'C': 3, 'D': 4, 'E': 5, 'F': 6, 'G': 7, 'H': 8, 'I': 9, 'J': 10, 'K': 11, 'L': 12, 'M': 13, 'N': 14, ...
25.6
241
0.515625
2b1dcbd071c4374760300f5b267a1288f9635295
5,069
py
Python
src/model_1.py
Inquisitor-16/Covid19-Detection-from-CXR-images
a3307db0ef9dab011f74adf738c1c0a89df63124
[ "Apache-2.0" ]
null
null
null
src/model_1.py
Inquisitor-16/Covid19-Detection-from-CXR-images
a3307db0ef9dab011f74adf738c1c0a89df63124
[ "Apache-2.0" ]
null
null
null
src/model_1.py
Inquisitor-16/Covid19-Detection-from-CXR-images
a3307db0ef9dab011f74adf738c1c0a89df63124
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """CXR_model1_cnf_1000+600 -> 150 epochs.ipynb Automatically generated by Colaboratory. """ #from google.colab import drive #drive.mount('/content/drive') # Commented out IPython magic to ensure Python compatibility. #from tensorflow.keras.optimizers import Adam from keras import backend as ...
26.264249
101
0.73841
2b2ef7ec78748919a330129dff6235a21730885c
5,339
py
Python
src/evaluate_bias_in_nlg/qualitative_eval.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/evaluate_bias_in_nlg/qualitative_eval.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/evaluate_bias_in_nlg/qualitative_eval.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os import json from pprint import pprint import hydra.utils import src.constants as constants import src.bias_lexica as bias_lexica from src.evaluate_bias_in_nlg.bias_eval_helpers import ( has_context, single_file_to_dict, mult_files_to_dict, ) bias_lexica = [ bias_lexica.sexualization, ...
38.135714
94
0.61416
9953c48df36791130e1c600f90ff8078dec3ef34
609
py
Python
chillow/service/ai/__init__.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
chillow/service/ai/__init__.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
chillow/service/ai/__init__.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
from chillow.service.ai.not_killing_itself_ai import NotKillingItselfAI, AIOptions from chillow.service.ai.pathfinding_ai import PathfindingAI from chillow.service.ai.pathfinding_search_tree_ai import PathfindingSearchTreeAI from chillow.service.ai.random_ai import RandomAI, RandomWaitingAI from chillow.service.ai.sear...
60.9
101
0.845649
510bccef6c920e412b8b8ee45a862bc2db9729d7
145
py
Python
python/python_backup/PRAC_PYTHON/yi.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/yi.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/yi.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
for i in range(1,7,1): for j in range(1,i+1,1): print j, for j in range(i-2,0,-1): print j, print""
24.166667
32
0.42069
5ad7e711c0df239eb355e0f51a719188e019dd32
9,611
py
Python
FeatureEngineering/extractGlyphes.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
6
2017-04-12T14:05:19.000Z
2021-01-29T11:23:50.000Z
FeatureEngineering/extractGlyphes.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
FeatureEngineering/extractGlyphes.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
import cv2 #import os.path #import os import numpy as np import math def extract_glyphs(image): # Save copy of original image originalImage = np.copy(image) # To graryscale and binarisize imgray = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY) # Contour dtection works better with white letters on black b...
37.838583
140
0.640308
850e073670e08b26e6770cedf5bd791ee2f7f009
94
py
Python
apps/login/apps.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
apps/login/apps.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
4
2020-09-21T01:32:14.000Z
2020-09-21T01:32:47.000Z
apps/login/apps.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ActivesConfig(AppConfig): name = 'actives'
15.666667
34
0.712766
cfef6f9304feef73d91ef507eb6f1a7edd9e9d4d
1,932
py
Python
python_experiments/paper_figures/legacy/experimental_config.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/legacy/experimental_config.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/legacy/experimental_config.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
datasets = [ "ca-GrQc", "ca-HepTh", "p2p-Gnutella06", "wiki-Vote", "email-Enron", "email-EuAll", "web-NotreDame", "web-Stanford", "web-BerkStan", "web-Google", "cit-Patents", "soc-LiveJournal1", ] size_g = { "ca-GrQc": (5242, 14496), "p2p-Gnutella06": (8717, 31525...
26.108108
91
0.594203
7a4b6d01d652646096b7ddfdd54798ab3af48055
5,400
py
Python
Fortgeschrittenenpraktikum/Protokolle/V18_Germaniumdetektor/Python/unbekannt1.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2019-03-07T08:55:36.000Z
2019-04-22T18:13:03.000Z
Fortgeschrittenenpraktikum/Protokolle/V18_Germaniumdetektor/Python/unbekannt1.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
null
null
null
Fortgeschrittenenpraktikum/Protokolle/V18_Germaniumdetektor/Python/unbekannt1.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2017-10-27T13:26:43.000Z
2018-01-13T09:12:24.000Z
import numpy as np import matplotlib.pyplot as plt import uncertainties from scipy.signal import find_peaks from scipy.optimize import curve_fit import scipy.constants as sc import scipy.integrate as integrate from uncertainties import ufloat from uncertainties import unumpy as unp from uncertainties.unumpy import nomi...
39.416058
143
0.703519
a46af0a22eb267cd4c96e08052b4e2ba8c0fcd9a
1,796
py
Python
src/onegov/town6/views/form_registration_window.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/form_registration_window.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/form_registration_window.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Private from onegov.form import FormDefinition from onegov.form import FormRegistrationWindow from onegov.org.forms.form_registration import FormRegistrationMessageForm from onegov.org.views.form_registration_window import \ handle_new_registration_form, view_registration_window, \ ...
33.259259
74
0.789532
745e40e5369126fc64c461635830285f5dbf2665
1,575
py
Python
data_preprocessing/train_test_split.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
1
2020-06-04T13:20:45.000Z
2020-06-04T13:20:45.000Z
data_preprocessing/train_test_split.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
6
2020-06-03T18:45:11.000Z
2022-02-10T01:51:03.000Z
data_preprocessing/train_test_split.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
null
null
null
""" Created by Florian Fricke. """ import pickle from sklearn.model_selection import train_test_split from utilities.utilities import save_data class TrainTestSplit: def __init__(self, save_data_path, preprocess_typ, **kwargs): self.X = pickle.load(open("{}X_clean_data_{}.pickle".format(save_data_path, pr...
45
107
0.580317
7464bff9cf7b4a4a4386c522253d6f64b72cb8e4
413
py
Python
Implementierung/ResearchEnvironment/authentification/urls.py
Sashks/PSE
ae2d8133a85563c33583f15b9ba76a3a2bf0c762
[ "MIT" ]
null
null
null
Implementierung/ResearchEnvironment/authentification/urls.py
Sashks/PSE
ae2d8133a85563c33583f15b9ba76a3a2bf0c762
[ "MIT" ]
null
null
null
Implementierung/ResearchEnvironment/authentification/urls.py
Sashks/PSE
ae2d8133a85563c33583f15b9ba76a3a2bf0c762
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views from django.contrib.auth import views as auth_views app_name = 'authentification' urlpatterns = [ url(r'^register/$', views.UserFormView.as_view(), name = 'register'), url(r'^login/$', auth_views.login,{'template_name':'registration/login.html'}, name = '...
51.625
105
0.680387
24a8c255373a5fcf974295a851e3a3eb8ef3fba9
1,433
py
Python
research/nlp/atae_lstm/src/atae_for_test.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/atae_lstm/src/atae_for_test.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/atae_lstm/src/atae_for_test.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...
32.568182
78
0.64201
7002c715f1f3954868f7bcca2eca5391e46b3500
10,801
py
Python
hmtoinflux/stateSeriesHelper.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
hmtoinflux/stateSeriesHelper.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
hmtoinflux/stateSeriesHelper.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
from influxdb import SeriesHelper from hm.deviceType import DeviceType from . import InfluxClient, config class STHStateSeriesHelper(SeriesHelper): class Meta: client = InfluxClient # The series name must be a string. Add dependent fields/tags # in curly brackets. series_name = 's...
27.909561
69
0.52597
700cb6932000732b65fb26f9d586edb4fb49c1f2
1,962
py
Python
project/api/recycling_event/resources.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
project/api/recycling_event/resources.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
project/api/recycling_event/resources.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
import flask from flask_apispec import doc, marshal_with from sqlalchemy import and_ from project.api import add_api_resource from project.api.recycling_event.schemas import LegacyRecyclingEventSchema from project.api.resources import BaseResource from project.dateutils import get_today from project.models import Recy...
34.421053
98
0.627421
3b58474b040783c468bd67b79c7e3802b5524ac9
169
py
Python
src/server/app/repository/CustomException.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
6
2020-12-15T18:57:53.000Z
2022-02-06T18:54:35.000Z
src/server/app/repository/CustomException.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
186
2020-11-17T10:18:17.000Z
2022-03-02T07:19:22.000Z
src/server/app/repository/CustomException.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
1
2020-12-14T19:37:30.000Z
2020-12-14T19:37:30.000Z
class CustomException(): def __init__(self, message): self.message = message def __str__(self): print(self.message) return self.message
21.125
32
0.633136
d9250f73efc23c7532a2123d149bbfc7cd15f23c
1,312
py
Python
exercises/es/test_03_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/test_03_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/test_03_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert Doc.has_extension( "author" ), "¿Añadiste la extensión de autor en el Doc?" ext = Doc.get_extension("author") assert all( v is None for v in ext ), "¿Asignaste el valor por defecto a la extensión de autor?" assert Doc.has_extension("book"), "¿Añadiste la extens...
42.322581
100
0.650152
79674a9212a839fd181fc721f84c3b6777e467b6
6,988
py
Python
zhi/twopc.py
Rustem/ZLU
9e050bdbc317f6fbddb4eed64d9ebdec995a9add
[ "MIT" ]
1
2017-08-26T14:47:48.000Z
2017-08-26T14:47:48.000Z
zhi/twopc.py
Rustem/ZLU
9e050bdbc317f6fbddb4eed64d9ebdec995a9add
[ "MIT" ]
null
null
null
zhi/twopc.py
Rustem/ZLU
9e050bdbc317f6fbddb4eed64d9ebdec995a9add
[ "MIT" ]
null
null
null
from kazoo.retry import ( KazooRetry, RetryFailedError, ForceRetryError ) from kazoo.client import KazooClient import json import functools import logging logging.basicConfig() class TwoPCState(object): BEGIN = 'begin' PREPARE = 'prep' COMMIT = 'commit' ACK_COMMIT = 'ack_commit' ABOR...
32.055046
110
0.584717
8de9e1fecb8baa4994a86b58049bc89111627289
4,273
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_fasta.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/tests/test_fasta.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/tests/test_fasta.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import screed from screed.DBConstants import fileExtension import os from cStringIO import StringIO def test_new_record(): # test for a bug where the record dict was not reset after each # sequence load, leading to all records being identical if you # kept a handle on the returned dictionary. s = ...
31.419118
73
0.589984
ba46697807e61440a955ec35cf5126af3f7d5532
10,123
py
Python
Scripts/buildReadMes.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
40
2016-09-13T12:54:11.000Z
2021-09-05T18:45:38.000Z
Scripts/buildReadMes.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
351
2016-08-10T17:58:38.000Z
2021-09-15T12:19:48.000Z
Scripts/buildReadMes.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
32
2016-09-09T16:04:01.000Z
2021-01-21T13:27:40.000Z
#! /usr/bin/env python import yaml import glob import sys import json import dereferenceAll import re def buildStringExample(fieldName, strSchema): strExample = '' if('enum' in strSchema): strExample = strSchema['enum'] elif('format' in strSchema): if 'date' == strSchema['format']: strExample = '2018-01-01'...
32.341853
105
0.646646
ba75d5f70cf5c683a1aad5545f768d981e99d1e7
1,683
py
Python
1609-even-odd-tree/1609-even-odd-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1609-even-odd-tree/1609-even-odd-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1609-even-odd-tree/1609-even-odd-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isEvenOddTree(self, root: Optional[TreeNode]) -> bool: stack=[(root, 0)] prev_level = 0 ...
35.808511
74
0.471777
9d7f30ced3a62f77efc7a945776694522aeb3bf6
760
py
Python
toolbox/events/update-info-texts.py
ToolboxBodensee/info-display-ruum-42
178d7f208fb0932d94d96b98277a365f06a4977b
[ "BSD-3-Clause", "Unlicense" ]
1
2019-10-22T21:37:20.000Z
2019-10-22T21:37:20.000Z
toolbox/events/update-info-texts.py
ToolboxBodensee/info-display-ruum-42
178d7f208fb0932d94d96b98277a365f06a4977b
[ "BSD-3-Clause", "Unlicense" ]
8
2018-11-02T09:51:05.000Z
2019-06-18T22:37:46.000Z
toolbox/events/update-info-texts.py
ToolboxBodensee/info-display-ruum-42
178d7f208fb0932d94d96b98277a365f06a4977b
[ "BSD-3-Clause", "Unlicense" ]
4
2018-11-02T16:46:32.000Z
2019-06-10T00:15:36.000Z
import os import urllib2 filenames = os.listdir('.') for filename in filenames: if filename.endswith('.url'): print filename with open(filename) as f: try: url = f.readline() response = urllib2.urlopen(url, timeout=10) lines = re...
26.206897
61
0.365789
11ffcab6b97c3bccf08b4cdad12eb010b124cd19
179
py
Python
exercises/ja/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/ja/solution_02_10_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/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("ja_core_news_md") doc = nlp("テレビと本") token1, token2 = doc[0], doc[2] # 「テレビ」と「本」の類似度を取得 similarity = token1.similarity(token2) print(similarity)
16.272727
38
0.715084
eebbe07d2e013107317e8b984e4538c392b656fd
542
py
Python
pacman-arch/test/pacman/tests/sync022.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/sync022.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/sync022.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install a group from a sync db using --needed" lp1 = pmpkg("pkg1") lp2 = pmpkg("pkg2") lp3 = pmpkg("pkg3") sp1 = pmpkg("pkg1", "1.1-1") sp2 = pmpkg("pkg2") sp3 = pmpkg("pkg3") for p in lp1, lp2, lp3, sp1, sp2, sp3: setattr(p, "groups", ["grp"]) for p in lp1, lp2, lp3: self.addpkg2db("local", p...
20.846154
66
0.640221
011f6ea51f5fc2262e6a0b21b0a47e62ed88c57b
1,112
py
Python
source/pkgsrc/math/py-numarray/patches/patch-cfg__packages.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/math/py-numarray/patches/patch-cfg__packages.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/math/py-numarray/patches/patch-cfg__packages.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-cfg__packages.py,v 1.1 2015/01/27 05:05:30 dbj Exp $ The vecLib framework has been obsolete since at least osx 10.3 use the Accelerate framework instead --- cfg_packages.py.orig 2005-07-21 13:57:10.000000000 +0000 +++ cfg_packages.py @@ -28,13 +28,12 @@ if USE_LAPACK: lapack_link_args = [] l...
44.48
88
0.664568
11544e632df1c42fe343548cba3e544fe9e9f6eb
1,359
py
Python
Packs/CommonScripts/Scripts/ParseExcel/ParseExcel.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/ParseExcel/ParseExcel.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/ParseExcel/ParseExcel.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 import xlrd from CommonServerPython import * # noqa: F401 def parse_excel(file_entry_id): res = demisto.getFilePath(file_entry_id) file_path = res['path'] workbook = xlrd.open_workbook(file_path, on_demand=True) sheet_names = workbook.sheet_names() sh...
29.543478
85
0.621045
3aba0b6b2b8d2f2e1f889fbb20dba340f1c806c1
10,178
py
Python
biofid-Toolkit/BlockRemover.py
texttechnologylab/AbbyyViewer
83256858202f4c82d11b6d44cc9aac609038bca9
[ "Apache-2.0" ]
null
null
null
biofid-Toolkit/BlockRemover.py
texttechnologylab/AbbyyViewer
83256858202f4c82d11b6d44cc9aac609038bca9
[ "Apache-2.0" ]
6
2021-03-10T01:02:38.000Z
2022-02-26T20:55:19.000Z
biofid-Toolkit/BlockRemover.py
texttechnologylab/AbbyyViewer
83256858202f4c82d11b6d44cc9aac609038bca9
[ "Apache-2.0" ]
null
null
null
import os, glob, cv2, csv, graphviz, sys from xml.etree import ElementTree from numpy import array, load from sklearn.tree import DecisionTreeClassifier,export_graphviz from sklearn.feature_extraction.text import CountVectorizer # Tool for removing text blocks from Abbyy Finereader 8.0 output file format. # The file f...
43.127119
164
0.606897
aaf7cfa8ec93164bcb882c3ebfea662d29d46ed9
2,401
py
Python
dglynn/services/ExplorerService.py
DamienGlynn/MediaServer
3e92b11df2c03af886483163cf7fffb0d7346c6e
[ "MIT" ]
null
null
null
dglynn/services/ExplorerService.py
DamienGlynn/MediaServer
3e92b11df2c03af886483163cf7fffb0d7346c6e
[ "MIT" ]
null
null
null
dglynn/services/ExplorerService.py
DamienGlynn/MediaServer
3e92b11df2c03af886483163cf7fffb0d7346c6e
[ "MIT" ]
null
null
null
import os import mimetypes mimetypes.init() # Helper imports. from dglynn.helpers.HumanReadableBytes import HumanReadableBytes class FileInfo(object): ''' Gets and stores information about the file ''' def __init__(self, path): super(FileInfo, self).__init__() # Guess the mime type. self.mime = mimetypes.gu...
30.782051
147
0.709704
42daa90917a26dd5273ec72c5b2b9265c640f5e7
1,541
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/03_binary_search_algorithm.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/03_binary_search_algorithm.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/03_binary_search_algorithm.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 03_binary_search_algorithm.py # Project: Kapitel_07_Sequenzen_Mengen_und_Generatoren # Created Date: Tuesday 26.02.2019, 12:51 # Author: Apop85 # ----- # Last Modified: Tuesday 26.02.2019, 13:24 # ----- # Copyright (c) 2019 Apop85 # This software is published un...
45.323529
384
0.675535
28143146da353d7238d000894b5bba680f5b0818
2,179
py
Python
skill/__init__.py
Lanseuo/luftdaten-skill
4d11a80d627d86b5afcd8a9ae1d7ccac3659b35a
[ "MIT" ]
1
2019-03-25T07:18:13.000Z
2019-03-25T07:18:13.000Z
skill/__init__.py
Lanseuo/luftdaten-skill
4d11a80d627d86b5afcd8a9ae1d7ccac3659b35a
[ "MIT" ]
null
null
null
skill/__init__.py
Lanseuo/luftdaten-skill
4d11a80d627d86b5afcd8a9ae1d7ccac3659b35a
[ "MIT" ]
null
null
null
from . import db, intents from .helpers import question def on_session_started(session_started_request, session): print("on_session_started") return {} def on_session_ended(session_ended_request, session): print("on_session_ended") return {} def on_intent(request, session, context): intent_nam...
35.721311
116
0.67095
2844bdf24e7a364488970bf51a6285bdf8dffdee
908
py
Python
Chapter2_Python/Dictionaries.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter2_Python/Dictionaries.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter2_Python/Dictionaries.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
names = ["Ben", "Jan", "Peter", "Melissa"] grades = [1, 2, 1, 4] # dict {(key, value)} names_and_grades = {"Ben": 1, "Jan": 2, "Peter": 1, "Melissa": 4} print(names_and_grades) names_and_grades.update({"Pia": 3}) print(names_and_grades) names_and_grades["Julia"] = 1 print(names_and_grades) names_and_gr...
17.803922
66
0.627753
6c4d9250d2060140bc4aaefac1b3f71d03ad511c
5,380
py
Python
ZbjDjChannels/users/forms.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
ZbjDjChannels/users/forms.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
ZbjDjChannels/users/forms.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm, AuthenticationForm, PasswordChangeForm from django.core.exceptions import ValidationError from .models import User def avatar_file_size(value): limit = 2 * 1024 * 1024 if value.size > limit: raise ValidationError('头像文件太大了...
43.04
94
0.47974
dd6b6e935a1fbb7066010ee6ab89bf2516fe8c4c
4,774
py
Python
datafeed.py
fundthmcalculus/reserautomation
31fb18815885815dffbb775dd019e28f57ac9228
[ "MIT" ]
null
null
null
datafeed.py
fundthmcalculus/reserautomation
31fb18815885815dffbb775dd019e28f57ac9228
[ "MIT" ]
null
null
null
datafeed.py
fundthmcalculus/reserautomation
31fb18815885815dffbb775dd019e28f57ac9228
[ "MIT" ]
null
null
null
import logging import os from typing import Iterator, Dict, List, Union import boto3 import urllib.parse import pandas from config import ReserConfig def get_sale_items(recent_sales): return list(get_items_from_sale_lines(get_sale_lines(recent_sales))) def get_sale_lines(all_sales: List[Union[List, Dict]]) -...
37.007752
118
0.656891
c6e92fd133c59bc7016f0e101fb5674e4d90f089
1,270
py
Python
python_experiments/data_analysis/vldbj_data_parsing/reads_accuracy_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/data_analysis/vldbj_data_parsing/reads_accuracy_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/data_analysis/vldbj_data_parsing/reads_accuracy_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from data_analysis.vldbj_data_parsing.querying_time_accuracy_statistics import get_accuracy_lst, accuracy_data_set_lst import json reads_tag = 'reads-s' reads_d_tag = 'reads-d' reads_rq_tag = 'reads-rq' suffix_str = '-rand-bench.txt' accuracy_folder = '/home/yche/mnt/wangyue-clu/csproject/biggraph/ywangby/yche/git-rep...
45.357143
139
0.726772
a717a922a3a090e9da9e4eea41e18fb07948fc95
1,185
py
Python
tests/onegov/election_day/formats/election/test_roundtrips.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/formats/election/test_roundtrips.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/formats/election/test_roundtrips.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from io import BytesIO from onegov.ballot import ProporzElection from onegov.core.csv import convert_list_of_dicts_to_csv from onegov.election_day.formats import import_election_internal_proporz from tests.onegov.election_day.common import create_principal, print_errors def test_roundtrip_w...
28.902439
76
0.705485
0515849203797c67c987bc04c0ec7f7c71299260
209
py
Python
exercises/en/solution_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/en/solution_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/en/solution_01_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Import spaCy import spacy # Create the German nlp object nlp = spacy.blank("de") # Process a text (this is German for: "Kind regards!") doc = nlp("Liebe Grüße!") # Print the document text print(doc.text)
17.416667
54
0.703349
f92f945cc49c3961e963f280ee303ee96eea3dbb
21,364
py
Python
BMC_V1-main/bmc.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
BMC_V1-main/bmc.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
BMC_V1-main/bmc.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/env python3 # -*- coding: utf-8 -*- #Code by Bangsat Militan #Created 13-11-2021 #My facebook (https://www.facebook.com/PEMUDA.KALEUM) import os,sys,re,time,json,random,requests from bs4 import BeautifulSoup as parser from concurrent.futures import ThreadPoolExecutor def croot(): os.system("git pull") ...
57.740541
241
0.423376
f94db663c4d6a92e237d885872dfdee684bc9251
542
py
Python
zencad/examples/2.Operations/2.Operations/loft.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/2.Operations/2.Operations/loft.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/2.Operations/2.Operations/loft.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from zencad import * arr = [ circle(r=20, wire=True), ellipse(30, 25, wire=True).up(20), circle(r=20, wire=True).up(40), circle(r=15, wire=True).up(50), circle(r=16, wire=True).up(60), ] m0 = loft(arr) m1 = loft(arr, smooth=True, maxdegree=10, shell=True) m2 = loft(arr, sm...
20.846154
76
0.656827
f9824d29fd0e379e8c106afe063a8d3308718661
944
py
Python
IVTa/2014/AMETOVA_M_M/task_9_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/AMETOVA_M_M/task_9_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/AMETOVA_M_M/task_9_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 9. Вариант 49 # Создайте игру, в которой компьютер выбирает какое-либо слово, # а игрок должен его отгадать. Компьютер сообщает игроку, сколько # букв в слове, и дает пять попыток узнать, есть ли какая-либо буква # в слове, причем программа может отвечать только "Да" и "Нет". # Вслед за тем игрок должен п...
29.5
69
0.634534
34a523309396689bd3eebf2868320ff93e6b5071
542
py
Python
examples/11 on startup/StartupBot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
1
2020-01-16T08:40:00.000Z
2020-01-16T08:40:00.000Z
examples/11 on startup/StartupBot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
null
null
null
examples/11 on startup/StartupBot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
1
2019-10-16T08:11:51.000Z
2019-10-16T08:11:51.000Z
import asyncio from samt import Bot, Answer, Context, Mode marv = Bot() #Put here Your Own TelegramID # It can be a string or an int userID=0 @marv.answer("/start") async def start(): return Answer('greeting', Context.get('user')) @marv.on_startup async def testLoop(): while True: #Define a message...
20.074074
53
0.643911
34f8038d72c3c78cdfb26e5775442f8bfe725d37
847
py
Python
python/course/leetcode/1~27/1. Two Sum_0414.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/course/leetcode/1~27/1. Two Sum_0414.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/course/leetcode/1~27/1. Two Sum_0414.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # @Time:2020/6/13 22:21 # @Author:TimVan # @File:1. Two Sum.py # @Software:PyCharm from typing import List # 通过字典的方法,查找效率快很多,执行速度大幅缩短,共 88ms。 class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: numsLength = len(nums) # 定义一个哈希表,k是列表的值,v是列表下标 ...
22.891892
64
0.546635
32da7bd0f3a9aab2041745ba01be828fb002ffc8
1,355
py
Python
babelbox/integration/beet.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
2
2021-03-18T04:34:23.000Z
2021-03-23T17:35:07.000Z
babelbox/integration/beet.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
null
null
null
babelbox/integration/beet.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
null
null
null
from typing import Iterable, Optional from beet import Context, Language, Plugin import babelbox def beet_default(ctx: Context): """ Entry point into beet pipeline. Loads configuration and executes babelbox plugin """ config = ctx.meta.get("babelbox", {}) csv_dialect_overwrites = {} load = config....
30.111111
94
0.63321
1ff1904a9171ab6f5014287b42f4d360e4f13cef
580
py
Python
backend/python/dao/src/Post.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
1
2021-02-08T17:07:54.000Z
2021-02-08T17:07:54.000Z
backend/python/dao/src/Post.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
null
null
null
backend/python/dao/src/Post.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
1
2021-02-08T17:08:01.000Z
2021-02-08T17:08:01.000Z
from sqlalchemy import Column, Integer, String from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class Post(Base): __tablename__ = 'post' id = Column(Integer, primary_key = True, autoincrement = True) title = Column(String) description = Column(String) def serialize(self): ...
26.363636
80
0.665517
951ee4713b2524e89da469c5def529eef3285dff
1,402
py
Python
official/cv/MCNN/src/evaluate_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/MCNN/src/evaluate_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/MCNN/src/evaluate_model.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...
38.944444
116
0.598431
2f8ee30ee2bf4d25b8710423ccf496df031160ee
159
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/__main__.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/tests/__main__.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/tests/__main__.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import os import sys if __name__ == '__main__': if len(sys.argv) == 1: sys.argv.append(os.path.dirname(__file__)) import nose nose.main()
17.666667
50
0.628931
c853941f339aa615bcb56b9d456b6d961e870851
457
py
Python
jumeaux/addons/reqs2reqs/shuffle.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/addons/reqs2reqs/shuffle.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/addons/reqs2reqs/shuffle.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- import random from jumeaux.addons.reqs2reqs import Reqs2ReqsExecutor from jumeaux.domain.config.vo import Config as JumeauxConfig from jumeaux.models import Reqs2ReqsAddOnPayload class Executor(Reqs2ReqsExecutor): def __init__(self, config: dict): pass def exec(self, payload:...
26.882353
99
0.757112
c8abc56b4e0086c776b63b3e97006c078dd7369e
6,027
py
Python
lernziel_api.py
xiamaz/lernziel_api
037e40c50068e6e40932455e589b930879b39715
[ "MIT" ]
null
null
null
lernziel_api.py
xiamaz/lernziel_api
037e40c50068e6e40932455e589b930879b39715
[ "MIT" ]
null
null
null
lernziel_api.py
xiamaz/lernziel_api
037e40c50068e6e40932455e589b930879b39715
[ "MIT" ]
null
null
null
""" API for the Charite Lernzielplatform. Uses requests and lxml for scraping the website. """ import re from dataclasses import dataclass import requests from lxml import html HEADERS = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:69.0) Gecko/20100101 Firefox/69.0', 'Accept': 'text/html,...
28.429245
103
0.581052
f52b933286f2881e719cd6d6597e24f47b60e5f2
175
py
Python
app/views/login.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
app/views/login.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
app/views/login.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding=utf-8 -*- from flask import render_template from app.bpurls import authBP @authBP.route('/login/', methods=['GET']) def login(): pass
17.5
41
0.674286
7e10b66c05476b888b3fbd43cf3ddb817fe09a48
9,434
py
Python
experiments/sumo_rl/environment/env.py
june6723/sumo-rl-offset
775cddc8d168fb7c4959610a96a791d746fa0afd
[ "MIT" ]
4
2020-10-11T01:30:13.000Z
2021-04-27T16:03:41.000Z
experiments/sumo_rl/environment/env.py
june6723/sumo-rl-offset
775cddc8d168fb7c4959610a96a791d746fa0afd
[ "MIT" ]
null
null
null
experiments/sumo_rl/environment/env.py
june6723/sumo-rl-offset
775cddc8d168fb7c4959610a96a791d746fa0afd
[ "MIT" ]
null
null
null
import os import sys if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) else: sys.exit("Please declare the environment variable 'SUMO_HOME'") import traci import sumolib from gym import Env import traci.constants as tc from gym import spaces from ray....
39.974576
215
0.617554
e34d13d93a0fa8b9e123a4ca97b1ef7f5dca4988
1,971
py
Python
Beginner/03. Python/joke_machine.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
3
2021-03-16T16:44:04.000Z
2021-06-07T17:32:51.000Z
Beginner/03. Python/joke_machine.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/joke_machine.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2020-10-26T08:44:01.000Z
2020-10-26T08:44:01.000Z
jokes=["What did the pirate say when he turned 80? - Aye Matey", "Why cant you trust an Atom? -Because they make up everything!","What do computers eat for a snack? - Microchips!", "Why did the scarecrow get a promotion?- He was outstanding in his field!","What do you call a chicken who counts her eggs?- A Mathmachicke...
35.836364
736
0.587519
d0f741035d6d3c79db592ee7eb0037b328df1fff
123
py
Python
sources/stage01/helloturtle.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
sources/stage01/helloturtle.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
sources/stage01/helloturtle.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
import turtle wn = turtle.Screen() alex = turtle.Turtle() alex.forward(50) alex.left(90) alex.forward(50) wn.mainloop()
11.181818
22
0.715447
eb0a8e0ba541b992a56b91ed8225c2a7e49123d0
54
py
Python
app/common/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
73
2018-12-14T18:12:33.000Z
2022-02-23T21:39:59.000Z
app/common/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
4
2019-11-23T18:08:18.000Z
2021-08-23T09:00:15.000Z
app/common/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
33
2019-06-03T00:30:57.000Z
2022-03-10T23:54:43.000Z
""" AUTOR: Juanjo FECHA DE CREACIÓN: 17/01/2020 """
7.714286
29
0.62963
eb44edd93abe9f9ec4ba6f7c6a23b1633b3485bb
2,547
py
Python
experiment/training_of_UNet.py
liushrui/dsb
eacbe770acf32023029eb89dcc7829af89b09132
[ "MIT" ]
null
null
null
experiment/training_of_UNet.py
liushrui/dsb
eacbe770acf32023029eb89dcc7829af89b09132
[ "MIT" ]
null
null
null
experiment/training_of_UNet.py
liushrui/dsb
eacbe770acf32023029eb89dcc7829af89b09132
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import tensorflow as tf import matplotlib.pyplot as plt from keras.callbacks import CSVLogger, EarlyStopping, ModelCheckpoint, ReduceLROnPlateau, TensorBoard import _init_path from UNet import UNet from inference import inference from helper import set_gpu_usa...
38.590909
123
0.687083
de8cbeaa57b3a87cb83012603c5aececfce91037
222
py
Python
command_parser.py
NekoApocalypse/AlchemyBot-Telegram
10a8b0a7ba85ae4f7ce268bf48d4ef9c343e92df
[ "MIT" ]
null
null
null
command_parser.py
NekoApocalypse/AlchemyBot-Telegram
10a8b0a7ba85ae4f7ce268bf48d4ef9c343e92df
[ "MIT" ]
null
null
null
command_parser.py
NekoApocalypse/AlchemyBot-Telegram
10a8b0a7ba85ae4f7ce268bf48d4ef9c343e92df
[ "MIT" ]
null
null
null
import json command_list = { '卖萌': 'be_moe', '测试': 'test', '开始炼丹': 'start_training' } def parse_command(msg): if msg in command_list: return command_list[msg] else: return 'unknown'
13.875
32
0.585586
f8c6868be8efc3a795416322c7853e45ec1a67e6
8,005
py
Python
src/onegov/ballot/models/election/candidate.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ballot/models/election/candidate.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ballot/models/election/candidate.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot.models.election.candidate_result import CandidateResult from onegov.ballot.models.election.election_result import ElectionResult from onegov.ballot.models.mixins import summarized_property from onegov.core.orm import Base from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.types im...
33.776371
79
0.581636
e4f64ba3beb3d23d8c70ef24100014f1abfe8e77
7,079
py
Python
python/GyroSensor.py
thomas-trendsoft/BeerBot
9ac9bfcede3f37dc8aaa3ee09e06272a1b43a9e9
[ "MIT" ]
null
null
null
python/GyroSensor.py
thomas-trendsoft/BeerBot
9ac9bfcede3f37dc8aaa3ee09e06272a1b43a9e9
[ "MIT" ]
null
null
null
python/GyroSensor.py
thomas-trendsoft/BeerBot
9ac9bfcede3f37dc8aaa3ee09e06272a1b43a9e9
[ "MIT" ]
1
2020-12-31T01:22:19.000Z
2020-12-31T01:22:19.000Z
import smbus import math import time # first try to get a gyro driver class MPU6050: #base register USER_CTRL = 0x6a PWR_MGMT_1 = 0x6b PWR_MGMT_2 = 0x6c WHO_AM_I = 0x75 SMPRT_DIV = 0x19 # sample rate divider (0 = 8kHz -> rate = 8kHz / (val + 1)) # data register für accel ACCEL_CON...
28.893878
106
0.61633
90405f1412538e8cb0ddd98c0cc0ba397045358f
380
py
Python
tests/test_p_5_vertauschen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tests/test_p_5_vertauschen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tests/test_p_5_vertauschen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
""" Test der "tauschen()" Funktion aus p_5_vertauschen.py """ from tag_2.p_5_vertauschen import tauschen def test_tausch_mit_zahlen(): a, b = 1, 2 assert b, a == tauschen(a, b) def test_tausch_mit_strings(): a, b = 'hello', 'world' assert b, a == tauschen(a, b) def test_tausch_mit_listen(): a,...
19
53
0.618421
8451280340a515798291c206ae39498cd805cbbf
803
py
Python
Online-Judges/HackerRank/Python/Nested_Lists.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/HackerRank/Python/Nested_Lists.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/HackerRank/Python/Nested_Lists.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def insertion_sort(lst): for i in range(len(lst)): for j in range(i - 1, -1, -1): if lst[j][1] == lst[j + 1][1] and lst[j][0] > lst[j + 1][0]: lst[j], lst[j + 1] = lst[j + 1], lst[j] elif lst[j][1] > lst[j + 1][1]: lst[j], lst[j + 1] = lst[j + 1], lst[...
25.09375
72
0.417186
4b4f52edaca43c4194bf3fe88ed130f40f230d5b
337
py
Python
205-isomorphic-strings/205-isomorphic-strings.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
205-isomorphic-strings/205-isomorphic-strings.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
205-isomorphic-strings/205-isomorphic-strings.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def isIsomorphic(self, s: str, t: str) -> bool: if len(set(s))!=len(set(t)): return False di = dict() for left, right in zip(s, t): if left not in di: di[left]=right elif di[left]!=right: return False return True...
30.636364
51
0.462908
6a6654b6b65807073f2d3b202d85cf9737792429
279
py
Python
main.py
nic-fillion/SMALET
011844a2ee23383f4cbd9df4f394de086f873fc6
[ "MIT" ]
null
null
null
main.py
nic-fillion/SMALET
011844a2ee23383f4cbd9df4f394de086f873fc6
[ "MIT" ]
null
null
null
main.py
nic-fillion/SMALET
011844a2ee23383f4cbd9df4f394de086f873fc6
[ "MIT" ]
null
null
null
import logging from ib_connection.IBApi import IBApi logging.basicConfig(level=logging.DEBUG, format='%(levelname)s - %(message)s') if __name__ == '__main__': logging.info('Application bootstrap is starting...') app = IBApi() app.connect('127.0.0.1', 4001, 123)
21.461538
78
0.698925
0a97e609b94ca44395779889843c9156c364cbc6
22,858
py
Python
Packs/ServiceNow/Integrations/ServiceNow_CMDB/ServiceNow_CMDB.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ServiceNow/Integrations/ServiceNow_CMDB/ServiceNow_CMDB.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ServiceNow/Integrations/ServiceNow_CMDB/ServiceNow_CMDB.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 * '''IMPORTS''' import urllib3 import traceback from typing import Any, Dict, Tuple, List from _collections import defaultdict import ast from operator import itemgetter # Disable insecure warnings urllib3.disable_warnin...
40.172232
130
0.643888
7c2a472a07a903b3dadcfef8b4cc9a681fd17f6d
3,779
py
Python
rasa/core/training/__init__.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
37
2019-06-07T07:39:00.000Z
2022-01-27T08:32:57.000Z
rasa/core/training/__init__.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
rasa/core/training/__init__.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
65
2019-05-21T12:16:53.000Z
2022-02-23T10:54:15.000Z
from typing import Text, List, Optional, Union, TYPE_CHECKING if TYPE_CHECKING: from rasa.shared.core.domain import Domain from rasa.shared.core.trackers import DialogueStateTracker from rasa.shared.core.generator import TrackerWithCachedStates from rasa.shared.core.training_data.structures import Stor...
33.149123
83
0.688013
860a6a669e7df0a62eb46d0f1060e6f4e17ac3fc
175
py
Python
src/onegov/server/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/server/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/server/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.server.application import Application from onegov.server.core import Server from onegov.server.config import Config __all__ = ['Application', 'Server', 'Config']
29.166667
49
0.8
861b624364c3ac3026d4c7de7b47cdd5f791b836
4,226
py
Python
model/layers/coordconv.py
quanghona/SOLO_tf2
4aab0fc9115d210f08e694ec59b5f093ade8ce91
[ "MIT" ]
8
2021-03-07T10:25:21.000Z
2022-02-20T23:57:24.000Z
model/layers/coordconv.py
quanghona/SOLO_tf2
4aab0fc9115d210f08e694ec59b5f093ade8ce91
[ "MIT" ]
null
null
null
model/layers/coordconv.py
quanghona/SOLO_tf2
4aab0fc9115d210f08e694ec59b5f093ade8ce91
[ "MIT" ]
null
null
null
import tensorflow as tf """ CoordConv implementation which translatre to tensorflow version 2.x Paper and original code: https://arxiv.org/pdf/1807.03247.pdf """ ''' class AddCoords(tf.keras.layers.Layer): """Add coords to a tensor""" def __init__(self, x_dim=64, y_dim=64, with_r=False): super(AddCoor...
37.39823
114
0.635589
86dfa9bb0792b973b9b032bf724fe1b9ed024eaf
1,364
py
Python
python/interface/virtual_base_class.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/interface/virtual_base_class.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/interface/virtual_base_class.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
class PersonMeta(type): """A person metaclass""" def __isinstancecheck__(cls, instance): return cls.__subclasscheck__(type(instance)) def __subclasscheck__(cls, subclass): return ( hasattr(subclass, "name") and callable(subclass.name) and hasat...
22
65
0.59824
d4a01cebb726b76e8ff38c1625778ba6283dd15e
1,614
py
Python
pandas_zhijue.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
pandas_zhijue.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
pandas_zhijue.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
#评估和建立直觉 #一旦将数据加载到数据框中,Pandas 会非常简单、快速地对数据进行调查。 #我们现在介绍一些有效的数据集直觉评估和建立方法。可以使用之前的癌症数据。 import pandas as pd df = pd.read_csv('cancer_data.csv') df.head(6) # 返回数据框维度的元组 (569, 32) df.shape # 返回列的数据类型 df.dtypes # 显示数据框的简明摘要, # 包括每列非空值的数量 df.info() # 返回每列数据的有效描述性统计 df.describe() # 返回数据框中的前几行 # 默认返...
16.989474
55
0.723048
d4bcc9bd4c7eeba756e9fdbe3a1dd7015855f40e
2,658
py
Python
tests/test_heat_pump_hplib.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
tests/test_heat_pump_hplib.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
tests/test_heat_pump_hplib.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
from hisim import component as cp from hisim.components.heat_pump_hplib import HeatPumpHplib from hisim import loadtypes as lt from hisim.simulationparameters import SimulationParameters def test_heat_pump_hplib(): # Definitions for HeatPump init model: str = "Generic" group_id: int = 1 t_in: float = ...
32.414634
141
0.600828
be04ef24ae09c9f205d5e3df6de8d56d51006d66
677
py
Python
Hackerrank_problems/Check_LeapYear/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Check_LeapYear/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Check_LeapYear/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#Author : @Aashrut def is_leap(year): # We initialize the variable leap to False, so that if it doesn't pass all condition then it can return False. leap = False # conditions for leap year # If year is divided by 4, then it is leap year if (year%4)==0: leap=True # but if it is ...
27.08
114
0.601182
9c057f30682b15d6b8a65fe5fa6106f8f103046f
1,401
py
Python
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch3/calendars_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch3/calendars_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch3/calendars_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
# # Example file for working with Calendars # import calendar # create a plain text calendar c = calendar.TextCalendar(calendar.SUNDAY) str = c.formatmonth(2017, 1, 0, 0) print (str) # create an HTML formatted calendar hc = calendar.HTMLCalendar(calendar.SUNDAY) str = hc.formatmonth(2017, 1) print (str) # loop over...
28.591837
75
0.720914
9c61378c34681a5efe94b588ef7b7cc621359185
4,757
py
Python
research/cv/autoaugment/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/autoaugment/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/autoaugment/train.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...
33.978571
78
0.663443
130c4a96e5fd87e4bc241f54f97f05b12da57a3a
296
py
Python
HackerRank/30-Days-of-Code/Day 6: Let's Review/review.py
tareqmahmud/Competitive-Programming
ad5e53300d70280bccbd5046ca01278fb246f314
[ "MIT" ]
2
2020-11-19T19:03:28.000Z
2021-01-04T19:52:11.000Z
30-Days-of-Code/Day 6: Let's Review/review.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
30-Days-of-Code/Day 6: Let's Review/review.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
loop = int(input()) for i in range(loop): string = str(input()) for j in range(len(string)): if j % 2 == 0: print(string[j], end="") print(" ", end="") for k in range(len(string)): if k % 2 != 0: print(string[k], end="") print("")
17.411765
36
0.452703
dbe4024fd45cd41359d3a2eb2b00b26bdbeec2de
758
py
Python
rating/canonical_url.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
19
2018-04-20T11:03:41.000Z
2022-01-12T20:58:56.000Z
rating/canonical_url.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
160
2018-04-05T16:12:59.000Z
2022-03-01T13:01:27.000Z
rating/canonical_url.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
8
2018-11-05T13:07:57.000Z
2021-06-11T11:46:43.000Z
""" This looks at remaining resolvable URLs after redirects and gives score if there is only one URL left. """ from rating.abstract_rater import AbstractRater class Rater(AbstractRater): rating_type = 'boolean' default_value = False depends_on_checks = ['url_canonicalization'] max_score = 1 def ...
23.6875
64
0.610818
e02ba9f028e0c54c9d1ac79e6a7a730326160766
4,657
py
Python
x2paddle/optimizer/fusion/conv2d_add_fuser.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
559
2019-01-14T06:01:55.000Z
2022-03-31T02:52:43.000Z
x2paddle/optimizer/fusion/conv2d_add_fuser.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
353
2019-05-07T13:20:03.000Z
2022-03-31T05:30:12.000Z
x2paddle/optimizer/fusion/conv2d_add_fuser.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
241
2018-12-25T02:13:51.000Z
2022-03-27T23:21:43.000Z
# Copyright (c) 2020 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 appl...
41.954955
147
0.631093
162c99991b24b744c262c57d47d5e2b6eb4595bc
891
py
Python
tools-darkv1-master/password.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
tools-darkv1-master/password.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
tools-darkv1-master/password.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import os, sys print ("\033[1;32mSilahkan Masukkan Username & Password Anda") print ("\033[1;32matau silahkan Hubungi 089655478810 ") print ("\033[1;32mScript Ini sekarang tidak gratis ") username = 'Mantan' password = 'Sayang' def restart(): ngulang = sys.executable os.execl(ngulang, ngulang, *sys....
12.549296
69
0.646465
5d7831659fc1cc819592fd7904b906a66195346f
107,769
py
Python
torch/testing/_internal/distributed/rpc/dist_autograd_test.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
torch/testing/_internal/distributed/rpc/dist_autograd_test.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
631
2018-06-05T16:59:11.000Z
2022-03-31T16:26:57.000Z
torch/testing/_internal/distributed/rpc/dist_autograd_test.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
import sys import threading import time from enum import Enum import random import torch import torch.nn as nn from datetime import timedelta import torch.distributed as dist import torch.distributed.autograd as dist_autograd import torch.distributed.rpc as rpc import torch.testing._internal.dist_utils from torch.autog...
38.69623
110
0.598298
ab3a3950e6182a956d899b79d45d5d485c471e76
5,420
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/cs_role.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/cs_role.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/cs_role.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2016, René Moser <mail@renemoser.net> # 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', ...
25.446009
98
0.593173
db87a9389d86902293428feb6794e20243602dcf
247
py
Python
docs_src/custom_response/tutorial006c.py
jomue/fastapi
bee35f5ae1fc58e7ab125427ad4287210e99d8b3
[ "MIT" ]
53,007
2018-12-08T10:05:29.000Z
2022-03-31T23:30:02.000Z
docs_src/custom_response/tutorial006c.py
jomue/fastapi
bee35f5ae1fc58e7ab125427ad4287210e99d8b3
[ "MIT" ]
4,155
2019-01-05T05:07:49.000Z
2022-03-31T21:25:38.000Z
docs_src/custom_response/tutorial006c.py
jomue/fastapi
bee35f5ae1fc58e7ab125427ad4287210e99d8b3
[ "MIT" ]
4,092
2018-12-09T16:21:00.000Z
2022-03-31T07:59:45.000Z
from fastapi import FastAPI from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/pydantic", response_class=RedirectResponse, status_code=302) async def redirect_pydantic(): return "https://pydantic-docs.helpmanual.io/"
24.7
71
0.785425
9154eae78c9e5257c1c726177cf7d42912166b9d
793
py
Python
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/07.05-for-Loop-Over-Sequence-Type.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/07.05-for-Loop-Over-Sequence-Type.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/07.05-for-Loop-Over-Sequence-Type.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
lst = [12, 32, "shihab", "mahinur"] for i in lst: print(i, end=" ") print() for i in [12, 32, "shihab", "mahinur"]: print(i, end=" ") print("\n") tup = (12, 32, "shihab", "mahinur") for i in tup: print(i, end=" ") print() for i in (12, 32, "shihab", "mahinur"): print(i, end=" ") print("\n") st =...
13.440678
53
0.515763
37ddae5414e8eff2b7bf725b459ab01d119b3317
147
py
Python
exercises/zh/exc_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/exc_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/exc_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# 导入德语类 from spacy.lang.____ import ____ # 创建nlp对象 nlp = ____ # 处理文本 (这是德语"Kind regards!"的意思) doc = nlp("Liebe Grüße!") # 打印文本 print(____.text)
12.25
32
0.687075
37fe8667bfe8c8ef75335642dceafed8c0cb5580
1,540
py
Python
backend/setup.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
backend/setup.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
backend/setup.py
teodorvoicencu/FakeBox
f14ca83643894d9d0761294cfce511a52401de68
[ "MIT" ]
null
null
null
from setuptools import setup import distutils.cmd import subprocess from typing import List def create_command(text: str, commands: List[List[str]]): class CustomCommand(distutils.cmd.Command): user_options: List[str] = [] description = text def initialize_options(self): pas...
26.551724
107
0.533117
534ad260bfac74b5669dc93f0db35d6713f1c26e
7,836
py
Python
spider/test1/test1/pipelines.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
spider/test1/test1/pipelines.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
spider/test1/test1/pipelines.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html """ 通过textmovie文件返回的item对象被传到该文件,在该文件的process_item方法内进行数据再处理 """ import os; import re; import pymysql; # 使用redis和布隆过滤器进行电影数据去重...
34.982143
325
0.599668
f4269a826e2a04c92142188a4ebbf259987f7cd4
7,413
py
Python
paddlenlp/__init__.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
paddlenlp/__init__.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
paddlenlp/__init__.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 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...
37.821429
99
0.644678
fe438002b9d549a88fba156f965e8e612ec8c919
991
py
Python
docs/fragments/vgg_style_dropout_minimal_feature_channels.py
subodhchhabra/ai
7a2b5942e8761d436a33597e94bef8b42e2cf632
[ "MIT" ]
null
null
null
docs/fragments/vgg_style_dropout_minimal_feature_channels.py
subodhchhabra/ai
7a2b5942e8761d436a33597e94bef8b42e2cf632
[ "MIT" ]
null
null
null
docs/fragments/vgg_style_dropout_minimal_feature_channels.py
subodhchhabra/ai
7a2b5942e8761d436a33597e94bef8b42e2cf632
[ "MIT" ]
null
null
null
from keras.models import Model from keras.layers import Dense, Dropout, Flatten, Input from keras.layers import Convolution2D, MaxPooling2D # input tensor for a 3-channel 64x64 image inputs = Input(shape=(64, 64, 3)) # one block of convolutional layers x = Convolution2D(8, 3, activation='relu', padding='same')(inputs...
33.033333
66
0.696266
fe1953adc55807fe06dc05fea234db4394486e0e
734
py
Python
Packs/CommonScripts/Scripts/IPv4Blacklist/IPv4Blacklist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/IPv4Blacklist/IPv4Blacklist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/IPv4Blacklist/IPv4Blacklist.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 netaddr import IPAddress, IPNetwork def main(): ip_addresses = argToList(demisto.args()['value']) cidr_range_list = argToList(demisto.args()['cidr_ranges']) excluded_addresses = [] for ip_address in ip_addresses: found = Fa...
22.9375
62
0.658038
4376d2acd264b5a0ea483d65209748af55a3d085
514
py
Python
Books/Gonit-Korbo-Joi/chapter-07/02_median.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Books/Gonit-Korbo-Joi/chapter-07/02_median.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Books/Gonit-Korbo-Joi/chapter-07/02_median.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def median(li): li.sort() count = len(li) if count == 0: return None if count % 2 == 1: mid = count // 2 return li(mid) else: mid2 = count // 2 mid1 = mid2 - 1 return (li[mid1]+li[mid2])/2 run_robin = [95, 88, 47, 0, 10, 1, 5, 12, 0, 3] run_shomit = [...
24.47619
50
0.568093
438ba933c3a9ae36b63e3a23ee11c6de44212ff4
319
py
Python
Data Structures/DataStructures-Problems/Strings/Different Names/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Data Structures/DataStructures-Problems/Strings/Different Names/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Data Structures/DataStructures-Problems/Strings/Different Names/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
array = list(input().split()) freq = dict() for string in array: if freq.get(string) is not None: freq[string] = freq.get(string)+1 else: freq[string] = 1 if len(freq)==0: print(-1) exit() for string in freq: if freq[string] > 1: print('{0} {1}'.format(string, freq[string]))
24.538462
53
0.573668
60e59efe4e34e268d756033c54f12cb1aebc62c8
1,030
py
Python
demos/Multiscale/ThreeSided/model/parts/consumers.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/ThreeSided/model/parts/consumers.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/ThreeSided/model/parts/consumers.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
# Behaviors #these are uncontrollerd choices of users in the provider consumer def consumer_choice(params, step, history, current_state): #fiat paid by consumers #note: balance of consumption vol covered in tokens (computed later) #simple heuristic ~ the fraction of token payment is proportion to free...
35.517241
88
0.718447
c7707a54652106b5e16d0e8621ec909c7c1b35c5
696
py
Python
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/disease/disease.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/agriculture/doctype/disease/disease.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/disease/disease.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from frappe import _ class Disease(Document): def valida...
34.8
93
0.751437
c7bddef15357fa213b594cd8ef69c37916a21a6e
556
py
Python
PYTHON/Sets/mutations.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/mutations.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/mutations.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys if __name__ == '__main__': SA = int(input()) A = set(map(int, input().split())) for _ in range(int(input())): S = input().split() B = set(map(int, input().split())) if S[0] == 'intersection_update': A.intersection_update(B) eli...
26.47619
51
0.539568
401ac748f356d8d325e267500fbea8301164eca2
218
py
Python
frappe-bench/apps/erpnext/erpnext/manufacturing/doctype/operation/test_operation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/manufacturing/doctype/operation/test_operation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/manufacturing/doctype/operation/test_operation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt import frappe import unittest test_records = frappe.get_test_records('Operation') class TestOperation(unittest.TestCase): pass
19.818182
68
0.793578
90d9259f94d8fe6840c6583111079e696772d47a
1,384
py
Python
7-assets/past-student-repos/Whiteboard-Pairing-master/ClimbingStairs/model_solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
7-assets/past-student-repos/Whiteboard-Pairing-master/ClimbingStairs/model_solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
7-assets/past-student-repos/Whiteboard-Pairing-master/ClimbingStairs/model_solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
# Naive Recursive Solution # # Simple and intuitive, but has a runtime # of O(3^n) due to the three recursive calls # Successive calls also repeat a lot of work def naive_climb_stairs(n): # base case 1 if n < 0: return 0 # base case 2 elif n == 0: return 1 # move towards our base ...
30.086957
125
0.677746
293f5ac5ff9638321c6d679abb6e789706e796b6
1,694
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/38_textwid2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/38_textwid2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/38_textwid2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * root = Tk() S = Scrollbar(root) T = Text(root, height=4, width=50) S.pack(side=RIGHT, fill=Y) T.pack(side=LEFT, fill=Y) S.config(command=T.yview) T.config(yscrollcommand=S.set) quote = """ lorem ipsum doletlorem ipsum doletlorem ipsum doletlorem ipsum dolet lorem ipsum doletlorem ipsum dolet lore...
36.826087
85
0.769185
4668b0af2b8bf90bec88669361c19873b1d520d4
2,527
py
Python
tests/test_renderer.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2016-05-10T13:57:14.000Z
2016-09-29T21:01:53.000Z
tests/test_renderer.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2015-10-20T22:29:37.000Z
2022-01-18T18:20:06.000Z
tests/test_renderer.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
1
2016-11-05T04:23:05.000Z
2016-11-05T04:23:05.000Z
from unittest import TestCase from sdiff.renderer import TextRenderer, HtmlRenderer from sdiff.model import * from .fixtures import trees class TestTextRenderer(TestCase): def setUp(self): self.renderer = TextRenderer() def test_paragraph(self): actual = self.renderer.render(trees.pt()) ...
32.397436
104
0.651365
d3cfc3adcac4023cfd3b321afc80d714e640b570
2,489
py
Python
python/sbtab_sbml2sbtab.py
derHahn/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
4
2015-02-20T09:20:10.000Z
2018-02-05T10:54:10.000Z
python/sbtab_sbml2sbtab.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
80
2018-04-13T13:46:24.000Z
2022-02-16T16:01:46.000Z
python/sbtab_sbml2sbtab.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
6
2018-06-06T19:55:32.000Z
2021-09-30T15:16:40.000Z
#!/usr/bin/env python """ SBML to SBtab / ObjTables converter commandline wrapper =================================== See specification for further information. """ try: from . import SBtab from . import misc from . import sbml2sbtab except: import SBtab import misc import sbml2sbtab import li...
28.94186
132
0.594215
313e11bdaff68e0a233325ab0bf110255071e5b4
17,629
py
Python
Packs/FortiSandbox/Integrations/FortiSandbox/FortiSandbox.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FortiSandbox/Integrations/FortiSandbox/FortiSandbox.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FortiSandbox/Integrations/FortiSandbox/FortiSandbox.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 """IMPORTS""" import base64 import hashlib import json import os import shutil import requests # Disable insecure warnings requests.packages.urllib3.disable_warnings() """HELPER FUNCTIONS""" def _handle_post(post_url, data...
34.098646
117
0.544047
81f3545806eef5722c3215f47e05720429a35af3
4,937
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/pygr_api.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/pygr_api.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/pygr_api.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 """ A simple wrapper implementing a pygr-compatible SequenceDB based on screed. There are two implementions: - ScreedSequenceDB - ScreedSequenceDB_ByIndex ScreedSequenceDB uses the sequence name as the sequence ID, which mimics the behavior of pygr's SequenceFil...
30.103659
79
0.676322
48b621125f715de25be1eea7613f7e3566600965
5,861
py
Python
src/onegov/fsi/layouts/notification.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/layouts/notification.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/layouts/notification.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from collections import namedtuple from cached_property import cached_property from onegov.core.elements import Link from onegov.fsi.collections.course_event import CourseEventCollection from onegov.fsi.collections.notification_template import \ CourseNotificationTemplateCollection from onegov.fsi.layout import D...
29.751269
73
0.631462
8299185a132318ae6b977c3b60cfbaa89695e508
1,821
py
Python
project/services/reference.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/services/reference.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/services/reference.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from sqlalchemy import and_ from sqlalchemy.orm import load_only from project import db from project.models import ( AdminUnitRelation, Event, EventReference, EventReferenceRequest, EventReferenceRequestReviewStatus, ) def create_event_reference_for_request(request): result = EventReference.q...
27.590909
88
0.715541