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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e3027662b184f06c13870ffba5c59a0f9bdc59f | 1,223 | py | Python | buffer.py | Shahaf-Yamin/CartPole-Policy-Gradients | 98845fa6aa24d1de22644b783ea564a778a5c64f | [
"MIT"
] | null | null | null | buffer.py | Shahaf-Yamin/CartPole-Policy-Gradients | 98845fa6aa24d1de22644b783ea564a778a5c64f | [
"MIT"
] | null | null | null | buffer.py | Shahaf-Yamin/CartPole-Policy-Gradients | 98845fa6aa24d1de22644b783ea564a778a5c64f | [
"MIT"
] | null | null | null | import numpy as np
from collections import namedtuple, deque
import random
Transition = namedtuple('Transition', ('state', 'action', 'next_state', 'reward', 'not_done'))
| 40.766667 | 293 | 0.63287 |
0e30b1db2b544a801697916acc86f22b8a9e7d0e | 4,109 | py | Python | benchmarks/secure_data_SDK-benchmarks/bootloader/load_firmware.py | ghsecuritylab/BenchIoT | 4919427d35e578a7ff07ef5e0b4710b6455dd0b9 | [
"Apache-2.0"
] | 22 | 2019-05-03T03:39:09.000Z | 2022-02-26T17:14:15.000Z | benchmarks/secure_data_SDK-benchmarks/bootloader/load_firmware.py | ghsecuritylab/BenchIoT | 4919427d35e578a7ff07ef5e0b4710b6455dd0b9 | [
"Apache-2.0"
] | 3 | 2019-07-29T19:48:49.000Z | 2022-01-10T07:24:43.000Z | benchmarks/secure_data_SDK-benchmarks/bootloader/load_firmware.py | ghsecuritylab/BenchIoT | 4919427d35e578a7ff07ef5e0b4710b6455dd0b9 | [
"Apache-2.0"
] | 8 | 2019-05-16T08:02:33.000Z | 2021-08-03T03:41:37.000Z |
from struct import pack, unpack
import binascii
import socket
HOST = '192.168.0.10'
PORT = 1337
BUFF_SIZE = 1024
START_TOKEN = "init"
DONE_TOKEN = "done"
FAIL_TOKEN = "fail"
def create_test_application(load_addr=0x08002000, size=64*1024):
'''
Creates a test application that simply returns to the boo... | 29.35 | 80 | 0.578973 |
0e323cbc9a74dd18dfee4350d0c771fc984cd04d | 1,264 | py | Python | time/humanize_time.py | liudmil-mitev/experiments | 724b4f528e628760772eed289b832aa9fd45af17 | [
"WTFPL"
] | 1 | 2018-05-02T15:45:18.000Z | 2018-05-02T15:45:18.000Z | time/humanize_time.py | liudmil-mitev/experiments | 724b4f528e628760772eed289b832aa9fd45af17 | [
"WTFPL"
] | null | null | null | time/humanize_time.py | liudmil-mitev/experiments | 724b4f528e628760772eed289b832aa9fd45af17 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python
INTERVALS = [1, 60, 3600, 86400, 604800, 2419200, 29030400]
NAMES = [('second', 'seconds'),
('minute', 'minutes'),
('hour', 'hours'),
('day', 'days'),
('week', 'weeks'),
('month', 'months'),
('year', 'years')]
def humanize_time(amou... | 28.088889 | 61 | 0.508703 |
0e333752c015ad9cb399b65e23737e7c8b00cd94 | 27,010 | py | Python | fauxfactory/__init__.py | sthirugn/fauxfactory | b320f46d34124d0fbc0b93bc6c56ff8231c8dbc5 | [
"Apache-2.0"
] | null | null | null | fauxfactory/__init__.py | sthirugn/fauxfactory | b320f46d34124d0fbc0b93bc6c56ff8231c8dbc5 | [
"Apache-2.0"
] | null | null | null | fauxfactory/__init__.py | sthirugn/fauxfactory | b320f46d34124d0fbc0b93bc6c56ff8231c8dbc5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Generate random data for your tests."""
__all__ = (
'gen_alpha',
'gen_alphanumeric',
'gen_boolean',
'gen_choice',
'gen_cjk',
'gen_cyrillic',
'gen_date',
'gen_datetime',
'gen_email',
'gen_html',
'gen_integer',
'gen_ipaddr',
'gen_iplum',
... | 28.703507 | 80 | 0.646501 |
0e3363abecde73d1f0885ef85ab14787eb8932f1 | 2,614 | py | Python | eda.py | justinhchae/app_courts | c46d48c4fa02cec91bda6fc3818ab677d6a83281 | [
"MIT"
] | 4 | 2021-01-04T05:46:43.000Z | 2022-01-06T16:33:40.000Z | eda.py | justinhchae/app_courts | c46d48c4fa02cec91bda6fc3818ab677d6a83281 | [
"MIT"
] | null | null | null | eda.py | justinhchae/app_courts | c46d48c4fa02cec91bda6fc3818ab677d6a83281 | [
"MIT"
] | null | null | null | import gc
import pandas as pd
from application.application import Application
from clean_data.maker import Maker
from do_data.config import Columns
from do_data.getter import Reader
from do_data.joiner import Joiner
from do_data.writer import Writer
from do_data.config import Columns
from analyze_data.utils import Ut... | 29.044444 | 76 | 0.682096 |
0e3448c59b854530205264fdc986d590b2b2ab8d | 197 | py | Python | retrieval/hybrid/__init__.py | park-sungmoo/odqa_baseline_code | 45954be766e5f987bef18e5b8a2e47f1508742cd | [
"Apache-2.0"
] | 67 | 2021-05-12T15:54:28.000Z | 2022-03-12T15:55:35.000Z | retrieval/hybrid/__init__.py | park-sungmoo/odqa_baseline_code | 45954be766e5f987bef18e5b8a2e47f1508742cd | [
"Apache-2.0"
] | 71 | 2021-05-01T06:07:37.000Z | 2022-01-28T16:54:46.000Z | retrieval/hybrid/__init__.py | park-sungmoo/odqa_baseline_code | 45954be766e5f987bef18e5b8a2e47f1508742cd | [
"Apache-2.0"
] | 14 | 2021-05-24T10:57:27.000Z | 2022-02-18T06:34:11.000Z | from retrieval.hybrid.hybrid_base import HybridRetrieval, HybridLogisticRetrieval
from retrieval.hybrid.hybrid import TfidfDprBert, AtireBm25DprBert, LogisticTfidfDprBert, LogisticAtireBm25DprBert
| 65.666667 | 114 | 0.898477 |
0e351d8158536eec299c27c17ae7a1f82b512746 | 455 | py | Python | upper_print.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | upper_print.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | upper_print.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
if __name__ == '__main__':
text = 'hello world!'
print(text) # hello world!
old_print = print
print = upper_print(print)
print(text) # HELLO WORLD!
print = old_print
print(text) # hello world!
| 18.2 | 77 | 0.6 |
0e381333bec3bba2900ca4f5a909c7203ac63e80 | 10,182 | py | Python | odxtools/units.py | floroks/odxtools | c3ac0031234188820266d2de35b23bec7f00a0cb | [
"MIT"
] | null | null | null | odxtools/units.py | floroks/odxtools | c3ac0031234188820266d2de35b23bec7f00a0cb | [
"MIT"
] | null | null | null | odxtools/units.py | floroks/odxtools | c3ac0031234188820266d2de35b23bec7f00a0cb | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: MIT
# Copyright (c) 2022 MBition GmbH
from dataclasses import dataclass, field
from typing import List, Literal, Optional
from .nameditemlist import NamedItemList
from .utils import read_description_from_odx
UnitGroupCategory = Literal["COUNTRY", "EQUIV-UNITS"]
def read_unit_from_odx... | 33.166124 | 139 | 0.641328 |
0e38d2aaf004540b815fbb6471e43af110b9c1be | 562 | py | Python | AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_ttk_textonly.py | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 2,757 | 2018-04-28T21:41:36.000Z | 2022-03-29T06:33:36.000Z | AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_ttk_textonly.py | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 20 | 2019-07-23T15:29:32.000Z | 2022-01-21T12:53:04.000Z | AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_ttk_textonly.py | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 449 | 2018-05-09T05:54:05.000Z | 2022-03-30T14:54:18.000Z | import os
from test import test_support
# Skip this test if _tkinter does not exist.
test_support.import_module('_tkinter')
this_dir = os.path.dirname(os.path.abspath(__file__))
lib_tk_test = os.path.abspath(os.path.join(this_dir, '..', 'lib-tk', 'test'))
with test_support.DirsOnSysPath(lib_tk_test):
i... | 28.1 | 78 | 0.704626 |
0e3954cbaaaca908b84089a968d649cf3012eb17 | 1,254 | py | Python | app/auth/forms.py | dancan-sandys/Becky_pizza | 5a12669a9def43768f8ef00ff863dbf3c78ed896 | [
"MIT"
] | null | null | null | app/auth/forms.py | dancan-sandys/Becky_pizza | 5a12669a9def43768f8ef00ff863dbf3c78ed896 | [
"MIT"
] | null | null | null | app/auth/forms.py | dancan-sandys/Becky_pizza | 5a12669a9def43768f8ef00ff863dbf3c78ed896 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField,BooleanField,PasswordField,SubmitField
from wtforms.validators import Email,Required,EqualTo
from wtforms import ValidationError
from ..models import User
| 36.882353 | 137 | 0.72488 |
0e3bb55563f6de20b1c6744bf517893f39901074 | 992 | py | Python | tests/check_predictions.py | WGierke/informatiCup2018 | a07c21f6e092e516028c2f45594efbb2071d9b79 | [
"MIT"
] | null | null | null | tests/check_predictions.py | WGierke/informatiCup2018 | a07c21f6e092e516028c2f45594efbb2071d9b79 | [
"MIT"
] | 12 | 2018-02-10T14:37:14.000Z | 2021-06-01T21:52:44.000Z | tests/check_predictions.py | WGierke/informatiCup2018 | a07c21f6e092e516028c2f45594efbb2071d9b79 | [
"MIT"
] | 1 | 2018-01-27T11:20:40.000Z | 2018-01-27T11:20:40.000Z | if __name__ == '__main__':
# Check correct price prediction
price_input_path = 'tests/data/Price_Simple.csv'
price_input = open(price_input_path, 'r').read().splitlines()[0].split(';')
price_prediction = open('price_prediction.csv', 'r').read().splitlines()[0].split(';')
assert price_input == price_... | 52.210526 | 97 | 0.698589 |
0e3c572a1d88b93beced8ffe5d8e701ff718fc40 | 4,421 | py | Python | src/ralph_assets/tests/unit/test_rest_asset_info_per_rack.py | quamilek/ralph_assets | 705aa8ffbc347e643115d772ac9b3660376cb5c2 | [
"Apache-2.0"
] | null | null | null | src/ralph_assets/tests/unit/test_rest_asset_info_per_rack.py | quamilek/ralph_assets | 705aa8ffbc347e643115d772ac9b3660376cb5c2 | [
"Apache-2.0"
] | null | null | null | src/ralph_assets/tests/unit/test_rest_asset_info_per_rack.py | quamilek/ralph_assets | 705aa8ffbc347e643115d772ac9b3660376cb5c2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import json
from django.contrib.auth.models import User
from django.test import TestCase
from rest_framework.test import APIClient
from ralph_a... | 35.943089 | 78 | 0.549649 |
0e3c6ee65a6dc7c61f1f0de5840c630be1c19d33 | 57,419 | py | Python | ovs/extensions/db/arakoon/arakoon/ArakoonManagement.py | mflu/openvstorage_centos | 280a98d3e5d212d58297e0ffcecd325dfecef0f8 | [
"Apache-2.0"
] | 1 | 2015-08-29T16:36:40.000Z | 2015-08-29T16:36:40.000Z | ovs/extensions/db/arakoon/arakoon/ArakoonManagement.py | rootfs-analytics/openvstorage | 6184822340faea1d2927643330a7aaa781d92d36 | [
"Apache-2.0"
] | null | null | null | ovs/extensions/db/arakoon/arakoon/ArakoonManagement.py | rootfs-analytics/openvstorage | 6184822340faea1d2927643330a7aaa781d92d36 | [
"Apache-2.0"
] | null | null | null | """
Copyright (2010-2014) INCUBAID BVBA
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 writing, so... | 34.403235 | 186 | 0.579582 |
0e3cd70195904ea45cfece716793aff4e55ba9e8 | 647 | py | Python | setup.py | THUIR/click_model_for_mobile_search | e6c02c0b559822fa236e74934805f934da3cd162 | [
"BSD-3-Clause"
] | 10 | 2019-03-14T21:10:43.000Z | 2022-02-02T15:19:07.000Z | setup.py | THUIR/click_model_for_mobile_search | e6c02c0b559822fa236e74934805f934da3cd162 | [
"BSD-3-Clause"
] | null | null | null | setup.py | THUIR/click_model_for_mobile_search | e6c02c0b559822fa236e74934805f934da3cd162 | [
"BSD-3-Clause"
] | 1 | 2019-08-24T13:08:08.000Z | 2019-08-24T13:08:08.000Z | from distutils.core import setup
import glob
from setuptools import setup
setup(
name='clickmodels',
version='2.0.0',
author='Jiaxin Mao',
packages=['clickmodels'],
scripts=glob.glob('bin/*.py'),
url='https://github.com/defaultstr/clickmodels',
license='LICENSE',
description='Click mod... | 25.88 | 139 | 0.681607 |
0e3d9b2cb4c223b6f43d3995bfdac7d9d91e409d | 3,227 | py | Python | scripts/extract_user_sudo_privileges.py | worr/sysops-api | e67dcdb7adf2ba82dc5215a73ccf6b592978e93f | [
"Apache-2.0"
] | 40 | 2015-01-24T19:00:05.000Z | 2022-03-03T01:30:20.000Z | scripts/extract_user_sudo_privileges.py | worr/sysops-api | e67dcdb7adf2ba82dc5215a73ccf6b592978e93f | [
"Apache-2.0"
] | null | null | null | scripts/extract_user_sudo_privileges.py | worr/sysops-api | e67dcdb7adf2ba82dc5215a73ccf6b592978e93f | [
"Apache-2.0"
] | 12 | 2015-02-03T17:02:27.000Z | 2020-07-24T03:23:37.000Z | #!/usr/bin/python2.6
# (c) [2013] LinkedIn Corp. 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 ... | 43.608108 | 135 | 0.534242 |
0e3e2d475e4d28c9969630febc816f8bc00f2ddf | 626 | py | Python | lbworkflow/tests/purchase/models.py | wearypossum4770/django-lb-workflow | 8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7 | [
"MIT"
] | 194 | 2017-04-24T15:28:16.000Z | 2021-12-29T03:35:28.000Z | lbworkflow/tests/purchase/models.py | wearypossum4770/django-lb-workflow | 8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7 | [
"MIT"
] | 17 | 2018-05-31T07:45:42.000Z | 2021-12-16T08:55:44.000Z | lbworkflow/tests/purchase/models.py | wearypossum4770/django-lb-workflow | 8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7 | [
"MIT"
] | 67 | 2017-05-18T02:28:28.000Z | 2022-01-20T02:05:10.000Z | from django.db import models
from lbworkflow.models import BaseWFObj
| 22.357143 | 55 | 0.670927 |
0e3e3487ba35fcedce9a553cfee80ee9e1454f0d | 900 | py | Python | interface/python/test.py | gaubert/nessDB | 69eed5ec2d4e6bf06853cebf7a506d214eaf7d62 | [
"BSD-3-Clause"
] | 1 | 2020-09-24T02:41:23.000Z | 2020-09-24T02:41:23.000Z | interface/python/test.py | gaubert/nessDB | 69eed5ec2d4e6bf06853cebf7a506d214eaf7d62 | [
"BSD-3-Clause"
] | null | null | null | interface/python/test.py | gaubert/nessDB | 69eed5ec2d4e6bf06853cebf7a506d214eaf7d62 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# author : KDr2
# BohuTANG @2012
#
import sys
import random
import string
import time
import nessdb
if __name__ == '__main__':
if (len(sys.argv) > 2):
if (sys.argv[1] == "write"):
db = ness_open("test")
ness_write(db, int(sys.argv[2]))
db.db_close()
else:
pr... | 21.428571 | 106 | 0.645556 |
0e42a4face2412bee6e21ed42755d4303ac0f51b | 1,588 | py | Python | tests/extensions/openapi/test_external_docs.py | JonarsLi/sanic-ext | 58b2fe7e5e67e5cc2766bfb61be2e8d0f28115f4 | [
"MIT"
] | 14 | 2021-06-18T12:16:02.000Z | 2022-02-10T09:36:50.000Z | tests/extensions/openapi/test_external_docs.py | JonarsLi/sanic-ext | 58b2fe7e5e67e5cc2766bfb61be2e8d0f28115f4 | [
"MIT"
] | 37 | 2021-10-03T10:47:12.000Z | 2022-03-24T10:08:20.000Z | tests/extensions/openapi/test_external_docs.py | JonarsLi/sanic-ext | 58b2fe7e5e67e5cc2766bfb61be2e8d0f28115f4 | [
"MIT"
] | 7 | 2021-10-03T09:43:36.000Z | 2022-03-27T14:29:49.000Z | from sanic import Request, Sanic
from sanic.response import text
from sanic_ext import openapi
from sanic_ext.extensions.openapi.definitions import ExternalDocumentation
from utils import get_spec
| 28.357143 | 79 | 0.612091 |
0e4381d0af212201e83d5139e926caa71f20f745 | 2,472 | py | Python | cube2/server.py | bobssup/kripken | a19f0aca7b9251c08dd930fa670eaa72db0806f7 | [
"CC-BY-3.0"
] | 892 | 2015-01-06T13:51:18.000Z | 2022-03-28T08:54:27.000Z | cube2/server.py | bobssup/kripken | a19f0aca7b9251c08dd930fa670eaa72db0806f7 | [
"CC-BY-3.0"
] | 37 | 2015-01-24T19:50:38.000Z | 2022-03-11T01:51:17.000Z | cube2/server.py | bobssup/kripken | a19f0aca7b9251c08dd930fa670eaa72db0806f7 | [
"CC-BY-3.0"
] | 264 | 2015-01-31T14:31:47.000Z | 2022-03-30T16:46:54.000Z | #!/usr/bin/env python
'''
Sets up websocket server support to run the server in one HTML page and the client in another HTML page. Each connects to a websocket server, which we relay together, so the two pages think they are connected to each other (see websocket_bi tests in emscripten).
Instructions for websocket ne... | 37.454545 | 262 | 0.767395 |
0e44e2abfa92ca47f5eabcd2125c3a73c5fbe7bb | 13,106 | py | Python | apps/api/modules/bkdata_aiops.py | qqqqqie/bk-log | 1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1 | [
"MIT"
] | 75 | 2021-07-14T09:32:36.000Z | 2022-03-31T15:26:53.000Z | apps/api/modules/bkdata_aiops.py | qqqqqie/bk-log | 1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1 | [
"MIT"
] | 561 | 2021-07-14T07:45:47.000Z | 2022-03-31T11:41:28.000Z | apps/api/modules/bkdata_aiops.py | qqqqqie/bk-log | 1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1 | [
"MIT"
] | 41 | 2021-07-14T07:39:50.000Z | 2022-03-25T09:22:18.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-LOG available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-LOG is licensed under the MIT License.
License for BK-LOG :
------------------------------------------------------------------... | 43.254125 | 120 | 0.628872 |
0e45678b0b57475a51da878ed9c0ce4e52c29673 | 7,106 | py | Python | inverse_test.py | Sangbaek/clas12-nflows | c69ce0d962b87e793a996c6cb263389f30c2bcb5 | [
"MIT"
] | null | null | null | inverse_test.py | Sangbaek/clas12-nflows | c69ce0d962b87e793a996c6cb263389f30c2bcb5 | [
"MIT"
] | null | null | null | inverse_test.py | Sangbaek/clas12-nflows | c69ce0d962b87e793a996c6cb263389f30c2bcb5 | [
"MIT"
] | null | null | null | import pickle
import matplotlib.pyplot as plt
import matplotlib as mpl
#mpl.use('pdf')
import itertools
import numpy as np
from datetime import datetime
import torch
from torch import nn
from torch import optim
import os
import sys
import pandas as pd
from utils.utilities import meter
from utils import make_histos
fro... | 36.071066 | 136 | 0.744582 |
0e458fb301ccce1987472231c3b00c1628040969 | 13,195 | py | Python | pytket/pytket/passes/script.py | NewGitter2017/tket | 6ff81af26280770bf2ca80bfb2140e8fa98182aa | [
"Apache-2.0"
] | null | null | null | pytket/pytket/passes/script.py | NewGitter2017/tket | 6ff81af26280770bf2ca80bfb2140e8fa98182aa | [
"Apache-2.0"
] | null | null | null | pytket/pytket/passes/script.py | NewGitter2017/tket | 6ff81af26280770bf2ca80bfb2140e8fa98182aa | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2021 Cambridge Quantum Computing
#
# 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 a... | 30.125571 | 88 | 0.721031 |
0e465c7c5db67591f279b01b569e5ac410ce6462 | 506 | py | Python | terrascript/data/nomad.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/data/nomad.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/data/nomad.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | # terrascript/data/nomad.py
import terrascript
__all__ = [
"nomad_acl_policy",
"nomad_acl_token",
"nomad_deployments",
"nomad_job",
"nomad_namespaces",
"nomad_regions",
]
| 13.315789 | 42 | 0.715415 |
0e495fc33b825c87732c91ad66b85197faa78b41 | 690 | py | Python | features/environment.py | mfuhrmann/meshping | 01355b89cf28c2b43b81d7c0c5edfde4840139a0 | [
"MIT"
] | 17 | 2019-12-06T16:01:41.000Z | 2022-02-24T11:04:09.000Z | features/environment.py | mfuhrmann/meshping | 01355b89cf28c2b43b81d7c0c5edfde4840139a0 | [
"MIT"
] | 23 | 2019-12-05T19:18:59.000Z | 2021-09-03T13:41:06.000Z | features/environment.py | mfuhrmann/meshping | 01355b89cf28c2b43b81d7c0c5edfde4840139a0 | [
"MIT"
] | 6 | 2019-12-06T02:51:02.000Z | 2021-01-31T08:39:59.000Z | import json
import threading
from http.server import HTTPServer, BaseHTTPRequestHandler
| 32.857143 | 80 | 0.685507 |
0e49791b45f3761db0f53cd99453bc620539bd37 | 456 | py | Python | Modulo 02/exercicios/d041.py | euyag/python-cursoemvideo | d2f684854d926e38ea193816a6c7d2c48d25aa3d | [
"MIT"
] | 2 | 2021-06-22T00:15:11.000Z | 2021-08-02T11:28:56.000Z | Modulo 02/exercicios/d041.py | euyag/python-cursoemvideo | d2f684854d926e38ea193816a6c7d2c48d25aa3d | [
"MIT"
] | null | null | null | Modulo 02/exercicios/d041.py | euyag/python-cursoemvideo | d2f684854d926e38ea193816a6c7d2c48d25aa3d | [
"MIT"
] | null | null | null | print('===== DESAFIO 041 =====')
nascimento = int(input('Digite o ano q vc nasceu: '))
idade = 2021 - nascimento
print(f'vc tem {idade} anos')
if idade <= 9:
print('vc um nadador mirim')
elif idade > 9 and idade <= 14:
print('vc um nadador infantil')
elif idade > 14 and idade <= 19:
print('vc um nadad... | 26.823529 | 53 | 0.631579 |
0e49ee0d9a2475f1064dcee3fd80cff56b6b1889 | 165 | py | Python | project/settings/prod/cors.py | danielbraga/hcap | a3ca0d6963cff19ed6ec0436cce84e2b41615454 | [
"MIT"
] | null | null | null | project/settings/prod/cors.py | danielbraga/hcap | a3ca0d6963cff19ed6ec0436cce84e2b41615454 | [
"MIT"
] | null | null | null | project/settings/prod/cors.py | danielbraga/hcap | a3ca0d6963cff19ed6ec0436cce84e2b41615454 | [
"MIT"
] | null | null | null | """
django:
https://docs.djangoproject.com/en/3.0/ref/settings/#allowed-hosts
"""
from ..env import env
ALLOWED_HOSTS = env("HCAP__ALLOWED_HOSTS", default=[])
| 18.333333 | 69 | 0.70303 |
0e4cabb3fb9a2919ca8974672393ca3fb3160fbf | 16,677 | py | Python | nt_m.py | kwj1399/ryu_app | df094994e09788053b47aad1c6164033e6bd4c14 | [
"MIT"
] | null | null | null | nt_m.py | kwj1399/ryu_app | df094994e09788053b47aad1c6164033e6bd4c14 | [
"MIT"
] | null | null | null | nt_m.py | kwj1399/ryu_app | df094994e09788053b47aad1c6164033e6bd4c14 | [
"MIT"
] | null | null | null | '''
FileName:
Author:KWJ(kyson)
UpdateTime:2016/10/10
Introduction:
'''
from __future__ import division
import copy
from operator import attrgetter
from ryu.base import app_manager
from ryu.base.app_manager import lookup_service_brick
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER, DEAD_DISPATC... | 39.518957 | 86 | 0.538166 |
0e4ecce9b8ee44d7a2ecb07d04597a919fe2daa5 | 146 | py | Python | euler_01.py | zhou-le/euler | 78033a10bc186fbd2a004760966e15724b0a98f9 | [
"Apache-2.0"
] | 2 | 2018-12-24T15:36:00.000Z | 2021-06-07T09:35:59.000Z | euler_01.py | zhou-le/Euler | 78033a10bc186fbd2a004760966e15724b0a98f9 | [
"Apache-2.0"
] | null | null | null | euler_01.py | zhou-le/Euler | 78033a10bc186fbd2a004760966e15724b0a98f9 | [
"Apache-2.0"
] | null | null | null | #coding: utf-8
#date: 2018/7/30 19:07
#author: zhou_le
# 100035
print(sum([i for i in range(1000) if i % 3 == 0 or i % 5 == 0])) | 20.857143 | 64 | 0.59589 |
0e4f69138aecd1313f122259efebb214ee565651 | 19,502 | py | Python | venv/Lib/site-packages/tensorboard/uploader/proto/server_info_pb2.py | masterrey/SmartMachines | e48aff314b1171a13a39c3a41230d900bf090a1f | [
"Apache-2.0"
] | 353 | 2020-12-10T10:47:17.000Z | 2022-03-31T23:08:29.000Z | venv/Lib/site-packages/tensorboard/uploader/proto/server_info_pb2.py | masterrey/SmartMachines | e48aff314b1171a13a39c3a41230d900bf090a1f | [
"Apache-2.0"
] | 80 | 2020-12-10T09:54:22.000Z | 2022-03-30T22:08:45.000Z | venv/Lib/site-packages/tensorboard/uploader/proto/server_info_pb2.py | masterrey/SmartMachines | e48aff314b1171a13a39c3a41230d900bf090a1f | [
"Apache-2.0"
] | 63 | 2020-12-10T17:10:34.000Z | 2022-03-28T16:27:07.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorboard/uploader/proto/server_info.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor a... | 40.127572 | 1,788 | 0.762383 |
0e506f5e878b4e3e3f626f39450924970f216a72 | 2,192 | py | Python | pandas/_testing/_hypothesis.py | dycloud-chan/pandas | 39ccb352b53e9b5b694c4f7f044774f9c3677e98 | [
"BSD-3-Clause"
] | 1 | 2021-09-15T07:45:23.000Z | 2021-09-15T07:45:23.000Z | pandas/_testing/_hypothesis.py | dycloud-chan/pandas | 39ccb352b53e9b5b694c4f7f044774f9c3677e98 | [
"BSD-3-Clause"
] | null | null | null | pandas/_testing/_hypothesis.py | dycloud-chan/pandas | 39ccb352b53e9b5b694c4f7f044774f9c3677e98 | [
"BSD-3-Clause"
] | 1 | 2020-01-03T17:02:48.000Z | 2020-01-03T17:02:48.000Z | """
Hypothesis data generator helpers.
"""
from datetime import datetime
from hypothesis import strategies as st
from hypothesis.extra.dateutil import timezones as dateutil_timezones
from hypothesis.extra.pytz import timezones as pytz_timezones
from pandas.compat import is_platform_windows
import pandas as pd
from ... | 25.488372 | 86 | 0.675639 |
0e5101dd7fe4f67284e5978fa838a8443cbd53ae | 1,397 | py | Python | export_readiness/migrations/0058_auto_20190912_1326.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 6 | 2018-03-20T11:19:07.000Z | 2021-10-05T07:53:11.000Z | export_readiness/migrations/0058_auto_20190912_1326.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 802 | 2018-02-05T14:16:13.000Z | 2022-02-10T10:59:21.000Z | export_readiness/migrations/0058_auto_20190912_1326.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 6 | 2019-01-22T13:19:37.000Z | 2019-07-01T10:35:26.000Z | # Generated by Django 2.2.4 on 2019-09-12 13:26
from django.db import migrations
INDUSTRY_NAMES = (
'Advanced manufacturing',
'Aerospace',
'Agri-technology',
'Automotive',
'Biotechnology',
'Cleantech',
'Construction ',
'Consumer products',
'Cyber security',
'E-commerce',
'... | 22.174603 | 100 | 0.65927 |
0e514b7610b489149791d3b281551aebbd6d433b | 4,656 | py | Python | bakery_cli/utils.py | lowks/fontbakery-cli | 514cc010c1118bbcef078aeb64a87add05322c4a | [
"Apache-2.0"
] | 1 | 2020-06-17T04:44:42.000Z | 2020-06-17T04:44:42.000Z | bakery_cli/utils.py | lowks/fontbakery-cli | 514cc010c1118bbcef078aeb64a87add05322c4a | [
"Apache-2.0"
] | null | null | null | bakery_cli/utils.py | lowks/fontbakery-cli | 514cc010c1118bbcef078aeb64a87add05322c4a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Copyright 2013 The Font Bakery 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 re... | 32.110345 | 78 | 0.559708 |
0e51b7b58041b179a5ca569376e14c8b5faa8e01 | 100 | py | Python | src/spaczz/regex/__init__.py | brunobg/spaczz | 69c73cad16f65f01be2202ecc0c836dd03b42b61 | [
"MIT"
] | 153 | 2020-07-07T01:26:25.000Z | 2022-03-31T23:47:00.000Z | src/spaczz/regex/__init__.py | brunobg/spaczz | 69c73cad16f65f01be2202ecc0c836dd03b42b61 | [
"MIT"
] | 38 | 2020-07-15T02:29:34.000Z | 2021-08-15T21:32:54.000Z | src/spaczz/regex/__init__.py | brunobg/spaczz | 69c73cad16f65f01be2202ecc0c836dd03b42b61 | [
"MIT"
] | 20 | 2020-07-07T15:41:05.000Z | 2022-02-21T19:28:22.000Z | """Module for regex components."""
from .regexconfig import RegexConfig
__all__ = ["RegexConfig"]
| 16.666667 | 36 | 0.74 |
0e5337ed20b60dbcf33738cf8d37c01caaa201c9 | 1,968 | py | Python | imagetagger/imagetagger/annotations/migrations/0006_auto_20170826_1431.py | jbargu/imagetagger | 216ac5e73902abadc1880321e285e68c55bdfd3d | [
"MIT"
] | 212 | 2017-07-06T23:01:44.000Z | 2022-03-24T04:44:49.000Z | imagetagger/imagetagger/annotations/migrations/0006_auto_20170826_1431.py | jbargu/imagetagger | 216ac5e73902abadc1880321e285e68c55bdfd3d | [
"MIT"
] | 157 | 2017-07-24T10:03:41.000Z | 2022-03-12T01:03:47.000Z | imagetagger/imagetagger/annotations/migrations/0006_auto_20170826_1431.py | jbargu/imagetagger | 216ac5e73902abadc1880321e285e68c55bdfd3d | [
"MIT"
] | 54 | 2017-11-07T00:40:50.000Z | 2022-02-26T14:22:13.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-26 12:31
from __future__ import unicode_literals
import json
import django.contrib.postgres.fields.jsonb
from django.db import migrations
| 33.355932 | 77 | 0.601626 |
0e55028498c318134fe1dbd586569be4e5fbb449 | 1,778 | py | Python | process_csv.py | Blue9/llvm-pass-skeleton | e6be3d0f1a4d3f73128263ccbb81e587309b869b | [
"MIT"
] | null | null | null | process_csv.py | Blue9/llvm-pass-skeleton | e6be3d0f1a4d3f73128263ccbb81e587309b869b | [
"MIT"
] | null | null | null | process_csv.py | Blue9/llvm-pass-skeleton | e6be3d0f1a4d3f73128263ccbb81e587309b869b | [
"MIT"
] | null | null | null | import os
import statistics
import sys
if __name__ == '__main__':
if len(sys.argv) != 2:
print("Usage: python3 process_csv.py [output_csv_path]")
sys.exit(1)
num_runs = (1, 2, 3)
thresholds = (10, 100, 1000)
filename = lambda runs, threshold: f'out-{runs}-{threshold}.csv'
output_fil... | 32.925926 | 68 | 0.558493 |
0e55f8fc713d89522d978644224a64f2679af055 | 12,686 | py | Python | run_cnn.py | tlkh/mini-dlperf | 7d40bbad98ac68d4c496fe4b69d0de80ef0fffc6 | [
"MIT"
] | null | null | null | run_cnn.py | tlkh/mini-dlperf | 7d40bbad98ac68d4c496fe4b69d0de80ef0fffc6 | [
"MIT"
] | 37 | 2020-09-13T08:45:04.000Z | 2022-03-15T01:19:05.000Z | run_cnn.py | tlkh/mini-dlperf | 7d40bbad98ac68d4c496fe4b69d0de80ef0fffc6 | [
"MIT"
] | null | null | null | import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--rn152", action="store_true", default=False,
help="Train a larger ResNet-152 model instead of ResNet-50")
parser.add_argument("--rn50v2", action="store_true", default=False,
help="Train ResNet-50 V2 model in... | 38.210843 | 119 | 0.692023 |
0e5a510f773a00ee259b3eb4de0fd3c02d65e9b1 | 5,591 | py | Python | containers/forms.py | timothyjlaurent/shipyard | 400b6455fc249ad096bc849f2f27385cfe2daa6d | [
"Apache-2.0"
] | 1 | 2016-03-24T22:33:09.000Z | 2016-03-24T22:33:09.000Z | containers/forms.py | dragon9783/shipyard | a7cfb15efed01823077825e0b3c3dd6268017177 | [
"Apache-2.0"
] | 1 | 2021-06-10T23:32:33.000Z | 2021-06-10T23:32:33.000Z | containers/forms.py | timothyjlaurent/shipyard | 400b6455fc249ad096bc849f2f27385cfe2daa6d | [
"Apache-2.0"
] | null | null | null | # Copyright Evan Hazlett and contributors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 41.723881 | 114 | 0.655876 |
0e5a54810fbef414231a098e12c3d3a8fbf58189 | 343 | py | Python | 2020/01-1.py | matteodelabre/advent-of-code | a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1 | [
"CC0-1.0"
] | 1 | 2021-12-02T05:16:11.000Z | 2021-12-02T05:16:11.000Z | 2020/01-1.py | matteodelabre/advent-of-code | a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1 | [
"CC0-1.0"
] | null | null | null | 2020/01-1.py | matteodelabre/advent-of-code | a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1 | [
"CC0-1.0"
] | null | null | null | rows = []
try:
while True:
rows.append(int(input()))
except EOFError:
pass
rows.sort()
goal = 2020
l = 0
r = len(rows) - 1
while rows[l] + rows[r] != goal and l < r:
if rows[l] + rows[r] < goal:
l += 1
else:
r -= 1
if rows[l] + rows[r] == goal:
print(rows[l] * rows[r])
e... | 13.72 | 42 | 0.498542 |
0e5a5ab9eb95edd4197741674bf04156101779a0 | 1,543 | py | Python | castadmin/urls.py | flyinactor91/Rocky-Rollcall | ab2bdbbd5f5920e709a09d1b1182a388955211d9 | [
"MIT"
] | 2 | 2019-09-03T06:08:35.000Z | 2020-07-19T06:57:17.000Z | castadmin/urls.py | flyinactor91/Rocky-Rollcall | ab2bdbbd5f5920e709a09d1b1182a388955211d9 | [
"MIT"
] | null | null | null | castadmin/urls.py | flyinactor91/Rocky-Rollcall | ab2bdbbd5f5920e709a09d1b1182a388955211d9 | [
"MIT"
] | null | null | null | """
Cast admin URL patterns
"""
from django.urls import path
from . import views
_s = '<slug:slug>/'
urlpatterns = [
path(_s, views.cast_admin, name='cast_admin'),
path(_s+'section/new/', views.section_new, name='cast_section_new'),
path(_s+'section/<int:pk>/edit/', views.section_edit, name='cast_section... | 53.206897 | 114 | 0.72197 |
0e5a60a46aeb18c5fcebbf2deb1ab0ad21f787d1 | 24 | py | Python | asn1tools/version.py | eerimoq/asn1tools | 93e5fc2922c191e4a593507d4bc8847341fc9f40 | [
"MIT"
] | 198 | 2017-08-04T21:49:15.000Z | 2022-03-26T10:11:21.000Z | asn1tools/version.py | eerimoq/asn1tools | 93e5fc2922c191e4a593507d4bc8847341fc9f40 | [
"MIT"
] | 144 | 2017-09-29T12:06:51.000Z | 2022-03-29T13:04:44.000Z | asn1tools/version.py | eerimoq/asn1tools | 93e5fc2922c191e4a593507d4bc8847341fc9f40 | [
"MIT"
] | 73 | 2017-10-09T13:33:28.000Z | 2022-03-11T01:35:22.000Z | __version__ = '0.159.0'
| 12 | 23 | 0.666667 |
0e5bec43e7ad02e792ccbf34c4c1ba79010d99ec | 143 | py | Python | tags/ctx.py | NoUMelon/phen-cogs | f8d4de3a91f428114d66fd36ba38ecbd5ace83a3 | [
"MIT"
] | 1 | 2021-06-01T10:12:09.000Z | 2021-06-01T10:12:09.000Z | tags/ctx.py | NoUMelon/phen-cogs | f8d4de3a91f428114d66fd36ba38ecbd5ace83a3 | [
"MIT"
] | null | null | null | tags/ctx.py | NoUMelon/phen-cogs | f8d4de3a91f428114d66fd36ba38ecbd5ace83a3 | [
"MIT"
] | null | null | null | from redbot.core.commands import Context
| 20.428571 | 56 | 0.699301 |
0e5c6b3710e58e819d07a446f732bb58ff060f7c | 545 | py | Python | Liver_segmentation/find_and_delete_empty_images.py | 6895mahfuzgit/PyTorch-and-Monai-for-AI-Healthcare-Imaging- | 9fbd1e2863599f58ccd5bb033ecf4c4de4017eb1 | [
"Apache-2.0"
] | null | null | null | Liver_segmentation/find_and_delete_empty_images.py | 6895mahfuzgit/PyTorch-and-Monai-for-AI-Healthcare-Imaging- | 9fbd1e2863599f58ccd5bb033ecf4c4de4017eb1 | [
"Apache-2.0"
] | null | null | null | Liver_segmentation/find_and_delete_empty_images.py | 6895mahfuzgit/PyTorch-and-Monai-for-AI-Healthcare-Imaging- | 9fbd1e2863599f58ccd5bb033ecf4c4de4017eb1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 17 21:33:56 2022
@author: mahfuz
"""
from glob import glob
import nibabel as nif
import numpy as np
input_path_lables = r'C:\Users\mahfu\Desktop\Codes\nifiti_files\lables\*'
imput_labels = glob(input_path_lables)
for patient in imput_labels:
nifti_file = nif.load(... | 21.8 | 73 | 0.684404 |
0e5ca3a4b73066c37affc89f2d0c6027191e7c14 | 4,873 | py | Python | pax/tasks/tasks/classification.py | epfml/pax | 26844d438d6f86889bbaeebc517199951af065bb | [
"Apache-2.0"
] | 3 | 2022-02-28T14:41:02.000Z | 2022-03-02T12:19:02.000Z | pax/tasks/tasks/classification.py | epfml/pax | 26844d438d6f86889bbaeebc517199951af065bb | [
"Apache-2.0"
] | null | null | null | pax/tasks/tasks/classification.py | epfml/pax | 26844d438d6f86889bbaeebc517199951af065bb | [
"Apache-2.0"
] | null | null | null | from typing import Mapping
import pax.tasks.registry as registry
import regex as re
import torch
from pax.tasks.datasets.api import Batch
from pax.tasks.models.api import Buffers, Model, Params, Tuple
from pax.tasks.tasks.api import Task
DEFAULT_DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
... | 31.642857 | 132 | 0.640468 |
0e5ea68ff93ca844710804b051686a214341d76f | 278 | py | Python | python/ex103_validacao_dados.py | lucasdiogomartins/curso-em-video | 9da92b6255a11021f719a9e0ce994db639e1ac38 | [
"MIT"
] | null | null | null | python/ex103_validacao_dados.py | lucasdiogomartins/curso-em-video | 9da92b6255a11021f719a9e0ce994db639e1ac38 | [
"MIT"
] | null | null | null | python/ex103_validacao_dados.py | lucasdiogomartins/curso-em-video | 9da92b6255a11021f719a9e0ce994db639e1ac38 | [
"MIT"
] | null | null | null |
# Main
nome = input('Nome do Jogador: ').title()
gols = input('Nmero de Gols: ')
print(mostrar(nome, gols))
| 21.384615 | 56 | 0.55036 |
0e5ee46bdd0854fb83ad5b03e98e62a0395d3652 | 57,678 | py | Python | tests/integration/boxscore/test_ncaab_boxscore.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 221 | 2018-05-15T19:48:03.000Z | 2021-01-05T15:36:21.000Z | tests/integration/boxscore/test_ncaab_boxscore.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 502 | 2018-07-25T03:09:26.000Z | 2021-01-06T16:07:02.000Z | tests/integration/boxscore/test_ncaab_boxscore.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 72 | 2021-01-21T13:17:00.000Z | 2022-03-31T21:43:25.000Z | import mock
import os
import pandas as pd
from datetime import datetime
from flexmock import flexmock
from sportsipy import utils
from sportsipy.constants import HOME
from sportsipy.ncaab.constants import BOXSCORES_URL, SCHEDULE_URL
from sportsipy.ncaab.boxscore import Boxscore, Boxscores
MONTH = 1
YEAR = 2020
BOXSC... | 41.110478 | 78 | 0.437793 |
0e609bb7fbbaaaa62dd52003ec698921717c72aa | 458 | py | Python | tests/test_elasticsearch.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | 6 | 2021-10-01T06:38:22.000Z | 2022-03-23T09:22:06.000Z | tests/test_elasticsearch.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | null | null | null | tests/test_elasticsearch.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | null | null | null | from .conftest import TestTimeouts
from elasticsearch import Elasticsearch
from elasticsearch.exceptions import ConnectionError
| 32.714286 | 75 | 0.733624 |
0e60e9c2253d2e72211a2da9715165e839d0f5a9 | 1,179 | py | Python | mediasync/management/commands/syncmedia.py | kennethreitz-archive/django-mediasync | 93baadda6c8edfebf065e92a63aba588b9a0311e | [
"BSD-3-Clause"
] | 2 | 2015-11-05T08:54:40.000Z | 2016-03-01T22:14:29.000Z | mediasync/management/commands/syncmedia.py | kennethreitz-archive/django-mediasync | 93baadda6c8edfebf065e92a63aba588b9a0311e | [
"BSD-3-Clause"
] | null | null | null | mediasync/management/commands/syncmedia.py | kennethreitz-archive/django-mediasync | 93baadda6c8edfebf065e92a63aba588b9a0311e | [
"BSD-3-Clause"
] | null | null | null | from django.core.management.base import BaseCommand, CommandError
from optparse import make_option
from mediasync.conf import msettings
import mediasync
import time | 32.75 | 112 | 0.597116 |
0e6288801a87bd532b89f29032eb854a3c39498f | 751 | py | Python | coptim/functions/rosenbrock.py | cmazzaanthony/Optimization_Algorithms | 8dcfe1fcadbe4b3908b33dbc0f14f6d5c0178ce5 | [
"MIT"
] | 3 | 2019-06-20T17:26:07.000Z | 2019-07-02T22:14:38.000Z | coptim/functions/rosenbrock.py | cmazzaanthony/coptim | 8dcfe1fcadbe4b3908b33dbc0f14f6d5c0178ce5 | [
"MIT"
] | null | null | null | coptim/functions/rosenbrock.py | cmazzaanthony/coptim | 8dcfe1fcadbe4b3908b33dbc0f14f6d5c0178ce5 | [
"MIT"
] | null | null | null | import numpy as np
from coptim.function import Function
| 28.884615 | 74 | 0.49534 |
0e649134de3b3b4647c82c4e0a83af296513503f | 601 | py | Python | http-server.py | itamaro/python-http | 9a5d3700b77117aaa3681dbb6e335431ec6205fc | [
"Apache-2.0"
] | null | null | null | http-server.py | itamaro/python-http | 9a5d3700b77117aaa3681dbb6e335431ec6205fc | [
"Apache-2.0"
] | 3 | 2018-06-17T09:16:31.000Z | 2018-06-17T09:34:02.000Z | http-server.py | itamaro/python-http | 9a5d3700b77117aaa3681dbb6e335431ec6205fc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from http.server import BaseHTTPRequestHandler, HTTPServer
from os import curdir, sep
PORT_NUMBER = 8080
try:
server = HTTPServer(('', PORT_NUMBER), myHandler)
print('Started httpserver on port' , PORT_NUMBER)
server.serve_forever()
except KeyboardInterrupt:
server.server_close()
print('Stopp... | 23.115385 | 58 | 0.74376 |
0e6501df6c0fb85542839cee838fc4b4c8a3f879 | 868 | py | Python | lahja/tools/benchmark/typing.py | vaporyproject/lahja | fafc38106863f89ae04a52f6327e6ec5f42b2beb | [
"MIT"
] | null | null | null | lahja/tools/benchmark/typing.py | vaporyproject/lahja | fafc38106863f89ae04a52f6327e6ec5f42b2beb | [
"MIT"
] | null | null | null | lahja/tools/benchmark/typing.py | vaporyproject/lahja | fafc38106863f89ae04a52f6327e6ec5f42b2beb | [
"MIT"
] | null | null | null | from typing import (
NamedTuple,
)
from lahja import (
BaseEvent,
)
| 17.714286 | 75 | 0.691244 |
0e65f0696679963eaa062eafd0dbac4752aacf94 | 531 | py | Python | players/urls.py | hleejr/hofAI | d4135a87071eb272e045ec427bd4cf2fedee9307 | [
"FTL"
] | null | null | null | players/urls.py | hleejr/hofAI | d4135a87071eb272e045ec427bd4cf2fedee9307 | [
"FTL"
] | null | null | null | players/urls.py | hleejr/hofAI | d4135a87071eb272e045ec427bd4cf2fedee9307 | [
"FTL"
] | 1 | 2021-08-19T22:26:16.000Z | 2021-08-19T22:26:16.000Z | from django.urls import path
from . import views
urlpatterns = [
path('nba/', views.PlayerListView.as_view(), name='nba-list-page'),
path('nba/<int:id>/', views.PlayerDetailView.as_view(), name='nba-detail-page'),
path('nba/search/', views.PlayerSearch.as_view(), name='nba-search-page'),
path('nfl/', v... | 44.25 | 84 | 0.676083 |
0e677bb51b35c500b63970611b9dbe8b1db2dde6 | 292 | py | Python | django2/demo/meeting/views.py | Gozeon/code-collections | 7304e2b9c4c91a809125198d22cf40dcbb45a23b | [
"MIT"
] | null | null | null | django2/demo/meeting/views.py | Gozeon/code-collections | 7304e2b9c4c91a809125198d22cf40dcbb45a23b | [
"MIT"
] | 1 | 2020-07-17T09:25:42.000Z | 2020-07-17T09:25:42.000Z | django2/demo/meeting/views.py | Gozeon/code-collections | 7304e2b9c4c91a809125198d22cf40dcbb45a23b | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
| 17.176471 | 38 | 0.660959 |
0e67c3d1189cc9a2fa0ae70c15b2f561c7bd2b47 | 404 | py | Python | Semester2/bottles.py | ConstantineLinardakis/Programming1Portfolio | 9062590de87e495ecf19b759a5d7a132a6982e3b | [
"MIT"
] | 1 | 2020-11-23T19:02:21.000Z | 2020-11-23T19:02:21.000Z | Semester2/bottles.py | ConstantineLinardakis/Programming1Portfolio | 9062590de87e495ecf19b759a5d7a132a6982e3b | [
"MIT"
] | null | null | null | Semester2/bottles.py | ConstantineLinardakis/Programming1Portfolio | 9062590de87e495ecf19b759a5d7a132a6982e3b | [
"MIT"
] | null | null | null | #loop
bottles = 99
while (bottles > 0):
if (bottles > 1):
print bottles, "bottles of root beer on the wall", bottles, "bottles of root beer"
print "Take one down pass it around,", bottles, "bottles of root beer on the wall"
else:
print bottles, "bottles of root beer on... | 21.263158 | 90 | 0.591584 |
0e6a1dd764d9575734fedccbb49686086ffb62aa | 6,574 | py | Python | deepcompton/scripts/CreateDatasetWithUncertainties.py | vuillaut/DeepIntegralCompton | f7f6811401d6b234a615742e4f6d22ac46e91b2f | [
"MIT"
] | 1 | 2021-12-06T16:35:20.000Z | 2021-12-06T16:35:20.000Z | deepcompton/scripts/CreateDatasetWithUncertainties.py | vuillaut/DeepIntegralCompton | f7f6811401d6b234a615742e4f6d22ac46e91b2f | [
"MIT"
] | 1 | 2021-12-07T00:45:31.000Z | 2021-12-08T09:13:45.000Z | deepcompton/scripts/CreateDatasetWithUncertainties.py | vuillaut/DeepIntegralCompton | f7f6811401d6b234a615742e4f6d22ac46e91b2f | [
"MIT"
] | 2 | 2021-12-06T16:43:46.000Z | 2021-12-06T16:49:54.000Z | # Deep Learning applique a l'imagerie Compton avec les donnees du satellite INTEGRAL
# Hackatlon AstroInfo 2021
##___ Importations
import numpy as np
import matplotlib.pyplot as plt
import Utilitaires_Compton as compton
import pickle as pkl
from os import listdir
from sys import setrecursionlimit
# ___ Constantes... | 28.960352 | 136 | 0.623973 |
0e6ba2de9241ced5ccf9acb46a7611acaa103fa7 | 641 | py | Python | insta/migrations/0003_auto_20190522_1122.py | eddyyonnie/instanicer | ae5c9994a5fcf0291a7785921655be0d5293a790 | [
"MIT"
] | null | null | null | insta/migrations/0003_auto_20190522_1122.py | eddyyonnie/instanicer | ae5c9994a5fcf0291a7785921655be0d5293a790 | [
"MIT"
] | 4 | 2021-03-19T00:52:54.000Z | 2021-09-08T01:00:47.000Z | insta/migrations/0003_auto_20190522_1122.py | eddyyonnie/instanicer | ae5c9994a5fcf0291a7785921655be0d5293a790 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-22 08:22
from django.db import migrations, models
| 24.653846 | 114 | 0.549142 |
0e6bbfb6f7ffa48afb033c77acd475e0be9aebd8 | 15,134 | py | Python | configs.py | wangchaodong/packaging | 7061a65c72f467a0b301374a7101b0152c168ad1 | [
"MIT"
] | 15 | 2021-09-19T16:01:38.000Z | 2022-03-21T02:02:24.000Z | configs.py | wangchaodong/packaging | 7061a65c72f467a0b301374a7101b0152c168ad1 | [
"MIT"
] | null | null | null | configs.py | wangchaodong/packaging | 7061a65c72f467a0b301374a7101b0152c168ad1 | [
"MIT"
] | 2 | 2021-09-19T21:52:15.000Z | 2021-09-25T14:41:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import enum
import json
import os
import plistlib
import subprocess
import time
import tools
import requests
python_script_debug_enable = False # debug
pwd = os.getcwd() #
ios_project_path = os.path.abspath(os.path.dirname(
pwd) + os.path.sep + ".") # ios,,
... | 37.835 | 208 | 0.703317 |
0e6c3388675e9316ea0f6f1944364bc28e508aaa | 798 | py | Python | django_etuovi/utils/testing.py | City-of-Helsinki/django-etuovi | bb8ad9dee0ebfad3bb3e53dd0857dd67eed9a4a5 | [
"MIT"
] | 1 | 2021-03-15T11:28:16.000Z | 2021-03-15T11:28:16.000Z | django_etuovi/utils/testing.py | City-of-Helsinki/django-etuovi | bb8ad9dee0ebfad3bb3e53dd0857dd67eed9a4a5 | [
"MIT"
] | 8 | 2020-09-15T13:18:49.000Z | 2021-06-10T20:36:45.000Z | django_etuovi/utils/testing.py | City-of-Helsinki/django-etuovi | bb8ad9dee0ebfad3bb3e53dd0857dd67eed9a4a5 | [
"MIT"
] | 1 | 2020-12-02T13:18:07.000Z | 2020-12-02T13:18:07.000Z | import typing
| 33.25 | 76 | 0.680451 |
0e6dcc10a354feb2d47f6cf7f7092dd6f503b59c | 5,128 | py | Python | lauschgeraet/lgiface.py | SySS-Research/Lauschgeraet | b7c14fa3df3227109fbe2a006a4d67ba2645450f | [
"MIT"
] | 25 | 2019-06-12T11:32:48.000Z | 2022-02-25T01:57:38.000Z | lauschgeraet/lgiface.py | SySS-Research/Lauschgeraet | b7c14fa3df3227109fbe2a006a4d67ba2645450f | [
"MIT"
] | 1 | 2019-08-22T12:50:41.000Z | 2019-08-22T12:50:41.000Z | lauschgeraet/lgiface.py | SySS-Research/Lauschgeraet | b7c14fa3df3227109fbe2a006a4d67ba2645450f | [
"MIT"
] | 5 | 2019-07-08T00:08:05.000Z | 2021-09-09T03:55:41.000Z | # -*- coding: utf-8 -*-
from lauschgeraet.args import args, LG_NS_MODE
import subprocess
import os
import sys
import logging
import netns
log = logging.getLogger(__name__)
TEST = os.path.exists('testing')
TEST_STATE = {
"lgstate": {
"enabled": True,
"active": True,
... | 27.132275 | 79 | 0.530811 |
0e6e57c6b5f1bcaacca310fcec2b309ab9c13359 | 4,476 | py | Python | 1099parser.py | liyanghuang/1099-parser | 5e1294f7ca74546228d10cb5272c47cec9bd51eb | [
"MIT"
] | 2 | 2021-03-10T01:22:12.000Z | 2021-05-18T01:11:33.000Z | 1099parser.py | liyanghuang/1099-parser | 5e1294f7ca74546228d10cb5272c47cec9bd51eb | [
"MIT"
] | null | null | null | 1099parser.py | liyanghuang/1099-parser | 5e1294f7ca74546228d10cb5272c47cec9bd51eb | [
"MIT"
] | null | null | null | import pdfplumber
import re
import csv
from tqdm import tqdm
print('(When entering file paths on windows, use \'/\' in the place of \'\\\')')
pdf_path = input('Enter the file path of the 1099 pdf:\n')
# open up the pdf file, keep trying until user enters valid file
valid_pdf = False
while not valid_pdf:
try:
pdf =... | 41.444444 | 232 | 0.678731 |
0e6f3670c8eeedc919a111469dde8bf049ce3484 | 365 | py | Python | awards/migrations/0005_rename_avg_rate_rating_average.py | Maryan23/Laurels | cde7332ac9e5a4032a4d2da725bb5b70c66ce9ff | [
"MIT"
] | null | null | null | awards/migrations/0005_rename_avg_rate_rating_average.py | Maryan23/Laurels | cde7332ac9e5a4032a4d2da725bb5b70c66ce9ff | [
"MIT"
] | null | null | null | awards/migrations/0005_rename_avg_rate_rating_average.py | Maryan23/Laurels | cde7332ac9e5a4032a4d2da725bb5b70c66ce9ff | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-13 21:01
from django.db import migrations
| 19.210526 | 47 | 0.586301 |
0e6fd8b9f77fd0e293d000aaeb0b2a9d87bb7355 | 3,955 | py | Python | Updated_Self_supervised_training/vq_vae_decoder.py | nerdk312/AMDIM_Decoder | 7ca7eb869801d5fbe80b6bc3bb9ca4a2ba4b7238 | [
"MIT"
] | null | null | null | Updated_Self_supervised_training/vq_vae_decoder.py | nerdk312/AMDIM_Decoder | 7ca7eb869801d5fbe80b6bc3bb9ca4a2ba4b7238 | [
"MIT"
] | null | null | null | Updated_Self_supervised_training/vq_vae_decoder.py | nerdk312/AMDIM_Decoder | 7ca7eb869801d5fbe80b6bc3bb9ca4a2ba4b7238 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
| 41.197917 | 165 | 0.653603 |
0e707c6695fa41c264c8fbc5f51ed3834836d8ab | 863 | py | Python | spider/featurization/audio_featurization.py | Rosna/P4ML-UI | edf0dd830588f03b197e4d6532830a5aedd88424 | [
"Apache-2.0"
] | 1 | 2021-11-05T17:42:47.000Z | 2021-11-05T17:42:47.000Z | spider/featurization/audio_featurization.py | Rosna/P4ML-UI | edf0dd830588f03b197e4d6532830a5aedd88424 | [
"Apache-2.0"
] | null | null | null | spider/featurization/audio_featurization.py | Rosna/P4ML-UI | edf0dd830588f03b197e4d6532830a5aedd88424 | [
"Apache-2.0"
] | 2 | 2019-02-21T18:29:51.000Z | 2019-09-02T21:21:26.000Z | import os
import csv
import librosa
import numpy as np
import pandas as pd
from spider.featurization.audio_featurization import AudioFeaturization
# Read the test data csv
csv_file='data/testAudioData.csv'
df = pd.read_csv(csv_file)
# Read in the audio data specified by the csv
data = []
for idx, row in df.iterrows()... | 23.972222 | 71 | 0.772885 |
0e70ece1a0f0d81315d96404c33e6fd25db67704 | 7,617 | py | Python | anvil/__main__.py | timjr/Openstack-Anvil | 5a8199cfef2a7cd83d1886aaa6aa8e0b24cd589d | [
"Apache-2.0"
] | 1 | 2021-06-29T06:09:58.000Z | 2021-06-29T06:09:58.000Z | anvil/__main__.py | timjr/Openstack-Anvil | 5a8199cfef2a7cd83d1886aaa6aa8e0b24cd589d | [
"Apache-2.0"
] | null | null | null | anvil/__main__.py | timjr/Openstack-Anvil | 5a8199cfef2a7cd83d1886aaa6aa8e0b24cd589d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (C) 2012 Yahoo! Inc. 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 ... | 32.004202 | 119 | 0.645661 |
0e713875dd8d9fbfe017a19ab32d110467c9d404 | 524 | py | Python | ht13_Ex28_MaxThree.py | mikksillaste/aima-python | cf7b90bccf10e682f073bb5dbdc2056be6f4eb40 | [
"MIT"
] | null | null | null | ht13_Ex28_MaxThree.py | mikksillaste/aima-python | cf7b90bccf10e682f073bb5dbdc2056be6f4eb40 | [
"MIT"
] | null | null | null | ht13_Ex28_MaxThree.py | mikksillaste/aima-python | cf7b90bccf10e682f073bb5dbdc2056be6f4eb40 | [
"MIT"
] | null | null | null | # kasutaja sisestab 3 numbrit
number1 = int(input("Sisesta esimene arv: "))
number2 = int(input("Sisesta teine arv: "))
number3 = int(input("Sisesta kolmas arv: "))
# funktsioon, mis tagastab kolmes sisestatud arvust suurima
print(largest(number1, number2, number3)) | 26.2 | 59 | 0.685115 |
0e7351729964b02b462566b09dcddbc2209fa1c8 | 3,561 | py | Python | levelheap-micha-4d/levels/gamma.py | triffid/kiki | b64b8524063c149a5cc9118f48d80afec1d8a942 | [
"Unlicense"
] | 2 | 2020-01-04T23:44:10.000Z | 2020-07-12T17:10:09.000Z | levelheap-micha-4d/levels/gamma.py | triffid/kiki | b64b8524063c149a5cc9118f48d80afec1d8a942 | [
"Unlicense"
] | null | null | null | levelheap-micha-4d/levels/gamma.py | triffid/kiki | b64b8524063c149a5cc9118f48d80afec1d8a942 | [
"Unlicense"
] | 1 | 2022-03-16T05:43:33.000Z | 2022-03-16T05:43:33.000Z | # level design by Michael Abel
schemes=[test_scheme, tron_scheme,candy_scheme, default_scheme,
green_scheme, yellow_scheme, blue_scheme, red_scheme, metal_scheme, bronze_scheme]
# .................................................................................................................
level_dict["gam... | 42.392857 | 115 | 0.511092 |
0e7360046447f24e5c5fb81df9b707bff42c305e | 13,241 | py | Python | feature_importance/feature_attribution.py | UMCUGenetics/cancer_type_classification_from_sparse_SNV_data | 03a768d0f999b9d3ab544909c1ca534c85d7cd17 | [
"Apache-2.0"
] | null | null | null | feature_importance/feature_attribution.py | UMCUGenetics/cancer_type_classification_from_sparse_SNV_data | 03a768d0f999b9d3ab544909c1ca534c85d7cd17 | [
"Apache-2.0"
] | null | null | null | feature_importance/feature_attribution.py | UMCUGenetics/cancer_type_classification_from_sparse_SNV_data | 03a768d0f999b9d3ab544909c1ca534c85d7cd17 | [
"Apache-2.0"
] | null | null | null | from __future__ import division
import os
import sys
import numpy as np
import pandas as pd
import tensorflow as tf
from keras import backend as K
from keras.models import load_model
def freeze_session(session, keep_var_names=None, output_names=None, clear_devices=True):
"""
Freezes the state of a session i... | 46.953901 | 118 | 0.701458 |
0e736be5fe9338ed998f699968b1944d73ad1c08 | 2,405 | py | Python | rolldecayestimators/tests/test_polynom_estimator.py | martinlarsalbert/rolldecay-estimators | 4d70da6058720ecbcecba3ed94c40f287a115e05 | [
"BSD-3-Clause"
] | 1 | 2021-05-21T06:05:20.000Z | 2021-05-21T06:05:20.000Z | rolldecayestimators/tests/test_polynom_estimator.py | martinlarsalbert/rolldecay-estimators | 4d70da6058720ecbcecba3ed94c40f287a115e05 | [
"BSD-3-Clause"
] | null | null | null | rolldecayestimators/tests/test_polynom_estimator.py | martinlarsalbert/rolldecay-estimators | 4d70da6058720ecbcecba3ed94c40f287a115e05 | [
"BSD-3-Clause"
] | null | null | null | import pytest
import pandas as pd
import os.path
from sklearn.datasets import make_regression
from sklearn.pipeline import Pipeline
from sklearn.feature_selection import SelectKBest
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import PolynomialFeatures
from sklearn.feature_selection impo... | 23.125 | 100 | 0.686071 |
0e75465f62c387ef9aa64e8ae316dc9423908eba | 2,151 | py | Python | jzl/utils/wrappers.py | elijahc/jzlsdk | fc04a60383e6e71d50d27e8d04dff96f18ee7b06 | [
"MIT"
] | null | null | null | jzl/utils/wrappers.py | elijahc/jzlsdk | fc04a60383e6e71d50d27e8d04dff96f18ee7b06 | [
"MIT"
] | 7 | 2019-12-16T20:48:16.000Z | 2022-02-09T23:31:19.000Z | jzl/utils/wrappers.py | elijahc/jzl | fc04a60383e6e71d50d27e8d04dff96f18ee7b06 | [
"MIT"
] | null | null | null | import scipy.io as sio
import numpy as np
| 33.609375 | 91 | 0.566713 |
0e75958c82fc2714586320be787064c237d82eab | 123 | py | Python | condition/leap year or not using conditional operator.py | PraghadeshManivannan/Python | 7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa | [
"MIT"
] | null | null | null | condition/leap year or not using conditional operator.py | PraghadeshManivannan/Python | 7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa | [
"MIT"
] | null | null | null | condition/leap year or not using conditional operator.py | PraghadeshManivannan/Python | 7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa | [
"MIT"
] | null | null | null | a = int(input("Enter the year:"))
print(a,"is leap year") if a%4 == 0 and a%400 == 0 else print(a,"is not a leap year")
| 41 | 87 | 0.601626 |
0e762537c53ad43de3d76c0baf22e9a8eda7f44a | 245 | py | Python | Aula_8/Aula8.py | Mateus-Silva11/AulasPython | d34dc4f62ade438e68b0a80e0baac4d6ec0d378e | [
"MIT"
] | null | null | null | Aula_8/Aula8.py | Mateus-Silva11/AulasPython | d34dc4f62ade438e68b0a80e0baac4d6ec0d378e | [
"MIT"
] | null | null | null | Aula_8/Aula8.py | Mateus-Silva11/AulasPython | d34dc4f62ade438e68b0a80e0baac4d6ec0d378e | [
"MIT"
] | null | null | null | #Tuplas
numeros = [1,2,4,5,6,7,8,9] #lista
usuario = {'Nome':'Mateus' , 'senha':123456789 } #dicionario
pessoa = ('Mateus' , 'Alves' , 16 , 14 , 90) #tupla
print(numeros)
print(usuario)
print(pessoa)
numeros[1] = 8
usuario['senha'] = 4545343
| 18.846154 | 60 | 0.644898 |
0e771285f72212fd64fb27aaa4e22a0fd1363127 | 7,242 | py | Python | image-generation/variational-auto-encoder/vq-vae/models/vq_vae.py | AaratiAkkapeddi/nnabla-examples | db9e5ad850303c158773aeb275e5c3821b4a3935 | [
"Apache-2.0"
] | 228 | 2017-11-20T06:05:56.000Z | 2022-03-23T12:40:05.000Z | image-generation/variational-auto-encoder/vq-vae/models/vq_vae.py | AaratiAkkapeddi/nnabla-examples | db9e5ad850303c158773aeb275e5c3821b4a3935 | [
"Apache-2.0"
] | 36 | 2018-01-11T23:26:20.000Z | 2022-03-12T00:53:38.000Z | image-generation/variational-auto-encoder/vq-vae/models/vq_vae.py | AaratiAkkapeddi/nnabla-examples | db9e5ad850303c158773aeb275e5c3821b4a3935 | [
"Apache-2.0"
] | 76 | 2017-11-22T22:00:00.000Z | 2022-03-28T05:58:57.000Z | # Copyright 2019,2020,2021 Sony Corporation.
# Copyright 2021 Sony Group 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
#
# Un... | 42.350877 | 185 | 0.611019 |
0e78b39fa7d281be1d08a36cc35b24cc2b0c544b | 3,464 | py | Python | src/pyherc/test/builders/level.py | tuturto/pyherc | 4e7c72a4d80d335f7d3c48cecac96cd7105acac4 | [
"MIT"
] | 25 | 2015-07-21T12:40:42.000Z | 2021-09-23T09:00:45.000Z | src/pyherc/test/builders/level.py | tuturto/pyherc | 4e7c72a4d80d335f7d3c48cecac96cd7105acac4 | [
"MIT"
] | 65 | 2015-02-15T19:42:19.000Z | 2018-01-03T10:22:35.000Z | src/pyherc/test/builders/level.py | tuturto/pyherc | 4e7c72a4d80d335f7d3c48cecac96cd7105acac4 | [
"MIT"
] | 3 | 2017-06-15T13:07:49.000Z | 2019-04-15T02:18:39.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2017 Tuukka Turto
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy,... | 29.109244 | 79 | 0.634815 |
0e7a071ddbe4675462eb93a7095f9190e337de5c | 22,595 | py | Python | magma/backend/coreir/coreir_transformer.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 167 | 2017-10-08T00:59:22.000Z | 2022-02-08T00:14:39.000Z | magma/backend/coreir/coreir_transformer.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 719 | 2017-08-29T17:58:28.000Z | 2022-03-31T23:39:18.000Z | magma/backend/coreir/coreir_transformer.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 14 | 2017-09-01T03:25:16.000Z | 2021-11-05T13:30:24.000Z | from abc import ABC, abstractmethod
from copy import copy
import json
import logging
import os
import coreir as pycoreir
from magma.digital import Digital
from magma.array import Array
from magma.bits import Bits
from magma.backend.check_wiring_context import check_wiring_context
from magma.backend.coreir.coreir_util... | 41.534926 | 80 | 0.633105 |
0e7cf013eb13eaa544422d0897234c6664f7cce5 | 5,371 | py | Python | src/encoded/tests/test_static_page.py | 4dn-dcic/fourfron | 29601961706d2371b982e57ae085e8ebec3b2714 | [
"MIT"
] | 11 | 2016-11-23T02:33:13.000Z | 2021-06-18T14:21:20.000Z | src/encoded/tests/test_static_page.py | 4dn-dcic/fourfron | 29601961706d2371b982e57ae085e8ebec3b2714 | [
"MIT"
] | 1,159 | 2016-11-21T15:40:24.000Z | 2022-03-29T03:18:38.000Z | src/encoded/tests/test_static_page.py | 4dn-dcic/fourfron | 29601961706d2371b982e57ae085e8ebec3b2714 | [
"MIT"
] | 5 | 2017-01-27T16:36:15.000Z | 2019-06-14T14:39:54.000Z | import pytest
import webtest
from dcicutils.qa_utils import notice_pytest_fixtures
from .workbook_fixtures import app_settings, app # are these needed? -kmp 12-Mar-2021
notice_pytest_fixtures(app_settings, app)
pytestmark = [pytest.mark.indexing, pytest.mark.working]
def test_get_help_page(testapp, help_pag... | 36.537415 | 225 | 0.661329 |
0e7d4d108567f466b35fc7926c86a921b3e00477 | 1,374 | py | Python | api/views.py | rukbotto/reviews-django | 28ff12a490d160b76ca75f5cc450fc7556996962 | [
"MIT"
] | null | null | null | api/views.py | rukbotto/reviews-django | 28ff12a490d160b76ca75f5cc450fc7556996962 | [
"MIT"
] | null | null | null | api/views.py | rukbotto/reviews-django | 28ff12a490d160b76ca75f5cc450fc7556996962 | [
"MIT"
] | 1 | 2018-09-06T18:52:33.000Z | 2018-09-06T18:52:33.000Z | from django.http import Http404
from django.shortcuts import render
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
from api.models import Review
from api.serializers import ReviewSerializer
... | 35.230769 | 76 | 0.703057 |
0e7dc78c76ad3448f8b2889d760c4e349ce77e58 | 1,429 | py | Python | test/connector/exchange/altmarkets/test_altmarkets_user_stream_tracker.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 542 | 2021-12-17T22:34:31.000Z | 2022-03-31T14:36:23.000Z | test/connector/exchange/altmarkets/test_altmarkets_user_stream_tracker.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 291 | 2021-12-17T20:07:53.000Z | 2022-03-31T11:07:23.000Z | test/connector/exchange/altmarkets/test_altmarkets_user_stream_tracker.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 220 | 2021-12-17T12:41:23.000Z | 2022-03-31T23:03:22.000Z | #!/usr/bin/env python
import sys
import asyncio
import logging
import unittest
import conf
from os.path import join, realpath
from hummingbot.connector.exchange.altmarkets.altmarkets_user_stream_tracker import AltmarketsUserStreamTracker
from hummingbot.connector.exchange.altmarkets.altmarkets_auth import AltmarketsA... | 37.605263 | 111 | 0.773268 |
0e7f4389c015b9220c6189155e2e9c20712acc78 | 209 | py | Python | Lesson_n1/logger/simple-logger.py | LemuelPuglisi/TutoratoTap | 81ce9d0f2163d18683c5aacde42b39f5a2e618a6 | [
"MIT"
] | 8 | 2022-03-22T10:12:03.000Z | 2022-03-28T17:44:08.000Z | Lesson_n1/logger/simple-logger.py | LemuelPuglisi/TutoratoTap | 81ce9d0f2163d18683c5aacde42b39f5a2e618a6 | [
"MIT"
] | null | null | null | Lesson_n1/logger/simple-logger.py | LemuelPuglisi/TutoratoTap | 81ce9d0f2163d18683c5aacde42b39f5a2e618a6 | [
"MIT"
] | null | null | null | import time
def log():
""" Python dummy logger example.
"""
t = 0
while True:
print(f'time: {t} \t log sent.')
t += 1
time.sleep(1)
if __name__ == '__main__': log() | 17.416667 | 40 | 0.492823 |
0e80028221b4b905d8118772396dbaa3bc538fda | 1,568 | py | Python | appzoo/utils/streamlit_utils.py | streamlit-badge-bot/AppZoo | 86547fdc5209fa137b0a6384d63e92f263c1e160 | [
"MIT"
] | 5 | 2020-11-05T12:13:45.000Z | 2021-11-19T12:26:49.000Z | appzoo/utils/streamlit_utils.py | streamlit-badge-bot/AppZoo | 86547fdc5209fa137b0a6384d63e92f263c1e160 | [
"MIT"
] | null | null | null | appzoo/utils/streamlit_utils.py | streamlit-badge-bot/AppZoo | 86547fdc5209fa137b0a6384d63e92f263c1e160 | [
"MIT"
] | 3 | 2020-11-23T23:06:34.000Z | 2021-04-18T02:12:40.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : StreamlitApp.
# @File : utils
# @Time : 2020/11/3 12:17
# @Author : yuanjie
# @Email : yuanjie@xiaomi.com
# @Software : PyCharm
# @Description : https://share.streamlit.io/daniellewisdl/streamlit-cheat-sheet/app.py
impor... | 30.153846 | 96 | 0.612883 |
0e810e0c87499969e85aa82e852af21b94d75db6 | 1,918 | py | Python | examples/no_ui/huobitest.py | tienjunhsu/vnpy | be18953fbe74c408682a3ffd48e5fa93e2386284 | [
"MIT"
] | null | null | null | examples/no_ui/huobitest.py | tienjunhsu/vnpy | be18953fbe74c408682a3ffd48e5fa93e2386284 | [
"MIT"
] | null | null | null | examples/no_ui/huobitest.py | tienjunhsu/vnpy | be18953fbe74c408682a3ffd48e5fa93e2386284 | [
"MIT"
] | null | null | null | import multiprocessing
from time import sleep
from datetime import datetime, time
from logging import INFO
from vnpy.event import EventEngine
from vnpy.trader.setting import SETTINGS
from vnpy.trader.engine import MainEngine
from vnpy.gateway.hbdm import HbdmGateway
from vnpy.gateway.hbsdm import HbsdmGateway
from vn... | 22.045977 | 71 | 0.683003 |
0e83097f53c2e6c4632f27c5c21128930923b98d | 2,928 | py | Python | scripts/has_prebuilt.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | scripts/has_prebuilt.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | 2 | 2021-03-26T00:29:32.000Z | 2021-04-30T21:29:33.000Z | scripts/has_prebuilt.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Script to check if the package(s) have prebuilts.
The script must be run inside the chroot. The output is a json dict mapping ... | 28.705882 | 79 | 0.705601 |
0e83218e9a9ab8e19a0dc8d1f227f7ad4339d871 | 23,057 | py | Python | horizon/operational_mgmt/inventory/views.py | open-power-ref-design-toolkit/opsmgr | ce9d5dc8a4038f22302a168288a6a4f6683dcd45 | [
"Apache-2.0"
] | 5 | 2017-05-10T00:32:37.000Z | 2019-08-21T09:32:01.000Z | horizon/operational_mgmt/inventory/views.py | open-power-ref-design-toolkit/opsmgr | ce9d5dc8a4038f22302a168288a6a4f6683dcd45 | [
"Apache-2.0"
] | null | null | null | horizon/operational_mgmt/inventory/views.py | open-power-ref-design-toolkit/opsmgr | ce9d5dc8a4038f22302a168288a6a4f6683dcd45 | [
"Apache-2.0"
] | 3 | 2017-05-10T00:32:40.000Z | 2018-10-16T19:18:18.000Z | # Copyright 2016, IBM US, Inc.
#
# 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 writing... | 42.856877 | 86 | 0.585202 |
0e84e4b1430330a3daa5f05da337c132509ce937 | 15,547 | py | Python | umbra/controller.py | galgeek/umbra | 1a9a39606856b30f17885518dba8436c8909e0a2 | [
"Apache-2.0"
] | 48 | 2015-01-15T15:49:07.000Z | 2021-07-03T17:10:33.000Z | umbra/controller.py | galgeek/umbra | 1a9a39606856b30f17885518dba8436c8909e0a2 | [
"Apache-2.0"
] | 21 | 2015-07-30T23:03:08.000Z | 2020-05-24T17:17:54.000Z | umbra/controller.py | galgeek/umbra | 1a9a39606856b30f17885518dba8436c8909e0a2 | [
"Apache-2.0"
] | 23 | 2015-01-16T15:22:57.000Z | 2021-07-14T13:38:47.000Z | #!/usr/bin/env python
# vim: set sw=4 et:
import logging
import json
import time
import threading
import kombu
import socket
from brozzler.browser import BrowserPool, BrowsingException
import brozzler
import urlcanon
| 43.918079 | 150 | 0.566154 |
0e85f028f93bb5f31397176f386cc2e9751681f4 | 465 | py | Python | Alura/MLClassificacao/A2V1dados.py | EduardoMoraesRitter/Alura | c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6 | [
"MIT"
] | null | null | null | Alura/MLClassificacao/A2V1dados.py | EduardoMoraesRitter/Alura | c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6 | [
"MIT"
] | null | null | null | Alura/MLClassificacao/A2V1dados.py | EduardoMoraesRitter/Alura | c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6 | [
"MIT"
] | null | null | null | import csv
| 23.25 | 77 | 0.703226 |
0e86920fef555c6bd8efe1dbece15e67133d5a86 | 2,087 | py | Python | Program/DPDP/dpdp/utils/profile_utils.py | italogs/HGS-CVRP | 24b3e7b8525f4b2b2de69fd162bd10bedb39e51f | [
"MIT"
] | null | null | null | Program/DPDP/dpdp/utils/profile_utils.py | italogs/HGS-CVRP | 24b3e7b8525f4b2b2de69fd162bd10bedb39e51f | [
"MIT"
] | null | null | null | Program/DPDP/dpdp/utils/profile_utils.py | italogs/HGS-CVRP | 24b3e7b8525f4b2b2de69fd162bd10bedb39e51f | [
"MIT"
] | 1 | 2021-06-09T12:55:19.000Z | 2021-06-09T12:55:19.000Z | import time
import numpy as np
import torch
| 40.134615 | 119 | 0.597508 |
0e873042296e41b0fec86717d2fc6d5d5d3721f0 | 3,818 | py | Python | reviewboard/admin/views.py | vigneshsrinivasan/reviewboard | 4775130c1c1022f81edc11928e02b1b6c069f6ed | [
"MIT"
] | 1 | 2020-02-11T07:09:14.000Z | 2020-02-11T07:09:14.000Z | reviewboard/admin/views.py | vigneshsrinivasan/reviewboard | 4775130c1c1022f81edc11928e02b1b6c069f6ed | [
"MIT"
] | null | null | null | reviewboard/admin/views.py | vigneshsrinivasan/reviewboard | 4775130c1c1022f81edc11928e02b1b6c069f6ed | [
"MIT"
] | null | null | null | import logging
from django.conf import settings
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.models import User
from django.core.cache import cache
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.template.conte... | 35.027523 | 80 | 0.701676 |
0e882c9b948e6d3c33c4a811397e4287f0b75a40 | 2,603 | py | Python | src/wls_filter.py | ray075hl/singleLDR2HDR | 28cff4fcd5aa9a4c37931cce96562a2bdd5375fe | [
"MIT"
] | 35 | 2018-06-08T00:28:55.000Z | 2022-03-30T13:40:10.000Z | src/wls_filter.py | ray075hl/singleLDR2HDR | 28cff4fcd5aa9a4c37931cce96562a2bdd5375fe | [
"MIT"
] | null | null | null | src/wls_filter.py | ray075hl/singleLDR2HDR | 28cff4fcd5aa9a4c37931cce96562a2bdd5375fe | [
"MIT"
] | 16 | 2018-11-02T15:08:39.000Z | 2022-02-14T09:58:57.000Z | """
WLS filter: Edge-preserving smoothing based onthe weightd least squares
optimization framework, as described in Farbman, Fattal, Lischinski, and
Szeliski, "Edge-Preserving Decompositions for Multi-Scale Tone and Detail
Manipulation", ACM Transactions on Graphics, 27(3), August 2008.
Given an input image IN, we see... | 34.25 | 81 | 0.62159 |
0e88cbb20b73b185549520afd3dddebdd1c5d349 | 881 | py | Python | tests/Bug1161780.py | grangier/python-soappy | 41158e4afabe3af2ff414b1c4be35907bbf5dc81 | [
"BSD-3-Clause"
] | 1 | 2015-01-19T02:11:57.000Z | 2015-01-19T02:11:57.000Z | tests/Bug1161780.py | grangier/python-soappy | 41158e4afabe3af2ff414b1c4be35907bbf5dc81 | [
"BSD-3-Clause"
] | 2 | 2017-02-03T20:11:57.000Z | 2019-09-09T19:10:49.000Z | tests/Bug1161780.py | grangier/python-soappy | 41158e4afabe3af2ff414b1c4be35907bbf5dc81 | [
"BSD-3-Clause"
] | 3 | 2016-04-22T17:38:29.000Z | 2019-08-13T14:38:37.000Z | #!/usr/bin/env python
import sys
sys.path.insert(1, "..")
from SOAPpy.Errors import Error
from SOAPpy.Parser import parseSOAPRPC
original = """<?xml version="1.0"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:... | 30.37931 | 132 | 0.725312 |
0e8961f357932c6f57b68ab9acb081d4fe8c71fd | 4,864 | py | Python | catalyst/core/misc.py | tadejsv/catalyst | 2553ce8fd7cecc025ad88819aea73faf8abb229b | [
"Apache-2.0"
] | 206 | 2018-10-05T19:16:47.000Z | 2019-01-19T21:10:41.000Z | catalyst/core/misc.py | tadejsv/catalyst | 2553ce8fd7cecc025ad88819aea73faf8abb229b | [
"Apache-2.0"
] | 20 | 2018-10-07T06:30:49.000Z | 2019-01-17T17:26:15.000Z | catalyst/core/misc.py | tadejsv/catalyst | 2553ce8fd7cecc025ad88819aea73faf8abb229b | [
"Apache-2.0"
] | 22 | 2018-10-06T12:34:08.000Z | 2019-01-10T16:00:48.000Z | from typing import Dict, List, Tuple, Union
from collections import OrderedDict
from functools import lru_cache
import warnings
from torch.utils.data import BatchSampler, DataLoader
from catalyst.core.callback import (
Callback,
CallbackWrapper,
IBackwardCallback,
ICriterionCallback,
IOptimizerCal... | 31.380645 | 81 | 0.668791 |
0e897b9b6ee11290f8bbe871a90dc748ef78c7fe | 2,013 | py | Python | expandimage.py | LuisLinan/helicity_fluxes | 9b6f4049c819d758bca6e524a80c6d7a09e7b179 | [
"MIT"
] | null | null | null | expandimage.py | LuisLinan/helicity_fluxes | 9b6f4049c819d758bca6e524a80c6d7a09e7b179 | [
"MIT"
] | null | null | null | expandimage.py | LuisLinan/helicity_fluxes | 9b6f4049c819d758bca6e524a80c6d7a09e7b179 | [
"MIT"
] | null | null | null | import numpy as np
def place_mirror(im, x1, x2, y1, y2, mr):
""" Place an image mr in specified locations of an image im. The edge locations in im where mr is to be placed are
(x1,y1) and (x2,y2)
Programmer
---------
Manolis K. Georgoulis (JHU/APL, 10/12/05)
"""
nxa = np.zeros(2)
... | 25.807692 | 118 | 0.524093 |
0e8a4f5e382a07daf6ff75e3e2955a20dbb893fe | 4,898 | py | Python | python/protobufs/services/team/actions/get_teams_pb2.py | getcircle/protobuf-registry | 20ad8463b7ac6e2cf279c08bcd3e953993fe9153 | [
"MIT"
] | null | null | null | python/protobufs/services/team/actions/get_teams_pb2.py | getcircle/protobuf-registry | 20ad8463b7ac6e2cf279c08bcd3e953993fe9153 | [
"MIT"
] | null | null | null | python/protobufs/services/team/actions/get_teams_pb2.py | getcircle/protobuf-registry | 20ad8463b7ac6e2cf279c08bcd3e953993fe9153 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: protobufs/services/team/actions/get_teams.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as... | 38.566929 | 519 | 0.780523 |
0e8cf0d37b01be1452f5feb60a1354161f4516a1 | 795 | py | Python | albumy/blueprints/user.py | puppetgc/albumy | 8dce6a2f7828defa69fdb942ac38551cb81b079d | [
"MIT"
] | null | null | null | albumy/blueprints/user.py | puppetgc/albumy | 8dce6a2f7828defa69fdb942ac38551cb81b079d | [
"MIT"
] | null | null | null | albumy/blueprints/user.py | puppetgc/albumy | 8dce6a2f7828defa69fdb942ac38551cb81b079d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:author: TianMing Xu ()
:url: http://greyli.com
:copyright: 2021 TianMing Xu <78703671@qq.com>
:license: MIT, see LICENSE for more details.
"""
from flask import render_template, current_app, request, Blueprint
from albumy.models import User, Photo
user_bp = Blueprint('use... | 34.565217 | 104 | 0.715723 |
0e8d1d299b98c3c9fde54963bdd473b0d3eb4f2b | 187 | py | Python | Tests/Aula_20.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | 4 | 2021-04-23T18:07:58.000Z | 2021-05-12T11:38:14.000Z | Tests/Aula_20.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | null | null | null | Tests/Aula_20.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | null | null | null |
# Principal program
lin()
print(' IAN STIGLIANO SILVA ')
lin()
lin()
print(' CURSO EM VDEO ')
lin()
lin()
print(' GUSTAVO GUANABARA ')
lin()
| 12.466667 | 34 | 0.572193 |
0e8d916a04b0ea3e2a7473717726afba28ca4c92 | 5,304 | py | Python | transparentai/datasets/variable/variable.py | Nathanlauga/transparentai | 9c21c60fe68170f46ba4455173ce80493e3b3bb5 | [
"MIT"
] | 7 | 2020-01-20T09:59:51.000Z | 2021-11-06T07:10:27.000Z | transparentai/datasets/variable/variable.py | Nathanlauga/transparentai | 9c21c60fe68170f46ba4455173ce80493e3b3bb5 | [
"MIT"
] | 8 | 2020-03-24T14:28:50.000Z | 2020-07-31T14:55:06.000Z | transparentai/datasets/variable/variable.py | Nathanlauga/transparentai | 9c21c60fe68170f46ba4455173ce80493e3b3bb5 | [
"MIT"
] | null | null | null | __all__ = [
'describe_number',
'describe_datetime',
'describe_object',
'describe'
]
import pandas as pd
import numpy as np
from scipy import stats
from transparentai import utils
def describe_common(arr):
"""Common descriptive statistics about an array.
Returned statistics:
- Count of ... | 21.737705 | 60 | 0.607278 |
0e8f0fd36260f6f9e8bd5e30e3b45277ea628c6a | 1,472 | py | Python | obniz/obniz/libs/measurements/measure.py | izm51/obniz-python-sdk | 40a738b5fe2c0a415cdc09f46d28c143982bfb07 | [
"MIT"
] | 11 | 2019-03-22T12:02:11.000Z | 2021-01-21T04:57:18.000Z | obniz/obniz/libs/measurements/measure.py | izm51/obniz-python-sdk | 40a738b5fe2c0a415cdc09f46d28c143982bfb07 | [
"MIT"
] | 5 | 2019-03-02T08:28:25.000Z | 2021-02-02T22:06:37.000Z | obniz/obniz/libs/measurements/measure.py | izm51/obniz-python-sdk | 40a738b5fe2c0a415cdc09f46d28c143982bfb07 | [
"MIT"
] | 3 | 2019-07-20T06:55:09.000Z | 2019-12-04T05:05:00.000Z | from ..utils.util import ObnizUtil
| 28.307692 | 84 | 0.506114 |
0e8f1b9e020cbcff46ef73a5b53081ba0b48bcd4 | 7,869 | py | Python | media_grab-container/src/test/unit_test/controllers_test/test_CompletedDownloadsController.py | tomconnolly94/media_grab | 6c1da232fefdcbcb9ae2d79926f31e65970dbfa8 | [
"MIT"
] | null | null | null | media_grab-container/src/test/unit_test/controllers_test/test_CompletedDownloadsController.py | tomconnolly94/media_grab | 6c1da232fefdcbcb9ae2d79926f31e65970dbfa8 | [
"MIT"
] | null | null | null | media_grab-container/src/test/unit_test/controllers_test/test_CompletedDownloadsController.py | tomconnolly94/media_grab | 6c1da232fefdcbcb9ae2d79926f31e65970dbfa8 | [
"MIT"
] | null | null | null | # external dependencies
import unittest
import mock
import os
from unittest.mock import call
import shutil
from mock import MagicMock
from datetime import datetime, timedelta
# internal dependencies
from src.controllers import CompletedDownloadsController
from src.dataTypes.ProgramMode import PROGRAM_MODE
from src.tes... | 45.75 | 185 | 0.686618 |
0e8ff2bd4049ece744d225d9c8cbf9ccd1e11cba | 14,313 | py | Python | framework/generated/vulkan_generators/vulkan_referenced_resource_consumer_body_generator.py | tomped01/gfxreconstruct | ca0eacd7b69fa01a0a9cb2b1259242f341919a43 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | framework/generated/vulkan_generators/vulkan_referenced_resource_consumer_body_generator.py | tomped01/gfxreconstruct | ca0eacd7b69fa01a0a9cb2b1259242f341919a43 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | framework/generated/vulkan_generators/vulkan_referenced_resource_consumer_body_generator.py | tomped01/gfxreconstruct | ca0eacd7b69fa01a0a9cb2b1259242f341919a43 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | #!/usr/bin/python3 -i
#
# Copyright (c) 2020 LunarG, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify... | 47.082237 | 175 | 0.591979 |
0e90f2a19fcb16a87a416f29066cb56fdda1a489 | 8,658 | py | Python | python_modules/libraries/dagster-k8s/dagster_k8s/container_context.py | silentsokolov/dagster | 510bf07bf6906294d5a239d60079c88211002ebf | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-k8s/dagster_k8s/container_context.py | silentsokolov/dagster | 510bf07bf6906294d5a239d60079c88211002ebf | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-k8s/dagster_k8s/container_context.py | silentsokolov/dagster | 510bf07bf6906294d5a239d60079c88211002ebf | [
"Apache-2.0"
] | null | null | null | from typing import TYPE_CHECKING, Any, Dict, List, NamedTuple, Optional, cast
import kubernetes
import dagster._check as check
from dagster.config.validate import process_config
from dagster.core.errors import DagsterInvalidConfigError
from dagster.core.storage.pipeline_run import PipelineRun
from dagster.core.utils ... | 44.4 | 99 | 0.664703 |
0e92fd11a801e6b4a8ab702830466beac2af8d01 | 8,809 | py | Python | fudge-domain.py | jordantrc/domain-fudgery | 21e86adca50ec73662159c0c2c5efd5a93f49cd2 | [
"MIT"
] | null | null | null | fudge-domain.py | jordantrc/domain-fudgery | 21e86adca50ec73662159c0c2c5efd5a93f49cd2 | [
"MIT"
] | null | null | null | fudge-domain.py | jordantrc/domain-fudgery | 21e86adca50ec73662159c0c2c5efd5a93f49cd2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# fudge-domain.py
#
# Finds potentially useful domains
# which are visually similar to the
# target domain and ascertains whether
# these domains are currently available
# (not registered). Also checks if any TLDs
# are not registered for the domain.
#
# Usage:
# domain-fudgery.py [options] [d... | 43.181373 | 140 | 0.517993 |
0e968767fd95ce20a6bb33677442fc2d6eaecce8 | 1,680 | py | Python | crudbuilder/tables.py | rbuchli/django-crudbuilder | c43001f19c6dc64b0bd8ac389a95067da735073d | [
"Apache-2.0"
] | null | null | null | crudbuilder/tables.py | rbuchli/django-crudbuilder | c43001f19c6dc64b0bd8ac389a95067da735073d | [
"Apache-2.0"
] | null | null | null | crudbuilder/tables.py | rbuchli/django-crudbuilder | c43001f19c6dc64b0bd8ac389a95067da735073d | [
"Apache-2.0"
] | null | null | null | import django_tables2 as tables
from django_tables2.utils import A
from .abstract import BaseBuilder
from .helpers import model_class_form, plural, custom_postfix_url
| 34.285714 | 104 | 0.610714 |
0e96eee1110feda2c2d2b2c769427a9d03407ff4 | 4,769 | py | Python | sales/tests/test_views.py | MatsLanGoH/greengrocer | bf22bd15e359f1e6d1827992db5abde9f8db53d5 | [
"MIT"
] | null | null | null | sales/tests/test_views.py | MatsLanGoH/greengrocer | bf22bd15e359f1e6d1827992db5abde9f8db53d5 | [
"MIT"
] | null | null | null | sales/tests/test_views.py | MatsLanGoH/greengrocer | bf22bd15e359f1e6d1827992db5abde9f8db53d5 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth.models import User
from django.urls import reverse
from django.utils import timezone
from sales.models import Fruit, Transaction
from datetime import timedelta
# Create your tests here.
| 40.415254 | 108 | 0.682952 |