hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 248 | max_forks_repo_name stringlengths 5 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83c3ff2e3e7205ac40f986b841cd8fa73336b765 | 1,158 | py | Python | src/mem/ruby/network/garnet/fixed-pipeline/GarnetRouter_PNET_Container_d.py | pnkfb9/gem5_priority | fbf766277df78a470758cf7d798d12fb1e7c51c4 | [
"BSD-3-Clause"
] | null | null | null | src/mem/ruby/network/garnet/fixed-pipeline/GarnetRouter_PNET_Container_d.py | pnkfb9/gem5_priority | fbf766277df78a470758cf7d798d12fb1e7c51c4 | [
"BSD-3-Clause"
] | null | null | null | src/mem/ruby/network/garnet/fixed-pipeline/GarnetRouter_PNET_Container_d.py | pnkfb9/gem5_priority | fbf766277df78a470758cf7d798d12fb1e7c51c4 | [
"BSD-3-Clause"
] | null | null | null | # Authors: Davide Zoni
from m5.params import *
from m5.proxy import *
from BasicRouter import BasicRouter
class GarnetRouter_PNET_Container_d(BasicRouter):
type = 'GarnetRouter_PNET_Container_d'
cxx_class = 'Router_PNET_Container_d'
cxx_header = "mem/ruby/network/garnet/fixed-pipeline/Router_PNET_Containe... | 52.636364 | 120 | 0.740069 | 1,049 | 0.905872 | 0 | 0 | 0 | 0 | 0 | 0 | 489 | 0.42228 |
83c5d489d870a160b110a47da3fc244bdbe0bd80 | 4,699 | py | Python | Wrappers/Python/Testing/MasterTest.py | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | Wrappers/Python/Testing/MasterTest.py | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | Wrappers/Python/Testing/MasterTest.py | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | import os
location = os.path.join(os.path.dirname(__file__), 'Functions\\')
#location = 'Tests\\'
execfile(location + 'getVersion.py')
execfile(location + 'writeSBML.py')
#execfile(location + 'computeSteadyStateValues.py')
execfile(location + 'evalModel.py')
#execfile(location + 'getAvailableSymbols.py')
... | 44.330189 | 72 | 0.770377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,878 | 0.612471 |
83c6045e3e675c58b5fec8fdf9881ebf94e9feda | 334 | py | Python | condition/models.py | SamusChief/myth-caster-api | 76a43f48b70c6a4b509c90757d7906689799cc25 | [
"MIT"
] | null | null | null | condition/models.py | SamusChief/myth-caster-api | 76a43f48b70c6a4b509c90757d7906689799cc25 | [
"MIT"
] | null | null | null | condition/models.py | SamusChief/myth-caster-api | 76a43f48b70c6a4b509c90757d7906689799cc25 | [
"MIT"
] | 1 | 2021-08-14T18:46:52.000Z | 2021-08-14T18:46:52.000Z | """ Models for Conditions app """
from django.db import models
from common.models import OwnedModel
class Condition(OwnedModel):
""" Condition model """
name = models.CharField(unique=True, max_length=255, db_index=True)
description = models.TextField()
def __str__(self):
return f'Condition:... | 23.857143 | 71 | 0.700599 | 230 | 0.688623 | 0 | 0 | 0 | 0 | 0 | 0 | 81 | 0.242515 |
83c68825efc5cb85db8af2cf295d7be0c83834f7 | 11,214 | py | Python | curriculum/experiments/goals/point_nd/goal_point_nd_trpo.py | coco-robotics/rllab-curriculum | f55b50224fcf5a9a5c064542eb0850a966cab223 | [
"MIT"
] | 115 | 2017-12-06T16:31:10.000Z | 2022-03-01T13:13:55.000Z | curriculum/experiments/goals/point_nd/goal_point_nd_trpo.py | coco-robotics/rllab-curriculum | f55b50224fcf5a9a5c064542eb0850a966cab223 | [
"MIT"
] | 21 | 2017-11-15T18:28:16.000Z | 2021-04-22T15:26:45.000Z | curriculum/experiments/goals/point_nd/goal_point_nd_trpo.py | coco-robotics/rllab-curriculum | f55b50224fcf5a9a5c064542eb0850a966cab223 | [
"MIT"
] | 46 | 2017-12-22T22:26:01.000Z | 2022-02-17T06:34:15.000Z | from curriculum.utils import set_env_no_gpu, format_experiment_prefix
set_env_no_gpu()
import argparse
import math
import os
import os.path as osp
import sys
import random
from multiprocessing import cpu_count
import numpy as np
import tensorflow as tf
from rllab.misc.instrument import run_experiment_lite
from rllab... | 40.05 | 124 | 0.626895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,253 | 0.290084 |
83c70c28fab499273c642ae79b683ba8ed829bd8 | 307 | py | Python | pyNastran/bdf/bdf_interface/encoding.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 293 | 2015-03-22T20:22:01.000Z | 2022-03-14T20:28:24.000Z | pyNastran/bdf/bdf_interface/encoding.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 512 | 2015-03-14T18:39:27.000Z | 2022-03-31T16:15:43.000Z | pyNastran/bdf/bdf_interface/encoding.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 136 | 2015-03-19T03:26:06.000Z | 2022-03-25T22:14:54.000Z | def decode_lines(lines_bytes, encoding: str):
if isinstance(lines_bytes[0], bytes):
lines_str = [line.decode(encoding) for line in lines_bytes]
elif isinstance(lines_bytes[0], str):
lines_str = lines_bytes
else:
raise TypeError(type(lines_bytes[0]))
return lines_str
| 34.111111 | 67 | 0.687296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
83c83c646b4979fd4f5db5513084e63e8c7ce3e0 | 2,176 | py | Python | health_reminder.py | carlkho-cvk/tbe_discord | f1dc05d0cd288b1be4e8d164f58056422627fcc1 | [
"MIT"
] | null | null | null | health_reminder.py | carlkho-cvk/tbe_discord | f1dc05d0cd288b1be4e8d164f58056422627fcc1 | [
"MIT"
] | null | null | null | health_reminder.py | carlkho-cvk/tbe_discord | f1dc05d0cd288b1be4e8d164f58056422627fcc1 | [
"MIT"
] | null | null | null | # Fitness monday variables
morning_1 = "10:00"
morning_2 = "8:00"
afternoon_1 = "13:00"
afternoon_2 = "14:30"
afternoon_3 = "15:30"
afternoon_4 = "17:55"
evening_1 = "20:30"
evening_2 = "21:10"
date_announce = [1, 2, 3, 4, 5]
image_file_list = [
'Exercise_Three.png',
'Exercise_Two_2.png'
]
... | 31.085714 | 94 | 0.664522 | 0 | 0 | 0 | 0 | 0 | 0 | 1,239 | 0.569393 | 952 | 0.4375 |
83ca8eae1114abccb3186c9a6251ba6c788bcf35 | 6,559 | py | Python | Image_Content_Analysis/deeplab-pytorch-master/labelImsTest.py | PonceLab/as-simple-as-possible | a4093651f226d749b204c48b623acb28221c3bc2 | [
"MIT"
] | 1 | 2021-04-16T02:08:39.000Z | 2021-04-16T02:08:39.000Z | Image_Content_Analysis/deeplab-pytorch-master/labelImsTest.py | PonceLab/as-simple-as-possible | a4093651f226d749b204c48b623acb28221c3bc2 | [
"MIT"
] | 1 | 2021-07-27T16:17:41.000Z | 2021-07-27T16:17:41.000Z | Image_Content_Analysis/deeplab-pytorch-master/labelImsTest.py | PonceLab/as-simple-as-possible | a4093651f226d749b204c48b623acb28221c3bc2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
#
# Author: Kazuto Nakashima
# URL: https://kazuto1011.github.io
# Date: 07 January 2019
from __future__ import absolute_import, division, print_function
import click
import cv2
import matplotlib
import matplotlib.cm as cm
import matplotlib.pyplot as plt
import... | 34.161458 | 309 | 0.639579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,481 | 0.225797 |
83cb1b811a0c4db430f4a4ca89a5f71fcbd3b310 | 1,131 | py | Python | setup.py | kvietcong/md-tangle | 4170c72f7119adc62eeb75822081a6858ed3c9dc | [
"MIT"
] | 14 | 2019-04-15T08:51:10.000Z | 2022-03-25T20:37:28.000Z | setup.py | kvietcong/md-tangle | 4170c72f7119adc62eeb75822081a6858ed3c9dc | [
"MIT"
] | 4 | 2019-03-09T22:02:50.000Z | 2021-08-24T21:03:48.000Z | setup.py | kvietcong/md-tangle | 4170c72f7119adc62eeb75822081a6858ed3c9dc | [
"MIT"
] | 3 | 2020-12-24T05:23:53.000Z | 2022-03-23T14:00:44.000Z | import setuptools
import md_tangle
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name=md_tangle.__title__,
version=md_tangle.__version__,
license=md_tangle.__license__,
author=md_tangle.__author__,
author_email=md_tangle.__author_email__,
description="Ge... | 31.416667 | 76 | 0.650752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 493 | 0.435897 |
83cb7ebba4b89b28bb78615faadb44744d2cc3e7 | 3,658 | py | Python | src/dvi/bayes_models.py | luoyan407/predict_trustworthiness | 8f394fc511b9aa31a766a30f0e1b059481aa5f76 | [
"MIT"
] | 5 | 2021-10-04T06:11:21.000Z | 2022-02-22T17:57:43.000Z | src/dvi/bayes_models.py | luoyan407/predict_trustworthiness | 8f394fc511b9aa31a766a30f0e1b059481aa5f76 | [
"MIT"
] | null | null | null | src/dvi/bayes_models.py | luoyan407/predict_trustworthiness | 8f394fc511b9aa31a766a30f0e1b059481aa5f76 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from .bayes_layers import VariationalLinearCertainActivations, VariationalLinearReLU
from .variables import GaussianVar
class MLP(nn.Module):
def __init__(self, x_dim, y_dim, hidden_size=None):
super(MLP, self).__init__()
self.siz... | 37.71134 | 124 | 0.61099 | 3,452 | 0.943685 | 0 | 0 | 0 | 0 | 0 | 0 | 1,007 | 0.275287 |
83cdd7dc6122382de1e26b815171dea31d9c7f62 | 917 | py | Python | rondgang/models.py | eternallyBaffled/rondgang | 6d0442279b60a75518579df88bfc53a57d98c2b3 | [
"MIT"
] | null | null | null | rondgang/models.py | eternallyBaffled/rondgang | 6d0442279b60a75518579df88bfc53a57d98c2b3 | [
"MIT"
] | null | null | null | rondgang/models.py | eternallyBaffled/rondgang | 6d0442279b60a75518579df88bfc53a57d98c2b3 | [
"MIT"
] | null | null | null | from datetime import date
from django.db import models
# Create your models here.
class Gemeente(models.Model):
naam_text = models.CharField(max_length=50)
deelgemeente_text = models.CharField(max_length=50)
class Segment(models.Model):
gemeente = models.CharField(max_length=55)
straat = models.CharF... | 28.65625 | 66 | 0.715376 | 827 | 0.901854 | 0 | 0 | 0 | 0 | 0 | 0 | 106 | 0.115594 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 569 | 0.323847 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 224 | 0.569975 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,796 | 0.603018 |
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
class AgeCheck(BaseCheck):
"""
A simple checker which will validate a file or folders age.
"""
def __call__(self, section, path):
if self.conf.getboolean('minimum_age', '... | 30.315789 | 96 | 0.642361 | 448 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 222 | 0.385417 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 0.111888 |
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 | 3,720 | 0.723595 | 0 | 0 | 0 | 0 | 0 | 0 | 1,752 | 0.34079 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 370 | 0.37871 |
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
def test_init():
power_converter = PowerConverter({})
params = {"efficiency": 0, "output_power_max": 100}
power_converter = PowerConverter(params)
assert power_converter.efficiency == params["efficiency"... | 33.142857 | 73 | 0.710129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 152 | 0.163793 |
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
def f(x):
g = np.zeros((3, x.size))
g[0], g[1], g[2] = np.exp(-x),... | 26.506329 | 69 | 0.608883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 883 | 0.421681 |
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 | 3,048 | 0.560397 | 0 | 0 | 0 | 0 | 0 | 0 | 1,011 | 0.18588 |
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"]
class PerCapitaIncome(ACSDataset):
"""
PER CAPITA INCOME IN THE PAST 12 MONTHS (IN 2018 INFLATION-ADJUSTED DOLLARS)
"""
AGGREGATION = None
UNIVERSE = "total population"
TABLE_NAME = "B19301"
RAW_FIELDS = coll... | 23.125 | 81 | 0.705405 | 288 | 0.778378 | 0 | 0 | 0 | 0 | 0 | 0 | 161 | 0.435135 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 899 | 0.547503 |
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
class TestStockQuantityHistoryLocation(SavepointCase):
@classmethod
def setUpClass(cls):
super(TestStockQuantityHistoryLocation, cls).setUpClass()
cls.su... | 39.35443 | 85 | 0.587327 | 2,965 | 0.953683 | 0 | 0 | 1,466 | 0.471534 | 0 | 0 | 815 | 0.262142 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 264 | 0.177539 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,338 | 0.528019 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,068 | 0.335322 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 0.099174 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,498 | 0.633672 |
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
class Events:
class IOHeavyTestEvent:
start = 0
finish = 0
duration = 0
def __init__(self):
pass
def setStart(self, time):
sel... | 38.197761 | 111 | 0.62069 | 9,287 | 0.907199 | 0 | 0 | 5,662 | 0.553092 | 0 | 0 | 1,838 | 0.179545 |
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
class Migration(migrations.Migration):
dependencies = [
('book', '0005_alter_book_rented_count'),
]
operations = [
migrations.AlterField(
model_name='book',
... | 24.333333 | 109 | 0.639922 | 391 | 0.765166 | 0 | 0 | 0 | 0 | 0 | 0 | 124 | 0.242661 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 21 | 0.265823 |
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 | 28,756 | 0.813811 | 0 | 0 | 1,554 | 0.043979 | 0 | 0 | 6,393 | 0.180925 |
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
def gainedRP(player, gained_rp):
if player['Level']['timeOfNextEarn'] > time... | 42.680672 | 233 | 0.549478 | 19,490 | 0.766387 | 0 | 0 | 19,126 | 0.752074 | 22,843 | 0.898234 | 8,468 | 0.332979 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,750 | 0.344396 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 92 | 0.076923 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,604 | 0.426396 |
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 | 6,545 | 0.845826 | 0 | 0 | 0 | 0 | 0 | 0 | 1,861 | 0.240501 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 814 | 0.524823 |
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
def get_package_data():
paths_test = [os.path.join('data', '*.out')]
return {'pyradex.tests': paths_test}
| 27 | 63 | 0.693122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 91 | 0.481481 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 186 | 0.328622 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 0.12 |
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 | 184 | 0.022145 | 0 | 0 | 0 | 0 | 0 | 0 | 3,136 | 0.377422 |
83e8b5d26b60139b83dc6ffd9717b442165e6180 | 145 | py | Python | 7 kyu/Complete The Pattern 2.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 7 kyu/Complete The Pattern 2.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 7 kyu/Complete The Pattern 2.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def pattern(n):
res=""
for i in range(n,0,-1):
for j in range(i):
res+=str(n-j)
res+="\n"
return res[:-1] | 20.714286 | 27 | 0.427586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0.041379 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 932 | 0.58506 |
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 Borràs
@mail: [email protected]
"""
import unittest
import hashlib
import dateutil
from chalicelib.server import Server
import sys
import json
from datetime import datetime
sys.pat... | 37.700272 | 128 | 0.594681 | 13,478 | 0.974055 | 0 | 0 | 482 | 0.034834 | 0 | 0 | 3,668 | 0.265086 |
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 | 3,083 | 0.881613 | 0 | 0 | 955 | 0.273091 | 0 | 0 | 280 | 0.080069 |
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
def test_EmulationConfig_from_dict():
seconds = 60
m... | 25.494118 | 85 | 0.684818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 91 | 0.041994 |
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)
def insertion_sort(arr: List[int], desc: bool = False) -> None:
for i, item in enumerate(arr):
if i == 0:
continue
j: int = i - 1
while j >= 0 and (arr[j] > item) ^ desc:
arr[j + 1] = arr[j]
j -= 1
arr[j + 1] = it... | 23.071429 | 63 | 0.4613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0.024768 |
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
class TestAPI:
@pytest.mark.vcr... | 41.193548 | 120 | 0.650632 | 8,650 | 0.96767 | 0 | 0 | 2,280 | 0.255062 | 0 | 0 | 2,507 | 0.280456 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 134 | 0.354497 |
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
class TestImage:
def test_pixels(self):
for _ in range(5):
x = random.randrange(1920, 4368, 1)
y = random.randrange(1080, 2912, 1)
matrix = np.random.rand(y, x)
image = Image(matrix)
... | 24.2 | 49 | 0.584022 | 293 | 0.807163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
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 | 1,704 | 0.762075 | 0 | 0 | 0 | 0 | 0 | 0 | 459 | 0.205277 |
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
def shortToBytes(short):
if short is not None:
try:
for format, multiplie... | 35.44898 | 91 | 0.614853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 439 | 0.252735 |
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 | 10,890 | 0.905764 | 0 | 0 | 300 | 0.024952 | 0 | 0 | 1,377 | 0.11453 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,228 | 0.56616 |
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
class ArrayPressureProfile(PressureProfile):
def __init__(self, array, reverse=False):
super().__init__(self.__class__.__name__, array.shape[-1])
if reverse:
self.pressure_profile = array[::-1]
else:
... | 24.473684 | 66 | 0.62043 | 863 | 0.927957 | 0 | 0 | 150 | 0.16129 | 0 | 0 | 96 | 0.103226 |
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
def parse_args(args=None):
Description = "Reformat nf-core/vcreport samplesheet ... | 31.395604 | 159 | 0.60273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,136 | 0.39762 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 561 | 0.252362 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 600 | 0.461538 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 657 | 0.595109 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 981 | 0.597079 |
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
def __make_bucket(bucket_name: str):
bucket = boto3.resource('s3').Bucket(bucket_name)
bucket.create()
return bucket
@mock_s3
def test_fix_dictionary():
bucket = __make_bucket('tester')
tr... | 56.252874 | 238 | 0.647323 | 0 | 0 | 0 | 0 | 4,653 | 0.950756 | 0 | 0 | 3,216 | 0.657131 |
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
class Migration(migrations.Migration):
dependencies = [
('Breeze', '0005_forgetpass'... | 30.446809 | 110 | 0.600978 | 1,207 | 0.843466 | 0 | 0 | 0 | 0 | 0 | 0 | 271 | 0.189378 |
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 | 22,168 | 0.872275 | 0 | 0 | 2,687 | 0.105729 | 0 | 0 | 7,344 | 0.288975 |
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 | 8,754 | 0.9049 | 0 | 0 | 600 | 0.062022 | 0 | 0 | 1,880 | 0.194335 |
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 | 11,021 | 0.647799 | 0 | 0 | 184 | 0.010815 | 0 | 0 | 6,174 | 0.362899 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,744 | 0.530736 |
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
def clone(url: str, target_directory: str) -> None:
print(f'Cloning {url} into {target_directory} ...')
subprocess.run(
['git', 'clone', url, target_directory], capture_output=True
)
| 24.777778 | 68 | 0.659193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 56 | 0.251121 |
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
"""
===============================================================================
████████╗███████╗███████╗████████╗ ██████╗ █████╗ ███████╗███████╗███████╗
╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝ ██╔════╝██╔══██╗██╔════╝██╔════╝██╔════╝
██║ █████╗ ███████╗ ██║ ██║ ██████... | 38.275862 | 80 | 0.440991 | 1,403 | 0.473986 | 0 | 0 | 0 | 0 | 0 | 0 | 1,862 | 0.629054 |
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 | 29,108 | 0.742722 | 0 | 0 | 0 | 0 | 0 | 0 | 15,724 | 0.401215 |
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 | 1,614 | 0.560611 | 0 | 0 | 1,564 | 0.543244 | 0 | 0 | 893 | 0.310177 |
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
def read_mapper_output(file, separator='\t'):
for line in file:
yield line.rstrip().split(separator, 1)
def main(separator='\t'):
data... | 24.714286 | 69 | 0.689788 | 0 | 0 | 115 | 0.22158 | 0 | 0 | 0 | 0 | 116 | 0.223507 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 144 | 0.296296 |
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")
class _IdentitiyTra... | 31.880383 | 88 | 0.559508 | 5,970 | 0.895993 | 0 | 0 | 1,249 | 0.187453 | 0 | 0 | 904 | 0.135675 |
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
@attr.s(auto_attribs=True)
class SlotAttentionParams:
lr: float = 0.0004
batch_size: int = 64
val_batch_size: int = 64
resolution: Tuple[int, int] = (128, 128)
num_slots: int = 7 # 5 change to 7 according to official code
num_i... | 34.021739 | 77 | 0.686901 | 1,469 | 0.938658 | 0 | 0 | 1,496 | 0.955911 | 0 | 0 | 561 | 0.358466 |
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 # adhérence au sol
coef_vel = 10
class Car:
def __init__(self):
self.dir_target = -1
self.dir = -1
self.posx = 0
self.velx = -1
self.w = 50
self.h = 100
def update(self, dt):
self.dir += dt * ... | 29.088235 | 96 | 0.50455 | 894 | 0.90303 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 0.019192 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,169 | 0.19438 |
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 | def sortedDict(adict):
keys = adict.keys()
keys.sort()
return map(adict.get, keys)
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_valu... | 20.078431 | 82 | 0.512695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 219 | 0.213867 |
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
def is_active():
return True
def get_name():
return "WinRT"
def can_build():
if (os.name=="nt"):
#building natively on windows!
if (os.getenv("VSINSTALLDIR")):
return True
return False
def get_opts():
return []
def get_flags():
return []
def configure(env):
... | 52.305732 | 846 | 0.693132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,821 | 0.708841 |
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 | 6,196 | 0.893568 | 0 | 0 | 0 | 0 | 0 | 0 | 914 | 0.131814 |
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
class NewLogger:
def __init__(self, log_abs_path:str):
self.logger = logging.getLogger()
handler = logging.FileHandler(log_abs_path)
handler.setLevel(logging.ERROR)
self.logger.addHandler(handler)
def log(self, msg:str):
self.logger.log(logging.ERROR, m... | 18.222222 | 51 | 0.664634 | 305 | 0.929878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 26 | 0.325 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 638 | 0.392374 |
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... | 32.471189 | 207 | 0.536682 | 0 | 0 | 0 | 0 | 17,124 | 0.321989 | 0 | 0 | 14,720 | 0.276785 |
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
class ModuleFactory(BaseFactory):
"""
Takes an imported module object and extracts callable objects from it.
A valid callable is any object that can be called and has pexen.sched
metadata.
Argum... | 28.225 | 77 | 0.639504 | 1,024 | 0.906997 | 352 | 0.31178 | 0 | 0 | 0 | 0 | 317 | 0.280779 |
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 für das Buch "Python Challenge"
#
# Copyright 2020 by Michael Inden
def solve_water_jugs(size1, size2, desired_liters):
return __solve_water_jugs_rec(size1, size2,
desired_liters, 0, 0, {})
def __solve_water_jugs_rec(size1, size2, desired_liters,
... | 37.4 | 80 | 0.559441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 209 | 0.085938 |
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
class Elf32(vstruct.VStruct):
def __init__(self, bigend=False):
vstruct.VStruct.__init__(self)
self.e_ident = v_bytes(EI_NIDENT)
self.e_class = v_uint8()
self.e_data = v_uint8()
s... | 35.969466 | 54 | 0.612585 | 9,316 | 0.98854 | 0 | 0 | 0 | 0 | 0 | 0 | 88 | 0.009338 |
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 | 9,292 | 0.925406 | 0 | 0 | 6,780 | 0.675232 | 0 | 0 | 3,403 | 0.33891 |
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 | 2,606 | 0.780941 | 0 | 0 | 0 | 0 | 0 | 0 | 1,686 | 0.505244 |
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
def test_translator():
def translator(string):
translations = {'String value is too long.': 'Tamanho de texto muito grande.'}
return translations.get(string, string)
from schematics.translator import register_translator
register_translator(translator... | 30.736842 | 86 | 0.72089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 0.203767 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 113 | 0.176287 |
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 | 556 | 0.621924 | 0 | 0 | 435 | 0.486577 | 0 | 0 | 174 | 0.194631 |
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
class Enemy(pygame.sprite.Sprite):
# -- Methods
def __init__(self, x_cord, y_cord,level, x_speed=2, char_type=0):
""" Constructor ... | 35.769939 | 116 | 0.54738 | 11,452 | 0.982077 | 0 | 0 | 0 | 0 | 0 | 0 | 2,166 | 0.185747 |
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 = ''
def impute_chromosome_internal_subparser(subparser):
parser =... | 23.653422 | 105 | 0.583481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,997 | 0.186374 |
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
@pytest.fixture
def async_zeroconf():
with patch("zeroconf.asyncio.AsyncZeroconf") as klass:
yield klass.return_value
@pytest.fix... | 32.764706 | 85 | 0.710353 | 0 | 0 | 113 | 0.022541 | 4,808 | 0.959106 | 3,388 | 0.675843 | 873 | 0.174147 |
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 | 84,683 | 0.993454 | 0 | 0 | 0 | 0 | 0 | 0 | 38,061 | 0.44651 |
f7a95c509ce50bcdd7048409ca9b8c7d9c279bfa | 432 | py | Python | Dataset/Leetcode/valid/98/736.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/98/736.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/98/736.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, root: TreeNode) -> bool:
stack = []
cur = root
last = float("-inf")
while cur or stack:
while cur:
stack.append(cur)
cur = cur.left
cur = stack.pop()
if cur.val > last:
... | 24 | 42 | 0.414352 | 429 | 0.993056 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0.013889 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 80 | 0.337553 |
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 ###
class UserBase(BaseModel):
alias: str
primary_wallet_address_id: t.Optional[int]
profile_img_url: t.Optional[str]
is_active: bool = True
is_superuser: bool = False
class UserOut(UserBase):
pass
class UserCreate(U... | 14.865385 | 46 | 0.667529 | 674 | 0.871928 | 0 | 0 | 0 | 0 | 0 | 0 | 25 | 0.032342 |