hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
a4260c6f5152f2cafa7295d279b7bf76eea11bce
10,324
py
Python
env_step.py
IouJenLiu/HTS-RL
7972340c765ef45d2bda353a197b78e0b844f2bd
[ "MIT" ]
17
2020-10-14T02:38:57.000Z
2022-03-13T16:18:12.000Z
env_step.py
IouJenLiu/HTS-RL
7972340c765ef45d2bda353a197b78e0b844f2bd
[ "MIT" ]
1
2020-12-28T16:40:09.000Z
2020-12-29T15:31:01.000Z
env_step.py
IouJenLiu/HTS-RL
7972340c765ef45d2bda353a197b78e0b844f2bd
[ "MIT" ]
2
2020-12-21T11:57:51.000Z
2021-08-30T08:08:23.000Z
import copy import math import os import sys import time import gfootball.env as football_env import numpy as np import torch from a2c_ppo_acktr.envs import EpisodeRewardScoreWrapper from a2c_ppo_acktr.envs import GFNoopResetEnv from a2c_ppo_acktr.storage_ma import RolloutStorageMA from gym.spaces.discrete import Dis...
48.469484
136
0.605967
08424360b7fc3170fd09a9171a271a9cc95b6cdf
9,956
py
Python
Allura/allura/model/index.py
apache/allura
6184203235ac6f83c943fae7fd3fef54678f9ed7
[ "Apache-2.0" ]
113
2015-03-25T10:33:37.000Z
2022-02-16T20:55:06.000Z
Allura/allura/model/index.py
apache/allura
6184203235ac6f83c943fae7fd3fef54678f9ed7
[ "Apache-2.0" ]
4
2017-08-04T16:19:07.000Z
2020-06-08T19:01:33.000Z
Allura/allura/model/index.py
apache/allura
6184203235ac6f83c943fae7fd3fef54678f9ed7
[ "Apache-2.0" ]
36
2015-08-14T16:27:39.000Z
2022-02-16T20:54:35.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
35.684588
118
0.569004
455ec7ceadd6dff3b9a90f02acc5feaed26b421e
4,507
py
Python
colour/models/rgb/datasets/dci_p3.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/datasets/dci_p3.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/datasets/dci_p3.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ DCI-P3 & DCI-P3+ Colourspaces ============================= Defines the *DCI-P3* and *DCI-P3+* colourspaces: - :attr:`colour.models.RGB_COLOURSPACE_DCI_P3`. - :attr:`colour.models.RGB_COLOURSPACE_DCI_P3_P`. References ---------- - :cite:`Canon2014a` : Canon. (2014). EOS C500 Firmwar...
26.356725
79
0.716219
16c26cab6d2469ea8305f2d3cb3a9b33709121ac
16,741
py
Python
venv/Lib/site-packages/pandas/tests/indexes/datetimes/test_misc.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/indexes/datetimes/test_misc.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/indexes/datetimes/test_misc.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
import calendar from datetime import datetime import locale import unicodedata import numpy as np import pytest import pandas as pd from pandas import ( DatetimeIndex, Index, Timedelta, Timestamp, date_range, offsets, ) import pandas._testing as tm class TestTimeSeries: ...
37.119734
89
0.528105
5993d5a7339fef8ad464dff40299e573b66ed0c7
2,382
py
Python
openml_data_integration/data_node/model_pb2_grpc.py
ipa-rar/tutorials-1
388f0d73d9648ee47d1cc89c60eb08739669c576
[ "Apache-2.0" ]
null
null
null
openml_data_integration/data_node/model_pb2_grpc.py
ipa-rar/tutorials-1
388f0d73d9648ee47d1cc89c60eb08739669c576
[ "Apache-2.0" ]
null
null
null
openml_data_integration/data_node/model_pb2_grpc.py
ipa-rar/tutorials-1
388f0d73d9648ee47d1cc89c60eb08739669c576
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import model_pb2 as model__pb2 class ExampleStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): ...
35.552239
110
0.663728
57e4e2f497c5f890a8abd3552e9fb6f60b19581e
2,239
py
Python
pid_tune/orangebox/tools.py
stefapi/pid_tune
66512b9d47b67b6e1079ffb9b04f86b80904c412
[ "BSD-2-Clause" ]
2
2021-07-11T14:35:38.000Z
2021-12-28T09:46:32.000Z
pid_tune/orangebox/tools.py
stefapi/pid_tune
66512b9d47b67b6e1079ffb9b04f86b80904c412
[ "BSD-2-Clause" ]
null
null
null
pid_tune/orangebox/tools.py
stefapi/pid_tune
66512b9d47b67b6e1079ffb9b04f86b80904c412
[ "BSD-2-Clause" ]
1
2021-12-16T08:01:23.000Z
2021-12-16T08:01:23.000Z
# Orangebox - Cleanflight/Betaflight blackbox data parser. # Copyright (C) 2019 Károly Kiripolszky # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
26.975904
72
0.706565
bf23ae39a1e1163452774c49dbd833061ff5e2c4
9,246
py
Python
Space Invaders/main.py
tylerdowney1337/Space_Invaders_Game
e5c03b03f86a3c98b28bc32f371955cbf0f945f8
[ "MIT" ]
1
2021-04-29T15:09:04.000Z
2021-04-29T15:09:04.000Z
Space Invaders/main.py
tylerdowney1337/Space_Invaders_Game
e5c03b03f86a3c98b28bc32f371955cbf0f945f8
[ "MIT" ]
null
null
null
Space Invaders/main.py
tylerdowney1337/Space_Invaders_Game
e5c03b03f86a3c98b28bc32f371955cbf0f945f8
[ "MIT" ]
null
null
null
import pygame import os import time import random from pygame import mixer pygame.font.init() WIDTH, HEIGHT = 750, 750 WIN = pygame.display.set_mode((WIDTH, HEIGHT)) pygame.display.set_caption("Space Shooter") # Load Enemy Images RED_SPACE_SHIP = pygame.image.load(os.path.join("assets", "pixel_ship_red_sm...
30.215686
161
0.565542
f3b619702fa4c3f75d9e388a3b5043f1c8dad58e
1,850
py
Python
numba/rambo/CPU/base_rambo.py
Hardcode84/dpbench
e6bc1fc6493cb80a1b5a2ffcca4cc1348dd3ad99
[ "BSD-2-Clause" ]
null
null
null
numba/rambo/CPU/base_rambo.py
Hardcode84/dpbench
e6bc1fc6493cb80a1b5a2ffcca4cc1348dd3ad99
[ "BSD-2-Clause" ]
null
null
null
numba/rambo/CPU/base_rambo.py
Hardcode84/dpbench
e6bc1fc6493cb80a1b5a2ffcca4cc1348dd3ad99
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2017-2018 Intel Corporation # # SPDX-License-Identifier: MIT import numpy.random as rnd try: import itimer as it now = it.itime get_mops = it.itime_mops_now except: from timeit import default_timer now = default_timer get_mops = lambda t0, t1, n: (n / (t1 - t0),t1-t0) ########...
29.365079
108
0.571892
a4f799449eb378accd976f55fed07359db877bb7
4,604
py
Python
gbpservice/nfp/core/path.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
2
2017-12-13T10:33:28.000Z
2019-07-03T19:01:42.000Z
gbpservice/nfp/core/path.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
4
2015-04-14T00:27:44.000Z
2020-08-31T11:20:17.000Z
gbpservice/nfp/core/path.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
4
2015-04-10T16:03:47.000Z
2020-08-31T06:06:32.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
26.767442
78
0.575369
e6a93814ca708d5ce52b4b03db4efae254b89cbd
2,403
py
Python
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/DescribeRestoreOrderRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/DescribeRestoreOrderRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/DescribeRestoreOrderRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.338235
81
0.773616
a7ad9df43ced97a3214fe92f4cf0b6439fc5bbe8
6,285
py
Python
sdk/python/pulumi_azure_nextgen/compute/latest/get_disk_access_a_private_endpoint_connection.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/compute/latest/get_disk_access_a_private_endpoint_connection.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/compute/latest/get_disk_access_a_private_endpoint_connection.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
45.215827
261
0.706603
149ee2244949e1d4d14b59debcfbb04ebffc310a
9,182
py
Python
test/system/test_seq_copy_sys.py
Suvodeep90/sockeye
292b42e679780599816c6d317d559cc90827381b
[ "Apache-2.0" ]
null
null
null
test/system/test_seq_copy_sys.py
Suvodeep90/sockeye
292b42e679780599816c6d317d559cc90827381b
[ "Apache-2.0" ]
null
null
null
test/system/test_seq_copy_sys.py
Suvodeep90/sockeye
292b42e679780599816c6d317d559cc90827381b
[ "Apache-2.0" ]
1
2020-07-02T07:08:39.000Z
2020-07-02T07:08:39.000Z
# Copyright 2017, 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License # is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fi...
50.450549
142
0.651601
407e56a67443af6eaac4d8259b2ddf2f11b3d726
4,427
py
Python
day11/part2.py
mtn/advent19
15d4ae84d248fcf66cb5ebdefee7cad4e6c4a9c2
[ "MIT" ]
null
null
null
day11/part2.py
mtn/advent19
15d4ae84d248fcf66cb5ebdefee7cad4e6c4a9c2
[ "MIT" ]
null
null
null
day11/part2.py
mtn/advent19
15d4ae84d248fcf66cb5ebdefee7cad4e6c4a9c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 with open("input.txt") as f: memory = list(map(int, f.read().split(","))) class IntcodeComputer(object): def __init__(self, memory, inputs): self.memory = memory + [0] * 100000000 self.inputs = inputs self.pos = 0 self.inputs_ind = 0 self.relati...
32.792593
83
0.530382
a65b45dce19cab7de7a886f1db2f83b2cc7493e6
1,580
py
Python
gan/triton_server/client.py
jianliang90/MedCommon
961384c7387cf8307275752d6399c6f9c8ce227c
[ "MIT" ]
1
2021-12-16T15:06:59.000Z
2021-12-16T15:06:59.000Z
gan/triton_server/client.py
jianliang90/MedCommon
961384c7387cf8307275752d6399c6f9c8ce227c
[ "MIT" ]
null
null
null
gan/triton_server/client.py
jianliang90/MedCommon
961384c7387cf8307275752d6399c6f9c8ce227c
[ "MIT" ]
null
null
null
import numpy as np import sys import gevent.ssl import tritonclient.http as httpclient from tritonclient.utils import InferenceServerException import SimpleITK as sitk import os sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir)) from datasets.common_ds import GANDataWrapper, get_common_transform...
32.244898
102
0.755063
ad525230658307dbd8d858eaffc928cc3f269304
3,965
py
Python
run_app.py
SuzukiDaishi/WorldAutoVCApp
cb6f81ed738e7dbbb68d9ac0dfef028668b3ff33
[ "MIT" ]
null
null
null
run_app.py
SuzukiDaishi/WorldAutoVCApp
cb6f81ed738e7dbbb68d9ac0dfef028668b3ff33
[ "MIT" ]
null
null
null
run_app.py
SuzukiDaishi/WorldAutoVCApp
cb6f81ed738e7dbbb68d9ac0dfef028668b3ff33
[ "MIT" ]
1
2022-03-26T07:42:45.000Z
2022-03-26T07:42:45.000Z
from realtime_vc import RealtimeVC import torch import numpy as np import noisereduce as nr from model import Generator from util import getConvertInfo, world_join, world_split, logsp_norm, logsp_unnorm import os # # # 設定する変数 # # # # # # # # # # # # # # # # # サンプルレート SAMPLE_RATE = 16_000 # モデル構造 DIM_NECK = 32 DIM_EM...
29.81203
130
0.621438
b65d5f7395b2377951addd8969ddf399b6afffaa
8,389
py
Python
heekscnc/ocl_funcs.py
JohnyEngine/CNC
e4c77250ab2b749d3014022cbb5eb9924e939993
[ "Apache-2.0" ]
null
null
null
heekscnc/ocl_funcs.py
JohnyEngine/CNC
e4c77250ab2b749d3014022cbb5eb9924e939993
[ "Apache-2.0" ]
null
null
null
heekscnc/ocl_funcs.py
JohnyEngine/CNC
e4c77250ab2b749d3014022cbb5eb9924e939993
[ "Apache-2.0" ]
null
null
null
import ocl import math from nc.nc import * import tempfile def STLSurfFromFile(filepath): s = ocl.STLSurf() ocl.STLReader(filepath, s) return s def cut_path(path, dcf, z1, mat_allowance, mm, units, rapid_to, incremental_rapid_to): dcf.setPath(path) dcf.setSampling(0.1) # FIXME: this should be adju...
39.018605
288
0.590654
1f2e7fc6d15ef56e26e13970d3e4a68fbd7db511
7,979
py
Python
checkov/kubernetes/kubernetes_utils.py
BenjaDiaz/checkov
c53e32f1654e4ee771abf2001b3cb7df16752f6e
[ "Apache-2.0" ]
1
2022-02-20T21:20:39.000Z
2022-02-20T21:20:39.000Z
checkov/kubernetes/kubernetes_utils.py
BenjaDiaz/checkov
c53e32f1654e4ee771abf2001b3cb7df16752f6e
[ "Apache-2.0" ]
3
2022-03-07T20:37:31.000Z
2022-03-21T20:20:14.000Z
checkov/kubernetes/kubernetes_utils.py
BenjaDiaz/checkov
c53e32f1654e4ee771abf2001b3cb7df16752f6e
[ "Apache-2.0" ]
null
null
null
import logging import os from copy import deepcopy from typing import Tuple, Dict, Optional, List, Any import dpath from checkov.runner_filter import RunnerFilter from checkov.common.bridgecrew.platform_integration import bc_integration from checkov.common.models.consts import YAML_COMMENT_MARK from checkov.common.pa...
42.441489
119
0.62113
9baf15a1cff1bfa0a1c20ea763d5772e7e8270ca
1,467
py
Python
scripts/detection/demo_webcam_run.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
5,447
2018-04-25T18:02:51.000Z
2022-03-31T00:59:49.000Z
scripts/detection/demo_webcam_run.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1,566
2018-04-25T21:14:04.000Z
2022-03-31T06:42:42.000Z
scripts/detection/demo_webcam_run.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1,345
2018-04-25T18:44:13.000Z
2022-03-30T19:32:53.000Z
import argparse import time import gluoncv as gcv gcv.utils.check_version('0.4.0') from gluoncv.utils import try_import_cv2 cv2 = try_import_cv2() import mxnet as mx parser = argparse.ArgumentParser(description="Webcam object detection script", formatter_class=argparse.ArgumentDefault...
29.938776
135
0.710975
891e41736e86cb68938a28cfa384d26478cd3a3e
622
py
Python
scripts/based_string_to_int.py
SubstanceIsFormAndContent/Cellular-Automata
9dcb9b32be198bc9430ef537dab175fe03da9a38
[ "Apache-2.0" ]
1
2020-02-10T23:47:31.000Z
2020-02-10T23:47:31.000Z
scripts/based_string_to_int.py
SubstanceIsFormAndContent/Cellular-Automata
9dcb9b32be198bc9430ef537dab175fe03da9a38
[ "Apache-2.0" ]
null
null
null
scripts/based_string_to_int.py
SubstanceIsFormAndContent/Cellular-Automata
9dcb9b32be198bc9430ef537dab175fe03da9a38
[ "Apache-2.0" ]
null
null
null
def based_string_to_int(sequence: str, states: str) -> int: """Generates integer value of provided sequence and states Parameters: ----------- sequence: string representation of input number states: string ordered states used to make sequence Returns: ...
22.214286
62
0.562701
326fc0406adda593dc9659bb91c511e9221d5516
2,249
py
Python
tests/integration/questionnaire/test_questionnaire_final_confirmation.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
tests/integration/questionnaire/test_questionnaire_final_confirmation.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
8
2020-03-24T15:24:18.000Z
2022-03-02T04:32:56.000Z
tests/integration/questionnaire/test_questionnaire_final_confirmation.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
from tests.integration.create_token import create_token from tests.integration.integration_test_case import IntegrationTestCase class TestQuestionnaireFinalConfirmation(IntegrationTestCase): def test_final_confirmation_asked_at_end_of_questionnaire(self): base_url = '/questionnaire/test/final_confirmatio...
38.118644
98
0.682526
9dcf298355811c34c2b13e205a08f258e5390b05
3,509
py
Python
server/athenian/api/models/web/jira_label.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
9
2020-10-11T22:12:03.000Z
2022-02-26T02:16:45.000Z
server/athenian/api/models/web/jira_label.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
246
2019-12-05T06:37:30.000Z
2022-03-29T10:00:07.000Z
server/athenian/api/models/web/jira_label.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
5
2019-12-04T22:38:05.000Z
2021-02-26T00:50:04.000Z
from datetime import datetime from typing import Optional from athenian.api.models.web.base_model_ import Model class JIRALabel(Model): """Details about a JIRA label.""" openapi_types = { "title": str, "last_used": datetime, "issues_count": int, "kind": str, } attrib...
26.78626
84
0.596751
9e228c0b4f47434de24b63556bc720f7eef358a0
51,046
py
Python
electrum_dash/gui/qt/privatesend_dialog.py
justanwar/electrum-firo
dbfea4456000011a58a43c37425e44296b5da5b5
[ "MIT" ]
4
2021-01-18T01:23:41.000Z
2021-04-13T22:39:11.000Z
electrum_dash/gui/qt/privatesend_dialog.py
justanwar/electrum-firo
dbfea4456000011a58a43c37425e44296b5da5b5
[ "MIT" ]
11
2021-01-18T09:34:27.000Z
2022-02-05T07:58:11.000Z
electrum_dash/gui/qt/privatesend_dialog.py
justanwar/electrum-firo
dbfea4456000011a58a43c37425e44296b5da5b5
[ "MIT" ]
5
2021-05-02T10:53:50.000Z
2022-03-10T00:31:37.000Z
# -*- coding: utf-8 -*- import time from functools import partial from PyQt5.QtCore import Qt, QTimer, pyqtSlot from PyQt5.QtGui import QColor, QPainter, QTextCursor, QIcon, QPixmap from PyQt5.QtWidgets import (QPlainTextEdit, QCheckBox, QSpinBox, QVBoxLayout, QPushButton, QLabel, QDialog...
37.178441
79
0.626729
88d2e2cd8a7c26428912ac34c069963780de8d7b
1,143
py
Python
uds/uds_communications/TransportProtocols/Test/TestTp.py
stko/python-uds
00878336be1be6bffc4a5e5f083f8ed72580e850
[ "MIT" ]
62
2019-02-13T20:26:12.000Z
2022-02-23T19:47:34.000Z
uds/uds_communications/TransportProtocols/Test/TestTp.py
AasaiAlangaram/python-uds
fbca468b5ddd7b265ed0c28c8aecc5fd2fb900f4
[ "MIT" ]
58
2018-07-09T10:58:33.000Z
2022-01-31T20:27:13.000Z
uds/uds_communications/TransportProtocols/Test/TestTp.py
AasaiAlangaram/python-uds
fbca468b5ddd7b265ed0c28c8aecc5fd2fb900f4
[ "MIT" ]
33
2019-03-25T07:30:34.000Z
2022-03-08T12:55:35.000Z
#!/usr/bin/env python __author__ = "Richard Clubb" __copyrights__ = "Copyright 2018, the python-uds project" __credits__ = ["Richard Clubb"] __license__ = "MIT" __maintainer__ = "Richard Clubb" __email__ = "richard.clubb@embeduk.com" __status__ = "Development" from uds import iTp ## # @brief pads out an array with a...
25.4
89
0.692913
92d284dbc3c69c6434597e2dc4559bd5bfd0ff68
10,621
py
Python
src/ggrc/models/hooks/assessment.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
src/ggrc/models/hooks/assessment.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/models/hooks/assessment.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Assessment generator hooks We are applying assessment template properties and make new relationships and custom attributes """ import collections import itertools import logging from sqlalchemy i...
37.006969
79
0.686847
6ba62170ea4949834b5cb702fee67fcd11d59476
125
py
Python
test_views_with_pytest.py
guyjacks/flasktutorial
723f99d998487b2a5e0e043ad83065e48d467711
[ "MIT" ]
1
2015-01-03T20:24:40.000Z
2015-01-03T20:24:40.000Z
test_views_with_pytest.py
guyjacks/flasktutorial
723f99d998487b2a5e0e043ad83065e48d467711
[ "MIT" ]
null
null
null
test_views_with_pytest.py
guyjacks/flasktutorial
723f99d998487b2a5e0e043ad83065e48d467711
[ "MIT" ]
null
null
null
import views def test_hello(): app = views.app.test_client() rv = app.get('/') assert 'Hello World' in rv.data
15.625
35
0.624
1cf33335f2bc81fcaef708788b3b34a6243829ce
3,191
py
Python
varken/unifi.py
J3n50m4t/Varken
58538b97379b4e2eadf2baf9814e73bc52588d4a
[ "MIT" ]
null
null
null
varken/unifi.py
J3n50m4t/Varken
58538b97379b4e2eadf2baf9814e73bc52588d4a
[ "MIT" ]
null
null
null
varken/unifi.py
J3n50m4t/Varken
58538b97379b4e2eadf2baf9814e73bc52588d4a
[ "MIT" ]
null
null
null
from logging import getLogger from requests import Session, Request from datetime import datetime, timezone from varken.helpers import connection_handler class UniFiAPI(object): def __init__(self, server, dbmanager): self.dbmanager = dbmanager self.server = server # Create session to redu...
41.986842
111
0.579756
cbf2a62eb4ac48275b8fdf6573536fc7f25a8c17
10,763
py
Python
tests/api_send/test_send_message.py
geometry-labs/icon-sdk-python
e530df02eb16b394c3022d2d7d0383bd972e129a
[ "Apache-2.0" ]
null
null
null
tests/api_send/test_send_message.py
geometry-labs/icon-sdk-python
e530df02eb16b394c3022d2d7d0383bd972e129a
[ "Apache-2.0" ]
null
null
null
tests/api_send/test_send_message.py
geometry-labs/icon-sdk-python
e530df02eb16b394c3022d2d7d0383bd972e129a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 ICON Foundation # # 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 o...
51.009479
550
0.577163
67ebe3a20622b35ced8c6f1b2909add01ec5e79b
575
py
Python
create-dist.py
ppizarror/notification.js
8e8ab22a981bf52123cda72ffd1950144e0627e1
[ "MIT" ]
1
2019-04-26T19:45:50.000Z
2019-04-26T19:45:50.000Z
create-dist.py
ppizarror/notification.js
8e8ab22a981bf52123cda72ffd1950144e0627e1
[ "MIT" ]
1
2018-06-18T04:30:06.000Z
2021-06-25T17:50:44.000Z
create-dist.py
ppizarror/notification.js
8e8ab22a981bf52123cda72ffd1950144e0627e1
[ "MIT" ]
null
null
null
""" Create-dist Generates compiled files to dist/ @licence MIT @author Pablo Pizarro @ppizarror.com """ """ Genenerates a compiled file """ def generate_file(main, files): w = open(main, 'w') for i in files: f = open(i, 'r') for j in f: w.write(j) f.close() w.close() #...
17.96875
38
0.646957
c4d8ba062eac8ab267fe13f5eddbe273effcb1e7
7,806
py
Python
hc/front/tests/test_details.py
karthikprabhu/healthchecks
c79954b8d65ae092d7987f3c6ffc7b3c6fc487b6
[ "BSD-3-Clause" ]
null
null
null
hc/front/tests/test_details.py
karthikprabhu/healthchecks
c79954b8d65ae092d7987f3c6ffc7b3c6fc487b6
[ "BSD-3-Clause" ]
4
2022-03-15T22:15:19.000Z
2022-03-16T17:19:33.000Z
hc/front/tests/test_details.py
karthikprabhu/healthchecks
c79954b8d65ae092d7987f3c6ffc7b3c6fc487b6
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime, timedelta as td from unittest.mock import patch from django.utils import timezone from hc.api.models import Flip, Check, Ping from hc.test import BaseTestCase class DetailsTestCase(BaseTestCase): def setUp(self): super().setUp() self.check = Check.objects.create(pro...
37.528846
80
0.63733
117f806cb15d8ca70a960e0fe657bcda8378ba96
305
py
Python
data/multilingual/Latn.SLK/Serif_12/pdf_to_json_test_Latn.SLK_Serif_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.SLK/Serif_12/pdf_to_json_test_Latn.SLK_Serif_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.SLK/Serif_12/pdf_to_json_test_Latn.SLK_Serif_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.SLK/Serif_12/udhr_Latn.SLK_Serif_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.5
75
0.813115
d4a6febbc44c32e527ff630e9f4dd9655ea929dc
1,845
py
Python
100-199/100-109/105.py
dcragusa/LeetCode
01c30de0832b378a1b054d80d1ea1d3f09a2abd3
[ "MIT" ]
null
null
null
100-199/100-109/105.py
dcragusa/LeetCode
01c30de0832b378a1b054d80d1ea1d3f09a2abd3
[ "MIT" ]
null
null
null
100-199/100-109/105.py
dcragusa/LeetCode
01c30de0832b378a1b054d80d1ea1d3f09a2abd3
[ "MIT" ]
null
null
null
""" Given two integer arrays preorder and inorder where preorder is the preorder traversal of a binary tree and inorder is the inorder traversal of the same tree, construct and return the binary tree. Example 1: Input: preorder = [3, 9, 20, 15, 7], inorder = [9, 3, 15, 20, 7], Output: [3, 9, 20, None, None, 15, 7] ...
32.368421
115
0.646612
5b9da9ccb0f0900921ca224acc610c1d1a32ff6b
4,235
py
Python
tic_tac_toe_5_4/network.py
TobiasBrx/AlphaToe
a5447066fd6f3df70e4f463456c2463937565b15
[ "MIT" ]
null
null
null
tic_tac_toe_5_4/network.py
TobiasBrx/AlphaToe
a5447066fd6f3df70e4f463456c2463937565b15
[ "MIT" ]
null
null
null
tic_tac_toe_5_4/network.py
TobiasBrx/AlphaToe
a5447066fd6f3df70e4f463456c2463937565b15
[ "MIT" ]
null
null
null
import tensorflow as tf from common.benchmark import benchmark from games.tic_tac_toe_x import TicTacToeXGameSpec tic_tac_toe_5_4_game_spec = TicTacToeXGameSpec(5, 4) def create_convolutional_network(): input_layer = tf.input_layer = tf.placeholder("float", (Non...
50.416667
124
0.701063
16cfef615172892492ad1800e0fccf9e50683d17
367
py
Python
redcmd/subcommand.py
amol9/redcmd
34086eb42ec6acc16dbd2b3ea530898a6a287639
[ "MIT" ]
1
2015-10-26T19:38:28.000Z
2015-10-26T19:38:28.000Z
redcmd/subcommand.py
amol9/redcmd
34086eb42ec6acc16dbd2b3ea530898a6a287639
[ "MIT" ]
null
null
null
redcmd/subcommand.py
amol9/redcmd
34086eb42ec6acc16dbd2b3ea530898a6a287639
[ "MIT" ]
null
null
null
__all__ = ['Subcommand', 'InternalSubcommand', 'RedcmdInternalSubcommand'] # placeholder class for subcommand classes to derive from class Subcommand(object): pass # placeholder class for internal subcommand classes class InternalSubcommand(object): pass # placeholder class for redcmd internal subcommand classes...
24.466667
74
0.811989
b1ae51c5a930d9289af55db907ba95fb8f88701a
1,721
py
Python
redmapper/__init__.py
chto/redmapper
1dc66b601889ef9913f0f9b2e05980b982834485
[ "Apache-2.0" ]
null
null
null
redmapper/__init__.py
chto/redmapper
1dc66b601889ef9913f0f9b2e05980b982834485
[ "Apache-2.0" ]
null
null
null
redmapper/__init__.py
chto/redmapper
1dc66b601889ef9913f0f9b2e05980b982834485
[ "Apache-2.0" ]
null
null
null
from __future__ import division, absolute_import, print_function import os os.environ['MKL_NUM_THREADS'] = '1' os.environ['NUMEXPR_NUM_THREADS'] = '1' os.environ['OMP_NUM_THREADS'] = '1' from ._version import __version__, __version_info__ version = __version__ from . import calibration from . import pipeline from ...
39.113636
111
0.850087
e2c20933d741f999c40ac8af62433c7703898584
2,829
py
Python
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709215409.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709215409.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709215409.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" Global and local Scopes Scopes and Namespaces When an object is assigned to a variable # a = 10 that variable points to some object and we say that the variable (name) is bound to that object That object can be accessed using that name in various parts of our code...
29.46875
102
0.620007
9cd6988893c538dd3029c85d9ca2f867173c9ecc
158
py
Python
Python-Basics/03.If-else/04.Numbers 100to200.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
Python-Basics/03.If-else/04.Numbers 100to200.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
Python-Basics/03.If-else/04.Numbers 100to200.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
number = int(input()) if number <= 99: print ("Less than 100") elif number > 200: print ("Greater than 200") else : print ("Between 100 and 200")
19.75
33
0.613924
55a138355ca7c64e998653eea2f940adb8b10f42
553
py
Python
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/DynamicProgramming/0-1_Knapsack.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/DynamicProgramming/0-1_Knapsack.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/DynamicProgramming/0-1_Knapsack.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
def knapSack01(W, wt, profit, n): K = [[0 for x in range(W + 1)] for x in range(n + 1)] # Bottom Up Tabulation for i in range(n + 1): for w in range(W + 1): if i == 0 or w == 0: K[i][w] = 0 elif wt[i - 1] <= w: K[i][w] = max(profit[i - 1] + K[...
25.136364
83
0.421338
129d4680fbc7417a091aaf228ea6bfa99c12c24e
9,808
py
Python
var/spack/repos/builtin/packages/umpire/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/umpire/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/umpire/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import socket import llnl.util.tty as tty from spack import * class Umpire(CachedCMakePackage, CudaPackage, ...
41.73617
97
0.604303
bf3f4733d727b87c09a25024de9c264e7e2aec47
280
py
Python
preprocess/prepare_for_tokenization.py
modit-team/MODIT
91c4b7aecb0ed8e69fc9ccfe47c955db0db32109
[ "MIT" ]
13
2021-08-21T12:03:28.000Z
2022-02-03T11:41:38.000Z
preprocess/prepare_for_tokenization.py
modit-team/MODIT
91c4b7aecb0ed8e69fc9ccfe47c955db0db32109
[ "MIT" ]
1
2021-09-21T19:43:04.000Z
2021-09-21T19:43:04.000Z
preprocess/prepare_for_tokenization.py
modit-team/MODIT
91c4b7aecb0ed8e69fc9ccfe47c955db0db32109
[ "MIT" ]
2
2021-08-28T06:32:24.000Z
2022-01-10T07:07:21.000Z
import json from tqdm import tqdm data = json.load(open('full_data.json')) out = open('tokenizer/data.txt', 'w') for d in tqdm(data): out.write(d['parent.code'] + '\n') out.write(d['child.full.code'] + '\n') out.write(d['commit.msg'] + '\n') pass out.close()
17.5
42
0.603571
8f40655215f171918990750d6f6349c18480df9f
20,735
py
Python
cnn_quantization/tf_cnn_benchmarks/benchmark_cnn_distributed_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
cnn_quantization/tf_cnn_benchmarks/benchmark_cnn_distributed_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
cnn_quantization/tf_cnn_benchmarks/benchmark_cnn_distributed_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
42.144309
80
0.710441
49445e2854f664952286d111b385c92b4c43364e
955
py
Python
grr/gui/api_client/api.py
theGreenJedi/grr
d9e11e304dc299d49c76b7fdf6fdbfcd4b8eec39
[ "Apache-2.0" ]
null
null
null
grr/gui/api_client/api.py
theGreenJedi/grr
d9e11e304dc299d49c76b7fdf6fdbfcd4b8eec39
[ "Apache-2.0" ]
null
null
null
grr/gui/api_client/api.py
theGreenJedi/grr
d9e11e304dc299d49c76b7fdf6fdbfcd4b8eec39
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Main file of GRR API client library.""" from grr.gui.api_client import client from grr.gui.api_client import context from grr.gui.api_client.connectors import http_connector class GrrApi(object): """Root GRR API object.""" def __init__(self, connector=None): super(GrrApi, self).__in...
28.939394
70
0.685864
d1f836a0b5ae7553f8673ed080e73f281a10cfa0
1,343
py
Python
weather_comparison/weather_api1_forecast/views - Kopie.py
test238/test_repos
8d477eff5503a3288a94abe93b21c3fe9544350f
[ "Apache-2.0" ]
null
null
null
weather_comparison/weather_api1_forecast/views - Kopie.py
test238/test_repos
8d477eff5503a3288a94abe93b21c3fe9544350f
[ "Apache-2.0" ]
null
null
null
weather_comparison/weather_api1_forecast/views - Kopie.py
test238/test_repos
8d477eff5503a3288a94abe93b21c3fe9544350f
[ "Apache-2.0" ]
1
2020-05-09T20:52:06.000Z
2020-05-09T20:52:06.000Z
from django.shortcuts import render # Create your views here. from django.shortcuts import render import requests from .models import City, City2 from .forms import CityForm def index(request): cities = City.objects.all() #return all the cities in the database url = 'http://api.openweathermap.org/...
38.371429
125
0.649293
763e703c7fe39ade9a7d568766634653bae66a76
1,883
py
Python
terraform_compliance/steps/__init__.py
karthikeayan/terraform-compliance
55223a65fd5987062f6a9bfae4c71f6c99c19d7c
[ "MIT" ]
1
2021-05-30T16:56:49.000Z
2021-05-30T16:56:49.000Z
terraform_compliance/steps/__init__.py
karthikeayan/terraform-compliance
55223a65fd5987062f6a9bfae4c71f6c99c19d7c
[ "MIT" ]
null
null
null
terraform_compliance/steps/__init__.py
karthikeayan/terraform-compliance
55223a65fd5987062f6a9bfae4c71f6c99c19d7c
[ "MIT" ]
2
2019-06-05T04:05:31.000Z
2021-05-30T16:58:16.000Z
untaggable_resources = [ "aws_route_table", "aws_route", "aws_main_route_table_association", "aws_elastic_beanstalk", "aws_elasticsearch_domain_policy", "aws_security_group_rule", "aws_eip", "aws_nat_gateway", "aws_egress_only_internet_gateway", "aws_key_pair", "aws_lambda"...
29.888889
85
0.694105
8b960e4a1ffbc214a2c0ba85974cff544177dfce
2,956
py
Python
src/streamlink/plugins/gaminglive.py
Latent-Logic/streamlink
d550d0988116898c315f6b0777defadbbdacad95
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/plugins/gaminglive.py
Latent-Logic/streamlink
d550d0988116898c315f6b0777defadbbdacad95
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/plugins/gaminglive.py
Latent-Logic/streamlink
d550d0988116898c315f6b0777defadbbdacad95
[ "BSD-2-Clause" ]
null
null
null
import re from streamlink.plugin import Plugin from streamlink.plugin.api import http, validate from streamlink.stream import RTMPStream SWF_URL = "http://www.gaminglive.tv/lib/flowplayer/flash/flowplayer.commercial-3.2.18.swf" API_URL = "http://api.gaminglive.tv/{0}/{1}" VOD_RTMP_URL = "rtmp://gamingfs.fplive.net/ga...
26.872727
116
0.574087
910186c2a6c4c71ff22158f9b0d8693af64340de
3,519
py
Python
custom/icds_reports/migrations/0035_add_pnc_aggregate_models.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
custom/icds_reports/migrations/0035_add_pnc_aggregate_models.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
custom/icds_reports/migrations/0035_add_pnc_aggregate_models.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-02-27 15:02 # flake8: noqa from __future__ import absolute_import, unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('icds_reports', '0034_aggregatecomplementaryfeedingforms'), ...
65.166667
163
0.677465
2a7bb804a7dc246947f7811dc357c53b08c5f86a
4,982
py
Python
tests/apitests/python/test_project_level_cve_allowlist.py
dirkmueller/harbor
8b1f77ebb1d62fbc82eda9be434b6f1da19203a5
[ "Apache-2.0" ]
1
2019-06-19T14:07:38.000Z
2019-06-19T14:07:38.000Z
tests/apitests/python/test_project_level_cve_allowlist.py
dirkmueller/harbor
8b1f77ebb1d62fbc82eda9be434b6f1da19203a5
[ "Apache-2.0" ]
3
2020-03-09T15:24:24.000Z
2020-09-10T08:54:35.000Z
tests/apitests/python/test_project_level_cve_allowlist.py
dirkmueller/harbor
8b1f77ebb1d62fbc82eda9be434b6f1da19203a5
[ "Apache-2.0" ]
1
2019-07-11T02:36:30.000Z
2019-07-11T02:36:30.000Z
from __future__ import absolute_import import unittest import v2_swagger_client import time from testutils import ADMIN_CLIENT, TEARDOWN from library.project import Project from library.user import User class TestProjectCVEAllowlist(unittest.TestCase): """ Test case: Project Level CVE Allowlist ...
49.82
136
0.697712
9cd2c46ca4885e2121c795ccae97a770e95fb0e9
3,210
py
Python
app/detection_model/detect_license_plate.py
alfiza-shaikh/miniProject
39993d35af74035120af2b5138203a49605c8c89
[ "FTL" ]
null
null
null
app/detection_model/detect_license_plate.py
alfiza-shaikh/miniProject
39993d35af74035120af2b5138203a49605c8c89
[ "FTL" ]
null
null
null
app/detection_model/detect_license_plate.py
alfiza-shaikh/miniProject
39993d35af74035120af2b5138203a49605c8c89
[ "FTL" ]
1
2021-07-29T17:50:05.000Z
2021-07-29T17:50:05.000Z
import os # comment out below line to enable tensorflow outputs os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf physical_devices = tf.config.experimental.list_physical_devices('GPU') if len(physical_devices) > 0: tf.config.experimental.set_memory_growth(physical_devices[0], True) from absl import a...
38.214286
133
0.719003
3c0a4ff3776b93a2c240e6c0439a0c76e4b181e2
2,940
py
Python
lib/python2.7/site-packages/FuncDesigner/examples/nlsp2.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
5
2017-01-23T16:23:43.000Z
2022-01-20T16:14:06.000Z
lib/python2.7/site-packages/FuncDesigner/examples/nlsp2.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
1
2015-04-24T06:46:25.000Z
2015-04-24T06:46:25.000Z
lib/python2.7/site-packages/FuncDesigner/examples/nlsp2.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
8
2016-05-30T13:35:17.000Z
2021-06-15T22:24:29.000Z
from FuncDesigner import * from openopt import * x, y, z, u, v, t = oovars('x y z u v t') F = [ (log(x+5)+cos(y) == 1.0)(tol=1e-10), (x**3 + z == -1.5)(tol=1e-5), u**3 + sqrt(abs(v)) == 0.5,#unassigned tol will be taken from p.ftol, default 10^-6 abs(t)**1.5 + abs(y)**0.1 == 10, sinh(v...
41.408451
163
0.663946
15eef4b922b7c6c789afff99d90be3577d0ea0f4
50,190
py
Python
disnake/ext/commands/interaction_bot_base.py
dob9601/disnake
20be6dc85f2442b756e93b2443e149dc90692adf
[ "MIT" ]
null
null
null
disnake/ext/commands/interaction_bot_base.py
dob9601/disnake
20be6dc85f2442b756e93b2443e149dc90692adf
[ "MIT" ]
null
null
null
disnake/ext/commands/interaction_bot_base.py
dob9601/disnake
20be6dc85f2442b756e93b2443e149dc90692adf
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2021-present EQUENOS # 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, mod...
38.196347
124
0.620303
c826d3ea9d0839a76e546e3cd124bd494642d2e8
6,121
py
Python
libmuscle/python/libmuscle/port.py
DongweiYe/muscle3
0c2fcf5f62995b8639fc84ce1b983c8a8e6248d0
[ "Apache-2.0" ]
null
null
null
libmuscle/python/libmuscle/port.py
DongweiYe/muscle3
0c2fcf5f62995b8639fc84ce1b983c8a8e6248d0
[ "Apache-2.0" ]
null
null
null
libmuscle/python/libmuscle/port.py
DongweiYe/muscle3
0c2fcf5f62995b8639fc84ce1b983c8a8e6248d0
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional from ymmsl import Identifier, Operator, Reference import ymmsl from libmuscle.operator import operator_from_grpc, operator_to_grpc import muscle_manager_protocol.muscle_manager_protocol_pb2 as mmp # Convert between grpc and ymmsl Port types def port_from_grpc(port: mmp.Port) -> ymms...
37.783951
79
0.545009
d09c37f35e8f089c57d3b9f8b5a0d3f898cfacf0
4,615
py
Python
v2.5.7/toontown/coghq/DistributedMover.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/coghq/DistributedMover.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/coghq/DistributedMover.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from math import * import math, random from StomperGlobals import * from direct.directnotify import DirectNotifyGlobal from direct.distributed import ClockDelta from direct.interval.IntervalGlobal import * from otp.otpbase.PythonUtil import lerp from direct.task import Task from otp.level import BasicEntities from pand...
37.520325
252
0.626869
8b4a889f76e069c5d022be3ca5af3c7acf284631
2,687
py
Python
tensortrade/vkrot/dash-server.py
vkrot/tensortrade
e954973a525c31874db9f94c0b14d3d44f1ad8bb
[ "Apache-2.0" ]
null
null
null
tensortrade/vkrot/dash-server.py
vkrot/tensortrade
e954973a525c31874db9f94c0b14d3d44f1ad8bb
[ "Apache-2.0" ]
null
null
null
tensortrade/vkrot/dash-server.py
vkrot/tensortrade
e954973a525c31874db9f94c0b14d3d44f1ad8bb
[ "Apache-2.0" ]
null
null
null
import threading import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import json from flask import request import requests import random import time import plotly ### # ubuntu run # apt-get update # apt-get install python3-pip # python3 -m pip ...
27.701031
95
0.631932
ad4083288b3f5388df3f2312a04f26b2a539e43d
2,933
py
Python
ctf/TokyoWesterns18/swap/exploit.py
lordidiot/lordidiot.github.io
6dbc61fdd59fa95cbbf7843f9784f4627add3024
[ "MIT" ]
1
2021-12-03T17:39:30.000Z
2021-12-03T17:39:30.000Z
ctf/TokyoWesterns18/swap/exploit.py
lordidiot/lordidiot.github.io
6dbc61fdd59fa95cbbf7843f9784f4627add3024
[ "MIT" ]
null
null
null
ctf/TokyoWesterns18/swap/exploit.py
lordidiot/lordidiot.github.io
6dbc61fdd59fa95cbbf7843f9784f4627add3024
[ "MIT" ]
1
2021-05-18T15:21:38.000Z
2021-05-18T15:21:38.000Z
#!/usr/bin/python from pwn import * import sys #sys.path.append('/home/lord_idiot/CTF-Tools/python-libs') HOST = "swap.chal.ctf.westerns.tokyo" PORT = 37567 prev = None stack_leak = None stopRecv = False def sett(a, b): global stopRecv if stopRecv: r.sendline("1") r.sendline(str(a)) r.sendline(str(b)) retu...
19.553333
61
0.680191
736665ef77cbb354994e69c8f8d9164f67073f50
7,849
py
Python
pytorch_toolkit/nncf/nncf/quantization/init_range.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
3
2020-12-29T02:47:32.000Z
2021-11-12T08:12:51.000Z
pytorch_toolkit/nncf/nncf/quantization/init_range.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
23
2020-09-25T22:41:48.000Z
2021-12-13T20:43:37.000Z
pytorch_toolkit/nncf/nncf/quantization/init_range.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
1
2021-03-12T10:08:44.000Z
2021-03-12T10:08:44.000Z
import queue from typing import List import numpy as np import torch from nncf.dynamic_graph.context import no_nncf_trace from .layers import BaseQuantizer from ..utils import get_flat_tensor_contents_string from nncf.nncf_logger import logger as nncf_logger class QuantizeRangeInitializer: def __init__(self, q...
42.198925
111
0.655115
8d7c324498f54c165c53678da9f1061bec82cebe
1,145
py
Python
splparser/rules/appendrules.py
lowell80/splparser
2b33d74d59565cc53ae47452126621300dba9ed8
[ "BSD-3-Clause" ]
31
2015-12-02T15:41:06.000Z
2022-03-16T22:27:23.000Z
splparser/rules/appendrules.py
lowell80/splparser
2b33d74d59565cc53ae47452126621300dba9ed8
[ "BSD-3-Clause" ]
1
2021-06-24T11:23:00.000Z
2021-06-24T11:23:00.000Z
splparser/rules/appendrules.py
lowell80/splparser
2b33d74d59565cc53ae47452126621300dba9ed8
[ "BSD-3-Clause" ]
15
2015-12-10T16:48:20.000Z
2022-02-26T18:12:44.000Z
#!/usr/bin/env python from splparser.parsetree import * from splparser.exceptions import SPLSyntaxError from splparser.rules.common.fieldrules import * from splparser.lexers.appendlexer import tokens start = 'cmdexpr' def p_cmdexpr_append(p): """cmdexpr : appendcmd""" p[0] = p[1] def p_append(p): """a...
26.627907
64
0.665502
719fa0539e2657b5e180dd9bec4c08104fa70384
161
py
Python
ematch/venv/Scripts/django-admin.py
Faisal-Sey/Dreamnmatch.com
f69f8be8e825b37c6abda5e169cc794b5ea2bd4e
[ "MIT" ]
null
null
null
ematch/venv/Scripts/django-admin.py
Faisal-Sey/Dreamnmatch.com
f69f8be8e825b37c6abda5e169cc794b5ea2bd4e
[ "MIT" ]
null
null
null
ematch/venv/Scripts/django-admin.py
Faisal-Sey/Dreamnmatch.com
f69f8be8e825b37c6abda5e169cc794b5ea2bd4e
[ "MIT" ]
null
null
null
#!c:\users\uk\documents\ematch\venv\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
26.833333
54
0.782609
fbf12f267bef0f0e907aa27e47c9d8a3cae392e8
200
py
Python
run-stress-tests.py
JoshTestAccount/pipeline_test
b1797d70374adbd9a36fec9540976db37e4b3bef
[ "MIT" ]
null
null
null
run-stress-tests.py
JoshTestAccount/pipeline_test
b1797d70374adbd9a36fec9540976db37e4b3bef
[ "MIT" ]
null
null
null
run-stress-tests.py
JoshTestAccount/pipeline_test
b1797d70374adbd9a36fec9540976db37e4b3bef
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import pandas # Main entry point if __name__ == '__main__': print('Running stress tests')
20
39
0.69
3d742f086641d6990ecc5941daf21c71b2f147ca
10,951
py
Python
watchlog.py
cdeletre/ovhlog
081cb0314872895fad10077399d75472fd59f87c
[ "MIT" ]
null
null
null
watchlog.py
cdeletre/ovhlog
081cb0314872895fad10077399d75472fd59f87c
[ "MIT" ]
null
null
null
watchlog.py
cdeletre/ovhlog
081cb0314872895fad10077399d75472fd59f87c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ MIT License Copyright (c) 2021 Cyril Delétré 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,...
32.208824
171
0.666697
debf24ec6186b67fc5f2fc4808fd836f316cb69d
46,081
py
Python
Vereniging/test_hwl.py
RamonvdW/nhb-apps
5a9f840bfe066cd964174515c06b806a7b170c69
[ "BSD-3-Clause-Clear" ]
1
2021-12-22T13:11:12.000Z
2021-12-22T13:11:12.000Z
Vereniging/test_hwl.py
RamonvdW/nhb-apps
5a9f840bfe066cd964174515c06b806a7b170c69
[ "BSD-3-Clause-Clear" ]
9
2020-10-28T07:07:05.000Z
2021-06-28T20:05:37.000Z
Vereniging/test_hwl.py
RamonvdW/nhb-apps
5a9f840bfe066cd964174515c06b806a7b170c69
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020-2021 Ramon van der Winkel. # All rights reserved. # Licensed under BSD-3-Clause-Clear. See LICENSE file for details. from django.test import TestCase from django.utils import timezone from Functie.models import maak_functie, Functie from NhbStructuur.models import NhbRe...
42.510148
127
0.624661
ab5c2fc10424d411d22b14bd86c4cc2b768982d7
296
py
Python
config/init_values.py
Vasilesk/quotes-posting
ec45ff9e6988c11461145761974f7726a001cebd
[ "MIT" ]
null
null
null
config/init_values.py
Vasilesk/quotes-posting
ec45ff9e6988c11461145761974f7726a001cebd
[ "MIT" ]
null
null
null
config/init_values.py
Vasilesk/quotes-posting
ec45ff9e6988c11461145761974f7726a001cebd
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf8 -*- coefs = { 'inc': { 'quote': 5, 'author': 3, 'source': 3, 'tag': 2 }, 'dec': { 'quote': 6, 'author': 4, 'source': 4, 'tag': 3 }, } posting_interval = 1 request_interval = 1
14.095238
22
0.391892
4128113cdcacadccc9d23a8e7240660519c368f2
32,871
py
Python
nsrl/learning_algos/NN_pytorch.py
taodav/novelty-search-repr-space
461691104dc3a72b9b4f7ec040b71d95eec434b1
[ "MIT" ]
11
2020-12-03T13:24:00.000Z
2022-01-26T21:40:14.000Z
nsrl/learning_algos/NN_pytorch.py
taodav/novelty-search-repr-space
461691104dc3a72b9b4f7ec040b71d95eec434b1
[ "MIT" ]
null
null
null
nsrl/learning_algos/NN_pytorch.py
taodav/novelty-search-repr-space
461691104dc3a72b9b4f7ec040b71d95eec434b1
[ "MIT" ]
2
2020-12-17T00:42:34.000Z
2020-12-19T12:59:11.000Z
import numpy as np import torch.nn as nn import torch.nn.functional as F import torch import torchvision from nsrl.helper.pytorch import device import nsrl.learning_algos.inits as inits class NN(): """ Parameters ----------- batch_size : int Number of tuples taken into account for each iter...
38.85461
154
0.539746
9f3b922a85c421d7dc53775d0868574b9f93306b
395
py
Python
server/ADSserver/ADSserver/wsgi.py
Laikos38/ADS-TP-Seguridad
d6cf0403a6c2e4eaed3adc344c28b3e82354d001
[ "MIT" ]
null
null
null
server/ADSserver/ADSserver/wsgi.py
Laikos38/ADS-TP-Seguridad
d6cf0403a6c2e4eaed3adc344c28b3e82354d001
[ "MIT" ]
null
null
null
server/ADSserver/ADSserver/wsgi.py
Laikos38/ADS-TP-Seguridad
d6cf0403a6c2e4eaed3adc344c28b3e82354d001
[ "MIT" ]
null
null
null
""" WSGI config for ADSserver project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
f6fda273e8b078a36a6d0605f2f1c30b0cef0a4e
90,376
py
Python
zerver/tests/test_narrow.py
lunayach/zulip
2d8c1f6d93499aa6395cfcb1895859569890953f
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_narrow.py
lunayach/zulip
2d8c1f6d93499aa6395cfcb1895859569890953f
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_narrow.py
lunayach/zulip
2d8c1f6d93499aa6395cfcb1895859569890953f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import connection from django.test import override_settings from sqlalchemy.sql import ( and_, select, column, table, ) from sqlalchemy.sql import compiler from zerver.models import ( Realm, Stream, Subscription, UserProfile, Attachment, get_display_recipient, get_p...
48.123536
934
0.633564
03dd100b5cab464e6c9f52f13f6f4a3d0a86b7e6
6,462
py
Python
tests/test_bottle_tracing.py
Creativelair/Bottle-Opentracing
572f39c2c8c286ba5813e8bc03810add9f5b4378
[ "BSD-3-Clause" ]
4
2020-04-30T18:10:15.000Z
2021-03-29T08:58:02.000Z
tests/test_bottle_tracing.py
diegoasencio96/Bottle-Opentracing
572f39c2c8c286ba5813e8bc03810add9f5b4378
[ "BSD-3-Clause" ]
null
null
null
tests/test_bottle_tracing.py
diegoasencio96/Bottle-Opentracing
572f39c2c8c286ba5813e8bc03810add9f5b4378
[ "BSD-3-Clause" ]
2
2020-04-30T18:11:09.000Z
2021-03-29T08:58:19.000Z
import unittest from unittest.mock import patch import bottle import opentracing from opentracing.ext import tags from opentracing.mocktracer import MockTracer from webtest import TestApp from bottle_opentracing import BottleTracing app = bottle.app() test_app = TestApp(app) after_hooks = app._hooks['after_request']...
31.676471
86
0.675952
c7469b6300fd1e9ebf9066c40d44a65534ba7867
4,238
py
Python
setup.py
erikwebb/forseti-security
2592fbda5f3870f007f9077a1f310ea5a8b90e4f
[ "Apache-2.0" ]
null
null
null
setup.py
erikwebb/forseti-security
2592fbda5f3870f007f9077a1f310ea5a8b90e4f
[ "Apache-2.0" ]
null
null
null
setup.py
erikwebb/forseti-security
2592fbda5f3870f007f9077a1f310ea5a8b90e4f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 The Forseti Security Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
28.253333
79
0.669655
afc64ee6d83662e12ed76b33ddc93c5125d2e83b
9,242
py
Python
daq_server/client/tcpport.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
1
2021-11-06T19:22:53.000Z
2021-11-06T19:22:53.000Z
daq_server/client/tcpport.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
25
2019-06-18T20:40:36.000Z
2021-07-23T20:56:48.000Z
daq_server/client/tcpport.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
null
null
null
import asyncio # import json from client.client import ClientConnection from collections import deque class TCPPortClient(ClientConnection): def __init__( self, *, uri=None, # host=None, # port=None, address=None, loop=None, auto_connect=True, ...
34.22963
73
0.529755
9f4019e29cef4404f0976b374919584ec083c76b
13,173
py
Python
tensorflow/python/keras/engine/sequential.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
4
2021-06-15T17:26:07.000Z
2021-11-17T10:58:08.000Z
tensorflow/python/keras/engine/sequential.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
4
2020-09-26T00:55:50.000Z
2022-02-10T01:53:06.000Z
tensorflow/python/keras/engine/sequential.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
6
2018-12-20T01:35:20.000Z
2020-07-10T17:29:57.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.757256
80
0.668489
ff6bb3d17a3ad9b7d17e115f6961b0ba528713e8
2,180
py
Python
include/wxPython/wx/xrc.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
3
2019-10-06T15:39:39.000Z
2020-09-29T23:51:50.000Z
include/wxPython/wx/xrc.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
9
2021-03-18T23:10:27.000Z
2022-03-11T23:43:55.000Z
include/wxPython/wx/xrc.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
2
2019-03-11T05:06:49.000Z
2019-03-22T21:48:49.000Z
# This file is generated by wxPython's SIP generator. Do not edit by hand. # # Copyright: (c) 2018 by Total Control Software # License: wxWindows License """ The classes in this module enable loading widgets and layout from XML. """ from ._xrc import * import wx ID_NONE = wx.ID_NONE # Needed for some parameter d...
31.594203
100
0.704587
ad2572a90e6d608ef580fdd94fd1e1a584762f85
6,236
py
Python
tensorflow_federated/python/core/impl/executors/executor_stacks_multi_gpu_test.py
riyag283/federated
bb0a346056828b14f29562dcba97fd7b5c66c9fc
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/executors/executor_stacks_multi_gpu_test.py
riyag283/federated
bb0a346056828b14f29562dcba97fd7b5c66c9fc
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/executors/executor_stacks_multi_gpu_test.py
riyag283/federated
bb0a346056828b14f29562dcba97fd7b5c66c9fc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
39.220126
80
0.759461
92e9b47d3129859d37a3d68d08da88d540207da2
3,973
py
Python
examples/bbfmm_struve.py
dbstein/flexmm
82493b11c9f0629939d4fb5be0383eaf9dc3de56
[ "Apache-2.0" ]
6
2019-09-06T20:16:27.000Z
2021-02-19T20:01:29.000Z
examples/bbfmm_struve.py
dbstein/flexmm
82493b11c9f0629939d4fb5be0383eaf9dc3de56
[ "Apache-2.0" ]
null
null
null
examples/bbfmm_struve.py
dbstein/flexmm
82493b11c9f0629939d4fb5be0383eaf9dc3de56
[ "Apache-2.0" ]
1
2019-11-01T16:50:47.000Z
2019-11-01T16:50:47.000Z
from flexmm2d.bbfmm import BB_FMM from flexmm2d.misc.utils import random2 import numpy as np import numba import time import os from scipy.special import struve, yn from function_generator.function_generator import FunctionGenerator """ Demonstration of the FMM for the Struve Kernel If N <= 50000, will do a direct su...
32.834711
96
0.6889
3c06d0977fde818bab86346b625f99e261501215
19,024
py
Python
dace/transformation/dataflow/map_fusion.py
targetsm/dace
297b12804a334df8cc6fad5250d5fb0cce20dc6e
[ "BSD-3-Clause" ]
null
null
null
dace/transformation/dataflow/map_fusion.py
targetsm/dace
297b12804a334df8cc6fad5250d5fb0cce20dc6e
[ "BSD-3-Clause" ]
null
null
null
dace/transformation/dataflow/map_fusion.py
targetsm/dace
297b12804a334df8cc6fad5250d5fb0cce20dc6e
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2020 ETH Zurich and the DaCe authors. All rights reserved. """ This module contains classes that implement the map fusion transformation. """ from copy import deepcopy as dcpy from dace import dtypes, registry, symbolic, subsets from dace.sdfg import nodes from dace.memlet import Memlet from dace.sdfg...
41.719298
99
0.560397
3c016a8e22e7dbfd727851d89a5cc4f7fbff0784
2,625
py
Python
python_sample_app/subscriber/client.py
open-edge-insights/eii-samples
53afce43341627502d7c9b905b286dba2e2dd532
[ "MIT" ]
1
2021-08-13T10:15:05.000Z
2021-08-13T10:15:05.000Z
python_sample_app/subscriber/client.py
open-edge-insights/eii-samples
53afce43341627502d7c9b905b286dba2e2dd532
[ "MIT" ]
null
null
null
python_sample_app/subscriber/client.py
open-edge-insights/eii-samples
53afce43341627502d7c9b905b286dba2e2dd532
[ "MIT" ]
1
2022-02-07T09:03:13.000Z
2022-02-07T09:03:13.000Z
# Copyright (c) 2020 Intel Corporation. # # 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, ...
37.5
79
0.681905
eaaad20f25163d6324f8b482f5521235b648b348
4,767
py
Python
src/accelerate/commands/config/cluster.py
Doragd/accelerate
b98dd399748cd772e576eb2a85836c0d1dc1c733
[ "Apache-2.0" ]
2,313
2021-03-05T21:49:49.000Z
2022-03-31T05:26:00.000Z
src/accelerate/commands/config/cluster.py
Doragd/accelerate
b98dd399748cd772e576eb2a85836c0d1dc1c733
[ "Apache-2.0" ]
230
2021-03-05T22:00:05.000Z
2022-03-31T21:38:44.000Z
src/accelerate/commands/config/cluster.py
Doragd/accelerate
b98dd399748cd772e576eb2a85836c0d1dc1c733
[ "Apache-2.0" ]
152
2021-03-06T04:25:37.000Z
2022-03-26T03:09:36.000Z
#!/usr/bin/env python # Copyright 2021 The HuggingFace Team. 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 # # Unles...
37.535433
120
0.620306
2caf005f11da074d4c64d81b7f2ab64b94a0cadd
5,213
py
Python
test_deep_logo_cnn.py
Spark7/DeepLogo
2d39b8ba47ba54496f0bf352a80d24fdfcd5837c
[ "MIT" ]
1
2021-07-07T00:05:57.000Z
2021-07-07T00:05:57.000Z
test_deep_logo_cnn.py
Spark7/DeepLogo
2d39b8ba47ba54496f0bf352a80d24fdfcd5837c
[ "MIT" ]
null
null
null
test_deep_logo_cnn.py
Spark7/DeepLogo
2d39b8ba47ba54496f0bf352a80d24fdfcd5837c
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2016 satojkovic # 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, m...
35.951724
79
0.66104
7e1d8c9fa9e599038721db15a7bf7e55ff54a8f1
7,811
py
Python
test/functional/wallet_hd.py
FihlaTV/lbrycrd
c54af21ce2758490ae3f8340c73cf0f2401801cc
[ "MIT" ]
null
null
null
test/functional/wallet_hd.py
FihlaTV/lbrycrd
c54af21ce2758490ae3f8340c73cf0f2401801cc
[ "MIT" ]
null
null
null
test/functional/wallet_hd.py
FihlaTV/lbrycrd
c54af21ce2758490ae3f8340c73cf0f2401801cc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test Hierarchical Deterministic wallet function.""" import os import shutil from decimal import Decima...
48.515528
150
0.658174
677672ccb932c63db713374de127aeff335b88e9
19,662
py
Python
code/python/StocksAPIforDigitalPortals/v2/fds/sdk/StocksAPIforDigitalPortals/model/inline_response2005_data_reported_key_figures_first_fiscal_year_ratios.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/StocksAPIforDigitalPortals/v2/fds/sdk/StocksAPIforDigitalPortals/model/inline_response2005_data_reported_key_figures_first_fiscal_year_ratios.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/StocksAPIforDigitalPortals/v2/fds/sdk/StocksAPIforDigitalPortals/model/inline_response2005_data_reported_key_figures_first_fiscal_year_ratios.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Prime Developer Trial No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.S...
62.221519
234
0.697132
2e7ad9eeae3a0b661c168aec32f98b505878bdb6
18,543
py
Python
Stackless/unittests/test_tracing.py
masamitsu-murase/stackless
677b36ffe5cb5a0f4b8d3abfa20982c8d82ffb92
[ "CNRI-Python-GPL-Compatible" ]
854
2017-09-11T16:42:28.000Z
2022-03-27T14:17:09.000Z
Stackless/unittests/test_tracing.py
masamitsu-murase/stackless
677b36ffe5cb5a0f4b8d3abfa20982c8d82ffb92
[ "CNRI-Python-GPL-Compatible" ]
164
2017-09-24T20:40:32.000Z
2021-10-30T01:35:05.000Z
Stackless/unittests/test_tracing.py
masamitsu-murase/stackless
677b36ffe5cb5a0f4b8d3abfa20982c8d82ffb92
[ "CNRI-Python-GPL-Compatible" ]
73
2017-09-13T18:07:48.000Z
2022-03-17T13:02:29.000Z
from __future__ import absolute_import import unittest import stackless import sys import inspect import _teststackless from support import test_main # @UnusedImport from support import StacklessTestCase class TestTracingFlag(StacklessTestCase): # Test that the PyThreadState tracing flag is preserved. # The ...
37.385081
109
0.637114
3dae9ae48b218e95f6cc81032702c64eed6a0042
2,047
py
Python
meaningcloud/LanguageResponse.py
davidsrn/meaningcloud-python
00f062adb64dafd2ee58e7a5185330c69cb3cef7
[ "MIT" ]
24
2018-03-14T11:49:00.000Z
2021-09-13T08:47:27.000Z
meaningcloud/LanguageResponse.py
davidsrn/meaningcloud-python
00f062adb64dafd2ee58e7a5185330c69cb3cef7
[ "MIT" ]
1
2019-11-15T18:52:49.000Z
2019-11-16T11:56:45.000Z
meaningcloud/LanguageResponse.py
davidsrn/meaningcloud-python
00f062adb64dafd2ee58e7a5185330c69cb3cef7
[ "MIT" ]
4
2020-01-28T05:03:26.000Z
2022-03-31T06:29:43.000Z
import meaningcloud.Response class LanguageResponse(meaningcloud.Response): def __init__(self, response): """ LanguageResponse constructor :param response: String returned by the request """ if not response: raise Exception("The request sent did n...
28.830986
115
0.56424
4f5779083e1a1a14b13f300489c479586099178a
22,821
py
Python
src_parser.py
chubbymaggie/fiber
1181b5c8417f45a3cc683db3a34fd4e9c2a1e2c8
[ "BSD-2-Clause" ]
60
2018-06-27T23:28:54.000Z
2022-03-31T02:07:15.000Z
src_parser.py
chubbymaggie/fiber
1181b5c8417f45a3cc683db3a34fd4e9c2a1e2c8
[ "BSD-2-Clause" ]
9
2018-07-30T08:19:04.000Z
2020-11-24T11:17:11.000Z
src_parser.py
chubbymaggie/fiber
1181b5c8417f45a3cc683db3a34fd4e9c2a1e2c8
[ "BSD-2-Clause" ]
22
2018-06-27T23:09:40.000Z
2022-03-25T12:22:23.000Z
#!/usr/bin/python import sys import re from pygments.lexers import get_lexer_by_name from pygments.token import Token #from pycparser import c_parser dbg_out = False #The array's base index is 0, but base line number used by addr2line is 1, so we need adjustments when necessary. LINE_BASE = 1 #It seems that the lin...
34.061194
123
0.45743
87b438b79bf83f65f2a7075eb5d128214e050c2b
469
py
Python
data/scripts/templates/object/draft_schematic/community_crafting/component/shared_connections.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/draft_schematic/community_crafting/component/shared_connections.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/draft_schematic/community_crafting/component/shared_connections.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/community_crafting/component/shared_connections.iff" resul...
27.588235
95
0.73774
9648f6e77083cb3a36923e7b84993e16d6a9490c
1,942
py
Python
src/priors.py
JavierAntoran/Bayesain-Neural-Networks
1f867a5bcbd1abfecede99807eb0b5f97ed8be7c
[ "MIT" ]
1,299
2019-03-12T15:05:06.000Z
2022-03-31T10:33:26.000Z
src/priors.py
xuxingxjtu/Bayesian-Neural-Networks
1f867a5bcbd1abfecede99807eb0b5f97ed8be7c
[ "MIT" ]
19
2019-04-10T13:03:51.000Z
2022-01-19T13:00:36.000Z
src/priors.py
xuxingxjtu/Bayesian-Neural-Networks
1f867a5bcbd1abfecede99807eb0b5f97ed8be7c
[ "MIT" ]
248
2019-05-02T09:12:34.000Z
2022-03-28T08:37:23.000Z
from __future__ import division import numpy as np import torch def isotropic_gauss_loglike(x, mu, sigma, do_sum=True): cte_term = -(0.5) * np.log(2 * np.pi) det_sig_term = -torch.log(sigma) inner = (x - mu) / sigma dist_term = -(0.5) * (inner ** 2) if do_sum: out = (cte_term + det_sig_te...
29.876923
111
0.598867
0031a483098e74aa854b434bd3b30666f0119a3d
24,912
py
Python
python/GafferSceneUITest/TranslateToolTest.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUITest/TranslateToolTest.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUITest/TranslateToolTest.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2016, John Haddon. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of so...
34.079343
126
0.680716
99dc4f2dfa627bcc2078e8b4d0191df6226bffa9
176,827
py
Python
airflow/models.py
langzi-zmg/airflow-dingding-qyweixin
4702fa78d3afebd91d7579b5afd8759df5c3b606
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/models.py
langzi-zmg/airflow-dingding-qyweixin
4702fa78d3afebd91d7579b5afd8759df5c3b606
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/models.py
langzi-zmg/airflow-dingding-qyweixin
4702fa78d3afebd91d7579b5afd8759df5c3b606
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
36.309446
110
0.590538
f4995e800726d99ee91143b0fd6834bc53dccf23
645
py
Python
test/del_group_test.py
technodeath/python_learning
7c69c109eaddc66980a96cd0d3983758bb12c170
[ "Apache-2.0" ]
null
null
null
test/del_group_test.py
technodeath/python_learning
7c69c109eaddc66980a96cd0d3983758bb12c170
[ "Apache-2.0" ]
null
null
null
test/del_group_test.py
technodeath/python_learning
7c69c109eaddc66980a96cd0d3983758bb12c170
[ "Apache-2.0" ]
null
null
null
from model.group import Group import random def test_del_some_group_testcase(app, db, check_ui): if len(db.get_group_list()) == 0: app.group.create() app.group.fill_and_submit_new_group(Group(name="New group header")) old_groups = db.get_group_list() group = random.choice(old_groups) a...
33.947368
114
0.713178
d400e201041e4fd872602e0c27732a03dd29a5b6
1,672
py
Python
tests/util.py
matt-hayden/invoke
50607de07e6a7da0f7b08f30bd3328c4ecfc7ada
[ "BSD-2-Clause" ]
null
null
null
tests/util.py
matt-hayden/invoke
50607de07e6a7da0f7b08f30bd3328c4ecfc7ada
[ "BSD-2-Clause" ]
null
null
null
tests/util.py
matt-hayden/invoke
50607de07e6a7da0f7b08f30bd3328c4ecfc7ada
[ "BSD-2-Clause" ]
null
null
null
from invoke.util import helpline class util: class helpline: def is_None_if_no_docstring(self): def foo(c): pass assert helpline(foo) is None def is_None_if_docstring_only_whitespace(self): def foo(c): """ """ ...
25.333333
74
0.473684
d61128f76e2bfb33d923504a6bea82a894648149
9,124
py
Python
tools/predict_mAP.py
hequn/keras-transfer-learning
194e98db7d9eb2bd58ab51f67e98470635bbb215
[ "MIT" ]
6
2018-11-28T06:32:58.000Z
2021-12-28T12:43:36.000Z
tools/predict_mAP.py
hequn/keras-transfer-learning
194e98db7d9eb2bd58ab51f67e98470635bbb215
[ "MIT" ]
3
2019-01-08T07:35:41.000Z
2019-11-28T03:13:03.000Z
tools/predict_mAP.py
hequn/keras-transfer-learning
194e98db7d9eb2bd58ab51f67e98470635bbb215
[ "MIT" ]
2
2019-02-18T04:28:20.000Z
2020-05-08T10:22:26.000Z
import time import argparse import os import numpy as np import glob from sklearn.metrics import accuracy_score, confusion_matrix from sklearn.externals import joblib import config import util def parse_args(): """ Parse input arguments """ parser = argparse.ArgumentParser() parser.add_argument('...
33.918216
119
0.580995
256bc8a8edde146de85df9988d4bff92586319e0
2,181
py
Python
nnabla_rl/environments/wrappers/goal_conditioned.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
75
2021-06-14T02:35:19.000Z
2022-03-23T04:30:24.000Z
nnabla_rl/environments/wrappers/goal_conditioned.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
2
2021-12-17T08:46:54.000Z
2022-03-15T02:04:53.000Z
nnabla_rl/environments/wrappers/goal_conditioned.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
3
2021-06-15T13:32:57.000Z
2022-03-25T16:53:14.000Z
# Copyright 2021 Sony Group Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
41.942308
86
0.666667
58e7cbf8004af3ca44ca4c425c040ceba9d44c9e
123
py
Python
Max_sum_of_sublistelement_of_list.py
kodreanuja/python
b894af6d4d94b2a8bd160703be5e8d7ab1029015
[ "MIT" ]
null
null
null
Max_sum_of_sublistelement_of_list.py
kodreanuja/python
b894af6d4d94b2a8bd160703be5e8d7ab1029015
[ "MIT" ]
null
null
null
Max_sum_of_sublistelement_of_list.py
kodreanuja/python
b894af6d4d94b2a8bd160703be5e8d7ab1029015
[ "MIT" ]
null
null
null
list =[[1, 2, 4], [6, 8, 9], [3, 2, 4]] s = sum(list) result = max(list,key=sum) print(result) result1 = max(key=sum)
20.5
40
0.544715
783fd8282eae44164d9d4004fedae91930b00f38
381
py
Python
Config/LoadAssetTypes.py
jeroanan/Gyroscope
105226741ecf57298988d96ff69f3f4f0037da60
[ "MIT" ]
1
2016-09-25T11:18:25.000Z
2016-09-25T11:18:25.000Z
Config/LoadAssetTypes.py
jeroanan/Gyroscope
105226741ecf57298988d96ff69f3f4f0037da60
[ "MIT" ]
10
2015-01-27T22:15:22.000Z
2015-01-30T11:00:05.000Z
Config/LoadAssetTypes.py
jeroanan/Gyroscope
105226741ecf57298988d96ff69f3f4f0037da60
[ "MIT" ]
null
null
null
def load_asset_types(): import logging from Config import LoadJson try: return LoadJson.load_json("Data/AssetTypes.json", "asset_types") except FileNotFoundError: logging.critical("Unable to find Data/AssetTypes.json") return {} except ValueError: logging.critical("D...
29.307692
72
0.677165
db0e1377ff0ae31e052dd0511601e8d88e7028f5
1,752
py
Python
eex/metadata/md_helper.py
dgasmith/EEX
7608c9ef25931040524c75d227f0bee18de9ddc1
[ "BSD-3-Clause" ]
null
null
null
eex/metadata/md_helper.py
dgasmith/EEX
7608c9ef25931040524c75d227f0bee18de9ddc1
[ "BSD-3-Clause" ]
null
null
null
eex/metadata/md_helper.py
dgasmith/EEX
7608c9ef25931040524c75d227f0bee18de9ddc1
[ "BSD-3-Clause" ]
null
null
null
""" A helper function to access EEX metadata easier """ from .atom_metadata import atom_metadata from .two_body_terms import two_body_metadata from .three_body_terms import three_body_metadata from .four_body_terms import four_body_metadata from .nb_terms import nb_metadata def sanitize_term_order_name(order): i...
24
80
0.651256
b7126aae0d673db2d12c034f2fe4ac02bef94b15
3,584
py
Python
.Config/FslBuildGen/BuildExternal/RecipeInfo.py
alexvonduar/gtec-demo-framework
6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749
[ "MIT", "BSD-3-Clause" ]
null
null
null
.Config/FslBuildGen/BuildExternal/RecipeInfo.py
alexvonduar/gtec-demo-framework
6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749
[ "MIT", "BSD-3-Clause" ]
null
null
null
.Config/FslBuildGen/BuildExternal/RecipeInfo.py
alexvonduar/gtec-demo-framework
6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749
[ "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #**************************************************************************************************************************************************** # Copyright 2018 NXP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modifi...
55.138462
164
0.68471
0540851ddcd876a8f7122f32b41e7ea1aa6a08f5
9,910
py
Python
PEPit/point.py
bgoujaud/PEPit
7352607069f5e90fb1919fc689ec5e9d745c3bac
[ "MIT" ]
44
2021-11-18T16:41:20.000Z
2022-02-14T09:59:13.000Z
PEPit/point.py
bgoujaud/PEPit
7352607069f5e90fb1919fc689ec5e9d745c3bac
[ "MIT" ]
2
2021-10-05T09:20:25.000Z
2022-02-19T13:58:01.000Z
PEPit/point.py
bgoujaud/PEPit
7352607069f5e90fb1919fc689ec5e9d745c3bac
[ "MIT" ]
1
2022-02-08T12:03:29.000Z
2022-02-08T12:03:29.000Z
import numpy as np from PEPit.expression import Expression from PEPit.tools.dict_operations import merge_dict, prune_dict, multiply_dicts class Point(object): """ A :class:`Point` encodes an element of a pre-Hilbert space, either a point or a gradient. Attributes: _is_leaf (bool): True if self ...
35.017668
120
0.598083
0364d48db5279a4f5a05db2a89470808332c8964
303
py
Python
quizzes/urls.py
NeedsSoySauce/testme
dfc11737779809c1df475e9224e753ca7117c981
[ "MIT" ]
1
2020-11-22T22:38:02.000Z
2020-11-22T22:38:02.000Z
quizzes/urls.py
NeedsSoySauce/testme
dfc11737779809c1df475e9224e753ca7117c981
[ "MIT" ]
3
2021-06-04T23:59:02.000Z
2021-09-22T19:39:14.000Z
quizzes/urls.py
NeedsSoySauce/testme
dfc11737779809c1df475e9224e753ca7117c981
[ "MIT" ]
null
null
null
from rest_framework import routers from . import views app_name = 'quizzes' router = routers.SimpleRouter() router.register(r'tags', views.TagViewSet) router.register(r'questions', views.QuestionViewSet) router.register(r'answers', views.AnswerViewSet) router.register(r'quizzes', views.QuizViewSet)
25.25
52
0.79868
27fffa4871d191918d818ba13d985d79d16c1792
5,152
py
Python
aws_api_mock/Instance_Single_Generator.py
danilocgsilva/aws-data-mock
07e0013f04bccb8c756a8911acd047813cf176f9
[ "MIT" ]
null
null
null
aws_api_mock/Instance_Single_Generator.py
danilocgsilva/aws-data-mock
07e0013f04bccb8c756a8911acd047813cf176f9
[ "MIT" ]
null
null
null
aws_api_mock/Instance_Single_Generator.py
danilocgsilva/aws-data-mock
07e0013f04bccb8c756a8911acd047813cf176f9
[ "MIT" ]
null
null
null
from email.policy import default from aws_api_mock.Entity_Generator_Command_Interface import Entity_Generator_Command_Interface from aws_api_mock.aws_data_helpers import get_exadecimal_sample from aws_api_mock.AWS_General_Entities_Mocker import AWS_General_Entities_Mocker from aws_api_mock.FullFormatDateMocking import ...
33.454545
94
0.518051
f0f50b2e32e7781dc65b0cd61160d0bee1f778fc
2,521
py
Python
rascil/processing_components/flagging/base.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
7
2019-12-14T13:42:33.000Z
2022-01-28T03:31:45.000Z
rascil/processing_components/flagging/base.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
6
2020-01-08T09:40:08.000Z
2020-06-11T14:56:13.000Z
rascil/processing_components/flagging/base.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
3
2020-01-14T11:14:16.000Z
2020-09-15T05:21:06.000Z
""" Base simple flagtable operations """ __all__ = ['flagtable_summary', 'copy_flagtable', 'create_flagtable_from_blockvisibility', 'create_flagtable_from_rows', 'qa_flagtable'] import copy import logging import numpy from rascil.data_models.memory_data_models import Bloc...
26.260417
106
0.650932
c466535ff2448d2ceb2b6d6b8ffa728bfd2a0eca
6,129
py
Python
qiskit/circuit/library/__init__.py
godspeed5/qiskit-terra
a5d87c3e4a663ab962704585fba0caef15061246
[ "Apache-2.0" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
qiskit/circuit/library/__init__.py
godspeed5/qiskit-terra
a5d87c3e4a663ab962704585fba0caef15061246
[ "Apache-2.0" ]
4
2020-11-27T09:34:13.000Z
2021-04-30T21:13:41.000Z
qiskit/circuit/library/__init__.py
godspeed5/qiskit-terra
a5d87c3e4a663ab962704585fba0caef15061246
[ "Apache-2.0" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
18.858462
77
0.694567
a1021ce071461a982b079e236bc0cb87bdfa60df
4,282
py
Python
kubernetes/client/models/v1beta1_cron_job_status.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_cron_job_status.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_cron_job_status.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1beta1Cro...
29.944056
124
0.603456
944fcadeb27b2b547be1fd11897bd1e6c494ac89
157
py
Python
snekcord/utils/__init__.py
NovaTohsaka/snekcord
8811e6cf41a4561d051715a56f00dd1f38ab002e
[ "MIT" ]
null
null
null
snekcord/utils/__init__.py
NovaTohsaka/snekcord
8811e6cf41a4561d051715a56f00dd1f38ab002e
[ "MIT" ]
null
null
null
snekcord/utils/__init__.py
NovaTohsaka/snekcord
8811e6cf41a4561d051715a56f00dd1f38ab002e
[ "MIT" ]
null
null
null
from .events import * from .json import * from .misc import * from .notifier import * from .snowflake import * from .token import * from .undefined import *
19.625
24
0.732484
6345a4b56fa4d0ebde593f3902ee37d856b323f6
1,415
py
Python
src/express-route-cross-connection/azext_expressroutecrossconnection/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/express-route-cross-connection/azext_expressroutecrossconnection/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/express-route-cross-connection/azext_expressroutecrossconnection/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
40.428571
110
0.655124
cb046420acab2641778b863a30b701c7ce1cd3b9
353
py
Python
fibusingiter.py
Kavi16-02/PythonK
d365d7a24966e782e910347374dfd61d003da30f
[ "MIT" ]
null
null
null
fibusingiter.py
Kavi16-02/PythonK
d365d7a24966e782e910347374dfd61d003da30f
[ "MIT" ]
null
null
null
fibusingiter.py
Kavi16-02/PythonK
d365d7a24966e782e910347374dfd61d003da30f
[ "MIT" ]
null
null
null
#Fibonacci of a number using Iterative method n=int(input("Enter N:")) def fib(n): if n==0: return 0 if n==1: return 1 prevPrevNum=0 prevNum=1 for i in range(2,n+1): currentNumber=prevPrevNum+prevNum prevPrevNum=prevNum prevNum=currentNumber return curren...
20.764706
45
0.620397