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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56f7e6b34768a05254458c5974b6b68155a3ea9f | 4,704 | py | Python | tests/db/ops/test_import_convert_str.py | simonsobs/acondbs | 6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6 | [
"MIT"
] | null | null | null | tests/db/ops/test_import_convert_str.py | simonsobs/acondbs | 6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6 | [
"MIT"
] | 24 | 2020-04-02T19:29:07.000Z | 2022-03-08T03:05:43.000Z | tests/db/ops/test_import_convert_str.py | simonsobs/acondbs | 6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6 | [
"MIT"
] | 1 | 2020-04-08T15:48:28.000Z | 2020-04-08T15:48:28.000Z | import csv
from io import StringIO
import datetime
from sqlalchemy import MetaData
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy_utils import EncryptedType
import pytest
from acondbs import create_app
from acondbs.db.ops import convert_data_type_for_insert
##_____________________________________________... | 25.427027 | 75 | 0.625638 |
56f8f1bd78977f320adb7ac5e330627101781a73 | 3,041 | py | Python | pythonFiles/PCA.py | SANDEEPREDDY56712/OELP_6thSem | 0904c5b47eb57b8399844ca5f3cd9dded6361c5a | [
"MIT"
] | null | null | null | pythonFiles/PCA.py | SANDEEPREDDY56712/OELP_6thSem | 0904c5b47eb57b8399844ca5f3cd9dded6361c5a | [
"MIT"
] | null | null | null | pythonFiles/PCA.py | SANDEEPREDDY56712/OELP_6thSem | 0904c5b47eb57b8399844ca5f3cd9dded6361c5a | [
"MIT"
] | 1 | 2021-07-30T17:24:10.000Z | 2021-07-30T17:24:10.000Z | import pandas as pd
from sklearn.decomposition import PCA
import DataPreprocessing as dp
import sys
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler
from sklearn.cluster import KMeans
from scipy.stats import pearsonr
##################################################... | 32.698925 | 122 | 0.545215 |
56fa36196b16c7d3153b31b44fd82e66ce67cc2c | 86 | py | Python | tap_rockgympro/consts.py | cinchio/tap-rockgympro | aaf55111e40a74708639363cea6198f5e70eeeaf | [
"Apache-2.0"
] | 1 | 2021-09-07T09:29:42.000Z | 2021-09-07T09:29:42.000Z | tap_rockgympro/consts.py | cinchio/tap-rockgympro | aaf55111e40a74708639363cea6198f5e70eeeaf | [
"Apache-2.0"
] | null | null | null | tap_rockgympro/consts.py | cinchio/tap-rockgympro | aaf55111e40a74708639363cea6198f5e70eeeaf | [
"Apache-2.0"
] | null | null | null | ORDERED_STREAM_NAMES = ['facilities', 'customers', 'bookings', 'checkins', 'invoices'] | 86 | 86 | 0.732558 |
56fb6798738db165da7424a3d5f66f0c90904f19 | 98 | py | Python | pygame_rl/scenario/soccer/teams.py | sc420/pygame-rl | f81da559385876616d99c74b43e4345f53d086d2 | [
"MIT"
] | 6 | 2019-02-18T09:34:34.000Z | 2021-11-09T06:58:02.000Z | pygame_rl/scenario/soccer/teams.py | ebola777/pygame-soccer | f81da559385876616d99c74b43e4345f53d086d2 | [
"MIT"
] | 3 | 2019-03-14T03:10:48.000Z | 2019-07-15T08:11:25.000Z | pygame_rl/scenario/soccer/teams.py | ebola777/pygame-soccer | f81da559385876616d99c74b43e4345f53d086d2 | [
"MIT"
] | 4 | 2019-02-13T13:41:17.000Z | 2019-07-22T13:33:15.000Z | # Native modules
from enum import IntEnum
| 12.25 | 24 | 0.683673 |
56fcbdb798ac3caf6427669eb040b57eb4eb3d30 | 331 | py | Python | graph_pruning/methods/zhenv5/remove_self_loops.py | shan18/taxi | 286e2c9a97c1e0b52d63bbb3508045001f449714 | [
"Apache-2.0"
] | 49 | 2017-06-26T01:10:48.000Z | 2022-03-15T12:15:26.000Z | graph_pruning/methods/zhenv5/remove_self_loops.py | uhh-lt/taxi | 0abc016ff854cf3ebeff61be76acf10b7d6a67a7 | [
"Apache-2.0"
] | 7 | 2018-06-20T12:33:49.000Z | 2018-08-27T09:30:34.000Z | graph_pruning/methods/zhenv5/remove_self_loops.py | shan18/taxi | 286e2c9a97c1e0b52d63bbb3508045001f449714 | [
"Apache-2.0"
] | 20 | 2017-06-26T01:27:56.000Z | 2021-12-24T10:38:09.000Z | import networkx as nx
| 30.090909 | 87 | 0.81571 |
56fd5170b7684adf06467bcddc3847c7bea4ee50 | 3,438 | py | Python | DailyProgrammer/DP20150422B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20150422B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20150422B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[2015-04-22] Challenge #211 [Intermediate] Ogre Maze
https://www.reddit.com/r/dailyprogrammer/comments/33hwwf/20150422_challenge_211_intermediate_ogre_maze/
#Description:
Today we are going to solve a maze. What? Again? Come on, Simpsons did it. Yah okay so we always pick a hero to walk a
maze. This time our her... | 31.254545 | 119 | 0.617219 |
56fe5a7bf702f7326f225c4e486c0a157601c27e | 39,967 | py | Python | test/intelliflow/core/signal_processing/routing_runtime_constructs/test_route.py | amzn/rheoceros | 5e8f79d97f8b21d693d3c869b0df70de3d5fd068 | [
"Apache-2.0",
"MIT-0"
] | 4 | 2022-03-24T04:39:02.000Z | 2022-03-31T16:41:50.000Z | test/intelliflow/core/signal_processing/routing_runtime_constructs/test_route.py | amzn/rheoceros | 5e8f79d97f8b21d693d3c869b0df70de3d5fd068 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | test/intelliflow/core/signal_processing/routing_runtime_constructs/test_route.py | amzn/rheoceros | 5e8f79d97f8b21d693d3c869b0df70de3d5fd068 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import copy
import time
from test.intelliflow.core.signal_processing.dimension_constructs.test_dimension_spec import TestDimensionSpec
from test.intelliflow.core.signal_processing.routing_runtime_constructs impor... | 44.358491 | 138 | 0.636525 |
56ff69de5c0b77597019e7ce269a5c5386a35249 | 1,519 | py | Python | uocsecrets/forum/urls.py | jeff-zqiu/uocweb | bb6e99a7ab01c9634f8b8446127c4bd1c0701388 | [
"MIT"
] | 1 | 2018-09-24T13:32:06.000Z | 2018-09-24T13:32:06.000Z | uocsecrets/forum/urls.py | jeff-zqiu/uocweb | bb6e99a7ab01c9634f8b8446127c4bd1c0701388 | [
"MIT"
] | null | null | null | uocsecrets/forum/urls.py | jeff-zqiu/uocweb | bb6e99a7ab01c9634f8b8446127c4bd1c0701388 | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
from django.views.generic import TemplateView
app_name = 'forum'
urlpatterns = [
# /forum/
path('about/', TemplateView.as_view(template_name='forum/about.html'),name='about'),
path('', views.IndexView.as_view(), name = 'index'),
path('top/', ... | 41.054054 | 97 | 0.631995 |
71008fe29a8062c4d781fffdb3dbd9227f9e7c32 | 12,085 | py | Python | leer/core/primitives/block.py | WTRMQDev/leer | c77c6c1d31e6d99996f471bf4c45b8af70f44fa7 | [
"MIT"
] | 5 | 2018-11-10T03:33:37.000Z | 2019-08-23T07:02:32.000Z | leer/core/primitives/block.py | WTRMQDev/leer | c77c6c1d31e6d99996f471bf4c45b8af70f44fa7 | [
"MIT"
] | 2 | 2018-11-22T11:10:49.000Z | 2018-12-15T14:44:03.000Z | leer/core/primitives/block.py | WTRMQDev/leer | c77c6c1d31e6d99996f471bf4c45b8af70f44fa7 | [
"MIT"
] | 2 | 2018-10-30T13:43:54.000Z | 2018-11-13T06:30:56.000Z | from leer.core.primitives.header import Header, PoPoW, VoteData
from leer.core.storage.txos_storage import TXOsStorage
from leer.core.chains.headers_manager import HeadersManager
from leer.core.storage.excesses_storage import ExcessesStorage
from leer.core.storage.headers_storage import HeadersStorage
from leer.core.pr... | 46.841085 | 289 | 0.725528 |
71017d33ceca5fbf3aa398b934100c4307a77f61 | 1,982 | py | Python | GpioService.py | slater1/gpio | ef4767456b746706ee5cb3304ed6ef29e0fe6d54 | [
"MIT"
] | null | null | null | GpioService.py | slater1/gpio | ef4767456b746706ee5cb3304ed6ef29e0fe6d54 | [
"MIT"
] | null | null | null | GpioService.py | slater1/gpio | ef4767456b746706ee5cb3304ed6ef29e0fe6d54 | [
"MIT"
] | null | null | null | from datetime import datetime
from gpiozero import LED
from threading import Thread
from time import sleep
| 27.527778 | 70 | 0.592836 |
7101adf147765864029e975e6ef3b5f8d4d932f9 | 1,465 | py | Python | Loan-Approval-Analysis/code.py | acharya221b/ga-learner-dsmp-repo | 9b493aff25cf861fa8b757d7f2e926e1dcbe6061 | [
"MIT"
] | null | null | null | Loan-Approval-Analysis/code.py | acharya221b/ga-learner-dsmp-repo | 9b493aff25cf861fa8b757d7f2e926e1dcbe6061 | [
"MIT"
] | null | null | null | Loan-Approval-Analysis/code.py | acharya221b/ga-learner-dsmp-repo | 9b493aff25cf861fa8b757d7f2e926e1dcbe6061 | [
"MIT"
] | null | null | null | # --------------
# Import packages
import numpy as np
import pandas as pd
from scipy.stats import mode
bank=pd.read_csv(path)
categorical_var=bank.select_dtypes(include='object')
print(categorical_var)
numerical_var=bank.select_dtypes(include='number')
print(numerical_var)
# code starts here
# code ends here
#... | 18.08642 | 112 | 0.703072 |
7103030bd95a829786ccbdd3fa84915b9d8496a9 | 1,568 | py | Python | test/test_mega.py | adacker10/showdown | 8ceb1ff46d5c33ec3055928d6ad293224446f63c | [
"MIT"
] | 8 | 2019-02-02T01:15:57.000Z | 2021-12-23T04:43:46.000Z | test/test_mega.py | adacker10/showdown | 8ceb1ff46d5c33ec3055928d6ad293224446f63c | [
"MIT"
] | null | null | null | test/test_mega.py | adacker10/showdown | 8ceb1ff46d5c33ec3055928d6ad293224446f63c | [
"MIT"
] | 6 | 2020-09-11T13:15:05.000Z | 2022-03-18T15:46:35.000Z | import unittest
from sim.battle import Battle
from data import dex
| 34.844444 | 65 | 0.53699 |
7105dbc3e130b4596cac492082bc99f3266720ff | 3,872 | py | Python | tests/test_pybrain.py | carlosf/rep | 365917a1d582c7d784e26f80808eeed18f655cb3 | [
"Apache-2.0"
] | null | null | null | tests/test_pybrain.py | carlosf/rep | 365917a1d582c7d784e26f80808eeed18f655cb3 | [
"Apache-2.0"
] | null | null | null | tests/test_pybrain.py | carlosf/rep | 365917a1d582c7d784e26f80808eeed18f655cb3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014-2015 Yandex LLC and contributors <https://yandex.com/>
#
# 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... | 37.592233 | 143 | 0.737345 |
710806234af5d094e32935a5e432c9bd6ad09b51 | 9,749 | py | Python | apps/consecutive_create_and_update_operations/consecutive_create_and_update_operations.py | semi-technologies/weaviate-chaos-engineering | 57bc0cd919130749ead1ca2f397a3a46aa77c5fd | [
"BSD-3-Clause"
] | null | null | null | apps/consecutive_create_and_update_operations/consecutive_create_and_update_operations.py | semi-technologies/weaviate-chaos-engineering | 57bc0cd919130749ead1ca2f397a3a46aa77c5fd | [
"BSD-3-Clause"
] | 1 | 2022-03-08T12:03:20.000Z | 2022-03-14T10:28:45.000Z | apps/consecutive_create_and_update_operations/consecutive_create_and_update_operations.py | semi-technologies/weaviate-chaos-engineering | 57bc0cd919130749ead1ca2f397a3a46aa77c5fd | [
"BSD-3-Clause"
] | null | null | null | from weaviate import Client
from uuid import uuid1
c = Client('http://localhost:8080')
test = TestConsecutiveCreateAndUpdate(c)
test.consecutive_create_and_update_operations() | 89.440367 | 5,389 | 0.795569 |
710a8eb80318d483b7ae6c16ae6882b79bd7ec77 | 301 | py | Python | backend/app.py | JohnnyDevNull/python-nuxt-starter | e6158818b7536212dafec2dfe3bc70385110440c | [
"MIT"
] | null | null | null | backend/app.py | JohnnyDevNull/python-nuxt-starter | e6158818b7536212dafec2dfe3bc70385110440c | [
"MIT"
] | 1 | 2022-01-22T12:45:49.000Z | 2022-01-22T12:45:49.000Z | backend/app.py | JohnnyDevNull/python-nuxt-starter | e6158818b7536212dafec2dfe3bc70385110440c | [
"MIT"
] | null | null | null | from flask import Flask
from rest_server import rest_api
from socket_server import socket_api
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
rest_api.init_app(app)
socket_api.init_app(app)
if __name__ == '__main__':
socket_api.run(app, host="127.0.0.1", port="5000", debug='true')
| 21.5 | 68 | 0.744186 |
710eaa9bc41c92a8622f37f457e57ace8494ee57 | 25,385 | py | Python | eran/ELINA/python_interface/elina_coeff.py | pauls658/ReluDiff-ICSE2020-Artifact | 212854fe04f482183c239e5dfec70106a9a83df8 | [
"Apache-2.0"
] | 7 | 2020-01-27T21:25:49.000Z | 2022-01-07T04:37:37.000Z | eran/ELINA/python_interface/elina_coeff.py | yqtianust/ReluDiff-ICSE2020-Artifact | 149f6efe4799602db749faa576980c36921a07c7 | [
"Apache-2.0"
] | 1 | 2022-01-25T17:41:54.000Z | 2022-01-26T02:27:51.000Z | eran/ELINA/python_interface/elina_coeff.py | yqtianust/ReluDiff-ICSE2020-Artifact | 149f6efe4799602db749faa576980c36921a07c7 | [
"Apache-2.0"
] | 3 | 2020-03-14T17:12:17.000Z | 2022-03-16T09:50:46.000Z | #
#
# This source file is part of ELINA (ETH LIbrary for Numerical Analysis).
# ELINA is Copyright 2019 Department of Computer Science, ETH Zurich
# This software is distributed under GNU Lesser General Public License Version 3.0.
# For more information, see the ELINA project website at:
# http://elina.ethz.ch
#
... | 29.144661 | 111 | 0.658105 |
711002166da834a891f4c7b037ed34b457c09408 | 936 | py | Python | utils/gatekeeper.py | whiletrace/dwellinglybackend | e766b3d612b4c92fd337b82498ab8ef68bd95e1f | [
"MIT"
] | 15 | 2020-07-09T20:51:09.000Z | 2021-11-28T21:59:02.000Z | utils/gatekeeper.py | codeforpdx/dwellinglybackend | 92fee6d19a68ae00750927b8700eaa7195b57668 | [
"MIT"
] | 148 | 2020-03-28T22:10:30.000Z | 2021-12-19T09:22:59.000Z | utils/gatekeeper.py | whiletrace/dwellinglybackend | e766b3d612b4c92fd337b82498ab8ef68bd95e1f | [
"MIT"
] | 30 | 2020-03-12T02:31:27.000Z | 2021-07-29T02:40:36.000Z | from flask import current_app, request
from functools import wraps
from typing import Set
| 27.529412 | 88 | 0.66453 |
7113e4f6820f3436a0a547fe628d3433163dbab4 | 2,756 | py | Python | single_preprocessing.py | OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge | dafe6f33ff6269869377d01a014ab1528b0f1c1d | [
"MIT"
] | null | null | null | single_preprocessing.py | OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge | dafe6f33ff6269869377d01a014ab1528b0f1c1d | [
"MIT"
] | null | null | null | single_preprocessing.py | OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge | dafe6f33ff6269869377d01a014ab1528b0f1c1d | [
"MIT"
] | null | null | null | import os
import pandas as pd
from brats_toolkit.preprocessor import Preprocessor
# instantiate
prep = Preprocessor()
## convert mapping info
## survial
name_mapping = r"E:\Datasets\BraTS challenge\MICCAI_BraTS2020_TrainingData\name_mapping.csv"
survival_info = r"E:\Datasets\BraTS challenge\MICCAI_BraTS2020_TrainingD... | 38.816901 | 171 | 0.759071 |
71165b6a3988566ca2a96415e483f35d734b5e5c | 2,081 | py | Python | src/gbkfit/params/params.py | bek0s/gbkf | 2ef56e8554fdf7ee8136141bc16d59bd34efa6c8 | [
"BSD-3-Clause"
] | 6 | 2016-06-26T16:52:25.000Z | 2022-03-22T06:37:13.000Z | src/gbkfit/params/params.py | bek0s/gbkf | 2ef56e8554fdf7ee8136141bc16d59bd34efa6c8 | [
"BSD-3-Clause"
] | 4 | 2016-07-30T08:11:20.000Z | 2021-02-12T08:33:42.000Z | src/gbkfit/params/params.py | bek0s/gbkf | 2ef56e8554fdf7ee8136141bc16d59bd34efa6c8 | [
"BSD-3-Clause"
] | 2 | 2015-05-18T03:21:56.000Z | 2015-09-21T06:16:18.000Z |
import copy
import numbers
from gbkfit.params.interpreter import (
Interpreter,
load_exprs_file,
dump_exprs_file)
from gbkfit.params.utils import parse_param_values_strict
from gbkfit.utils import parseutils
| 29.309859 | 80 | 0.710716 |
7116b439a184e893f7256cd540dd3d4a730960fe | 4,263 | py | Python | infer/lib/capture/make.py | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | infer/lib/capture/make.py | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | infer/lib/capture/make.py | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import os
import subprocess
import traceback
MODULE_NAME = 'make/cc/clang/gcc'
MODULE_DESCRIPTION = '''Run analysis of code built with commands like:
make [target]
clang [compiler_options] <filename>
gcc [compiler_options] <filename>
cc [compiler_options] <filename>
Analysis examples:
infer -- make al... | 32.295455 | 77 | 0.630776 |
7116ca2e4f0dcb2bd507fa78836458daf8085478 | 2,315 | py | Python | projects/Doodle/Alexander/code/train/utils.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 280 | 2018-10-21T01:07:18.000Z | 2021-12-30T11:29:48.000Z | projects/Doodle/YourVenn_code/code/train/utils.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 3 | 2018-11-13T08:04:48.000Z | 2020-04-17T09:20:03.000Z | projects/Doodle/YourVenn_code/code/train/utils.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 59 | 2018-10-21T04:38:23.000Z | 2021-03-29T07:58:47.000Z | from common import *
from torch.autograd import Variable
| 30.866667 | 84 | 0.570626 |
71184f8e2f9e3b802d08210e84b8fd4a03eb2e43 | 1,281 | py | Python | day14/a.py | Cefqrn/advent-of-code-2021 | 1979f3cff981cfe1a5d59d39ec02f104b0e27abd | [
"MIT"
] | null | null | null | day14/a.py | Cefqrn/advent-of-code-2021 | 1979f3cff981cfe1a5d59d39ec02f104b0e27abd | [
"MIT"
] | null | null | null | day14/a.py | Cefqrn/advent-of-code-2021 | 1979f3cff981cfe1a5d59d39ec02f104b0e27abd | [
"MIT"
] | null | null | null | import os
from collections import defaultdict
with open(os.path.join(os.path.dirname(__file__), "input")) as f:
data = f.read().split('\n\n')
template, rules = data
rules = [x.split(' -> ') for x in rules.splitlines()]
rules = dict(rules)
pair_counts = defaultdict(int)
for i, pair in enumerate(zip(tem... | 30.5 | 69 | 0.613583 |
71187322e743030c13b6dd0566757709045bdff7 | 3,793 | py | Python | app/arguments.py | calio/taski | c06346d7e3600f41b1347c6d9f73616f17b226e4 | [
"MIT"
] | null | null | null | app/arguments.py | calio/taski | c06346d7e3600f41b1347c6d9f73616f17b226e4 | [
"MIT"
] | 1 | 2021-06-01T22:24:59.000Z | 2021-06-01T22:24:59.000Z | app/arguments.py | calio/taski | c06346d7e3600f41b1347c6d9f73616f17b226e4 | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
import sys
import six
import argparse
import app
import app.taski as taski
def check_positive_int(val):
"""Make sure input argument is an positive integer"""
ival = int(val)
if ival <= 0:
raise argparse.ArgumentTypeError("%s is not a positive integer" % val)
... | 36.471154 | 102 | 0.631163 |
711ba77d02afa51aa92c2a5601172430744cd942 | 467 | py | Python | tardis/apps/equipment/urls.py | keithschulze/mytardis | 8ed3562574ce990d42bfe96133185a82c31c27d4 | [
"Apache-2.0"
] | null | null | null | tardis/apps/equipment/urls.py | keithschulze/mytardis | 8ed3562574ce990d42bfe96133185a82c31c27d4 | [
"Apache-2.0"
] | null | null | null | tardis/apps/equipment/urls.py | keithschulze/mytardis | 8ed3562574ce990d42bfe96133185a82c31c27d4 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import patterns
urlpatterns = patterns('',
(r'^$', 'tardis.apps.equipment.views.index'),
(r'^search/$', 'tardis.apps.equipment.views.search'),
(r'^(?P<object_id>\d+)/$',
'tardis.apps.equipment.views.view_... | 42.454545 | 76 | 0.441113 |
711ba79d48c5acb9d3accd7a478bb0384f339f42 | 156 | py | Python | anvil/interfaces/__init__.py | AndresMWeber/Anvil | 9cd202183ac998983c2bf6e55cc46bbc0ca1a78e | [
"Apache-2.0"
] | 3 | 2019-11-22T04:38:06.000Z | 2022-01-19T08:27:18.000Z | anvil/interfaces/__init__.py | AndresMWeber/Anvil | 9cd202183ac998983c2bf6e55cc46bbc0ca1a78e | [
"Apache-2.0"
] | 28 | 2018-02-01T20:39:42.000Z | 2018-04-26T17:25:23.000Z | anvil/interfaces/__init__.py | AndresMWeber/Anvil | 9cd202183ac998983c2bf6e55cc46bbc0ca1a78e | [
"Apache-2.0"
] | 1 | 2018-03-11T06:47:26.000Z | 2018-03-11T06:47:26.000Z | """The set of functions that enable Anvil to work in the given DCC."""
import api_proxy
import dcc_plugin
__all__ = ['api_proxy',
'dcc_plugin']
| 22.285714 | 70 | 0.692308 |
711c0839688b9f5dedcef052e9032977bfdb8fbd | 13,158 | py | Python | nlp_uncertainty_ssl/models/emotion_classifier.py | apmoore1/nlp-uncertainty-ssl | 4531ffce61557b4d4a71b97698479a30f65efaec | [
"Apache-2.0"
] | null | null | null | nlp_uncertainty_ssl/models/emotion_classifier.py | apmoore1/nlp-uncertainty-ssl | 4531ffce61557b4d4a71b97698479a30f65efaec | [
"Apache-2.0"
] | null | null | null | nlp_uncertainty_ssl/models/emotion_classifier.py | apmoore1/nlp-uncertainty-ssl | 4531ffce61557b4d4a71b97698479a30f65efaec | [
"Apache-2.0"
] | null | null | null | from typing import Dict, Optional, List, Any
from allennlp.common.checks import check_dimensions_match, ConfigurationError
from allennlp.data import Vocabulary
from allennlp.modules import Seq2VecEncoder, TimeDistributed, TextFieldEmbedder, Seq2SeqEncoder
from allennlp.modules import FeedForward
from allennlp.modules.... | 48.197802 | 104 | 0.636039 |
711d1b4f75a4256d5a0cf38d84457010bf2940ef | 3,225 | py | Python | medcople.py | tks1998/statistical-function-and-algorithm-ML- | 2b287524690e05087da400d879c2f901e148a5e3 | [
"MIT"
] | null | null | null | medcople.py | tks1998/statistical-function-and-algorithm-ML- | 2b287524690e05087da400d879c2f901e148a5e3 | [
"MIT"
] | 1 | 2020-12-07T19:29:21.000Z | 2020-12-28T02:29:19.000Z | medcople.py | tks1998/statistical-function-and-algorithm-ML- | 2b287524690e05087da400d879c2f901e148a5e3 | [
"MIT"
] | null | null | null | import numpy as np
import math
from statistics import median
from scipy.stats import skew
import weightedstats as ws
from statsmodels.stats.stattools import medcouple
if __name__ == '__main__':
sum=0
for i in range(1000):
data = np.random.randint(low = 0, high = 200000, size = 1000)
A = Med_c... | 27.801724 | 83 | 0.52124 |
711dc29809114966ffd1a3a12882c04b3dd3d23a | 49 | py | Python | feedback/views/__init__.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 13 | 2015-11-29T12:19:12.000Z | 2021-02-21T15:42:11.000Z | feedback/views/__init__.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 23 | 2015-04-29T19:43:34.000Z | 2021-02-10T05:50:17.000Z | feedback/views/__init__.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 11 | 2015-09-20T18:59:00.000Z | 2020-02-07T08:47:34.000Z | from .feedback_view import feedback_view # noqa
| 24.5 | 48 | 0.816327 |
711f7d7edce90878e1c7f4456d59b5282f3d8837 | 3,644 | py | Python | shitty_tools/evil.py | njatkinson/shitty_tools | 78c56eba331728d610d12c17fa5b34120fe31f03 | [
"WTFPL"
] | null | null | null | shitty_tools/evil.py | njatkinson/shitty_tools | 78c56eba331728d610d12c17fa5b34120fe31f03 | [
"WTFPL"
] | null | null | null | shitty_tools/evil.py | njatkinson/shitty_tools | 78c56eba331728d610d12c17fa5b34120fe31f03 | [
"WTFPL"
] | null | null | null | from sqlalchemy.orm import relationship
from sqlalchemy import and_
def create_attribute_associator(entity_id_col, eav_cls, eav_entity_id_col, eav_attr_col, eav_value_col):
'''
Returns a class method that allows one to associate attributes in an Entity-Attribute-Value table
with a sqlalchemy class and the... | 46.126582 | 114 | 0.63831 |
712033ec7a6e7fd4c8901d3c8d26af890c676809 | 2,168 | py | Python | backend/models/roboschool_fc.py | AroMorin/DNNOP | 271e65811fe7cadcffc8155049e256fa78c0c5c6 | [
"MIT"
] | 6 | 2020-01-14T00:01:34.000Z | 2021-12-28T14:31:05.000Z | backend/models/roboschool_fc.py | AroMorin/DNNOP | 271e65811fe7cadcffc8155049e256fa78c0c5c6 | [
"MIT"
] | null | null | null | backend/models/roboschool_fc.py | AroMorin/DNNOP | 271e65811fe7cadcffc8155049e256fa78c0c5c6 | [
"MIT"
] | 1 | 2020-09-06T10:44:29.000Z | 2020-09-06T10:44:29.000Z | """A script that defines a simple FC model for function solving"""
import torch.nn as nn
import numpy as np
import torch
| 30.971429 | 74 | 0.535055 |
71203d69e972ebd9a73901db8b42d1c645ea09f0 | 1,346 | py | Python | src/face_check/social/backends/goodgame.py | tarvitz/face-check | e468025c7a5615f4ec8ee24c06252ceeb8a2e129 | [
"BSD-4-Clause"
] | null | null | null | src/face_check/social/backends/goodgame.py | tarvitz/face-check | e468025c7a5615f4ec8ee24c06252ceeb8a2e129 | [
"BSD-4-Clause"
] | 7 | 2019-01-01T17:13:06.000Z | 2021-06-10T17:42:54.000Z | src/face_check/social/backends/goodgame.py | tarvitz/face-check | e468025c7a5615f4ec8ee24c06252ceeb8a2e129 | [
"BSD-4-Clause"
] | null | null | null | """
Twitch OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/goodgame.html
"""
from social_core.backends import oauth
| 34.512821 | 78 | 0.642645 |
7120c63dc1de2d2819806215bfba1cf552bbc4da | 666 | py | Python | recipes/Python/576838_Recursivemethod/recipe-576838.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/576838_Recursivemethod/recipe-576838.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/576838_Recursivemethod/recipe-576838.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z |
test = Test()
test.method() # I'm method
test.rmethod() # I'm recursive method
test.smethod() # raises NameError: global name 'method' is not defined
| 20.8125 | 70 | 0.540541 |
7122a8e74eb4212d1e6aaea222109cbc1f0c061a | 18,717 | py | Python | tests/src/python/test_qgssearchwidgetwrapper.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/python/test_qgssearchwidgetwrapper.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/python/test_qgssearchwidgetwrapper.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsSearchWidgetWrapper.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version... | 54.095376 | 131 | 0.689534 |
7122f7239260373acc14b5705783c292ba4716bb | 220 | py | Python | conftest.py | Ouss4/pytest-embedded | b8811f97f6e3a3688da3628b9f3cb4645723c552 | [
"MIT"
] | 12 | 2021-06-07T11:39:30.000Z | 2022-03-07T18:42:04.000Z | conftest.py | Ouss4/pytest-embedded | b8811f97f6e3a3688da3628b9f3cb4645723c552 | [
"MIT"
] | 30 | 2021-08-10T10:27:41.000Z | 2022-03-25T08:08:29.000Z | conftest.py | Ouss4/pytest-embedded | b8811f97f6e3a3688da3628b9f3cb4645723c552 | [
"MIT"
] | 6 | 2021-11-16T13:10:45.000Z | 2022-03-31T10:51:29.000Z | import os
import pytest
pytest_plugins = [
'pytester',
]
| 15.714286 | 86 | 0.713636 |
7125865039e4808ac309b57d84350350e5e69e6d | 4,858 | py | Python | tests/gitlab_test_utils.py | jarda-wien/gitlabber | e3e53b183233be6b08c47a8ce1264415dc7af6e4 | [
"MIT"
] | 344 | 2020-04-28T16:59:02.000Z | 2022-03-30T08:50:58.000Z | tests/gitlab_test_utils.py | jarda-wien/gitlabber | e3e53b183233be6b08c47a8ce1264415dc7af6e4 | [
"MIT"
] | 86 | 2020-04-28T13:21:37.000Z | 2022-03-31T12:51:29.000Z | tests/gitlab_test_utils.py | jarda-wien/gitlabber | e3e53b183233be6b08c47a8ce1264415dc7af6e4 | [
"MIT"
] | 64 | 2020-04-29T11:53:14.000Z | 2022-03-23T09:41:05.000Z | import pytest
import json
from unittest import mock
from gitlabber import gitlab_tree
URL = "http://gitlab.my.com/"
TOKEN = "MOCK_TOKEN"
GROUP_URL = "http://gitlab.my.com/group"
GROUP_NAME = "group"
SUBGROUP_URL = "http://gitlab.my.com/group/subgroup"
SUBGROUP_NAME = "subgroup"
PROJECT_URL = "http://gitlab.my.com/gr... | 36.253731 | 120 | 0.711404 |
7126a909c8eb6e0615ba8dbc55706b97b9c85813 | 33,512 | py | Python | mindquantum/simulator/simulator.py | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | mindquantum/simulator/simulator.py | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | mindquantum/simulator/simulator.py | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 42.153459 | 120 | 0.586894 |
7126b8e0e2a112a169fa2ccb17434fdbeb6afcc6 | 10,853 | py | Python | seasonedParser/core.py | KevinMidboe/seasonMover | 380c4a02f48679c0204ecf1a5807718b93f2ff19 | [
"MIT"
] | null | null | null | seasonedParser/core.py | KevinMidboe/seasonMover | 380c4a02f48679c0204ecf1a5807718b93f2ff19 | [
"MIT"
] | 9 | 2017-09-29T11:35:37.000Z | 2020-02-19T09:34:15.000Z | seasonedParser/core.py | KevinMidboe/seasonedParser | 380c4a02f48679c0204ecf1a5807718b93f2ff19 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
# @Author: KevinMidboe
# @Date: 2017-08-25 23:22:27
# @Last Modified by: KevinMidboe
# @Last Modified time: 2019-02-02 01:04:25
from guessit import guessit
from babelfish import Language, LanguageReverseError
import hashlib
import os, errno
import shutil
import re
i... | 32.887879 | 152 | 0.602322 |
7127698ab3d52c9f1add1c5b008972b4228385d7 | 1,266 | py | Python | networking_vsphere/utils/db.py | huadream/networking-vsphere | 8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a | [
"Apache-2.0"
] | null | null | null | networking_vsphere/utils/db.py | huadream/networking-vsphere | 8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a | [
"Apache-2.0"
] | null | null | null | networking_vsphere/utils/db.py | huadream/networking-vsphere | 8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Mirantis, 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 the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 37.235294 | 78 | 0.71169 |
71290ff28eeef27fa1289d7f582ff081fb7a83c1 | 2,645 | py | Python | Client/Classes/slide.py | crew/dds-client | 5d530f053955df07b75410807816241a10b567d3 | [
"MIT"
] | null | null | null | Client/Classes/slide.py | crew/dds-client | 5d530f053955df07b75410807816241a10b567d3 | [
"MIT"
] | null | null | null | Client/Classes/slide.py | crew/dds-client | 5d530f053955df07b75410807816241a10b567d3 | [
"MIT"
] | null | null | null | import json
# TODO: Make symlinks between the Server and Client slide, message, and ConfigParser classes
| 32.654321 | 97 | 0.582987 |
712af4c8d551dfa14800db9ae1b75dfc39f56d2e | 3,692 | py | Python | eval_model.py | yaojin17/adversarial-project | 76af16f126ae701fb3a0a83152b37cbec5e7b28f | [
"Apache-2.0"
] | null | null | null | eval_model.py | yaojin17/adversarial-project | 76af16f126ae701fb3a0a83152b37cbec5e7b28f | [
"Apache-2.0"
] | null | null | null | eval_model.py | yaojin17/adversarial-project | 76af16f126ae701fb3a0a83152b37cbec5e7b28f | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
from torchvision import datasets, transforms
from utils import prepare_cifar
from fgsm_attack import FGSMAttack
from tqdm import tqdm, trange
from pgd20 import pgd20_attack
from model import get_model_for_attack
| 38.458333 | 120 | 0.578548 |
712c4c6a5b75135845d649016c8d2919cb39542c | 6,613 | py | Python | api/app/main.py | JexPY/filemanager-fastapi | da830fe6d9a3d515e0d04e6e690ff366225ec251 | [
"MIT"
] | 24 | 2020-09-15T11:59:55.000Z | 2022-03-13T19:58:02.000Z | api/app/main.py | JexPY/filemanager-fastapi | da830fe6d9a3d515e0d04e6e690ff366225ec251 | [
"MIT"
] | null | null | null | api/app/main.py | JexPY/filemanager-fastapi | da830fe6d9a3d515e0d04e6e690ff366225ec251 | [
"MIT"
] | 5 | 2020-10-11T08:41:29.000Z | 2022-03-10T07:23:55.000Z | from fastapi import FastAPI, File, UploadFile, BackgroundTasks, Depends, HTTPException,status,Query
from fastapi.responses import FileResponse
from fastapi.middleware.cors import CORSMiddleware
from fastapi.security import HTTPBearer,OAuth2AuthorizationCodeBearer,HTTPBasicCredentials
from fastapi.staticfiles import Sta... | 37.573864 | 152 | 0.692122 |
712c549f586b26511dd3c9bf33e7238504d23130 | 3,570 | py | Python | src/modules/Load.py | aaanh/duplicated_accelcamp | 7d4b60ace023bede907f8ed367ba492731a1951d | [
"FTL",
"CNRI-Python",
"RSA-MD"
] | null | null | null | src/modules/Load.py | aaanh/duplicated_accelcamp | 7d4b60ace023bede907f8ed367ba492731a1951d | [
"FTL",
"CNRI-Python",
"RSA-MD"
] | 2 | 2021-05-21T16:31:41.000Z | 2021-08-25T16:05:48.000Z | src/modules/Load.py | aaanh/duplicated_accelcamp | 7d4b60ace023bede907f8ed367ba492731a1951d | [
"FTL",
"CNRI-Python",
"RSA-MD"
] | null | null | null | from modules.LoadAccel import *
from modules.LoadOmega import *
import os
from tkinter import *
defaultdir = "../data"
# load a single AccelData object and RotaryData object
# simpler front-end for LoadRun()
# deprecated:
# Load multiple runs as a list of AccelData objects and list of RotaryDa... | 35.346535 | 123 | 0.519048 |
712ec90b75d074ea84403e57993fff8f8e2dc0dc | 3,069 | py | Python | hundun/systems/_systems.py | llbxg/hundun | a063ba4cf42665a3b7861aaccd1e9e31719eef8d | [
"MIT"
] | 4 | 2021-12-24T09:19:45.000Z | 2022-03-17T23:44:44.000Z | hundun/systems/_systems.py | llbxg/hundun | a063ba4cf42665a3b7861aaccd1e9e31719eef8d | [
"MIT"
] | 5 | 2022-02-15T07:17:26.000Z | 2022-03-03T04:49:38.000Z | hundun/systems/_systems.py | llbxg/hundun | a063ba4cf42665a3b7861aaccd1e9e31719eef8d | [
"MIT"
] | null | null | null | # (dynamical systems)
from abc import ABC as _ABC, abstractmethod as _abstractmethod
import numpy as _np
from ._tu import TU as _TU
def jacobian(self):
"""jacobian"""
return None
def parameter(self):
"""set parameter for equation"""
| 24.165354 | 75 | 0.548713 |
712f06edd2c360eccafbcbf093e6b134d0761a1c | 3,919 | py | Python | povary/apps/statistics/migrations/0001_initial.py | TorinAsakura/cooking | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | [
"BSD-3-Clause"
] | null | null | null | povary/apps/statistics/migrations/0001_initial.py | TorinAsakura/cooking | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | [
"BSD-3-Clause"
] | null | null | null | povary/apps/statistics/migrations/0001_initial.py | TorinAsakura/cooking | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
| 59.378788 | 161 | 0.602705 |
712f74ba0feddfa2cbc236392371cf7d36c0e8d3 | 306 | py | Python | ex035.py | danilodelucio/Exercicios_Curso_em_Video | d59e1b4efaf27dd0fc828a608201613c69ac333d | [
"MIT"
] | null | null | null | ex035.py | danilodelucio/Exercicios_Curso_em_Video | d59e1b4efaf27dd0fc828a608201613c69ac333d | [
"MIT"
] | null | null | null | ex035.py | danilodelucio/Exercicios_Curso_em_Video | d59e1b4efaf27dd0fc828a608201613c69ac333d | [
"MIT"
] | null | null | null | r1 = float(input('Primeiro seguimento: '))
r2 = float(input('Segundo seguimento: '))
r3 = float(input('Terceiro seguimento: '))
if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2:
print('Os segmentos acima PODEM FORMAR UM TRINGULO!')
else:
print('Os segmentos acima NO PODEM FORMAR UM TRIGULO!')
| 38.25 | 61 | 0.676471 |
712fe840477ae9afc89ee0d30308453c6ea2bba1 | 429 | py | Python | PycharmProjects/PythonExercicios/ex027.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | PycharmProjects/PythonExercicios/ex027.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | PycharmProjects/PythonExercicios/ex027.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | # Faa um programa que leia o nome completo de uma pessoa, mostrando em seguida o primeiro e o ltimo nome separadamente.
#
# Ex: Ana Maria de Souza
#primeiro = Ana
#ltimo = Souza
'''Tive dificuldades com a ultima linha desse cdigo. Estude mais a funo Split e a aula 9!'''
nome = input('Digite um nome completo: ').strip()... | 42.9 | 121 | 0.710956 |
712febd61548dc3d1908db056b52dfe5ee29e08f | 705 | py | Python | lang/Python/playing-cards-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 5 | 2021-01-29T20:08:05.000Z | 2022-03-22T06:16:05.000Z | lang/Python/playing-cards-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/playing-cards-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2021-04-13T04:19:31.000Z | 2021-04-13T04:19:31.000Z | import random
| 26.111111 | 80 | 0.574468 |
712ffc09478a5f0361603a065889b6ec9109be8d | 1,300 | py | Python | restfulpy/tests/test_jwt_cli.py | mehdishirazi/restfulpy | 244a53a8ea4692a37b4db82b6cb5ef83c27f0b53 | [
"MIT"
] | null | null | null | restfulpy/tests/test_jwt_cli.py | mehdishirazi/restfulpy | 244a53a8ea4692a37b4db82b6cb5ef83c27f0b53 | [
"MIT"
] | null | null | null | restfulpy/tests/test_jwt_cli.py | mehdishirazi/restfulpy | 244a53a8ea4692a37b4db82b6cb5ef83c27f0b53 | [
"MIT"
] | null | null | null | import json
import pytest
from bddcli import Given, given, when, stdout, stderr, Application
from itsdangerous import TimedJSONWebSignatureSerializer
from itsdangerous.exc import SignatureExpired
from nanohttp import settings
from restfulpy import Application as RestfulpyApplication
foo = RestfulpyApplication(name=... | 24.528302 | 66 | 0.646923 |
71313701f0c786d0a59625fef35a307d370ccdba | 913 | py | Python | Challenges/16/tree_max/tree_max.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | Challenges/16/tree_max/tree_max.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | Challenges/16/tree_max/tree_max.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
pass
| 18.26 | 64 | 0.511501 |
713212e94fcb5070eba40619572546d9533d74ef | 406 | py | Python | marvelmind_nav/launch/marvel_base_launch.py | aminballoon/ros_marvelmind_package | ca42a11d8c4205f0b15027eb32495b8abeddab52 | [
"BSD-2-Clause"
] | null | null | null | marvelmind_nav/launch/marvel_base_launch.py | aminballoon/ros_marvelmind_package | ca42a11d8c4205f0b15027eb32495b8abeddab52 | [
"BSD-2-Clause"
] | null | null | null | marvelmind_nav/launch/marvel_base_launch.py | aminballoon/ros_marvelmind_package | ca42a11d8c4205f0b15027eb32495b8abeddab52 | [
"BSD-2-Clause"
] | null | null | null | from launch import LaunchDescription
from launch_ros.actions import LifecycleNode
# from launch_ros.actions import Node
import sys | 31.230769 | 81 | 0.726601 |
713280b49e1a2690e858ead874212334f33b4458 | 6,928 | py | Python | sahyun_bot/elastic_settings.py | TheGoodlike13/sahyun-bot | 8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb | [
"MIT"
] | 1 | 2022-02-21T18:55:34.000Z | 2022-02-21T18:55:34.000Z | sahyun_bot/elastic_settings.py | TheGoodlike13/sahyun-bot | 8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb | [
"MIT"
] | null | null | null | sahyun_bot/elastic_settings.py | TheGoodlike13/sahyun-bot | 8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb | [
"MIT"
] | null | null | null | """
Initializes settings for elastic.py.
To make the index dynamic (which also allows to switch it out for tests), the value must be explicitly initialized
by some other module. If this does not happen, and somebody attempts to load elastic.py, 'ready_or_die' will get
executed which will shut down the application, thu... | 32.990476 | 116 | 0.69948 |
713385c102d9118616dbff568943593032126378 | 13,816 | py | Python | ipec/ga/population.py | wwwbbb8510/ippso | fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5 | [
"MIT"
] | 9 | 2018-05-10T01:04:34.000Z | 2019-06-28T07:47:37.000Z | ipec/ga/population.py | wwwbbb8510/ippso | fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5 | [
"MIT"
] | null | null | null | ipec/ga/population.py | wwwbbb8510/ippso | fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5 | [
"MIT"
] | 2 | 2020-10-12T03:54:30.000Z | 2021-09-08T14:10:21.000Z | import copy
import logging
import numpy as np
from ipec.cnn.evaluator import Evaluator, CNNEvaluator, initialise_cnn_evaluator
from ipec.cnn.layers import ConvLayer
from ipec.cnn.layers import DisabledLayer
from ipec.cnn.layers import FullyConnectedLayer
from ipec.cnn.layers import PoolingLayer
from ipec.ip.decoder i... | 43.040498 | 191 | 0.652287 |
71347fdcbbf1d234dd6e12f39abe3f11e92be5a5 | 2,030 | py | Python | migrations/versions/8a480de4de4c_adjusts_for_seed_development.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 1 | 2018-01-01T20:35:43.000Z | 2018-01-01T20:35:43.000Z | migrations/versions/8a480de4de4c_adjusts_for_seed_development.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 37 | 2017-02-24T17:07:25.000Z | 2021-09-02T14:49:19.000Z | migrations/versions/8a480de4de4c_adjusts_for_seed_development.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 2 | 2019-11-05T13:45:45.000Z | 2020-11-13T22:02:37.000Z | """Adjusts for Seed development
Revision ID: 8a480de4de4c
Revises: 7addb7587b1a
Create Date: 2021-07-13 17:16:20.807567
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
from limonero.migration_utils import (is_mysql, is_psql, upgrade_actions,
downgrade_actions, get_psq... | 32.222222 | 77 | 0.576355 |
7134af531e2e0820e6645888186d7ca8871d70c0 | 537 | py | Python | api/test/checkalive_api.py | kizunai/flask-server | 79f1484e776c74f23ef22836c5a0970ef66ecdfb | [
"Apache-2.0"
] | null | null | null | api/test/checkalive_api.py | kizunai/flask-server | 79f1484e776c74f23ef22836c5a0970ef66ecdfb | [
"Apache-2.0"
] | null | null | null | api/test/checkalive_api.py | kizunai/flask-server | 79f1484e776c74f23ef22836c5a0970ef66ecdfb | [
"Apache-2.0"
] | null | null | null | import flask
from flask_restful import Resource
from utils import decoraters
from logic.test.checkalive_logic import CheckaliveLogic
| 22.375 | 55 | 0.648045 |
713860ef4def0389233076f29b376d7d4ac7466d | 226 | py | Python | lesson8_work/Ex7.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | lesson8_work/Ex7.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | lesson8_work/Ex7.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | # , ' ""
print(is_in_list(['', '', '', ''], ""))
| 28.25 | 70 | 0.60177 |
7139484e64db6cee198f70d7bc368fac65431c29 | 1,313 | py | Python | Problems/199.py | kvedula/leetcode | 8576b1ef466529b9e0d337af78fc833acb686a3c | [
"MIT"
] | null | null | null | Problems/199.py | kvedula/leetcode | 8576b1ef466529b9e0d337af78fc833acb686a3c | [
"MIT"
] | null | null | null | Problems/199.py | kvedula/leetcode | 8576b1ef466529b9e0d337af78fc833acb686a3c | [
"MIT"
] | null | null | null | # Kamesh Vedula
# Problem: Binary Tree Right Side View
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
| 22.254237 | 55 | 0.450876 |
713966fce8e27e796ccf934cd246351e192e1902 | 984 | py | Python | scripts/preprocessing/gamma correction.py | dekelmeirom/pathologylab | 262b0bd9cb9233bc960671c2d674cf895b228f39 | [
"MIT"
] | null | null | null | scripts/preprocessing/gamma correction.py | dekelmeirom/pathologylab | 262b0bd9cb9233bc960671c2d674cf895b228f39 | [
"MIT"
] | null | null | null | scripts/preprocessing/gamma correction.py | dekelmeirom/pathologylab | 262b0bd9cb9233bc960671c2d674cf895b228f39 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from skimage import exposure
from matplotlib import pyplot as plt
from matplotlib import colors as colors
import numpy as np
import matplotlib.image as mpimg
import colorsys
import math
import os
PATH = "C:\\Users\\dekelmeirom\\OneDrive - Technion\\Documents\\university\\pdl_proj... | 28.114286 | 99 | 0.704268 |
713a3074599a837fcc6b69f08f73d38cb5ca45a1 | 182 | py | Python | curso2.py | ralabarta/educationar_python_repo | f89ddb0bb19b039459e42472e0f52f31c69a3853 | [
"MIT"
] | null | null | null | curso2.py | ralabarta/educationar_python_repo | f89ddb0bb19b039459e42472e0f52f31c69a3853 | [
"MIT"
] | null | null | null | curso2.py | ralabarta/educationar_python_repo | f89ddb0bb19b039459e42472e0f52f31c69a3853 | [
"MIT"
] | null | null | null | import statistics
datos = [2,4,6,8]
datos2 = [2, 2, 3, 5, 8, 9]
mean_r = statistics.mean(datos)
median_r = statistics.median(datos2)
print(mean_r)
print(median_r)
| 13 | 37 | 0.637363 |
713cd79703169c6cc701b303f0c7df900f7c2689 | 491 | py | Python | tasks/migrations/0005_itemtemplatefield_type.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | tasks/migrations/0005_itemtemplatefield_type.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | 11 | 2019-11-12T23:26:45.000Z | 2021-06-10T17:37:23.000Z | tasks/migrations/0005_itemtemplatefield_type.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2018-12-01 23:24
from django.db import migrations, models
| 25.842105 | 143 | 0.586558 |
713e566b91f55269e724b2a11eda8f515d37d765 | 415 | py | Python | evaluate/coverage_filter.py | iqbal-lab-org/pandora_paper_roc | bb21c76faefa8021c86c3be9d77b8b5999fe2ef5 | [
"MIT"
] | null | null | null | evaluate/coverage_filter.py | iqbal-lab-org/pandora_paper_roc | bb21c76faefa8021c86c3be9d77b8b5999fe2ef5 | [
"MIT"
] | null | null | null | evaluate/coverage_filter.py | iqbal-lab-org/pandora_paper_roc | bb21c76faefa8021c86c3be9d77b8b5999fe2ef5 | [
"MIT"
] | 2 | 2020-11-04T18:15:43.000Z | 2020-11-06T01:38:08.000Z | from evaluate.filter import Filter
from .vcf import VCF
| 27.666667 | 65 | 0.742169 |
713f16f6c1f8f19f1fc82172faed9240a38e2015 | 1,632 | py | Python | examples/custom-validator.py | RyanSquared/gigaspoon | c5bf31fbffa1c7ec8e0c91ef7ae79040d553151a | [
"MIT"
] | 1 | 2018-02-06T16:15:44.000Z | 2018-02-06T16:15:44.000Z | examples/custom-validator.py | RyanSquared/gigaspoon | c5bf31fbffa1c7ec8e0c91ef7ae79040d553151a | [
"MIT"
] | 1 | 2019-10-15T13:57:09.000Z | 2019-10-15T16:08:42.000Z | examples/custom-validator.py | RyanSquared/gigaspoon | c5bf31fbffa1c7ec8e0c91ef7ae79040d553151a | [
"MIT"
] | null | null | null | import os
import flask
import gigaspoon as gs
app = flask.Flask(__name__)
app.secret_key = os.urandom(24)
html = """
<!DOCTYPE HTML>
{% for message in get_flashed_messages() -%}
<pre>{{ message }}</pre>
{%- endfor %}
<form method="POST">
{% autoescape false %}
{{ g.csrf_token_validator.csrf_tag }}
{% e... | 23.652174 | 56 | 0.610907 |
714198dc8f030861acfb87346bb996cc656b4494 | 2,244 | py | Python | gdk/jetson/tracker.py | dbadrian/gdk_dlrc17 | 7aebed740dc4a09f3549674b0cfeb22bdb392ac6 | [
"MIT"
] | 1 | 2019-03-29T12:36:55.000Z | 2019-03-29T12:36:55.000Z | gdk/jetson/tracker.py | dbadrian/gdk_dlrc17 | 7aebed740dc4a09f3549674b0cfeb22bdb392ac6 | [
"MIT"
] | null | null | null | gdk/jetson/tracker.py | dbadrian/gdk_dlrc17 | 7aebed740dc4a09f3549674b0cfeb22bdb392ac6 | [
"MIT"
] | null | null | null | import time
import sys
import logging
# Import PS-Drone
import cv2
import numpy as np
import gdk.config as config
logger = logging.getLogger(__name__)
| 34.523077 | 130 | 0.657754 |
7143d82db45d18175969ef941dd86101829ae9a5 | 15,402 | py | Python | Tryp_T.py | johnheap/VAPPER-Galaxy | 4ce903b3b44755198e59368057863a5eb62ff6c6 | [
"Apache-2.0"
] | null | null | null | Tryp_T.py | johnheap/VAPPER-Galaxy | 4ce903b3b44755198e59368057863a5eb62ff6c6 | [
"Apache-2.0"
] | null | null | null | Tryp_T.py | johnheap/VAPPER-Galaxy | 4ce903b3b44755198e59368057863a5eb62ff6c6 | [
"Apache-2.0"
] | null | null | null | """
* Copyright 2018 University of Liverpool
* Author: John Heap, Computational Biology Facility, UoL
* Based on original scripts of Sara Silva Pereira, Institute of Infection and Global Health, UoL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... | 44.514451 | 195 | 0.617907 |
7144cdbf12d2350acabc972907aa336bd9391ec1 | 442 | py | Python | scale/node/migrations/0003_node_is_paused_errors.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 121 | 2015-11-18T18:15:33.000Z | 2022-03-10T01:55:00.000Z | scale/node/migrations/0003_node_is_paused_errors.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 1,415 | 2015-12-23T23:36:04.000Z | 2022-01-07T14:10:09.000Z | scale/node/migrations/0003_node_is_paused_errors.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 66 | 2015-12-03T20:38:56.000Z | 2020-07-27T15:28:11.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 21.047619 | 53 | 0.606335 |
852e97bba32d24a91db45aae8147ee20bfee4935 | 3,482 | py | Python | LineDetect/videoLineDet.py | RonellBr/LaneDetection | 349e5c75bee39c3006fcf206565915fe7493e796 | [
"MIT"
] | null | null | null | LineDetect/videoLineDet.py | RonellBr/LaneDetection | 349e5c75bee39c3006fcf206565915fe7493e796 | [
"MIT"
] | null | null | null | LineDetect/videoLineDet.py | RonellBr/LaneDetection | 349e5c75bee39c3006fcf206565915fe7493e796 | [
"MIT"
] | null | null | null | ################################################################
# Author: Ronell Bresler
# Module: VideoLineDetect.py
#
#
# References:
# https://www.analyticsvidhya.com/blog/2020/05/tutorial-real-time-lane-detection-opencv/
# https://towardsdatascience.com/tutorial-build-a-lane-detector-679fd8953132
# https:/... | 31.654545 | 138 | 0.553418 |
8531b1ab7623355d9bad7b738e3d301375faa339 | 75 | py | Python | Raffle/__init__.py | duanegtr/legendv3-cogs | ffde1452a75ad42b4f6511b612ce486e96fcd6de | [
"MIT"
] | 10 | 2020-05-25T13:32:30.000Z | 2022-02-01T12:33:07.000Z | Raffle/__init__.py | darcyle/tl-cogs | 6b13c4a6247115571c5a2bb6ea98ed1fe2d44d79 | [
"MIT"
] | 2 | 2020-05-23T22:53:07.000Z | 2020-08-09T11:28:12.000Z | Raffle/__init__.py | darcyle/tl-cogs | 6b13c4a6247115571c5a2bb6ea98ed1fe2d44d79 | [
"MIT"
] | 7 | 2020-05-18T17:37:33.000Z | 2022-01-13T04:08:05.000Z | from .raffle import Raffle
| 18.75 | 28 | 0.693333 |
8531c7eec28be5dec06698cc6a230d91cb72ae17 | 88 | py | Python | tritimap/__init__.py | zwbao/Triti-Map | 58d79d773df3862b6e03717bf3563d8c427c7027 | [
"MIT"
] | null | null | null | tritimap/__init__.py | zwbao/Triti-Map | 58d79d773df3862b6e03717bf3563d8c427c7027 | [
"MIT"
] | null | null | null | tritimap/__init__.py | zwbao/Triti-Map | 58d79d773df3862b6e03717bf3563d8c427c7027 | [
"MIT"
] | null | null | null | import os
__version__ = "0.9.2"
root_dir = os.path.dirname(os.path.abspath(__file__))
| 14.666667 | 53 | 0.727273 |
85320c46304d80fec430c5914f3f698f8524a178 | 3,407 | py | Python | code/app.py | annotation/app-uruk | aee4ed0c3fd574251f8b4eb9169705e8ac26bf95 | [
"MIT"
] | null | null | null | code/app.py | annotation/app-uruk | aee4ed0c3fd574251f8b4eb9169705e8ac26bf95 | [
"MIT"
] | null | null | null | code/app.py | annotation/app-uruk | aee4ed0c3fd574251f8b4eb9169705e8ac26bf95 | [
"MIT"
] | null | null | null | import types
from tf.advanced.helpers import dh
from tf.advanced.find import loadModule
from tf.advanced.app import App
| 28.872881 | 87 | 0.561785 |
85322edb1455b94f135f0f46c6eb2897360629a3 | 12,632 | py | Python | shunt/hmap/hmap.py | velezj/project-manager | 92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72 | [
"MIT"
] | null | null | null | shunt/hmap/hmap.py | velezj/project-manager | 92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72 | [
"MIT"
] | null | null | null | shunt/hmap/hmap.py | velezj/project-manager | 92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72 | [
"MIT"
] | null | null | null | import logging
logger = logging.getLogger( __name__ )
import copy
import tempfile
import os
import jinja2
import yaml
##
# Interface functions for Hiearchichal Maps (hmaps)
# which are jsut dictionaries-of-dictionaries :)
TEMPLATE_HANDLEBAR_START = "{{"
TEMPLATE_HANDLEBAR_END = "}}"
JINJA_VARIABLE_KEY = "_"
##===... | 36.827988 | 116 | 0.443002 |
8533f45f79e26e6d7713f555d363262a5ebdca2b | 2,496 | py | Python | kur/sources/jsonl.py | greedyuser/kur | ba6588ebfa5dec66d1e462c180618cc115fd38ef | [
"Apache-2.0"
] | 867 | 2016-12-05T20:24:23.000Z | 2022-02-18T09:07:14.000Z | kur/sources/jsonl.py | greedyuser/kur | ba6588ebfa5dec66d1e462c180618cc115fd38ef | [
"Apache-2.0"
] | 90 | 2017-01-14T22:46:23.000Z | 2021-02-09T13:32:27.000Z | kur/sources/jsonl.py | greedyuser/kur | ba6588ebfa5dec66d1e462c180618cc115fd38ef | [
"Apache-2.0"
] | 135 | 2017-01-18T19:21:20.000Z | 2022-01-24T16:57:59.000Z | import linecache
import numpy
import json
from ..sources import ChunkSource
###############################################################################
| 35.15493 | 93 | 0.455529 |
8535410c8ebbea8fb51fba1d44a3fdf3092fb5af | 161 | py | Python | tests/web_platform/css_flexbox_1/test_flexbox_stf_table_cell.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 71 | 2015-04-13T09:44:14.000Z | 2019-03-24T01:03:02.000Z | tests/web_platform/css_flexbox_1/test_flexbox_stf_table_cell.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 35 | 2019-05-06T15:26:09.000Z | 2022-03-28T06:30:33.000Z | tests/web_platform/css_flexbox_1/test_flexbox_stf_table_cell.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 139 | 2015-05-30T18:37:43.000Z | 2019-03-27T17:14:05.000Z | from tests.utils import W3CTestCase
| 26.833333 | 77 | 0.807453 |
8539abd165125b9d66931bb7fd6e71c602de1c9e | 346 | py | Python | pages/middleware.py | dragetd/LambdaCast | a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7 | [
"BSD-2-Clause"
] | 6 | 2015-04-05T01:28:23.000Z | 2022-02-06T17:29:47.000Z | pages/middleware.py | dragetd/LambdaCast | a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7 | [
"BSD-2-Clause"
] | 2 | 2022-01-05T23:07:10.000Z | 2022-03-30T17:52:45.000Z | pages/middleware.py | dragetd/LambdaCast | a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7 | [
"BSD-2-Clause"
] | 2 | 2022-02-06T17:29:53.000Z | 2022-02-26T17:23:09.000Z | '''
Created on Jun 4, 2014
@author: benjamin
'''
from pages.models import Page | 21.625 | 100 | 0.699422 |
8539ad589810749d569e8c96666ae5bd84a052e5 | 2,571 | py | Python | nb2blog.py | rowanc1/nb2blog | 1c625a2727124898c4f3d9c9742feb268c554ebd | [
"MIT"
] | null | null | null | nb2blog.py | rowanc1/nb2blog | 1c625a2727124898c4f3d9c9742feb268c554ebd | [
"MIT"
] | null | null | null | nb2blog.py | rowanc1/nb2blog | 1c625a2727124898c4f3d9c9742feb268c554ebd | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
import requests, argparse, p3c, os, json, subprocess, keyring
if __name__ == "__main__":
main()
| 34.743243 | 127 | 0.596266 |
853a7d0f953c95bc8bdbaefb204194d26a724aed | 970 | py | Python | tests/test_main.py | JeanmarieAlder/bollards-api | 39c82a53575ecd2fbd7f98864512a5494b800836 | [
"MIT"
] | 1 | 2021-07-26T06:40:04.000Z | 2021-07-26T06:40:04.000Z | tests/test_main.py | JeanmarieAlder/bollards-api | 39c82a53575ecd2fbd7f98864512a5494b800836 | [
"MIT"
] | null | null | null | tests/test_main.py | JeanmarieAlder/bollards-api | 39c82a53575ecd2fbd7f98864512a5494b800836 | [
"MIT"
] | null | null | null |
from bollards_api.main.forms import ContactForm
def test_home_page(client):
"""Test that home page displays correctly"""
rv = client.get('/')
assert b'<h1 class="text-center">Welcome to Bollards API</h1>' in rv.data
assert b'<p class="card-text">Discover all bollards between Vaud, Switzerland and Fra... | 27.714286 | 109 | 0.670103 |
853bd8589a69bf83feb568fd0e023ea150961b83 | 11,382 | py | Python | src/data_scraping.py | othmanefc/ttfl_fantasy | 6b5d4316553a5d01114218fcfbe26588de499ead | [
"CC0-1.0"
] | null | null | null | src/data_scraping.py | othmanefc/ttfl_fantasy | 6b5d4316553a5d01114218fcfbe26588de499ead | [
"CC0-1.0"
] | 6 | 2020-01-28T23:09:28.000Z | 2022-02-10T00:28:14.000Z | src/data_scraping.py | othmanefc/ttfl_fantasy | 6b5d4316553a5d01114218fcfbe26588de499ead | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import List, Dict, Any, Union, Optional, Callable, Sequence
from bs4 import BeautifulSoup, Comment, element
import pandas as pd
import re
from urllib.request import urlopen
import os
import datetime
from tqdm import tqdm as tqdm_notebook
import time
from src.c... | 41.540146 | 79 | 0.511949 |
853d84e2e9e82207867461c37d8d12080faf1569 | 766 | py | Python | src/DataGenerator.py | nikhil-garg/CartPoleSimulation | fd778327af5fe764248b68db53a456a77e903656 | [
"MIT"
] | null | null | null | src/DataGenerator.py | nikhil-garg/CartPoleSimulation | fd778327af5fe764248b68db53a456a77e903656 | [
"MIT"
] | null | null | null | src/DataGenerator.py | nikhil-garg/CartPoleSimulation | fd778327af5fe764248b68db53a456a77e903656 | [
"MIT"
] | null | null | null | from src.CartClass import *
from src.utilis import *
from src.utilis import *
from tqdm import tqdm
csv = 'data_rnn'
number_of_experiments = 10
length_of_experiment = 1e3
dt_main_simulation = dt_main_simulation_globals
track_relative_complexity = 0.5 # randomly placed points/s
track_complexity = int(dt_main_simulati... | 30.64 | 131 | 0.678851 |
854189ca67276f7eea81393038f259f4f1505403 | 4,970 | py | Python | trojsten/events/migrations/0001_initial.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 5 | 2018-04-22T22:44:02.000Z | 2021-04-26T20:44:44.000Z | trojsten/events/migrations/0001_initial.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 250 | 2018-04-24T12:04:11.000Z | 2022-03-09T06:56:47.000Z | trojsten/events/migrations/0001_initial.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 8 | 2019-04-28T11:33:03.000Z | 2022-02-26T13:30:36.000Z | # -*- coding: utf-8 -*-
from django.db import migrations, models
| 37.368421 | 123 | 0.423742 |
85423a2d8bf70f44a96088e677ba0a04dd9e70d8 | 111 | py | Python | common/code/snippets/py/arr_of_chunks.py | nevesnunes/env | 7a5e3816334337e04a87e1a2e4dc322215901744 | [
"MIT"
] | 4 | 2020-04-07T14:45:02.000Z | 2021-12-28T22:43:16.000Z | common/code/snippets/py/arr_of_chunks.py | nevesnunes/env | 7a5e3816334337e04a87e1a2e4dc322215901744 | [
"MIT"
] | null | null | null | common/code/snippets/py/arr_of_chunks.py | nevesnunes/env | 7a5e3816334337e04a87e1a2e4dc322215901744 | [
"MIT"
] | 2 | 2020-04-08T03:12:06.000Z | 2021-03-04T20:33:03.000Z | #!/usr/bin/env python3
n = 2
l = "foo"
chunks = [l[i - n : i] for i in range(n, len(l) + n, n)]
print(chunks)
| 15.857143 | 56 | 0.54955 |
854307b441b9f6e3e18268c1d5065eddb624b4e1 | 545 | py | Python | setup.py | pandapan0021/SHTTPServer_plus.py | c7c0fbe1a0a0ecc655d128cf61a49ea0b35bb32b | [
"MIT"
] | null | null | null | setup.py | pandapan0021/SHTTPServer_plus.py | c7c0fbe1a0a0ecc655d128cf61a49ea0b35bb32b | [
"MIT"
] | null | null | null | setup.py | pandapan0021/SHTTPServer_plus.py | c7c0fbe1a0a0ecc655d128cf61a49ea0b35bb32b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A setuptools based setup module.
--------------------------------------------------------
See:
http://packaging.python.org/en/latest/distributing.html
http://github.com/pypa/sampleproject
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 23.695652 | 60 | 0.46055 |
85440bc2c3a337f01c193e1d5db700e9605da53f | 1,128 | py | Python | lion - white.py | Abdumajidhu/Image-Enhancement-therough-Image-Processing-Techniques | 126690319297a5ed7df99ff47797980cc525ecf3 | [
"MIT"
] | 1 | 2019-10-27T13:03:05.000Z | 2019-10-27T13:03:05.000Z | lion - white.py | Abdumajidhu/Image-Enhancement-therough-Image-Processing-Techniques | 126690319297a5ed7df99ff47797980cc525ecf3 | [
"MIT"
] | null | null | null | lion - white.py | Abdumajidhu/Image-Enhancement-therough-Image-Processing-Techniques | 126690319297a5ed7df99ff47797980cc525ecf3 | [
"MIT"
] | 1 | 2021-12-17T06:01:52.000Z | 2021-12-17T06:01:52.000Z | # import opencv
import numpy as np
import cv2
# Read image
src = cv2.imread("exercise_images/lion.jpg",0)
# Set threshold and maxValue
thresh = 25
thresh3 = 255
thresh4 = 205
thresh5 = 105
thresh2 = 155
maxValue = 255
# Basic threshold example
th, dst = cv2.threshold(src, thresh, maxValue, cv2.T... | 28.923077 | 70 | 0.711879 |
854591a05898d20509fd9ed5f1b49eb9ada02c6f | 3,185 | py | Python | gallery/tests.py | melissa-koi/PersonalGallery | 0fed4a60a754d04f169a976403fb2bde6425ae59 | [
"MIT"
] | null | null | null | gallery/tests.py | melissa-koi/PersonalGallery | 0fed4a60a754d04f169a976403fb2bde6425ae59 | [
"MIT"
] | null | null | null | gallery/tests.py | melissa-koi/PersonalGallery | 0fed4a60a754d04f169a976403fb2bde6425ae59 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Image, Category, Location
# Create your tests here.
| 30.333333 | 178 | 0.668132 |
8545d557cf7ae6b6369e7d408bec5095c2c77b1b | 2,167 | py | Python | examples/mxnet/export.py | mitaki28/onnx-chainer | 845aa6c168d912ce044183c6dff6f21ce498d17c | [
"MIT"
] | null | null | null | examples/mxnet/export.py | mitaki28/onnx-chainer | 845aa6c168d912ce044183c6dff6f21ce498d17c | [
"MIT"
] | 1 | 2018-09-21T08:11:43.000Z | 2018-09-21T08:11:43.000Z | examples/mxnet/export.py | mitaki28/onnx-chainer | 845aa6c168d912ce044183c6dff6f21ce498d17c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import collections
import numpy as np
import chainer
import chainer.functions as F
import chainercv.links as C
import mxnet
import onnx_chainer
if __name__ == '__main__':
main()
| 28.893333 | 87 | 0.693124 |
8545f8abe40c339f00fc63341382c5d42092fb16 | 982 | py | Python | Otherfiles/notebook_check.py | lewiuberg/pycm | 50fe8f55e073d438fadd0e27cc02090cd8361501 | [
"MIT"
] | 1,266 | 2018-01-22T20:54:00.000Z | 2022-03-31T12:41:53.000Z | Otherfiles/notebook_check.py | lewiuberg/pycm | 50fe8f55e073d438fadd0e27cc02090cd8361501 | [
"MIT"
] | 375 | 2018-02-19T16:06:24.000Z | 2022-03-17T16:27:48.000Z | Otherfiles/notebook_check.py | lewiuberg/pycm | 50fe8f55e073d438fadd0e27cc02090cd8361501 | [
"MIT"
] | 110 | 2018-01-22T23:38:59.000Z | 2022-03-23T10:08:30.000Z | # -*- coding: utf-8 -*-
"""Notebook-check script."""
import os
import nbformat
from nbconvert.preprocessors import ExecutePreprocessor
from art import tprint
NOTEBOOKS_LIST = [
"Document",
"Example1",
"Example2",
"Example3",
"Example4",
"Example5",
"Example6",
"Example7",
"Example8"... | 28.882353 | 69 | 0.607943 |
8546f1c8d609306bdae939b66f98fe07f0ef570a | 2,315 | py | Python | src/eventsHandler/on_message/moderation/mute/revoke_mute.py | gastbob40/discord_brawl_bot | 90ee7ef6492b5e4272a8baa42fd97f8369b07864 | [
"MIT"
] | null | null | null | src/eventsHandler/on_message/moderation/mute/revoke_mute.py | gastbob40/discord_brawl_bot | 90ee7ef6492b5e4272a8baa42fd97f8369b07864 | [
"MIT"
] | null | null | null | src/eventsHandler/on_message/moderation/mute/revoke_mute.py | gastbob40/discord_brawl_bot | 90ee7ef6492b5e4272a8baa42fd97f8369b07864 | [
"MIT"
] | null | null | null | from typing import List
import discord
import yaml
from src.models.models import Mute, session
from src.utils.embeds_manager import EmbedsManager
from src.utils.permissions_manager import PermissionsManager
| 30.866667 | 89 | 0.597408 |
854748ec64dba84be69bb1448db0b45736a94d36 | 489 | py | Python | modoboa_public_api/migrations/0005_modoboainstance_domain_alias_counter.py | tonioo/modoboa-public-api | 6f8f31348488e15fe935cacc6ee4655d56087fa1 | [
"MIT"
] | 2 | 2017-08-31T14:59:40.000Z | 2019-03-02T21:39:26.000Z | modoboa_public_api/migrations/0005_modoboainstance_domain_alias_counter.py | tonioo/modoboa-public-api | 6f8f31348488e15fe935cacc6ee4655d56087fa1 | [
"MIT"
] | null | null | null | modoboa_public_api/migrations/0005_modoboainstance_domain_alias_counter.py | tonioo/modoboa-public-api | 6f8f31348488e15fe935cacc6ee4655d56087fa1 | [
"MIT"
] | 2 | 2017-07-24T22:42:01.000Z | 2018-10-26T05:05:50.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-15 18:24
from __future__ import unicode_literals
from django.db import migrations, models
| 23.285714 | 58 | 0.646217 |
854863e9c50296993f6a388b3257fb1d9813ee80 | 1,398 | py | Python | QUANTAXIS_Test/QAAnalysis_Test/QASignal_hull_MA_Test.py | PenghuiCheng/QUANTAXIS | b8d81ed592d7008151dc0bbbd5d1030e8af73067 | [
"MIT"
] | 1 | 2020-01-31T05:23:21.000Z | 2020-01-31T05:23:21.000Z | QUANTAXIS_Test/QAAnalysis_Test/QASignal_hull_MA_Test.py | PenghuiCheng/QUANTAXIS | b8d81ed592d7008151dc0bbbd5d1030e8af73067 | [
"MIT"
] | null | null | null | QUANTAXIS_Test/QAAnalysis_Test/QASignal_hull_MA_Test.py | PenghuiCheng/QUANTAXIS | b8d81ed592d7008151dc0bbbd5d1030e8af73067 | [
"MIT"
] | null | null | null | import QUANTAXIS as QA
from numpy import *
from scipy.signal import savgol_filter
import numpy as np
import matplotlib.pyplot as plt
from QUANTAXIS.QAIndicator.talib_numpy import *
import mpl_finance as mpf
import matplotlib.dates as mdates
if __name__=='__main__':
smooth_demo()
| 33.285714 | 180 | 0.679542 |
8548e030cb94201bb3f56fd501049ba22c2f09df | 1,626 | py | Python | Src/Server/handlers.py | HamishHamiltonSmith/TKNET-Remote-file-transfer | 2fc394281463482c5e6039cead9dc052cc09eb94 | [
"Apache-2.0"
] | 1 | 2021-12-04T16:57:19.000Z | 2021-12-04T16:57:19.000Z | Src/Server/handlers.py | HamishHamiltonSmith/TKNET-Remote-file-transfer | 2fc394281463482c5e6039cead9dc052cc09eb94 | [
"Apache-2.0"
] | null | null | null | Src/Server/handlers.py | HamishHamiltonSmith/TKNET-Remote-file-transfer | 2fc394281463482c5e6039cead9dc052cc09eb94 | [
"Apache-2.0"
] | null | null | null | import time
import os
from datetime import datetime
import breakpoint | 31.269231 | 80 | 0.590406 |
85495a86fbc5eda9a5807aaf00f10f29d51d67f3 | 5,297 | py | Python | SequenceModel/seq_model.py | BhaveshJP25/RSNA | 48d85faf82651b1ae4fdcd829ce2d4978a858d3f | [
"MIT"
] | null | null | null | SequenceModel/seq_model.py | BhaveshJP25/RSNA | 48d85faf82651b1ae4fdcd829ce2d4978a858d3f | [
"MIT"
] | null | null | null | SequenceModel/seq_model.py | BhaveshJP25/RSNA | 48d85faf82651b1ae4fdcd829ce2d4978a858d3f | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
if __name__ == '__main__':
model = SequenceModel(model_num=15, feature_dim = 128, feature_num=16,
lstm_layers = 2, hidden=128, drop_out=0.5,
Add_position = True)
pr... | 47.720721 | 150 | 0.473853 |
854a55982872822a46d98df1de533deb387f7009 | 179 | py | Python | musicbrainz/world/admin.py | tourdownunder/musicbrainz-django | bd8f8767ca0144dc10fd9ba2b59beb9de9788640 | [
"BSD-3-Clause"
] | 1 | 2020-09-19T11:00:31.000Z | 2020-09-19T11:00:31.000Z | musicbrainz/world/admin.py | tourdownunder/musicbrainz-django | bd8f8767ca0144dc10fd9ba2b59beb9de9788640 | [
"BSD-3-Clause"
] | 8 | 2019-12-30T14:30:13.000Z | 2021-09-22T18:03:10.000Z | musicbrainz/world/admin.py | tourdownunder/musicbrainz-django | bd8f8767ca0144dc10fd9ba2b59beb9de9788640 | [
"BSD-3-Clause"
] | 1 | 2021-10-03T10:06:29.000Z | 2021-10-03T10:06:29.000Z | from django.contrib.gis import admin
from .models import WorldBorder
# admin.site.register(WorldBorder, admin.GeoModelAdmin)
admin.site.register(WorldBorder, admin.OSMGeoAdmin)
| 25.571429 | 55 | 0.826816 |
854a9ce756635dcf347dd232a5a00548682056f7 | 1,597 | py | Python | examples/task_hello.py | agarwalrounak/qmt | 6fb8ee55fb9d544b72f6dc0c275000914e03af06 | [
"MIT"
] | 1 | 2018-09-30T00:45:53.000Z | 2018-09-30T00:45:53.000Z | examples/task_hello.py | DalavanCloud/qmt | ea5d234012a1d1d39f34834ac9f2007c2a6d4852 | [
"MIT"
] | null | null | null | examples/task_hello.py | DalavanCloud/qmt | ea5d234012a1d1d39f34834ac9f2007c2a6d4852 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from qmt.tasks import Task, SweepManager
sweep = SweepManager.create_empty_sweep() # our dask sweep manager
hi = HelloTask() # create a new task
sweep.run(hi).result() # run through dask and resolve future.result()
hi.run_daskless() # can also run locally... | 28.017544 | 74 | 0.670632 |
854b394bb67bd9f05c7137d19f721026d26e8cfb | 1,107 | py | Python | eventrack/settings/prod.py | FedorSelitsky/eventrack | 54869ab0eaba56d266a3d9c0c56c601039905255 | [
"MIT"
] | 5 | 2017-12-14T09:04:42.000Z | 2018-06-01T20:09:02.000Z | eventrack/settings/prod.py | FedorSelitsky/eventrack | 54869ab0eaba56d266a3d9c0c56c601039905255 | [
"MIT"
] | 11 | 2017-11-08T10:35:08.000Z | 2018-10-11T19:37:36.000Z | eventrack/settings/prod.py | FedorSelitsky/eventrack | 54869ab0eaba56d266a3d9c0c56c601039905255 | [
"MIT"
] | null | null | null | import dj_database_url
from .base import * # NOQA
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
# SECURITY WARNING: keep the secret key used in production secret!
if 'CFG_SECRET_KEY' in os.environ:
SECRET_KEY = os.environ['CFG_SECRET_KEY']
if 'CFG_ALLOWED_HOSTS' in os.environ... | 27 | 94 | 0.750678 |
854bf3a30cf643b88428f0e25a363a7a8a2a0940 | 6,708 | py | Python | pysparnn/cluster_selection.py | kchaliki/pysparnn | 426b9e660fdd8c32bb6af4a7f833fb34a3d070ef | [
"BSD-3-Clause"
] | null | null | null | pysparnn/cluster_selection.py | kchaliki/pysparnn | 426b9e660fdd8c32bb6af4a7f833fb34a3d070ef | [
"BSD-3-Clause"
] | null | null | null | pysparnn/cluster_selection.py | kchaliki/pysparnn | 426b9e660fdd8c32bb6af4a7f833fb34a3d070ef | [
"BSD-3-Clause"
] | null | null | null | import random as _random
import numpy as _np
import collections as _collections
from abc import ABC, abstractmethod
from sklearn.cluster import DBSCAN
def _k_best(tuple_list, k):
"""For a list of tuples [(distance, value), ...] - Get the k-best tuples by
distance.
Args:
tuple_list: List of tupl... | 42.726115 | 100 | 0.672481 |
854c44ca4ed3e6cbb53690f31ac48a7258c545d7 | 283 | py | Python | Lista PythonBrasil/exer16.py | GlauberGoncalves/Python | cdea025a3b8a0304455e1f8561c1d13e00040d8e | [
"MIT"
] | 3 | 2017-01-29T00:39:31.000Z | 2017-06-16T18:53:36.000Z | Lista PythonBrasil/exer16.py | GlauberGoncalves/Python | cdea025a3b8a0304455e1f8561c1d13e00040d8e | [
"MIT"
] | null | null | null | Lista PythonBrasil/exer16.py | GlauberGoncalves/Python | cdea025a3b8a0304455e1f8561c1d13e00040d8e | [
"MIT"
] | null | null | null | t = float(input('informe o tamanho em m '))
l = float(t / 3)
if l % 18 == 0:
print('voce precisara de %f latas ' %(l/18))
print('Preo: R$ %0.2f' %((l/18)*80))
else:
print('voce precisara de %f latas ' %((l//18+1)))
print('Preo: R$ %0.2f' %((l//18 + 1) * 80))
| 28.3 | 53 | 0.515901 |
854cf8601e7b178c75e75d9ca11f1ae6300bc673 | 1,254 | py | Python | setup.py | wildthingz/pyAMD | 13f5691de9a7fc488859113bc934090857ac0f06 | [
"MIT"
] | null | null | null | setup.py | wildthingz/pyAMD | 13f5691de9a7fc488859113bc934090857ac0f06 | [
"MIT"
] | null | null | null | setup.py | wildthingz/pyAMD | 13f5691de9a7fc488859113bc934090857ac0f06 | [
"MIT"
] | null | null | null | from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md')) as f:
long_description = f.read()
setup(name = 'pyAMD',
version = '0.1.0',
description = 'A tool to find the optimal mesh density for visualising macrosegregation -- ... | 35.828571 | 121 | 0.674641 |
854d5eaf6ade4462203d501132678e102772680e | 2,407 | py | Python | nablapps/blog/models.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/blog/models.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/blog/models.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | """
Models for blog app
"""
from datetime import date
from django.db import models
from django.urls import reverse
from django.utils.text import slugify
from nablapps.core.models import TimeStamped
| 23.598039 | 87 | 0.605318 |
854e2f2fb882ebf0df9421c2942719fbe330679b | 1,654 | py | Python | Bhaskara.py | RafaelaBF/Bhaskara | 027b5b91cbc632fd82a0c6f7904d3cef026bdc85 | [
"MIT"
] | null | null | null | Bhaskara.py | RafaelaBF/Bhaskara | 027b5b91cbc632fd82a0c6f7904d3cef026bdc85 | [
"MIT"
] | null | null | null | Bhaskara.py | RafaelaBF/Bhaskara | 027b5b91cbc632fd82a0c6f7904d3cef026bdc85 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Rafaela BF
Faa um programa que resolva Bhaskara por meio de uma equao completa do segundo grau.
"""
eq = input("Entre com a equao: ")
aux =[""]*3
i = eq.find("", 0)
aux[0] = eq[0:(i+1)]
j = eq.find("x", i)
aux[1] = eq[(i+1):(j+1)]
aux[2] = eq[(j+1):len(eq)]
i = 0
j = 0
#A
if l... | 17.784946 | 87 | 0.479444 |
854e8ce73be0938ffa4976e6cdc514a985349435 | 2,107 | py | Python | 01_demo/weight_decay_test.py | wwww666/Tensorflow2.0 | 4df3a3784482bb8db7943ffb402b5822d5111ab9 | [
"Apache-2.0"
] | 2 | 2020-04-24T10:20:18.000Z | 2021-02-25T03:53:07.000Z | 01_demo/weight_decay_test.py | wwww666/Tensorflow2.0 | 4df3a3784482bb8db7943ffb402b5822d5111ab9 | [
"Apache-2.0"
] | null | null | null | 01_demo/weight_decay_test.py | wwww666/Tensorflow2.0 | 4df3a3784482bb8db7943ffb402b5822d5111ab9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2020/4/20 11:46
# @Author : wwwzk
# @FileName: weight_decay_test.py
'''
L2
'''
import tensorflow as tf
from tensorflow.keras import layers,optimizers,models,initializers
import numpy as np
import matplotlib.pyplot as plt
import tensorflow.keras as ks
from liner_test imp... | 32.921875 | 117 | 0.656858 |
85501fa8ae7e1ca392e64944e94898fb3cd864f2 | 548 | py | Python | python_teste/python_aulas/aula_86.py | BrunoDantasMoreira/projectsPython | bd73ab0b3c067456407f227ed2ece42e7f21ddfc | [
"MIT"
] | 1 | 2020-07-27T14:18:08.000Z | 2020-07-27T14:18:08.000Z | python_teste/python_aulas/aula_86.py | BrunoDantasMoreira/projectsPython | bd73ab0b3c067456407f227ed2ece42e7f21ddfc | [
"MIT"
] | null | null | null | python_teste/python_aulas/aula_86.py | BrunoDantasMoreira/projectsPython | bd73ab0b3c067456407f227ed2ece42e7f21ddfc | [
"MIT"
] | null | null | null | lista = [[], [], []]
for c1 in range(0, 3):
num = int(input(f'Digite um valor para [0, {c1}]: '))
lista[0].append(num)
for c2 in range(0, 3):
num = int(input(f'Digite um valor para [1, {c2}]: '))
lista[1].append(num)
for c3 in range(0, 3):
num = int(input(f'Digite um valor para [2, {c3}]: '))
li... | 39.142857 | 64 | 0.520073 |
8550e0f799111032598a25724ac9a6b93b3a7b17 | 16,987 | py | Python | pysnmp/S5-ETH-MULTISEG-TOPOLOGY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/S5-ETH-MULTISEG-TOPOLOGY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/S5-ETH-MULTISEG-TOPOLOGY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module S5-ETH-MULTISEG-TOPOLOGY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/S5-ETH-MULTISEG-TOPOLOGY-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:51:22 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | 131.682171 | 2,404 | 0.761288 |
8550fe05eaac9342db606a4bddf7afe6170d5e33 | 3,835 | py | Python | bittensor/dataloaders/dataloader.py | parall4x/bittensor | abacb0b0f1b078d3103f516aff1328f049f9dc34 | [
"MIT"
] | null | null | null | bittensor/dataloaders/dataloader.py | parall4x/bittensor | abacb0b0f1b078d3103f516aff1328f049f9dc34 | [
"MIT"
] | null | null | null | bittensor/dataloaders/dataloader.py | parall4x/bittensor | abacb0b0f1b078d3103f516aff1328f049f9dc34 | [
"MIT"
] | null | null | null | import argparse
import bittensor
import requests
import random
from munch import Munch
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
def __len__(self):
""" Returns length of the dataset that the dataloader is processing
"""
pass... | 35.183486 | 144 | 0.629726 |