hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
473f4dc9a600b8c43aff418b905edef20e705990
266
py
Python
Ex031 - Custo de viagem.py
MarcusMendes81/Python
4af6653da324604930d24542a84a530348029d39
[ "Apache-2.0" ]
null
null
null
Ex031 - Custo de viagem.py
MarcusMendes81/Python
4af6653da324604930d24542a84a530348029d39
[ "Apache-2.0" ]
null
null
null
Ex031 - Custo de viagem.py
MarcusMendes81/Python
4af6653da324604930d24542a84a530348029d39
[ "Apache-2.0" ]
null
null
null
km = float(input('Digite qual a distância da sua viagem em km: ')) if km <= 200: preço = km * 0.50 print('O valor da sua viagem é de {:.2f}R$'.format(preço)) else: preço = km * 0.45 print('O valor da sua viagem é de {:.2f}R$'.format(preço))
29.555556
67
0.586466
0
0
0
0
0
0
0
0
124
0.454212
473fc3dd716cb4c46c867f24ed27e15522aed178
1,802
py
Python
tests/post/test_metrics_server.py
ssalaues/metalk8s
cca4a4c64fe9cd4d7b87717aa3fda1642144da4b
[ "Apache-2.0" ]
null
null
null
tests/post/test_metrics_server.py
ssalaues/metalk8s
cca4a4c64fe9cd4d7b87717aa3fda1642144da4b
[ "Apache-2.0" ]
null
null
null
tests/post/test_metrics_server.py
ssalaues/metalk8s
cca4a4c64fe9cd4d7b87717aa3fda1642144da4b
[ "Apache-2.0" ]
null
null
null
import json import kubernetes.config import pytest_bdd import pytest_bdd.parsers import utils.helper pytest_bdd.scenarios('features/metrics_server.feature') @pytest_bdd.when('I wait for metrics-server to be initialized') def wait_until_initialized(kubeconfig): client = kubernetes.config.new_client_from_config...
34
78
0.712542
0
0
0
0
1,632
0.90566
0
0
514
0.285239
47405d3453babd25d32b1eab577b6c049070e9a0
52
py
Python
src/config.py
kimminwyk/apache-log-parsing
1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e
[ "MIT" ]
1
2021-03-31T00:14:38.000Z
2021-03-31T00:14:38.000Z
src/config.py
kimminwyk/apache-log-parsing
1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e
[ "MIT" ]
null
null
null
src/config.py
kimminwyk/apache-log-parsing
1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e
[ "MIT" ]
null
null
null
default = False actions = 'store_true' ENC = 'utf-8'
17.333333
22
0.692308
0
0
0
0
0
0
0
0
19
0.365385
4740a5904496fd65f865863d0eb457e3b97598a9
10,751
py
Python
UniGrammar/tools/regExps/python/prelifter.py
UniGrammar/UniGrammar.py
560152ff5ff3f0651171044f6b5046fd8d895960
[ "Unlicense" ]
2
2020-06-17T16:57:23.000Z
2022-02-24T13:29:01.000Z
UniGrammar/tools/regExps/python/prelifter.py
KOLANICH/UniGrammar.py
d83f2f605073898b454868b98e2ecdefc4d9f7ca
[ "Unlicense" ]
null
null
null
UniGrammar/tools/regExps/python/prelifter.py
KOLANICH/UniGrammar.py
d83f2f605073898b454868b98e2ecdefc4d9f7ca
[ "Unlicense" ]
null
null
null
import sre_constants as sc import sre_parse as sp import typing import unicodedata from pprint import pprint from RichConsole import groups, rsjoin from .knowledge import CAPTURE_GROUP, LITERAL_STR class RXASTNode: """Current AST generated by sre_parse is badly structured and doesn't suit well for our purposes. So...
27.217722
287
0.728583
10,307
0.958702
0
0
0
0
0
0
2,701
0.251232
474625e55d420bbe1645d7c53baf9bb6b0997f55
2,615
py
Python
works/test/dssm/model.py
didazxc/autoflow
6682102efae90b0af00ba920cd4fa2020694d5f2
[ "MIT" ]
null
null
null
works/test/dssm/model.py
didazxc/autoflow
6682102efae90b0af00ba920cd4fa2020694d5f2
[ "MIT" ]
null
null
null
works/test/dssm/model.py
didazxc/autoflow
6682102efae90b0af00ba920cd4fa2020694d5f2
[ "MIT" ]
null
null
null
import torch from torch import nn class UserModel(nn.Module): def __init__(self, filter_sizes, userprofile_size, applist_size, output_size=32, char_embed_size=32, chars_size=6000, out_channel_size=3): super().__init__() # embedding of lines and apps self.embed = nn.Embedd...
38.455882
104
0.636711
2,574
0.984321
0
0
70
0.026769
0
0
63
0.024092
474730af1ea1af916a12ede7e8f6ca83e5e468a8
952
py
Python
pastila/schema.py
harlov/pastila
27ebe862bc25d5cc1a14766e5eec8f48853098c3
[ "MIT" ]
null
null
null
pastila/schema.py
harlov/pastila
27ebe862bc25d5cc1a14766e5eec8f48853098c3
[ "MIT" ]
null
null
null
pastila/schema.py
harlov/pastila
27ebe862bc25d5cc1a14766e5eec8f48853098c3
[ "MIT" ]
null
null
null
from pastila.fields import Field class Schema(object): data = None def __init__(self): self.data = {} def load(self, data): for field, value in data.items(): self.load_to_field(field, value) self.validate() def validate(self): for name, field in self.fie...
22.666667
86
0.570378
916
0.962185
0
0
188
0.197479
0
0
0
0
4747b2ce44f8edfeed9025dd5538e36cd606b1dc
436
py
Python
labs/lab10/demo/src/cpu_multiprocessing.py
Alvant/AdvancedPython2020
c5a6439f100ff6a32168366f6a74e5ca0e79d0bc
[ "MIT" ]
null
null
null
labs/lab10/demo/src/cpu_multiprocessing.py
Alvant/AdvancedPython2020
c5a6439f100ff6a32168366f6a74e5ca0e79d0bc
[ "MIT" ]
7
2021-09-12T17:15:27.000Z
2022-03-01T17:50:18.000Z
labs/lab10/demo/src/cpu_multiprocessing.py
Alvant/AdvancedPython
b036d124d0ccaa325b356db1a189e6ef10e1f21f
[ "MIT" ]
2
2021-09-26T10:00:25.000Z
2021-11-07T19:01:33.000Z
import multiprocessing import time from typing import List from constants import CPU_BIG_NUMBERS from utils import show_execution_time def cpu_bound(number: int) -> int: return sum(i * i for i in range(number)) def find_sums(numbers: List[int]) -> None: with multiprocessing.Pool() as pool: pool.ma...
20.761905
64
0.743119
0
0
0
0
0
0
0
0
10
0.022936
4747e422b3230b40d458ca7afafc2b2ff6c690f8
304
py
Python
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
1
2021-09-25T12:22:35.000Z
2021-09-25T12:22:35.000Z
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
null
null
null
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
null
null
null
from abc import ABCMeta from whatsapp_tracker.bases.selenium_bases.base_selenium_kit import BaseSeleniumKit from whatsapp_tracker.mixins.seleniun_keyboard_press_mixin import SeleniumKeyBoardPressMixin class BaseSeleniumKeyboard(BaseSeleniumKit, SeleniumKeyBoardPressMixin, metaclass=ABCMeta): ...
33.777778
92
0.875
99
0.325658
0
0
0
0
0
0
0
0
4749535b6dc42716b629b0a869d4e93214bb93a8
3,056
py
Python
assignments/assignment2/model.py
RuslanOm/dlcourse_ai
f4c85497dc4affb942cacb363f17ce63b39c1bd7
[ "MIT" ]
null
null
null
assignments/assignment2/model.py
RuslanOm/dlcourse_ai
f4c85497dc4affb942cacb363f17ce63b39c1bd7
[ "MIT" ]
null
null
null
assignments/assignment2/model.py
RuslanOm/dlcourse_ai
f4c85497dc4affb942cacb363f17ce63b39c1bd7
[ "MIT" ]
null
null
null
import numpy as np from layers import FullyConnectedLayer, ReLULayer, softmax_with_cross_entropy, l2_regularization class TwoLayerNet: """ Neural network with two fully connected layers """ def __init__(self, n_input, n_output, hidden_layer_size, reg): """ Initializes the neural network ...
32.510638
96
0.612238
2,936
0.960733
0
0
0
0
0
0
1,353
0.442736
474a6941a53b9666a0f1df165d06680657ea0def
3,066
py
Python
ukol.py
tenhobi/NI-MPI
5c6c4f5fd28487e807315ce6da33b81f0db4908d
[ "MIT" ]
null
null
null
ukol.py
tenhobi/NI-MPI
5c6c4f5fd28487e807315ce6da33b81f0db4908d
[ "MIT" ]
null
null
null
ukol.py
tenhobi/NI-MPI
5c6c4f5fd28487e807315ce6da33b81f0db4908d
[ "MIT" ]
null
null
null
import numpy as np class Solver: def __init__(self, matrix, vector, initialVector, precision, gamma): self.initialVector = initialVector self.precision = precision self.matrix = matrix self.bVector = vector self.gamma = gamma # lower triangular part ...
31.285714
119
0.628506
2,362
0.770385
0
0
0
0
0
0
594
0.193738
474bb5e6e62ca2caee71dee1fac0a250c57c5dda
12,491
py
Python
src/python/dxpy/utils/__init__.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
src/python/dxpy/utils/__init__.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
src/python/dxpy/utils/__init__.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2013-2014 DNAnexus, Inc. # # This file is part of dx-toolkit (DNAnexus platform client libraries). # # 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.a...
39.15674
241
0.660716
802
0.064206
5,191
0.415579
0
0
0
0
5,868
0.469778
474cbd8308c2b1410045a858c934a70c927f171d
2,946
py
Python
mkserialisable.py
cedadev/ipython_project
fd9c85c20d3689435684cf4b681dfaab1c0a825b
[ "BSD-3-Clause-Clear" ]
null
null
null
mkserialisable.py
cedadev/ipython_project
fd9c85c20d3689435684cf4b681dfaab1c0a825b
[ "BSD-3-Clause-Clear" ]
null
null
null
mkserialisable.py
cedadev/ipython_project
fd9c85c20d3689435684cf4b681dfaab1c0a825b
[ "BSD-3-Clause-Clear" ]
null
null
null
"""Routines to make objects serialisable. Each of the functions in this module makes a specific type of object serialisable. In most cases, this module needs to be imported and the function run in both the serialising and the unserialising environments. Here's a summary (see function documentation for details): mk_...
23.95122
79
0.67685
0
0
0
0
0
0
0
0
1,326
0.450102
474d460f8c93e195c3909578035ee5726563b9b7
773
py
Python
flox_aws/configure.py
getflox/flox-aws
9642e291afa3ddedd9eed566b43a640e9bb0c537
[ "MIT" ]
null
null
null
flox_aws/configure.py
getflox/flox-aws
9642e291afa3ddedd9eed566b43a640e9bb0c537
[ "MIT" ]
null
null
null
flox_aws/configure.py
getflox/flox-aws
9642e291afa3ddedd9eed566b43a640e9bb0c537
[ "MIT" ]
null
null
null
from floxcore.config import Configuration, ParamDefinition class AWSConfiguration(Configuration): def parameters(self): return ( ParamDefinition("region", "AWS Default region"), ParamDefinition("role_arn", "Role (ARN) to be assumed", default="", filter_empty=False), Par...
36.809524
113
0.630013
711
0.919793
0
0
0
0
0
0
219
0.283312
474d5c6d6e9e1b1ea76c41c137dcb55b272f1e24
1,769
py
Python
api_teacher.py
sabertooth9/KUET-Teachers-Web-Scrapper-
0b1cea4f3e60f440b882bef971a942e42d0ab048
[ "Apache-2.0" ]
1
2019-12-21T13:35:46.000Z
2019-12-21T13:35:46.000Z
api_teacher.py
sabertooth9/KUET-Teachers-Web-Scrapper-
0b1cea4f3e60f440b882bef971a942e42d0ab048
[ "Apache-2.0" ]
null
null
null
api_teacher.py
sabertooth9/KUET-Teachers-Web-Scrapper-
0b1cea4f3e60f440b882bef971a942e42d0ab048
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_restful import Api, Resource, reqparse from kuet_teacher_data import get_data app = Flask(__name__) api = Api(app) data = get_data() class Teacher_data(Resource): def get(self,id="CSE"): if(id=='ALL' or id=='all'): return data, 200 for datac in ...
26.402985
71
0.544375
963
0.544375
0
0
0
0
0
0
197
0.111362
474e6ccd3a09db8bd61fb6310dfa022bed136ad4
892
py
Python
demo/singleperson.py
Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer
744bfc636463f24c4f78f25684864c2ce4abb43f
[ "MIT" ]
8
2020-10-17T14:54:53.000Z
2022-02-09T11:03:01.000Z
demo/singleperson.py
Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer
744bfc636463f24c4f78f25684864c2ce4abb43f
[ "MIT" ]
4
2021-01-03T16:02:29.000Z
2021-11-23T03:26:01.000Z
demo/singleperson.py
Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer
744bfc636463f24c4f78f25684864c2ce4abb43f
[ "MIT" ]
2
2021-04-10T07:05:55.000Z
2021-09-19T23:22:18.000Z
import os import sys sys.path.append(os.path.dirname(__file__) + "/../") from scipy.misc import imread from util.config import load_config from nnet import predict from util import visualize from dataset.pose_dataset import data_to_input cfg = load_config("demo/pose_cfg.yaml") # Load and setup CNN part detector s...
25.485714
68
0.784753
0
0
0
0
0
0
0
0
215
0.241031
474f1702de3c8a82c6ec6ce0f179522a071b3434
19,771
py
Python
simulators/iam_module.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2018-09-04T19:06:44.000Z
2018-09-04T19:06:44.000Z
simulators/iam_module.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
85
2017-03-25T22:37:02.000Z
2022-03-01T16:49:14.000Z
simulators/iam_module.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2017-08-18T10:56:39.000Z
2017-08-18T10:56:39.000Z
import datetime import logging import os import warnings import matplotlib.pyplot as plt import numpy as np import pandas as pd from logutils import BraceMessage as __ from tqdm import tqdm import simulators from mingle.models.broadcasted_models import inherent_alpha_model from mingle.utilities.chisqr import chi_squa...
45.450575
125
0.589247
0
0
0
0
0
0
0
0
4,294
0.217187
4752834006b4c7e38581b00b04934cecb3b712df
4,910
py
Python
src/etl/transform.py
fmirani/etl_project
969990143c3075f193565cec309a2f0333038a8b
[ "MIT" ]
null
null
null
src/etl/transform.py
fmirani/etl_project
969990143c3075f193565cec309a2f0333038a8b
[ "MIT" ]
null
null
null
src/etl/transform.py
fmirani/etl_project
969990143c3075f193565cec309a2f0333038a8b
[ "MIT" ]
null
null
null
import pandas as pd from datetime import datetime, timedelta from bs4 import BeautifulSoup as bs from etl.logger import get_logger from etl.main import ETL logger = get_logger("transform") def transform_data(service: str, data_file: str) -> pd.DataFrame: """ Simple function to guide the request ...
31.075949
87
0.57169
0
0
0
0
0
0
0
0
2,017
0.410794
47529769d5bba7253b76bc8e8bf54fbb83c5bfd5
646
py
Python
projects/migrations/0003_auto_20210719_1152.py
Tajeu2001/awwards
3a7b068f5d66336d4881a91b6a49338dc6f900d6
[ "MIT" ]
null
null
null
projects/migrations/0003_auto_20210719_1152.py
Tajeu2001/awwards
3a7b068f5d66336d4881a91b6a49338dc6f900d6
[ "MIT" ]
null
null
null
projects/migrations/0003_auto_20210719_1152.py
Tajeu2001/awwards
3a7b068f5d66336d4881a91b6a49338dc6f900d6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.24 on 2021-07-19 11:52 import cloudinary.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('projects', '0002_project_technologies'), ] operations = [ migrations.AlterField( model_name='profile', ...
25.84
90
0.623839
535
0.828173
0
0
0
0
0
0
137
0.212074
4752de7c01e8d42225f7e14fb6052b77754c4e72
3,567
py
Python
student/urls.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
1
2022-01-20T10:20:05.000Z
2022-01-20T10:20:05.000Z
student/urls.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
null
null
null
student/urls.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
1
2022-01-20T10:20:31.000Z
2022-01-20T10:20:31.000Z
from django.urls import path from academic.views import SectionCreate, SectionUpdate, SectionDelete from .views import ( StudentView, AttendanceMark, AttendanceSearch, AttendanceView, IndividualMarksView, AdmissionCreate, AdmissionView, AdmissionDelete, AdmissionUpda...
51.695652
140
0.724699
0
0
0
0
0
0
0
0
1,359
0.380992
475312b91a3851e28b34370218eea8c022b8aff7
5,598
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
1
2021-10-21T01:45:32.000Z
2021-10-21T01:45:32.000Z
import os import sys # PATH vars BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) ROOT_DIR = lambda *x: os.path.join(BASE_DIR, *x) APPS_DIR = os.path.join(ROOT_DIR(), "apps") sys.path.insert(0, APPS_DIR) # SECURITY WARNING: keep the secret key used in production secret! SECRET...
29.463158
89
0.642551
0
0
0
0
0
0
0
0
3,387
0.605038
47534f46ad8c13b23baa8376ad80237dfc62bd3c
827
py
Python
wenben_project/reco_sys/server/__init__.py
nameli0722/git-
29343ef0eec598aa262c59825d567044ef393f44
[ "MIT" ]
null
null
null
wenben_project/reco_sys/server/__init__.py
nameli0722/git-
29343ef0eec598aa262c59825d567044ef393f44
[ "MIT" ]
null
null
null
wenben_project/reco_sys/server/__init__.py
nameli0722/git-
29343ef0eec598aa262c59825d567044ef393f44
[ "MIT" ]
null
null
null
import happybase from settings.default import DefaultConfig import redis pool = happybase.ConnectionPool(size=10, host='hadoop-master', port=9090) # 召回数据 redis_client = redis.StrictRedis(host=DefaultConfig.REDIS_HOST, port=DefaultConfig.REDIS_PORT, db=...
34.458333
73
0.629988
0
0
0
0
0
0
0
0
73
0.08538
475531486c43c1c7dffcddd44fa86cc2df76cfd3
783
py
Python
alimama/alimama/items.py
Yoochao/tbk
b3a6aff905cf9d7dbe161813e1bbe968d86b5320
[ "Apache-2.0" ]
null
null
null
alimama/alimama/items.py
Yoochao/tbk
b3a6aff905cf9d7dbe161813e1bbe968d86b5320
[ "Apache-2.0" ]
null
null
null
alimama/alimama/items.py
Yoochao/tbk
b3a6aff905cf9d7dbe161813e1bbe968d86b5320
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class AlimamaItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() url = scrapy.Field() img = scrapy.F...
26.1
51
0.67433
614
0.784163
0
0
0
0
0
0
212
0.270754
47567885350f4cfe55660b2d4ce384bb43abd614
2,516
py
Python
Programming_Assignment_5/proj5/oracle.py
csMOOC/Maryland.Cryptography
58b6111a918599772e5a476764bb3b9897b61283
[ "MIT" ]
1
2017-11-18T15:34:59.000Z
2017-11-18T15:34:59.000Z
Programming_Assignment_5/proj5/oracle.py
csMOOC/Maryland.Cryptography
58b6111a918599772e5a476764bb3b9897b61283
[ "MIT" ]
null
null
null
Programming_Assignment_5/proj5/oracle.py
csMOOC/Maryland.Cryptography
58b6111a918599772e5a476764bb3b9897b61283
[ "MIT" ]
null
null
null
sign_sock = None vrfy_sock = None MAX_PACKET_LEN = 8192 NOT_BINARY_STR_ERR = -1 MISSING_DELIMITER_ERR = -2 ORIGINAL_MSG_ERR = -3 def Oracle_Connect(): import socket global sign_sock global vrfy_sock sign_sock, vrfy_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM), socket.socket(socket.AF_INET,...
27.955556
127
0.647059
0
0
0
0
0
0
0
0
801
0.318362
47595ec1c220dcb1c916744d399484c33fcb99c6
5,932
py
Python
medical_test/models.py
AlexanderUstinovv/medical_test
b740fb599aa4097eb44d35a844fef838c4ccf6ad
[ "BSD-3-Clause" ]
null
null
null
medical_test/models.py
AlexanderUstinovv/medical_test
b740fb599aa4097eb44d35a844fef838c4ccf6ad
[ "BSD-3-Clause" ]
null
null
null
medical_test/models.py
AlexanderUstinovv/medical_test
b740fb599aa4097eb44d35a844fef838c4ccf6ad
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import User from django.db import models class Measurement(models.Model): class Meta: db_table = 'measurement' verbose_name = 'Измерение' verbose_name_plural = 'Измерения' name = models.CharField(max_length=10, verbose_name='Единицы измерения') desc...
41.774648
102
0.607552
6,562
0.985877
0
0
0
0
0
0
1,766
0.265325
475a825b4f6b8ec63bbe41abb911aed22f74dd8a
11,153
py
Python
idarest/idarest_master.py
sfinktah/idarest75
ab2549b12e174aaef32ab6c933fe09b1232a8cce
[ "MIT" ]
null
null
null
idarest/idarest_master.py
sfinktah/idarest75
ab2549b12e174aaef32ab6c933fe09b1232a8cce
[ "MIT" ]
null
null
null
idarest/idarest_master.py
sfinktah/idarest75
ab2549b12e174aaef32ab6c933fe09b1232a8cce
[ "MIT" ]
null
null
null
import socket try: from .idarest_mixins import IdaRestConfiguration except: from idarest_mixins import IdaRestConfiguration # idarest_master_plugin_t.config['master_debug'] = False # idarest_master_plugin_t.config['master_info'] = False # idarest_master_plugin_t.config['api_prefix'] = '/ida/api/v1.0' # ida...
38.725694
151
0.56505
9,612
0.861831
0
0
2,074
0.185959
0
0
2,621
0.235004
475b01893fd7ae3f1c364df0596288e775da3bcd
11,750
py
Python
wordbot.py
spyth/wordbot
8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4
[ "MIT" ]
null
null
null
wordbot.py
spyth/wordbot
8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4
[ "MIT" ]
null
null
null
wordbot.py
spyth/wordbot
8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4
[ "MIT" ]
null
null
null
import logging import json from datetime import datetime from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters, Job, CallbackQueryHandler) from telegram import (ChatAction, ParseMode, InlineKeyboardButton, InlineKeyboardMarkup) from peewee import fn import pytz from word...
50.213675
151
0.575149
10,773
0.912425
0
0
3,339
0.282798
0
0
1,353
0.114593
475e2827e051fef8ddf4351c0f8e2268a7395759
599
py
Python
setup.py
jcanode/small_nn
0e7fa58a52b45b2221b66bd0a67bd7395934133c
[ "MIT" ]
1
2020-07-06T20:43:23.000Z
2020-07-06T20:43:23.000Z
setup.py
jcanode/small_nn
0e7fa58a52b45b2221b66bd0a67bd7395934133c
[ "MIT" ]
null
null
null
setup.py
jcanode/small_nn
0e7fa58a52b45b2221b66bd0a67bd7395934133c
[ "MIT" ]
1
2020-07-04T18:11:43.000Z
2020-07-04T18:11:43.000Z
import setuptools from setuptools import setup, find_namespace_packages setuptools.setup( name="small_nn-jcanode", version="0.0.1", author="Justin Canode", author_email="jcanode@my.gcu.edu", description="A small Neural Network Framework", long_description_content_type="text/markdown", url=...
28.52381
53
0.677796
0
0
0
0
0
0
0
0
266
0.444073
475f6eec7136ec2401074e0d2a574922b79ef08a
1,829
py
Python
cosPreprints.py
leouieda/cospy
fa0994e5a41896cd17f76fdad08b20bdb4dd112a
[ "MIT" ]
null
null
null
cosPreprints.py
leouieda/cospy
fa0994e5a41896cd17f76fdad08b20bdb4dd112a
[ "MIT" ]
8
2019-06-10T12:56:56.000Z
2019-07-02T16:49:40.000Z
cosPreprints.py
leouieda/cospy
fa0994e5a41896cd17f76fdad08b20bdb4dd112a
[ "MIT" ]
null
null
null
import os import sys import utils import extras.downloadStats as stats import extras.downloadManuscript as dm import extras.unpaywall as up def main(): # get the configuration parameters from environment variables cosApiToken = os.environ['cosApiToken'] # for accessing COS API emailAddress = os.environ['...
29.983607
89
0.708037
0
0
0
0
0
0
0
0
889
0.486058
47604d58582e9e00c559605b1ca161c8c2ddf27a
1,212
py
Python
RVFS/account/urls.py
cahudson94/Raven-Valley-Forge-Shop
52f46381eafa9410d8e9c759366ef7490dcb1de9
[ "MIT" ]
2
2018-02-12T01:32:16.000Z
2021-08-23T19:29:08.000Z
RVFS/account/urls.py
cahudson94/Raven-Valley-Forge-Shop
52f46381eafa9410d8e9c759366ef7490dcb1de9
[ "MIT" ]
1
2018-05-23T03:42:20.000Z
2018-05-23T03:42:20.000Z
RVFS/account/urls.py
cahudson94/Raven-Valley-Forge-Shop
52f46381eafa9410d8e9c759366ef7490dcb1de9
[ "MIT" ]
null
null
null
""".""" from django.urls import path, reverse_lazy from account.views import (AccountView, InfoFormView, EditAccountView, AddAddressView, AddressListView, DeleteAddress) from django.con...
43.285714
78
0.634488
0
0
0
0
0
0
0
0
339
0.279703
47615b2e9cbae2e821ca67ff9a73e485fdec4592
209
wsgi
Python
index.wsgi
webgovernor/dungeonsheet
59800249f0394af0fc08d7ca23e68faf9d0d2920
[ "MIT" ]
null
null
null
index.wsgi
webgovernor/dungeonsheet
59800249f0394af0fc08d7ca23e68faf9d0d2920
[ "MIT" ]
null
null
null
index.wsgi
webgovernor/dungeonsheet
59800249f0394af0fc08d7ca23e68faf9d0d2920
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys sys.path.insert(0, '/home/nullism/web/dnd.nullism.com/') from main import app conf = {} conf['SECRET_KEY'] = 'CHANGEME' app.config.update(conf) application = app
14.928571
56
0.712919
0
0
0
0
0
0
0
0
79
0.37799
4763416997df781bd573e3c234672ddfd3a200da
394
py
Python
examples/spot/sub_account/sub_account_futures_asset_transfer_history.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
512
2021-06-15T08:52:44.000Z
2022-03-31T09:49:53.000Z
examples/spot/sub_account/sub_account_futures_asset_transfer_history.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
75
2021-06-20T13:49:50.000Z
2022-03-30T02:45:31.000Z
examples/spot/sub_account/sub_account_futures_asset_transfer_history.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
156
2021-06-18T11:56:36.000Z
2022-03-29T16:34:22.000Z
#!/usr/bin/env python import logging from binance.spot import Spot as Client from binance.lib.utils import config_logging config_logging(logging, logging.DEBUG) key = "" secret = "" spot_client = Client(key, secret) logging.info( spot_client.sub_account_futures_asset_transfer_history( email="", ...
20.736842
73
0.730964
0
0
0
0
0
0
0
0
78
0.19697
476347b456fac42ec555a12cc44e71eae3a0e9fc
236
py
Python
src/file_format/utils/json_util.py
tys-hiroshi/test-github-actions-python
c47172949fbdd6ddffe889ca0f91eb11a741021d
[ "MIT" ]
null
null
null
src/file_format/utils/json_util.py
tys-hiroshi/test-github-actions-python
c47172949fbdd6ddffe889ca0f91eb11a741021d
[ "MIT" ]
2
2021-05-21T09:36:42.000Z
2021-05-28T03:55:44.000Z
src/file_format/utils/json_util.py
tys-hiroshi/test-github-actions-python
c47172949fbdd6ddffe889ca0f91eb11a741021d
[ "MIT" ]
1
2020-08-06T06:21:34.000Z
2020-08-06T06:21:34.000Z
# -*- coding:utf-8 -*- import json class JsonUtil(object): def __init__(self, jsonFilePath): with open(jsonFilePath, 'r', encoding='utf-8') as f: self.content = json.load(f) if __name__ == '__main__': pass
21.454545
60
0.610169
162
0.686441
0
0
0
0
0
0
42
0.177966
4765153b7928cbef30b909b4bfadf17b59957999
864
py
Python
jubox/test/notebook/test_get.py
Miksus/jubox
daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5
[ "MIT" ]
1
2020-04-26T05:18:45.000Z
2020-04-26T05:18:45.000Z
jubox/test/notebook/test_get.py
Miksus/jubox
daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5
[ "MIT" ]
null
null
null
jubox/test/notebook/test_get.py
Miksus/jubox
daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5
[ "MIT" ]
null
null
null
import pytest from jubox import JupyterNotebook, RawCell, CodeCell, MarkdownCell def test_get_tags(): nb = JupyterNotebook([ RawCell("first cell"), RawCell("second cell", tags=["tagged"]), RawCell("third cell", taggs=["Not this", "tagged"]), ]) nb_of_tags = nb.get(tags=["tagged"]...
32
66
0.653935
0
0
0
0
0
0
0
0
166
0.19213
476520ec9bb115901083a55e2fef94cc44775b6c
2,453
py
Python
azure-mgmt/tests/test_graphrbac.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt/tests/test_graphrbac.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt/tests/test_graphrbac.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft. 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 #...
37.738462
92
0.622911
1,402
0.571079
0
0
1,123
0.457434
0
0
952
0.38778
47679dc98d3116e71ccabc039214caa5e8184ec0
5,556
py
Python
HudlProject/HudlProject.py
zifanyang/Hudl-Python-Selenium-Project
9f4427e2c4da39e3432e4432da2d40464cdbb60b
[ "MIT" ]
null
null
null
HudlProject/HudlProject.py
zifanyang/Hudl-Python-Selenium-Project
9f4427e2c4da39e3432e4432da2d40464cdbb60b
[ "MIT" ]
null
null
null
HudlProject/HudlProject.py
zifanyang/Hudl-Python-Selenium-Project
9f4427e2c4da39e3432e4432da2d40464cdbb60b
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import unittest from time import sleep path="C:\chromedriver.exe" url="http://www.hudl.com/login" #username:nathanyang18@outlook.com #password:test1234 class TestLogin(unittest.TestCase): #Open url def setUp(self): self.driv...
37.04
97
0.656407
5,278
0.949964
0
0
0
0
0
0
1,336
0.240461
476814d4d4009b43a794a354ff6f84a93d5e7e37
1,013
py
Python
project/notes/serializers.py
J0hnGann0n/modern-django
a8f51806b3f6903847a20b7241044d3a88f4a775
[ "MIT" ]
1
2017-06-22T22:35:07.000Z
2017-06-22T22:35:07.000Z
project/notes/serializers.py
J0hnGann0n/modern-django
a8f51806b3f6903847a20b7241044d3a88f4a775
[ "MIT" ]
null
null
null
project/notes/serializers.py
J0hnGann0n/modern-django
a8f51806b3f6903847a20b7241044d3a88f4a775
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from rest_framework import serializers # MODEL IMPORTS from project.notes.models import Note, NoteItem class UserSerializer(serializers.HyperlinkedModelSerializer): notes = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='note-detail') cla...
29.794118
103
0.702863
856
0.845015
0
0
0
0
0
0
136
0.134255
4768a467a8a3d8637a1d9c22d0a7cdad0dc93e1c
4,286
py
Python
src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py
aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract
50e54945032d0eb4b47d9072d4c1d66cd169070a
[ "MIT-0" ]
null
null
null
src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py
aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract
50e54945032d0eb4b47d9072d4c1d66cd169070a
[ "MIT-0" ]
null
null
null
src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py
aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract
50e54945032d0eb4b47d9072d4c1d66cd169070a
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # vim: tabstop=2 shiftwidth=2 softtabstop=2 expandtab import sys import json import os import urllib.parse import traceback import datetime import boto3 DRY_RUN = (os.getenv('DRY_RUN', 'false') == 'true') AWS_REGION = os.getenv('REGION_NAME', 'us-east-1') KINESIS_STR...
27.651613
112
0.614792
0
0
0
0
0
0
0
0
1,757
0.409939
4768b72ec107983342fe43250644f8d66a20e6f5
483
py
Python
example/retreive_soil_data.py
Smeaol22/ssurgo_provider
63bc2251ef031da013af4cf0b252cc48cad4965e
[ "BSD-2-Clause" ]
null
null
null
example/retreive_soil_data.py
Smeaol22/ssurgo_provider
63bc2251ef031da013af4cf0b252cc48cad4965e
[ "BSD-2-Clause" ]
null
null
null
example/retreive_soil_data.py
Smeaol22/ssurgo_provider
63bc2251ef031da013af4cf0b252cc48cad4965e
[ "BSD-2-Clause" ]
null
null
null
from pathlib import Path from src.main import retrieve_soil_composition # This example is base on geodatabase obtain from ssurgo on Ohio area ssurgo_folder_path = Path().absolute().parent / 'resources' / 'SSURGO' / 'soils_GSSURGO_oh_3905571_01' \ / 'soils' / 'gssurgo_g_oh' / 'gSSURGO_OH.gdb' coor...
43.909091
104
0.732919
0
0
0
0
0
0
0
0
154
0.318841
476b0de22ff656e62822acafc870dbc852e2d7da
592
py
Python
dynamic_programming_1/solution/1010.py
gpgun0/baekjoon_
0a3e87b9eafe1a6af4234ebbd2eebb7f67156414
[ "MIT" ]
null
null
null
dynamic_programming_1/solution/1010.py
gpgun0/baekjoon_
0a3e87b9eafe1a6af4234ebbd2eebb7f67156414
[ "MIT" ]
null
null
null
dynamic_programming_1/solution/1010.py
gpgun0/baekjoon_
0a3e87b9eafe1a6af4234ebbd2eebb7f67156414
[ "MIT" ]
null
null
null
class Solution: def combination(self, m, n): if dp[m][n]: return dp[m][n] if m <= n: dp[m][n] = 1 return dp[m][n] if n == 1: dp[m][n] = m return dp[m][n] dp[m][n] = self.combination(m-1, n-1)...
22.769231
73
0.429054
478
0.807432
0
0
0
0
0
0
0
0
476bf06f808044f61843876f04c9e9d7d4868ec8
901
py
Python
palindrome_test.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
palindrome_test.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
palindrome_test.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
import unittest from palindrome import is_palindrome class TestPalindrome(unittest.TestCase): def test_even_numbers(self): self.assertTrue(is_palindrome('toot')) def test_odd_numbers(self): self.assertTrue(is_palindrome('tot')) def test_simple_values(self): self.assertTrue(is_pal...
30.033333
111
0.703663
796
0.883463
0
0
0
0
0
0
221
0.245283
476d9258256823afd9857d168e1439ac9c883a29
1,738
py
Python
fireroadApi/fireroad_utils.py
zhang-lucy/coursehose
21cbda0e7cc12a9d201585dbdd53d2eeacfade96
[ "MIT" ]
1
2020-09-20T17:29:24.000Z
2020-09-20T17:29:24.000Z
fireroadApi/fireroad_utils.py
zhang-lucy/coursehose
21cbda0e7cc12a9d201585dbdd53d2eeacfade96
[ "MIT" ]
null
null
null
fireroadApi/fireroad_utils.py
zhang-lucy/coursehose
21cbda0e7cc12a9d201585dbdd53d2eeacfade96
[ "MIT" ]
null
null
null
import requests import json import re def get_course_requirements(course_id): link = "http://fireroad.mit.edu/requirements/get_json/" + course_id r = requests.get(link) j = r.json()["reqs"] return j def get_all_course_requirements(): major_reqs = {} major_id_link = "https://fireroad.mit.edu/requirements/list_...
28.966667
100
0.733026
0
0
0
0
0
0
0
0
578
0.332566
476df3fbd08fe0e200196618406d29ff175f3d41
4,423
py
Python
examples/compare_transactions_speed_with_hive.py
TheCrazyGM/bhive
1494e90a99123ecfc5efbd927258f9ba59443e2e
[ "MIT" ]
2
2020-03-21T23:50:22.000Z
2020-03-25T19:10:48.000Z
examples/compare_transactions_speed_with_hive.py
TheCrazyGM/bhive
1494e90a99123ecfc5efbd927258f9ba59443e2e
[ "MIT" ]
null
null
null
examples/compare_transactions_speed_with_hive.py
TheCrazyGM/bhive
1494e90a99123ecfc5efbd927258f9ba59443e2e
[ "MIT" ]
1
2020-03-21T23:50:25.000Z
2020-03-21T23:50:25.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import bytes from builtins import chr from builtins import range from builtins import super import random from pprint import pprint from binascii import hexl...
34.286822
101
0.628759
1,824
0.41239
0
0
0
0
0
0
509
0.11508
476f15ab6f480fa347487aaf78b33358b554c7b0
2,509
py
Python
src/main/python/widgets/dialogs/rename_user_dialog.py
ivov/admin-stock
e2e1d53436878b6db68dcb85d0cca31223066ffb
[ "MIT" ]
8
2019-11-02T22:32:30.000Z
2021-08-16T08:29:39.000Z
src/main/python/widgets/dialogs/rename_user_dialog.py
ivov/admin-stock
e2e1d53436878b6db68dcb85d0cca31223066ffb
[ "MIT" ]
null
null
null
src/main/python/widgets/dialogs/rename_user_dialog.py
ivov/admin-stock
e2e1d53436878b6db68dcb85d0cca31223066ffb
[ "MIT" ]
3
2019-12-10T16:23:49.000Z
2021-11-01T20:22:16.000Z
from PyQt5 import QtWidgets, QtCore from utils.styling import rename_user_dialog_title_style class RenameUserDialog(QtWidgets.QDialog): def __init__(self, parent=None): super(RenameUserDialog, self).__init__(parent) self.setWindowFlags( QtCore.Qt.Dialog | QtCore.Qt.Customiz...
35.842857
77
0.687923
2,416
0.961783
0
0
0
0
0
0
123
0.048965
4771eb8f2f256c1d66ba7f41f070c11396af58fb
6,053
py
Python
bluetooth-audio/btspeaker.py
b23prodtm/balena-sound
1ee886241485a302f88176c7dd880e986cf768c3
[ "Apache-2.0" ]
null
null
null
bluetooth-audio/btspeaker.py
b23prodtm/balena-sound
1ee886241485a302f88176c7dd880e986cf768c3
[ "Apache-2.0" ]
3
2019-11-20T17:49:37.000Z
2020-06-01T23:09:10.000Z
bluetooth-audio/btspeaker.py
b23prodtm/balena-sound
1ee886241485a302f88176c7dd880e986cf768c3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import bluetooth, sys, os, re, subprocess, time, getopt BT_BLE = int(os.getenv('BT_BLE', 0)) BT_SCAN_TIMEOUT = int(os.getenv('BT_SCAN_TIMEOUT', 2)) if BT_BLE: from gattlib import DiscoveryService from ble_client import BleClient def parse_argv (myenv, argv): usage = 'Command line args: ...
38.801282
123
0.544358
0
0
0
0
0
0
0
0
1,885
0.311416
477431852e85302c53a80c1bc87e296848214e08
267
py
Python
scripts/turnOnOffGPIO.py
yomboprime/RaspiGarage
c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed
[ "MIT" ]
null
null
null
scripts/turnOnOffGPIO.py
yomboprime/RaspiGarage
c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed
[ "MIT" ]
null
null
null
scripts/turnOnOffGPIO.py
yomboprime/RaspiGarage
c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if not os.getegid() == 0: sys.exit( 'Script must be run as root' ) from pyA20.gpio import gpio from pyA20.gpio import port pin = port.PA12 gpio.init() gpio.setcfg(pin, gpio.OUTPUT) gpio.output(pin, int(sys.argv[1]))
16.6875
44
0.700375
0
0
0
0
0
0
0
0
49
0.183521
4774eea99e7f6cd1515737dfa6e6653b0d95171b
4,369
py
Python
bedpe_longrange/bedpe2longrange.py
ChenfuShi/tools_for_HiChIP
0faa8b26a7c53922dd2de977d7df442dd2caeed7
[ "BSD-3-Clause" ]
5
2019-05-09T19:31:26.000Z
2021-12-06T02:57:48.000Z
bedpe_longrange/bedpe2longrange.py
ChenfuShi/tools_for_HiChIP
0faa8b26a7c53922dd2de977d7df442dd2caeed7
[ "BSD-3-Clause" ]
null
null
null
bedpe_longrange/bedpe2longrange.py
ChenfuShi/tools_for_HiChIP
0faa8b26a7c53922dd2de977d7df442dd2caeed7
[ "BSD-3-Clause" ]
4
2019-06-01T11:30:41.000Z
2022-03-11T02:01:52.000Z
######################################### # Author: Chenfu Shi # Email: chenfu.shi@postgrad.manchester.ac.uk # BSD-3-Clause License # Copyright 2019 Chenfu Shi # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ...
48.010989
757
0.676127
0
0
0
0
0
0
0
0
2,597
0.594415
4775e3e337b36b06c6774e19748eb643d6196b5f
11,501
py
Python
0_get_Fink_features_xmatch.py
anaismoller/KNTrap
9e1bc85576ab16c4cb6d4d4da74482061029d207
[ "Apache-2.0" ]
null
null
null
0_get_Fink_features_xmatch.py
anaismoller/KNTrap
9e1bc85576ab16c4cb6d4d4da74482061029d207
[ "Apache-2.0" ]
null
null
null
0_get_Fink_features_xmatch.py
anaismoller/KNTrap
9e1bc85576ab16c4cb6d4d4da74482061029d207
[ "Apache-2.0" ]
null
null
null
# Year 2022 # Authors: Anais Möller based on fink-broker.org code import os import sys import glob import logging import argparse import numpy as np import pandas as pd from tqdm import tqdm from pathlib import Path from functools import partial from astropy.table import Table from astropy import units as u from astro...
31.423497
87
0.578558
0
0
0
0
0
0
0
0
3,105
0.269953
4777fbaa35309f630f4ae07e90c983a041f15298
1,990
py
Python
2017/day11/src/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
3
2018-04-08T10:40:52.000Z
2018-12-06T02:37:23.000Z
2017/day11/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
2
2018-04-10T11:44:18.000Z
2022-02-22T21:25:54.000Z
2017/day11/src/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 '''Day 11 of the 2017 advent of code''' class HexCounter(): '''A hex maze walker object for keeping track of our position''' def __init__(self): self.x = 0 self.y = 0 self.z = 0 self.furthest = 0 def move(self, direction): ...
20.515464
65
0.477387
1,243
0.624623
0
0
0
0
0
0
439
0.220603
477aed8ccac48ab95361c65ae3e38de923016db9
8,291
py
Python
kai_reduce.py
skterry/jackknifeKAI
8c85b32acd9166d87e7f5dc78943f2ad38f19809
[ "MIT" ]
null
null
null
kai_reduce.py
skterry/jackknifeKAI
8c85b32acd9166d87e7f5dc78943f2ad38f19809
[ "MIT" ]
null
null
null
kai_reduce.py
skterry/jackknifeKAI
8c85b32acd9166d87e7f5dc78943f2ad38f19809
[ "MIT" ]
null
null
null
# Copied from /u/jlu/data/microlens/20aug22os/reduce/reduce.py ################################################## # # General Notes: # -- python uses spaces to figure out the beginnings # and ends of functions/loops/etc. So make sure # to preserve spacings properly (indent). This # is easy to do if you use em...
34.119342
130
0.621517
0
0
0
0
0
0
0
0
6,039
0.72838
477d41ca1c89e9e563388b140b23288438ed0562
7,613
py
Python
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
1
2021-12-05T13:26:17.000Z
2021-12-05T13:26:17.000Z
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
null
null
null
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
null
null
null
import tkinter as tk from PIL import Image, ImageTk from game import Game from threading import Thread import time from gameSaver import sendFull from Client import DummyAgent class ConsoleAgent: """Agent running in the console for testing only""" def render(self, state): "render the state to the conso...
31.853556
104
0.523053
7,432
0.976225
0
0
0
0
0
0
1,075
0.141206
477f20974aea53dd1ab2a88bb5960250f6eba452
1,007
py
Python
Leetcoding-Actions/Explore-Monthly-Challenges/2020-12/07-spiralMatrix-ii.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
Leetcoding-Actions/Explore-Monthly-Challenges/2020-12/07-spiralMatrix-ii.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
Leetcoding-Actions/Explore-Monthly-Challenges/2020-12/07-spiralMatrix-ii.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
class Solution: def generateMatrix(self, n: int) -> List[List[int]]: matrix = [[None] * n for _ in range(n)] startRow, endRow = 0, n - 1 startCol, endCol = 0, n - 1 count = 1 while startRow <= endRow and startCol <= endCol: for col ...
32.483871
59
0.440914
1,006
0.999007
0
0
0
0
0
0
0
0
47809d65f9b6492472bef06377ad2f44a10c127c
1,742
py
Python
motto/core.py
attakei/jamproject
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
null
null
null
motto/core.py
attakei/jamproject
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
1
2020-01-05T14:04:35.000Z
2020-01-05T14:04:35.000Z
motto/core.py
attakei/motto
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
null
null
null
"""Core classes for motto """ from typing import Any, Callable, ClassVar, Dict, List, Optional, Tuple, Union from typing_extensions import Protocol, TypedDict class Message(object): """Reporting message class. This object is appended for paragraphes by skills. Responsibility is only telling event "what" ...
22.050633
78
0.588978
1,449
0.831803
0
0
0
0
0
0
434
0.249139
4780e099e5c87546b20f86a673d8da78571df7e4
361
py
Python
tests/test_bad_seeds.py
jklynch/diffrascape
350bed352fa6c9b30739e3748b7ea57b365f1944
[ "BSD-3-Clause" ]
null
null
null
tests/test_bad_seeds.py
jklynch/diffrascape
350bed352fa6c9b30739e3748b7ea57b365f1944
[ "BSD-3-Clause" ]
null
null
null
tests/test_bad_seeds.py
jklynch/diffrascape
350bed352fa6c9b30739e3748b7ea57b365f1944
[ "BSD-3-Clause" ]
null
null
null
from diffrascape.env import BadSeeds def test_construct(): bad_seeds = BadSeeds() bad_seeds_states = bad_seeds.states() print(f"### states: {bad_seeds_states}") assert bad_seeds_states["shape"][0] == 6 bad_seeds_actions = bad_seeds.actions() print(f"### actions: {bad_seeds_actions}") ass...
25.785714
47
0.695291
0
0
0
0
0
0
0
0
87
0.240997
47846ea157171c9a8c93b748212ec54fd187b2e7
1,418
py
Python
samples/bot-handoff-es6/emulate-users.py
microsoftly/botbuilder-js
538cb479b8596cdc209f5d70aa1a9000a0e6b360
[ "MIT" ]
1
2021-03-16T05:14:30.000Z
2021-03-16T05:14:30.000Z
samples/bot-handoff-es6/emulate-users.py
microsoftly/botbuilder-js
538cb479b8596cdc209f5d70aa1a9000a0e6b360
[ "MIT" ]
1
2018-03-26T05:25:54.000Z
2018-03-26T05:26:18.000Z
samples/bot-handoff-es6/emulate-users.py
microsoftly/botbuilder-js
538cb479b8596cdc209f5d70aa1a9000a0e6b360
[ "MIT" ]
1
2018-03-26T04:16:42.000Z
2018-03-26T04:16:42.000Z
#!/usr/bin/python import json, subprocess, sys, platform from os.path import expanduser if len (sys.argv) < 2 : print("Usage: python " + sys.argv[0] + " username(s)") sys.exit (1) HOME=expanduser("~") # determine paths SYSTEM=platform.system() if SYSTEM == 'Darwin': SERVERJSON=HOME+'/Library/Application ...
33.761905
106
0.673484
0
0
0
0
0
0
0
0
603
0.425247
4784a44a26bc244fa67aa7f304ae6b3a0ac78c99
7,141
py
Python
originstamp_client/models/timestamp_response.py
OriginStampTimestamping/originstamp-python-client
a13c3d51eac6dd3a920b7b74e079531fe7ab17a2
[ "MIT" ]
9
2018-11-06T06:43:46.000Z
2020-09-26T03:29:41.000Z
originstamp_client/models/timestamp_response.py
OriginStampTimestamping/originstamp-python-client
a13c3d51eac6dd3a920b7b74e079531fe7ab17a2
[ "MIT" ]
1
2019-05-06T10:49:23.000Z
2019-05-13T09:30:01.000Z
originstamp_client/models/timestamp_response.py
OriginStampTimestamping/originstamp-python-client
a13c3d51eac6dd3a920b7b74e079531fe7ab17a2
[ "MIT" ]
1
2020-10-02T17:31:47.000Z
2020-10-02T17:31:47.000Z
# coding: utf-8 """ OriginStamp Client OpenAPI spec version: 3.0 OriginStamp Documentation: https://docs.originstamp.com Contact: mail@originstamp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class TimestampResponse(...
31.183406
214
0.604537
6,844
0.958409
0
0
3,701
0.518275
0
0
3,993
0.559165
4785a94446b7de09fa814de98568043480d82523
68,531
py
Python
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/EightThreads_sjeng/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/EightThreads_sjeng/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/EightThreads_sjeng/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate...
74.979212
124
0.681721
0
0
0
0
0
0
0
0
46,943
0.684989
4785cd8056f1f3e45758e79a377162fd96261ea3
6,450
py
Python
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-13 22:10 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import folder_tree.models import mptt.fields class Migration(migrations.Migration): initial ...
47.426471
332
0.582171
6,181
0.958295
0
0
0
0
0
0
975
0.151163
47867c6666c70dddf7e4d9d1220c5f5b48b81ac1
428
py
Python
groupdocs_viewer_cloud/apis/__init__.py
groupdocs-viewer-cloud/groupdocs-viewer-cloud-python
e734944b0b84c91804aa29e4ad5619c1a7334188
[ "MIT" ]
1
2020-06-07T12:39:44.000Z
2020-06-07T12:39:44.000Z
groupdocs_viewer_cloud/apis/__init__.py
groupdocs-viewer-cloud/groupdocs-viewer-cloud-python
e734944b0b84c91804aa29e4ad5619c1a7334188
[ "MIT" ]
1
2021-03-24T01:53:23.000Z
2021-03-26T08:20:31.000Z
groupdocs_viewer_cloud/apis/__init__.py
groupdocs-viewer-cloud/groupdocs-viewer-cloud-python
e734944b0b84c91804aa29e4ad5619c1a7334188
[ "MIT" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis from groupdocs_viewer_cloud.apis.file_api import FileApi from groupdocs_viewer_cloud.apis.folder_api import FolderApi from groupdocs_viewer_cloud.apis.info_api import InfoApi from groupdocs_viewer_cloud.apis.license_api import LicenseApi from groupdo...
35.666667
62
0.880841
0
0
0
0
0
0
0
0
27
0.063084
4786a66a40aa4e0d9cb192b3447ac559f77b749b
481
py
Python
models/model.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
models/model.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
models/model.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
from models.wrap_mobilenet import * from models.wrap_resnet import * from models.wrap_vgg import * from models.wrap_alexnet import * def get_model(config="resnet"): if "resnet" in config.backbone: model = get_resnet(config=config) elif "mobilenet" in config.backbone: model = get_mobilenet(confi...
32.066667
41
0.702703
0
0
0
0
0
0
0
0
41
0.085239
4786b42fdf67185bb43692e8ca877d2f9dba7530
4,571
py
Python
models/segnet.py
AntixK/Neural-Blocks
018a44bbb703fc848234b95a3e604576bd9df88f
[ "MIT" ]
3
2019-07-23T12:35:50.000Z
2021-02-23T04:20:31.000Z
models/segnet.py
AntixK/Neural-Blocks
018a44bbb703fc848234b95a3e604576bd9df88f
[ "MIT" ]
null
null
null
models/segnet.py
AntixK/Neural-Blocks
018a44bbb703fc848234b95a3e604576bd9df88f
[ "MIT" ]
1
2019-07-21T06:07:12.000Z
2019-07-21T06:07:12.000Z
import torch import torch.nn as nn from NeuralBlocks.blocks.convnormrelu import ConvNormRelu class segnetDown(nn.Module): def __init__(self, in_channels, out_channels, norm=None, num_conv = 2): super(segnetDown, self).__init__() module = [] if num_conv < 2: raise ValueError("Se...
34.628788
93
0.584992
4,320
0.945089
0
0
0
0
0
0
990
0.216583
4788b5896e827da02e7c6002f5c921308b7b3159
15,484
py
Python
Contents/Resources/parse_log.py
nathangrigg/Latex.bbpackage
f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3
[ "BSD-3-Clause" ]
8
2015-10-21T02:03:28.000Z
2020-12-27T04:04:46.000Z
Contents/Resources/parse_log.py
nathangrigg/Latex.bbpackage
f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3
[ "BSD-3-Clause" ]
null
null
null
Contents/Resources/parse_log.py
nathangrigg/Latex.bbpackage
f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3
[ "BSD-3-Clause" ]
5
2015-01-15T14:01:30.000Z
2021-09-05T20:22:09.000Z
#!/usr/bin/python # This script derived from a piece of the rubber project # http://launchpad.net/rubber # (c) Emmanuel Beffara, 2002--2006 # # Modified by Nathan Grigg, January 2012 import re import string import sys import getopt #---- Log parser ----{{{1 re_loghead = re.compile("This is [0-9a-zA-Z-]*") re_reru...
33.227468
96
0.452855
12,018
0.776156
8,218
0.530741
0
0
0
0
5,291
0.341708
478b01eea05155c0e098a1b65909d95f41833301
5,665
py
Python
barbican-8.0.0/barbican/objects/container_consumer_meta.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
177
2015-01-02T09:35:53.000Z
2022-02-26T01:43:55.000Z
barbican/objects/container_consumer_meta.py
kkutysllb/barbican
7b14d983e0dce6dcffe9781b05c52335b8203fc7
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
barbican/objects/container_consumer_meta.py
kkutysllb/barbican
7b14d983e0dce6dcffe9781b05c52335b8203fc7
[ "Apache-2.0" ]
87
2015-01-13T17:33:40.000Z
2021-11-09T05:30:36.000Z
# Copyright 2018 Fujitsu. # # 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...
44.960317
79
0.642012
4,665
0.823477
0
0
4,711
0.831598
0
0
1,855
0.327449
478b0e311b234d21a0af4f46a1bbc9e444318807
527
py
Python
Lab02_ifelse_and_loops/exercise-17.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
Lab02_ifelse_and_loops/exercise-17.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
Lab02_ifelse_and_loops/exercise-17.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
#This program converts KPH to MPH. #constant CONVERT_FACTOR = 0.6214 #head output print("KPH \t MPH") print("_" * 20) #loop for kph_speed in range (60, 131, 10): #calculation mph_speed = kph_speed * CONVERT_FACTOR #output print(kph_speed, '\t', format(mph_speed, '.1f')) input("\nPress any key to ...
15.5
52
0.588235
0
0
0
0
0
0
0
0
315
0.597723
478d445e00859e47118663015c1dca1d382e8e84
3,841
py
Python
tests/sentry/api/endpoints/test_project_rules_configuration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_rules_configuration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_rules_configuration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.core.urlresolvers import reverse from mock import Mock, patch from sentry.rules.registry import RuleRegistry from sentry.testutils import APITestCase class ProjectRuleConfigurationTest(APITestCase): def setUp(self): self.project.flags.has_issue_alerts_t...
36.235849
100
0.640198
3,635
0.946368
0
0
448
0.116636
0
0
616
0.160375
478df9b66c40c191cbb8cf8a0885ef1863ea295a
3,297
py
Python
train-script.py
praepunctis/chordtext
b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b
[ "MIT" ]
1
2020-12-02T10:04:08.000Z
2020-12-02T10:04:08.000Z
train-script.py
praepunctis/chordtext
b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b
[ "MIT" ]
null
null
null
train-script.py
praepunctis/chordtext
b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b
[ "MIT" ]
null
null
null
# train-script.py # Grab data from movie_data.csv and train a ML model. # Kelly Fesler (c) Nov 2020 # Modified from Soumya Gupta (c) Jan 2020 # STEP 1: import ------------------------------------------- # Import libraries import urllib.request import os import pandas as pd import numpy as np import nltk import sklear...
28.422414
73
0.668487
0
0
0
0
0
0
0
0
1,640
0.497422
478eeb89ce278e9a0867db0565808bfedbcc11dc
10,947
py
Python
roerich/algorithms.py
HSE-LAMBDA/roerich
17e178292593d1ea6a821b99705620ba066abd2a
[ "BSD-2-Clause" ]
10
2020-12-01T13:58:27.000Z
2022-01-17T12:01:31.000Z
roerich/algorithms.py
HSE-LAMBDA/roerich
17e178292593d1ea6a821b99705620ba066abd2a
[ "BSD-2-Clause" ]
3
2021-03-07T14:06:22.000Z
2022-01-18T14:23:16.000Z
roerich/algorithms.py
HSE-LAMBDA/roerich
17e178292593d1ea6a821b99705620ba066abd2a
[ "BSD-2-Clause" ]
2
2020-12-01T14:04:36.000Z
2022-03-24T12:52:32.000Z
from abc import ABCMeta, abstractmethod from collections import defaultdict from copy import deepcopy from typing import Union, Type, Any, Tuple import numpy as np import torch import torch.nn as nn from scipy.signal import find_peaks_cwt from .net import MyNN, MyNNRegressor from .utils import autoregression_matrix, ...
34.863057
128
0.567279
10,483
0.957614
0
0
592
0.054079
0
0
3,451
0.315246
479004b6cfb780abc09aa80bc0894ff64e48376b
182
py
Python
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
11,058
2018-05-29T07:40:06.000Z
2022-03-31T11:38:42.000Z
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
2,105
2018-06-01T10:07:16.000Z
2022-03-31T14:56:42.000Z
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
914
2018-07-27T09:36:14.000Z
2022-03-31T19:56:34.000Z
import types from testutils import assert_raises ns = types.SimpleNamespace(a=2, b='Rust') assert ns.a == 2 assert ns.b == "Rust" with assert_raises(AttributeError): _ = ns.c
16.545455
41
0.714286
0
0
0
0
0
0
0
0
12
0.065934
4790692759f37d6994f35811b0b4dd07154a5efb
1,664
py
Python
1018.py
idarlenearaujo/URI_Python
c4517f90f5310894347edcf58a28d3e569a89a2b
[ "MIT" ]
null
null
null
1018.py
idarlenearaujo/URI_Python
c4517f90f5310894347edcf58a28d3e569a89a2b
[ "MIT" ]
null
null
null
1018.py
idarlenearaujo/URI_Python
c4517f90f5310894347edcf58a28d3e569a89a2b
[ "MIT" ]
null
null
null
# entrada value = int(input()) # variaveis cashier = True valueI = value n1 = 0 n2 = 0 n5 = 0 n10 = 0 n20 = 0 n50 = 0 n100 = 0 # laço quando cashier == False sai while cashier == True: # condicionais if value >= 100: valueA = value // 100 n100 = valueA valueB = ...
20.292683
183
0.485577
0
0
0
0
0
0
0
0
371
0.222555
4790afe07c99445354df0a84235383f75387a69b
2,164
py
Python
selene/common/delegation.py
KalinkinaMaria/selene
859e1102c85740b52af8d0f08dd6b6490b4bd2ff
[ "MIT" ]
null
null
null
selene/common/delegation.py
KalinkinaMaria/selene
859e1102c85740b52af8d0f08dd6b6490b4bd2ff
[ "MIT" ]
1
2021-06-02T04:21:17.000Z
2021-06-02T04:21:17.000Z
selene/common/delegation.py
vkarpenko/selene
4776357430c940be38f38be9981006dd156f9730
[ "MIT" ]
null
null
null
from abc import ABCMeta def _make_delegator_method(name): def delegator(self, *args, **kwargs): return getattr(self.__delegate__, name)(*args, **kwargs) # pragma: no cover # todo: consider using __call__() instead of __delegate__ # in Python delegates are objects with __call__ method.. ...
34.903226
119
0.657116
1,064
0.491682
0
0
0
0
0
0
779
0.359982
47928a4b5a14d921593fc3e938a7ef189730aea5
186
py
Python
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from pymystem3 import Mystem # text = "some good newses" text = "Красивая мама красиво мыла раму" m = Mystem() lemmas = m.lemmatize(text) print(''.join(lemmas))
20.666667
40
0.677419
0
0
0
0
0
0
0
0
112
0.525822
4793cb0e3e72768ba54484744717ebd0208905a2
795
py
Python
backend/appengine/routes/desenhos/edit.py
faahbih/projetoolivarts
3dfd955fe44d58a38b85b6643440a600b0bde81a
[ "MIT" ]
null
null
null
backend/appengine/routes/desenhos/edit.py
faahbih/projetoolivarts
3dfd955fe44d58a38b85b6643440a600b0bde81a
[ "MIT" ]
null
null
null
backend/appengine/routes/desenhos/edit.py
faahbih/projetoolivarts
3dfd955fe44d58a38b85b6643440a600b0bde81a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from config.template_middleware import TemplateResponse from desenho.desenho_model import Desenho, DesenhoForm from gaecookie.decorator import no_csrf #from pedido.pedido_model import Pedido, PedidoForm from routes import desenhos from tek...
34.565217
63
0.783648
0
0
0
0
216
0.271698
0
0
127
0.159748
4794b8cc274b020b95e48eb002f538acf5d6b189
4,484
py
Python
data/create_train_test_split.py
chmo2019/CUB-200-with-TFOD-API
8f46f2f91085f3e35829f8c7ce0289771ebb0294
[ "MIT" ]
null
null
null
data/create_train_test_split.py
chmo2019/CUB-200-with-TFOD-API
8f46f2f91085f3e35829f8c7ce0289771ebb0294
[ "MIT" ]
null
null
null
data/create_train_test_split.py
chmo2019/CUB-200-with-TFOD-API
8f46f2f91085f3e35829f8c7ce0289771ebb0294
[ "MIT" ]
null
null
null
# import necessary libraries import csv from PIL import Image import argparse # create argument parser with PATH argument ap = argparse.ArgumentParser() ap.add_argument('-p', '--path', required=True, help='''PATH to CUB_200_2011 folder i.e. folder with CUB 200 csv files (make sure to include full path name for so ...
32.258993
94
0.594558
0
0
0
0
0
0
0
0
1,669
0.372212
4795e4597ca4cff70deec87c952fb0febb0256f0
3,487
py
Python
homework/1-AE/losses.py
Penchekrak/DeepGenerativeModels
7ee829682e8ed51bc637e2c6def0b9f810f384bc
[ "MIT" ]
null
null
null
homework/1-AE/losses.py
Penchekrak/DeepGenerativeModels
7ee829682e8ed51bc637e2c6def0b9f810f384bc
[ "MIT" ]
null
null
null
homework/1-AE/losses.py
Penchekrak/DeepGenerativeModels
7ee829682e8ed51bc637e2c6def0b9f810f384bc
[ "MIT" ]
null
null
null
import torch from torch import nn class Criterion: def __call__(self, model: nn.Module, batch_x: torch.Tensor, batch_y: torch.Tensor, *args, **kwargs): pass class Image2ImageMSELoss(Criterion): def __init__(self): self.mse_loss = nn.MSELoss() def __repr__(self): return repr(sel...
32.896226
104
0.634069
3,363
0.964439
0
0
0
0
0
0
37
0.010611
4795fb5c060e1fe6b6b35dd753478649d709249e
160
py
Python
src/app/services/users/__init__.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
null
null
null
src/app/services/users/__init__.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
43
2021-12-02T21:26:01.000Z
2022-02-21T08:51:06.000Z
src/app/services/users/__init__.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
null
null
null
__all__ = [ 'IUserService', 'UserService', ] from services.users.iuser_service import IUserService from services.users.user_service import UserService
20
53
0.775
0
0
0
0
0
0
0
0
27
0.16875
47981ad00b6fbe330d40b7fd3c56d0ca049b684c
6,190
py
Python
core/domain/wipeout_service_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
1
2021-01-22T03:24:52.000Z
2021-01-22T03:24:52.000Z
core/domain/wipeout_service_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
null
null
null
core/domain/wipeout_service_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
1
2020-06-25T21:43:01.000Z
2020-06-25T21:43:01.000Z
# Copyright 2019 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
42.108844
80
0.745073
4,949
0.799515
0
0
0
0
0
0
931
0.150404
4798901a83af76dc1807e8d5ec48f5223c016346
1,109
py
Python
drf_to_s3/middleware.py
treyhunner/drf-to-s3
2384b7e277da0e795ab9e0241e829bcc4ca4dc77
[ "MIT" ]
28
2015-01-15T18:31:24.000Z
2018-11-08T07:33:42.000Z
drf_to_s3/middleware.py
treyhunner/drf-to-s3
2384b7e277da0e795ab9e0241e829bcc4ca4dc77
[ "MIT" ]
10
2020-01-01T07:26:19.000Z
2021-06-25T15:26:53.000Z
drf_to_s3/middleware.py
treyhunner/drf-to-s3
2384b7e277da0e795ab9e0241e829bcc4ca4dc77
[ "MIT" ]
7
2015-01-29T20:59:29.000Z
2017-04-24T16:05:48.000Z
class UploadPrefixMiddleware(object): ''' Sets a cookie with the upload prefix. To be agnostic about your method of user authentication, this is handled using middleware. It can't be in a signal, since the signal handler doesn't have access to the response. In most applications, the client alr...
32.617647
85
0.682597
1,108
0.999098
0
0
0
0
0
0
604
0.544635
479926439a3bedce30e4792e3973470d8b31f04e
14,157
py
Python
deepcomp/util/env_setup.py
CN-UPB/DeepCoMP
f9f64873184bb53b5687ae62f8ba2b84da423692
[ "MIT" ]
19
2021-03-17T12:59:48.000Z
2022-03-24T09:04:32.000Z
deepcomp/util/env_setup.py
CN-UPB/DeepCoMP
f9f64873184bb53b5687ae62f8ba2b84da423692
[ "MIT" ]
1
2021-03-08T16:27:49.000Z
2021-03-08T16:27:49.000Z
deepcomp/util/env_setup.py
CN-UPB/DeepCoMP
f9f64873184bb53b5687ae62f8ba2b84da423692
[ "MIT" ]
6
2021-01-25T19:34:18.000Z
2022-03-20T05:56:33.000Z
"""Utility module for setting up different envs""" import numpy as np import structlog from shapely.geometry import Point from ray.rllib.agents.ppo import DEFAULT_CONFIG from ray.rllib.env.multi_agent_env import MultiAgentEnv from deepcomp.util.constants import SUPPORTED_ENVS, SUPPORTED_AGENTS, SUPPORTED_SHARING, SUPP...
44.37931
128
0.67034
0
0
0
0
0
0
0
0
5,216
0.36844
4799c59de86fb0c7aac927367ccd22e4581ad71b
905
py
Python
star_types/parameters.py
annalieNK/star-types
194ffa6f03db175ae8ac6fbc912bb8a45c52cbfe
[ "MIT" ]
null
null
null
star_types/parameters.py
annalieNK/star-types
194ffa6f03db175ae8ac6fbc912bb8a45c52cbfe
[ "MIT" ]
null
null
null
star_types/parameters.py
annalieNK/star-types
194ffa6f03db175ae8ac6fbc912bb8a45c52cbfe
[ "MIT" ]
null
null
null
def parameters(model_type): if model_type == 'random forest': param_grid = { 'classifier__estimator__n_estimators': [50, 100], 'classifier__estimator__max_features' :['sqrt', 'log2'], 'classifier__estimator__max_depth' : [4,6,8] } elif model_type == 'logistic...
36.2
69
0.581215
0
0
0
0
0
0
0
0
406
0.448619
479ba82b2ef03b26d431347ee226aa3e2162ff17
221
py
Python
PYTHON/Exemplos/Aula 1/Ex004.py
B1linha/ADS---Mackenzie
0dc53418ff7580836f6a64c5370e204e8841d1a9
[ "MIT" ]
null
null
null
PYTHON/Exemplos/Aula 1/Ex004.py
B1linha/ADS---Mackenzie
0dc53418ff7580836f6a64c5370e204e8841d1a9
[ "MIT" ]
null
null
null
PYTHON/Exemplos/Aula 1/Ex004.py
B1linha/ADS---Mackenzie
0dc53418ff7580836f6a64c5370e204e8841d1a9
[ "MIT" ]
null
null
null
""" Faça um programa que receba o salário de um funcionário, calcule e mostre o novo salário, sabende-se que este sofreu um aumento de 25%""" sal = float(input('Salário:')) nsal = sal*1.25 print ('novo salário = ', nsal)
55.25
142
0.710407
0
0
0
0
0
0
0
0
174
0.76652
479c044c04a29437935975e735d0a42de577c613
1,866
py
Python
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
1
2022-01-25T16:36:28.000Z
2022-01-25T16:36:28.000Z
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
null
null
null
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
null
null
null
import numpy as np from numpy import random, linspace, cos, pi import math import random import matplotlib.pyplot as plt from scipy.fft import fft, fftfreq from scipy.fft import rfft, rfftfreq import copy from mpl_toolkits.mplot3d import axes3d from mpl_toolkits import mplot3d from plotly import __version__ import pand...
30.096774
203
0.633976
0
0
0
0
1,134
0.607717
0
0
0
0
479c652f9d6be7f731af9a0eaf026a8198211ed7
1,947
py
Python
src/test/test_cmdparse_qmp.py
dougpuob/qemu-tasker
58a24090016abebcda8e95c382bceaef453ea981
[ "MIT" ]
null
null
null
src/test/test_cmdparse_qmp.py
dougpuob/qemu-tasker
58a24090016abebcda8e95c382bceaef453ea981
[ "MIT" ]
null
null
null
src/test/test_cmdparse_qmp.py
dougpuob/qemu-tasker
58a24090016abebcda8e95c382bceaef453ea981
[ "MIT" ]
null
null
null
import unittest import sys import os import sys import json TEST_DIR = os.path.dirname(os.path.abspath(__file__)) PROJECT_DIR = os.path.abspath(os.path.join(TEST_DIR, os.pardir)) sys.path.insert(0, PROJECT_DIR) from module.cmdparse import cmdargs class test_cmdparse(unittest.TestCase): def __init__(self, methodN...
31.918033
77
0.582435
1,647
0.845917
0
0
0
0
0
0
434
0.222907
479ce552b6ca46a4ea68c0270c6749107ab46cb3
3,498
py
Python
ebbp/ebb_fit_prior.py
uttiyamaji/ebbp
d1b7270b7741cab4b18a9f54b47060f90ac1fc2c
[ "MIT" ]
null
null
null
ebbp/ebb_fit_prior.py
uttiyamaji/ebbp
d1b7270b7741cab4b18a9f54b47060f90ac1fc2c
[ "MIT" ]
null
null
null
ebbp/ebb_fit_prior.py
uttiyamaji/ebbp
d1b7270b7741cab4b18a9f54b47060f90ac1fc2c
[ "MIT" ]
null
null
null
""" ebb_fit_prior : fits a Beta prior by estimating the parameters from the data using method of moments and MLE estimates augment : given data and prior, computes the shrinked estimate, credible intervals and augments those in the given dataframe check_fit : plots the true average and the shrinked average """ impo...
26.104478
129
0.57004
607
0.173528
0
0
618
0.176672
0
0
1,079
0.308462
479df66e863ce32ea10d321a13e0395597727f6a
1,554
py
Python
shopping.py
scharlau/shopping_exercise_p
f6b59ba38408dcd9f66f79814ad6a7df167e8fa1
[ "Unlicense" ]
1
2021-02-23T15:56:22.000Z
2021-02-23T15:56:22.000Z
shopping.py
scharlau/shopping_exercise_p
f6b59ba38408dcd9f66f79814ad6a7df167e8fa1
[ "Unlicense" ]
null
null
null
shopping.py
scharlau/shopping_exercise_p
f6b59ba38408dcd9f66f79814ad6a7df167e8fa1
[ "Unlicense" ]
3
2022-02-23T11:17:12.000Z
2022-03-01T10:22:40.000Z
import sqlite3 from flask import Flask, render_template app = Flask(__name__) # database details - to remove some duplication db_name = 'shopping_data.db' @app.route('/') def index(): return render_template('index.html') @app.route('/customers') def customers(): conn = sqlite3.connect(db_name) conn.row_...
28.254545
70
0.684041
0
0
0
0
1,388
0.893179
0
0
440
0.28314
479e8f21283f73a7284a6977ee7935c8576954ca
3,372
py
Python
Month 01/Week 04/Day 03/a.py
KevinKnott/Coding-Review
6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb
[ "MIT" ]
null
null
null
Month 01/Week 04/Day 03/a.py
KevinKnott/Coding-Review
6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb
[ "MIT" ]
null
null
null
Month 01/Week 04/Day 03/a.py
KevinKnott/Coding-Review
6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb
[ "MIT" ]
null
null
null
# Decode Ways: https://leetcode.com/problems/decode-ways/ # A message containing letters from A-Z can be encoded into numbers using the following mapping: # 'A' -> "1" # 'B' -> "2" # ... # 'Z' -> "26" # To decode an encoded message, all the digits must be grouped then mapped back into letters using the reverse of th...
34.762887
202
0.613582
1,898
0.562871
0
0
0
0
0
0
2,197
0.651542
479ebacd8680e1c9ee8fd4892014756c931c3f71
7,503
py
Python
word2vec.py
online-behaviour/machine-learning
2ff0e83905985ec644699ece44c75dd7422a7426
[ "Apache-2.0" ]
2
2017-08-18T13:14:38.000Z
2021-09-02T07:45:41.000Z
word2vec.py
online-behaviour/machine-learning
2ff0e83905985ec644699ece44c75dd7422a7426
[ "Apache-2.0" ]
null
null
null
word2vec.py
online-behaviour/machine-learning
2ff0e83905985ec644699ece44c75dd7422a7426
[ "Apache-2.0" ]
3
2020-11-18T11:55:45.000Z
2021-04-27T10:02:27.000Z
#!/usr/bin/python -W all """ word2vec.py: process tweets with word2vec vectors usage: word2vec.py [-x] [-m model-file [-l word-vector-length]] -w word-vector-file -T train-file -t test-file notes: - optional model file is a text file from which the word vector file is built - option x writes tokeni...
40.33871
114
0.702786
0
0
0
0
0
0
0
0
2,675
0.356524
479f58c93d75ceaaa8c1e6a8d36c5a44e2d8377b
307
py
Python
methylprep/processing/__init__.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
5
2019-08-28T08:27:16.000Z
2020-03-11T17:20:01.000Z
methylprep/processing/__init__.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
16
2021-04-08T22:02:58.000Z
2022-03-18T17:30:50.000Z
methylprep/processing/__init__.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
3
2020-05-21T10:16:24.000Z
2020-08-30T09:26:52.000Z
from .pipeline import SampleDataContainer, run_pipeline, make_pipeline from .preprocess import preprocess_noob from .postprocess import consolidate_values_for_sheet __all__ = [ 'SampleDataContainer', 'preprocess_noob', 'run_pipeline', 'make_pipeline,', 'consolidate_values_for_sheet' ]
25.583333
70
0.781759
0
0
0
0
0
0
0
0
98
0.319218
47a0a4fbe45ee5f24ba893991497ace327ecbebb
36
py
Python
lib/jnpr/eznc/runstat/__init__.py
cro/py-junos-eznc
4c111476cc8eb7599462379ddf55743ae30bbf5c
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/eznc/runstat/__init__.py
cro/py-junos-eznc
4c111476cc8eb7599462379ddf55743ae30bbf5c
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/eznc/runstat/__init__.py
cro/py-junos-eznc
4c111476cc8eb7599462379ddf55743ae30bbf5c
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
from .rsmaker import RunstatMaker
9
33
0.805556
0
0
0
0
0
0
0
0
0
0
47a1196cb4630db570dad1f74a29081f22292d56
291
py
Python
Day 4/Ex3: Treasure Map.py
Nishi-16-K/100DaysCodeChallenge-Python-
96df953bbc60c2bf8802cf31ed6c593469521482
[ "MIT" ]
1
2021-08-29T12:44:23.000Z
2021-08-29T12:44:23.000Z
Day 4/Ex3: Treasure Map.py
Nishi-16-K/100DaysofCodeChallenge-Python
96df953bbc60c2bf8802cf31ed6c593469521482
[ "MIT" ]
null
null
null
Day 4/Ex3: Treasure Map.py
Nishi-16-K/100DaysofCodeChallenge-Python
96df953bbc60c2bf8802cf31ed6c593469521482
[ "MIT" ]
null
null
null
row1 = ["⬜️","⬜️","⬜️"] row2 = ["⬜️","⬜️","⬜️"] row3 = ["⬜️","⬜️","⬜️"] map = [row1, row2, row3] print(f"{row1}\n{row2}\n{row3}") position = input("Where do you want to put the treasure? ") col = int(position[0]) ro = int(position[1]) map[ro-1][col-1] = "X" print(f"{row1}\n{row2}\n{row3}")
26.454545
59
0.515464
0
0
0
0
0
0
0
0
166
0.507645
47a573807a7fa2158676c40f6ae41faaea77de33
1,809
py
Python
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
3
2022-02-19T07:29:41.000Z
2022-03-03T07:24:14.000Z
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
1
2022-03-13T23:00:19.000Z
2022-03-14T16:12:12.000Z
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
1
2022-02-19T13:32:11.000Z
2022-02-19T13:32:11.000Z
import xml.etree.ElementTree as ET from shared import * # neutral for skin in skins: name = f'{font}/emoji_u1f48f.svg' if skin == 'none' else f'{font}/emoji_u1f48f_{skin}.svg' left = ET.parse(name).getroot() right = ET.parse(name).getroot() remove(left, 2) remove(left, 1) remove(right, 0) w...
32.303571
94
0.661139
0
0
0
0
0
0
0
0
569
0.314538
47a5912698e4015d5f8165df118a9d812fd9c116
488
py
Python
wrong_settings.py
kutayg/gameQuest
1730ea8810a54afff50fbb5eab8fb5290eed6222
[ "MIT" ]
null
null
null
wrong_settings.py
kutayg/gameQuest
1730ea8810a54afff50fbb5eab8fb5290eed6222
[ "MIT" ]
null
null
null
wrong_settings.py
kutayg/gameQuest
1730ea8810a54afff50fbb5eab8fb5290eed6222
[ "MIT" ]
null
null
null
# © 2019 KidsCanCode LLC / All rights reserved. # Game options/settings TITLE = "Jumpy!" WIDTH = 480 HEIGHT = 600 FPS = 60 # Environment options GRAVITY = 9.8 # Player properties PLAYER_ACC = 0.5 PLAYER_FRICTION = -0.01 PLAYER_JUMPPOWER = 10 # Define colors # I changed the screen color to aqua, the platform color t...
20.333333
98
0.684426
0
0
0
0
0
0
0
0
232
0.474438
47a75c9fd27c1c4e7e7447cf693a765246360655
1,446
py
Python
yc164/518.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc164/518.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc164/518.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
def r2i(s): i = 0 result = 0 while i < len(s): a = {'IV': 4, 'IX': 9, 'XL': 40, 'XC': 90, 'CD': 400, 'CM': 900} if s[i:i + 2] in a: result += a[s[i:i + 2]] i += 2 continue b = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} ...
21.58209
77
0.310512
0
0
0
0
0
0
0
0
99
0.068465
47a795b1d3c2fd7990f98fee6d037bc7e104529b
966
py
Python
asynapplicationinsights/channel/abstractions.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
2
2018-08-13T14:26:31.000Z
2019-12-01T01:03:10.000Z
asynapplicationinsights/channel/abstractions.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
4
2018-10-09T20:32:59.000Z
2018-12-09T20:46:09.000Z
asynapplicationinsights/channel/abstractions.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
null
null
null
from asyncio import Queue, QueueEmpty from abc import ABC, abstractmethod from typing import List class TelemetryChannel(ABC): def __init__(self): self._queue = Queue() self._max_length = 500 def get(self): try: return self._queue.get_nowait() except QueueEmpty: ...
21
54
0.555901
865
0.895445
0
0
123
0.127329
467
0.483437
0
0
47a8d279cbfb373533f6a00a0322f66158d1d281
759
py
Python
2021/day3/a.py
vinnymaker18/adventofcode
92d0a6f5a04e6601b6c82ee323565e7327be36f8
[ "MIT" ]
null
null
null
2021/day3/a.py
vinnymaker18/adventofcode
92d0a6f5a04e6601b6c82ee323565e7327be36f8
[ "MIT" ]
null
null
null
2021/day3/a.py
vinnymaker18/adventofcode
92d0a6f5a04e6601b6c82ee323565e7327be36f8
[ "MIT" ]
null
null
null
def processInput(inputFile='input.txt'): return [l.strip() for l in open(inputFile).readlines()] def filter(data, a=1): setA = set(range(len(data))) setB = set(range(len(data))) def count(bit, value, dataset): return set(d for d in dataset if data[d][bit] == value) for bit in range(12): ...
25.3
63
0.571805
0
0
0
0
0
0
0
0
23
0.030303
47ab86e8093f2c1a626207ebde134e3527326fd9
659
py
Python
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
1
2020-07-23T08:48:50.000Z
2020-07-23T08:48:50.000Z
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
6
2020-02-11T23:38:13.000Z
2022-02-10T07:28:07.000Z
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
1
2020-07-23T09:01:29.000Z
2020-07-23T09:01:29.000Z
""" Distributed under the MIT License. See LICENSE.txt for more info. """ from django import template register = template.Library() @register.filter def get_item(dictionary, key): """ Returns the object for that key from a dictionary. :param dictionary: A dictionary object :param key: Key to search ...
22.724138
65
0.704097
0
0
0
0
519
0.787557
0
0
410
0.622155
47ab8c88580963ea081b14afd01ad6eaae957d96
1,091
py
Python
Exercicios/Ex69.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
Exercicios/Ex69.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
Exercicios/Ex69.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
contmaior = 0 contahomi = 0 contamuie = 0 while True: print('CADASTRE UMA PESSOA') print('=-' * 19) idade = int(input('INFORME SUA IDADE: ')) if idade > 18: contmaior += 1 sexo = str(input('INFORME SEU SEXO <<M/F>>: ')).upper().strip()[0] if sexo not in 'MF': while True: ...
33.060606
96
0.542621
0
0
0
0
0
0
0
0
366
0.33303
47ac2e08152553ebc4a73e2f44181a3dfc25e059
165
py
Python
testapp/another_urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
11
2015-01-02T15:44:31.000Z
2021-07-27T06:54:35.000Z
testapp/another_urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
8
2016-02-03T07:07:04.000Z
2022-01-13T00:42:32.000Z
testapp/another_urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
8
2015-02-20T13:51:51.000Z
2021-06-24T19:11:30.000Z
from django.conf.urls import patterns, url from .views import template_test urlpatterns = patterns( '', url(r'^', template_test, name='template_test2'), )
18.333333
52
0.709091
0
0
0
0
0
0
0
0
22
0.133333
47af52c1759d6ca7b81f36810e1191b6fa34e7eb
11,920
py
Python
non_local.py
yuxia201121/ADCTself-attention
77d32034854f64a7aa24d45ae2c4e18f7616cf48
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
non_local.py
yuxia201121/ADCTself-attention
77d32034854f64a7aa24d45ae2c4e18f7616cf48
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
non_local.py
yuxia201121/ADCTself-attention
77d32034854f64a7aa24d45ae2c4e18f7616cf48
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
40.27027
127
0.560906
0
0
0
0
0
0
0
0
6,421
0.538674
47b3262789a56b500e24bd5503fa34b4ab5f6bca
1,031
py
Python
evaluation/eval_frames.py
suleymanaslan/generative-rainbow
9f8daac5e06565ef099c0913186f5a1d801ca52c
[ "MIT" ]
null
null
null
evaluation/eval_frames.py
suleymanaslan/generative-rainbow
9f8daac5e06565ef099c0913186f5a1d801ca52c
[ "MIT" ]
null
null
null
evaluation/eval_frames.py
suleymanaslan/generative-rainbow
9f8daac5e06565ef099c0913186f5a1d801ca52c
[ "MIT" ]
null
null
null
import numpy as np import imageio from evaluation.eval_utils import to_img_padded, format_img, init_evaluation def save_frames(env, agent, pad, folder): observation, ep_reward, done = env.reset(), 0, False count = 0 while not done: action, generated_next_observation = agent.act(observation, get_g...
34.366667
87
0.681862
0
0
0
0
0
0
0
0
86
0.083414
47b4d5911e43771cc3188d71f2b90fe1b6287fdc
22,950
py
Python
acme/HttpServer.py
ankraft/ACME-oneM2M-CSE
03c23ea19b35dd6e0aec752d9631e2a76778c61c
[ "BSD-3-Clause" ]
10
2020-09-25T08:49:19.000Z
2022-03-30T01:29:22.000Z
acme/HttpServer.py
ankraft/ACME-oneM2M-CSE
03c23ea19b35dd6e0aec752d9631e2a76778c61c
[ "BSD-3-Clause" ]
14
2020-05-22T08:00:32.000Z
2020-12-24T23:38:05.000Z
acme/HttpServer.py
ankraft/ACME-oneM2M-CSE
03c23ea19b35dd6e0aec752d9631e2a76778c61c
[ "BSD-3-Clause" ]
5
2020-05-22T03:43:20.000Z
2021-05-25T06:54:59.000Z
# # HttpServer.py # # (c) 2020 by Andreas Kraft # License: BSD 3-Clause License. See the LICENSE file for further details. # # Server to implement the http part of the oneM2M Mcx communication interface. # from __future__ import annotations import logging, sys, traceback, urllib3 from copy import deepcopy from typing ...
39.43299
223
0.699695
21,449
0.934597
0
0
0
0
0
0
9,463
0.412331
47b6367947784f5f8c60ac4a630ae41b0271c546
2,855
py
Python
tests.py
dave-shawley/sprockets.mixins.statsd
98dcce37d275a3ab96ef618b4756d7c4618a550a
[ "BSD-3-Clause" ]
1
2016-04-18T14:43:28.000Z
2016-04-18T14:43:28.000Z
tests.py
dave-shawley/sprockets.mixins.statsd
98dcce37d275a3ab96ef618b4756d7c4618a550a
[ "BSD-3-Clause" ]
1
2015-03-19T20:09:31.000Z
2015-03-19T20:56:13.000Z
tests.py
dave-shawley/sprockets.mixins.statsd
98dcce37d275a3ab96ef618b4756d7c4618a550a
[ "BSD-3-Clause" ]
1
2021-07-21T16:45:20.000Z
2021-07-21T16:45:20.000Z
""" Tests for the sprockets.mixins.statsd package """ import mock import socket try: import unittest2 as unittest except ImportError: import unittest from tornado import httputil from tornado import web from sprockets.mixins import statsd as statsd class StatsdRequestHandler(statsd.RequestMetricsMixin, ...
34.817073
77
0.633275
2,582
0.904378
0
0
0
0
0
0
434
0.152014