hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
b765d8a9e197945a8d8e649b5d2aab25a4ba41c1
1,548
py
Python
posthog/apps.py
adamb70/posthog
54ae8f0e70092f86b4aefbd93b56680dbd28b1c5
[ "MIT" ]
null
null
null
posthog/apps.py
adamb70/posthog
54ae8f0e70092f86b4aefbd93b56680dbd28b1c5
[ "MIT" ]
null
null
null
posthog/apps.py
adamb70/posthog
54ae8f0e70092f86b4aefbd93b56680dbd28b1c5
[ "MIT" ]
null
null
null
import os import sys import posthoganalytics from django.apps import AppConfig from django.conf import settings from posthog.utils import get_git_branch, get_git_commit, get_machine_id from posthog.version import VERSION
34.4
111
0.628553
b765edd3d7064dd1a82224294d673c2cee6bca1a
836
py
Python
src/task_timer.py
dlb-rl/pulse-rl
ebe78d2286b2199d18b86941fbc9990e0d5c354a
[ "MIT" ]
4
2021-12-06T09:19:14.000Z
2022-01-31T13:58:06.000Z
src/task_timer.py
dlb-rl/pulse-rl
ebe78d2286b2199d18b86941fbc9990e0d5c354a
[ "MIT" ]
null
null
null
src/task_timer.py
dlb-rl/pulse-rl
ebe78d2286b2199d18b86941fbc9990e0d5c354a
[ "MIT" ]
null
null
null
import os import json import time from datetime import timedelta
26.967742
85
0.574163
b7660ef0961ba8b4931477e766e7019f01819220
8,718
py
Python
tasks-deploy/terminal/check.py
chankruze/qctf-school-2018
1e732cf264ee0a94bc2fc1fd8cf3a20660d57605
[ "MIT" ]
null
null
null
tasks-deploy/terminal/check.py
chankruze/qctf-school-2018
1e732cf264ee0a94bc2fc1fd8cf3a20660d57605
[ "MIT" ]
null
null
null
tasks-deploy/terminal/check.py
chankruze/qctf-school-2018
1e732cf264ee0a94bc2fc1fd8cf3a20660d57605
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 flags = ['QCTF{2a5576bc51a5c3feb82c96fe80d3a520}', 'QCTF{eb2ddbf0e318812ede843e8ecec6144f}', 'QCTF{5cdf65c6069a6b815352c3f1b4d09a56}', 'QCTF{69d7b7deb23746b8bd18b22f3eb92b50}', 'QCTF{44e37938c0bc05393b5b33a70c5a70db}', 'QCTF{3b37a953391e38ce0b8e168e9eaa6ec5}', 'QCTF{ee2848cb73236007d36cb5ae75c4...
670.615385
8,408
0.848704
b76732831186e479ef5311c8854a1d2a5b3efda3
18,186
py
Python
bioshareX/api/views.py
amschaal/bioshare
7ac5da6874f70605ded8757c46fd9629d2d3d18b
[ "MIT" ]
7
2015-12-10T23:23:53.000Z
2018-08-22T11:00:28.000Z
bioshareX/api/views.py
amschaal/bioshare
7ac5da6874f70605ded8757c46fd9629d2d3d18b
[ "MIT" ]
61
2015-12-11T01:26:26.000Z
2021-10-05T00:25:20.000Z
bioshareX/api/views.py
amschaal/bioshare
7ac5da6874f70605ded8757c46fd9629d2d3d18b
[ "MIT" ]
2
2019-05-31T16:33:37.000Z
2021-05-03T20:51:25.000Z
# Create your views here. from django.core.urlresolvers import reverse from django.http.response import JsonResponse, HttpResponse from settings.settings import AUTHORIZED_KEYS_FILE, SITE_URL from bioshareX.models import Share, SSHKey, MetaData, Tag from bioshareX.forms import MetaDataForm, json_form_validate from guar...
47.11399
298
0.651875
b769a2ddbb714e86c922fd616f0acb57b564206d
5,192
py
Python
db_query.py
UiOHive/FinseDashboard
14184fbc425e87a4b9a13b3a9b31159b181cf357
[ "MIT" ]
null
null
null
db_query.py
UiOHive/FinseDashboard
14184fbc425e87a4b9a13b3a9b31159b181cf357
[ "MIT" ]
null
null
null
db_query.py
UiOHive/FinseDashboard
14184fbc425e87a4b9a13b3a9b31159b181cf357
[ "MIT" ]
null
null
null
import datetime import os, sys import pprint import requests from pandas.io.json import json_normalize import pandas as pd URL = 'https://wsn.latice.eu/api/query/v2/' #URL = 'http://localhost:8000/wsn/api/query/v2/' #TOKEN = os.getenv('WSN_TOKEN') TOKEN = os.getenv('WSN_TOKEN') path = os.getcwd() if __name__ == '__...
28.217391
125
0.573575
b76bc1e49faa136f8b812dcedd6dc878d0d8aa05
4,716
py
Python
src/olympia/reviews/tests/test_models.py
leplatrem/addons-server
8b5ebda6f33194aa9fce12c0453574e7f850e6ad
[ "BSD-3-Clause" ]
null
null
null
src/olympia/reviews/tests/test_models.py
leplatrem/addons-server
8b5ebda6f33194aa9fce12c0453574e7f850e6ad
[ "BSD-3-Clause" ]
null
null
null
src/olympia/reviews/tests/test_models.py
leplatrem/addons-server
8b5ebda6f33194aa9fce12c0453574e7f850e6ad
[ "BSD-3-Clause" ]
null
null
null
from django.utils import translation from olympia import amo from olympia.amo.tests import TestCase, ESTestCase from olympia.addons.models import Addon from olympia.reviews import tasks from olympia.reviews.models import ( check_spam, GroupedRating, Review, ReviewFlag, Spam) from olympia.users.models import UserPr...
31.44
78
0.636556
b76c4833b7dafb63e3cda3a938dba6519b8c5061
1,544
py
Python
snpy/spline2/__init__.py
emirkmo/snpy
2a0153c84477ba8a30310d7dbca3d5a8f24de3c6
[ "MIT" ]
6
2019-01-14T19:40:45.000Z
2021-06-05T12:19:39.000Z
snpy/spline2/__init__.py
emirkmo/snpy
2a0153c84477ba8a30310d7dbca3d5a8f24de3c6
[ "MIT" ]
3
2017-04-25T20:06:22.000Z
2021-06-09T20:46:41.000Z
snpy/spline2/__init__.py
emirkmo/snpy
2a0153c84477ba8a30310d7dbca3d5a8f24de3c6
[ "MIT" ]
8
2017-04-25T19:57:57.000Z
2021-11-12T11:54:19.000Z
''' Spline2.py: wrapper for B. Thijsse et al.'s hyper-spline routines. Yet another spline interpolation routine. The problem: given a set of experimental data with noise, find the spline with the optimal number of knots. Solution : They use the usual kind of routines to determine least-squares splines ...
49.806452
74
0.687824
b76e06eb55845d82a11e8d62864a8001b125af43
703
py
Python
halo_app/infra/cache.py
halo-framework/halo-app
98e057b2f433d97d903589ac75a6c2544174bac8
[ "MIT" ]
null
null
null
halo_app/infra/cache.py
halo-framework/halo-app
98e057b2f433d97d903589ac75a6c2544174bac8
[ "MIT" ]
null
null
null
halo_app/infra/cache.py
halo-framework/halo-app
98e057b2f433d97d903589ac75a6c2544174bac8
[ "MIT" ]
null
null
null
from __future__ import annotations import elasticache_auto_discovery from pymemcache.client.hash import HashClient # elasticache settings elasticache_config_endpoint = "your-elasticache-cluster-endpoint:port" nodes = elasticache_auto_discovery.discover(elasticache_config_endpoint) nodes = map(lambda x: (x[1], int(x[2...
25.107143
72
0.752489
b76e3c3a78b500e4bd43645ac8426138d20f7491
659
py
Python
uniclass_to_nf_ea_com_source/b_code/migrators/uniclass_raw_to_domain/evolve/evolve_stage_4/domain_table_data_processor/parent_code_column_adder.py
boro-alpha/uniclass_to_nf_ea_com
753e97467ce53c25bc86341b915489c2eeeb3f49
[ "MIT" ]
2
2021-08-09T14:40:04.000Z
2022-03-13T22:22:19.000Z
uniclass_to_nf_ea_com_source/b_code/migrators/uniclass_raw_to_domain/evolve/evolve_stage_4/domain_table_data_processor/parent_code_column_adder.py
boro-alpha/uniclass_to_nf_ea_com
753e97467ce53c25bc86341b915489c2eeeb3f49
[ "MIT" ]
null
null
null
uniclass_to_nf_ea_com_source/b_code/migrators/uniclass_raw_to_domain/evolve/evolve_stage_4/domain_table_data_processor/parent_code_column_adder.py
boro-alpha/uniclass_to_nf_ea_com
753e97467ce53c25bc86341b915489c2eeeb3f49
[ "MIT" ]
null
null
null
import numpy as np from uniclass_to_nf_ea_com_source.b_code.configurations.common_constants.uniclass_bclearer_constants import PARENT_CODE_COLUMN_NAME, \ UNICLASS2015_OBJECT_TABLE_NAME
27.458333
134
0.752656
b771162a3330c2472592fd5f42c757bebf6eb7a4
12,046
py
Python
ext/ANTsPyNet/antspynet/utilities/mixture_density_utilities.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
2
2021-11-16T10:00:33.000Z
2021-12-13T02:57:40.000Z
ext/ANTsPyNet/antspynet/utilities/mixture_density_utilities.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
null
null
null
ext/ANTsPyNet/antspynet/utilities/mixture_density_utilities.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
1
2021-12-13T02:57:27.000Z
2021-12-13T02:57:27.000Z
import keras.backend as K from keras.engine import Layer, InputSpec from keras.layers import Concatenate from keras import initializers import numpy as np import tensorflow as tf import tensorflow_probability as tfp def get_mixture_density_loss_function(output_dimension, number_of_mixtures): """ Returns a l...
30.651399
94
0.628341
b7712de7485aecf34c54bcaa9134a8c65cfc7aa6
1,481
py
Python
test.py
pnawalramka/cowin
f8ce6286d38fc0616a385ac0a971c8947f71348c
[ "MIT" ]
null
null
null
test.py
pnawalramka/cowin
f8ce6286d38fc0616a385ac0a971c8947f71348c
[ "MIT" ]
null
null
null
test.py
pnawalramka/cowin
f8ce6286d38fc0616a385ac0a971c8947f71348c
[ "MIT" ]
null
null
null
import json from unittest import mock, TestCase import check_availability json_data = \ """ { "centers": [ { "center_id": 1234, "name": "District General Hostpital", "name_l": "", "address": "45 M G Road", "address_l": "", "state_name": "Maharashtra", "state_name_l": ""...
21.779412
63
0.532073
b771d6a65389f019399e4105e7ca9559208f9b9c
271
py
Python
pycon_project/apps/proposals/admin.py
mitsuhiko/pycon
73688a82080539a1c0d575cf3248f55fefb6b9ba
[ "BSD-3-Clause" ]
1
2017-09-04T08:19:08.000Z
2017-09-04T08:19:08.000Z
pycon_project/apps/proposals/admin.py
mitsuhiko/pycon
73688a82080539a1c0d575cf3248f55fefb6b9ba
[ "BSD-3-Clause" ]
null
null
null
pycon_project/apps/proposals/admin.py
mitsuhiko/pycon
73688a82080539a1c0d575cf3248f55fefb6b9ba
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from proposals.models import Proposal, ProposalSessionType admin.site.register(ProposalSessionType) admin.site.register(Proposal, list_display = ["title", "session_type", "audience_level", "cancelled", "extreme_pycon", "invited"] )
30.111111
103
0.785978
b7720c668afa28b45e212a7ec9a950d7f27725bb
12,805
py
Python
cemc/mcmc/cov_reaction_crd.py
davidkleiven/WangLandau
0b253dd98033c53560fe95c76f5e38257834bdf6
[ "MIT" ]
2
2022-02-10T00:38:53.000Z
2022-03-17T22:08:40.000Z
cemc/mcmc/cov_reaction_crd.py
davidkleiven/CEMC
0b253dd98033c53560fe95c76f5e38257834bdf6
[ "MIT" ]
30
2018-05-21T14:52:00.000Z
2021-02-24T07:45:09.000Z
cemc/mcmc/cov_reaction_crd.py
davidkleiven/WangLandau
0b253dd98033c53560fe95c76f5e38257834bdf6
[ "MIT" ]
3
2018-10-09T14:03:32.000Z
2022-02-09T05:36:05.000Z
import sys from cemc.mcmc import ReactionCrdInitializer, ReactionCrdRangeConstraint import numpy as np from itertools import product import time from numpy.linalg import inv def log(self, msg): print(msg) def set(self, atoms, value): """Create an atoms object with the correct reaction coord...
38.338323
109
0.617415
b77285d78a57f47f11411ca9d0f97da9f2e1f31c
3,810
py
Python
mysql/main.py
migachevalexey/BigQuery-integrations
d44546fbd3ff116e35ef90800ade2399e7266d9e
[ "MIT" ]
null
null
null
mysql/main.py
migachevalexey/BigQuery-integrations
d44546fbd3ff116e35ef90800ade2399e7266d9e
[ "MIT" ]
null
null
null
mysql/main.py
migachevalexey/BigQuery-integrations
d44546fbd3ff116e35ef90800ade2399e7266d9e
[ "MIT" ]
null
null
null
from google.cloud import bigquery from mysql.connector import connect import os # writeable part of the filesystem for Cloud Functions instance gc_write_dir = "/tmp" def get_file_mysql(mysql_configuration): """ Querying data using Connector/Python via *host* MySQL server. The function return the f...
39.6875
193
0.664829
b7728a4f2303e9918fa06fb3ec419829f1f73d23
2,413
py
Python
arthur.carvalho/snakepro/game.py
LUDUSLab/stem-games
347afa8b1511d76f8070fa69f27a49b57e551376
[ "MIT" ]
2
2021-01-24T01:04:34.000Z
2021-05-06T16:25:53.000Z
arthur.carvalho/snakepro/game.py
LUDUSLab/stem-games
347afa8b1511d76f8070fa69f27a49b57e551376
[ "MIT" ]
null
null
null
arthur.carvalho/snakepro/game.py
LUDUSLab/stem-games
347afa8b1511d76f8070fa69f27a49b57e551376
[ "MIT" ]
3
2021-01-26T21:35:43.000Z
2021-05-06T16:06:47.000Z
from config import * from fruit import * from snakebody import * from wall import * # score score_font = pygame.font.Font('assets/PressStart2P.ttf', 30) score = 0 # game over game_ove_font = pygame.font.Font('assets/PressStart2P.ttf', 60) game_over_text = game_ove_font.render('Game Over', True, color_black, color...
25.135417
110
0.574803
b7728d4f3bcf2508223268aec9d55c9c7919b6a4
821
py
Python
preprocessing_pipeline/so/util/log.py
sotorrent/preprocessing-pipeline
d407a56760fa5ab975dc2043c89f478bd7c89e99
[ "Apache-2.0" ]
null
null
null
preprocessing_pipeline/so/util/log.py
sotorrent/preprocessing-pipeline
d407a56760fa5ab975dc2043c89f478bd7c89e99
[ "Apache-2.0" ]
null
null
null
preprocessing_pipeline/so/util/log.py
sotorrent/preprocessing-pipeline
d407a56760fa5ab975dc2043c89f478bd7c89e99
[ "Apache-2.0" ]
1
2021-09-22T16:07:18.000Z
2021-09-22T16:07:18.000Z
import logging from preprocessing_pipeline.so.util.config import LOG_LEVEL def initialize_logger(logger_name): """ Configure a named logger (see https://stackoverflow.com/a/43794480). """ # create logger for module module_logger = logging.getLogger(logger_name) # set lowest log level the log...
30.407407
96
0.742996
b7734741f7d6376de18287d5b5965809361df47f
995
py
Python
utilityFunction/CommandFunc.py
The-Fragment/FragmentFembot
bca0027b423753eb162590e8fd440a2c1e65d133
[ "MIT" ]
null
null
null
utilityFunction/CommandFunc.py
The-Fragment/FragmentFembot
bca0027b423753eb162590e8fd440a2c1e65d133
[ "MIT" ]
3
2021-03-23T04:58:47.000Z
2021-04-02T02:40:54.000Z
utilityFunction/CommandFunc.py
The-Fragment/FragmentFembot
bca0027b423753eb162590e8fd440a2c1e65d133
[ "MIT" ]
null
null
null
import random # Ex. takes in 2d20 and outputs the string Rolling 2 d20 # Ex. takes in 2d20 and outputs resultString = 11, 19 results = 30 numDice = 2
27.638889
78
0.582915
b773ef3748302d9fb0e80bd06beb0fda6a677835
12,339
py
Python
src/reviews/tests/test_forms.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
8
2016-01-29T11:53:40.000Z
2020-03-02T22:42:02.000Z
src/reviews/tests/test_forms.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
289
2015-03-23T07:42:52.000Z
2022-03-11T23:26:10.000Z
src/reviews/tests/test_forms.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
7
2015-12-08T09:03:20.000Z
2020-05-11T15:36:51.000Z
# -*- coding: utf-8 -*- import datetime from django.test import TestCase from django.contrib.contenttypes.models import ContentType from accounts.factories import UserFactory from categories.factories import CategoryFactory from documents.factories import DocumentFactory from default_documents.models import Contrac...
34.275
86
0.630359
b77448adc21f21e754acd95d28d79c117e90042e
2,814
py
Python
WWW/pycopia/WWW/HTML5simple.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
89
2015-03-26T11:25:20.000Z
2022-01-12T06:25:14.000Z
WWW/pycopia/WWW/HTML5simple.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
1
2015-07-05T03:27:43.000Z
2015-07-11T06:21:20.000Z
WWW/pycopia/WWW/HTML5simple.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
30
2015-04-30T01:35:54.000Z
2022-01-12T06:19:49.000Z
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab # 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 ...
35.620253
90
0.678749
b77490b49e8e303cfb2f69ab8e30192b9d37bd8f
2,077
py
Python
zairachem/reports/report.py
ersilia-os/ersilia-automl-chem
fabb1f05d17cff11ec0e084495eed4c0152f2f63
[ "MIT" ]
null
null
null
zairachem/reports/report.py
ersilia-os/ersilia-automl-chem
fabb1f05d17cff11ec0e084495eed4c0152f2f63
[ "MIT" ]
null
null
null
zairachem/reports/report.py
ersilia-os/ersilia-automl-chem
fabb1f05d17cff11ec0e084495eed4c0152f2f63
[ "MIT" ]
null
null
null
from .plots import ( ActivesInactivesPlot, ConfusionPlot, RocCurvePlot, ProjectionPlot, RegressionPlotRaw, HistogramPlotRaw, RegressionPlotTransf, HistogramPlotTransf, Transformation, IndividualEstimatorsAurocPlot, InidvidualEstimatorsR2Plot, ) from .. import ZairaBase from ...
28.847222
69
0.692826
b777765b36345a7cbdc249bcc3d7922fbe5e7398
2,198
py
Python
tests/backend/configobj.py
edyan/python-anyconfig
d237909a6e4848737539b80951b710238c72052f
[ "MIT" ]
null
null
null
tests/backend/configobj.py
edyan/python-anyconfig
d237909a6e4848737539b80951b710238c72052f
[ "MIT" ]
null
null
null
tests/backend/configobj.py
edyan/python-anyconfig
d237909a6e4848737539b80951b710238c72052f
[ "MIT" ]
null
null
null
# # Copyright (C) 2013 - 2017 Satoru SATOH <ssato @ redhat.com> # License: MIT # # pylint: disable=missing-docstring,invalid-name,too-few-public-methods # pylint: disable=ungrouped-imports from __future__ import absolute_import import anyconfig.backend.configobj as TT import tests.backend.common as TBC from anyconfig...
27.135802
76
0.589172
b777b683adb530c1229387728fa21c1239e09fa6
23
py
Python
backend/lorre/__init__.py
nhurman/Lorre
9a19d00809bd3850d288c9ef1166da016d29b819
[ "MIT" ]
null
null
null
backend/lorre/__init__.py
nhurman/Lorre
9a19d00809bd3850d288c9ef1166da016d29b819
[ "MIT" ]
null
null
null
backend/lorre/__init__.py
nhurman/Lorre
9a19d00809bd3850d288c9ef1166da016d29b819
[ "MIT" ]
null
null
null
__author__ = 'nhurman'
11.5
22
0.73913
b778baead541bab3544aa4b5bfec40bbfb0e7118
1,794
py
Python
tests/test_spider.py
aezhov/sw_downloader
325f6fe98579dda4f98613e4513fc46c7bd962c7
[ "MIT" ]
1
2020-01-23T06:56:34.000Z
2020-01-23T06:56:34.000Z
tests/test_spider.py
aezhov/sw_downloader
325f6fe98579dda4f98613e4513fc46c7bd962c7
[ "MIT" ]
null
null
null
tests/test_spider.py
aezhov/sw_downloader
325f6fe98579dda4f98613e4513fc46c7bd962c7
[ "MIT" ]
2
2020-01-23T06:56:36.000Z
2020-01-24T05:34:25.000Z
import requests from scrapy.http import HtmlResponse from sw_downloader.sw_downloader.spiders.smashing_magazine \ import SmashingMagazineSpider
39.866667
70
0.628763
b778ede17d0ff72b747e93fc5f260c19e384862d
160
py
Python
1_PROGI/Exe 5.py
Julymusso/IFES
939277c375dacc7750705c5593537d80ab4cbc0e
[ "MIT" ]
null
null
null
1_PROGI/Exe 5.py
Julymusso/IFES
939277c375dacc7750705c5593537d80ab4cbc0e
[ "MIT" ]
null
null
null
1_PROGI/Exe 5.py
Julymusso/IFES
939277c375dacc7750705c5593537d80ab4cbc0e
[ "MIT" ]
null
null
null
#var #num, media, i: inteiro media=0 for i in range(1,11,1): num=int(input("Digite um nmero: ")) media = media+num media=media/i print (media)
17.777778
40
0.61875
b7794cab91544e360a3b3517961177ee512565ea
4,289
py
Python
rio/tasks.py
soasme/rio
e6b89634db8d3ad75ac7f7b25ddec5b19d4f66e2
[ "MIT" ]
null
null
null
rio/tasks.py
soasme/rio
e6b89634db8d3ad75ac7f7b25ddec5b19d4f66e2
[ "MIT" ]
14
2016-04-14T04:18:41.000Z
2016-05-12T03:46:37.000Z
rio/tasks.py
soasme/rio
e6b89634db8d3ad75ac7f7b25ddec5b19d4f66e2
[ "MIT" ]
1
2016-04-06T08:54:20.000Z
2016-04-06T08:54:20.000Z
# -*- coding: utf-8 -*- """ rio.tasks ~~~~~~~~~~ Implement of rio tasks based on celery. """ from time import time from celery import chord from requests import ConnectionError from celery.utils.log import get_task_logger from rio.core import celery from rio.core import sentry from rio.utils.http import dispatch_w...
26.312883
77
0.55211
b77a241d42c4accce70a300b51e344bbc1b51e81
2,932
py
Python
security_app/createuserpoolgroup.py
jagalembu/chalice_cognito_multi_tenancy
b1a6569e716848adfd5b443239fca1ae883d4f4b
[ "MIT" ]
null
null
null
security_app/createuserpoolgroup.py
jagalembu/chalice_cognito_multi_tenancy
b1a6569e716848adfd5b443239fca1ae883d4f4b
[ "MIT" ]
null
null
null
security_app/createuserpoolgroup.py
jagalembu/chalice_cognito_multi_tenancy
b1a6569e716848adfd5b443239fca1ae883d4f4b
[ "MIT" ]
null
null
null
import os import uuid import json import argparse import boto3 USERPOOL = { 'env_var_poolid': 'APPUSERPOOLID', 'env_var_cognito_url': 'COGNITOJWKSURL', 'env_var_pool_client': 'APPCLIENTID', } if __name__ == '__main__': main()
30.863158
104
0.645634
b77c8918ea2f71cb1258eb1a156531c01f3b83b2
269
py
Python
Chapter 07/hmac-md5.py
Prakshal2607/Effective-Python-Penetration-Testing
f49fedc172a1add45edb21f66f74746dfa9c944a
[ "MIT" ]
346
2016-06-21T11:39:39.000Z
2022-01-26T03:19:29.000Z
Chapter 07/hmac-md5.py
liceaga/Effective-Python-Penetration-Testing
0b043885231662efd63402eec3c9cb413b9693e2
[ "MIT" ]
1
2016-06-21T11:44:42.000Z
2016-11-17T05:10:08.000Z
Chapter 07/hmac-md5.py
liceaga/Effective-Python-Penetration-Testing
0b043885231662efd63402eec3c9cb413b9693e2
[ "MIT" ]
210
2016-06-22T12:08:47.000Z
2022-03-16T15:54:30.000Z
import hmac hmac_md5 = hmac.new('secret-key') f = open('sample-file.txt', 'rb') try: while True: block = f.read(1024) if not block: break hmac_md5.update(block) finally: f.close() digest = hmac_md5.hexdigest() print digest
16.8125
33
0.598513
b77cac8f40a35a229bb7b41f7b04619f55a2baf4
31,686
py
Python
dingtalk/python/alibabacloud_dingtalk/alitrip_1_0/models.py
yndu13/dingtalk-sdk
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
[ "Apache-2.0" ]
null
null
null
dingtalk/python/alibabacloud_dingtalk/alitrip_1_0/models.py
yndu13/dingtalk-sdk
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
[ "Apache-2.0" ]
null
null
null
dingtalk/python/alibabacloud_dingtalk/alitrip_1_0/models.py
yndu13/dingtalk-sdk
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. from Tea.model import TeaModel from typing import Dict, List
33.636943
142
0.581424
b7800aafff5c8094f397d2e3b7573a73689dfdba
560
py
Python
src/while_exit.py
Alex9808/py101
18c585c1433e8ec6f5e4962e556a781e0c3c3cd5
[ "MIT" ]
25
2018-08-14T22:13:13.000Z
2021-07-23T04:14:06.000Z
src/while_exit.py
Alex9808/py101
18c585c1433e8ec6f5e4962e556a781e0c3c3cd5
[ "MIT" ]
1
2021-05-21T23:46:42.000Z
2021-05-21T23:46:42.000Z
src/while_exit.py
Alex9808/py101
18c585c1433e8ec6f5e4962e556a781e0c3c3cd5
[ "MIT" ]
34
2018-07-30T20:48:17.000Z
2022-02-04T19:01:27.000Z
#!/usr/bin/env python ''' Este programa se repetir 3 veces o hasta que se ingrese la palabra "despedida" y desplegar slo el nmero de intentos fallidos hasta que cualquiera de los eventos ocurentradara. Al ingresar la palabra "termina" el programa se detendr.''' entrada = "" suma = 0 while suma < ...
29.473684
67
0.630357
b78064bab0e579a79f199c581d29dfd0023d9a67
1,337
py
Python
src/kong/db.py
paulgessinger/kong
b1e2ec0c18f432fa2419b2b0dc95ee1e391cf7a5
[ "MIT" ]
3
2020-02-14T09:23:56.000Z
2020-08-24T16:19:00.000Z
src/kong/db.py
paulgessinger/kong
b1e2ec0c18f432fa2419b2b0dc95ee1e391cf7a5
[ "MIT" ]
159
2019-09-16T19:17:16.000Z
2022-03-29T19:12:37.000Z
src/kong/db.py
paulgessinger/kong
b1e2ec0c18f432fa2419b2b0dc95ee1e391cf7a5
[ "MIT" ]
null
null
null
""" Singleton database instance """ from typing import TYPE_CHECKING, Any, List, ContextManager, Tuple, Iterable if not TYPE_CHECKING: from playhouse.sqlite_ext import SqliteExtDatabase, AutoIncrementField else: # pragma: no cover database = SqliteExtDatabase(None)
20.890625
86
0.449514
b7828d9ca80482a07e76866d18c12b99668834d3
2,582
py
Python
selenium_wrapper/factory.py
dfeeley/selenium-wrapper
f69576802e7847d120a051a2902da5750b9c6203
[ "MIT" ]
1
2022-01-14T20:21:19.000Z
2022-01-14T20:21:19.000Z
selenium_wrapper/factory.py
dfeeley/selenium-wrapper
f69576802e7847d120a051a2902da5750b9c6203
[ "MIT" ]
null
null
null
selenium_wrapper/factory.py
dfeeley/selenium-wrapper
f69576802e7847d120a051a2902da5750b9c6203
[ "MIT" ]
null
null
null
import os from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.chrome.options import Options from .driver import Driver
39.723077
84
0.703718
b782afffa41a32debaad33cd5a697c066dc182f8
14,153
py
Python
networking_cisco/tests/unit/saf/agent/vdp/test_lldpad.py
arvindsharma16/networking-cisco
2f38c25742296f07ab80479c152504353da0a1d4
[ "Apache-2.0" ]
null
null
null
networking_cisco/tests/unit/saf/agent/vdp/test_lldpad.py
arvindsharma16/networking-cisco
2f38c25742296f07ab80479c152504353da0a1d4
[ "Apache-2.0" ]
null
null
null
networking_cisco/tests/unit/saf/agent/vdp/test_lldpad.py
arvindsharma16/networking-cisco
2f38c25742296f07ab80479c152504353da0a1d4
[ "Apache-2.0" ]
1
2020-08-31T22:53:38.000Z
2020-08-31T22:53:38.000Z
# Copyrigh 2015 Cisco Systems. # 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...
50.366548
79
0.466191
b7836e4485ed6acdd7e26cba6a9e54fccf62bd20
15,656
py
Python
py/prospect/viewer/cds.py
segasai/prospect
0237fad5b04f5a982ba4178320e1ca5bb5fa408f
[ "BSD-3-Clause" ]
4
2018-10-22T21:12:43.000Z
2019-07-11T20:08:12.000Z
py/prospect/viewer/cds.py
segasai/prospect
0237fad5b04f5a982ba4178320e1ca5bb5fa408f
[ "BSD-3-Clause" ]
54
2019-12-07T08:24:53.000Z
2022-02-25T10:17:59.000Z
py/prospect/viewer/cds.py
segasai/prospect
0237fad5b04f5a982ba4178320e1ca5bb5fa408f
[ "BSD-3-Clause" ]
5
2019-12-20T21:47:40.000Z
2021-01-20T23:54:43.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ =================== prospect.viewer.cds =================== Class containing all bokeh's ColumnDataSource objects needed in viewer.py """ import numpy as np from pkg_resources import resource_filename import bokeh.plotting a...
45.37971
135
0.551993
b785c28b83b4fcf0dd190a336d9e93908aec9ec2
4,865
py
Python
tests/test_32_read_registration.py
jschlyter/oidcendpoint
3192e6043f00b22809f63329893c50bedbdeafbc
[ "Apache-2.0" ]
null
null
null
tests/test_32_read_registration.py
jschlyter/oidcendpoint
3192e6043f00b22809f63329893c50bedbdeafbc
[ "Apache-2.0" ]
null
null
null
tests/test_32_read_registration.py
jschlyter/oidcendpoint
3192e6043f00b22809f63329893c50bedbdeafbc
[ "Apache-2.0" ]
null
null
null
# -*- coding: latin-1 -*- import json import pytest from oidcendpoint.endpoint_context import EndpointContext from oidcendpoint.oidc.authorization import Authorization from oidcendpoint.oidc.read_registration import RegistrationRead from oidcendpoint.oidc.registration import Registration from oidcendpoint.oidc.token i...
35.510949
87
0.567523
b786deb138ef01a31f9f64e2908250e1c39d81e6
253
py
Python
thippiproject/modelapp/admin.py
Anandgowda18/djangocomplete
c9eebe7834e404c73deca295289142a1e95ab573
[ "Apache-2.0" ]
null
null
null
thippiproject/modelapp/admin.py
Anandgowda18/djangocomplete
c9eebe7834e404c73deca295289142a1e95ab573
[ "Apache-2.0" ]
null
null
null
thippiproject/modelapp/admin.py
Anandgowda18/djangocomplete
c9eebe7834e404c73deca295289142a1e95ab573
[ "Apache-2.0" ]
1
2021-08-31T10:20:49.000Z
2021-08-31T10:20:49.000Z
from django.contrib import admin from modelapp.models import Project # Register your models here. admin.site.register(Project,Projectadmin)
31.625
73
0.786561
b786e3a7dfda3169fee4e233a099bad862bcb4ab
621
py
Python
2013.6/2015.6.py
luisalvaradoar/olimpiada.ct
aea479116036abe1c9cca3b482fed61f275ed319
[ "Apache-2.0" ]
null
null
null
2013.6/2015.6.py
luisalvaradoar/olimpiada.ct
aea479116036abe1c9cca3b482fed61f275ed319
[ "Apache-2.0" ]
null
null
null
2013.6/2015.6.py
luisalvaradoar/olimpiada.ct
aea479116036abe1c9cca3b482fed61f275ed319
[ "Apache-2.0" ]
null
null
null
main() #15 min
19.40625
58
0.516908
b78725b75722098cca7515b9adddc2dea857de17
538
py
Python
hash.py
STR-Coding-Club/blockchain-demo
fae29a52d97c7595fa1e9d99527c4b034b721b8f
[ "MIT" ]
null
null
null
hash.py
STR-Coding-Club/blockchain-demo
fae29a52d97c7595fa1e9d99527c4b034b721b8f
[ "MIT" ]
null
null
null
hash.py
STR-Coding-Club/blockchain-demo
fae29a52d97c7595fa1e9d99527c4b034b721b8f
[ "MIT" ]
null
null
null
import hashlib, json # def hash(to_hash): # h = hashlib.md5() # h.update(bytes(str(to_hash), 'utf-8')) # return h.hexdigest()
24.454545
92
0.60223
b78782c19f15096aec39ba8d508066aa4591ae37
1,008
py
Python
covid-modeling-master/generate_ma_csv.py
rdkap42/caedus-covid
f64a833bdf386708fcb9394f94026c48f8d474ee
[ "MIT" ]
10
2020-03-17T21:21:50.000Z
2020-04-30T02:30:47.000Z
covid-modeling-master/generate_ma_csv.py
rdkap42/caedus-covid
f64a833bdf386708fcb9394f94026c48f8d474ee
[ "MIT" ]
5
2020-03-17T04:39:03.000Z
2021-04-30T21:11:14.000Z
covid-modeling-master/generate_ma_csv.py
rdkap42/caedus-covid
f64a833bdf386708fcb9394f94026c48f8d474ee
[ "MIT" ]
null
null
null
import logging import time import numpy as np from eda import ma_data, tx_data from sir_fitting_us import seir_experiment, make_csv_from_tx_traj logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) logger.info("Fitting model.") # initial values taken from previous fit, used to seed MH sampler efficie...
31.5
82
0.727183
b7886dbd5b5bd5591584039afc3ce54cfdba530a
6,877
py
Python
For_Simulator/learning/plot_gmm_nd.py
a-taniguchi/CSL-BGM
64bd803289e55b76a219c02ea040325a8a5b949e
[ "MIT" ]
1
2018-09-27T12:19:05.000Z
2018-09-27T12:19:05.000Z
learning/plot_gmm_nd.py
neuronalX/CSL-BGM
2fc66611928783c9b65c675ec84d9c06e0b6cd8a
[ "MIT" ]
null
null
null
learning/plot_gmm_nd.py
neuronalX/CSL-BGM
2fc66611928783c9b65c675ec84d9c06e0b6cd8a
[ "MIT" ]
1
2018-09-27T12:19:21.000Z
2018-09-27T12:19:21.000Z
#coding:utf-8 #gaussian plot (position category) #Akira Taniguchi 2016/06/16 import itertools import numpy as np from scipy import linalg import matplotlib.pyplot as plt import matplotlib as mpl from sklearn import mixture from __init__ import * from numpy.random import multinomial,uniform,dirichlet from sci...
38.418994
757
0.574378
b789e2f11f57608cb00f55b63d916cf77099aa18
338
py
Python
condiment/tests/test_simple.py
WeilerWebServices/Kivy
54e3438156eb0c853790fd3cecc593f09123f892
[ "MIT" ]
3
2020-09-13T09:55:02.000Z
2021-01-23T11:13:59.000Z
condiment/tests/test_simple.py
WeilerWebServices/Kivy
54e3438156eb0c853790fd3cecc593f09123f892
[ "MIT" ]
2
2018-03-16T22:01:12.000Z
2020-01-13T10:33:22.000Z
condiment/tests/test_simple.py
WeilerWebServices/Kivy
54e3438156eb0c853790fd3cecc593f09123f892
[ "MIT" ]
2
2015-04-26T15:31:40.000Z
2017-09-12T12:36:14.000Z
#exclude import condiment; condiment.install() #endexclude if WITH_TIMEBOMB: timebomb = int(WITH_TIMEBOMB) print 'timebomb feature is activated, and set to', timebomb if WITH_INAPP_PURCHASE: print 'inapp purchase feature is activated' if WITH_TIMEBOMB and WITH_INAPP_PURCHASE: print 'both features hav...
24.142857
63
0.775148
b78d491f7594796538d954c219bf7266a1779707
1,096
py
Python
tests/init.py
touqir14/Emergent
0782e1304702f3c95092953ce5da1d8ed69bbe6f
[ "MIT" ]
null
null
null
tests/init.py
touqir14/Emergent
0782e1304702f3c95092953ce5da1d8ed69bbe6f
[ "MIT" ]
null
null
null
tests/init.py
touqir14/Emergent
0782e1304702f3c95092953ce5da1d8ed69bbe6f
[ "MIT" ]
null
null
null
import pathlib import os import sys from multiprocessing import resource_tracker modify_resource_tracker() add_Emergent_paths()
27.4
106
0.718978
b78f243f121a8fb7c7eb83f7fd3d5745810817b9
12,586
py
Python
data-processor/modules/wikia_handler.py
stephanietuerk/art-history-jobs
d10718ce7c8eb591cea9808945d01a2273425a58
[ "MIT" ]
null
null
null
data-processor/modules/wikia_handler.py
stephanietuerk/art-history-jobs
d10718ce7c8eb591cea9808945d01a2273425a58
[ "MIT" ]
null
null
null
data-processor/modules/wikia_handler.py
stephanietuerk/art-history-jobs
d10718ce7c8eb591cea9808945d01a2273425a58
[ "MIT" ]
null
null
null
import csv import re import unicodedata import bs4 import wikia from modules import utils from modules.config import Config
44.161404
245
0.571667
b78f91bde4f8867fdadaaee058845f1ee62f598c
3,949
py
Python
ucsmsdk/mometa/cimcvmedia/CimcvmediaExtMgmtRuleEntry.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/cimcvmedia/CimcvmediaExtMgmtRuleEntry.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/cimcvmedia/CimcvmediaExtMgmtRuleEntry.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for CimcvmediaExtMgmtRuleEntry ManagedObject.""" import sys, os from ...ucsmo import ManagedObject from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta
58.940299
248
0.66042
b78fac6287214282885abd8ffbebb076e0bdd37a
3,672
py
Python
paddlescience/pde/pde_navier_stokes.py
juneweng/PaddleScience
f30ce908b6fbec2403936007d12d9701f74fd00e
[ "Apache-2.0" ]
null
null
null
paddlescience/pde/pde_navier_stokes.py
juneweng/PaddleScience
f30ce908b6fbec2403936007d12d9701f74fd00e
[ "Apache-2.0" ]
null
null
null
paddlescience/pde/pde_navier_stokes.py
juneweng/PaddleScience
f30ce908b6fbec2403936007d12d9701f74fd00e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
40.351648
223
0.510349
b7907344916d1e840e9f663cfdac58234f01e739
327
py
Python
tests/strict/it_mod_double_fun.py
Euromance/pycopy
540cfcc52d17667a5f6b2a176427cc031029b78f
[ "MIT" ]
663
2018-12-30T00:17:59.000Z
2022-03-14T05:03:41.000Z
tests/strict/it_mod_double_fun.py
Euromance/pycopy
540cfcc52d17667a5f6b2a176427cc031029b78f
[ "MIT" ]
41
2019-06-06T08:31:19.000Z
2022-02-13T16:53:41.000Z
tests/strict/it_mod_double_fun.py
Euromance/pycopy
540cfcc52d17667a5f6b2a176427cc031029b78f
[ "MIT" ]
60
2019-06-01T04:25:00.000Z
2022-02-25T01:47:31.000Z
import mod try: mod.foo = foo except RuntimeError: print("RuntimeError1") print(mod.foo()) try: mod.foo = 1 except RuntimeError: print("RuntimeError2") print(mod.foo) try: mod.foo = 2 except RuntimeError: print("RuntimeError3") print(mod.foo)
10.21875
26
0.642202
b791735533ee827f9ea58cc60b007fcd8bb18dbd
2,295
py
Python
LungCancer.py
SpiroGanas/Lung-Cancer-Machine-Learning
4e38b3df9b560194f67ab03e9aaefad6c84216db
[ "MIT" ]
1
2019-04-28T02:25:32.000Z
2019-04-28T02:25:32.000Z
LungCancer.py
SpiroGanas/Lung-Cancer-Machine-Learning
4e38b3df9b560194f67ab03e9aaefad6c84216db
[ "MIT" ]
null
null
null
LungCancer.py
SpiroGanas/Lung-Cancer-Machine-Learning
4e38b3df9b560194f67ab03e9aaefad6c84216db
[ "MIT" ]
null
null
null
# Spiro Ganas # 9/27/17 # # Python 3 script to ######### NOTES ######################################## # 1. Each "slice" is a 512x512 image, stored in a single .dcm file. # 2. A 3-dimensional CT Scan consists of between 94 and 541 slices (according to the Stage 1 data). # 3. We need to rescale all the CT scans so...
27.650602
127
0.662309
b791ac3d3021c73d2b06aeec225eba82f7ecf599
852
py
Python
setup.py
LEGO-Robotics/aistorms
abfb6b978215507d331d9ade764310ee9d8c9448
[ "MIT" ]
1
2020-06-06T22:47:09.000Z
2020-06-06T22:47:09.000Z
setup.py
AntoniLuongPham/LEGO-Mindstorms-AI
abfb6b978215507d331d9ade764310ee9d8c9448
[ "MIT" ]
null
null
null
setup.py
AntoniLuongPham/LEGO-Mindstorms-AI
abfb6b978215507d331d9ade764310ee9d8c9448
[ "MIT" ]
1
2020-06-08T15:53:42.000Z
2020-06-08T15:53:42.000Z
import json import os from setuptools import find_packages, setup PACKAGE_NAMESPACE_NAME = 'aistorms' METADATA_FILE_NAME = 'metadata.json' REQUIREMENTS_FILE_NAME = 'requirements.txt' _metadata = \ json.load( open(os.path.join( os.path.dirname(__file__), PACKAGE_NAMESPAC...
24.342857
60
0.676056
b791e622824560b49e99db6ea638309e033920f8
3,357
py
Python
scripts/merge.py
jgonzalezdemendibil/movie_publisher
0e58cb616e6e6c2c5cac7cb5016e0874c0409b42
[ "BSD-3-Clause" ]
null
null
null
scripts/merge.py
jgonzalezdemendibil/movie_publisher
0e58cb616e6e6c2c5cac7cb5016e0874c0409b42
[ "BSD-3-Clause" ]
null
null
null
scripts/merge.py
jgonzalezdemendibil/movie_publisher
0e58cb616e6e6c2c5cac7cb5016e0874c0409b42
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copied from https://raw.githubusercontent.com/srv/srv_tools/kinetic/bag_tools/scripts/merge.py since this script is # not released for indigo. """ Copyright (c) 2015, Enrique Fernandez Perdomo Clearpath Robotics, Inc. All rights reserved. Redistribution and use in source and binary forms, with or w...
42.493671
117
0.739053
b7925483ba95f2bb530529066114343ba1164af4
1,567
py
Python
src/pyforest/auto_import.py
tnwei/pyforest
73b36298e8cbce9a861c13c01509e34f0e3397fe
[ "MIT" ]
1,002
2019-08-13T15:00:39.000Z
2022-03-29T19:14:41.000Z
src/pyforest/auto_import.py
tnwei/pyforest
73b36298e8cbce9a861c13c01509e34f0e3397fe
[ "MIT" ]
40
2019-08-13T19:17:49.000Z
2022-02-14T08:46:09.000Z
src/pyforest/auto_import.py
tnwei/pyforest
73b36298e8cbce9a861c13c01509e34f0e3397fe
[ "MIT" ]
202
2019-08-13T19:37:25.000Z
2022-03-21T20:05:27.000Z
from pathlib import Path IPYTHON_STARTUP_FOLDER = Path.home() / ".ipython" / "profile_default" / "startup" STARTUP_FILE = IPYTHON_STARTUP_FOLDER / "pyforest_autoimport.py"
31.34
137
0.699426
b7936727533c1b6e64a5988a2f89fc499bcee832
23,430
py
Python
tests/torch/pruning/test_model_pruning_analysis.py
sarthakpati/nncf
29ad62c664c1dd53b3c8c50fc001a1b36bd1e8ac
[ "Apache-2.0" ]
null
null
null
tests/torch/pruning/test_model_pruning_analysis.py
sarthakpati/nncf
29ad62c664c1dd53b3c8c50fc001a1b36bd1e8ac
[ "Apache-2.0" ]
1
2021-07-23T07:46:52.000Z
2021-07-23T07:46:52.000Z
tests/torch/pruning/test_model_pruning_analysis.py
sarthakpati/nncf
29ad62c664c1dd53b3c8c50fc001a1b36bd1e8ac
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020 Intel Corporation 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 in writin...
51.721854
119
0.660606
b7937e5f465626651bc0a037a47d5bc1cfd62cdf
261
py
Python
tests/future_division_eval.py
mayl8822/onelinerizer
bad341f261d35e56872b4c22297a44dc6d5cfab3
[ "MIT" ]
1,062
2015-11-18T01:04:33.000Z
2022-03-29T07:13:30.000Z
tests/future_division_eval.py
CoDeRgAnEsh/1line
507ef35b0006fc2998463dee92c2fdae53fe0694
[ "MIT" ]
26
2015-11-17T06:58:07.000Z
2022-01-15T18:11:16.000Z
tests/future_division_eval.py
CoDeRgAnEsh/1line
507ef35b0006fc2998463dee92c2fdae53fe0694
[ "MIT" ]
100
2015-11-17T09:01:22.000Z
2021-09-12T13:58:28.000Z
from __future__ import division print eval('1/2') exec('print 1/2') eval(compile('print 1/2', 'wat.py', 'exec')) print eval(compile('1/2', 'wat.py', 'eval')) print eval(compile('1/2', 'wat.py', 'eval', 0, 0)) print eval(compile('1/2', 'wat.py', 'eval', 0, ~0))
32.625
51
0.62069
b7939b77631def2ec27e1370419a519e33e2db7a
180
py
Python
matchms/similarity/spec2vec/__init__.py
fossabot/matchms
090db31b22829dc224e5ed78fb4901e8c14a8e92
[ "Apache-2.0" ]
null
null
null
matchms/similarity/spec2vec/__init__.py
fossabot/matchms
090db31b22829dc224e5ed78fb4901e8c14a8e92
[ "Apache-2.0" ]
null
null
null
matchms/similarity/spec2vec/__init__.py
fossabot/matchms
090db31b22829dc224e5ed78fb4901e8c14a8e92
[ "Apache-2.0" ]
null
null
null
from .Document import Document from .SpectrumDocument import SpectrumDocument from .Spec2Vec import Spec2Vec __all__ = [ "Document", "SpectrumDocument", "Spec2Vec" ]
16.363636
46
0.738889
b794d1e8ea63cc3bf3146f5e45ab36528d92826b
22,826
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_wanphy_ui_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_wanphy_ui_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_wanphy_ui_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Cisco_IOS_XR_wanphy_ui_oper This module contains a collection of YANG definitions for Cisco IOS\-XR wanphy\-ui package operational data. This module contains definitions for the following management objects\: wanphy\: WANPHY operational data Copyright (c) 2013\-2016 by Cisco Systems, Inc. All rights reserved....
30.434667
293
0.423596
b79500b1906f3f8e77f736bcb5d3e403aa5d9a7d
773
py
Python
test/unit/solver/test_lamb.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
23
2021-12-08T02:35:01.000Z
2022-03-16T02:23:19.000Z
test/unit/solver/test_lamb.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
4
2021-12-23T11:31:17.000Z
2022-02-28T01:35:31.000Z
test/unit/solver/test_lamb.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. import megengine as mge import numpy as np import pytest from megengine.autodiff import GradManager from basecls.solver.optimizer import LAMB
26.655172
67
0.633894
b7961cc47beaac8f9cce44564f475f951b32b24b
2,180
py
Python
onenote-dump/__main__.py
genericmoniker/onenote-dump
78b2ee2dcf854f6bc989d3081f42c97f245e49cc
[ "MIT" ]
39
2019-07-17T06:08:56.000Z
2022-03-22T09:48:58.000Z
onenote-dump/__main__.py
nicknickel/onenote-dump
84607f89f8c14c51796ab660dc0e741af3ccf55c
[ "MIT" ]
5
2020-07-02T02:44:38.000Z
2021-11-11T18:16:13.000Z
onenote-dump/__main__.py
nicknickel/onenote-dump
84607f89f8c14c51796ab660dc0e741af3ccf55c
[ "MIT" ]
6
2020-11-01T12:46:56.000Z
2022-01-12T22:24:50.000Z
import argparse import logging import os import pathlib import time import log import onenote_auth import onenote import pipeline logger = logging.getLogger() main()
27.25
76
0.624771
b7971aac602f7d60f9d06ecc4d523b5988cef546
10,391
py
Python
venv/lib/python3.8/site-packages/ansible_collections/community/aws/tests/unit/plugins/modules/test_data_pipeline.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
7
2021-11-16T04:05:42.000Z
2022-02-19T21:14:29.000Z
venv/lib/python3.8/site-packages/ansible_collections/community/aws/tests/unit/plugins/modules/test_data_pipeline.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
1
2022-03-12T02:25:26.000Z
2022-03-12T02:25:26.000Z
venv/lib/python3.8/site-packages/ansible_collections/community/aws/tests/unit/plugins/modules/test_data_pipeline.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
1
2022-03-01T05:43:07.000Z
2022-03-01T05:43:07.000Z
# (c) 2017 Red Hat Inc. # # This file is part of Ansible # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import collections import os import json import p...
40.909449
128
0.698008
b7977b33c0e4a7ba789fa84d50fd2df4ed4339db
3,433
py
Python
Janela/Cadastro_clientes/Clientes.py
marcosj046/Treinando-Python-Tkinter
7b88a6b6afba46e6c013b65b952723047c173901
[ "MIT" ]
null
null
null
Janela/Cadastro_clientes/Clientes.py
marcosj046/Treinando-Python-Tkinter
7b88a6b6afba46e6c013b65b952723047c173901
[ "MIT" ]
null
null
null
Janela/Cadastro_clientes/Clientes.py
marcosj046/Treinando-Python-Tkinter
7b88a6b6afba46e6c013b65b952723047c173901
[ "MIT" ]
null
null
null
import sqlite3 import tkinter as tk import pandas as pd #---------------------------------------------- #Para criao do banco de dados retira o comentrio (#) da linha 9 23 somente a primeira vez que rodar o cd, #depois, basta comentar novamente. #Criando o Banco de Dados # conexao = sqlite3.connect('Clientes.db') # #...
33.990099
171
0.669677
b79823a97f320a9bd4990bfd614e964f079da76e
14,382
py
Python
pygitbucket/client.py
SimiCode/pygitbucket
46a22fcc0292231905eb4e0e2da47f8a85743bbd
[ "MIT" ]
1
2021-07-04T19:45:05.000Z
2021-07-04T19:45:05.000Z
pygitbucket/client.py
SimiCode/pygitbucket
46a22fcc0292231905eb4e0e2da47f8a85743bbd
[ "MIT" ]
null
null
null
pygitbucket/client.py
SimiCode/pygitbucket
46a22fcc0292231905eb4e0e2da47f8a85743bbd
[ "MIT" ]
null
null
null
import math import requests from pygitbucket.exceptions import ( UnknownError, InvalidIDError, NotFoundIDError, NotAuthenticatedError, PermissionError, )
28.821643
117
0.578779
b79836d2b12f5a44dd3688e75af8cc0da3616913
3,982
py
Python
egg/zoo/basic_games/data_readers.py
renata-nerenata/EGG
b8532efc3569defabeba6851986cecb0c6640984
[ "MIT" ]
1
2021-05-26T14:23:25.000Z
2021-05-26T14:23:25.000Z
egg/zoo/basic_games/data_readers.py
renata-nerenata/EGG
b8532efc3569defabeba6851986cecb0c6640984
[ "MIT" ]
1
2019-10-31T16:21:01.000Z
2019-10-31T16:21:01.000Z
egg/zoo/basic_games/data_readers.py
renata-nerenata/EGG
b8532efc3569defabeba6851986cecb0c6640984
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from torch.utils.data import Dataset import numpy as np # These input-data-processing classes take input data from a text file an...
45.770115
106
0.678805
b798b33e304086ef9c7efe2c716e2e87dfcb993a
3,594
py
Python
viroconcom/read_write.py
adrdrew/viroconcom
3eb748ba8e3e076eddd174a0fcdfee3917aa4045
[ "MIT" ]
null
null
null
viroconcom/read_write.py
adrdrew/viroconcom
3eb748ba8e3e076eddd174a0fcdfee3917aa4045
[ "MIT" ]
1
2020-05-18T11:06:28.000Z
2020-05-18T11:06:28.000Z
viroconcom/read_write.py
adrdrew/viroconcom
3eb748ba8e3e076eddd174a0fcdfee3917aa4045
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Reads datasets, reads and writes contour coordinates. """ import numpy as np import csv def read_ecbenchmark_dataset(path='datasets/1year_dataset_A.txt'): """ Reads a 2D dataset that uses a an ASCI format with ';' as a seperator. This format...
31.526316
107
0.574012
b798e6d01b3ed050802b1fbfc6ef1f267c2dd36a
601
py
Python
check_python_install/check_numba.py
sdpython/_check_python_install
06a34e3b8559370c8c41b655ed2acc72c7f1bf34
[ "MIT" ]
null
null
null
check_python_install/check_numba.py
sdpython/_check_python_install
06a34e3b8559370c8c41b655ed2acc72c7f1bf34
[ "MIT" ]
2
2019-11-07T18:11:18.000Z
2021-01-02T11:49:38.000Z
check_python_install/check_numba.py
sdpython/_check_python_install
06a34e3b8559370c8c41b655ed2acc72c7f1bf34
[ "MIT" ]
null
null
null
""" @file @brief Test for :epkg:`cartopy`. """ import numpy import numba def check_numba(): """ Runs a sample with :epkg:`numba`. """ Y = numpy.random.rand(10).astype(numpy.double) X = numpy.random.rand(10, 2).astype(numpy.double) w = numpy.random.rand(2).astype(numpy.double) return logis...
24.04
86
0.62396
b799cded976768ac0fb3f24b3d043843412ec29f
4,056
py
Python
Round 3/fence_design.py
e-ntro-py/GoogleCodeJam-2021
c42283480fa20a853c6d31d5faf0e83c6ad0f5f7
[ "MIT" ]
30
2021-03-27T20:18:15.000Z
2022-03-19T06:18:58.000Z
Round 3/fence_design.py
e-ntro-py/GoogleCodeJam-2021
c42283480fa20a853c6d31d5faf0e83c6ad0f5f7
[ "MIT" ]
1
2021-05-24T19:14:29.000Z
2021-05-25T04:14:10.000Z
Round 3/fence_design.py
e-ntro-py/GoogleCodeJam-2021
c42283480fa20a853c6d31d5faf0e83c6ad0f5f7
[ "MIT" ]
7
2021-03-28T12:38:55.000Z
2021-09-19T15:30:39.000Z
# Copyright (c) 2021 kamyu. All rights reserved. # # Google Code Jam 2021 Round 3 - Problem C. Fence Design # https://codingcompetitions.withgoogle.com/codejam/round/0000000000436142/0000000000813bc7 # # Time: O(NlogN) on average, pass in PyPy2 but Python2 # Space: O(N) # from random import seed, randint # Compute t...
38.264151
115
0.554487
b79b05e86bdffa34c0cb47c7868d179ea550149c
50,505
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/_block.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/pygsl/_block.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/pygsl/_block.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.11 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): __block = swig_import_helper() del swig_import_...
41.161369
90
0.825542
b79b4b3441162b8ce9025428d639fcec36693cf3
42
py
Python
tests/__init__.py
chasefinch/amp-renderer
a226140d8a8a6f8c21c073e394b672cf75c8671e
[ "Apache-2.0" ]
13
2020-08-19T18:37:01.000Z
2021-12-10T17:33:14.000Z
tests/__init__.py
chasefinch/amp-renderer
a226140d8a8a6f8c21c073e394b672cf75c8671e
[ "Apache-2.0" ]
5
2020-08-24T18:31:12.000Z
2022-02-07T17:36:59.000Z
tests/__init__.py
chasefinch/amp-renderer
a226140d8a8a6f8c21c073e394b672cf75c8671e
[ "Apache-2.0" ]
null
null
null
"""Tests for the AMP Renderer project."""
21
41
0.690476
b79c02ce02e6d31db2455c7ba97e981d1dda98d5
3,564
py
Python
sudoku/sudoku.py
Ostap2003/backtracking-team-project
2a6fb2fc80dcdd286c76dbc3b546baf452098d98
[ "MIT" ]
null
null
null
sudoku/sudoku.py
Ostap2003/backtracking-team-project
2a6fb2fc80dcdd286c76dbc3b546baf452098d98
[ "MIT" ]
null
null
null
sudoku/sudoku.py
Ostap2003/backtracking-team-project
2a6fb2fc80dcdd286c76dbc3b546baf452098d98
[ "MIT" ]
null
null
null
from pprint import pprint '''The module has class Grid for solving sudoku. Grid should be given as a list of integers or a path to a file. ''' # grid = [ [3, 0, 6, 5, 0, 8, 4, 0, 0], # [5, 2, 0, 0, 0, 0, 0, 0, 0], # [0, 8, 7, 0, 0, 0, 0, 3, 1], # [0, 0, 3, 0, 1, 0, 0, 8, 0], # ...
28.741935
81
0.45679
b79f4a64c362393fd37c99b135489a7797ae3252
1,421
py
Python
device_e2e/sync/test_sync_c2d.py
dt-boringtao/azure-iot-sdk-python
35a09679bdf4d7a727391b265a8f1fbb99a30c45
[ "MIT" ]
null
null
null
device_e2e/sync/test_sync_c2d.py
dt-boringtao/azure-iot-sdk-python
35a09679bdf4d7a727391b265a8f1fbb99a30c45
[ "MIT" ]
null
null
null
device_e2e/sync/test_sync_c2d.py
dt-boringtao/azure-iot-sdk-python
35a09679bdf4d7a727391b265a8f1fbb99a30c45
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. import pytest import logging import json import threading from utils import get_random_dict logger = logging.getLogger(__name__) logger.setLevel(level=logging.INF...
30.891304
93
0.713582
b79f9124d587b0b999491249d4952350ec3b140e
6,588
py
Python
addons/mixer/blender_data/tests/test_bpy_blend_diff.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
null
null
null
addons/mixer/blender_data/tests/test_bpy_blend_diff.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
null
null
null
addons/mixer/blender_data/tests/test_bpy_blend_diff.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
null
null
null
# GPLv3 License # # Copyright (C) 2020 Ubisoft # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is dis...
41.961783
120
0.622495
b7a030be152f3c0e93089efb532b4fde2f3761dd
17,258
py
Python
dependencies/svgwrite/examples/ltattrie/tiling_part_5.py
charlesmchen/typefacet
8c6db26d0c599ece16f3704696811275120a4044
[ "Apache-2.0" ]
21
2015-01-16T05:10:02.000Z
2021-06-11T20:48:15.000Z
dependencies/svgwrite/examples/ltattrie/tiling_part_5.py
charlesmchen/typefacet
8c6db26d0c599ece16f3704696811275120a4044
[ "Apache-2.0" ]
1
2019-09-09T12:10:27.000Z
2020-05-22T10:12:14.000Z
dependencies/svgwrite/examples/ltattrie/tiling_part_5.py
charlesmchen/typefacet
8c6db26d0c599ece16f3704696811275120a4044
[ "Apache-2.0" ]
2
2015-05-03T04:51:08.000Z
2018-08-24T08:28:53.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import math, sys import svgwrite # # http://www.w3.org/TR/SVG11/struct.html#UseElement # # For more information on tesselation / tiling see http://en.wikipedia.org/wiki/Wallpaper_group # The organization of these tilings are from the interesting book # Designing Te...
51.825826
137
0.670877
b7a3ac719d785e13f7265ad9a05f4b664dd99826
3,685
py
Python
MIssions_to_Mars/scrape_mars_mission.py
pwickliff1/web-scraping-challenge
56e2b5e6905c17fce762aeb2ae1ad8cb0f48f8d6
[ "ADSL" ]
null
null
null
MIssions_to_Mars/scrape_mars_mission.py
pwickliff1/web-scraping-challenge
56e2b5e6905c17fce762aeb2ae1ad8cb0f48f8d6
[ "ADSL" ]
null
null
null
MIssions_to_Mars/scrape_mars_mission.py
pwickliff1/web-scraping-challenge
56e2b5e6905c17fce762aeb2ae1ad8cb0f48f8d6
[ "ADSL" ]
null
null
null
# Dependencies from bs4 import BeautifulSoup import requests import re import pandas as pd
35.095238
172
0.686567
b7a7160ec0048a1f0be91a335c4abd54fb69fa8b
10,165
py
Python
guiapp/meditech_nls_parser/old/meditech_nls_to_xml.py
gcampuzano14/PathISTabs
ae29a0b71647ecb32fc40e234b5c7276ab5333d9
[ "MIT" ]
1
2017-07-28T14:01:32.000Z
2017-07-28T14:01:32.000Z
guiapp/meditech_nls_parser/old/meditech_nls_to_xml.py
gcampuzano14/PathISTabs
ae29a0b71647ecb32fc40e234b5c7276ab5333d9
[ "MIT" ]
null
null
null
guiapp/meditech_nls_parser/old/meditech_nls_to_xml.py
gcampuzano14/PathISTabs
ae29a0b71647ecb32fc40e234b5c7276ab5333d9
[ "MIT" ]
1
2019-02-14T06:07:24.000Z
2019-02-14T06:07:24.000Z
#!/usr/bin/env python import os import re import csv # with open(outxml, "r") as out: # t = out.read() # with open(outxml, "w") as out: # u = t.encode('latin1','xmlcharrefreplace').decode('utf8','xmlcharrefreplace') # u = u.decode("utf-8").replace(u"\u2022", "*").u.encode("utf-8") ...
50.073892
174
0.52789
b7a7213417448a10f646593e2af28f99d94c2f47
3,144
py
Python
paper_plots/small_vs_large_box.py
finn-dodgson/DeepHalos
86e0ac6c24ac97a0a2a0a60a7ea3721a04bd050c
[ "MIT" ]
null
null
null
paper_plots/small_vs_large_box.py
finn-dodgson/DeepHalos
86e0ac6c24ac97a0a2a0a60a7ea3721a04bd050c
[ "MIT" ]
null
null
null
paper_plots/small_vs_large_box.py
finn-dodgson/DeepHalos
86e0ac6c24ac97a0a2a0a60a7ea3721a04bd050c
[ "MIT" ]
null
null
null
import numpy as np from plots import plots_for_predictions as pp from utilss import distinct_colours as dc import matplotlib.pyplot as plt c = dc.get_distinct(4) path = '/Users/luisals/Documents/deep_halos_files/mass_range_13.4/random_20sims_200k/lr5e-5/' p1 = np.load(path + "seed_20/predicted_sim_6_epoch_09.npy") t1...
60.461538
126
0.699746
b7a964ee74b74803fefa91500045e19a16c2244a
85,945
py
Python
regions.py
greggy/python-ipgeobase
593e4dc7e55e0c90a1979e586f03c013f6ac057a
[ "BSD-3-Clause" ]
1
2017-11-12T11:26:25.000Z
2017-11-12T11:26:25.000Z
regions.py
greggy/python-ipgeobase
593e4dc7e55e0c90a1979e586f03c013f6ac057a
[ "BSD-3-Clause" ]
null
null
null
regions.py
greggy/python-ipgeobase
593e4dc7e55e0c90a1979e586f03c013f6ac057a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- REGIONS = {'USRI': 'Rhode Island', 'UY02': 'Canelones', 'KR21': 'Ulsan-gwangyoksi', 'KR20': 'Kyongsang-namdo', 'KM02': 'Grande Comore', 'KM03': 'Moheli', 'CO22': 'Putumayo', 'BN18': 'Zou', 'BN17': 'Plateau', 'BN16': 'Oueme', 'BN15': 'Tutong', 'BN14': 'Littoral', 'BN13': 'Donga', 'BN12': 'Kouffo...
21,486.25
85,919
0.602339
b7a9d3a60ea32292f1f1a315f0e465e4cf861159
236
py
Python
configs/semantic_guided/CE.py
hukkelas/full_body_anonymization
c61745b137c84ffb742ef6ab2f4721db4acf22b7
[ "MIT" ]
27
2022-01-06T20:15:24.000Z
2022-03-29T11:54:49.000Z
configs/semantic_guided/CE.py
hukkelas/full_body_anonymization
c61745b137c84ffb742ef6ab2f4721db4acf22b7
[ "MIT" ]
2
2022-03-17T06:04:23.000Z
2022-03-25T08:50:57.000Z
configs/semantic_guided/CE.py
hukkelas/full_body_anonymization
c61745b137c84ffb742ef6ab2f4721db4acf22b7
[ "MIT" ]
2
2022-01-07T13:16:59.000Z
2022-01-16T02:10:50.000Z
_base_config_ = ["base.py"] generator = dict( input_cse=True, use_cse=True ) discriminator=dict( pred_only_cse=False, pred_only_semantic=True ) loss = dict( gan_criterion=dict(type="segmentation", seg_weight=.1) )
15.733333
58
0.699153
b7ac37d5a23a4e9b74f4c14b649516c082ec539d
676
py
Python
test/compiler/test-encode.py
xupingmao/minipy
5bce2f238925eb92fe9ff7d935f59ef68daa257a
[ "MIT" ]
52
2016-07-11T10:14:35.000Z
2021-12-09T09:10:43.000Z
test/compiler/test-encode.py
xupingmao/snake
c956f151ed1ebd2faeaf1565352b59ca5a8fa0b4
[ "MIT" ]
13
2016-07-24T13:50:37.000Z
2019-03-02T06:56:18.000Z
test/compiler/test-encode.py
xupingmao/snake
c956f151ed1ebd2faeaf1565352b59ca5a8fa0b4
[ "MIT" ]
9
2017-01-27T10:46:04.000Z
2021-12-09T09:10:46.000Z
# -*- coding:utf-8 -*- # @author xupingmao <578749341@qq.com> # @since 2020/10/20 00:19:47 # @modified 2020/10/20 00:42:52 import sys sys.path.append("src/python") from mp_encode import * test_compile("assign-number") test_compile("assign-multi") test_compile("if-in")
25.037037
67
0.668639
b7ad32170df3a150ccda1de3243e006af407c590
3,719
py
Python
paragen/optim/__init__.py
godweiyang/ParaGen
9665d1244ea38a41fc06b4e0a7f6411985e2221f
[ "Apache-2.0" ]
null
null
null
paragen/optim/__init__.py
godweiyang/ParaGen
9665d1244ea38a41fc06b4e0a7f6411985e2221f
[ "Apache-2.0" ]
null
null
null
paragen/optim/__init__.py
godweiyang/ParaGen
9665d1244ea38a41fc06b4e0a7f6411985e2221f
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy from inspect import getfullargspec import importlib import json import os import logging logger = logging.getLogger(__name__) from torch.optim.optimizer import Optimizer from paragen.optim.optimizer import Optimizer from paragen.utils.rate_schedulers import create_rate_scheduler from paragen...
35.419048
112
0.633235
b7adb4099781c23875a3639ae37c4e4a5bb88239
2,860
py
Python
joyvillage/joy/views.py
IreneMercy/Joy-Village-Backup
f038e33aa5c28337bc20c6fcd3273ef37d283564
[ "MIT" ]
null
null
null
joyvillage/joy/views.py
IreneMercy/Joy-Village-Backup
f038e33aa5c28337bc20c6fcd3273ef37d283564
[ "MIT" ]
9
2021-03-19T09:58:55.000Z
2022-03-12T00:22:50.000Z
joyvillage/joy/views.py
IreneMercy/Joy-Foundation
f038e33aa5c28337bc20c6fcd3273ef37d283564
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.shortcuts import render, redirect from django.http import HttpResponse, HttpResponseRedirect from .models import Events, Gallery, News, Careers, Partners from django.core.mail import send_mail,BadHeaderError from django.conf import settings from.forms import ContactFo...
29.484536
103
0.640909
b7ae3072a6046637d4bd29d21eabd8d449e98c65
274
py
Python
src/events/admin.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/events/admin.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/events/admin.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
from django.contrib import admin from django_summernote.admin import SummernoteModelAdmin from .models import Event, Speaker admin.site.register(Event, EventAdmin) admin.site.register(Speaker)
22.833333
56
0.813869
b7af3d0ba516d34beefe1df3aa1a2a39558521ee
318
py
Python
python/cython_build.py
n1tk/batch_jaro_winkler
421c7e3a5bedce89e8c00216b90d32d1629073a2
[ "MIT" ]
22
2020-04-30T17:56:29.000Z
2022-01-19T21:05:15.000Z
python/cython_build.py
n1tk/batch_jaro_winkler
421c7e3a5bedce89e8c00216b90d32d1629073a2
[ "MIT" ]
2
2021-01-19T14:07:22.000Z
2021-11-24T16:32:46.000Z
python/cython_build.py
n1tk/batch_jaro_winkler
421c7e3a5bedce89e8c00216b90d32d1629073a2
[ "MIT" ]
3
2020-10-28T20:56:29.000Z
2022-02-25T23:29:05.000Z
from distutils.core import setup from distutils.extension import Extension from Cython.Build import cythonize import sys python_version = sys.version_info[0] setup( name='batch_jaro_winkler', ext_modules=cythonize([Extension('batch_jaro_winkler', ['cbatch_jaro_winkler.pyx'])], language_level=python_version) )
24.461538
118
0.811321
b7afa43603c9767401a62b1a4fe6fc631887605a
6,647
py
Python
venv/lib/python3.7/site-packages/google/type/postal_address_pb2.py
nicholasadamou/StockBird
257396479667863d4ee122ea46adb86087c9aa78
[ "Apache-2.0" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
venv/lib/python3.7/site-packages/google/type/postal_address_pb2.py
nicholasadamou/StockBird
257396479667863d4ee122ea46adb86087c9aa78
[ "Apache-2.0" ]
21
2020-03-01T18:21:09.000Z
2020-05-26T14:49:08.000Z
venv/lib/python3.7/site-packages/google/type/postal_address_pb2.py
nicholasadamou/StockBird
257396479667863d4ee122ea46adb86087c9aa78
[ "Apache-2.0" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/type/postal_address.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import r...
47.141844
711
0.746352
b7aff83ef7243e9bfde2d005caee3accba55ac07
612
py
Python
dataprep/tests/data_connector/test_integration.py
dylanzxc/dataprep
21ef62936eeec28495763f35fcb3cb07f71de6f6
[ "MIT" ]
1
2020-12-18T13:16:38.000Z
2020-12-18T13:16:38.000Z
dataprep/tests/data_connector/test_integration.py
bexxmodd/dataprep
3aaa626bfaf9270cf56ffb70280cbcd8031f3ac3
[ "MIT" ]
null
null
null
dataprep/tests/data_connector/test_integration.py
bexxmodd/dataprep
3aaa626bfaf9270cf56ffb70280cbcd8031f3ac3
[ "MIT" ]
null
null
null
from ...data_connector import Connector from os import environ
24.48
81
0.666667
b7b0446dcbe64c12f7cc04baa8e64d8c7155c9fb
6,294
py
Python
plot_helpers.py
aspuru-guzik-group/QNODE
1ec3767c7b574eaeb7b0ec05d1be54983f8972bd
[ "MIT" ]
14
2021-11-06T19:32:56.000Z
2022-02-08T19:53:28.000Z
plot_helpers.py
aspuru-guzik-group/QNODE
1ec3767c7b574eaeb7b0ec05d1be54983f8972bd
[ "MIT" ]
null
null
null
plot_helpers.py
aspuru-guzik-group/QNODE
1ec3767c7b574eaeb7b0ec05d1be54983f8972bd
[ "MIT" ]
null
null
null
import os import torch import numpy as np import math import matplotlib.pyplot as plt from matplotlib import cm from qutip import * import imageio plt.rcParams['axes.labelsize'] = 16 from matplotlib import rc rc('font', **{'family': 'serif', 'serif': ['Computer Modern']}) rc('text', usetex=True) def animate_recon(xt,...
35.965714
167
0.58659
b7b1005f9392e0dbc05eef28e9be52e84c7d4a58
17,348
py
Python
state.py
Lekensteyn/wgll
11ac7925687bfc1866d3702f821230233fe3a8de
[ "MIT" ]
1
2021-11-27T17:29:43.000Z
2021-11-27T17:29:43.000Z
state.py
Lekensteyn/wgll
11ac7925687bfc1866d3702f821230233fe3a8de
[ "MIT" ]
null
null
null
state.py
Lekensteyn/wgll
11ac7925687bfc1866d3702f821230233fe3a8de
[ "MIT" ]
null
null
null
# State tracking for WireGuard protocol operations. # Author: Peter Wu <peter@lekensteyn.nl> # Licensed under the MIT license <http://opensource.org/licenses/MIT>. import base64 import hashlib import inspect import socket import traceback from noise_wg import NoiseWG, crypto_scalarmult_base, aead_encrypt, aead_decryp...
34.557769
85
0.606006
b7b19fe3229937c45439013a0185385ffb6134b0
2,007
py
Python
BAMF_Detect/modules/dendroid.py
bwall/bamfdetect
3b0b96a8b2285a1a4b3e3cf5ed1b5ad422b91ed1
[ "MIT" ]
152
2015-02-04T16:34:53.000Z
2021-07-27T19:00:40.000Z
BAMF_Detect/modules/dendroid.py
bwall/bamfdetect
3b0b96a8b2285a1a4b3e3cf5ed1b5ad422b91ed1
[ "MIT" ]
null
null
null
BAMF_Detect/modules/dendroid.py
bwall/bamfdetect
3b0b96a8b2285a1a4b3e3cf5ed1b5ad422b91ed1
[ "MIT" ]
30
2015-03-31T10:20:32.000Z
2022-02-09T16:17:04.000Z
from common import Modules, data_strings, load_yara_rules, AndroidParseModule, ModuleMetadata from base64 import b64decode from string import printable Modules.list.append(dendroid())
33.45
119
0.521176
b7b264987ed766841bcdbbf47f7266aa100f16c2
8,942
py
Python
corehq/ex-submodules/couchforms/tests/test_analytics.py
caktus/commcare-hq
fae9c0f792b4889b768252d3895d9d1884ce0d3b
[ "BSD-3-Clause" ]
null
null
null
corehq/ex-submodules/couchforms/tests/test_analytics.py
caktus/commcare-hq
fae9c0f792b4889b768252d3895d9d1884ce0d3b
[ "BSD-3-Clause" ]
40
2021-07-20T15:55:08.000Z
2022-03-25T17:21:36.000Z
corehq/ex-submodules/couchforms/tests/test_analytics.py
caktus/commcare-hq
fae9c0f792b4889b768252d3895d9d1884ce0d3b
[ "BSD-3-Clause" ]
null
null
null
import datetime import uuid from django.test import TestCase from mock import patch from requests import ConnectionError from couchforms.analytics import ( app_has_been_submitted_to_in_last_30_days, domain_has_submission_in_last_30_days, get_all_xmlns_app_id_pairs_submitted_to_in_domain, get_exports_b...
40.645455
113
0.674122
b7b2bf3009f886fb399b6a73378d628699d8010a
462
py
Python
src/pythae/models/svae/svae_config.py
eknag/benchmark_VAE
8b727f29a68aff7771c4c97aff15f75f88320e1f
[ "Apache-2.0" ]
1
2022-03-20T20:23:59.000Z
2022-03-20T20:23:59.000Z
src/pythae/models/svae/svae_config.py
eknag/benchmark_VAE
8b727f29a68aff7771c4c97aff15f75f88320e1f
[ "Apache-2.0" ]
null
null
null
src/pythae/models/svae/svae_config.py
eknag/benchmark_VAE
8b727f29a68aff7771c4c97aff15f75f88320e1f
[ "Apache-2.0" ]
null
null
null
from pydantic.dataclasses import dataclass from ...models import VAEConfig
27.176471
99
0.690476
b7b3ac20c4a0978bc24a666dd7cd9ac25c00bc3a
7,486
py
Python
amck/imat/download_data.py
aaronmckinstry706/imaterialist
ebed3f3bd9e231f0852aa30c7bbfafe94d5dbce1
[ "MIT" ]
null
null
null
amck/imat/download_data.py
aaronmckinstry706/imaterialist
ebed3f3bd9e231f0852aa30c7bbfafe94d5dbce1
[ "MIT" ]
null
null
null
amck/imat/download_data.py
aaronmckinstry706/imaterialist
ebed3f3bd9e231f0852aa30c7bbfafe94d5dbce1
[ "MIT" ]
null
null
null
# Parts of code taken from https://www.kaggle.com/aloisiodn/python-3-download-multi-proc-prog-bar-resume by Dourado. # Improvements on the original script: # * you can choose which dataset to download; # * uses threads instead of processes; # * unpacks data into .../label/id.jpg directory structure, which can be ...
41.821229
118
0.716137
b7b473cc7728c8bc405a3042f957fe877f0c27c2
790
py
Python
JTP Recap./2.Program_IO/function.py
SNP0301/Study_Python
bb7ce7a0d915131c281152e7faee5b57c290df6b
[ "MIT" ]
null
null
null
JTP Recap./2.Program_IO/function.py
SNP0301/Study_Python
bb7ce7a0d915131c281152e7faee5b57c290df6b
[ "MIT" ]
null
null
null
JTP Recap./2.Program_IO/function.py
SNP0301/Study_Python
bb7ce7a0d915131c281152e7faee5b57c290df6b
[ "MIT" ]
null
null
null
""" Function def function_name(arg1, arg2, ...) : <op 1> <op 2> ... Function with undefined amount of input def fn_name(*args) --> args' elements make tuple. kwargs = Keyword Parameter >>> def print_kwargs(**kwargs): ... print(kwargs) ... >>> print_kwargs(a=1) {...
22.571429
72
0.596203
b7b56be6d7b0d5e174db26b106b5f7914f624c31
2,437
py
Python
tweet/common.py
skiwheelr/URS
45746c945af2ea62a5ddb675c6a8e4e2fe4b5a93
[ "MIT" ]
4
2021-02-15T02:02:38.000Z
2022-03-04T16:38:44.000Z
tweet/common.py
skiwheelr/URS
45746c945af2ea62a5ddb675c6a8e4e2fe4b5a93
[ "MIT" ]
null
null
null
tweet/common.py
skiwheelr/URS
45746c945af2ea62a5ddb675c6a8e4e2fe4b5a93
[ "MIT" ]
2
2021-02-11T01:10:27.000Z
2021-02-25T19:20:04.000Z
all import tweepy, config, users, re, groupy from tweepy import OAuthHandler from tweepy import API print(tweepy.__version__) auth = OAuthHandler(config.consumer_key, config.consumer_secret) auth.set_access_token(config.access_token,config.access_token_secret) api = tweepy.API(auth) from groupy.client import Client cli...
33.847222
120
0.636849
b7b6119291ad7a11b8a2999460f70e3f10db60c8
8,486
py
Python
crystalpy/examples/PlotData1D.py
oasys-kit/crystalpy
4852851c622ef914844178577dea4075e92cd8dd
[ "MIT" ]
null
null
null
crystalpy/examples/PlotData1D.py
oasys-kit/crystalpy
4852851c622ef914844178577dea4075e92cd8dd
[ "MIT" ]
null
null
null
crystalpy/examples/PlotData1D.py
oasys-kit/crystalpy
4852851c622ef914844178577dea4075e92cd8dd
[ "MIT" ]
null
null
null
""" ---OK--- """ from collections import OrderedDict import copy import numpy as np from crystalpy.examples.Values import Interval
32.389313
111
0.582371
b7b6ad2f30eeeef89f8be32e1b423aba5b40b98c
51
py
Python
src/deep_dialog/usersims/__init__.py
Yuqing2018/tcbot_python3
583ce1b670f7c67669ff437e69eb09832e784da6
[ "MIT" ]
null
null
null
src/deep_dialog/usersims/__init__.py
Yuqing2018/tcbot_python3
583ce1b670f7c67669ff437e69eb09832e784da6
[ "MIT" ]
null
null
null
src/deep_dialog/usersims/__init__.py
Yuqing2018/tcbot_python3
583ce1b670f7c67669ff437e69eb09832e784da6
[ "MIT" ]
null
null
null
from .usersim_rule import * from .realUser import *
25.5
27
0.784314
b7b6cb22cdbe422b0a500a1606789a7d83af799b
38,534
py
Python
hs_file_types/models/geofeature.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
hs_file_types/models/geofeature.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
hs_file_types/models/geofeature.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
import os import logging import shutil import zipfile import xmltodict from lxml import etree from osgeo import ogr, osr from django.core.exceptions import ValidationError from django.db import models, transaction from django.utils.html import strip_tags from django.template import Template, Context from dominate.ta...
44.547977
100
0.61338
b7b9397bbe8da7007b207fc6a20f4e6b29704b5a
1,313
py
Python
tests/test_node.py
mjholtkamp/py-iptree
97025f03247dbc91424898fd28f7be1448d5fce5
[ "Apache-2.0" ]
null
null
null
tests/test_node.py
mjholtkamp/py-iptree
97025f03247dbc91424898fd28f7be1448d5fce5
[ "Apache-2.0" ]
null
null
null
tests/test_node.py
mjholtkamp/py-iptree
97025f03247dbc91424898fd28f7be1448d5fce5
[ "Apache-2.0" ]
null
null
null
import unittest from iptree import IPNode
28.543478
62
0.552932
b7b981be89ff3733793d9540e9d6338ff12dd2df
208
py
Python
Codewars/8kyu/invert-values/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/8kyu/invert-values/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/8kyu/invert-values/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 3.4.3 Test.it('Basic Tests') Test.assert_equals(invert([1, 2, 3, 4, 5]), [-1, -2, -3, -4, -5]) Test.assert_equals(invert([1, -2, 3, -4, 5]), [-1, 2, -3, 4, -5]) Test.assert_equals(invert([]), [])
29.714286
65
0.548077
b7ba3cc002a49b7880bf396084b5e2214c7d5cdf
1,239
py
Python
locustfile_create_order.py
Ashutosh-Kaushik/ss-load-test-locust
286e3cecad39f5ce991717e117392332a9810d64
[ "Apache-2.0" ]
1
2022-03-31T05:34:33.000Z
2022-03-31T05:34:33.000Z
locustfile_create_order.py
Ashutosh-Kaushik/ss-load-test-locust
286e3cecad39f5ce991717e117392332a9810d64
[ "Apache-2.0" ]
null
null
null
locustfile_create_order.py
Ashutosh-Kaushik/ss-load-test-locust
286e3cecad39f5ce991717e117392332a9810d64
[ "Apache-2.0" ]
null
null
null
import csv import random import warnings import os from locust import HttpUser, task, between body = { "campaignid":"5kXk20gGDISJdM5el5IT", "walletamount":"0" } header = { "Host": "fkhapi.sastasundar.com", "Apptype": "N", "Appversion": "4.0.4", "Appversioncode": "109", "Deviceid": "81653d...
25.8125
88
0.637611
b7bae45b9bc9f5897fbcca4960ef6f0a8e4b7699
1,358
py
Python
compy/plot/grid.py
tilleyd/compy
b63188341d0c66c0ecd810e29918e569c519b296
[ "MIT" ]
null
null
null
compy/plot/grid.py
tilleyd/compy
b63188341d0c66c0ecd810e29918e569c519b296
[ "MIT" ]
null
null
null
compy/plot/grid.py
tilleyd/compy
b63188341d0c66c0ecd810e29918e569c519b296
[ "MIT" ]
null
null
null
"""Contains the grid class to create multiple figures.""" from typing import Optional, Tuple from .figure import Figure import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt
29.521739
78
0.581001
b7bb34b596fa5c54c79635a6e0d79f862d482ebf
30,005
py
Python
parallel_accel/shared/parallel_accel/shared/schemas/external.py
google/parallel_accel
b58fda1c3a22f2aaa9a97337d602cd72c49ee8be
[ "Apache-2.0" ]
1
2021-12-19T21:17:02.000Z
2021-12-19T21:17:02.000Z
parallel_accel/shared/parallel_accel/shared/schemas/external.py
google/parallel_accel
b58fda1c3a22f2aaa9a97337d602cd72c49ee8be
[ "Apache-2.0" ]
null
null
null
parallel_accel/shared/parallel_accel/shared/schemas/external.py
google/parallel_accel
b58fda1c3a22f2aaa9a97337d602cd72c49ee8be
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The ParallelAccel 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
28.549001
113
0.627629
b7bb41a1d668770a899b52a1a2113000001bd07c
1,040
py
Python
godot-toolkit/godot_config_file.py
WiggleWizard/godot-toolkit
e17b7666ed80e3ab25ee65c43eb1ba9b13634070
[ "MIT" ]
null
null
null
godot-toolkit/godot_config_file.py
WiggleWizard/godot-toolkit
e17b7666ed80e3ab25ee65c43eb1ba9b13634070
[ "MIT" ]
null
null
null
godot-toolkit/godot_config_file.py
WiggleWizard/godot-toolkit
e17b7666ed80e3ab25ee65c43eb1ba9b13634070
[ "MIT" ]
null
null
null
try: from configparser import RawConfigParser except ImportError: from ConfigParser import RawConfigParser
41.6
79
0.5
b7bd5a3b425952bf3f2c75d16b604d8c223988c4
683
py
Python
DMOJ/CCC/escape room.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
3
2021-05-15T08:18:09.000Z
2021-05-17T04:41:57.000Z
DMOJ/CCC/escape room.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
DMOJ/CCC/escape room.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
import collections m=int(input()) n=int(input()) grid=[] for i in range(m): grid.append(list(map(int,input().split()))) factor=collections.defaultdict(list) print('yes' if dfs(0, 0) else 'no')
22.032258
58
0.513909
b7bd809bb95458cc851905998de0d036112332ab
2,556
py
Python
volume_loader.py
xeTaiz/deep-volumetric-ambient-occlusion
8492ad957f1440d5bf93139f7cf9ee4c7997b0e2
[ "MIT" ]
9
2020-08-24T20:03:17.000Z
2022-02-17T07:38:55.000Z
volume_loader.py
xeTaiz/deep-volumetric-ambient-occlusion
8492ad957f1440d5bf93139f7cf9ee4c7997b0e2
[ "MIT" ]
null
null
null
volume_loader.py
xeTaiz/deep-volumetric-ambient-occlusion
8492ad957f1440d5bf93139f7cf9ee4c7997b0e2
[ "MIT" ]
1
2021-07-12T01:39:24.000Z
2021-07-12T01:39:24.000Z
import os import pydicom import numpy as np import dicom_numpy from utils import hidden_errors from tf_utils import * from pathlib import Path def read_dicom_folder(dicom_folder, rescale=None): ''' Reads all .dcm files in `dicom_folder` and merges them to one volume Returns: The volume and the affine...
44.068966
127
0.620892
b7c03a0cfc79b571a75dfb907cc43fbd5d0b1bf0
5,056
py
Python
sudoku_solver/gui.py
andrewhalle/sudoku_solver
56b88c49a3637449507a9afa66ec3d617d2118a5
[ "MIT" ]
null
null
null
sudoku_solver/gui.py
andrewhalle/sudoku_solver
56b88c49a3637449507a9afa66ec3d617d2118a5
[ "MIT" ]
null
null
null
sudoku_solver/gui.py
andrewhalle/sudoku_solver
56b88c49a3637449507a9afa66ec3d617d2118a5
[ "MIT" ]
null
null
null
import sys from PyQt5.QtCore import Qt, QSize, QPoint from PyQt5.QtWidgets import QApplication, QDialog, QWidget, QLabel, QPushButton, QVBoxLayout, QHBoxLayout from PyQt5.QtGui import QPainter, QColor, QPen, QFont from .sudoku import Sudoku def main(): app = QApplication([]) gui = SudokuDialog() sys.exit(...
36.637681
135
0.585443