hexsha stringlengths 40 40 | size int64 4 1.02M | ext stringclasses 8
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 209 | max_stars_repo_name stringlengths 5 121 | max_stars_repo_head_hexsha stringlengths 40 40 | 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 4 209 | max_issues_repo_name stringlengths 5 121 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 209 | max_forks_repo_name stringlengths 5 121 | max_forks_repo_head_hexsha stringlengths 40 40 | 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 4 1.02M | avg_line_length float64 1.07 66.1k | max_line_length int64 4 266k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f40a11d291c7b6a22ac89e14bcc0b90daa9b78f | 9,736 | py | Python | sdk/python/pulumi_azure_nextgen/documentdb/v20150401/database_account_gremlin_graph.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_nextgen/documentdb/v20150401/database_account_gremlin_graph.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_nextgen/documentdb/v20150401/database_account_gremlin_graph.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | 45.283721 | 556 | 0.660025 |
c419857388002549f95c972dc3084e59d8cda51d | 2,038 | py | Python | azure/mgmt/iothub/models/routing_event_hub_properties.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2020-07-29T14:22:17.000Z | 2020-11-06T18:47:40.000Z | azure/mgmt/iothub/models/routing_event_hub_properties.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2016-08-01T07:37:04.000Z | 2016-08-01T07:37:04.000Z | azure/mgmt/iothub/models/routing_event_hub_properties.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2020-12-12T21:04:41.000Z | 2020-12-12T21:04:41.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 39.960784 | 91 | 0.640824 |
6dbf32bb145ef547e386504e78aaa8614acabad9 | 5,761 | py | Python | dymos/examples/battery_multibranch/doc/test_multibranch_trajectory_for_docs.py | yonghoonlee/dymos | 602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4 | [
"Apache-2.0"
] | 104 | 2018-09-08T16:52:27.000Z | 2022-03-10T23:35:30.000Z | dymos/examples/battery_multibranch/doc/test_multibranch_trajectory_for_docs.py | yonghoonlee/dymos | 602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4 | [
"Apache-2.0"
] | 628 | 2018-06-27T20:32:59.000Z | 2022-03-31T19:24:32.000Z | dymos/examples/battery_multibranch/doc/test_multibranch_trajectory_for_docs.py | yonghoonlee/dymos | 602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4 | [
"Apache-2.0"
] | 46 | 2018-06-27T20:54:07.000Z | 2021-12-19T07:23:32.000Z | """
Integration test for a battery+motor example that demonstrates phase branching in trajectories.
"""
import unittest
import matplotlib
matplotlib.use('Agg')
from openmdao.utils.testing_utils import use_tempdirs
@use_tempdirs
class TestBatteryBranchingPhasesForDocs(unittest.TestCase):
def test_basic(self):
... | 38.925676 | 104 | 0.644333 |
4e624fcd2f0cba1bc8e3578fd1b63b045d286d69 | 1,497 | py | Python | dataset_split.py | Complicateddd/Complicateddd-ROITransformer | 2adfbf98892d569c460d100c6e2169c5fa3a9b82 | [
"Apache-2.0"
] | null | null | null | dataset_split.py | Complicateddd/Complicateddd-ROITransformer | 2adfbf98892d569c460d100c6e2169c5fa3a9b82 | [
"Apache-2.0"
] | null | null | null | dataset_split.py | Complicateddd/Complicateddd-ROITransformer | 2adfbf98892d569c460d100c6e2169c5fa3a9b82 | [
"Apache-2.0"
] | 1 | 2021-12-17T12:49:06.000Z | 2021-12-17T12:49:06.000Z | import os
import random
import shutil
file=os.listdir("/media/ubuntu/data/huojianjun/科目四热身赛数据/labelTxt")
tv=int(len(file)*0.8)
list_one=list(range(1,len(file)+1))
trainval=random.sample(list_one,tv)
for i in list_one:
if i in trainval:
shutil.copy(os.path.join('/media/ubuntu/data/huojianjun/科目四热身赛数据/images/{}.tif... | 35.642857 | 95 | 0.718771 |
c859b9b9b1f2a036ecfc77f29dfee02d183b780a | 26,041 | py | Python | test/functional/p2p_sendheaders.py | bryceweiner/syscoin-1 | ff4392cb771b59ba66e249f614360ab4c9d4ce2a | [
"MIT"
] | 145 | 2015-01-03T17:07:36.000Z | 2022-02-11T07:35:46.000Z | test/functional/p2p_sendheaders.py | bryceweiner/syscoin-1 | ff4392cb771b59ba66e249f614360ab4c9d4ce2a | [
"MIT"
] | 366 | 2015-01-08T05:10:17.000Z | 2022-03-07T02:30:03.000Z | test/functional/p2p_sendheaders.py | bryceweiner/syscoin-1 | ff4392cb771b59ba66e249f614360ab4c9d4ce2a | [
"MIT"
] | 110 | 2015-01-03T17:00:15.000Z | 2022-02-13T15:31:08.000Z | #!/usr/bin/env python3
# Copyright (c) 2014-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test behavior of headers messages to announce blocks.
Setup:
- Two nodes:
- node0 is the node-und... | 43.766387 | 154 | 0.638839 |
3d596fff993073c0d618cf23841956d94b6ec3f3 | 697 | py | Python | app/src/config_example.py | hubacekjirka/dailyPhotoTwitterBot | abd490b73603883d4e71bfa6076e9925a055fcb7 | [
"MIT"
] | 1 | 2020-03-16T10:51:07.000Z | 2020-03-16T10:51:07.000Z | app/src/config_example.py | hubacekjirka/dailyPhotoTwitterBot | abd490b73603883d4e71bfa6076e9925a055fcb7 | [
"MIT"
] | 6 | 2019-08-11T10:00:36.000Z | 2021-06-02T00:18:58.000Z | app/src/config_example.py | hubacekjirka/dailyPhotoTwitterBot | abd490b73603883d4e71bfa6076e9925a055fcb7 | [
"MIT"
] | 2 | 2019-09-30T18:45:47.000Z | 2021-01-09T10:38:14.000Z | import os
# Twitter access config file
# To use this file, insert your own keys and rename it to config.py
consumer_key = 'CONSUMERKEY'
consumer_secret = 'CONSUMERSECRET'
access_token = 'ACCESS-TOKEN'
access_token_secret = 'ACCESSTOKENSECRET'
# Folder for storing Telegram's ChatIds
chat_id_folder = os.path.join(os.p... | 24.892857 | 84 | 0.776184 |
f13ab948f1df6382fcac9a2961daa57cd787601e | 913 | py | Python | vc_zoom/indico_vc_zoom/blueprint.py | tomasr8/indico-plugins | b85e4ad826fa362aa32eb236e73c9ab2f7c7f465 | [
"MIT"
] | null | null | null | vc_zoom/indico_vc_zoom/blueprint.py | tomasr8/indico-plugins | b85e4ad826fa362aa32eb236e73c9ab2f7c7f465 | [
"MIT"
] | null | null | null | vc_zoom/indico_vc_zoom/blueprint.py | tomasr8/indico-plugins | b85e4ad826fa362aa32eb236e73c9ab2f7c7f465 | [
"MIT"
] | null | null | null | # This file is part of the Indico plugins.
# Copyright (C) 2020 - 2022 CERN and ENEA
#
# The Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License;
# see the LICENSE file for more details.
from indico.core.plugins import IndicoPluginBlueprint
from indico_v... | 36.52 | 111 | 0.771084 |
b3221b04eb82789c9b7dd65b14a0fd9ee5802918 | 1,529 | py | Python | 2019/day11/2.py | tomhel/AoC_2019 | c76c34235821864bc763f85d43cbcbfb9ed43469 | [
"MIT"
] | 1 | 2021-12-07T13:18:52.000Z | 2021-12-07T13:18:52.000Z | 2019/day11/2.py | tomhel/AoC | c76c34235821864bc763f85d43cbcbfb9ed43469 | [
"MIT"
] | null | null | null | 2019/day11/2.py | tomhel/AoC | c76c34235821864bc763f85d43cbcbfb9ed43469 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import intcode
import queue
import threading
def move(current_dir, turn):
if current_dir == "U":
return ("L", -1, 0) if turn == 0 else ("R", 1, 0)
elif current_dir == "D":
return ("R", 1, 0) if turn == 0 else ("L", -1, 0)
elif current_dir == "L":
return ("D... | 25.065574 | 74 | 0.535644 |
aa166553e42771ed913e35aa8b9a7f04a57008df | 1,310 | py | Python | src/09-built-on-asyncio/the_unsync/nosync.py | lleites/async-techniques-python-course | fca6915bc78fec828a87bed56fd41565ed89ad9d | [
"MIT"
] | null | null | null | src/09-built-on-asyncio/the_unsync/nosync.py | lleites/async-techniques-python-course | fca6915bc78fec828a87bed56fd41565ed89ad9d | [
"MIT"
] | null | null | null | src/09-built-on-asyncio/the_unsync/nosync.py | lleites/async-techniques-python-course | fca6915bc78fec828a87bed56fd41565ed89ad9d | [
"MIT"
] | null | null | null | import datetime
import math
import time
import requests
def main():
t0 = datetime.datetime.now()
compute_some()
compute_some()
compute_some()
download_some()
download_some()
download_some_more()
download_some_more()
wait_some()
wait_some()
wait_some()
wait_some()
... | 19.848485 | 99 | 0.625954 |
47930a8e781198727fa5062182ed980580b448ee | 778 | py | Python | tools/protoxform/utils.py | dcillera/envoy | cb54ba8eec26f768f8c1ae412113b07bacde7321 | [
"Apache-2.0"
] | 17,703 | 2017-09-14T18:23:43.000Z | 2022-03-31T22:04:17.000Z | tools/protoxform/utils.py | dcillera/envoy | cb54ba8eec26f768f8c1ae412113b07bacde7321 | [
"Apache-2.0"
] | 15,957 | 2017-09-14T16:38:22.000Z | 2022-03-31T23:56:30.000Z | tools/protoxform/utils.py | dcillera/envoy | cb54ba8eec26f768f8c1ae412113b07bacde7321 | [
"Apache-2.0"
] | 3,780 | 2017-09-14T18:58:47.000Z | 2022-03-31T17:10:47.000Z | import importlib
from tools.type_whisperer.api_type_db_pb2 import TypeDb
from google.protobuf import text_format
PROTO_FILES = (
"google.api.annotations", "validate.validate", "envoy.annotations.deprecation",
"envoy.annotations.resource", "udpa.annotations.migrate", "udpa.annotations.security",
"udpa.ann... | 25.096774 | 91 | 0.727506 |
4e681e48101a4e1a42e998a2defa80b34bf2de44 | 759 | py | Python | MascotasPasto/MascotasPasto/urls.py | Esteban-Rosas/Frameworks-7a-2020B | 768d354ee8d966c93465ff9bb2d7da27ad3e1baa | [
"MIT"
] | null | null | null | MascotasPasto/MascotasPasto/urls.py | Esteban-Rosas/Frameworks-7a-2020B | 768d354ee8d966c93465ff9bb2d7da27ad3e1baa | [
"MIT"
] | null | null | null | MascotasPasto/MascotasPasto/urls.py | Esteban-Rosas/Frameworks-7a-2020B | 768d354ee8d966c93465ff9bb2d7da27ad3e1baa | [
"MIT"
] | null | null | null | """MascotasPasto URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | 34.5 | 77 | 0.70751 |
1b2f761bf1f78346a3f382038ac5c36c0a5e13d7 | 3,321 | py | Python | support_files/scraping/entries/proj_2075/proj_2075/settings.py | miccaldas/new_rss | 9580887ac44b5c3e4c4ed5045478f2c7fef36afe | [
"MIT"
] | null | null | null | support_files/scraping/entries/proj_2075/proj_2075/settings.py | miccaldas/new_rss | 9580887ac44b5c3e4c4ed5045478f2c7fef36afe | [
"MIT"
] | null | null | null | support_files/scraping/entries/proj_2075/proj_2075/settings.py | miccaldas/new_rss | 9580887ac44b5c3e4c4ed5045478f2c7fef36afe | [
"MIT"
] | null | null | null | # Scrapy settings for proj_2075 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middlewa... | 35.329787 | 103 | 0.777176 |
0d7a6f1c1511e4f95c8ee89c023327ab0ee0f427 | 394 | py | Python | 061 - P.A. 2.0.py | Rprjunior/PraticandoPython | cad85e2f05703986b2ee47d8a475ac67c8909b88 | [
"MIT"
] | null | null | null | 061 - P.A. 2.0.py | Rprjunior/PraticandoPython | cad85e2f05703986b2ee47d8a475ac67c8909b88 | [
"MIT"
] | null | null | null | 061 - P.A. 2.0.py | Rprjunior/PraticandoPython | cad85e2f05703986b2ee47d8a475ac67c8909b88 | [
"MIT"
] | null | null | null | '''061 - P.A. 2.0
Refaça o DESAFIO 51, lendo o primeiro termo e a razão de uma PA.
Mostre os 10 primeiros termos da progressão usando a estrutura while.'''
valor = int(input('Digite um valor: '))
razao = int(input('Qual será sua razão: '))
contador = 1
while contador <= 10:
print('{} > '.format(valor), end=' ')
... | 30.307692 | 72 | 0.647208 |
f229406934f90c9a2679b34cd2132c8b3ca563a4 | 5,359 | py | Python | sec_utils/logger.py | squigglepuff/firebytes | 6a6d5476ca73a489254c40c9bc87a0e68e5f36a4 | [
"Apache-2.0"
] | null | null | null | sec_utils/logger.py | squigglepuff/firebytes | 6a6d5476ca73a489254c40c9bc87a0e68e5f36a4 | [
"Apache-2.0"
] | null | null | null | sec_utils/logger.py | squigglepuff/firebytes | 6a6d5476ca73a489254c40c9bc87a0e68e5f36a4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# *-* coding: utf-8 *-*
from io import IOBase
import sys
import re
import os
import os.path
from datetime import datetime as dt
global fireIO
# For legacy support.
global PrintLog
global DumpLog
global TruncateLog
def PrintLog(line, level, debug_info="", plugin_id=0):
global fireIO
fir... | 38.833333 | 158 | 0.574361 |
24f49c660c0309aee6e99d7963046de07980453d | 23,534 | py | Python | python/ccxt/indodax.py | DavidFelsen/ccxt | 6497b7da13d2ea3a9e56207b46b8691938b07839 | [
"MIT"
] | 2 | 2021-04-15T22:12:33.000Z | 2021-09-04T05:29:32.000Z | python/ccxt/indodax.py | DavidFelsen/ccxt | 6497b7da13d2ea3a9e56207b46b8691938b07839 | [
"MIT"
] | 1 | 2021-08-23T16:27:34.000Z | 2021-08-23T16:27:34.000Z | python/ccxt/indodax.py | DavidFelsen/ccxt | 6497b7da13d2ea3a9e56207b46b8691938b07839 | [
"MIT"
] | 2 | 2020-09-08T01:41:24.000Z | 2021-04-30T00:07:59.000Z | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import hashlib
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import Authenticati... | 38.454248 | 127 | 0.490822 |
e7994c794e0614f2f99d77eb7379781be60fb960 | 3,470 | py | Python | kubernetes/client/models/v1_namespace_spec.py | kevingessner/python | 3f4d09d260cf0839fae8173852c69e0419188454 | [
"Apache-2.0"
] | null | null | null | kubernetes/client/models/v1_namespace_spec.py | kevingessner/python | 3f4d09d260cf0839fae8173852c69e0419188454 | [
"Apache-2.0"
] | null | null | null | kubernetes/client/models/v1_namespace_spec.py | kevingessner/python | 3f4d09d260cf0839fae8173852c69e0419188454 | [
"Apache-2.0"
] | 1 | 2018-07-19T16:37:20.000Z | 2018-07-19T16:37:20.000Z | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.9.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | 27.322835 | 183 | 0.57147 |
f01989026433128d32fe0dee11ff7d0d575c1dce | 63,084 | py | Python | pandas/core/groupby/generic.py | AbdulMAbdi/pandas | a5eb94d266fc5f57acd29f585e2c944259cd0861 | [
"BSD-3-Clause"
] | null | null | null | pandas/core/groupby/generic.py | AbdulMAbdi/pandas | a5eb94d266fc5f57acd29f585e2c944259cd0861 | [
"BSD-3-Clause"
] | null | null | null | pandas/core/groupby/generic.py | AbdulMAbdi/pandas | a5eb94d266fc5f57acd29f585e2c944259cd0861 | [
"BSD-3-Clause"
] | null | null | null | """
Define the SeriesGroupBy and DataFrameGroupBy
classes that hold the groupby interfaces (and some implementations).
These are user facing as the result of the ``df.groupby(...)`` operations,
which here returns a DataFrameGroupBy object.
"""
from collections import abc, namedtuple
import copy
from functools import p... | 34.434498 | 88 | 0.569447 |
6281f45645da51434958f60a0e90ed49511dc599 | 6,196 | py | Python | Examples/DicomConvert/DicomConvert.py | rickardcronholm/SimpleITK | 6850980606e5f0c09af29379181aea72c0cd9c2a | [
"Apache-2.0"
] | 576 | 2015-01-14T12:47:35.000Z | 2022-03-31T07:45:52.000Z | Examples/DicomConvert/DicomConvert.py | resace3/SimpleITK | 4e04ab7936038d91c5dc8bac991833becb88a69e | [
"Apache-2.0"
] | 874 | 2015-01-15T10:19:16.000Z | 2022-03-29T16:51:12.000Z | Examples/DicomConvert/DicomConvert.py | resace3/SimpleITK | 4e04ab7936038d91c5dc8bac991833becb88a69e | [
"Apache-2.0"
] | 186 | 2015-01-16T15:39:27.000Z | 2022-03-21T17:22:35.000Z | # =========================================================================
#
# Copyright NumFOCUS
#
# 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/licens... | 42.731034 | 79 | 0.615236 |
820d91bba5a5f7076009010ceb7d4ee4d9802150 | 5,358 | py | Python | ppci/wasm/io.py | rakati/ppci-mirror | 8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2 | [
"BSD-2-Clause"
] | null | null | null | ppci/wasm/io.py | rakati/ppci-mirror | 8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2 | [
"BSD-2-Clause"
] | null | null | null | ppci/wasm/io.py | rakati/ppci-mirror | 8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2 | [
"BSD-2-Clause"
] | null | null | null | """ This module assists with reading and writing wasm to binary.
"""
from ..utils.leb128 import signed_leb128_encode, unsigned_leb128_encode
from ..utils.leb128 import unsigned_leb128_decode, signed_leb128_decode
from ..format.io import BaseIoReader, BaseIoWriter
LANG_TYPES = {
"i32": b"\x7f",
"i64": b"\x7e"... | 27.060606 | 78 | 0.558231 |
9a2d3184b054060728ca03855f5b6c358ec8ecf9 | 12,327 | py | Python | clearml/backend_interface/task/log.py | manojlds/clearml | b21e93272682af99fffc861224f38d65b42c2354 | [
"Apache-2.0"
] | null | null | null | clearml/backend_interface/task/log.py | manojlds/clearml | b21e93272682af99fffc861224f38d65b42c2354 | [
"Apache-2.0"
] | null | null | null | clearml/backend_interface/task/log.py | manojlds/clearml | b21e93272682af99fffc861224f38d65b42c2354 | [
"Apache-2.0"
] | null | null | null | import json
import sys
from pathlib2 import Path
from logging import LogRecord, getLogger, basicConfig, getLevelName, INFO, WARNING, Formatter, makeLogRecord, warning
from logging.handlers import BufferingHandler
from six.moves.queue import Queue as TrQueue
from threading import Event as TrEvent
from .development.work... | 39.509615 | 117 | 0.59682 |
4f1da6677bd84b7cd04ec87514da467638bdd710 | 2,612 | py | Python | operators/spin_loop_correlator.py | liyang2019/VMC-ISGO | 842a8826db75b764fc0e02024094badd6211ca2a | [
"Apache-2.0"
] | 7 | 2019-08-22T19:10:06.000Z | 2020-11-24T20:15:37.000Z | operators/spin_loop_correlator.py | liyang2019/VMC-ISGO | 842a8826db75b764fc0e02024094badd6211ca2a | [
"Apache-2.0"
] | null | null | null | operators/spin_loop_correlator.py | liyang2019/VMC-ISGO | 842a8826db75b764fc0e02024094badd6211ca2a | [
"Apache-2.0"
] | null | null | null | """Operators for multi-component spin system loop correlation functions."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from typing import Tuple
import numpy as np
from operators.operator import Operator
class SpinLoopCorrelator(Operator):
def _... | 34.826667 | 78 | 0.523354 |
4b40630ab453a99a311b890e97529289ac1a47b1 | 4,433 | py | Python | pyOCD/pyDAPAccess/interface/pywinusb_backend.py | mesheven/mesh-pyocd-old | 99ecfeeac95820dacab52a1280b0fba6d4f51fc9 | [
"Apache-2.0"
] | 1 | 2018-04-17T08:54:33.000Z | 2018-04-17T08:54:33.000Z | pyOCD/pyDAPAccess/interface/pywinusb_backend.py | mesheven/mesh-pyocd-old | 99ecfeeac95820dacab52a1280b0fba6d4f51fc9 | [
"Apache-2.0"
] | null | null | null | pyOCD/pyDAPAccess/interface/pywinusb_backend.py | mesheven/mesh-pyocd-old | 99ecfeeac95820dacab52a1280b0fba6d4f51fc9 | [
"Apache-2.0"
] | null | null | null | """
mbed CMSIS-DAP debugger
Copyright (c) 2006-2013 ARM Limited
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 ... | 31.892086 | 79 | 0.596887 |
f2157e143c3dd62675d413581809201a46201b89 | 5,838 | py | Python | mask_green_background_bbox.py | imitrob/imitrob_dataset_code | ac03e9d32c678408a658e9c00658da701ff68878 | [
"BSD-3-Clause"
] | null | null | null | mask_green_background_bbox.py | imitrob/imitrob_dataset_code | ac03e9d32c678408a658e9c00658da701ff68878 | [
"BSD-3-Clause"
] | null | null | null | mask_green_background_bbox.py | imitrob/imitrob_dataset_code | ac03e9d32c678408a658e9c00658da701ff68878 | [
"BSD-3-Clause"
] | null | null | null | """
Mask out green background and the outside of gluegun 3D bounding box.
Jiri Sedlar, 2019
Intelligent Machine Perception Project (IMPACT)
http://impact.ciirc.cvut.cz/
CIIRC, Czech Technical University in Prague
"""
import numpy as np
import cv2
import skimage.morphology
import matplotlib.pyplot as plt
from PIL impo... | 34.140351 | 169 | 0.645769 |
7df252d031f6dd90782b4f7e08141fb598820fc0 | 1,929 | py | Python | buildroot/support/testing/tests/download/gitremote.py | bramkragten/operating-system | 27fc2de146f1ef047316a4b58a236c72d26da81c | [
"Apache-2.0"
] | 349 | 2021-08-17T08:46:53.000Z | 2022-03-30T06:25:25.000Z | buildroot/support/testing/tests/download/gitremote.py | bramkragten/operating-system | 27fc2de146f1ef047316a4b58a236c72d26da81c | [
"Apache-2.0"
] | 8 | 2020-04-02T22:51:47.000Z | 2020-04-27T03:24:55.000Z | buildroot/support/testing/tests/download/gitremote.py | bramkragten/operating-system | 27fc2de146f1ef047316a4b58a236c72d26da81c | [
"Apache-2.0"
] | 12 | 2021-08-17T20:10:30.000Z | 2022-01-06T10:52:54.000Z | # subprocess does not kill the child daemon when a test case fails by raising
# an exception. So use pexpect instead.
import infra
import pexpect
GIT_REMOTE_PORT_INITIAL = 9418
GIT_REMOTE_PORT_LAST = GIT_REMOTE_PORT_INITIAL + 99
class GitRemote(object):
def __init__(self, builddir, serveddir, logtofile):
... | 40.1875 | 89 | 0.599793 |
02fc22792d645318532b986f768c9560d8558446 | 15,521 | py | Python | prass.py | tp7/Prass | e8e5b5de530dd542f55fd07bee649e7171ef488d | [
"MIT"
] | 50 | 2015-01-07T07:25:31.000Z | 2021-12-03T15:17:58.000Z | prass.py | tp7/Prass | e8e5b5de530dd542f55fd07bee649e7171ef488d | [
"MIT"
] | 6 | 2015-10-20T07:23:04.000Z | 2021-01-08T15:12:42.000Z | prass.py | tp7/Prass | e8e5b5de530dd542f55fd07bee649e7171ef488d | [
"MIT"
] | 7 | 2016-03-20T09:34:42.000Z | 2021-03-13T00:56:49.000Z | #!/usr/bin/env python2
import click
import sys
from operator import attrgetter
from common import PrassError, zip, map
from subs import AssScript
from tools import Timecodes, parse_keyframes
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
def parse_fps_string(fps_string):
if '/' in fps_string:
... | 49.746795 | 154 | 0.667934 |
453b808f95410145b7432fec2064281ef7da7c51 | 2,341 | py | Python | tests/test_detection_coco.py | czhu12/brambox | eedcebd6781e7efcda188533fd22924bb128e89c | [
"MIT"
] | 3 | 2018-09-25T14:51:19.000Z | 2020-02-06T15:52:46.000Z | tests/test_detection_coco.py | czhu12/brambox | eedcebd6781e7efcda188533fd22924bb128e89c | [
"MIT"
] | null | null | null | tests/test_detection_coco.py | czhu12/brambox | eedcebd6781e7efcda188533fd22924bb128e89c | [
"MIT"
] | 1 | 2018-11-21T08:10:37.000Z | 2018-11-21T08:10:37.000Z | import unittest
from brambox.boxes.detections.detection import Detection
from brambox.boxes.detections import CocoDetection, CocoParser
class TestCocoDetection(unittest.TestCase):
def setUp(self):
self.det = CocoDetection()
def tearDown(self):
pass
def test_det_deserialize(self):
... | 37.758065 | 111 | 0.63947 |
d1dc66e1c60d4e9d75d4db6791a926d7f1e665f6 | 1,086 | py | Python | CholletDL/chapter3/simple_dense_layer.py | Zilleplus/MachineLearning | 13e4fe996386d3f66b7866cc133ae9b26a6333d6 | [
"MIT"
] | null | null | null | CholletDL/chapter3/simple_dense_layer.py | Zilleplus/MachineLearning | 13e4fe996386d3f66b7866cc133ae9b26a6333d6 | [
"MIT"
] | null | null | null | CholletDL/chapter3/simple_dense_layer.py | Zilleplus/MachineLearning | 13e4fe996386d3f66b7866cc133ae9b26a6333d6 | [
"MIT"
] | null | null | null | import tensorflow as tf
import tensorflow.keras as keras
class SimpleDense(keras.layers.Layer):
def __init__(self, units, activation=None):
super().__init__()
self.units = units
self.activation = activation
def build(self, input_shape):
input_dim = input_shape[-1]
self... | 30.166667 | 63 | 0.634438 |
5806cc9c13e1e111941ba4d642f45d80c5291ef1 | 1,115 | py | Python | commpy/examples/wifi80211_conv_encode_decode.py | goodcq/CommPy | af3a9acba32d2f9c6b723705f709fee2cb9352e2 | [
"BSD-3-Clause"
] | 2 | 2018-11-18T22:10:49.000Z | 2019-07-12T08:35:24.000Z | commpy/examples/wifi80211_conv_encode_decode.py | goodcq/CommPy | af3a9acba32d2f9c6b723705f709fee2cb9352e2 | [
"BSD-3-Clause"
] | null | null | null | commpy/examples/wifi80211_conv_encode_decode.py | goodcq/CommPy | af3a9acba32d2f9c6b723705f709fee2cb9352e2 | [
"BSD-3-Clause"
] | 1 | 2020-10-13T10:33:23.000Z | 2020-10-13T10:33:23.000Z | # Authors: CommPy contributors
# License: BSD 3-Clause
import math
import matplotlib.pyplot as plt
import numpy as np
import commpy.channels as chan
# ==================================================================================================
# Complete example using Commpy Wifi 802.11 physical parameters
# =... | 31.857143 | 100 | 0.605381 |
5a6103403f7aefcda026a20baffe8ebd9c8270b3 | 4,513 | py | Python | vpip/dependency.py | jayvdb/vpip | fd3a11c525a5b917ac2332458615db80d6ca0642 | [
"MIT"
] | null | null | null | vpip/dependency.py | jayvdb/vpip | fd3a11c525a5b917ac2332458615db80d6ca0642 | [
"MIT"
] | null | null | null | vpip/dependency.py | jayvdb/vpip | fd3a11c525a5b917ac2332458615db80d6ca0642 | [
"MIT"
] | null | null | null | import configparser
import re
from pathlib import Path
from configupdater import ConfigUpdater
from pkg_resources import parse_requirements
def get_dev_requires():
return parse_requirements(DevUpdater().get_requirements())
def get_prod_requires():
return parse_requirements(ProdUpdater().get_requirements(... | 30.493243 | 79 | 0.587414 |
1385f8ae014034952718ab59153ec625735f674f | 906 | py | Python | ping.py | bechynsky/bc-sigfox-nopower-alarm | 29d925a5286d3b47f6f7e1317e43b5b1e141ebed | [
"MIT"
] | 1 | 2019-01-15T22:44:27.000Z | 2019-01-15T22:44:27.000Z | ping.py | bechynsky/bc-sigfox-nopower-alarm | 29d925a5286d3b47f6f7e1317e43b5b1e141ebed | [
"MIT"
] | null | null | null | ping.py | bechynsky/bc-sigfox-nopower-alarm | 29d925a5286d3b47f6f7e1317e43b5b1e141ebed | [
"MIT"
] | null | null | null | import http.client
import serial
import time
# Configuration
PORT_NAME = "COM9"
WEB_URL = "www.python.org"
# Connect to serial port
device = serial.Serial(PORT_NAME, 115200)
def deviceUpdate(updateCode):
device.write(updateCode)
device.flush()
print(updateCode)
# simple chcek if server... | 19.695652 | 52 | 0.555188 |
2366b5c4f73dd00cc3e5e37c9740283737f617e7 | 77 | py | Python | utils/measure_v2/light_controller/const.py | smonesi/homeassistant-powercalc | a5ba97836c03e4c09fa1a0f1b8d7bf32dd56e8ad | [
"MIT"
] | null | null | null | utils/measure_v2/light_controller/const.py | smonesi/homeassistant-powercalc | a5ba97836c03e4c09fa1a0f1b8d7bf32dd56e8ad | [
"MIT"
] | null | null | null | utils/measure_v2/light_controller/const.py | smonesi/homeassistant-powercalc | a5ba97836c03e4c09fa1a0f1b8d7bf32dd56e8ad | [
"MIT"
] | null | null | null | MODE_HS = "hs"
MODE_COLOR_TEMP = "color_temp"
MODE_BRIGHTNESS = "brightness"
| 19.25 | 30 | 0.766234 |
faa8028bea404c59d25a6237d98d80586cdc6afd | 32,355 | py | Python | Chapter06/SHAP_ERRATA/_explanation.py | PacktPublishing/Applied-Machine-Learning-Explainability-Techniques | 13db7d78421e7370a455f97590df3a6c60f0c630 | [
"MIT"
] | 16 | 2021-12-13T02:12:47.000Z | 2022-03-24T16:08:20.000Z | Chapter06/SHAP_ERRATA/_explanation.py | PacktPublishing/Applied-Machine-Learning-Explainability-Techniques | 13db7d78421e7370a455f97590df3a6c60f0c630 | [
"MIT"
] | null | null | null | Chapter06/SHAP_ERRATA/_explanation.py | PacktPublishing/Applied-Machine-Learning-Explainability-Techniques | 13db7d78421e7370a455f97590df3a6c60f0c630 | [
"MIT"
] | 7 | 2021-12-27T08:40:52.000Z | 2022-03-25T02:22:50.000Z |
import pandas as pd
import numpy as np
import scipy as sp
import sys
import warnings
import copy
import operator
import sklearn
from slicer import Slicer, Alias, Obj
# from ._order import Order
from .utils._general import OpChain
# slicer confuses pylint...
# pylint: disable=no-member
op_chain_root = OpChain("shap.... | 35.672547 | 138 | 0.58025 |
2e71337756eb090a23ed5d3d1ce932e86218a85e | 14,028 | py | Python | manager/test/python/task_pb2.py | UCLA-VAST/Blaze | 666e87d9e6cf4c4d83cd7551f6bcfc4556cd8965 | [
"BSD-2-Clause"
] | 31 | 2015-08-21T19:58:00.000Z | 2021-03-10T10:45:37.000Z | manager/test/python/task_pb2.py | UCLA-VAST/Blaze | 666e87d9e6cf4c4d83cd7551f6bcfc4556cd8965 | [
"BSD-2-Clause"
] | 1 | 2017-03-23T03:58:23.000Z | 2017-03-23T04:24:33.000Z | manager/test/python/task_pb2.py | UCLA-VAST/Blaze | 666e87d9e6cf4c4d83cd7551f6bcfc4556cd8965 | [
"BSD-2-Clause"
] | 16 | 2016-09-07T08:35:10.000Z | 2020-01-04T01:44:48.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: task.proto
from google.protobuf.internal import enum_type_wrapper
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 ... | 38.327869 | 1,592 | 0.718135 |
4f254dca1a36b88a94eb238b1103604691fa6e59 | 2,941 | py | Python | tests/data.py | bennyrock20/rocket-python | ef1cebea3fcd18512f1b813842a06faa30cce207 | [
"MIT"
] | null | null | null | tests/data.py | bennyrock20/rocket-python | ef1cebea3fcd18512f1b813842a06faa30cce207 | [
"MIT"
] | null | null | null | tests/data.py | bennyrock20/rocket-python | ef1cebea3fcd18512f1b813842a06faa30cce207 | [
"MIT"
] | null | null | null | PUBLIC_ROOM_TEST = {'channels': [
{'name': 'Test Room',
'_id': '123456'}
]}
GET_ROOM_INFO_TEST = {
"channel": {
"_id": "ByehQjC44FwMeiLbX",
"ts": "2016-11-30T21:23:04.737Z",
"t": "c",
"name": "testing",
"usernames": [
"testing",
"testing1",
"testing2"
],
"msgs":... | 19.738255 | 49 | 0.440326 |
9ad346e6e4fa8d34300bcc3d5cc349b40dc43a53 | 10,025 | py | Python | google-cloud-phishing_protection/synth.py | mtsmfm/google-cloud-ruby | 5181abcae688e4fe4a55031eb844cb982df95154 | [
"Apache-2.0"
] | 1 | 2020-11-14T21:49:23.000Z | 2020-11-14T21:49:23.000Z | google-cloud-phishing_protection/synth.py | WebElZeN/google-cloud-ruby | c091a97f668010965809c450c54dbcdfe850fad5 | [
"Apache-2.0"
] | null | null | null | google-cloud-phishing_protection/synth.py | WebElZeN/google-cloud-ruby | c091a97f668010965809c450c54dbcdfe850fad5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.761438 | 227 | 0.677107 |
c42a61dcc12257f9bfbe08fd3682bfb3386cce90 | 7,383 | py | Python | fairscale/nn/model_parallel/initialize.py | vfdev-5/fairscale | b75a5e266d0d7953186a59feff8d808af4e0bf82 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-03-31T10:31:26.000Z | 2021-03-31T10:31:26.000Z | fairscale/nn/model_parallel/initialize.py | vfdev-5/fairscale | b75a5e266d0d7953186a59feff8d808af4e0bf82 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | fairscale/nn/model_parallel/initialize.py | vfdev-5/fairscale | b75a5e266d0d7953186a59feff8d808af4e0bf82 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding=utf-8
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Ve... | 39.063492 | 114 | 0.72843 |
4bb9da9e4851217fef3fd9c0bfd2998b2cfdb97c | 24,377 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_admin_user_dashboard.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_admin_user_dashboard.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_admin_user_dashboard.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2021 Fortinet, Inc.
#
# 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 3 of the ... | 33.809986 | 153 | 0.386963 |
2eff54e16f9c4e80c20483646bd08697f92439ee | 1,409 | py | Python | Floyd/2610.py | kjh9267/BOJ_Python | b4d2ae09c252cc9280df93ccecbd07880947827e | [
"Apache-2.0"
] | null | null | null | Floyd/2610.py | kjh9267/BOJ_Python | b4d2ae09c252cc9280df93ccecbd07880947827e | [
"Apache-2.0"
] | null | null | null | Floyd/2610.py | kjh9267/BOJ_Python | b4d2ae09c252cc9280df93ccecbd07880947827e | [
"Apache-2.0"
] | null | null | null | import sys
from collections import deque
def bfs():
queue = deque()
visit = [0 for _ in range(n)]
for u in range(n):
if visit[u] is 0:
queue.append(u)
team = [u]
while queue:
x = queue.popleft()
for i, j in enumerate(graph[x]):
... | 23.483333 | 61 | 0.466288 |
59ce93c845a797427c1c062f74e2ee733548112a | 470 | py | Python | problems/rotate-image.py | sailikhithk/tech-interview-prep | e833764cf98915d56118bddfa0e01871c58de75e | [
"Apache-2.0"
] | null | null | null | problems/rotate-image.py | sailikhithk/tech-interview-prep | e833764cf98915d56118bddfa0e01871c58de75e | [
"Apache-2.0"
] | null | null | null | problems/rotate-image.py | sailikhithk/tech-interview-prep | e833764cf98915d56118bddfa0e01871c58de75e | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def rotate(self, matrix):
N = len(matrix)
#transpose
for i in xrange(N):
for j in xrange(N):
if j<=i: continue
matrix[i][j], matrix[j][i] = matrix[j][i], matrix[i][j]
#reflect
for i in xrang... | 29.375 | 79 | 0.444681 |
dc37a1ca4a7bfe34b812b0162ff15dc6e1540872 | 3,884 | py | Python | virtual_env/libs/mysql-connector/python2/examples/transaction.py | bopopescu/fantastico | 7c95f244f0cf0239ac5408146612dd72f88d35ea | [
"MIT"
] | 2 | 2016-12-18T02:42:25.000Z | 2018-01-30T16:32:29.000Z | virtual_env/libs/mysql-connector/python2/examples/transaction.py | bopopescu/fantastico | 7c95f244f0cf0239ac5408146612dd72f88d35ea | [
"MIT"
] | 1 | 2020-07-28T07:16:35.000Z | 2020-07-28T07:16:35.000Z | virtual_env/libs/mysql-connector/python2/examples/transaction.py | bopopescu/fantastico | 7c95f244f0cf0239ac5408146612dd72f88d35ea | [
"MIT"
] | 1 | 2020-07-24T05:55:28.000Z | 2020-07-24T05:55:28.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
# MySQL Connector/Python is licensed under the terms of the GPLv2
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most... | 30.34375 | 82 | 0.650618 |
b8a60bad97cc2df66e1f58aeaa3e38a8ccfc603a | 1,323 | py | Python | imagededup/handlers/search/brute_force.py | agarwalutkarsh554/imagededup | 8cf82f2f59b051d61f90b6366a1f831d97a564be | [
"Apache-2.0"
] | 4,100 | 2019-09-30T14:34:05.000Z | 2022-03-31T15:45:20.000Z | imagededup/handlers/search/brute_force.py | agarwalutkarsh554/imagededup | 8cf82f2f59b051d61f90b6366a1f831d97a564be | [
"Apache-2.0"
] | 112 | 2019-10-01T14:08:35.000Z | 2022-03-25T01:59:19.000Z | imagededup/handlers/search/brute_force.py | agarwalutkarsh554/imagededup | 8cf82f2f59b051d61f90b6366a1f831d97a564be | [
"Apache-2.0"
] | 380 | 2019-10-04T13:02:28.000Z | 2022-03-31T09:41:11.000Z | from typing import Callable, Dict
class BruteForce:
"""
Class to perform search using a Brute force.
"""
def __init__(self, hash_dict: Dict, distance_function: Callable) -> None:
"""
Initialize a dictionary for mapping file names and corresponding hashes and a distance function to be ... | 35.756757 | 118 | 0.641723 |
065198c83e57a04b235d33595a23d8e4706502f6 | 35,492 | py | Python | pysnmp/ALCATEL-IND1-SLB-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ALCATEL-IND1-SLB-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ALCATEL-IND1-SLB-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 ALCATEL-IND1-SLB-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-SLB-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:03:47 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 137.565891 | 4,377 | 0.737237 |
ac06f44817a622b9d3881436601bd171a9198e6a | 10,172 | py | Python | Test/Python/Extract_Internal_Surfaces_From_Triangle_Geometry.py | JDuffeyBQ/DREAM3DReview | 098ddc60d1c53764e09e21e08d4636233071be31 | [
"BSD-3-Clause"
] | null | null | null | Test/Python/Extract_Internal_Surfaces_From_Triangle_Geometry.py | JDuffeyBQ/DREAM3DReview | 098ddc60d1c53764e09e21e08d4636233071be31 | [
"BSD-3-Clause"
] | 18 | 2017-09-01T23:13:02.000Z | 2021-09-02T12:58:57.000Z | Test/Python/Extract_Internal_Surfaces_From_Triangle_Geometry.py | JDuffeyBQ/DREAM3DReview | 098ddc60d1c53764e09e21e08d4636233071be31 | [
"BSD-3-Clause"
] | 9 | 2017-09-01T23:15:17.000Z | 2021-09-21T13:24:19.000Z | # Pipeline : (01) SmallIN100 Quick Mesh (from EBSD Surface Meshing)
# Tests the Extract Internal Surfaces From Triangle Geometry filter
#
import os
import simpl
import simplpy
import simpl_helpers as sh
import simpl_test_dirs as sd
import samplingpy as sampling
import surfacemeshingpy
import dream3dreviewpy
def start_... | 61.277108 | 120 | 0.658179 |
96ff9da123b45ed58c06b9f3b7c809f6ed7e62cc | 1,098 | py | Python | basketball_reference_web_scraper/errors.py | sheagk/basketball_reference_web_scraper | 820ff9760f91bffc3efd770d91547f3213f42ec8 | [
"MIT"
] | null | null | null | basketball_reference_web_scraper/errors.py | sheagk/basketball_reference_web_scraper | 820ff9760f91bffc3efd770d91547f3213f42ec8 | [
"MIT"
] | null | null | null | basketball_reference_web_scraper/errors.py | sheagk/basketball_reference_web_scraper | 820ff9760f91bffc3efd770d91547f3213f42ec8 | [
"MIT"
] | null | null | null | class InvalidDate(Exception):
def __init__(self, day, month, year):
message = "Date with year set to {year}, month set to {month}, and day set to {day} is invalid"\
.format(
year=year,
month=month,
day=day,
)
super().__init__(me... | 39.214286 | 107 | 0.642987 |
9fb580182433f1fcd40ab26a6971b7399c52a782 | 615 | py | Python | Code/generics/turtle_commands.py | Den1k22/python-lessons | cc898284e4d9b233dc023fbdae6ac41cf184ab02 | [
"MIT"
] | null | null | null | Code/generics/turtle_commands.py | Den1k22/python-lessons | cc898284e4d9b233dc023fbdae6ac41cf184ab02 | [
"MIT"
] | null | null | null | Code/generics/turtle_commands.py | Den1k22/python-lessons | cc898284e4d9b233dc023fbdae6ac41cf184ab02 | [
"MIT"
] | null | null | null |
import turtle
turtle.showturtle()
turtle.speed(1) # speed can be from 0 - 10
turtle.forward(100)
turtle.dot()
turtle.right(90)
turtle.forward(100)
turtle.dot()
turtle.left(120)
turtle.forward(100)
print(turtle.heading())
turtle.dot()
turtle.setheading(180)
turtle.forward(200)
turtle.dot()
turtle.setheading(0)
... | 14.302326 | 43 | 0.708943 |
08062f45f5edc2d952b3fa9aed60e05dedee01b1 | 2,008 | py | Python | trainSCI.py | Ranjitha-Ramesh/HSLN-Joint-Sentence-Classification | 1b8549010f1df11350ded130dd96c0f8f1de6c90 | [
"MIT"
] | null | null | null | trainSCI.py | Ranjitha-Ramesh/HSLN-Joint-Sentence-Classification | 1b8549010f1df11350ded130dd96c0f8f1de6c90 | [
"MIT"
] | null | null | null | trainSCI.py | Ranjitha-Ramesh/HSLN-Joint-Sentence-Classification | 1b8549010f1df11350ded130dd96c0f8f1de6c90 | [
"MIT"
] | 1 | 2020-03-19T01:59:09.000Z | 2020-03-19T01:59:09.000Z | import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="0,3"
from model.data_utils import Dataset
from model.models import HANNModel
from model.config import Config
import argparse
#import os
parser = argparse.ArgumentParser()
def main():
# create instance of config
config ... | 37.886792 | 113 | 0.698207 |
2b781764747ff996585362f1c6da76b0d7a1cb3e | 1,173 | py | Python | backend/src/urls.py | andihaki/welldone | 938c98c0fb6a5f5593f339c9d9318df2afd2d064 | [
"BSD-2-Clause"
] | null | null | null | backend/src/urls.py | andihaki/welldone | 938c98c0fb6a5f5593f339c9d9318df2afd2d064 | [
"BSD-2-Clause"
] | 12 | 2019-07-03T21:14:58.000Z | 2022-02-17T20:10:00.000Z | backend/src/urls.py | andihaki/welldone | 938c98c0fb6a5f5593f339c9d9318df2afd2d064 | [
"BSD-2-Clause"
] | null | null | null | """backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | 39.1 | 77 | 0.716113 |
0db45318bfaa1e40a85d01a5afe62aa22bbe5beb | 9,825 | py | Python | tests/components/remote/test_device_trigger.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 3 | 2020-11-27T06:26:27.000Z | 2020-12-09T14:55:16.000Z | tests/components/remote/test_device_trigger.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 25 | 2021-11-24T06:24:10.000Z | 2022-03-31T06:23:06.000Z | tests/components/remote/test_device_trigger.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 3 | 2022-01-02T18:49:54.000Z | 2022-01-25T02:03:54.000Z | """The test for remote device automation."""
from datetime import timedelta
import pytest
import homeassistant.components.automation as automation
from homeassistant.components.device_automation import DeviceAutomationType
from homeassistant.components.remote import DOMAIN
from homeassistant.const import CONF_PLATFOR... | 35.597826 | 87 | 0.485293 |
52dfa2ca38f3d51ef2738df8af490bb9c7289afb | 3,000 | py | Python | pollme/settings.py | farridav/Django-Poll-App | c86db98c2ac3a1f18c49ea8dad1911e6134d2b62 | [
"MIT"
] | null | null | null | pollme/settings.py | farridav/Django-Poll-App | c86db98c2ac3a1f18c49ea8dad1911e6134d2b62 | [
"MIT"
] | null | null | null | pollme/settings.py | farridav/Django-Poll-App | c86db98c2ac3a1f18c49ea8dad1911e6134d2b62 | [
"MIT"
] | null | null | null | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'x*za6xf&_80ofdpae!yzq61g9ffikkx9$*iygbl$j7rr4wlf8t'
DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS = [
'jazzmin',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.co... | 28.301887 | 90 | 0.657333 |
d65905bff06dbcbec0a6cb0491cfc220195406a9 | 2,896 | py | Python | scripts/keras_utils.py | Mukilan1600/lpr | e01503ecf3150e4e3604f968e50348b974eac27d | [
"MIT"
] | 2 | 2019-12-21T06:18:44.000Z | 2020-09-23T18:40:41.000Z | scripts/keras_utils.py | Mukilan1600/lpr | e01503ecf3150e4e3604f968e50348b974eac27d | [
"MIT"
] | null | null | null | scripts/keras_utils.py | Mukilan1600/lpr | e01503ecf3150e4e3604f968e50348b974eac27d | [
"MIT"
] | null | null | null |
import numpy as np
import cv2
import time
from os.path import splitext
from src.label import Label
from src.utils import getWH, nms
from src.projection_utils import getRectPts, find_T_matrix
class DLabel (Label):
def __init__(self,cl,pts,prob):
self.pts = pts
tl = np.amin(pts,1)
br = np.amax(pts,1)
Label... | 24.336134 | 87 | 0.661948 |
3b0289ff4ac7726831da195cfd05a803c3fca95d | 5,139 | py | Python | raspberry/Car-obd/fuction tests/test_protocol_can.py | dsd-m2m/vehicle-tracking | 7542c5d13bf3e5a3a2fdbf9de8e7dd80a4820a51 | [
"MIT"
] | 2 | 2018-10-10T12:11:00.000Z | 2018-11-18T12:14:36.000Z | raspberry/Car-obd/fuction tests/test_protocol_can.py | dsd-m2m/vehicle-tracking | 7542c5d13bf3e5a3a2fdbf9de8e7dd80a4820a51 | [
"MIT"
] | 6 | 2018-10-16T21:19:30.000Z | 2018-12-10T15:39:49.000Z | raspberry/Car-obd/fuction tests/test_protocol_can.py | dsd-m2m/vehicle-tracking | 7542c5d13bf3e5a3a2fdbf9de8e7dd80a4820a51 | [
"MIT"
] | 4 | 2018-10-28T18:43:32.000Z | 2018-12-09T18:41:03.000Z |
import random
from obd.protocols import *
from obd.protocols.protocol import Message
CAN_11_PROTOCOLS = [
ISO_15765_4_11bit_500k,
ISO_15765_4_11bit_250k,
]
CAN_29_PROTOCOLS = [
ISO_15765_4_29bit_500k,
ISO_15765_4_29bit_250k,
SAE_J1939
]
def check_message(m, num_frames, tx_id, data):
""" ge... | 24.946602 | 79 | 0.542518 |
d7c41708f168d585e9dc5663e20b93a50bda4176 | 8,806 | py | Python | python/lib/python2.7/site-packages/hgext/largefiles/uisetup.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | python/lib/python2.7/site-packages/hgext/largefiles/uisetup.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | python/lib/python2.7/site-packages/hgext/largefiles/uisetup.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2009-2010 Gregory P. Ward
# Copyright 2009-2010 Intelerad Medical Systems Incorporated
# Copyright 2010-2011 Fog Creek Software
# Copyright 2010-2011 Unity Technologies
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
'... | 43.166667 | 79 | 0.6206 |
392a5c9b285f3bb2dd59c4c76f5b8808338682c7 | 6,436 | py | Python | catUploadScripts/makeCSVfromSNANA.py | chrisfrohmaier/tides_cadence_note | b7681a9035d2fca56084f4596a161605150343c7 | [
"MIT"
] | null | null | null | catUploadScripts/makeCSVfromSNANA.py | chrisfrohmaier/tides_cadence_note | b7681a9035d2fca56084f4596a161605150343c7 | [
"MIT"
] | null | null | null | catUploadScripts/makeCSVfromSNANA.py | chrisfrohmaier/tides_cadence_note | b7681a9035d2fca56084f4596a161605150343c7 | [
"MIT"
] | null | null | null | import argparse
import pandas as pd
from astropy.table import Table
import os
import numpy as np
import sys
cols = ['SUBSURVEY','SNID','IAUC','FAKE','RA','DEC','PIXSIZE','NXPIX','NYPIX','CCDNUM',\
'SNTYPE','NOBS','PTROBS_MIN','PTROBS_MAX','MWEBV','MWEBV_ERR','REDSHIFT_HELIO',\
'REDSHIFT_HELIO_ERR','RED... | 46.302158 | 138 | 0.686451 |
8eae08cb41bf5f4e64e8d68458e7d8ec07005451 | 937 | py | Python | emoticons.py | nik-panekin/freelance_assistant_bot | 6d157ef8a706ce92742dce721ea40eb507121cdb | [
"MIT"
] | null | null | null | emoticons.py | nik-panekin/freelance_assistant_bot | 6d157ef8a706ce92742dce721ea40eb507121cdb | [
"MIT"
] | null | null | null | emoticons.py | nik-panekin/freelance_assistant_bot | 6d157ef8a706ce92742dce721ea40eb507121cdb | [
"MIT"
] | null | null | null | """Здесь хранятся заранее подготовленные эмодзи.
"""
from emoji import emojize
EMO_POINT_RIGHT = emojize(':point_right:', use_aliases=True)
EMO_INFORMATION = emojize(':information:', use_aliases=True)
EMO_WARNING = emojize(':warning:', use_aliases=True)
EMO_CROSS_MARK = emojize(':cross_mark:', use_aliases=True)
EMO_CH... | 44.619048 | 64 | 0.760939 |
b897cb5212199cd615a5b912c81436a7b2cd0664 | 915 | py | Python | Auto-Staker/staking.py | LeeChunHao2000/ftx-srm-auto-staker | 51ffd1e16ea50dee30a0eae1eb12d749af791eab | [
"MIT"
] | 3 | 2020-09-29T01:27:41.000Z | 2021-01-15T11:02:40.000Z | Auto-Staker/staking.py | a0981456759/ftx-srm-auto-staker | 51ffd1e16ea50dee30a0eae1eb12d749af791eab | [
"MIT"
] | null | null | null | Auto-Staker/staking.py | a0981456759/ftx-srm-auto-staker | 51ffd1e16ea50dee30a0eae1eb12d749af791eab | [
"MIT"
] | 3 | 2020-09-29T04:19:33.000Z | 2021-07-31T20:41:17.000Z | import sys, logging
from FTX.client import Client
logging.basicConfig(
handlers = [logging.StreamHandler(sys.stdout), logging.FileHandler('log.txt')],
level = logging.INFO,
format = '[%(asctime)s %(levelname)-8s] %(message)s',
datefmt = '%Y%m%d %H:%M:%S',
)
# SRM Coins
SRMS = ['SRM', 'SRM_LOCKED', 'MSRM',... | 22.875 | 83 | 0.62623 |
e9d7c022e1278366f3ca5a8b6dd191614ed9e77e | 39,589 | py | Python | vispy/geometry/triangulation.py | chongxi/vispy | 3683ea1f58e43b4aa1b32a3e69656bead8a31e99 | [
"BSD-3-Clause"
] | null | null | null | vispy/geometry/triangulation.py | chongxi/vispy | 3683ea1f58e43b4aa1b32a3e69656bead8a31e99 | [
"BSD-3-Clause"
] | null | null | null | vispy/geometry/triangulation.py | chongxi/vispy | 3683ea1f58e43b4aa1b32a3e69656bead8a31e99 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf8 -*-
from __future__ import division, print_function
import sys
from itertools import permutations
import numpy as np
from ..ext.ordereddict import OrderedDict
try:
# Try to use the C++ triangle library, faster than the
# pure Python version.
# The latest stable release only works with... | 38.176471 | 80 | 0.502741 |
8add77a83a1ddb1efef81fad5c4428e336f5e622 | 5,002 | py | Python | heltour/tournament/oauth.py | nathanj/heltour | 14c6e926e02e1c035c9037955af5673c5012d16c | [
"MIT"
] | null | null | null | heltour/tournament/oauth.py | nathanj/heltour | 14c6e926e02e1c035c9037955af5673c5012d16c | [
"MIT"
] | null | null | null | heltour/tournament/oauth.py | nathanj/heltour | 14c6e926e02e1c035c9037955af5673c5012d16c | [
"MIT"
] | null | null | null | import base64
import json
import requests
from django.contrib.auth import login
from django.core import signing
from django.http.response import HttpResponse
from django.shortcuts import redirect, reverse
from heltour.tournament.models import *
from heltour.tournament import lichessapi
_SCOPES = [
'email:read',
... | 37.609023 | 105 | 0.69952 |
ae01eec9c4809cbadc3a6cd6ce7ff66a402049aa | 2,045 | py | Python | datetime_drill.py | gcguevara/file_transfer_app | a2401f6aa9915d22242844c926e79ff7743766bf | [
"MIT"
] | null | null | null | datetime_drill.py | gcguevara/file_transfer_app | a2401f6aa9915d22242844c926e79ff7743766bf | [
"MIT"
] | null | null | null | datetime_drill.py | gcguevara/file_transfer_app | a2401f6aa9915d22242844c926e79ff7743766bf | [
"MIT"
] | null | null | null | """ Python Workplace Simulation
Author: Garrett Guevara
Written/Tested in Python Version 3.5.2
Task: Your company is headquartered in Portland, OR.
They've opened two new branches in NYC and London. They
ask that you create a program that tells if the branches
are open or closed based on the current time at HQ.
All b... | 29.637681 | 80 | 0.670905 |
3200944a6d21f3e53c199619aa9848cfe124983b | 9,395 | py | Python | homura/callbacks/reporters.py | Fragile-azalea/homura | 900d1d63affb9c8af3accd9b196b5276cb2e14b6 | [
"Apache-2.0"
] | 1 | 2020-06-30T01:55:41.000Z | 2020-06-30T01:55:41.000Z | homura/callbacks/reporters.py | Fragile-azalea/homura | 900d1d63affb9c8af3accd9b196b5276cb2e14b6 | [
"Apache-2.0"
] | null | null | null | homura/callbacks/reporters.py | Fragile-azalea/homura | 900d1d63affb9c8af3accd9b196b5276cb2e14b6 | [
"Apache-2.0"
] | null | null | null | import json
from numbers import Number
from pathlib import Path
from typing import Mapping, Iterable, Optional, List
import torch
import tqdm
from torchvision.utils import save_image as _save_image
from homura import liblog
from homura.utils import is_master, get_args
from homura.utils._vocabulary import *
from .base... | 32.964912 | 96 | 0.578286 |
6a981bfb23cc6c2a3b86fbdda2d790b7ef3944d3 | 5,667 | py | Python | evaluate_image.py | mklasby/mri-variationalnetwork | b784fbfcf24d833edb4a41dc70cd863052528f19 | [
"MIT"
] | 119 | 2017-09-22T01:10:25.000Z | 2022-03-17T18:44:39.000Z | evaluate_image.py | mklasby/mri-variationalnetwork | b784fbfcf24d833edb4a41dc70cd863052528f19 | [
"MIT"
] | 11 | 2017-12-26T10:45:18.000Z | 2021-03-04T17:10:04.000Z | evaluate_image.py | mklasby/mri-variationalnetwork | b784fbfcf24d833edb4a41dc70cd863052528f19 | [
"MIT"
] | 55 | 2018-06-18T05:37:52.000Z | 2022-03-14T22:41:27.000Z | import os
import sys
import argparse
import glob
import traceback
import time
import vn
import tensorflow as tf
import numpy as np
from mridata import VnMriReconstructionData
import mriutils
import icg
parser = argparse.ArgumentParser(description='reconstruct a given image data using a model')
parser.add_argument('im... | 43.930233 | 126 | 0.59573 |
f58b8d05071c472249d5822b5f2a2d2ba8a354eb | 6,452 | py | Python | hitcount/models.py | glassfordm/django-hitcount | b35d2f9c213f6a2ff0e5d0a746339a5b84b4d416 | [
"MIT"
] | 1 | 2020-05-20T08:42:49.000Z | 2020-05-20T08:42:49.000Z | hitcount/models.py | glassfordm/django-hitcount | b35d2f9c213f6a2ff0e5d0a746339a5b84b4d416 | [
"MIT"
] | 14 | 2020-03-24T17:31:08.000Z | 2022-03-11T23:59:30.000Z | hitcount/models.py | glassfordm/django-hitcount | b35d2f9c213f6a2ff0e5d0a746339a5b84b4d416 | [
"MIT"
] | 1 | 2020-04-13T12:37:37.000Z | 2020-04-13T12:37:37.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import timedelta
from django.db import models
from django.conf import settings
from django.db.models import F
from django.utils import timezone
from django.dispatch import receiver
from django.utils.encoding import python_2_unicode_compatibl... | 32.585859 | 98 | 0.688159 |
fb12b0c066654119ed31bf9cb65b02a413de106b | 1,650 | py | Python | src/heap.py | regenalgrant/datastructures | e6030a28fb5f6f045dd008fa3c32281737c3aac9 | [
"MIT"
] | null | null | null | src/heap.py | regenalgrant/datastructures | e6030a28fb5f6f045dd008fa3c32281737c3aac9 | [
"MIT"
] | null | null | null | src/heap.py | regenalgrant/datastructures | e6030a28fb5f6f045dd008fa3c32281737c3aac9 | [
"MIT"
] | null | null | null | # _*_coding:utf-8 _*_
"""Create a heap data structure."""
from __future__ import division
import math
class Heap(object):
"""Create class Heap."""
def __init__(self):
"""Initilializating for Heap class."""
self.high_low = []
def get_parent(self, index):
"""Index number of Node's... | 29.464286 | 93 | 0.544242 |
81219fd2c42c1718f62c876d31817f235f63ca0d | 10,174 | py | Python | mainCode/1.old/TL-GPU1.old.py | dreamspy/Endnet | 0370ec4ee075b76db12a7649c568f453bc1c9bc8 | [
"Apache-2.0"
] | null | null | null | mainCode/1.old/TL-GPU1.old.py | dreamspy/Endnet | 0370ec4ee075b76db12a7649c568f453bc1c9bc8 | [
"Apache-2.0"
] | 10 | 2020-03-24T16:48:40.000Z | 2022-03-11T23:42:37.000Z | mainCode/1.old/TL-GPU1.old.py | dreamspy/Endnet | 0370ec4ee075b76db12a7649c568f453bc1c9bc8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Which GPU to use
# In[1]:
multiGPU = False
whichGPU = 0
# whichGPU = 1
# Select which GPU to use
if(multiGPU):
from keras.utils.training_utils import multi_gpu_model
else:
import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
# The GPU id to use, usually ... | 28.418994 | 156 | 0.606644 |
95efcb126f343751f123424387fe639bf49a8e36 | 1,266 | py | Python | index_cli/handlers/default/file.py | lishnih/index_cli | 57f23d5df5168bcc73e23e0eeabbb8317014585b | [
"MIT"
] | null | null | null | index_cli/handlers/default/file.py | lishnih/index_cli | 57f23d5df5168bcc73e23e0eeabbb8317014585b | [
"MIT"
] | null | null | null | index_cli/handlers/default/file.py | lishnih/index_cli | 57f23d5df5168bcc73e23e0eeabbb8317014585b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# Stan 2012-04-08, 2017-04-10
from __future__ import ( division, absolute_import,
print_function, unicode_literals )
import os, time
def preparing_file(filename, options, status, DIR):
filenames_encoding = options.get('filenames_encoding', 'cp1251')
... | 24.823529 | 68 | 0.612954 |
c840158ece6fba0ec3792dcc8494337e841ed514 | 2,927 | py | Python | Utilities/StratoSurfer_to_JSBSim.py | fehrx043/OpenFlightSim | 9638c996fdb78c85d71c0e6faa0e64eb48cc96fa | [
"MIT"
] | 15 | 2019-03-15T17:28:23.000Z | 2022-03-21T23:52:53.000Z | Utilities/StratoSurfer_to_JSBSim.py | fehrx043/OpenFlightSim | 9638c996fdb78c85d71c0e6faa0e64eb48cc96fa | [
"MIT"
] | null | null | null | Utilities/StratoSurfer_to_JSBSim.py | fehrx043/OpenFlightSim | 9638c996fdb78c85d71c0e6faa0e64eb48cc96fa | [
"MIT"
] | 5 | 2019-03-28T17:35:50.000Z | 2022-03-04T19:38:03.000Z | """
University of Minnesota
Aerospace Engineering and Mechanics - UAV Lab
Copyright 2019 Regents of the University of Minnesota
See: LICENSE.md for complete license details
Author: Louis Mueller, Chris Regan
"""
import os.path
import numpy as np
import JSBSimWriteXml as JSBXml
# Constants
ft2m = 0.3048
m2ft = 1.0/f... | 30.810526 | 185 | 0.682952 |
78182a9aefa3c3eb496979ce720d1f16cec79d5e | 13,554 | py | Python | main.py | rdenadai/snakeplissken | 0d966a86512f899c037c8594eefef0d00ead74f3 | [
"MIT"
] | 13 | 2019-08-13T00:04:49.000Z | 2021-05-20T06:24:25.000Z | main.py | rdenadai/snakeplissken | 0d966a86512f899c037c8594eefef0d00ead74f3 | [
"MIT"
] | 3 | 2019-11-29T23:18:44.000Z | 2022-03-14T13:54:11.000Z | main.py | rdenadai/snakeplissken | 0d966a86512f899c037c8594eefef0d00ead74f3 | [
"MIT"
] | 6 | 2019-03-05T11:59:04.000Z | 2020-05-19T05:28:19.000Z | #!/usr/bin/env python
import sys, os
import time
import random
import pygame as pyg
from pygame.locals import *
import torch
from torch.optim import Adam, RMSprop
from torch.optim.lr_scheduler import CyclicLR
import torch.nn.functional as F
from configs import *
from utils.utilities import *
from ai.model import Trans... | 36.831522 | 88 | 0.559909 |
0e7e73202f1c41260f633bd436bf0c99d5ab8099 | 3,039 | py | Python | src/pandas_profiling/report/structure/variables/render_boolean.py | mereldawu/pandas-profiling | 4cc48f14ac85bb0d362044fcf285cefe0b59165b | [
"MIT"
] | 1 | 2017-03-01T07:05:29.000Z | 2017-03-01T07:05:29.000Z | src/pandas_profiling/report/structure/variables/render_boolean.py | sweekarsaxena/pandas-profiling | 4cc48f14ac85bb0d362044fcf285cefe0b59165b | [
"MIT"
] | null | null | null | src/pandas_profiling/report/structure/variables/render_boolean.py | sweekarsaxena/pandas-profiling | 4cc48f14ac85bb0d362044fcf285cefe0b59165b | [
"MIT"
] | null | null | null | from pandas_profiling.config import config
from pandas_profiling.report.presentation.core import (
Container,
FrequencyTable,
FrequencyTableSmall,
Image,
Table,
VariableInfo,
)
from pandas_profiling.report.presentation.frequency_table_utils import freq_table
from pandas_profiling.report.structur... | 29.221154 | 85 | 0.527476 |
ef079ce66aef88dcbf87caf0814778dfcc198805 | 1,965 | py | Python | test/functional/p2p_invalid_locator.py | 34ro/tapyrus-core | 52175cd1994fde3cec1bc506ebacd3fd99523103 | [
"MIT"
] | null | null | null | test/functional/p2p_invalid_locator.py | 34ro/tapyrus-core | 52175cd1994fde3cec1bc506ebacd3fd99523103 | [
"MIT"
] | null | null | null | test/functional/p2p_invalid_locator.py | 34ro/tapyrus-core | 52175cd1994fde3cec1bc506ebacd3fd99523103 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2015-2017 The Bitcoin Core developers
# Copyright (c) 2019 Chaintope Inc.
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test node responses to invalid locators.
"""
from test_framework.m... | 43.666667 | 135 | 0.683461 |
772ced89d4a522d3ce0bb5f5a03768cf161ecc80 | 381 | py | Python | sm/wsgi.py | zarif007/SM-BackEnd-API- | 6e9b96748b7df77d7072cd541779771e67ba744f | [
"MIT"
] | 1 | 2021-11-02T19:05:11.000Z | 2021-11-02T19:05:11.000Z | sm/wsgi.py | zarif007/SM-BackEnd-API- | 6e9b96748b7df77d7072cd541779771e67ba744f | [
"MIT"
] | null | null | null | sm/wsgi.py | zarif007/SM-BackEnd-API- | 6e9b96748b7df77d7072cd541779771e67ba744f | [
"MIT"
] | null | null | null | """
WSGI config for sm project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_M... | 22.411765 | 78 | 0.779528 |
fe81aa5d921428e39f1c91a617b2b2c8ac2bcecb | 11,070 | py | Python | examples/quantized_net/tutorial_dorefanet_cifar10_tfrecord.py | XJTUexperiment/tensorlayer | 7184f728b35106e80f7424e09a2bde1721b82803 | [
"Apache-2.0"
] | 1 | 2018-09-06T03:40:26.000Z | 2018-09-06T03:40:26.000Z | examples/quantized_net/tutorial_dorefanet_cifar10_tfrecord.py | sdd9465/tensorlayer | 690766535a591367ad86907835b39730f4aa1dea | [
"Apache-2.0"
] | null | null | null | examples/quantized_net/tutorial_dorefanet_cifar10_tfrecord.py | sdd9465/tensorlayer | 690766535a591367ad86907835b39730f4aa1dea | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
- 1. This model has 1,068,298 paramters and Dorefa compression strategy(weight:1 bit, active: 3 bits),
after 500 epoches' training with GPU,accurcy of 81.1% was found.
- 2. For simplified CNN layers see "Convolutional layer (Simplified)"
in read the docs website.
- 3. D... | 41.152416 | 117 | 0.633333 |
bfc659afed5e1ca2964e4f5ac68375b9579caf6f | 1,849 | py | Python | var/spack/repos/builtin/packages/remhos/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/remhos/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin/packages/remhos/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-08T20:37:20.000Z | 2019-03-31T15:19:26.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from typing import List
from spack.package import *
class Remhos(MakefilePackage):
"""Remhos (REMap High-Order Solve... | 33.017857 | 93 | 0.672796 |
c0451cf8a685cf6f8204609a6092e304e8377f9b | 11,444 | py | Python | Agents/NegamaxTranspositionTable.py | karlflores/WatchYourBackProject | 00a7c32e46ea0b75580d17ea6a22372e4a005627 | [
"Unlicense"
] | null | null | null | Agents/NegamaxTranspositionTable.py | karlflores/WatchYourBackProject | 00a7c32e46ea0b75580d17ea6a22372e4a005627 | [
"Unlicense"
] | null | null | null | Agents/NegamaxTranspositionTable.py | karlflores/WatchYourBackProject | 00a7c32e46ea0b75580d17ea6a22372e4a005627 | [
"Unlicense"
] | null | null | null | from math import inf
from Constants import constant
from WatchYourBack.Board import Board
from Evaluation.Policies import Evaluation
from DataStructures.Transposition_Table import TranspositionTable
from copy import deepcopy
from time import time
from ErrorHandling.Errors import *
'''
NEGAMAX WITH A PURPOSE BUILT TRAN... | 36.44586 | 120 | 0.618228 |
e6525d7dc07608f3b58e7c31bac7fb02b597cbb6 | 3,705 | py | Python | ietf/meeting/management/commands/meetecho_conferences.py | jimfenton/datatracker | 25c7c4801a0d971f30027d7e1ac21120cefeb242 | [
"BSD-3-Clause"
] | 25 | 2022-03-05T08:26:52.000Z | 2022-03-30T15:45:42.000Z | ietf/meeting/management/commands/meetecho_conferences.py | Evolution-team/datatracker | 902e37d24d45c72ad401e761d4ef44af5cf20d03 | [
"BSD-3-Clause"
] | 219 | 2022-03-04T17:29:12.000Z | 2022-03-31T21:16:14.000Z | ietf/meeting/management/commands/meetecho_conferences.py | Evolution-team/datatracker | 902e37d24d45c72ad401e761d4ef44af5cf20d03 | [
"BSD-3-Clause"
] | 22 | 2022-03-04T15:34:34.000Z | 2022-03-28T13:30:59.000Z | # Copyright The IETF Trust 2022, All Rights Reserved
# -*- coding: utf-8 -*-
import datetime
from textwrap import dedent
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from ietf.meeting.models import Session
from ietf.utils.meetecho import ConferenceManager, Meetec... | 40.271739 | 140 | 0.585425 |
b6671cfdef76507063141074afd9965c8108973c | 7,573 | py | Python | deps/mozjs/js/src/config/expandlibs_exec.py | zpao/spidernode | 843d5b5e9be55ce447fd03127aeeb2c7728ae168 | [
"MIT"
] | 48 | 2015-01-09T20:39:35.000Z | 2021-12-21T21:17:52.000Z | deps/mozjs/js/src/config/expandlibs_exec.py | ninja1002/spidernode | ada8fc559bd2c047a6e52c78af9d27ab273c87d5 | [
"MIT"
] | 2 | 2016-02-05T10:27:37.000Z | 2019-01-22T16:22:51.000Z | deps/mozjs/js/src/config/expandlibs_exec.py | ninja1002/spidernode | ada8fc559bd2c047a6e52c78af9d27ab273c87d5 | [
"MIT"
] | 8 | 2015-01-12T17:14:36.000Z | 2018-09-15T14:10:27.000Z | # ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (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.mozilla.org/MPL/
#
# Softwa... | 41.839779 | 102 | 0.637264 |
ff12281d9267b63c8afc2e9fe8d1273c16025a3f | 4,214 | py | Python | idunn/api/utils.py | Qwant/idunn | 65582dfed732093778bf7c2998db1e2cd78255b8 | [
"Apache-2.0"
] | 3 | 2021-10-07T20:07:57.000Z | 2022-03-04T15:23:26.000Z | idunn/api/utils.py | Qwant/idunn | 65582dfed732093778bf7c2998db1e2cd78255b8 | [
"Apache-2.0"
] | 16 | 2021-02-01T11:02:03.000Z | 2022-03-23T14:44:50.000Z | idunn/api/utils.py | Qwant/idunn | 65582dfed732093778bf7c2998db1e2cd78255b8 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
import os
import logging
from idunn.blocks import (
Weather,
ContactBlock,
DescriptionEvent,
GradesBlock,
ImagesBlock,
InformationBlock,
OpeningDayEvent,
OpeningHourBlock,
Covid19Block,
PhoneBlock,
RecyclingBlock,
WebSiteBlock,
TransactionalBlock... | 24.358382 | 95 | 0.631467 |
ebeaff3059a289b57dd40af4801307783a538c78 | 1,869 | py | Python | sdk/python/tests/compiler/testdata/resourceop_basic.py | shrivs3/kfp-tekton | b7c1d542d43ea24e70f24a874a7c972199e8f976 | [
"Apache-2.0"
] | 102 | 2019-10-23T20:35:41.000Z | 2022-03-27T10:28:56.000Z | sdk/python/tests/compiler/testdata/resourceop_basic.py | shrivs3/kfp-tekton | b7c1d542d43ea24e70f24a874a7c972199e8f976 | [
"Apache-2.0"
] | 891 | 2019-10-24T04:08:17.000Z | 2022-03-31T22:45:40.000Z | sdk/python/tests/compiler/testdata/resourceop_basic.py | shrivs3/kfp-tekton | b7c1d542d43ea24e70f24a874a7c972199e8f976 | [
"Apache-2.0"
] | 85 | 2019-10-24T04:04:36.000Z | 2022-03-01T10:52:57.000Z | # Copyright 2020 kubeflow.org
#
# 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... | 27.086957 | 80 | 0.606207 |
735e12c1174fc33e41527163d001e68c2a21bbc5 | 135 | py | Python | examples/tutorials/django/blog/models.py | psy-repos-rust/vagga | 07d8b32c0656f17427d8b4399f3f36dfbf21ab88 | [
"MIT"
] | 1,974 | 2015-01-05T01:45:10.000Z | 2022-03-28T14:35:52.000Z | examples/tutorials/django/blog/models.py | psy-repos-rust/vagga | 07d8b32c0656f17427d8b4399f3f36dfbf21ab88 | [
"MIT"
] | 536 | 2015-01-06T20:33:40.000Z | 2022-03-03T16:22:21.000Z | examples/tutorials/django/blog/models.py | psy-repos-rust/vagga | 07d8b32c0656f17427d8b4399f3f36dfbf21ab88 | [
"MIT"
] | 132 | 2015-02-10T11:03:30.000Z | 2022-01-28T12:59:44.000Z | from django.db import models
class Article(models.Model):
title = models.CharField(max_length=100)
body = models.TextField()
| 19.285714 | 44 | 0.733333 |
5f5c6bc2273876409c2ed9c296496d11b1e7ba22 | 2,136 | py | Python | core/migrations/0001_initial.py | henrylei80/customers-app-api | d8e889219cd2aa86de57b421c02a1ce34769c022 | [
"MIT"
] | null | null | null | core/migrations/0001_initial.py | henrylei80/customers-app-api | d8e889219cd2aa86de57b421c02a1ce34769c022 | [
"MIT"
] | null | null | null | core/migrations/0001_initial.py | henrylei80/customers-app-api | d8e889219cd2aa86de57b421c02a1ce34769c022 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-08-25 20:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer',
fields=[
... | 36.827586 | 130 | 0.560861 |
526c069f3a8d19742745d2b4e4148d1990525074 | 60,016 | py | Python | SybilRanking/scraper/InstagramScraper.py | mikeitexpert/osn-sybilranking | 4f4fd65808d39f9e6d1a44ed5fe3b95f17e77aa3 | [
"MIT"
] | 3 | 2019-03-11T15:30:08.000Z | 2021-03-04T18:25:26.000Z | SybilRanking/scraper/InstagramScraper.py | mikeitexpert/osn-sybilranking | 4f4fd65808d39f9e6d1a44ed5fe3b95f17e77aa3 | [
"MIT"
] | null | null | null | SybilRanking/scraper/InstagramScraper.py | mikeitexpert/osn-sybilranking | 4f4fd65808d39f9e6d1a44ed5fe3b95f17e77aa3 | [
"MIT"
] | 3 | 2019-10-31T08:52:23.000Z | 2022-03-24T07:32:28.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
import codecs
import configparser
import errno
import glob
from operator import itemgetter
import json
import logging.config
import hashlib
import os
import pickle
import re
import sys
import textwrap
import time
import csv
import inspect
try:
from urllib.... | 46.237288 | 3,655 | 0.557001 |
bca9b415fde2716809938d8ecad1e34de55b983b | 10,726 | py | Python | tests/protocol/mockwiredata.py | utkarsh2102/walinuxagent | c5f2376a4870962838c388924ae530caee6d6db5 | [
"Apache-2.0"
] | null | null | null | tests/protocol/mockwiredata.py | utkarsh2102/walinuxagent | c5f2376a4870962838c388924ae530caee6d6db5 | [
"Apache-2.0"
] | null | null | null | tests/protocol/mockwiredata.py | utkarsh2102/walinuxagent | c5f2376a4870962838c388924ae530caee6d6db5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.563492 | 161 | 0.669215 |
dd45d0238687bec99b95607bc5441c9efe93c7f0 | 3,195 | py | Python | calcium_bflow_analysis/trace_converter.py | HagaiHargil/python-ca-analysis-bloodflow | 87fcca6fd79f65122b4010d2225d10403450da7e | [
"Apache-2.0"
] | null | null | null | calcium_bflow_analysis/trace_converter.py | HagaiHargil/python-ca-analysis-bloodflow | 87fcca6fd79f65122b4010d2225d10403450da7e | [
"Apache-2.0"
] | 2 | 2021-07-19T11:38:59.000Z | 2021-07-19T11:40:03.000Z | calcium_bflow_analysis/trace_converter.py | PBLab/ca-analysis-bloodflow | 87fcca6fd79f65122b4010d2225d10403450da7e | [
"Apache-2.0"
] | null | null | null | import attr
from attr.validators import instance_of
import numpy as np
import enum
from scipy.stats import mode
class ConversionMethod(enum.Enum):
"""
Types of conversion
"""
RAW = 1
DFF = 2
RAW_SUBTRACT = 3
NONE = 4
@attr.s(slots=True)
class RawTraceConverter:
"""
Covnert a raw ... | 31.019417 | 85 | 0.643818 |
3bbc0d07d856b60494b7c1ee20c7f6f1d746166e | 819 | py | Python | utils/load_externals.py | tsm55555/FeatureSqueezing | e353f433540cf2a549b5ce73d1c5ab6e11a6dc66 | [
"MIT"
] | null | null | null | utils/load_externals.py | tsm55555/FeatureSqueezing | e353f433540cf2a549b5ce73d1c5ab6e11a6dc66 | [
"MIT"
] | null | null | null | utils/load_externals.py | tsm55555/FeatureSqueezing | e353f433540cf2a549b5ce73d1c5ab6e11a6dc66 | [
"MIT"
] | null | null | null | import sys, os
external_libs = {'Cleverhans v1.0.0': "externals/cleverhans",
'Tensorflow-Model-Resnet': "externals/tensorflow-models",
}
project_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
for lib_name, lib_path in external_libs.items():
lib_path = os.pat... | 32.76 | 75 | 0.641026 |
fdc3932d49886fd9bf51b8ab6d488020bb65fd84 | 40,210 | py | Python | tensorflow/python/eager/core_test.py | 18jeffreyma/tensorflow | 421453ee0c7471af40bbaf254ecf91d6a3a320cf | [
"Apache-2.0"
] | 27 | 2019-01-02T09:36:57.000Z | 2022-02-21T06:41:51.000Z | tensorflow/python/eager/core_test.py | 18jeffreyma/tensorflow | 421453ee0c7471af40bbaf254ecf91d6a3a320cf | [
"Apache-2.0"
] | 3 | 2019-01-23T11:01:22.000Z | 2022-02-24T02:53:31.000Z | tensorflow/python/eager/core_test.py | 18jeffreyma/tensorflow | 421453ee0c7471af40bbaf254ecf91d6a3a320cf | [
"Apache-2.0"
] | 11 | 2019-03-02T12:42:23.000Z | 2021-02-04T12:20:10.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 34.995648 | 108 | 0.649316 |
3283dce8e35d3dbf6a009f3adf969a1d2c6c39b6 | 2,679 | py | Python | modelci/controller/controller.py | FerdinandZhong/ML-Model-CI | 90fa2de056dca05031f0787b96c520dc57dc664d | [
"Apache-2.0"
] | 170 | 2020-06-08T18:30:52.000Z | 2022-03-28T12:08:11.000Z | modelci/controller/controller.py | FerdinandZhong/ML-Model-CI | 90fa2de056dca05031f0787b96c520dc57dc664d | [
"Apache-2.0"
] | 146 | 2020-06-14T18:56:27.000Z | 2022-02-27T21:15:59.000Z | modelci/controller/controller.py | FerdinandZhong/ML-Model-CI | 90fa2de056dca05031f0787b96c520dc57dc664d | [
"Apache-2.0"
] | 36 | 2020-06-08T18:30:56.000Z | 2022-03-07T18:10:19.000Z | import collections
import time
from threading import Thread
import GPUtil
from modelci.hub import Profiler
from modelci.monitor import GPUNodeExporter
class UtilMonitor(Thread):
"""
Monitor for GPU Utilization
"""
def __init__(self, device, profiler: Profiler, delay, util_level, memory_level):
... | 34.346154 | 119 | 0.680478 |
3a5c0560c45e2fc6e653c889101efff08780e115 | 61,712 | py | Python | test/test_agents.py | hidde-jan/von_agent | e011bf74718616c7ee30c54261d969300fe94f31 | [
"Apache-2.0"
] | null | null | null | test/test_agents.py | hidde-jan/von_agent | e011bf74718616c7ee30c54261d969300fe94f31 | [
"Apache-2.0"
] | null | null | null | test/test_agents.py | hidde-jan/von_agent | e011bf74718616c7ee30c54261d969300fe94f31 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2017-2018 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca
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
... | 40.020752 | 121 | 0.512931 |
a14a0ab9818a1f58585089b02b57135639242f55 | 6,269 | py | Python | loldib/getratings/models/NA/na_ekko/na_ekko_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_ekko/na_ekko_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_ekko/na_ekko_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Ekko_Sup_Aatrox(Ratings):
pass
class NA_Ekko_Sup_Ahri(Ratings):
pass
class NA_Ekko_Sup_Akali(Ratings):
pass
class NA_Ekko_Sup_Alistar(Ratings):
pass
class NA_Ekko_Sup_Amumu(Ratings):
pass
class NA_Ekko_Sup_Anivia(Ratings):
pass
clas... | 15.033573 | 46 | 0.75642 |
78f3244d0e103c22a49cfd4f4edda02c4848f4d9 | 1,255 | py | Python | ubelt/util_func.py | russelldj/ubelt | c82ae8c8ead66f0c406d28d680430f7df00bb32b | [
"Apache-2.0"
] | null | null | null | ubelt/util_func.py | russelldj/ubelt | c82ae8c8ead66f0c406d28d680430f7df00bb32b | [
"Apache-2.0"
] | null | null | null | ubelt/util_func.py | russelldj/ubelt | c82ae8c8ead66f0c406d28d680430f7df00bb32b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Helpers for functional programming
"""
def identity(arg):
"""
The identity function. Simply returns its inputs.
Example:
>>> assert identity(42) == 42
"""
return arg
def inject_method(self, func, name=None):
"""
Injects a function into an object insta... | 27.282609 | 77 | 0.553785 |
26fd690cf91c1d2a5b40382a82e506fe20d3420d | 161 | py | Python | backend/quiz/quizapp/admin.py | Qwizi/Quiz-App | 4eee0320363cd268724826c08bc902dea8cc557a | [
"MIT"
] | 1 | 2019-09-20T17:41:45.000Z | 2019-09-20T17:41:45.000Z | backend/quiz/quizapp/admin.py | Qwizi/Quiz-App | 4eee0320363cd268724826c08bc902dea8cc557a | [
"MIT"
] | null | null | null | backend/quiz/quizapp/admin.py | Qwizi/Quiz-App | 4eee0320363cd268724826c08bc902dea8cc557a | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Quiz, Answer, Question
admin.site.register(Answer)
admin.site.register(Question)
admin.site.register(Quiz)
| 23 | 42 | 0.813665 |
d99dfca7d2c06e2f9f5527b57af58f023586d846 | 2,184 | py | Python | test/unit/reflectivity_ui/interfaces/event_handlers/test_main_handler.py | mdoucet/reflectivity_ui | aa646e6f8ad91eaedf70ec7b9230e79970e3cdf0 | [
"Apache-2.0"
] | 1 | 2017-11-19T22:23:13.000Z | 2017-11-19T22:23:13.000Z | test/unit/reflectivity_ui/interfaces/event_handlers/test_main_handler.py | mdoucet/reflectivity_ui | aa646e6f8ad91eaedf70ec7b9230e79970e3cdf0 | [
"Apache-2.0"
] | null | null | null | test/unit/reflectivity_ui/interfaces/event_handlers/test_main_handler.py | mdoucet/reflectivity_ui | aa646e6f8ad91eaedf70ec7b9230e79970e3cdf0 | [
"Apache-2.0"
] | null | null | null |
# package imports
from reflectivity_ui.interfaces.main_window import MainWindow
from reflectivity_ui.interfaces.event_handlers.main_handler import MainHandler
# 3rd-party imports
from PyQt5.QtWidgets import QApplication
import pytest
# standard imports
import os
import sys
this_module_path = sys.modules[__name__].... | 36.4 | 102 | 0.630952 |
2230a5392223add5d5d7548eda8b1146b046b1bb | 378 | py | Python | week 2/isomorphic.py | Dawit-Getachew/A2SV_Practice | 2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61 | [
"MIT"
] | null | null | null | week 2/isomorphic.py | Dawit-Getachew/A2SV_Practice | 2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61 | [
"MIT"
] | null | null | null | week 2/isomorphic.py | Dawit-Getachew/A2SV_Practice | 2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61 | [
"MIT"
] | null | null | null | class Solution:
def isIsomorphic(self, s: str, t: str) -> bool:
isomorphicS = dict()
isomorphicT= dict()
for a, b in zip(s, t):
if ((a in isomorphicS and isomorphicS[a] != b) or (b in isomorphicT and isomorphicT[b] != a)):
return False
isomorphicS[a] ... | 37.8 | 106 | 0.521164 |
d0b6e57f182873d133b02e6c08ecaaed2b73fb21 | 646 | py | Python | custom_components/auto_backup/const.py | kcleong/homeassistant-config | 15b7bc75f5d1055d8620ced87eed9d563475296d | [
"MIT"
] | 138 | 2019-12-09T09:18:42.000Z | 2022-03-30T20:17:30.000Z | custom_components/auto_backup/const.py | kcleong/homeassistant-config | 15b7bc75f5d1055d8620ced87eed9d563475296d | [
"MIT"
] | 46 | 2019-12-09T09:59:18.000Z | 2022-03-25T22:52:00.000Z | custom_components/auto_backup/const.py | kcleong/homeassistant-config | 15b7bc75f5d1055d8620ced87eed9d563475296d | [
"MIT"
] | 12 | 2020-03-17T18:14:14.000Z | 2022-01-31T21:55:29.000Z | DOMAIN = "auto_backup"
DATA_AUTO_BACKUP = "auto_backup"
UNSUB_LISTENER = "unsub_listener"
CONF_AUTO_PURGE = "auto_purge"
CONF_BACKUP_TIMEOUT = "backup_timeout"
DEFAULT_BACKUP_TIMEOUT_SECONDS = 1200
DEFAULT_BACKUP_TIMEOUT = 20
EVENT_BACKUP_SUCCESSFUL = f"{DOMAIN}.backup_successful"
EVENT_BACKUP_START = f"{DOMAIN}.bac... | 32.3 | 59 | 0.823529 |
5bbe02e83e0265bcc2561ee00f963a77d6f557cd | 25,035 | py | Python | venv/Lib/site-packages/supervisor/tests/test_http.py | hanxt6/BKframeworkObj | 91a4869db3d48fd4bb10507acbddd94c7c921091 | [
"Apache-2.0"
] | 39 | 2016-12-05T14:36:37.000Z | 2021-07-29T18:22:34.000Z | venv/Lib/site-packages/supervisor/tests/test_http.py | hanxt6/BKframeworkObj | 91a4869db3d48fd4bb10507acbddd94c7c921091 | [
"Apache-2.0"
] | 68 | 2016-12-12T20:38:47.000Z | 2020-07-26T18:28:49.000Z | venv/Lib/site-packages/supervisor/tests/test_http.py | wenyueFan/devopsOfBk | ab5f53f2296101ecb40f8f1b3eead7aa736d12fa | [
"Apache-2.0"
] | 120 | 2016-08-18T14:53:03.000Z | 2020-06-16T13:27:20.000Z | import base64
import os
import socket
import stat
import sys
import tempfile
import unittest
try:
from hashlib import sha1
except ImportError:
from sha import new as sha1
from supervisor.tests.base import DummySupervisor
from supervisor.tests.base import PopulatedDummySupervisor
from supervisor.tests.base imp... | 36.388081 | 82 | 0.64258 |
612b42b77321e3f7dde87294b85fa339848bc7b5 | 599 | py | Python | src/modules/time/time_parsing.py | mhaberler/gribmagic | f7a8c3f0653e421ca57f4200ec2e0ba0ce4064e0 | [
"MIT"
] | 1 | 2021-11-14T06:25:44.000Z | 2021-11-14T06:25:44.000Z | src/modules/time/time_parsing.py | mhaberler/gribmagic | f7a8c3f0653e421ca57f4200ec2e0ba0ce4064e0 | [
"MIT"
] | null | null | null | src/modules/time/time_parsing.py | mhaberler/gribmagic | f7a8c3f0653e421ca57f4200ec2e0ba0ce4064e0 | [
"MIT"
] | null | null | null | """ generic time parsing function """
from datetime import datetime
from dateutil.parser import parse
def convert_iso_timestamp_to_date_time(value: str) -> datetime:
"""
Convert string in ISO8601/RFC3339-format to timezone aware datetime object
Args:
value: string of timestamp in ISO8601/RFC3339-... | 29.95 | 78 | 0.707846 |
040f919d4ed1b7f36e21a1566655eef283c7b8d4 | 1,214 | py | Python | dvc/dependency/repo.py | jaipradeesh/dvc | 365f70c00d68d3957a7a81b83782fd9f566bbf62 | [
"Apache-2.0"
] | 2 | 2019-06-23T14:24:48.000Z | 2019-07-08T12:22:53.000Z | dvc/dependency/repo.py | jaipradeesh/dvc | 365f70c00d68d3957a7a81b83782fd9f566bbf62 | [
"Apache-2.0"
] | null | null | null | dvc/dependency/repo.py | jaipradeesh/dvc | 365f70c00d68d3957a7a81b83782fd9f566bbf62 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
import os
import copy
from dvc.utils.compat import urlparse
from dvc.external_repo import ExternalRepo
from .local import DependencyLOCAL
class DependencyREPO(DependencyLOCAL):
PARAM_REPO = "repo"
def __init__(self, erepo, stage, *args, **kwargs):
self.erepo... | 27.590909 | 69 | 0.666392 |
e86571ef1be70336c5dea12ccba6017475b7da91 | 398 | py | Python | fundraising/migrations/0002_djangohero_approved_booleanfield.py | Venus9023/django_for_beginer | c12edb9d347f444f9817d0c6e13716284476820c | [
"BSD-3-Clause"
] | 1,440 | 2015-01-05T13:06:12.000Z | 2022-03-30T23:09:24.000Z | fundraising/migrations/0002_djangohero_approved_booleanfield.py | Venus9023/django_for_beginer | c12edb9d347f444f9817d0c6e13716284476820c | [
"BSD-3-Clause"
] | 711 | 2015-01-01T19:42:33.000Z | 2022-03-29T08:36:29.000Z | fundraising/migrations/0002_djangohero_approved_booleanfield.py | Venus9023/django_for_beginer | c12edb9d347f444f9817d0c6e13716284476820c | [
"BSD-3-Clause"
] | 887 | 2015-01-01T03:17:20.000Z | 2022-03-23T09:15:26.000Z | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fundraising', '0001_squashed_0007_inkinddonor'),
]
operations = [
migrations.AlterField(
model_name='djangohero',
name='approved',
field=models.BooleanFie... | 24.875 | 95 | 0.620603 |
f6f3a5b7e617adc52ca1228ece282130f88861bc | 7,654 | py | Python | metrics/sacrebleu/sacrebleu.py | leondz/datasets | 4110fb6034f79c5fb470cf1043ff52180e9c63b7 | [
"Apache-2.0"
] | 3,395 | 2020-05-13T21:16:50.000Z | 2020-09-10T14:36:50.000Z | metrics/sacrebleu/sacrebleu.py | leondz/datasets | 4110fb6034f79c5fb470cf1043ff52180e9c63b7 | [
"Apache-2.0"
] | 370 | 2020-05-13T21:28:57.000Z | 2020-09-10T11:03:38.000Z | metrics/sacrebleu/sacrebleu.py | leondz/datasets | 4110fb6034f79c5fb470cf1043ff52180e9c63b7 | [
"Apache-2.0"
] | 258 | 2020-05-15T01:17:09.000Z | 2020-09-10T12:41:43.000Z | # Copyright 2020 The HuggingFace Datasets Authors.
#
# 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 ... | 46.108434 | 349 | 0.644108 |
09cb55c64d55729dadc4eff4a652c8655e6cf402 | 585 | py | Python | cart/migrations/0004_cartitem_buyer.py | hpanwar08/greatkart | 834ff9fabdbb9493f54bcfd5d23505831b4a66d2 | [
"MIT"
] | null | null | null | cart/migrations/0004_cartitem_buyer.py | hpanwar08/greatkart | 834ff9fabdbb9493f54bcfd5d23505831b4a66d2 | [
"MIT"
] | null | null | null | cart/migrations/0004_cartitem_buyer.py | hpanwar08/greatkart | 834ff9fabdbb9493f54bcfd5d23505831b4a66d2 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2022-01-27 12:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('cart', '0003_alter_cartite... | 26.590909 | 121 | 0.676923 |
3a3e6dc43a0dd023a4dd101df4d942c6fb41eebe | 1,644 | py | Python | orbit.py | ReedOnly/planetOrbit | a04bb06518e57053a9929eecdbddbd226b04df91 | [
"MIT"
] | null | null | null | orbit.py | ReedOnly/planetOrbit | a04bb06518e57053a9929eecdbddbd226b04df91 | [
"MIT"
] | null | null | null | orbit.py | ReedOnly/planetOrbit | a04bb06518e57053a9929eecdbddbd226b04df91 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import datetime as dt
import time as ti
from astropy import time
from astropy import units as u
from poliastro.neos import neows
from poliastro.examples import molniya
from poliastro.plotting import plot, OrbitPlotter, BODY_COLORS
from poliastro.bodies import Sun, Earth, Mars
from poli... | 29.890909 | 92 | 0.623479 |
961145aae08845d9651a3b8f9341c71874140d7f | 7,924 | py | Python | plugins/simpleweapon/simpleweapon.py | joeyhome/FPS-kit | ff369369059133b937035780214c7dc285806a1b | [
"Apache-2.0"
] | 1 | 2019-01-19T22:19:14.000Z | 2019-01-19T22:19:14.000Z | plugins/simpleweapon/simpleweapon.py | joeyhome/FPS-kit | ff369369059133b937035780214c7dc285806a1b | [
"Apache-2.0"
] | null | null | null | plugins/simpleweapon/simpleweapon.py | joeyhome/FPS-kit | ff369369059133b937035780214c7dc285806a1b | [
"Apache-2.0"
] | 2 | 2018-11-16T23:01:00.000Z | 2021-10-21T21:54:25.000Z | # -*- coding: utf-8 -*-
# Copyright Tom SF Haines
#
# 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 ag... | 31.951613 | 123 | 0.656108 |
924f377099891230b656c5704b89a82ebbcc0b44 | 2,158 | py | Python | bookwyrm/views/list/curate.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 270 | 2020-01-27T06:06:07.000Z | 2020-06-21T00:28:18.000Z | bookwyrm/views/list/curate.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 158 | 2020-02-10T20:36:54.000Z | 2020-06-26T17:12:54.000Z | bookwyrm/views/list/curate.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 15 | 2020-02-13T21:53:33.000Z | 2020-06-17T16:52:46.000Z | """ book list views"""
from django.contrib.auth.decorators import login_required
from django.db.models import Max
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.decorators import method_decorator
from django.views import View
from bookwy... | 38.535714 | 87 | 0.666358 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.