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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83cfac902258a852b3126b17d68f53a3484fe5c0 | 1,757 | py | Python | code_examples/Python/app_debugger/test_client/test_debugger.py | VPoser/docs-and-training | 55d4aa4c5b964f3c810d58008db4c5b75260322b | [
"Zlib"
] | null | null | null | code_examples/Python/app_debugger/test_client/test_debugger.py | VPoser/docs-and-training | 55d4aa4c5b964f3c810d58008db4c5b75260322b | [
"Zlib"
] | 4 | 2019-05-29T06:16:56.000Z | 2021-03-31T19:03:36.000Z | code_examples/Python/app_debugger/test_client/test_debugger.py | VPoser/docs-and-training | 55d4aa4c5b964f3c810d58008db4c5b75260322b | [
"Zlib"
] | 3 | 2019-04-02T08:48:31.000Z | 2020-09-23T08:13:35.000Z | #!/usr/bin/env python
"""Simple test client to call the debugger SOAP service"""
import os
import sys
import base64
import getpass
from suds.client import Client
from suds.cache import NoCache
from suds import WebFault, MethodNotFound
from clfpy import AuthClient
auth_endpoint = 'https://api.hetcomp.org/authManager... | 27.030769 | 135 | 0.682413 |
83cfd9aa79927b2baa0758f343509a236b7d9e4c | 393 | py | Python | bai01/keocatgiay.py | YtalYa/CSx101-A1-2021-02 | 5d95faa483c7a98d8ea75fb3a1720c12e1c1e727 | [
"MIT"
] | null | null | null | bai01/keocatgiay.py | YtalYa/CSx101-A1-2021-02 | 5d95faa483c7a98d8ea75fb3a1720c12e1c1e727 | [
"MIT"
] | null | null | null | bai01/keocatgiay.py | YtalYa/CSx101-A1-2021-02 | 5d95faa483c7a98d8ea75fb3a1720c12e1c1e727 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# from time import time
# from math import sqrt
# with open("inp.txt", "r") as f:
# a, b = list(i for i in f.read().split())
a, b = input().split()
# print(a,b,c, type(a), type(int(a)))
a = int(a)
b = int(b)
# st = time()
# -----
s1 = a * (a - 1) // 2
cuoi = b - 2
dau = b - a
s2 = (dau + cuoi) *... | 17.086957 | 43 | 0.508906 |
83d10767f4acd2d7c3295abb41942f7d2223b741 | 6,295 | py | Python | data_manager/acs/gui_ACS_sched_blocks_script_0.py | IftachSadeh/ctaOperatorGUI | f6365a86440dd2404da0bc139cd9345eb3dcb566 | [
"MIT"
] | 3 | 2018-08-28T22:44:23.000Z | 2018-10-24T09:16:34.000Z | data_manager/acs/gui_ACS_sched_blocks_script_0.py | IftachSadeh/ctaOperatorGUI | f6365a86440dd2404da0bc139cd9345eb3dcb566 | [
"MIT"
] | 28 | 2020-04-02T14:48:29.000Z | 2021-05-27T08:10:36.000Z | data_manager/acs/gui_ACS_sched_blocks_script_0.py | IftachSadeh/ctaOperatorGUI | f6365a86440dd2404da0bc139cd9345eb3dcb566 | [
"MIT"
] | null | null | null | # import tcs
# import daqctrl, inspect
# ------------------------------------------------------------------
# install the script by:
# cd $INTROOT/config/scripts
# ln -s $guiInstalDir/ctaOperatorGUI/ctaGuiBack/ctaGuiBack/acs/guiACS_schedBlocks_script0.py
# ----------------------------------------------------------... | 28.2287 | 94 | 0.550278 |
83d111ca41c3bb0510b5e6661f1236eaf7537220 | 576 | py | Python | msort/check/age.py | leighmacdonald/msort | b9182d7e3f01ffdb85229dd6e74ad270c766a2d8 | [
"MIT"
] | 4 | 2015-02-22T04:27:23.000Z | 2021-11-30T14:39:10.000Z | msort/check/age.py | leighmacdonald/msort | b9182d7e3f01ffdb85229dd6e74ad270c766a2d8 | [
"MIT"
] | null | null | null | msort/check/age.py | leighmacdonald/msort | b9182d7e3f01ffdb85229dd6e74ad270c766a2d8 | [
"MIT"
] | null | null | null | """
Module to scan for empty folders and directories
"""
from time import time
from msort.check import BaseCheck, CheckSkip
| 30.315789 | 96 | 0.642361 |
83d13060a3394fdf762b857adb260865c20a7f38 | 143 | py | Python | AtC_Beg_Con_081-090/ABC089/B.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | AtC_Beg_Con_081-090/ABC089/B.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | AtC_Beg_Con_081-090/ABC089/B.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | n = int(input())
a = input().split()
a = [str(m) for m in a]
for i in a:
if i == "Y":
print("Four")
exit()
print("Three") | 14.3 | 23 | 0.461538 |
83d316b3fd73a29aececfa45fc1d41b8ed48ae12 | 5,141 | py | Python | scripts/component_graph/server/fpm/package_manager.py | winksaville/Fuchsia | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | [
"BSD-3-Clause"
] | 3 | 2020-08-02T04:46:18.000Z | 2020-08-07T10:10:53.000Z | scripts/component_graph/server/fpm/package_manager.py | winksaville/Fuchsia | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | [
"BSD-3-Clause"
] | null | null | null | scripts/component_graph/server/fpm/package_manager.py | winksaville/Fuchsia | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | [
"BSD-3-Clause"
] | 1 | 2020-08-07T10:11:49.000Z | 2020-08-07T10:11:49.000Z | #!/usr/bin/env python3
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""PackageManager provides an interface to the JSON FPM API.
The PackageManager interface provides a simple way to retrieve data from t... | 40.480315 | 96 | 0.614861 |
83d375aa877a85c2432fbed5fdd969dd8542a727 | 977 | py | Python | D01/main.py | itscassie/advent-of-code-2021 | 731f7b8593e827de7d098f311ab19813f3f1a38d | [
"MIT"
] | null | null | null | D01/main.py | itscassie/advent-of-code-2021 | 731f7b8593e827de7d098f311ab19813f3f1a38d | [
"MIT"
] | null | null | null | D01/main.py | itscassie/advent-of-code-2021 | 731f7b8593e827de7d098f311ab19813f3f1a38d | [
"MIT"
] | null | null | null | """ Solve 2021 Day 1: Sonar Sweep Problem """
def solver_problem1(inputs):
""" Count the number of increasement from given list """
num_increased = 0
for i in range(1, len(inputs)):
if inputs[i] > inputs[i - 1]:
num_increased += 1
return num_increased
def solver_problem2(... | 34.892857 | 86 | 0.590583 |
83d3b34c981cd51adb859cdd0943e06deba009df | 928 | py | Python | tests/test_power_converter.py | LauWien/smooth | 3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 5 | 2019-10-15T15:56:35.000Z | 2021-02-04T10:11:31.000Z | tests/test_power_converter.py | LauWien/smooth | 3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 121 | 2020-01-06T14:32:30.000Z | 2021-09-23T11:26:11.000Z | tests/test_power_converter.py | LauWien/smooth | 3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 6 | 2019-10-21T08:36:05.000Z | 2021-03-26T10:37:17.000Z | from smooth.components.component_power_converter import PowerConverter
import oemof.solph as solph
| 33.142857 | 73 | 0.710129 |
83d597052cf5a96babe41243ddbe009226025de6 | 2,094 | py | Python | compecon/demos/demapp06.py | daniel-schaefer/CompEcon-python | d3f66e04a7e02be648fc5a68065806ec7cc6ffd6 | [
"MIT"
] | 23 | 2016-12-14T13:21:27.000Z | 2020-08-23T21:04:34.000Z | compecon/demos/demapp06.py | daniel-schaefer/CompEcon-python | d3f66e04a7e02be648fc5a68065806ec7cc6ffd6 | [
"MIT"
] | 1 | 2017-09-10T04:48:54.000Z | 2018-03-31T01:36:46.000Z | compecon/demos/demapp06.py | daniel-schaefer/CompEcon-python | d3f66e04a7e02be648fc5a68065806ec7cc6ffd6 | [
"MIT"
] | 13 | 2017-02-25T08:10:38.000Z | 2020-05-15T09:49:16.000Z | from demos.setup import np, plt
from compecon import BasisChebyshev, BasisSpline
from compecon.tools import nodeunif
__author__ = 'Randall'
# DEMAPP06 Chebychev and cubic spline derivative approximation errors
# Function to be approximated
# Set degree of approximation and endpoints of approximation interval
a = ... | 26.506329 | 69 | 0.608883 |
83d5ab6a69ea7c486e04c2f09093c01b18d52c8b | 5,411 | py | Python | v3_inc_mem_dropout_dqn_model.py | kucharzyk-sebastian/aigym_dqn | eef88dafce3f2a1e13ab91a92089ea6a6c359cd6 | [
"MIT"
] | 2 | 2021-03-25T17:55:58.000Z | 2021-07-24T14:43:24.000Z | v3_inc_mem_dropout_dqn_model.py | kucharzyk-sebastian/aigym_dqn | eef88dafce3f2a1e13ab91a92089ea6a6c359cd6 | [
"MIT"
] | null | null | null | v3_inc_mem_dropout_dqn_model.py | kucharzyk-sebastian/aigym_dqn | eef88dafce3f2a1e13ab91a92089ea6a6c359cd6 | [
"MIT"
] | null | null | null | import random
import gym
import numpy as np
from collections import deque
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.optimizers import Adam
import tensorflow as tf
import os
import logging
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
logging.getLogger('tensorflow').disabled = Tr... | 40.684211 | 137 | 0.62798 |
83d7033bcfe2791f10a0c9ef5053fa59b2220a75 | 370 | py | Python | phlcensus/acs/percapitaincome.py | PhiladelphiaController/phlcensus | 8e15d7c993e397bec4cb06a2144e134ec96c48a1 | [
"MIT"
] | null | null | null | phlcensus/acs/percapitaincome.py | PhiladelphiaController/phlcensus | 8e15d7c993e397bec4cb06a2144e134ec96c48a1 | [
"MIT"
] | null | null | null | phlcensus/acs/percapitaincome.py | PhiladelphiaController/phlcensus | 8e15d7c993e397bec4cb06a2144e134ec96c48a1 | [
"MIT"
] | null | null | null | from .core import ACSDataset
import collections
__all__ = ["PerCapitaIncome"]
| 23.125 | 81 | 0.705405 |
83d7cca1abc5dcfe213ee77fb80532cd598c02d8 | 1,642 | py | Python | card-games/lists.py | vietanhtran2710/python-exercism | 1f88dfca56928276ab81a274e8259ce465a2d425 | [
"MIT"
] | null | null | null | card-games/lists.py | vietanhtran2710/python-exercism | 1f88dfca56928276ab81a274e8259ce465a2d425 | [
"MIT"
] | null | null | null | card-games/lists.py | vietanhtran2710/python-exercism | 1f88dfca56928276ab81a274e8259ce465a2d425 | [
"MIT"
] | null | null | null | """
Card games exercise
"""
def get_rounds(number):
"""
:param number: int - current round number.
:return: list - current round and the two that follow.
"""
return [i + number for i in range(3)]
def concatenate_rounds(rounds_1, rounds_2):
"""
:param rounds_1: list - first rounds... | 20.78481 | 81 | 0.612667 |
83d86b44c36b2efbdda4224e3eee5b832e8c3e4e | 3,109 | py | Python | stock_quantity_history_location/tests/test_stock_quantity_history_location.py | NextERP-Romania/addons_extern | d08f428aeea4cda1890adfd250bc359bda0c33f3 | [
"Apache-2.0"
] | null | null | null | stock_quantity_history_location/tests/test_stock_quantity_history_location.py | NextERP-Romania/addons_extern | d08f428aeea4cda1890adfd250bc359bda0c33f3 | [
"Apache-2.0"
] | null | null | null | stock_quantity_history_location/tests/test_stock_quantity_history_location.py | NextERP-Romania/addons_extern | d08f428aeea4cda1890adfd250bc359bda0c33f3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import SavepointCase
| 39.35443 | 85 | 0.587327 |
83d8ec7a846eebb200f4cc5baae5280d08288d60 | 1,463 | py | Python | viterbi_tagging.py | cryingmiso/Natural-Language-Processing | 471c3e69c65cab90fb7c432d2b632801c87f7c8e | [
"MIT"
] | null | null | null | viterbi_tagging.py | cryingmiso/Natural-Language-Processing | 471c3e69c65cab90fb7c432d2b632801c87f7c8e | [
"MIT"
] | null | null | null | viterbi_tagging.py | cryingmiso/Natural-Language-Processing | 471c3e69c65cab90fb7c432d2b632801c87f7c8e | [
"MIT"
] | 1 | 2018-04-22T11:41:10.000Z | 2018-04-22T11:41:10.000Z | # -*- coding:utf-8 -*-
states = ("B","M","E","S")
test_input = "BBMESBMEBEBESSMEBBME"
observations = [obs for obs in test_input]
#
start_prob = {"B":0.4,"M":0.2,"E":0.2,"S":0.2}
#
transit_prob = {"B": {"B": 0.1, "M": 0.4, "E": 0.4, "S": 0.1},
"M": {"B": 0.1, "M": 0.4, "E": 0.4, "S": 0.1},
... | 29.857143 | 64 | 0.455913 |
83d96b48773397f017510e5831d9b5aab1d08ad6 | 2,534 | py | Python | src/haddock/core/cns_paths.py | sverhoeven/haddock3 | d863106f21ebc128f18c6d73a0d15b97824d050c | [
"Apache-2.0"
] | null | null | null | src/haddock/core/cns_paths.py | sverhoeven/haddock3 | d863106f21ebc128f18c6d73a0d15b97824d050c | [
"Apache-2.0"
] | null | null | null | src/haddock/core/cns_paths.py | sverhoeven/haddock3 | d863106f21ebc128f18c6d73a0d15b97824d050c | [
"Apache-2.0"
] | null | null | null | """
Path to CNS-related files.
Most paths are defined by dictionaries that gather several related
paths. Here, instead of defining the dictionaries with static paths, we
have functions that create those dict-containing paths dynamically. The
default values are defined by:
- axis
- tensors
- translation_vectors
- wate... | 27.543478 | 72 | 0.696527 |
83d9e4d213f9057ac120341c7210734a02cf3aa5 | 3,185 | py | Python | src/reanalysis_dbns/utils/__init__.py | azedarach/reanalysis-dbns | 160f405762fb33cfde38b1d3d63cc19e0bb3d591 | [
"MIT"
] | null | null | null | src/reanalysis_dbns/utils/__init__.py | azedarach/reanalysis-dbns | 160f405762fb33cfde38b1d3d63cc19e0bb3d591 | [
"MIT"
] | null | null | null | src/reanalysis_dbns/utils/__init__.py | azedarach/reanalysis-dbns | 160f405762fb33cfde38b1d3d63cc19e0bb3d591 | [
"MIT"
] | null | null | null | """
Provides helper routines for reanalysis DBNs study.
"""
# License: MIT
from __future__ import absolute_import
from .computation import (calc_truncated_svd, downsample_data,
meridional_mean,
pattern_correlation, select_lat_band,
select... | 33.526316 | 74 | 0.621978 |
83da20131082094621964e1f90f87f88548deff3 | 121 | py | Python | output/models/ms_data/regex/re_k14_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/re_k14_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/re_k14_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.re_k14_xsd.re_k14 import (
Regex,
Doc,
)
__all__ = [
"Regex",
"Doc",
]
| 12.1 | 59 | 0.603306 |
83db648d31e6571eb460e05dda3b0b88c276583d | 2,364 | py | Python | generator/src/googleapis/codegen/utilities/json_expander.py | romulobusatto/google-api-php-client-services | 7f3d938a1e4b364afa633b5ba13a0d3c9bc156bf | [
"Apache-2.0"
] | 709 | 2018-09-13T01:13:59.000Z | 2022-03-31T10:28:41.000Z | generator/src/googleapis/codegen/utilities/json_expander.py | romulobusatto/google-api-php-client-services | 7f3d938a1e4b364afa633b5ba13a0d3c9bc156bf | [
"Apache-2.0"
] | 1,351 | 2018-10-12T23:07:12.000Z | 2022-03-05T09:25:29.000Z | generator/src/googleapis/codegen/utilities/json_expander.py | romulobusatto/google-api-php-client-services | 7f3d938a1e4b364afa633b5ba13a0d3c9bc156bf | [
"Apache-2.0"
] | 307 | 2018-09-04T20:15:31.000Z | 2022-03-31T09:42:39.000Z | #!/usr/bin/python2.7
# Copyright 2012 Google 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 requi... | 31.52 | 79 | 0.730118 |
83dc4959d0371e253276a653ff679aa4ad785db5 | 10,237 | py | Python | pyeventbus/tests/IO_performance_testing.py | n89nanda/EventBus | d1e35fa1ce9a2cb502404ecc2328c6c59745fce6 | [
"MIT"
] | 24 | 2018-02-02T03:12:05.000Z | 2021-11-11T10:06:22.000Z | pyeventbus/tests/IO_performance_testing.py | n89nanda/EventBus | d1e35fa1ce9a2cb502404ecc2328c6c59745fce6 | [
"MIT"
] | 2 | 2018-08-13T14:08:51.000Z | 2020-02-18T20:11:19.000Z | pyeventbus/tests/IO_performance_testing.py | n89nanda/EventBus | d1e35fa1ce9a2cb502404ecc2328c6c59745fce6 | [
"MIT"
] | 2 | 2020-01-17T12:47:30.000Z | 2020-05-05T14:10:10.000Z | from pyeventbus import *
from timeit import default_timer as timer
import numpy
import sys
from os import getcwd
import json
if __name__ == '__main__':
tester = PerformanceTester()
tester.register(tester)
executer = PerformanceExecuter()
executer.register(executer)
print sys.argv[1:][0]
arg... | 38.197761 | 111 | 0.62069 |
83dcc185970f786453677691d5a450058ad2e7d1 | 511 | py | Python | book/migrations/0006_alter_book_cover_img.py | KhudadadKhawari/the-library | a6acd2e8ce9ca350339d99775f1e7906d343c7d4 | [
"MIT"
] | null | null | null | book/migrations/0006_alter_book_cover_img.py | KhudadadKhawari/the-library | a6acd2e8ce9ca350339d99775f1e7906d343c7d4 | [
"MIT"
] | null | null | null | book/migrations/0006_alter_book_cover_img.py | KhudadadKhawari/the-library | a6acd2e8ce9ca350339d99775f1e7906d343c7d4 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2021-12-15 09:04
from django.db import migrations, models
import django.utils.timezone
| 24.333333 | 109 | 0.639922 |
83dd12a100f10a5e78beecf49e3037dfe7dab6b8 | 79 | py | Python | hrsxrate.py | fabiovitoriano7/pythoncourse | cceb9b727abd15c4a63f08b5678b224011441997 | [
"MIT"
] | null | null | null | hrsxrate.py | fabiovitoriano7/pythoncourse | cceb9b727abd15c4a63f08b5678b224011441997 | [
"MIT"
] | null | null | null | hrsxrate.py | fabiovitoriano7/pythoncourse | cceb9b727abd15c4a63f08b5678b224011441997 | [
"MIT"
] | null | null | null | hrs = input("Enter Hours:")
rate=2.75
print ("Pay: " + str(float(rate) * hrs))
| 19.75 | 40 | 0.607595 |
83dda5970adb161d516652e3bbdec232d2bc568b | 34,005 | py | Python | main5.py | LinXueyuanStdio/MyTransE | 971901757aba6af22fc2791b5bb32028390b9625 | [
"Apache-2.0"
] | null | null | null | main5.py | LinXueyuanStdio/MyTransE | 971901757aba6af22fc2791b5bb32028390b9625 | [
"Apache-2.0"
] | null | null | null | main5.py | LinXueyuanStdio/MyTransE | 971901757aba6af22fc2791b5bb32028390b9625 | [
"Apache-2.0"
] | 1 | 2020-10-11T02:22:33.000Z | 2020-10-11T02:22:33.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import _thread
import sys
import time
from math import exp
from random import random
from typing import List, Tuple, Set
from scipy import spatial
import numpy as np
import torch
from torch import nn
from torc... | 37.327113 | 118 | 0.589002 |
83deb844d22e41b2c14e852a19602c5b2980d2b2 | 25,395 | py | Python | cogs/profiles.py | Greenfoot5/BattleBot | f4318124bb85786c3d0ff562132121c382445c36 | [
"MIT"
] | 2 | 2020-01-13T22:58:22.000Z | 2020-02-19T16:47:17.000Z | cogs/profiles.py | Greenfoot5/BattleBot | f4318124bb85786c3d0ff562132121c382445c36 | [
"MIT"
] | 29 | 2020-01-13T23:30:03.000Z | 2020-06-26T18:08:01.000Z | cogs/profiles.py | Greenfoot5/BattleBot | f4318124bb85786c3d0ff562132121c382445c36 | [
"MIT"
] | 2 | 2020-01-15T00:20:10.000Z | 2020-02-18T00:02:55.000Z | import discord
import time
import random
import datetime
import asyncio
import json
import config
from discord.ext import commands
from data.data_handler import data_handler
from itertools import chain
from collections import OrderedDict
# Function to get a user's rank and remaining rp to next rank.
# Takes current r... | 42.680672 | 233 | 0.549478 |
83df200991f24e112dfb55e0124bf7a8c642cf9c | 7,985 | py | Python | blender/.blender/scripts/uvcalc_follow_active_coords.py | visnz/sketchfab_download | 976f667d5c2c2864b2bad65aceac0dab5ce51b74 | [
"Apache-2.0"
] | 41 | 2021-02-18T05:56:26.000Z | 2021-12-06T07:58:15.000Z | blender/.blender/scripts/uvcalc_follow_active_coords.py | visnz/sketchfab_download | 976f667d5c2c2864b2bad65aceac0dab5ce51b74 | [
"Apache-2.0"
] | 19 | 2021-02-18T05:59:03.000Z | 2022-01-13T01:00:52.000Z | blender/.blender/scripts/uvcalc_follow_active_coords.py | visnz/sketchfab_download | 976f667d5c2c2864b2bad65aceac0dab5ce51b74 | [
"Apache-2.0"
] | 18 | 2021-02-22T13:32:56.000Z | 2022-01-22T12:38:29.000Z | #!BPY
"""
Name: 'Follow Active (quads)'
Blender: 242
Group: 'UVCalculation'
Tooltip: 'Follow from active quads.'
"""
__author__ = "Campbell Barton"
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0 2006/02/07"
__bpydoc__ = """\
This script sets the UV mapping and image of selected faces from adjacent unse... | 31.313725 | 195 | 0.707201 |
83df6ece272b6dd9b07c901d59a3ab3e529c228e | 1,196 | py | Python | bloom/editor/ror_constants.py | thomasrogers03/bloom | 5d49c18a241216aca354aa79971940691e6f33b4 | [
"Apache-2.0"
] | 9 | 2020-11-22T03:04:52.000Z | 2022-01-17T15:36:25.000Z | bloom/editor/ror_constants.py | thomasrogers03/bloom | 5d49c18a241216aca354aa79971940691e6f33b4 | [
"Apache-2.0"
] | null | null | null | bloom/editor/ror_constants.py | thomasrogers03/bloom | 5d49c18a241216aca354aa79971940691e6f33b4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Thomas Rogers
# SPDX-License-Identifier: Apache-2.0
LOWER_LINK_TAG = 6
UPPER_LINK_TAG = 7
UPPER_WATER_TAG = 9
LOWER_WATER_TAG = 10
UPPER_STACK_TAG = 11
LOWER_STACK_TAG = 12
UPPER_GOO_TAG = 13
LOWER_GOO_TAG = 14
LOWER_LINK_TYPES = {LOWER_LINK_TAG, LOWER_WATER_TAG, LOWER_STACK_TAG, LOWER_GOO_TAG}
UP... | 21.357143 | 84 | 0.76505 |
83e3a8eb149951bf1ec4846a449c1ac8b36faf3a | 6,107 | py | Python | tests/validation/tests/v3_api/test_sbx_custom_filter.py | sambabox/rancher | ccb6b40e5c8bb183dbe20f5a099513eb623ed806 | [
"Apache-2.0"
] | null | null | null | tests/validation/tests/v3_api/test_sbx_custom_filter.py | sambabox/rancher | ccb6b40e5c8bb183dbe20f5a099513eb623ed806 | [
"Apache-2.0"
] | null | null | null | tests/validation/tests/v3_api/test_sbx_custom_filter.py | sambabox/rancher | ccb6b40e5c8bb183dbe20f5a099513eb623ed806 | [
"Apache-2.0"
] | null | null | null | from .common import * # NOQA
import requests
AUTH_PROVIDER = os.environ.get('RANCHER_AUTH_PROVIDER', "")
'''
Prerequisite:
Enable SBX without TLS, and using testuser1 as admin user.
Description:
In this test, we are testing the customized user and group search filter
functionalities.
1) For customized user search... | 37.012121 | 77 | 0.667267 |
83e3b262a987de45abbd2e106414db47c397b8e3 | 7,738 | py | Python | CIM14/ENTSOE/Dynamics/IEC61970/Dynamics/DynamicsMetaBlock.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 58 | 2015-04-22T10:41:03.000Z | 2022-03-29T16:04:34.000Z | CIM14/ENTSOE/Dynamics/IEC61970/Dynamics/DynamicsMetaBlock.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 12 | 2015-08-26T03:57:23.000Z | 2020-12-11T20:14:42.000Z | CIM14/ENTSOE/Dynamics/IEC61970/Dynamics/DynamicsMetaBlock.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 35 | 2015-01-10T12:21:03.000Z | 2020-09-09T08:18:16.000Z | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | 33.938596 | 222 | 0.674334 |
83e3deec67e89aa7e42ab0f38a20a3246b563ad9 | 1,551 | py | Python | official/cv/ADNet/export_model.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | official/cv/ADNet/export_model.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | official/cv/ADNet/export_model.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # 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 applicable law or agreed to... | 43.083333 | 111 | 0.728562 |
83e465c1f4e10369e60b79f24679537b6a23af68 | 189 | py | Python | pyradex/tests/setup_package_data.py | SpacialTree/pyradex | 722f9fdc45ff080cdcb151e37aa7075fab548f68 | [
"BSD-3-Clause"
] | 12 | 2016-01-26T13:39:56.000Z | 2021-09-01T07:38:04.000Z | pyradex/tests/setup_package_data.py | SpacialTree/pyradex | 722f9fdc45ff080cdcb151e37aa7075fab548f68 | [
"BSD-3-Clause"
] | 27 | 2015-05-29T16:01:31.000Z | 2022-01-31T23:41:36.000Z | pyradex/tests/setup_package_data.py | SpacialTree/pyradex | 722f9fdc45ff080cdcb151e37aa7075fab548f68 | [
"BSD-3-Clause"
] | 13 | 2015-01-13T10:40:50.000Z | 2022-01-25T22:24:46.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
| 27 | 63 | 0.693122 |
83e5340e1845145c339f0d7b935ed161bcb52088 | 566 | py | Python | ipaqe_provision_hosts/backend/loader.py | apophys/idm-prepare-hosts | 8075600cab44a1b0c4dbe6fe14a8235725eb06d1 | [
"MIT"
] | 1 | 2017-04-04T14:35:57.000Z | 2017-04-04T14:35:57.000Z | ipaqe_provision_hosts/backend/loader.py | apophys/idm-prepare-hosts | 8075600cab44a1b0c4dbe6fe14a8235725eb06d1 | [
"MIT"
] | null | null | null | ipaqe_provision_hosts/backend/loader.py | apophys/idm-prepare-hosts | 8075600cab44a1b0c4dbe6fe14a8235725eb06d1 | [
"MIT"
] | null | null | null | # Author: Milan Kubik, 2017
"""Backend entry point manipulation"""
import logging
from pkg_resources import iter_entry_points
RESOURCE_GROUP = "ipaqe_provision_hosts.backends"
log = logging.getLogger(__name__)
def load_backends(exclude=()):
"""Load all registered modules"""
log.debug("Loading entry points... | 25.727273 | 70 | 0.717314 |
83e5b68657474d465d5e1fcc4797976830c9d62f | 100 | py | Python | cfpland_bot/exceptions/__init__.py | jonatasbaldin/cfpland-telegram-bot | fdd846240705ff6ce7705413336f6d7169a2e7fc | [
"MIT"
] | 3 | 2019-04-23T14:16:11.000Z | 2019-04-24T06:21:10.000Z | cfpland_bot/exceptions/__init__.py | jonatasbaldin/cfpland-telegram-bot | fdd846240705ff6ce7705413336f6d7169a2e7fc | [
"MIT"
] | 2 | 2020-07-17T14:53:16.000Z | 2021-05-09T21:42:43.000Z | cfpland_bot/exceptions/__init__.py | jonatasbaldin/cfpland-telegram-bot | fdd846240705ff6ce7705413336f6d7169a2e7fc | [
"MIT"
] | null | null | null | from .exceptions import ( # noqa: F401
MissingCFPAttributes,
MissingEnvironmentVariable,
)
| 20 | 39 | 0.74 |
83e738fd60db75ae5d34cea420004504804a6032 | 8,309 | py | Python | main_tmp.py | tiffanydho/chip2probe | 2c7e00796e048d39ad4da85b90bf76d021c6be1c | [
"MIT"
] | null | null | null | main_tmp.py | tiffanydho/chip2probe | 2c7e00796e048d39ad4da85b90bf76d021c6be1c | [
"MIT"
] | null | null | null | main_tmp.py | tiffanydho/chip2probe | 2c7e00796e048d39ad4da85b90bf76d021c6be1c | [
"MIT"
] | null | null | null | import urllib.request
import os
import subprocess
import pandas as pd
from tqdm import tqdm
import sys
sys.path.append("probefilter")
sys.path.append("probefilter/libsvm-3.23/python")
from sitesfinder.imads import iMADS
from sitesfinder.imadsmodel import iMADSModel
from sitesfinder.plotcombiner import PlotCombiner
fr... | 46.161111 | 175 | 0.672764 |
83e959ba13c92777006cc78510ef1401b37ed85b | 633 | py | Python | src/dagos/platform/__init__.py | DAG-OS/dagos | ac663ecf1cb9abe12669136e2b2e22b936ec88b5 | [
"MIT"
] | null | null | null | src/dagos/platform/__init__.py | DAG-OS/dagos | ac663ecf1cb9abe12669136e2b2e22b936ec88b5 | [
"MIT"
] | 8 | 2022-02-20T15:43:03.000Z | 2022-03-27T19:04:16.000Z | src/dagos/platform/__init__.py | DAG-OS/dagos | ac663ecf1cb9abe12669136e2b2e22b936ec88b5 | [
"MIT"
] | null | null | null | import dagos.platform.platform_utils as platform_utils
from .command_runner import CommandRunner
from .command_runner import ContainerCommandRunner
from .command_runner import LocalCommandRunner
from .platform_domain import CommandNotAvailableIssue
from .platform_domain import OperatingSystem
from .platform_domain impo... | 48.692308 | 68 | 0.903633 |
83eb304b78bbd24868418bb775b73ade9aefef43 | 1,593 | py | Python | scripts/find_guids_without_referents.py | DanielSBrown/osf.io | 98dda2ac237377197acacce78274bc0a4ce8f303 | [
"Apache-2.0"
] | 1 | 2015-10-02T18:35:53.000Z | 2015-10-02T18:35:53.000Z | scripts/find_guids_without_referents.py | DanielSBrown/osf.io | 98dda2ac237377197acacce78274bc0a4ce8f303 | [
"Apache-2.0"
] | 13 | 2020-03-24T15:29:41.000Z | 2022-03-11T23:15:28.000Z | scripts/find_guids_without_referents.py | DanielSBrown/osf.io | 98dda2ac237377197acacce78274bc0a4ce8f303 | [
"Apache-2.0"
] | null | null | null | """Finds Guids that do not have referents or that point to referents that no longer exist.
E.g. a node was created and given a guid but an error caused the node to
get deleted, leaving behind a guid that points to nothing.
"""
import sys
from modularodm import Q
from framework.guid.model import Guid
from website.app ... | 36.204545 | 90 | 0.702448 |
83eb4550225e76cac1d76f96f09f214fbc122c76 | 13,836 | py | Python | test/test_app.py | IoT-Partners/Platform | ecb17ca5e3e5cf447ecb48c22bfab36b102f01b0 | [
"MIT"
] | null | null | null | test/test_app.py | IoT-Partners/Platform | ecb17ca5e3e5cf447ecb48c22bfab36b102f01b0 | [
"MIT"
] | null | null | null | test/test_app.py | IoT-Partners/Platform | ecb17ca5e3e5cf447ecb48c22bfab36b102f01b0 | [
"MIT"
] | null | null | null | """
This script is for testing/calling in several different ways
functions from QRColorChecker modules.
@author: Eduard Cespedes Borrs
@mail: eduard@iot-partners.com
"""
import unittest
import hashlib
import dateutil
from chalicelib.server import Server
import sys
import json
from datetime import datetime
sys.path... | 37.700272 | 128 | 0.594681 |
83ecbdee9bb1d4607592c7d48726a571593fde4f | 3,497 | py | Python | test/test_config.py | beremaran/spdown | 59e5ea6996be51ad015f9da6758e2ce556b9fb94 | [
"MIT"
] | 2 | 2019-08-13T15:13:58.000Z | 2019-10-04T09:09:24.000Z | test/test_config.py | beremaran/spdown | 59e5ea6996be51ad015f9da6758e2ce556b9fb94 | [
"MIT"
] | 4 | 2021-02-08T20:23:42.000Z | 2022-03-11T23:27:07.000Z | test/test_config.py | beremaran/spdown | 59e5ea6996be51ad015f9da6758e2ce556b9fb94 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import json
import unittest
from collections import OrderedDict
from spdown.config import Config
TEST_CONFIG_PATHS = OrderedDict([
('local', 'config.json'),
('home', os.path.join(
os.path.expanduser('~'), '.config',
'spdown', 'config'
))
])
TEST_CONFIG = {
... | 31.223214 | 83 | 0.659994 |
83ed5076917201fcac6f1e8e51002b51c7395c85 | 2,167 | py | Python | external/emulation/tests/test_config.py | ai2cm/fv3net | e62038aee0a97d6207e66baabd8938467838cf51 | [
"MIT"
] | 1 | 2021-12-14T23:43:35.000Z | 2021-12-14T23:43:35.000Z | external/emulation/tests/test_config.py | ai2cm/fv3net | e62038aee0a97d6207e66baabd8938467838cf51 | [
"MIT"
] | 195 | 2021-09-16T05:47:18.000Z | 2022-03-31T22:03:15.000Z | external/emulation/tests/test_config.py | ai2cm/fv3net | e62038aee0a97d6207e66baabd8938467838cf51 | [
"MIT"
] | null | null | null | from emulation._emulate.microphysics import TimeMask
from emulation.config import (
EmulationConfig,
ModelConfig,
StorageConfig,
_load_nml,
_get_timestep,
_get_storage_hook,
get_hooks,
)
import emulation.zhao_carr
import datetime
| 25.494118 | 85 | 0.684818 |
83ed572ee1b1140fe9364cb212822f09bee7de36 | 323 | py | Python | sorting/insertion_sort.py | src24/algos | b1ac1049be6adaafedaa0572f009668e2c8d3809 | [
"MIT"
] | null | null | null | sorting/insertion_sort.py | src24/algos | b1ac1049be6adaafedaa0572f009668e2c8d3809 | [
"MIT"
] | null | null | null | sorting/insertion_sort.py | src24/algos | b1ac1049be6adaafedaa0572f009668e2c8d3809 | [
"MIT"
] | null | null | null | from typing import List
# O(n^2)
| 23.071429 | 63 | 0.4613 |
83ee40ca37d52089325ca67f4f809d3e842c7b0b | 8,939 | py | Python | tests/test_client.py | ocefpaf/pystac-client | ddf0e0566b2b1783a4d32d3d77f9f51b80270df3 | [
"Apache-2.0"
] | null | null | null | tests/test_client.py | ocefpaf/pystac-client | ddf0e0566b2b1783a4d32d3d77f9f51b80270df3 | [
"Apache-2.0"
] | null | null | null | tests/test_client.py | ocefpaf/pystac-client | ddf0e0566b2b1783a4d32d3d77f9f51b80270df3 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from urllib.parse import urlsplit, parse_qs
from dateutil.tz import tzutc
import pystac
import pytest
from pystac_client import Client
from pystac_client.conformance import ConformanceClasses
from .helpers import STAC_URLS, TEST_DATA, read_data_file
def test_invalid_url(self):
... | 41.193548 | 120 | 0.650632 |
83ee7b4543ab79bc0395dcd6db36fd4ba26a265c | 378 | py | Python | setup.py | mattpatey/text2qrcode | f0cbb006241ba20c76b16d67815836fd44890315 | [
"Xnet",
"X11"
] | 1 | 2020-11-13T20:59:08.000Z | 2020-11-13T20:59:08.000Z | setup.py | mattpatey/text2qrcode | f0cbb006241ba20c76b16d67815836fd44890315 | [
"Xnet",
"X11"
] | null | null | null | setup.py | mattpatey/text2qrcode | f0cbb006241ba20c76b16d67815836fd44890315 | [
"Xnet",
"X11"
] | null | null | null | from setuptools import (
find_packages,
setup,
)
setup(
name="text2qrcode",
version="1.0-a1",
description="Render a QR code image from input text",
author="Matt Patey",
packages=find_packages(),
install_requires=["qrcode", "pillow"],
entry_points={
"console_scripts": [
... | 19.894737 | 57 | 0.595238 |
83ef28442d472afe61e0a90f60e0718bf2a46056 | 363 | py | Python | test/test_image.py | arkagogoldey/cloud_coverage_image_analysis | dde9954a27f70e77f9760455d12eeb6e458f8dba | [
"MIT"
] | 1 | 2021-10-16T09:26:53.000Z | 2021-10-16T09:26:53.000Z | test/test_image.py | arkagogoldey/cloud_coverage_image_analysis | dde9954a27f70e77f9760455d12eeb6e458f8dba | [
"MIT"
] | null | null | null | test/test_image.py | arkagogoldey/cloud_coverage_image_analysis | dde9954a27f70e77f9760455d12eeb6e458f8dba | [
"MIT"
] | null | null | null | import numpy as np
import random
from proyecto2.image import Image
| 24.2 | 49 | 0.584022 |
83effd89a13b4f1b810c9a266a94d6710b5a3afc | 2,236 | py | Python | test_autolens/unit/pipeline/phase/point_source/test_phase_point_source.py | agarwalutkarsh554/PyAutoLens | 72d2f5c39834446e72879fd119b591e52b36cac4 | [
"MIT"
] | null | null | null | test_autolens/unit/pipeline/phase/point_source/test_phase_point_source.py | agarwalutkarsh554/PyAutoLens | 72d2f5c39834446e72879fd119b591e52b36cac4 | [
"MIT"
] | null | null | null | test_autolens/unit/pipeline/phase/point_source/test_phase_point_source.py | agarwalutkarsh554/PyAutoLens | 72d2f5c39834446e72879fd119b591e52b36cac4 | [
"MIT"
] | null | null | null | from os import path
import numpy as np
import pytest
import autofit as af
import autolens as al
from autolens.mock import mock
pytestmark = pytest.mark.filterwarnings(
"ignore:Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of "
"`arr[seq]`. In... | 33.373134 | 119 | 0.654293 |
83f051af9726ef346dde4699fd1ff70473f62a92 | 1,737 | py | Python | convert.py | lfe999/xenforo-scraper | a06dd9412658941b269889932534d071ad30367e | [
"MIT"
] | 2 | 2021-07-30T03:11:06.000Z | 2022-03-07T15:40:30.000Z | convert.py | lfe999/xenforo-scraper | a06dd9412658941b269889932534d071ad30367e | [
"MIT"
] | null | null | null | convert.py | lfe999/xenforo-scraper | a06dd9412658941b269889932534d071ad30367e | [
"MIT"
] | 1 | 2021-07-07T16:05:07.000Z | 2021-07-07T16:05:07.000Z | formats = {"KiB": 1024, "KB": 1000,
"MiB": 1024**2, "MB": 1000**2,
"GiB": 1024**3, "GB": 1000**3,
"TiB": 1024**4, "TB": 1000**4}
# Converts shorthand into number of bytes, ex. 1KiB = 1024
# Converts the number of bytes into shorthand expression, ex. 2500 = 2.5KB
# Run tests only i... | 35.44898 | 91 | 0.614853 |
83f147a88053ee096c8c450bcf0c3e2aae29aca2 | 12,023 | py | Python | old/pro/src/GUI/lofarBFgui.py | peijin94/LOFAR-Sun-tools | 23ace5a5e8c0bdaa0cbb5ab6e37f6527716d16f3 | [
"MIT"
] | null | null | null | old/pro/src/GUI/lofarBFgui.py | peijin94/LOFAR-Sun-tools | 23ace5a5e8c0bdaa0cbb5ab6e37f6527716d16f3 | [
"MIT"
] | null | null | null | old/pro/src/GUI/lofarBFgui.py | peijin94/LOFAR-Sun-tools | 23ace5a5e8c0bdaa0cbb5ab6e37f6527716d16f3 | [
"MIT"
] | null | null | null |
# The UI interface and analysis of the lofar solar beam from
import sys
# insert at 1, 0 is the script path (or '' in REPL)
sys.path.insert(1, '..')
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QIcon
from PyQt5.uic import loadUi
from PyQt5.QtCore import Qt
import matplotlib
from matplotlib.backends.backend_... | 38.909385 | 115 | 0.592198 |
83f17a06a8bc16cfd0111230bb492518bce41c73 | 2,169 | py | Python | otter/api.py | sean-morris/otter-grader | 72135c78a69836dbbc920e25f737d4382bee0ec1 | [
"BSD-3-Clause"
] | null | null | null | otter/api.py | sean-morris/otter-grader | 72135c78a69836dbbc920e25f737d4382bee0ec1 | [
"BSD-3-Clause"
] | null | null | null | otter/api.py | sean-morris/otter-grader | 72135c78a69836dbbc920e25f737d4382bee0ec1 | [
"BSD-3-Clause"
] | null | null | null | """
"""
__all__ = ["export_notebook", "grade_submission"]
import os
import sys
import shutil
import tempfile
from contextlib import redirect_stdout
try:
from contextlib import nullcontext
except ImportError:
from .utils import nullcontext # nullcontext is new in Python 3.7
from .argparser import get_parser... | 27.1125 | 102 | 0.664361 |
83f188e156ec6c7d9f2733735708e0459183598e | 930 | py | Python | taurex/data/profiles/pressure/arraypressure.py | ucl-exoplanets/TauREx3_public | cf8da465448df44c3c4dcc2cd0002ef34edd3920 | [
"BSD-3-Clause"
] | 10 | 2019-12-18T09:19:16.000Z | 2021-06-21T11:02:06.000Z | taurex/data/profiles/pressure/arraypressure.py | ucl-exoplanets/TauREx3_public | cf8da465448df44c3c4dcc2cd0002ef34edd3920 | [
"BSD-3-Clause"
] | 10 | 2020-03-24T18:02:15.000Z | 2021-08-23T20:32:09.000Z | taurex/data/profiles/pressure/arraypressure.py | ucl-exoplanets/TauREx3_public | cf8da465448df44c3c4dcc2cd0002ef34edd3920 | [
"BSD-3-Clause"
] | 8 | 2020-03-26T14:16:42.000Z | 2021-12-18T22:11:25.000Z | from .pressureprofile import PressureProfile
import numpy as np
| 24.473684 | 66 | 0.62043 |
83f1b322463e935e9c59457e936e5b4e88b767fd | 2,857 | py | Python | bin/check_samplesheet.py | ggabernet/vcreport | fe5d315364c19d7286c5f7419cc5ff4599ed373d | [
"MIT"
] | 1 | 2021-08-23T20:15:15.000Z | 2021-08-23T20:15:15.000Z | bin/check_samplesheet.py | ggabernet/vcreport | fe5d315364c19d7286c5f7419cc5ff4599ed373d | [
"MIT"
] | null | null | null | bin/check_samplesheet.py | ggabernet/vcreport | fe5d315364c19d7286c5f7419cc5ff4599ed373d | [
"MIT"
] | 1 | 2021-09-09T09:40:11.000Z | 2021-09-09T09:40:11.000Z | #!/usr/bin/env python
# This script is based on the example at: https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv
import os
import sys
import errno
import argparse
# TODO nf-core: Update the check_samplesheet function
def check_samplesheet(file_... | 31.395604 | 159 | 0.60273 |
83f1ef1dcba662400bb9b8d83a966ab6acf3c9c8 | 2,093 | py | Python | mltraining.py | krumaska/FTIFTC | aff8a00a7a4c720801de9b2ac20ce69e9e2c561a | [
"MIT"
] | null | null | null | mltraining.py | krumaska/FTIFTC | aff8a00a7a4c720801de9b2ac20ce69e9e2c561a | [
"MIT"
] | null | null | null | mltraining.py | krumaska/FTIFTC | aff8a00a7a4c720801de9b2ac20ce69e9e2c561a | [
"MIT"
] | null | null | null | from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import random
lol = pd.read_csv('./data/sample_SilverKDA.csv')
lol.drop(['Unna... | 26.833333 | 102 | 0.698041 |
83f254257c334bebe3b34129f3e77014a18affa5 | 1,300 | py | Python | timeboard.py | jtbarker/hiring-engineers | cd00fff1bb2be6374fc462891c3bf629e3c3ccb1 | [
"Apache-2.0"
] | null | null | null | timeboard.py | jtbarker/hiring-engineers | cd00fff1bb2be6374fc462891c3bf629e3c3ccb1 | [
"Apache-2.0"
] | null | null | null | timeboard.py | jtbarker/hiring-engineers | cd00fff1bb2be6374fc462891c3bf629e3c3ccb1 | [
"Apache-2.0"
] | null | null | null | from datadog import initialize, api
options = {
'api_key': '16ff05c7af6ed4652a20f5a8d0c609ce',
'app_key': 'e6a169b9b337355eef90002878fbf9a565e9ee77'
}
initialize(**options)
title = "Mymetric timeboard"
description = "Mymetric Timeboard"
graphs = [
{
"definition": {
"events": [],
... | 26 | 109 | 0.529231 |
83f2cb0d5c42a6b58a56b8a67b072fa321682a58 | 1,104 | py | Python | tests/python/rlview/test-run.py | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 43 | 2018-07-26T07:20:42.000Z | 2022-03-02T10:23:12.000Z | tests/python/rlview/test-run.py | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | tests/python/rlview/test-run.py | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 16 | 2018-07-25T15:00:36.000Z | 2022-03-22T14:19:46.000Z | #! /usr/bin/env python3
from subprocess import call
r = call(["python3", "-m", "korali.rlview", "--help"])
if r!=0:
exit(r)
r = call(["python3", "-m", "korali.rlview", "--dir", "abf2d_vracer1", "--test"])
if r!=0:
exit(r)
r = call(["python3", "-m", "korali.rlview", "--dir", "abf2d_vracer1", "--maxObservations", ... | 26.926829 | 110 | 0.548913 |
83f2f7aa75a2c9e552bb8125bde1278a1b2c932e | 1,643 | bzl | Python | cmake/build_defs.bzl | benjaminp/upb | 901744a97e5170bfdd5b408a26b6603b1fbab9ad | [
"BSD-3-Clause"
] | null | null | null | cmake/build_defs.bzl | benjaminp/upb | 901744a97e5170bfdd5b408a26b6603b1fbab9ad | [
"BSD-3-Clause"
] | null | null | null | cmake/build_defs.bzl | benjaminp/upb | 901744a97e5170bfdd5b408a26b6603b1fbab9ad | [
"BSD-3-Clause"
] | null | null | null |
def generated_file_staleness_test(name, outs, generated_pattern):
"""Tests that checked-in file(s) match the contents of generated file(s).
The resulting test will verify that all output files exist and have the
correct contents. If the test fails, it can be invoked with --fix to
bring the checked-in... | 36.511111 | 93 | 0.634814 |
83f32ec218d69fd1e8829338d9a53be2a269009b | 4,894 | py | Python | tests/transform_finding_test.py | aws-samples/aws-security-hub-analytic-pipeline | 3e4242c24297725f656ff8a560ff180604443223 | [
"MIT-0"
] | 7 | 2021-06-16T00:55:44.000Z | 2022-02-13T23:00:27.000Z | tests/transform_finding_test.py | QPC-database/aws-security-hub-analytic-pipeline | aff8cd7f5954c285b93fe8f67f8bef2482a1f686 | [
"MIT-0"
] | null | null | null | tests/transform_finding_test.py | QPC-database/aws-security-hub-analytic-pipeline | aff8cd7f5954c285b93fe8f67f8bef2482a1f686 | [
"MIT-0"
] | 2 | 2021-07-11T02:41:38.000Z | 2022-03-29T20:34:23.000Z | from assets.lambdas.transform_findings.index import TransformFindings
import boto3
from moto import mock_s3
| 56.252874 | 238 | 0.647323 |
83f41e9d7d2619c0ed48dbceaafa749c11834cc5 | 1,431 | py | Python | Breeze18/Breeze/migrations/0006_auto_20180110_2205.py | Breeze18/Breeze | 4215776e2f02fab3ce357e67b3b6ca378742049c | [
"Apache-2.0"
] | null | null | null | Breeze18/Breeze/migrations/0006_auto_20180110_2205.py | Breeze18/Breeze | 4215776e2f02fab3ce357e67b3b6ca378742049c | [
"Apache-2.0"
] | 1 | 2017-11-09T13:07:24.000Z | 2018-01-29T04:31:26.000Z | Breeze18/Breeze/migrations/0006_auto_20180110_2205.py | Breeze18/Breeze | 4215776e2f02fab3ce357e67b3b6ca378742049c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-01-10 16:35
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 30.446809 | 110 | 0.600978 |
83f4f90a2f2418b0454a8f8ffca04dc4c58e2aca | 25,414 | py | Python | plugin.video.rebirth/resources/lib/modules/libtools.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:38:10.000Z | 2019-03-05T09:38:10.000Z | plugin.video.rebirth/resources/lib/modules/libtools.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | plugin.video.rebirth/resources/lib/modules/libtools.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T20:48:09.000Z | 2021-11-05T20:48:09.000Z | # -*- coding: utf-8 -*-
################################################################################
# | #
# | ______________________________________________________________ #
# | :~8a.`~888a:::::::::::::::88......88:::::::::... | 43.666667 | 388 | 0.517235 |
83f68d37160408c53d642878608195421084467e | 9,670 | py | Python | frappe/website/page_renderers/template_page.py | sersaber/frappe | e0c25d2b2c19fe79f7c7848e7307d90a5f27c68a | [
"MIT"
] | null | null | null | frappe/website/page_renderers/template_page.py | sersaber/frappe | e0c25d2b2c19fe79f7c7848e7307d90a5f27c68a | [
"MIT"
] | null | null | null | frappe/website/page_renderers/template_page.py | sersaber/frappe | e0c25d2b2c19fe79f7c7848e7307d90a5f27c68a | [
"MIT"
] | null | null | null | import io
import os
import click
import frappe
from frappe.website.page_renderers.base_template_page import BaseTemplatePage
from frappe.website.router import get_base_template, get_page_info
from frappe.website.utils import (
cache_html,
extract_comment_tag,
extract_title,
get_frontmatter,
get_next_link,
get_s... | 31.193548 | 99 | 0.729369 |
83f948132b34592da621aabbd2b53119e725f6d1 | 17,013 | py | Python | mistral/db/v2/sqlalchemy/models.py | mail2nsrajesh/mistral | b19d87141563e00f18cd74c685392d0b9b70e351 | [
"Apache-2.0"
] | null | null | null | mistral/db/v2/sqlalchemy/models.py | mail2nsrajesh/mistral | b19d87141563e00f18cd74c685392d0b9b70e351 | [
"Apache-2.0"
] | null | null | null | mistral/db/v2/sqlalchemy/models.py | mail2nsrajesh/mistral | b19d87141563e00f18cd74c685392d0b9b70e351 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 - Mirantis, Inc.
# Copyright 2015 - StackStorm, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | 31.622677 | 79 | 0.673779 |
83fa1f4c15e8b0c13b7079f93983ba9e472a57f2 | 3,286 | bzl | Python | haskell/private/packages.bzl | andyscott/rules_haskell | 1c7341f885f62cecad705f6a9e8b610b73f11527 | [
"Apache-2.0"
] | null | null | null | haskell/private/packages.bzl | andyscott/rules_haskell | 1c7341f885f62cecad705f6a9e8b610b73f11527 | [
"Apache-2.0"
] | null | null | null | haskell/private/packages.bzl | andyscott/rules_haskell | 1c7341f885f62cecad705f6a9e8b610b73f11527 | [
"Apache-2.0"
] | null | null | null | """Package list handling"""
load(":private/set.bzl", "set")
def pkg_info_to_ghc_args(pkg_info):
"""
Takes the package info collected by `ghc_info()` and returns the actual
list of command line arguments that should be passed to GHC.
"""
args = [
# In compile.bzl, we pass this just before a... | 36.921348 | 121 | 0.680158 |
83fa2b2bb34bdebf6c4cd5300d5d2f1279a8b7ff | 223 | py | Python | get_repo/git.py | florian42/get-repo | 5c1dbf5ecfbdb28f3a628bff57e3a0963ec0fdcc | [
"MIT"
] | null | null | null | get_repo/git.py | florian42/get-repo | 5c1dbf5ecfbdb28f3a628bff57e3a0963ec0fdcc | [
"MIT"
] | null | null | null | get_repo/git.py | florian42/get-repo | 5c1dbf5ecfbdb28f3a628bff57e3a0963ec0fdcc | [
"MIT"
] | null | null | null | import subprocess
| 24.777778 | 68 | 0.659193 |
83fa3e28d2e07cc9a136e3744d2ab599a591cc63 | 2,220 | py | Python | tests/test_models/test_state.py | adrian-blip/AirBnB_clone_v2 | c27a9d923631c78ec437e4608b5c98f3f9fd1cad | [
"MIT"
] | null | null | null | tests/test_models/test_state.py | adrian-blip/AirBnB_clone_v2 | c27a9d923631c78ec437e4608b5c98f3f9fd1cad | [
"MIT"
] | null | null | null | tests/test_models/test_state.py | adrian-blip/AirBnB_clone_v2 | c27a9d923631c78ec437e4608b5c98f3f9fd1cad | [
"MIT"
] | 1 | 2021-07-07T21:37:54.000Z | 2021-07-07T21:37:54.000Z | #!/usr/bin/python3
"""
===============================================================================
===============================================================================
"""
from models.... | 38.275862 | 80 | 0.440991 |
83fa4a8d78bac76a3513caf7e33e512c2461662e | 39,191 | py | Python | src/generatorse/EESG_1.7.x.py | WISDEM/GeneratorSE | ee85646bb82f9d120a3efd39a5530e674062da08 | [
"Apache-2.0"
] | null | null | null | src/generatorse/EESG_1.7.x.py | WISDEM/GeneratorSE | ee85646bb82f9d120a3efd39a5530e674062da08 | [
"Apache-2.0"
] | 2 | 2017-04-19T20:55:22.000Z | 2019-05-06T10:48:39.000Z | src/generatorse/EESG_1.7.x.py | WISDEM/GeneratorSE | ee85646bb82f9d120a3efd39a5530e674062da08 | [
"Apache-2.0"
] | 3 | 2018-10-10T00:07:35.000Z | 2021-04-19T18:41:05.000Z | """EESG.py
Created by Latha Sethuraman, Katherine Dykes.
Copyright (c) NREL. All rights reserved.
Electromagnetic design based on conventional magnetic circuit laws
Structural design based on McDonald's thesis """
from openmdao.api import Group, Problem, Component,ExecComp,IndepVarComp,ScipyOptimizer,pyOptSparse... | 48.264778 | 282 | 0.660177 |
83fc1d70cbfd496107dfaac0a519dc08e54e550f | 2,879 | py | Python | haiku/_src/integration/numpy_inputs_test.py | timwillhack/dm-haikuBah2 | b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5 | [
"Apache-2.0"
] | 1,647 | 2020-02-21T14:24:31.000Z | 2022-03-31T04:31:34.000Z | haiku/_src/integration/numpy_inputs_test.py | timwillhack/dm-haikuBah2 | b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5 | [
"Apache-2.0"
] | 169 | 2020-02-21T14:07:25.000Z | 2022-03-31T13:08:28.000Z | haiku/_src/integration/numpy_inputs_test.py | timwillhack/dm-haikuBah2 | b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5 | [
"Apache-2.0"
] | 159 | 2020-02-21T19:31:02.000Z | 2022-03-29T12:41:35.000Z | # Copyright 2020 DeepMind Technologies Limited. 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 ... | 31.637363 | 95 | 0.685655 |
83fc4f9ad87af1b6d3bc93e82f86f3dfb8315e07 | 519 | py | Python | OldStreamingExperiments/NeighbourReducerCounter.py | AldurD392/SubgraphExplorer | d7c5de234a9ae1a83a017e77074fde5fd1d430b9 | [
"MIT"
] | null | null | null | OldStreamingExperiments/NeighbourReducerCounter.py | AldurD392/SubgraphExplorer | d7c5de234a9ae1a83a017e77074fde5fd1d430b9 | [
"MIT"
] | null | null | null | OldStreamingExperiments/NeighbourReducerCounter.py | AldurD392/SubgraphExplorer | d7c5de234a9ae1a83a017e77074fde5fd1d430b9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""A more advanced Reducer, using Python iterators and generators."""
from itertools import groupby
from operator import itemgetter
import sys
if __name__ == "__main__":
main()
| 24.714286 | 69 | 0.689788 |
83fd35f6f554a1bd8fc3e12924ca6da425b05086 | 486 | py | Python | tests/programs/lists/member_isin.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | 1 | 2018-05-19T18:28:12.000Z | 2018-05-19T18:28:12.000Z | tests/programs/lists/member_isin.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | 12 | 2018-04-26T00:58:11.000Z | 2018-05-13T22:03:39.000Z | tests/programs/lists/member_isin.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | null | null | null | from pylps.core import *
initialise(max_time=5)
create_actions('say(_, _)', 'say_single(_)')
create_events('member(_, _)')
create_facts('inp(_, _)')
create_variables('X', 'Y', 'F', 'Item', 'List', 'Tail')
inp([], [[]])
inp('z', ['a', 'b', 'c', 'd', 'e'])
inp('a', ['b', 'c', 'a'])
inp(['b', 'c'], ['d', ['a', 'c']])
i... | 20.25 | 55 | 0.522634 |
83ff49e0443c8a936583d9a35d43b023aa52642a | 6,663 | py | Python | fastface/dataset/base.py | mdornseif/fastface | 72772db1fae4af17e829cd5479c4848fe5eb8948 | [
"MIT"
] | 72 | 2021-01-03T05:43:56.000Z | 2021-09-17T06:09:35.000Z | fastface/dataset/base.py | mdornseif/fastface | 72772db1fae4af17e829cd5479c4848fe5eb8948 | [
"MIT"
] | 3 | 2021-09-23T22:26:57.000Z | 2021-10-31T10:11:48.000Z | fastface/dataset/base.py | mdornseif/fastface | 72772db1fae4af17e829cd5479c4848fe5eb8948 | [
"MIT"
] | 6 | 2021-02-15T19:58:57.000Z | 2021-08-19T12:46:41.000Z | import copy
import logging
import os
from typing import Dict, List, Tuple
import checksumdir
import imageio
import numpy as np
import torch
from torch.utils.data import DataLoader, Dataset
from tqdm import tqdm
from ..adapter import download_object
logger = logging.getLogger("fastface.dataset")
| 31.880383 | 88 | 0.559508 |
83ff592ddca67877e6b752e54e39cc96af464cdd | 1,565 | py | Python | clevr_video/params.py | jiaqi-xi/slot_attention | 8420414eb261501e5b056e4d409c338d909397ef | [
"Apache-2.0"
] | null | null | null | clevr_video/params.py | jiaqi-xi/slot_attention | 8420414eb261501e5b056e4d409c338d909397ef | [
"Apache-2.0"
] | null | null | null | clevr_video/params.py | jiaqi-xi/slot_attention | 8420414eb261501e5b056e4d409c338d909397ef | [
"Apache-2.0"
] | 1 | 2021-11-11T19:44:14.000Z | 2021-11-11T19:44:14.000Z | from typing import Optional
from typing import Tuple
import attr
| 34.021739 | 77 | 0.686901 |
83fff1491dc4525ae4d3d5754c54e0efcce41659 | 989 | py | Python | sources/car.py | amaurylrd/banlieu_drift | bd9e435bf5ce25e782a59de33472beb932cac9ad | [
"Apache-2.0"
] | 1 | 2021-11-26T16:57:54.000Z | 2021-11-26T16:57:54.000Z | sources/car.py | amaurylrd/banlieu_drift | bd9e435bf5ce25e782a59de33472beb932cac9ad | [
"Apache-2.0"
] | null | null | null | sources/car.py | amaurylrd/banlieu_drift | bd9e435bf5ce25e782a59de33472beb932cac9ad | [
"Apache-2.0"
] | null | null | null | import pygame
import math
coef_turn = 0.3
coef_drift = 0.07 # adhrence au sol
coef_vel = 10 | 29.088235 | 96 | 0.50455 |
8601805a4413deebe6198ae3e881b519806f6bcf | 6,014 | py | Python | test/test_static.py | fjarri/grunnur | 5eea8ec408e431f43a59780cdf8be2f441a9ebb5 | [
"MIT"
] | 1 | 2020-12-04T12:19:18.000Z | 2020-12-04T12:19:18.000Z | test/test_static.py | fjarri/grunnur | 5eea8ec408e431f43a59780cdf8be2f441a9ebb5 | [
"MIT"
] | 11 | 2021-03-11T00:20:23.000Z | 2021-03-11T01:05:54.000Z | test/test_static.py | fjarri/grunnur | 5eea8ec408e431f43a59780cdf8be2f441a9ebb5 | [
"MIT"
] | null | null | null | import pytest
import numpy
from grunnur import (
cuda_api_id, opencl_api_id,
StaticKernel, VirtualSizeError, API, Context, Queue, MultiQueue, Array, MultiArray
)
from grunnur.template import DefTemplate
from .mock_base import MockKernel, MockDefTemplate, MockDefTemplate
from .mock_pycuda import PyCUDADevi... | 34.365714 | 105 | 0.689225 |
86024a0f256f012bd58b4d8e9b5de4b21cc1702d | 1,024 | py | Python | stat_ip_in_hash_woker_table.py | ligang945/pyMisc | 3107c80f7f53ffc797b289ec73d1ef4db80f0b63 | [
"MIT"
] | null | null | null | stat_ip_in_hash_woker_table.py | ligang945/pyMisc | 3107c80f7f53ffc797b289ec73d1ef4db80f0b63 | [
"MIT"
] | null | null | null | stat_ip_in_hash_woker_table.py | ligang945/pyMisc | 3107c80f7f53ffc797b289ec73d1ef4db80f0b63 | [
"MIT"
] | null | null | null |
ipint2str = lambda x: '.'.join([str(x/(256**i)%256) for i in range(3,-1,-1)])
ipstr2int = lambda x:sum([256**j*int(i) for j,i in enumerate(x.split('.')[::-1])])
src_ip = dict()
dst_ip = dict()
i =0
with open('hash_key_value') as f:
for line in f:
i += 1
# if i==8424720:
if i==328:
... | 20.078431 | 82 | 0.512695 |
86028d3af8b32e8fcc5b56f0951579ff48885aaa | 8,212 | py | Python | platform/winrt/detect.py | bdero/godot | e7572c690a3a6792e5aa183e16d902bff77398bc | [
"CC-BY-3.0",
"MIT"
] | 24 | 2016-10-14T16:54:01.000Z | 2022-01-15T06:39:17.000Z | platform/winrt/detect.py | bdero/godot | e7572c690a3a6792e5aa183e16d902bff77398bc | [
"CC-BY-3.0",
"MIT"
] | 2 | 2021-08-17T02:04:05.000Z | 2021-09-18T13:55:13.000Z | platform/winrt/detect.py | bdero/godot | e7572c690a3a6792e5aa183e16d902bff77398bc | [
"CC-BY-3.0",
"MIT"
] | 9 | 2017-08-04T12:00:16.000Z | 2021-12-10T06:48:28.000Z |
import os
import sys
import string
#/c/Program Files (x86)/Windows Phone Kits/8.1/lib/ARM/WindowsPhoneCore.lib
| 52.305732 | 846 | 0.693132 |
8602e07af8df333a6a9bc854df324adb49b003af | 6,934 | py | Python | monasca-log-api-2.9.0/monasca_log_api/tests/test_role_middleware.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | null | null | null | monasca-log-api-2.9.0/monasca_log_api/tests/test_role_middleware.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | monasca-log-api-2.9.0/monasca_log_api/tests/test_role_middleware.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Copyright 2015-2017 FUJITSU 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 law or agreed to in... | 30.546256 | 77 | 0.657629 |
86035a85164418f81cd1bcd44a084b4bd7b49d04 | 328 | py | Python | app/LOGS/logger_.py | innovationb1ue/XMU_HealthReport | 6ee0c7830a0e30fc9730401585a303873f382bac | [
"MIT"
] | 2 | 2021-09-03T18:13:46.000Z | 2022-01-13T08:48:36.000Z | app/LOGS/logger_.py | buuuuuuug/XMU_HealthReport | cb545959eceddf676b34237c38b1ba6f797764f5 | [
"MIT"
] | null | null | null | app/LOGS/logger_.py | buuuuuuug/XMU_HealthReport | cb545959eceddf676b34237c38b1ba6f797764f5 | [
"MIT"
] | 1 | 2021-07-14T09:48:19.000Z | 2021-07-14T09:48:19.000Z | import logging
| 18.222222 | 51 | 0.664634 |
860369b74b7a50328a72400a0fc52d3fc97e9d16 | 80 | py | Python | route/link.py | moluwole/Bast_skeleton | 9e58c1c0da3085b377896aab1e3007689c328c1c | [
"MIT"
] | 3 | 2018-08-04T21:11:35.000Z | 2018-08-24T04:47:16.000Z | route/link.py | moluwole/Bast_skeleton | 9e58c1c0da3085b377896aab1e3007689c328c1c | [
"MIT"
] | 1 | 2018-08-24T20:57:36.000Z | 2018-08-24T20:57:36.000Z | route/link.py | moluwole/Bast_skeleton | 9e58c1c0da3085b377896aab1e3007689c328c1c | [
"MIT"
] | 2 | 2018-08-05T19:14:16.000Z | 2018-08-15T08:13:50.000Z | from bast import Route
route = Route()
route.get('/', 'HelloController.index')
| 16 | 39 | 0.7125 |
86040bdb269e301a7c36430ecb672c9bac61af90 | 1,626 | py | Python | paradrop/daemon/paradrop/core/config/wifi.py | VegetableChook/Paradrop | a38e1773877d5b136c3b626edd8c033a12b43e56 | [
"Apache-2.0"
] | 1 | 2018-03-22T13:04:19.000Z | 2018-03-22T13:04:19.000Z | paradrop/daemon/paradrop/core/config/wifi.py | VegetableChook/Paradrop | a38e1773877d5b136c3b626edd8c033a12b43e56 | [
"Apache-2.0"
] | null | null | null | paradrop/daemon/paradrop/core/config/wifi.py | VegetableChook/Paradrop | a38e1773877d5b136c3b626edd8c033a12b43e56 | [
"Apache-2.0"
] | null | null | null | from paradrop.base.output import out
from paradrop.lib.utils import uci
from . import configservice, uciutils
def getOSWirelessConfig(update):
"""
Read settings from networkInterfaces for wireless interfaces.
Store wireless configuration settings in osWirelessConfig.
"""
# old code under lib.inter... | 29.563636 | 72 | 0.602706 |
86040d6a3dcd14bd0d738d5bbdbdef5ec27bd32e | 44,518 | py | Python | xixi.py | niushuqing123/final-project | 237745dd27a29c9a4b0574003c37fe4c875fde91 | [
"MIT"
] | 9 | 2022-03-10T06:53:38.000Z | 2022-03-19T08:54:51.000Z | xixi.py | niushuqing123/final-project | 237745dd27a29c9a4b0574003c37fe4c875fde91 | [
"MIT"
] | null | null | null | xixi.py | niushuqing123/final-project | 237745dd27a29c9a4b0574003c37fe4c875fde91 | [
"MIT"
] | null | null | null | import taichi as ti
import numpy as np
from functools import reduce
# from sph_base import SPHBase
# ti.init(arch=ti.cpu)
# Use GPU for higher peformance if available
ti.init(arch=ti.gpu, device_memory_GB=4, packed=True)
#
# res = (720,720)
res = (512,512)
dim = 2
assert dim > 1
screen_to_world_rat... | 32.471189 | 207 | 0.536682 |
86048fe3a3ee21e21bf198adc5adb3af9aad7917 | 1,129 | py | Python | pexen/factory/module.py | comps/pexen | 3da6b110cf063646e5d2ae671f4408a14662fcca | [
"MIT"
] | 1 | 2019-09-06T10:41:30.000Z | 2019-09-06T10:41:30.000Z | pexen/factory/module.py | comps/pexen | 3da6b110cf063646e5d2ae671f4408a14662fcca | [
"MIT"
] | null | null | null | pexen/factory/module.py | comps/pexen | 3da6b110cf063646e5d2ae671f4408a14662fcca | [
"MIT"
] | 1 | 2020-06-24T00:31:13.000Z | 2020-06-24T00:31:13.000Z | import inspect
from fnmatch import fnmatchcase
from ..sched import meta
from .base import BaseFactory
| 28.225 | 77 | 0.639504 |
860663bf7fc7f279ff0aaf05a3df989c0b80600b | 2,431 | py | Python | Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex07_water_jugs.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex07_water_jugs.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex07_water_jugs.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | # Beispielprogramm fr das Buch "Python Challenge"
#
# Copyright 2020 by Michael Inden
if __name__ == "__main__":
main()
| 37.4 | 80 | 0.559441 |
8606af2e767f86b97fc991c40020f2652a4de91b | 9,424 | py | Python | cancat/vstruct/defs/elf.py | kimocoder/CanCat | e06f45b22db68b67b6fd93d63d826df9b5d1069c | [
"BSD-2-Clause"
] | 2 | 2020-06-07T04:05:29.000Z | 2022-02-09T00:00:49.000Z | vstruct/defs/elf.py | ConfusedMoonbear/vivisect | 8d6048037f85f745cd11923c6a8d662c150fe330 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | vstruct/defs/elf.py | ConfusedMoonbear/vivisect | 8d6048037f85f745cd11923c6a8d662c150fe330 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import vstruct
from vstruct.primitives import *
EI_NIDENT = 4
EI_PADLEN = 7
| 35.969466 | 54 | 0.612585 |
8606c99e338a87761250aeed31095b32a52bc802 | 10,041 | py | Python | Acquire/Identity/_useraccount.py | openghg/acquire | 8af8701b092f7304c02fea1ee6360e53502dfd64 | [
"Apache-2.0"
] | 1 | 2021-10-18T17:11:47.000Z | 2021-10-18T17:11:47.000Z | Acquire/Identity/_useraccount.py | openghg/acquire | 8af8701b092f7304c02fea1ee6360e53502dfd64 | [
"Apache-2.0"
] | null | null | null | Acquire/Identity/_useraccount.py | openghg/acquire | 8af8701b092f7304c02fea1ee6360e53502dfd64 | [
"Apache-2.0"
] | null | null | null | __all__ = ["UserAccount"]
_user_root = "identity/users"
def _encode_username(username):
"""This function returns an encoded (sanitised) version of
the username. This will ensure that the username
is valid (must be between 3 and 50 characters).
The sanitised username is the encoded version,
meanin... | 37.74812 | 110 | 0.66587 |
86073f9a281f5bb9b144352abdd430f4d907d4bc | 3,337 | py | Python | saharaclient/api/job_binaries.py | openstack/python-saharaclient | 2f01b878a9e07bc712fae9c6c2c5f823bd986dd6 | [
"Apache-2.0"
] | 34 | 2015-01-26T21:39:46.000Z | 2021-01-16T17:30:25.000Z | saharaclient/api/job_binaries.py | openstack/python-saharaclient | 2f01b878a9e07bc712fae9c6c2c5f823bd986dd6 | [
"Apache-2.0"
] | null | null | null | saharaclient/api/job_binaries.py | openstack/python-saharaclient | 2f01b878a9e07bc712fae9c6c2c5f823bd986dd6 | [
"Apache-2.0"
] | 15 | 2015-03-13T23:24:59.000Z | 2017-06-22T12:15:46.000Z | # Copyright (c) 2013 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 32.086538 | 78 | 0.631106 |
860766f5b7e396034ed70275ab698c4665993ebb | 584 | py | Python | tests/test_translator.py | Attsun1031/schematics | 90dee53fd1d5c29f2c947bec6f5ffe5f74305ab1 | [
"BSD-3-Clause"
] | 1,430 | 2015-01-01T19:22:19.000Z | 2022-03-29T11:34:35.000Z | tests/test_translator.py | Attsun1031/schematics | 90dee53fd1d5c29f2c947bec6f5ffe5f74305ab1 | [
"BSD-3-Clause"
] | 360 | 2015-01-02T05:27:34.000Z | 2022-03-18T14:08:27.000Z | tests/test_translator.py | Attsun1031/schematics | 90dee53fd1d5c29f2c947bec6f5ffe5f74305ab1 | [
"BSD-3-Clause"
] | 222 | 2015-01-07T20:07:02.000Z | 2022-03-22T16:12:47.000Z | # -*- coding: utf-8 -*-
import pytest
| 30.736842 | 86 | 0.72089 |
860804e29db65321937c10951cae50769822d370 | 641 | py | Python | 1014 Trie Tree/test.py | SLAPaper/hihoCoder | 3f64d678c5dd46db36345736eb56880fb2d2c5fe | [
"MIT"
] | null | null | null | 1014 Trie Tree/test.py | SLAPaper/hihoCoder | 3f64d678c5dd46db36345736eb56880fb2d2c5fe | [
"MIT"
] | null | null | null | 1014 Trie Tree/test.py | SLAPaper/hihoCoder | 3f64d678c5dd46db36345736eb56880fb2d2c5fe | [
"MIT"
] | null | null | null | # generate 900k word and 900k query to test the runtime
from main import TrieTree
import time
import random
vocal = list(range(26))
trie = TrieTree()
words = [[random.choice(vocal) for _ in range(random.randrange(1, 11))] for _ in range(100000)]
queries = [[random.choice(vocal) for _ in range(random.randrange(1, 11... | 22.103448 | 97 | 0.692668 |
86081d580f0b29a7dc03878e4040b5668fd409d4 | 894 | py | Python | tools/mo/openvino/tools/mo/front/onnx/mean_variance_normalization_ext.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 1 | 2021-10-21T03:04:16.000Z | 2021-10-21T03:04:16.000Z | tools/mo/openvino/tools/mo/front/onnx/mean_variance_normalization_ext.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 58 | 2020-11-06T12:13:45.000Z | 2022-03-28T13:20:11.000Z | tools/mo/openvino/tools/mo/front/onnx/mean_variance_normalization_ext.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 2 | 2019-09-20T01:33:37.000Z | 2019-09-20T08:42:11.000Z | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.mo.ops.mvn import MVNOnnx
from openvino.tools.mo.front.common.partial_infer.utils import int64_array
from openvino.tools.mo.front.extractor import FrontExtractorOp
from openvino.tools.mo.front.onnx.extractors.utils im... | 30.827586 | 74 | 0.647651 |
f7a5670ed8d1bfbab967804b7afd49109f337bfe | 11,661 | py | Python | enemy.py | KasiaWo/Rabbit_Bobble | 89afbaa4f8b46e20ad33e9c410f50c85ddae747b | [
"MIT"
] | null | null | null | enemy.py | KasiaWo/Rabbit_Bobble | 89afbaa4f8b46e20ad33e9c410f50c85ddae747b | [
"MIT"
] | null | null | null | enemy.py | KasiaWo/Rabbit_Bobble | 89afbaa4f8b46e20ad33e9c410f50c85ddae747b | [
"MIT"
] | null | null | null | """
Module for managing enemies.
"""
import random
import constants as const
import pygame
import random
import platforms
from spritesheet_functions import SpriteSheet
| 35.769939 | 116 | 0.54738 |
f7a6e933e409ba532f518e3e1b2e619a58f1715d | 10,715 | py | Python | schicluster/_hicluster_internal.py | zhoujt1994/scHiCluster | 1f7e0cc5a56a357659a6b10b34053e6addbf30a5 | [
"MIT"
] | 27 | 2019-07-10T23:17:33.000Z | 2022-01-14T07:34:42.000Z | schicluster/_hicluster_internal.py | zhoujt1994/scHiCluster | 1f7e0cc5a56a357659a6b10b34053e6addbf30a5 | [
"MIT"
] | 4 | 2019-11-01T01:12:09.000Z | 2022-03-29T11:24:35.000Z | schicluster/_hicluster_internal.py | zhoujt1994/scHiCluster | 1f7e0cc5a56a357659a6b10b34053e6addbf30a5 | [
"MIT"
] | 8 | 2019-12-24T13:54:11.000Z | 2022-01-26T17:21:55.000Z | import argparse
import inspect
import logging
import sys
from .__main__ import setup_logging
log = logging.getLogger()
DESCRIPTION = """
hic-internal is used for automation, not intend to be used by end user.
Use hicluster instead.
"""
EPILOG = ''
| 23.653422 | 105 | 0.583481 |
f7a809bbbe91eb7260be62d0dad3baf769a4cf97 | 5,013 | py | Python | tests/test_host_resolver.py | mssaleh/aioatomapi | 2b9f00fce993153c52595e09ecc80562574af62c | [
"MIT"
] | null | null | null | tests/test_host_resolver.py | mssaleh/aioatomapi | 2b9f00fce993153c52595e09ecc80562574af62c | [
"MIT"
] | 27 | 2021-10-13T17:17:38.000Z | 2022-03-31T17:24:08.000Z | tests/test_host_resolver.py | mssaleh/aioatomapi | 2b9f00fce993153c52595e09ecc80562574af62c | [
"MIT"
] | null | null | null | import asyncio
import socket
import pytest
from mock import AsyncMock, MagicMock, patch
import aioatomapi.host_resolver as hr
from aioatomapi.core import APIConnectionError
| 32.764706 | 85 | 0.710353 |
f7a952870293e9fc90ffc7d9d4a818a5a7c4f56d | 85,241 | py | Python | azure-mgmt-web/azure/mgmt/web/operations/diagnostics_operations.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | azure-mgmt-web/azure/mgmt/web/operations/diagnostics_operations.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | azure-mgmt-web/azure/mgmt/web/operations/diagnostics_operations.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2019-06-17T22:18:23.000Z | 2019-06-17T22:18:23.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 ... | 49.472432 | 239 | 0.66407 |
f7abc4036e6849052f1ad734c829603c8746cd22 | 237 | py | Python | data/ck/check_data.py | jorgimello/meta-learning-fer | 793610ae8471f794a6837930d8bb51866c1f7c02 | [
"MIT"
] | 4 | 2020-10-10T03:33:15.000Z | 2022-01-17T08:00:32.000Z | data/ck/check_data.py | jorgimello/meta-learning-facial-expression-recognition | 793610ae8471f794a6837930d8bb51866c1f7c02 | [
"MIT"
] | null | null | null | data/ck/check_data.py | jorgimello/meta-learning-facial-expression-recognition | 793610ae8471f794a6837930d8bb51866c1f7c02 | [
"MIT"
] | null | null | null | import numpy as np
import os, cv2
imgs = np.load('test_set_ck_extended_no_resize.npy')
lbls = np.load('test_labels_ck_extended_no_resize.npy')
for i in range(imgs.shape[0]):
print (lbls[i])
cv2.imshow('img', imgs[i])
cv2.waitKey(0)
| 21.545455 | 55 | 0.734177 |
f7add4b7f65c543a8a0fd87ede46693f7cb004d9 | 773 | py | Python | app/db/schemas/users.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | app/db/schemas/users.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | app/db/schemas/users.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | from pydantic import BaseModel
import typing as t
### SCHEMAS FOR USERS ###
| 14.865385 | 46 | 0.667529 |
f7af32c0de7c050bf221c8fa53e7b8146120211e | 11,892 | py | Python | custom_components/discord_game/sensor.py | Myztillx/discord_game | d2413a41ca3918bf2836b3b577fccca86b85ff05 | [
"MIT"
] | null | null | null | custom_components/discord_game/sensor.py | Myztillx/discord_game | d2413a41ca3918bf2836b3b577fccca86b85ff05 | [
"MIT"
] | null | null | null | custom_components/discord_game/sensor.py | Myztillx/discord_game | d2413a41ca3918bf2836b3b577fccca86b85ff05 | [
"MIT"
] | null | null | null | import asyncio
import json
import logging
import re
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
from discord import ActivityType, Spotify, Game, Streaming, CustomActivity, Activity, Member, User
from homeassistant.components.notify import PLATFORM_SCHEMA
from homeassistant.const impor... | 38.862745 | 147 | 0.632862 |
f7af40aed66aeeaae2505edaa30898f512812b45 | 329 | py | Python | Mundo 1/ex_014.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | Mundo 1/ex_014.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | Mundo 1/ex_014.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | """
Escreva um programa que converta uma temperatura,
digitando em graus Celsius e converta para graus Fahrenheit.
"""
celsius = int(input('Digite a temperatura: '))
fahrenheit = (celsius / 5) * 9 + 32
Kelvin = celsius + 273
print(f'A temperatura {celsius}C em Fahrenheit {fahrenheit}F')
print(f'E em Kevin fica {Kelvin... | 32.9 | 66 | 0.723404 |
f7af8bb0d4f3220811a9ca15ffd7c866a271a05f | 24 | py | Python | opensecrets/__init__.py | ndanielsen/py-opensecrets | b362d993fdcff6fc6a0d33ec2db75fb1da418a84 | [
"MIT"
] | 1 | 2018-02-15T03:59:13.000Z | 2018-02-15T03:59:13.000Z | opensecrets/__init__.py | ndanielsen/py-opensecrets | b362d993fdcff6fc6a0d33ec2db75fb1da418a84 | [
"MIT"
] | 11 | 2018-02-14T16:23:17.000Z | 2018-04-05T16:14:49.000Z | opensecrets/__init__.py | ndanielsen/py-opensecrets | b362d993fdcff6fc6a0d33ec2db75fb1da418a84 | [
"MIT"
] | null | null | null | from .crpapi import CRP
| 12 | 23 | 0.791667 |
f7afb1df4dc8682c54d3708fff34533b6c3286db | 2,933 | py | Python | fumblr/services/imgur.py | jonoco/fumblr | cfbbea365299b9edba05c04de77cb003d03b6186 | [
"MIT"
] | 2 | 2017-04-13T02:58:24.000Z | 2021-05-04T00:36:57.000Z | fumblr/services/imgur.py | jonoco/fumblr | cfbbea365299b9edba05c04de77cb003d03b6186 | [
"MIT"
] | 2 | 2020-09-09T22:10:40.000Z | 2021-02-08T20:22:28.000Z | fumblr/services/imgur.py | jonoco/fumblr | cfbbea365299b9edba05c04de77cb003d03b6186 | [
"MIT"
] | 4 | 2019-07-30T12:17:55.000Z | 2020-08-28T14:51:22.000Z | from fumblr.keys import IMGUR_SECRET, IMGUR_ID
from imgurpython import ImgurClient, helpers
import os
import base64
API_URL = 'https://api.imgur.com/3/'
def get_client():
"""
Get an API client for Imgur
Returns:
Imgur client if it is available
"""
try:
return ImgurClient(IMGUR_ID... | 20.51049 | 83 | 0.57177 |
f7b31ccb2c831e63f0930af029ae9e690135237c | 3,584 | py | Python | source/src/molecular-unfolding/lambda/AthenaTableLambda/app.py | awslabs/quantum-ready-solution-for-drug-discovery | a015589995dc17a56bcd0da9332f63d966d08ace | [
"Apache-2.0"
] | 10 | 2022-01-26T01:08:50.000Z | 2022-03-31T03:03:44.000Z | source/src/molecular-unfolding/lambda/AthenaTableLambda/app.py | awslabs/quantum-ready-solution-for-drug-discovery | a015589995dc17a56bcd0da9332f63d966d08ace | [
"Apache-2.0"
] | 47 | 2022-01-26T01:27:35.000Z | 2022-03-29T04:34:51.000Z | source/src/molecular-unfolding/lambda/AthenaTableLambda/app.py | awslabs/quantum-ready-solution-for-drug-discovery | a015589995dc17a56bcd0da9332f63d966d08ace | [
"Apache-2.0"
] | 5 | 2022-02-08T02:30:11.000Z | 2022-03-25T01:59:15.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import boto3
import botocore
import os
import logging
import time
import json
import datetime
log = logging.getLogger()
log.setLevel('INFO')
bucket = os.environ['BUCKET']
region = os.environ['AWS_REGION']
solu... | 34.461538 | 265 | 0.677176 |
f7b33150fa99668b4eb5ad17455848d84b07ab75 | 14,664 | py | Python | osf/management/commands/populate_custom_taxonomies.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 628 | 2015-01-15T04:33:22.000Z | 2022-03-30T06:40:10.000Z | osf/management/commands/populate_custom_taxonomies.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 4,712 | 2015-01-02T01:41:53.000Z | 2022-03-30T14:18:40.000Z | osf/management/commands/populate_custom_taxonomies.py | Johnetordoff/osf.io | de10bf249c46cede04c78f7e6f7e352c69e6e6b5 | [
"Apache-2.0"
] | 371 | 2015-01-12T16:14:08.000Z | 2022-03-31T18:58:29.000Z | import json
import logging
from django.core.management.base import BaseCommand
from django.db import transaction
from osf.models import AbstractProvider, PreprintProvider, Preprint, Subject
from osf.models.provider import rules_to_subjects
from scripts import utils as script_utils
from osf.models.validators import va... | 52.185053 | 228 | 0.694558 |
f7b36ab04da3147e45f62315611a09ce95152628 | 2,999 | py | Python | examples/animated_rsh.py | sophiaas/e3nn | 92351b9225df7aeaf70fdc124c7b0e566d4c0eda | [
"MIT"
] | 1 | 2021-01-11T18:34:39.000Z | 2021-01-11T18:34:39.000Z | examples/animated_rsh.py | sophiaas/e3nn | 92351b9225df7aeaf70fdc124c7b0e566d4c0eda | [
"MIT"
] | null | null | null | examples/animated_rsh.py | sophiaas/e3nn | 92351b9225df7aeaf70fdc124c7b0e566d4c0eda | [
"MIT"
] | null | null | null | # pylint: disable=not-callable, no-member, invalid-name, missing-docstring, line-too-long
import math
import os
import subprocess
import argparse
import shutil
import tqdm
import plotly.graph_objs as go
import torch
from e3nn import o3, rsh
if __name__ == '__main__':
parser = argparse.ArgumentParser()
pa... | 26.776786 | 118 | 0.518506 |
f7b44e0603289410fe1b212dcf1e2a0ad54c9500 | 62 | py | Python | errores.py | fbzavaleta/DS_Software_Stack | 37cb42c129a6ff4e04704b90cd5b13db3ad9dfcf | [
"MIT"
] | null | null | null | errores.py | fbzavaleta/DS_Software_Stack | 37cb42c129a6ff4e04704b90cd5b13db3ad9dfcf | [
"MIT"
] | null | null | null | errores.py | fbzavaleta/DS_Software_Stack | 37cb42c129a6ff4e04704b90cd5b13db3ad9dfcf | [
"MIT"
] | null | null | null | #
E_LEN = "No es posible operar vectores de diferente mdulo"
| 20.666667 | 59 | 0.758065 |
f7b491ed05c90e96397d418234149764a3bc7143 | 8,449 | py | Python | dataset.py | gzaraunitn/TA3N | d83ae5d9c8f4452ff69dd9002bb4016a695a4be8 | [
"MIT"
] | null | null | null | dataset.py | gzaraunitn/TA3N | d83ae5d9c8f4452ff69dd9002bb4016a695a4be8 | [
"MIT"
] | null | null | null | dataset.py | gzaraunitn/TA3N | d83ae5d9c8f4452ff69dd9002bb4016a695a4be8 | [
"MIT"
] | null | null | null | import torch.utils.data as data
import os
import os.path
import numpy as np
from numpy.random import randint
import torch
from colorama import init
from colorama import Fore, Back, Style
import random
from os import listdir
from os.path import join, splitext
import numpy as np
import torch
import torch.nn.functiona... | 34.345528 | 142 | 0.610486 |
f7b50b715b179630c9fcdafb1ce4cd54b3be0ee5 | 423 | py | Python | edm_web1/middleware/errors.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | edm_web1/middleware/errors.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | edm_web1/middleware/errors.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.http import HttpResponseForbidden
from django.template import loader
from django.utils.translation import ugettext_lazy as _
#
_msg = _(u'30s(Request too often)')
limitip_requred_forbid = _requred_forbid(_msg)
| 26.4375 | 55 | 0.754137 |
f7b55905ea97e096b70cfda1b4ce991e067b06eb | 151 | py | Python | data/windows/dr16/mask.py | dnidever/apogee | 83ad7496a0b4193df9e2c01b06dc36cb879ea6c1 | [
"BSD-3-Clause"
] | 5 | 2019-04-11T13:35:24.000Z | 2019-11-14T06:12:51.000Z | data/windows/dr16/mask.py | dnidever/apogee | 83ad7496a0b4193df9e2c01b06dc36cb879ea6c1 | [
"BSD-3-Clause"
] | null | null | null | data/windows/dr16/mask.py | dnidever/apogee | 83ad7496a0b4193df9e2c01b06dc36cb879ea6c1 | [
"BSD-3-Clause"
] | 5 | 2018-09-20T22:07:43.000Z | 2021-01-15T07:13:38.000Z | from apogee.aspcap import aspcap
from apogee.aspcap import mask
els=aspcap.elems()
for el in els[0]: mask.mkmask(el,globalmask='mask_v02_aspcap.txt')
| 25.166667 | 66 | 0.788079 |
f7b6cec7ff18c898066933b6660bdaa93907b21d | 7,368 | py | Python | dragonfly/opt/unittest_cp_random_multiobjective_optimiser.py | anonymous-submission000/mobo | 090f774d742c7155c5e5ba01c10e7db7b93b6a0a | [
"MIT"
] | 1 | 2022-02-17T08:50:47.000Z | 2022-02-17T08:50:47.000Z | dragonfly/opt/unittest_cp_random_multiobjective_optimiser.py | anonymous-submission000/mobo | 090f774d742c7155c5e5ba01c10e7db7b93b6a0a | [
"MIT"
] | null | null | null | dragonfly/opt/unittest_cp_random_multiobjective_optimiser.py | anonymous-submission000/mobo | 090f774d742c7155c5e5ba01c10e7db7b93b6a0a | [
"MIT"
] | null | null | null | """
Unit tests for Random CP optimiser on Cartesian product domains.
-- kandasamy@cs.cmu.edu
"""
# pylint: disable=invalid-name
# pylint: disable=abstract-class-little-used
import os
from . import random_multiobjective_optimiser
from ..exd.cp_domain_utils import get_raw_point_from_processed_point, \
load_co... | 48.794702 | 120 | 0.621607 |