hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
2dd8792a5054cdfa9371b5f18cea8405d47cb98c
2,038
py
Python
src/azure-cli-core/azure/cli/core/extensions/transform.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/azure-cli-core/azure/cli/core/extensions/transform.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/azure-cli-core/azure/cli/core/extensions/transform.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
31.84375
94
0.584396
2dd879dce7385979dcebe6eb162ab71bfed00bcc
5,521
py
Python
geoopt/linalg/batch_linalg.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
1
2022-03-18T14:23:45.000Z
2022-03-18T14:23:45.000Z
geoopt/linalg/batch_linalg.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
null
null
null
geoopt/linalg/batch_linalg.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
null
null
null
from typing import List, Callable, Tuple import torch import torch.jit from . import _expm __all__ = [ "svd", "qr", "sym", "extract_diag", "matrix_rank", "expm", "block_matrix", "sym_funcm", "sym_expm", "sym_logm", "sym_sqrtm", "sym_invm", "sym_inv_sqrtm1", "sym_...
22.534694
83
0.571454
2dd88fc62516a785ed98e9277d5aa87dc061582d
1,991
py
Python
plotting/plot_poor_healthy_users.py
wadpac/SleepStageClassification
5b288995e62bbd66faa66bd932b06af8a65f8445
[ "Apache-2.0" ]
24
2019-04-15T09:18:51.000Z
2022-03-05T14:09:34.000Z
plotting/plot_poor_healthy_users.py
wadpac/SleepStageClassification
5b288995e62bbd66faa66bd932b06af8a65f8445
[ "Apache-2.0" ]
2
2021-01-28T01:02:06.000Z
2021-04-02T06:34:04.000Z
plotting/plot_poor_healthy_users.py
wadpac/SleepStageClassification
5b288995e62bbd66faa66bd932b06af8a65f8445
[ "Apache-2.0" ]
11
2019-05-30T19:27:39.000Z
2021-06-19T02:41:53.000Z
import sys,os import numpy as np import pandas as pd from sklearn.metrics import precision_recall_fscore_support, classification_report from scipy.stats import spearmanr import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt plt.rcParams.update({'font.size': 14}) def main(argv): infile = argv[0] ...
35.553571
107
0.677549
2dd8989d59fde45a51d2fda0fd8928fa10f6858f
5,771
py
Python
template_matching.py
IntermodulationProducts/vips
8ed2ad3db74e1e6ab312ab5e5605a05377779bb1
[ "MIT" ]
null
null
null
template_matching.py
IntermodulationProducts/vips
8ed2ad3db74e1e6ab312ab5e5605a05377779bb1
[ "MIT" ]
null
null
null
template_matching.py
IntermodulationProducts/vips
8ed2ad3db74e1e6ab312ab5e5605a05377779bb1
[ "MIT" ]
null
null
null
# Authored by Johan Blomberg and Gustav Grännsjö, 2020 """ A collection of functions for setting up template matching. """ import numpy as np import templates import utils def get_template_matching_definitions(vips, q): """ Fetch template matching data from the instrument and use it to set up template ...
48.091667
141
0.671807
2dd8b7a7aa6f0b02e820d8b5ea569ea33480f7d1
2,250
py
Python
cm/app/api_v1/my_calculation_module_directory/CM/__delete_if_tested__/CEDM/run_cm_pop.py
HotMaps/renovation_effect
469a01b4cc805256768d884a3a2ae4560770b734
[ "Apache-2.0" ]
1
2021-05-11T06:41:04.000Z
2021-05-11T06:41:04.000Z
cm/app/api_v1/my_calculation_module_directory/CM/__delete_if_tested__/CEDM/run_cm_pop.py
mayr-ethink/renovation_effect
5b1fb81102b3c6ee531b719d8136ed9a343c2598
[ "Apache-2.0" ]
2
2020-06-04T20:19:36.000Z
2020-06-04T20:19:36.000Z
cm/app/api_v1/my_calculation_module_directory/CM/__delete_if_tested__/CEDM/run_cm_pop.py
mayr-ethink/renovation_effect
5b1fb81102b3c6ee531b719d8136ed9a343c2598
[ "Apache-2.0" ]
null
null
null
''' Created on Jul 24, 2017 @author: Andreas run this script to calculate the energy density maps ''' import os import sys path = os.path.dirname(os.path.dirname(os.path.dirname(os.path. abspath(__file__)))) if path not in sys.path: sys.path.append(path) from...
29.605263
79
0.68
2dd8c3e224974d74165ad62876b72f545b3ad7b5
1,201
py
Python
wmi_check/datadog_checks/wmi_check/config_models/defaults.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
wmi_check/datadog_checks/wmi_check/config_models/defaults.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
wmi_check/datadog_checks/wmi_check/config_models/defaults.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.base.utils.models.fields import get_default_field_value def shared_service(field, value): return get_default_field_value(field, value) def instance_empty_default_hostname(field,...
21.070175
75
0.774355
2dd8fc30ec51cbed9c1ab0d1a4ce23d1497a7f9d
882
py
Python
LintCode/chapter 43/602. Russian Doll Envelopes/.ipynb_checkpoints/solution-checkpoint.py
vincent507cpu/Comprehensive-Algorithm-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
4
2020-06-26T00:45:53.000Z
2021-04-19T12:23:32.000Z
LintCode/chapter 43/602. Russian Doll Envelopes/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
LintCode/chapter 43/602. Russian Doll Envelopes/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
class Solution: """ @param envelopes: a number of envelopes with widths and heights @return: the maximum number of envelopes """ def maxEnvelopes(self, envelopes): # write your code here envelopes.sort(key=lambda x: (x[0], -x[1])) lst = [float('inf')] * (len(envelope...
27.5625
67
0.460317
2dd8fdb80e34debaee3886a12d3bb22857e08f87
1,258
py
Python
src/multimodal/data/kitti/make_tensors.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
null
null
null
src/multimodal/data/kitti/make_tensors.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
6
2020-09-25T22:41:00.000Z
2021-06-08T21:50:37.000Z
src/multimodal/data/kitti/make_tensors.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
null
null
null
import multiprocessing import numpy as np from joblib import Parallel, delayed from keras.preprocessing import image from tqdm import tqdm from src.helpers import paths from src.helpers.flags import Verbose def _generate_frame(drive_date, drive_number, frame, verbose=Verbose.NORMAL, keep=False): input_path = path...
29.952381
89
0.757552
2dd9377ac318d496353312bb0745cbf8af5e96ba
1,305
py
Python
tf_dataset_hw.py
Bradan/deepwriting
1c2a9d030d691c88dfc70483adcccb671a313512
[ "MIT" ]
87
2018-01-31T02:16:19.000Z
2022-03-28T18:58:25.000Z
tf_dataset_hw.py
Bradan/deepwriting
1c2a9d030d691c88dfc70483adcccb671a313512
[ "MIT" ]
18
2017-12-26T11:16:47.000Z
2021-12-18T21:35:40.000Z
tf_dataset_hw.py
Bradan/deepwriting
1c2a9d030d691c88dfc70483adcccb671a313512
[ "MIT" ]
25
2018-02-04T10:04:03.000Z
2021-05-21T06:41:05.000Z
import tensorflow as tf from dataset_hw import * class HandWritingDatasetTF(HandWritingDataset): """ Tensorflow extension to HandWritingDataset class. """ def __init__(self, data_path, var_len_seq=None): super(HandWritingDatasetTF, self).__init__(data_path, var_len_seq) # Add tensorflo...
40.78125
121
0.747893
2dd9441c1c39cdc71539956700a411f0fc0cb3cc
14,676
py
Python
dj_cqrs/transport/rabbit_mq.py
RXcor/django-cqrs
5ff3dfaff5da0c88a858bc2f30b50f5404268161
[ "Apache-2.0" ]
52
2020-05-28T13:25:36.000Z
2022-03-05T12:31:45.000Z
dj_cqrs/transport/rabbit_mq.py
RXcor/django-cqrs
5ff3dfaff5da0c88a858bc2f30b50f5404268161
[ "Apache-2.0" ]
26
2020-07-30T08:17:13.000Z
2022-02-18T12:54:38.000Z
dj_cqrs/transport/rabbit_mq.py
RXcor/django-cqrs
5ff3dfaff5da0c88a858bc2f30b50f5404268161
[ "Apache-2.0" ]
15
2020-05-28T13:25:40.000Z
2022-03-07T04:14:36.000Z
# Copyright © 2021 Ingram Micro Inc. All rights reserved. import logging import time from datetime import timedelta from socket import gaierror from urllib.parse import unquote, urlparse from dj_cqrs.constants import DEFAULT_DEAD_MESSAGE_TTL, SignalType from dj_cqrs.controller import consumer from dj_cqrs.dataclasse...
37.060606
99
0.636209
2dd94c8c5ee9cb4f53a21e106eea34b7652f3451
1,056
py
Python
src/tryit_sets.py
hyperdriveguy/cse212-final-project
2dcb2eac22be54f42c74cf2efcc1b52c4813000b
[ "CC0-1.0" ]
null
null
null
src/tryit_sets.py
hyperdriveguy/cse212-final-project
2dcb2eac22be54f42c74cf2efcc1b52c4813000b
[ "CC0-1.0" ]
null
null
null
src/tryit_sets.py
hyperdriveguy/cse212-final-project
2dcb2eac22be54f42c74cf2efcc1b52c4813000b
[ "CC0-1.0" ]
null
null
null
# Initialize max attendance for different classes chemistry = {'Joe', 'Bob', 'Squilliam', 'YeeYee', 'Annathen', 'Leet'} parkour = {'Bruce Wayne', 'Peter Parker', 'Coney Hork'} # Initialize current attendance attendance = set() attendance.add('Annathen') # Challenge - Annathen left, remove her from attendance # Test...
22
73
0.733902
2dd999dae7256a4d6a8397d5fbad51d8bdd51fd7
460
py
Python
experiments/ashvin/vae/old/test.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/old/test.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/old/test.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
# import tensorflow as tf # import numpy as np # import mnist_data # import os from rlkit.torch.vae.vae import VAE # import plot_utils # import glob # import ss.path # import argparse from rlkit.launchers.arglauncher import run_variants def experiment(variant): m = VAE() for epoch in range(10): m.trai...
20.909091
52
0.702174
2dd9d074c60ef7537f76e69e88386c3355bcfd4f
11,098
py
Python
tap_list_providers/test/test_tweets.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
18
2018-12-06T01:46:37.000Z
2021-10-17T10:37:17.000Z
tap_list_providers/test/test_tweets.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
194
2018-11-04T12:50:49.000Z
2022-01-06T22:43:43.000Z
tap_list_providers/test/test_tweets.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
7
2019-03-18T05:36:06.000Z
2020-12-25T03:27:29.000Z
""" Test tweeting about beer. Doesn't test the most important rule: never tweet. """ from unittest.mock import patch from django.test import TestCase from celery import Task from celery.exceptions import Retry from beers.models import Beer from beers.test.factories import BeerFactory, ManufacturerFactory from taps....
38.401384
85
0.638493
2dd9ea2dc6bc25d8e5b5bbd96bb4131623a07d34
1,255
py
Python
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# 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 ...
34.861111
82
0.63745
2dda4b9816f93a8c36b9d2e738373ff8b33d03ce
4,914
py
Python
SCRAPE/Lib/site-packages/twisted/internet/_win32serialport.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/internet/_win32serialport.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/internet/_win32serialport.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# -*- test-case-name: twisted.internet.test.test_win32serialport -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Serial port support for Windows. Requires PySerial and pywin32. """ import win32event # type: ignore[import] import win32file # type: ignore[import] # system imports f...
31.299363
85
0.622507
2dda4d25bcf2a005051d0b5368db0c7bb1f039fb
12,057
py
Python
python/cudf/cudf/core/window/rolling.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/window/rolling.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
1
2020-02-01T14:20:00.000Z
2020-02-01T14:20:00.000Z
python/cudf/cudf/core/window/rolling.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
1
2020-09-24T04:31:05.000Z
2020-09-24T04:31:05.000Z
# Copyright (c) 2020, NVIDIA CORPORATION import itertools import numba import pandas as pd import cudf from cudf import _lib as libcudf from cudf.core import column from cudf.core.column.column import as_column from cudf.utils import cudautils class Rolling: """ Rolling window calculations. Parameters ...
29.77037
79
0.547566
2dda69e8de5b2e9759d67d278763d9c1c66e6604
18,647
py
Python
appengine/swarming/swarming_bot/bot_code/bot_auth.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/swarming_bot/bot_code/bot_auth.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/swarming_bot/bot_code/bot_auth.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Copyright 2016 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. import collections import contextlib import logging import threading import time from utils import auth_server import file_reader import remote_...
37.746964
80
0.706709
2dda6bc34802968538076111b5db52bf07ef9720
7,606
py
Python
market/migrations/0001_initial.py
DatalogiForAlle/MarketSim
7b501f585cea2d19ca5b3f927065003480954298
[ "MIT" ]
null
null
null
market/migrations/0001_initial.py
DatalogiForAlle/MarketSim
7b501f585cea2d19ca5b3f927065003480954298
[ "MIT" ]
104
2021-06-01T08:10:38.000Z
2021-09-07T11:30:19.000Z
market/migrations/0001_initial.py
DatalogiForAlle/MarketSim
7b501f585cea2d19ca5b3f927065003480954298
[ "MIT" ]
1
2022-02-24T14:04:03.000Z
2022-02-24T14:04:03.000Z
# Generated by Django 3.2.8 on 2022-01-12 18:56 from decimal import Decimal from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swap...
60.365079
163
0.62924
2dda7c43494083a205d724e94fbe80000c3f94f1
61,817
py
Python
ngraph/transformers/gpu/float_ew2.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/transformers/gpu/float_ew2.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/transformers/gpu/float_ew2.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2017-2018 Intel 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.apa...
37.374244
99
0.554831
2ddaa7267a41e52d19bd70a600205a441e0c8e16
7,512
py
Python
openpnm/models/phases/mixtures.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
1
2020-06-08T19:48:00.000Z
2020-06-08T19:48:00.000Z
openpnm/models/phases/mixtures.py
Jimmy-INL/OpenPNM
1546fa1ac2204443bde916f2037fac383c5069ae
[ "MIT" ]
null
null
null
openpnm/models/phases/mixtures.py
Jimmy-INL/OpenPNM
1546fa1ac2204443bde916f2037fac383c5069ae
[ "MIT" ]
null
null
null
import numpy as np def salinity(target, temperature='pore.temperature', concentration='pore.concentration'): r""" Calculates the salinity in g salt per kg of solution from concentration Parameter --------- target : OpenPNM Object The object for which these values are being ca...
36.823529
85
0.638978
2ddb13df689463639ccfa4dbfb0aa252e04d5562
225,614
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
44.499803
3,008
0.663669
2ddb18ae29372472ef3e227206b08b3139f0bb2f
12,120
py
Python
tensor2tensor/rl/trainer_model_based.py
shankharaj29/tensor2tensor
b89ba51a6fa9e0c20009cfb57ee8de04f7138392
[ "Apache-2.0" ]
1
2019-02-16T10:39:45.000Z
2019-02-16T10:39:45.000Z
tensor2tensor/rl/trainer_model_based.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
null
null
null
tensor2tensor/rl/trainer_model_based.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
31.237113
80
0.72962
2ddb431e09622e3659bf25974a13ba61e7ddd60b
14,010
py
Python
espnet/nets/pytorch_backend/rnn/encoders_selfatt.py
creatorscan/espnet-asrtts
e516601bd550aeb5d75ee819749c743fc4777eee
[ "Apache-2.0" ]
5
2021-04-17T13:12:20.000Z
2022-02-22T09:36:45.000Z
espnet/nets/pytorch_backend/rnn/encoders_selfatt.py
creatorscan/espnet-asrtts
e516601bd550aeb5d75ee819749c743fc4777eee
[ "Apache-2.0" ]
null
null
null
espnet/nets/pytorch_backend/rnn/encoders_selfatt.py
creatorscan/espnet-asrtts
e516601bd550aeb5d75ee819749c743fc4777eee
[ "Apache-2.0" ]
5
2020-02-24T08:13:54.000Z
2022-02-22T09:03:09.000Z
import logging import six import numpy as np import torch import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence from torch.nn.utils.rnn import pad_packed_sequence from espnet.nets.e2e_asr_common import get_vgg2l_odim from espnet.nets.pytorch_backend.nets_utils import make_pad_mask from e...
44.195584
119
0.635832
2ddb43a6acef56b5f450f481ea19ad70c829d7f3
1,004
py
Python
docs/sphinx/ext/breathe/breathe/renderer/rst/doxygen/target.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
7
2017-11-13T11:02:59.000Z
2022-02-05T11:49:35.000Z
docs/sphinx/ext/breathe/breathe/renderer/rst/doxygen/target.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
docs/sphinx/ext/breathe/breathe/renderer/rst/doxygen/target.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
6
2017-10-19T13:34:08.000Z
2020-11-30T13:14:47.000Z
class TargetHandler(object): def __init__(self, project_info, node_factory, document): self.project_info = project_info self.node_factory = node_factory self.document = document def create_target(self, refid): target = self.node_factory.target(refid=refid, ids=[refid], names...
24.487805
88
0.664343
2ddb557c4043d096aa4589c0d9fa6e7867fd2895
5,164
py
Python
mplStyle/types/property/test/test_Instance.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
39
2015-03-08T23:05:01.000Z
2022-02-07T16:03:35.000Z
mplStyle/types/property/test/test_Instance.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
null
null
null
mplStyle/types/property/test/test_Instance.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
23
2015-03-08T19:56:59.000Z
2021-07-15T15:16:26.000Z
#=========================================================================== # # Copyright (c) 2014, California Institute of Technology. # U.S. Government Sponsorship under NASA Contract NAS7-03001 is # acknowledged. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
40.34375
81
0.54938
2ddbaa20680c3027904f51df863af4e9e7e3da5b
1,106
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/models/_container_registry_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/models/_container_registry_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/models/_container_registry_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
33.515152
94
0.640145
2ddbdb59c9480b1fc8604f9da4ffcba03b05a49d
18,571
py
Python
vplexapi-7.0.0/vplexapi/models/storage_volume.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2020-12-01T11:22:13.000Z
2021-02-16T17:38:42.000Z
vplexapi-7.0.0/vplexapi/models/storage_volume.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0/vplexapi/models/storage_volume.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2021-01-01T21:07:55.000Z
2021-02-20T07:07:40.000Z
# coding: utf-8 """ VPlex REST API A definition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from vplexapi.models.storage_array_family import StorageArr...
29.062598
451
0.62253
2ddc0c01dfd09f75fd3a202b19353650963803b6
3,828
py
Python
applications/Rekall/modules/api/client.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
21
2018-02-16T17:43:59.000Z
2021-12-29T12:08:28.000Z
applications/Rekall/modules/api/client.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
12
2017-11-01T14:54:29.000Z
2018-02-01T22:02:12.000Z
applications/Rekall/modules/api/client.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
8
2018-10-08T03:48:00.000Z
2022-03-31T12:13:01.000Z
"""Methods for accessing clients.""" from __future__ import absolute_import import collections import datetime import json import humanize import time from api import audit from api import users from api import utils def search(current, query=None): if not query: raise ValueError("query must be provided...
31.636364
80
0.65256
2ddc2ba562117d034660df71c8df9009c43c7c8a
3,486
py
Python
src/apex/kiss/kiss_serial.py
Syncleus/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
13
2016-03-23T09:35:13.000Z
2019-09-23T09:39:37.000Z
src/apex/kiss/kiss_serial.py
freemo/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
31
2016-09-21T10:29:36.000Z
2016-09-30T12:11:28.000Z
src/apex/kiss/kiss_serial.py
freemo/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
5
2016-03-27T21:32:09.000Z
2022-01-13T17:04:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """KISS Core Classes.""" # These imports are for python3 compatibility inside python2 from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import serial import six from apex.kiss import constants as...
31.405405
95
0.660069
2ddc5ff06020ccf22a237b0340074f9692a6eb7c
4,067
py
Python
nbparameterise/code.py
RicardoHS/nbparameterise
966560d0414304f8a7a82f6fa6b2733ed435f6a6
[ "MIT" ]
null
null
null
nbparameterise/code.py
RicardoHS/nbparameterise
966560d0414304f8a7a82f6fa6b2733ed435f6a6
[ "MIT" ]
null
null
null
nbparameterise/code.py
RicardoHS/nbparameterise
966560d0414304f8a7a82f6fa6b2733ed435f6a6
[ "MIT" ]
null
null
null
import copy import importlib import re from warnings import warn from nbconvert.preprocessors import ExecutePreprocessor class Parameter(object): def __init__(self, name, vtype, value=None, metadata=None): self.name = name self.type = vtype self.value = value self.metadata = metada...
34.176471
85
0.65552
2ddc868dd7cc9d63eb0462ec8b861480e52d3263
772
py
Python
eICU_preprocessing/run_all_preprocessing.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
null
null
null
eICU_preprocessing/run_all_preprocessing.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
null
null
null
eICU_preprocessing/run_all_preprocessing.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
null
null
null
from eICU_preprocessing.timeseries import timeseries_main from eICU_preprocessing.diagnoses import diagnoses_main from eICU_preprocessing.flat_and_labels import flat_and_labels_main from eICU_preprocessing.split_train_test import split_train_test import os import json with open('paths.json', 'r') as f: eICU_path =...
35.090909
67
0.762953
2ddc96c9fb4fb92b3648bbb59c62f4eb46289f47
4,060
py
Python
alignment/heatmapReg/metric.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
12,377
2017-12-04T02:46:57.000Z
2022-03-31T16:48:31.000Z
alignment/heatmapReg/metric.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
1,851
2017-12-05T05:41:23.000Z
2022-03-30T13:06:22.000Z
alignment/heatmapReg/metric.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
4,198
2017-12-05T02:57:19.000Z
2022-03-30T10:29:37.000Z
import mxnet as mx import numpy as np import math import cv2 from config import config class LossValueMetric(mx.metric.EvalMetric): def __init__(self): self.axis = 1 super(LossValueMetric, self).__init__('lossvalue', axis=self.axis, ...
37.592593
79
0.44803
2ddcabfc8fe7c161ac9013f43110ec741bcc5abf
966
py
Python
WebApp/app.py
NullOsama/Dog-classification
ac299e1a7fd4a5573b43dbc02b21250228b7cee1
[ "MIT" ]
null
null
null
WebApp/app.py
NullOsama/Dog-classification
ac299e1a7fd4a5573b43dbc02b21250228b7cee1
[ "MIT" ]
null
null
null
WebApp/app.py
NullOsama/Dog-classification
ac299e1a7fd4a5573b43dbc02b21250228b7cee1
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for from PIL import Image import numpy as np import os from util import load_model, predict model = load_model() app = Flask(__name__) uploads_dir = 'static/images' os.makedirs(uploads_dir, exist_ok=True) @app.route('/') def home(): r...
26.833333
89
0.668737
2ddcee9aa18c5f30ad45b42eda300bd41d9dc4ff
10,876
py
Python
src/main/python/extract_results.py
utcompling/textgrounder
45d664b3a8ec1bdef54acadbde6eb4ce83c75e33
[ "Apache-2.0" ]
40
2015-01-06T07:38:15.000Z
2021-02-16T19:14:39.000Z
src/main/python/extract_results.py
utcompling/textgrounder
45d664b3a8ec1bdef54acadbde6eb4ce83c75e33
[ "Apache-2.0" ]
null
null
null
src/main/python/extract_results.py
utcompling/textgrounder
45d664b3a8ec1bdef54acadbde6eb4ce83c75e33
[ "Apache-2.0" ]
10
2015-01-06T01:19:10.000Z
2021-11-11T14:33:22.000Z
#!/usr/bin/env python # Extract results from a number of runs. Converted from shell script # 'tg-extract-results'. The intent was to speed things up but unfortunately # it doesn't always work. It seems the majority of the time is spent reading # the file from disk, and that's the same for both versions. However, it # ...
30.897727
96
0.573097
2ddd0e5ddf71757a439434f3b8bca7100187a28b
2,032
py
Python
tests/mdts/tests/utils/utils_test.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
tests/mdts/tests/utils/utils_test.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
tests/mdts/tests/utils/utils_test.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2018-10-25T05:52:05.000Z
2018-10-25T05:52:05.000Z
# Copyright 2014 Midokura SARL # # 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...
36.285714
74
0.664862
2ddd0ef0acea509b8d768a4742b46952dd6af200
3,352
py
Python
src/testlinakdeskapp/gui/main_window_example.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
121
2018-09-19T20:10:21.000Z
2022-03-31T08:07:33.000Z
src/testlinakdeskapp/gui/main_window_example.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
13
2020-02-19T15:58:37.000Z
2022-03-05T03:20:42.000Z
src/testlinakdeskapp/gui/main_window_example.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
12
2020-02-13T23:55:30.000Z
2022-01-30T15:11:31.000Z
#!/usr/bin/python3 # # MIT License # # Copyright (c) 2017 Arkadiusz Netczuk <dev.arnet@gmail.com> # # 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 limi...
30.198198
110
0.729415
2ddd13f66f0fb28f64567f9486fc963b089bcb58
41,759
py
Python
twisted/web/test/test_xml.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/twisted/web/test/test_xml.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/twisted/web/test/test_xml.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2018-11-07T12:52:07.000Z
2018-11-07T12:52:07.000Z
# -*- test-case-name: twisted.web.test.test_xml -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Some fairly inadequate testcases for Twisted XML support. """ from twisted.trial.unittest import TestCase from twisted.web import sux from twisted.web import microdom from twisted.web import...
38.59427
90
0.582868
2ddd6f65cbf749ae43e73d40249a3c37ea9a64c3
1,219
py
Python
settings/themeMenu.py
GingerNinja2962/wtc-lms-GUI
e65f5aa64919649690059da37f7bd608b823ca6a
[ "Apache-2.0" ]
2
2021-04-08T11:08:12.000Z
2021-05-20T11:02:26.000Z
settings/themeMenu.py
GingerNinja2962/wtc-lms-GUI
e65f5aa64919649690059da37f7bd608b823ca6a
[ "Apache-2.0" ]
null
null
null
settings/themeMenu.py
GingerNinja2962/wtc-lms-GUI
e65f5aa64919649690059da37f7bd608b823ca6a
[ "Apache-2.0" ]
1
2021-04-08T11:08:15.000Z
2021-04-08T11:08:15.000Z
import PySimpleGUI as sg from classTemplates.windowTemplate import baseWindowClass class themeMenuClass(baseWindowClass): """ Create a window that allows you to choose a theme to change to. """ def __init__(self): """ The constructor for themeMenuClass. """ super().__i...
29.731707
75
0.555373
2ddd70dec3b99d30dc59e4cda305270944deceda
41,462
py
Python
CADRE/comm.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
6
2015-05-13T23:44:26.000Z
2021-05-30T07:23:30.000Z
CADRE/comm.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
4
2018-07-24T20:10:52.000Z
2018-09-07T17:16:51.000Z
CADRE/comm.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
14
2015-07-21T17:41:42.000Z
2020-07-31T09:49:09.000Z
""" Communications Discpline for CADRE """ import os from six.moves import range import numpy as np import scipy.sparse from MBI import MBI from openmdao.core.explicitcomponent import ExplicitComponent from CADRE.kinematics import fixangles, computepositionspherical, \ computepositionsphericaljacobian, computep...
32.958665
96
0.46937
2ddd953a7d1360c261d4c944740776a08a92590e
16,503
py
Python
Tools/scons/scons-local/SCons/Job.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Job.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Job.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""SCons.Job This module defines the Serial and Parallel classes that execute tasks to complete a build. The Jobs class provides a higher level interface to start, stop, and wait on jobs. """ # # Copyright (c) 2001 - 2017 The SCons Foundation # # Permission is hereby granted, free of charge, to any person...
37.850917
99
0.564261
2dddb6b2cf1eadb11a3d281dc5f66831d8a61f0d
537
py
Python
kaprekarConstant.py
anishmo99/DailyInterviewPro
d8724e8feec558ab1882d22c9ca63b850b767753
[ "MIT" ]
1
2020-08-09T07:07:53.000Z
2020-08-09T07:07:53.000Z
kaprekarConstant.py
anishmo99/DailyInterviewPro
d8724e8feec558ab1882d22c9ca63b850b767753
[ "MIT" ]
null
null
null
kaprekarConstant.py
anishmo99/DailyInterviewPro
d8724e8feec558ab1882d22c9ca63b850b767753
[ "MIT" ]
1
2020-06-06T20:56:33.000Z
2020-06-06T20:56:33.000Z
def kaprekar(n): if n == 0: return -1 counter = 0 while n != 6174: counter += 1 asc, desc = 0, 0 digits = [] for i in range(4): digits.append(n % 10) n //= 10 digits.sort() for i in range(len(digits)): asc = asc * 10 + digits[i] digits.sort(reverse = True) for i in range(len(digits))...
14.131579
31
0.564246
2dddbf3080baddecba9be3e14c94c671cfa1790c
1,821
py
Python
AlgorithmsPractice/python/81_medium_Search in Rotated Sorted Array II.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
AlgorithmsPractice/python/81_medium_Search in Rotated Sorted Array II.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
AlgorithmsPractice/python/81_medium_Search in Rotated Sorted Array II.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
""" Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,0,1,2,2,5,6] might become [2,5,6,0,0,1,2]). You are given a target value to search. If found in the array return true, otherwise return false. Example 1: Input: nums = [2,5,6,0,0,1,2], target = 0 Output: true...
25.647887
98
0.545854
2dddcef604e2caf4cb1d0bf8890eb0ca517ca9a6
146,591
py
Python
yaksh/test_views.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
yaksh/test_views.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
yaksh/test_views.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
from datetime import datetime import pytz import os import json try: from StringIO import StringIO as string_io except ImportError: from io import BytesIO as string_io import zipfile import shutil from textwrap import dedent from django.contrib.auth.models import Group from django.contrib.auth import authentic...
36.989907
99
0.583105
2dddcfdfe22b053fe12eb2141f557f3da661ef5f
2,306
bzl
Python
defs/proto.bzl
OpenCannabis/Protocol
7d00bcac63eb4bfbad1274b9c98eaf25c7e2df8c
[ "MIT" ]
5
2018-03-29T20:03:53.000Z
2021-11-14T05:44:23.000Z
defs/proto.bzl
CookiesCo/Protocol
191559550bf204fe6b9144eddbfca3ffe0a166ba
[ "MIT" ]
3
2020-08-07T01:01:05.000Z
2020-09-05T22:19:40.000Z
defs/proto.bzl
CookiesCo/Protocol
191559550bf204fe6b9144eddbfca3ffe0a166ba
[ "MIT" ]
1
2020-08-07T02:57:12.000Z
2020-08-07T02:57:12.000Z
load("@io_bazel_rules_closure//closure:defs.bzl", _closure_proto_library = "closure_proto_library") _JSPROTO_POSTFIX = "jsproto" _JAVAPROTO_POSTFIX = "java_proto" _CLOSUREPROTO_POSTFIX = "closure_proto" _native_proto = native.proto_library _native_cc_proto = native.cc_proto_library _native_java_proto = native.j...
28.825
120
0.708153
2dde086879a9622a47bb308d40f4060c6285fc31
4,449
py
Python
train_procgen/train.py
MandiZhao/train-procgen
2c3e1d34aaeab7598cf859e0f9137552a3ce27cb
[ "MIT" ]
null
null
null
train_procgen/train.py
MandiZhao/train-procgen
2c3e1d34aaeab7598cf859e0f9137552a3ce27cb
[ "MIT" ]
null
null
null
train_procgen/train.py
MandiZhao/train-procgen
2c3e1d34aaeab7598cf859e0f9137552a3ce27cb
[ "MIT" ]
null
null
null
""" NOTE: run_09 is continuting from run_08!!! python train_procgen/train.py -id 3 --num_levels 50 """ import os from os.path import join import json import tensorflow as tf from baselines.ppo2 import ppo2 from baselines.common.models import build_impala_cnn from baselines.common.mpi_util import setup_mpi_gpus from pr...
32.713235
159
0.685772
2dde0a231c953b71086fa7e2551f8265ed9cce4f
1,268
py
Python
src/apps/productividad/forms.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/productividad/forms.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/productividad/forms.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# coding: utf-8 # app: apps.productividad.forms # date: 26 Aug 2018 # author: Javier Sanchez Toledano <js.toledano@me.com> """formulario para subir el archivo de cifras""" from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Submit, HTML, Div, Field, Button from crispy_forms.bootstrap imp...
35.222222
102
0.604101
2dde2696117aa6b35ced1f27fd48e5bad86349ee
2,089
py
Python
jenkinsapi/custom_exceptions.py
ifwe/jenkinsapi
31a7fbb07efcd48e226f7dcf643fd2a2625416c0
[ "MIT" ]
1
2015-01-12T14:15:59.000Z
2015-01-12T14:15:59.000Z
jenkinsapi/custom_exceptions.py
moustuk/jenkinsapi-1
d18c1e669965c209093763f3295f79c9d3ccdeea
[ "MIT" ]
null
null
null
jenkinsapi/custom_exceptions.py
moustuk/jenkinsapi-1
d18c1e669965c209093763f3295f79c9d3ccdeea
[ "MIT" ]
null
null
null
""" Module for custom_exceptions specialized for jenkinsapi """ class JenkinsAPIException(Exception): """ Base class for all errors """ pass class NotFound(JenkinsAPIException): """ Resource cannot be found """ pass class ArtifactsMissing(NotFound): """ Cannot find a build ...
16.193798
71
0.642891
2dde4a57476ddc5d6093e1b9585705f614b465b8
740
py
Python
PlayArea/screen/screen5.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
PlayArea/screen/screen5.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
PlayArea/screen/screen5.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
from tkinter import * from frames import * # pixel data # Setup --- root = Tk() root.wm_title('Hack') root.iconbitmap('favicon.ico') width = 512 height = 256 img = PhotoImage( width = width, height = height ) label = Label(root) label.pack() label.config( image = img ) # Pixel data --- # See imported file ... ...
15.416667
70
0.659459
2dde4b7b0dbf27de2d63a27b9574be6860aebf09
1,300
py
Python
alipay/aop/api/response/KoubeiCateringKmsBakingBatchqueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/KoubeiCateringKmsBakingBatchqueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/KoubeiCateringKmsBakingBatchqueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.KmsBakingSalesForecastDTO import KmsBakingSalesForecastDTO class KoubeiCateringKmsBakingBatchqueryResponse(AlipayResponse): def __init__(self): super(Kou...
39.393939
114
0.735385
2dde52b11acc4b016cc4667fc235be1db839ce38
9,519
py
Python
jackal/views/base.py
joyongjin/Jackal
63d637e92228d669cf8a6fc4b219a8c08471f5e3
[ "MIT" ]
6
2018-11-09T05:48:42.000Z
2020-06-25T07:14:40.000Z
jackal/views/base.py
jrog612/Jackal
63d637e92228d669cf8a6fc4b219a8c08471f5e3
[ "MIT" ]
1
2020-05-16T16:06:02.000Z
2020-05-16T16:06:02.000Z
jackal/views/base.py
jrog612/Jackal
63d637e92228d669cf8a6fc4b219a8c08471f5e3
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework.views import APIView from jackal import exceptions from jackal.filters import JackalQueryFilter from jackal.helpers.data_helper import JackalDictMapper from jackal.inspectors import Inspector from jackal.paginators import JackalPaginator from jackal.sett...
31.73
92
0.657947
2dde5a4aabb8877bbba9ac8bf377617a65a6f3d4
37,145
py
Python
dnacentersdk/api/v2_1_1/tag.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v2_1_1/tag.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v2_1_1/tag.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Tag API wrapper. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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 ...
37.070858
78
0.563656
2dde6511e1fe91211ef58f672a38ed891b18a3a2
39,933
py
Python
qstkutil/DataAccess.py
grahesh/Stock-Market-Event-Analysis
57dc06e087c29b9c134df8886c97377b3d99f05b
[ "BSD-3-Clause" ]
1
2015-12-04T14:40:33.000Z
2015-12-04T14:40:33.000Z
qstkutil/DataAccess.py
grahesh/Stock-Market-Event-Analysis
57dc06e087c29b9c134df8886c97377b3d99f05b
[ "BSD-3-Clause" ]
null
null
null
qstkutil/DataAccess.py
grahesh/Stock-Market-Event-Analysis
57dc06e087c29b9c134df8886c97377b3d99f05b
[ "BSD-3-Clause" ]
null
null
null
''' (c) 2011, 2012 Georgia Tech Research Corporation This source code is released under the New BSD license. Please see http://wiki.quantsoftware.org/index.php?title=QSTK_License for license details. Created on Jan 1, 2011 @author: Shreyas Joshi @contact: shreyasj@gatech.edu @summary: Contains tutorial for backteste...
53.031873
7,958
0.538126
2dde8b7655383a6188b1d691267cfbcad911015b
2,897
py
Python
backend/tests/config/test_config.py
bayesimpact/tds-frontend
a4f47e384ef4fe4dc43c30423a1713c2c93dc87f
[ "Apache-2.0" ]
15
2018-05-08T23:54:38.000Z
2020-03-07T20:46:37.000Z
backend/tests/config/test_config.py
akegan/encompass
85852a91c646c62e8cd05f9c2b0c7cf0079ea7f2
[ "Apache-2.0" ]
297
2018-02-05T19:04:26.000Z
2022-02-12T07:52:37.000Z
backend/tests/config/test_config.py
bayesimpact/tds
a4f47e384ef4fe4dc43c30423a1713c2c93dc87f
[ "Apache-2.0" ]
6
2018-05-21T19:51:15.000Z
2019-03-21T19:20:27.000Z
"""Tests for methods of the Config class.""" import json from backend.config import config import mock import pytest class TestConfig(): """Tests for the Config class methods.""" def test_load_config_from_path(self): """Verify that a Config object can be properly instantiated from a filepath.""" ...
34.488095
98
0.641698
2ddee9b5ae5cb9506bf171cafa61400eac643f30
2,296
py
Python
tests/test_utils.py
humrochagf/revelation
ca335db53b293ea8598e1976ef2a74be92596e5b
[ "MIT" ]
60
2018-03-31T13:26:59.000Z
2021-11-22T11:47:11.000Z
tests/test_utils.py
humrochagf/revelation
ca335db53b293ea8598e1976ef2a74be92596e5b
[ "MIT" ]
125
2018-06-21T20:28:31.000Z
2021-09-04T03:06:09.000Z
tests/test_utils.py
humrochagf/revelation
ca335db53b293ea8598e1976ef2a74be92596e5b
[ "MIT" ]
13
2018-04-16T15:53:38.000Z
2022-03-24T16:26:47.000Z
from pathlib import Path import pytest from revelation.utils import extract_file, make_presentation, move_and_replace from .conftest import Presentation def test_helper_move_and_replace(presentation: Presentation): dst_dir = presentation.parent / "destination" dst_dir.mkdir() dst_file = dst_dir / "sli...
28.7
78
0.743031
2ddef9209476242b4d3009b214838dc256116215
5,512
py
Python
erp/urls.py
maxtastu/acceslibre
daba86a34ed619914780efbefaf4af5cb2f3a936
[ "MIT" ]
null
null
null
erp/urls.py
maxtastu/acceslibre
daba86a34ed619914780efbefaf4af5cb2f3a936
[ "MIT" ]
null
null
null
erp/urls.py
maxtastu/acceslibre
daba86a34ed619914780efbefaf4af5cb2f3a936
[ "MIT" ]
null
null
null
from django.contrib.auth import views as auth_views from django.urls import path, include from core.cache import cache_per_user from erp import schema, views APP_CACHE_TTL = 60 * 5 EDITORIAL_CACHE_TTL = 60 * 60 handler403 = views.handler403 handler404 = views.handler404 handler500 = views.handler500 def cache_app_...
29.956522
88
0.57021
2ddf02c6ce7417adb13cf7918b9ac21a375b54b9
896
py
Python
Lib/site-packages/kivy/tests/test_video.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
9
2016-09-03T07:20:01.000Z
2020-05-21T14:44:48.000Z
Lib/site-packages/kivy/tests/test_video.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
1
2017-05-30T20:45:15.000Z
2017-05-30T20:45:15.000Z
Lib/site-packages/kivy/tests/test_video.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
4
2016-09-10T15:27:54.000Z
2020-03-27T22:05:31.000Z
import unittest class AnimationTestCase(unittest.TestCase): def test_video_unload(self): # fix issue https://github.com/kivy/kivy/issues/2275 # AttributeError: 'NoneType' object has no attribute 'texture' from kivy.uix.video import Video from kivy.clock import Clock from ...
33.185185
70
0.625
2ddf34b3ac58cd6ddf6dcee7ae5e68c910371312
22,116
py
Python
loadlimit/channel.py
arielmakestuff/loadlimit
70d3d23eecfe7922699098ea4901cc8673d14576
[ "MIT" ]
null
null
null
loadlimit/channel.py
arielmakestuff/loadlimit
70d3d23eecfe7922699098ea4901cc8673d14576
[ "MIT" ]
5
2016-11-28T16:59:44.000Z
2017-03-18T17:10:40.000Z
loadlimit/channel.py
arielmakestuff/loadlimit
70d3d23eecfe7922699098ea4901cc8673d14576
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # loadlimit/channel.py # Copyright (C) 2016 authors and contributors (see AUTHORS file) # # This module is released under the MIT License. """Define data channels""" # ============================================================================ # Imports # =====================================...
32.715976
78
0.536444
2ddf41d5c2cece7253fdaeca5192b1337355eed0
556
py
Python
tanacompendium/trials/api/plot/filters.py
nkoech/tanacompendium
b4fd81b23f2c8263735806765d93eb4a70be8aba
[ "MIT" ]
null
null
null
tanacompendium/trials/api/plot/filters.py
nkoech/tanacompendium
b4fd81b23f2c8263735806765d93eb4a70be8aba
[ "MIT" ]
null
null
null
tanacompendium/trials/api/plot/filters.py
nkoech/tanacompendium
b4fd81b23f2c8263735806765d93eb4a70be8aba
[ "MIT" ]
null
null
null
from rest_framework.filters import ( FilterSet ) from trialscompendium.trials.models import Plot class PlotListFilter(FilterSet): """ Filter query list from plot database """ class Meta: model = Plot fields = {'id': ['exact', 'in'], 'trial_id': ['iexact', 'in', 'i...
26.47619
63
0.507194
2ddfa0be55fddccb1181f030dd5d52b8c8062813
2,395
py
Python
my_scripts/test_render.py
SilverKnightVGM/adversarial-robustness-toolbox
9c37bed005cfe09f04dfed40c0886724b083b975
[ "MIT" ]
null
null
null
my_scripts/test_render.py
SilverKnightVGM/adversarial-robustness-toolbox
9c37bed005cfe09f04dfed40c0886724b083b975
[ "MIT" ]
null
null
null
my_scripts/test_render.py
SilverKnightVGM/adversarial-robustness-toolbox
9c37bed005cfe09f04dfed40c0886724b083b975
[ "MIT" ]
null
null
null
import os import subprocess import platform import shutil img_size = 320 render_util_folder = os.getcwd() if (platform.system() == "Windows"): blender_folder = r"D:\Users\Enzo\Desktop\poke102938\School\RIT No Sync\Research\GAN\blender-2.78c-windows64" dataset_folder = r"D:\Users\Enzo\Desktop\poke102938\School...
38.015873
136
0.656367
2ddff745ae94d1460a63730fbcc4de7aac8692c3
925,050
py
Python
phonenumbers/geodata/data13.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
phonenumbers/geodata/data13.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
phonenumbers/geodata/data13.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
"""Per-prefix data, mapping each prefix to a dict of locale:name. Auto-generated file, do not edit by hand. """ from ..util import u # Copyright (C) 2011-2016 The Libphonenumber Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
92.292727
139
0.649198
2de009e6cc2b5864aea4114806a33729403e4a28
3,784
py
Python
oscar/lib/python2.7/site-packages/django/contrib/gis/gdal/libgdal.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/gdal/libgdal.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/gdal/libgdal.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import logging import os import re from ctypes import CDLL, CFUNCTYPE, c_char_p, c_int from ctypes.util import find_library from django.contrib.gis.gdal.error import GDALException from django.core.exceptions import ImproperlyConfigured logger = logging.getLogger('dj...
29.795276
100
0.688425
2de0128104eb401dd635d674ff3259ad1e41c712
4,200
py
Python
m2-modified/ims/einstein/iscsi/mock.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
null
null
null
m2-modified/ims/einstein/iscsi/mock.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
null
null
null
m2-modified/ims/einstein/iscsi/mock.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
null
null
null
import ims.exception.iscsi_exceptions as iscsi_exceptions from ims.interfaces.iscsi import ISCSI class MockISCSI(ISCSI): """ This is mock class that implements most of the abstract methods for ISCSI class. It returns mostly true or success or some exception. This spoofs the requests coming in. This sh...
31.343284
79
0.619048
2de03fd694866824aac9a57ae70fd0497f584180
1,159
py
Python
guru/contrib/sites/migrations/0003_set_site_domain_and_name.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
null
null
null
guru/contrib/sites/migrations/0003_set_site_domain_and_name.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
1
2021-02-26T02:49:34.000Z
2021-02-26T02:49:34.000Z
guru/contrib/sites/migrations/0003_set_site_domain_and_name.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
1
2020-02-24T18:09:00.000Z
2020-02-24T18:09:00.000Z
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
29.717949
129
0.600518
2de05e39c6f8560bb619cd4b61af4a9bf4d3886d
5,557
py
Python
salt/modules/nagios_rpc.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/modules/nagios_rpc.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/modules/nagios_rpc.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Check Host & Service status from Nagios via JSON RPC. .. versionadded:: Beryllium ''' # Import python libs from __future__ import absolute_import import logging # Import Salt libs # pylint: disable=import-error,no-name-in-module,redefined-builtin import salt.ext.six.moves.http_client fro...
28.208122
117
0.601943
2de071057303f2623657a3959a56e619bfc58f84
9,292
py
Python
rpkm_correlate.py
eliplan312/MetaPathways-Pathway-RPKM-Correlator
4587121ff42358459af88bb34fe9478b99557292
[ "CC0-1.0" ]
null
null
null
rpkm_correlate.py
eliplan312/MetaPathways-Pathway-RPKM-Correlator
4587121ff42358459af88bb34fe9478b99557292
[ "CC0-1.0" ]
null
null
null
rpkm_correlate.py
eliplan312/MetaPathways-Pathway-RPKM-Correlator
4587121ff42358459af88bb34fe9478b99557292
[ "CC0-1.0" ]
null
null
null
""" rpkm_correlate.py: Library / script to correlate / combine RPKM data values with pathway information """ __author__ = "Eli Kaplan" __email__ = "eli.kaplan@alumni.ubc.ca" __license__ = "CC0 - No rights reserved. See LICENSE" import csv import sys def loadPathwayInfoFromFile(filename, csv_separator): ...
40.051724
158
0.705984
2de0a23e52569c0a221d23d1d84d03955e2e6176
2,435
py
Python
RNNS/utils/gloveMake.py
CenIII/Text-style-transfer-DeleteRetrieve
2b7aa017765dcae65b42fc94d3ccaddc57ac8661
[ "MIT" ]
null
null
null
RNNS/utils/gloveMake.py
CenIII/Text-style-transfer-DeleteRetrieve
2b7aa017765dcae65b42fc94d3ccaddc57ac8661
[ "MIT" ]
null
null
null
RNNS/utils/gloveMake.py
CenIII/Text-style-transfer-DeleteRetrieve
2b7aa017765dcae65b42fc94d3ccaddc57ac8661
[ "MIT" ]
null
null
null
import bcolz import numpy as np import pickle import os # words = [] # idx = 0 # word2idx = {} # vectors = bcolz.carray(np.zeros(1), rootdir=f'/Users/CenIII/Downloads/glove.twitter.27B/glove.twitter.27B.100d.dat', mode='w') # with open(f'/Users/CenIII/Downloads/glove.twitter.27B/glove.twitter.27B.100d.txt', 'rb') as ...
31.623377
152
0.662012
2de0e128540dbf252ab4bc77bdec3db7485bbb7a
5,337
py
Python
phr/catalogo/models.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/catalogo/models.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/catalogo/models.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# coding=utf-8 from django.db import models class CatalogoCIE(models.Model): id_ciex = models.CharField(max_length=10, unique=True) desc_ciex = models.TextField(null=False, blank=False) id_sexo = models.CharField(max_length=20, null=True, blank=True) id_tipedad_min = models.CharField(max_length=10, nu...
38.121429
107
0.731497
2de0e212c92773be3f96b6aca1f10ddfd7bb004b
3,105
py
Python
crimsobot/utils/guess_leaderboard.py
the-garlic-os/crimsoBOT
e0831a138bebcfcecae5b257fdd94e16e3ac75c7
[ "MIT" ]
11
2020-06-28T15:18:13.000Z
2022-02-05T23:09:20.000Z
crimsobot/utils/guess_leaderboard.py
the-garlic-os/crimsoBOT
e0831a138bebcfcecae5b257fdd94e16e3ac75c7
[ "MIT" ]
18
2020-03-24T03:18:12.000Z
2022-03-12T01:07:29.000Z
crimsobot/utils/guess_leaderboard.py
h-anjru/crimsoBOT
8e678a6408ae99e740abfc8ab337543c666c1fb1
[ "MIT" ]
6
2020-05-08T19:35:49.000Z
2022-02-05T23:09:21.000Z
import collections from typing import List from discord import Embed from discord.ext import commands from crimsobot.models.guess_statistic import GuessStatistic from crimsobot.utils.tools import crimbed PLACES_PER_PAGE = 10 Leader = collections.namedtuple('Leader', ['user_id', 'value']) class GuessLeaderboard: ...
34.5
112
0.593237
2de0f5d3c90cb4a75284f2c724eeccae968e5dcf
1,667
py
Python
tests/test_mathfun.py
basaks/revrand
4c1881b6c1772d2b988518e49dde954f165acfb6
[ "Apache-2.0" ]
62
2015-11-06T00:45:21.000Z
2022-03-21T08:08:29.000Z
tests/test_mathfun.py
basaks/revrand
4c1881b6c1772d2b988518e49dde954f165acfb6
[ "Apache-2.0" ]
112
2015-11-05T06:47:16.000Z
2021-06-28T20:07:26.000Z
tests/test_mathfun.py
basaks/revrand
4c1881b6c1772d2b988518e49dde954f165acfb6
[ "Apache-2.0" ]
16
2016-04-10T08:54:07.000Z
2021-04-27T11:43:53.000Z
from __future__ import division import numpy as np import revrand.mathfun.special as tfms import revrand.mathfun.linalg as la def test_logsumexp(): X = np.random.randn(10, 3) # Axis 0 lse_actual = np.log(np.sum(np.exp(X), axis=0)) lse_test = tfms.logsumexp(X, axis=0) assert np.allclose(lse_ac...
20.580247
72
0.629874
2de106cfdd32a93a5cfd0049e1fe8bcd7cc04f71
2,983
py
Python
registration/views.py
akvo/django-registration
d1ff9eba18854fc41892de5a16562db77b93a25a
[ "BSD-3-Clause" ]
1
2015-09-18T12:25:22.000Z
2015-09-18T12:25:22.000Z
registration/views.py
akvo/django-registration
d1ff9eba18854fc41892de5a16562db77b93a25a
[ "BSD-3-Clause" ]
null
null
null
registration/views.py
akvo/django-registration
d1ff9eba18854fc41892de5a16562db77b93a25a
[ "BSD-3-Clause" ]
null
null
null
""" Views which allow users to create and activate accounts. """ from django.shortcuts import redirect from django.views.generic.base import TemplateView from django.views.generic.edit import FormView from registration import signals from registration.forms import RegistrationForm class RegistrationView(FormView):...
30.752577
70
0.616158
2de10961a3b909a7a26d9b306526ac35bbd6baac
22,767
py
Python
eval.py
david8862/tf-keras-simple-baselines-keypoint-detection
091ab3fde4cecaf35a6582148fbf1bd4247d69d5
[ "MIT" ]
null
null
null
eval.py
david8862/tf-keras-simple-baselines-keypoint-detection
091ab3fde4cecaf35a6582148fbf1bd4247d69d5
[ "MIT" ]
null
null
null
eval.py
david8862/tf-keras-simple-baselines-keypoint-detection
091ab3fde4cecaf35a6582148fbf1bd4247d69d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Calculate PCK for Simple Baselines model on validation dataset """ import os, argparse, json import numpy as np import operator from operator import mul from functools import reduce from PIL import Image import matplotlib.pyplot as plt from tqdm import tqdm from tenso...
36.780291
199
0.676725
2de140450becf6591a54a0d4f29ffa862aa483a5
9,488
py
Python
LeetCode/36-Valid-Sudoku.py
PyroGenesis/Comprehensive-Coding-Solutions
46684c07f16e35a779c075946b1b96956f2797e8
[ "MIT" ]
null
null
null
LeetCode/36-Valid-Sudoku.py
PyroGenesis/Comprehensive-Coding-Solutions
46684c07f16e35a779c075946b1b96956f2797e8
[ "MIT" ]
null
null
null
LeetCode/36-Valid-Sudoku.py
PyroGenesis/Comprehensive-Coding-Solutions
46684c07f16e35a779c075946b1b96956f2797e8
[ "MIT" ]
null
null
null
# LeetCode imports from typing import List class Solution: ''' In this problem, there are 3 approaches and 3 techniques for each of those approaches Approaches: 1. Iterate over all rows, then all columns, then all blocks. Check for dups at each stage. 2. Iterate over all cells once, but keep track...
37.952
98
0.421901
2de145415eebfba7f2601ca2baa8b4b2bb28dd9c
1,987
py
Python
code/lib/nemo/nemo_parser.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/lib/nemo/nemo_parser.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/lib/nemo/nemo_parser.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
import json import pyaml import yaml from lib.util import Util from lib.parser import Parser import logging import traceback import glob import os logging.basicConfig(level=logging.DEBUG) log = logging.getLogger('NemoParser') class NemoParser(Parser): """Parser methods for nemo project type """ def __in...
27.597222
109
0.593357
2de1509998883cfca745d44313089ff3f7deee82
942
py
Python
test/test_sign_pycryptodome.py
JeffLIrion/python-adb
ab99e77ef3c1a58f19597b0c34c93bd6dc56a1f3
[ "Apache-2.0" ]
1
2019-07-17T18:42:18.000Z
2019-07-17T18:42:18.000Z
test/test_sign_pycryptodome.py
JeffLIrion/python-adb
ab99e77ef3c1a58f19597b0c34c93bd6dc56a1f3
[ "Apache-2.0" ]
1
2018-10-04T04:07:23.000Z
2018-10-04T20:54:16.000Z
test/test_sign_pycryptodome.py
JeffLIrion/python-adb
ab99e77ef3c1a58f19597b0c34c93bd6dc56a1f3
[ "Apache-2.0" ]
1
2018-10-03T14:11:31.000Z
2018-10-03T14:11:31.000Z
from mock import patch import os import unittest from adb.adb_keygen import keygen from adb.sign_pycryptodome import PycryptodomeAuthSigner from adb_keygen_stub import open_priv_pub class TestPycryptodomeAuthSigner(unittest.TestCase): def setUp(self): with patch('adb.sign_pycryptodome.open', open_priv_p...
32.482759
109
0.677282
2de15687610d8968885371eaa5f58a387e5d2364
6,141
py
Python
GeneticAlgorithms/src/Evolution.py
jlln/GeneticKnapsack
fed7578d25ae2c9d80d17e0dfaef5ee9b8bcb0ba
[ "MIT" ]
null
null
null
GeneticAlgorithms/src/Evolution.py
jlln/GeneticKnapsack
fed7578d25ae2c9d80d17e0dfaef5ee9b8bcb0ba
[ "MIT" ]
null
null
null
GeneticAlgorithms/src/Evolution.py
jlln/GeneticKnapsack
fed7578d25ae2c9d80d17e0dfaef5ee9b8bcb0ba
[ "MIT" ]
null
null
null
import numpy as np class Mating: ''' Convenience class to hold mating records ''' def __init__(self,parent_a,parent_b,children,generation): self.generation = generation self.parent_a = parent_a self.parent_b = parent_b self.children = children class Indivi...
47.238462
165
0.675134
2de168cf4a3468da2f31ed138809512f9d7ef776
2,386
py
Python
pysamba/test/wmic.py
vnation/wmi-1.3.14
170c5af4501087ebf35833386ca1345fafed723b
[ "MIT" ]
null
null
null
pysamba/test/wmic.py
vnation/wmi-1.3.14
170c5af4501087ebf35833386ca1345fafed723b
[ "MIT" ]
null
null
null
pysamba/test/wmic.py
vnation/wmi-1.3.14
170c5af4501087ebf35833386ca1345fafed723b
[ "MIT" ]
null
null
null
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2008-2010, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License ...
30.202532
75
0.559933
2de19ef79ba256b261d585549d4a000a1bfcaa62
1,485
py
Python
ccpay/pay/utils.py
vishalpandeyvip/CCAvenue-payment
3fa239bf9657dff52a7cae620496bb45639af586
[ "MIT" ]
1
2021-08-31T12:08:54.000Z
2021-08-31T12:08:54.000Z
ccpay/pay/utils.py
vishalpandeyvip/CCAvenue-payment
3fa239bf9657dff52a7cae620496bb45639af586
[ "MIT" ]
null
null
null
ccpay/pay/utils.py
vishalpandeyvip/CCAvenue-payment
3fa239bf9657dff52a7cae620496bb45639af586
[ "MIT" ]
null
null
null
from Crypto.Cipher import AES import hashlib from binascii import hexlify, unhexlify import base64, re from Crypto.Cipher import AES from Crypto import Random from django.conf import settings def pad(data): """ ccavenue method to pad data. :param data: plain text :return: padded data. """ len...
23.951613
84
0.6633
2de1b3fd6ed7b968ec5c0a3664f875d925879102
2,717
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/choropleth/selected/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/choropleth/selected/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/choropleth/selected/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): # opacity # ------- @property def opacity(self): """ Sets the marker opacity of selected points. The 'opacity' property is a numb...
26.90099
82
0.527788
2de1bc9cbfd128cfb69cb980c9d5d96954e19db3
2,916
py
Python
toontown/ai/HolidayDecorator.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/ai/HolidayDecorator.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/ai/HolidayDecorator.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.toonbase import ToontownGlobals from direct.interval.IntervalGlobal import Parallel, Sequence, Func, Wait from pandac.PandaModules import Vec4, TransformState, NodePath, TransparencyAttrib class HolidayDecorator: def __init__(self): self.dnaStore = base.cr.playGame.dnaStore self.swap...
44.181818
364
0.634774
2de1e11cd656baad5c8c5e9c4dbc8cbd7b353c5f
2,931
py
Python
routes1846/cell.py
Auzzy/1846-routes
6d3112738996a3a1955fe6749168e4cf04c106e1
[ "MIT" ]
5
2018-11-23T14:03:32.000Z
2020-07-08T15:26:39.000Z
routes1846/cell.py
Auzzy/1846-routes
6d3112738996a3a1955fe6749168e4cf04c106e1
[ "MIT" ]
null
null
null
routes1846/cell.py
Auzzy/1846-routes
6d3112738996a3a1955fe6749168e4cf04c106e1
[ "MIT" ]
null
null
null
import itertools CHICAGO_CELL = None # Defined below CHICAGO_CONNECTIONS_CELL = None # Defined below _CELL_DB = {} class Cell(object): @staticmethod def from_coord(coord): if len(coord) < 2 or len(coord) > 3: raise ValueError("Provided invalid coord: {}".format(coord)) ...
34.081395
93
0.564313
2de1e3e032112bda210409c8411b242e6df6eb58
27,122
py
Python
model/dota_models/ppo.py
Andrea-MariaDB-2/LastOrder-Dota2
d2fb53a7166218eda1e402efd422586f3adaadff
[ "MIT" ]
332
2021-08-02T07:37:41.000Z
2022-03-26T17:44:53.000Z
model/dota_models/ppo.py
Andrea-MariaDB-2/LastOrder-Dota2
d2fb53a7166218eda1e402efd422586f3adaadff
[ "MIT" ]
13
2021-08-04T12:04:24.000Z
2021-09-26T06:57:46.000Z
model/dota_models/ppo.py
Andrea-MariaDB-2/LastOrder-Dota2
d2fb53a7166218eda1e402efd422586f3adaadff
[ "MIT" ]
34
2021-08-02T09:08:39.000Z
2022-03-27T18:32:31.000Z
import time import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import numpy as np from model.basic_model import BasicModel from gym_env.feature_processors.enums import UNIT_NUM, ABILITY_NUM, All_ACTION_TYPE, ACTION_NAME_TO_INDEX, NEARBY_MAP_SIZE from gym_env.feature_processors.features_v0.features import Featu...
61.640909
157
0.620234
2de2327ede1c8f7276376ab6b4713cb4251d7d19
6,190
py
Python
rbig_jax/transforms/linear.py
alexhepburn/rbig_jax
706dd60d2049071be0fb3d311c83719121854678
[ "MIT" ]
null
null
null
rbig_jax/transforms/linear.py
alexhepburn/rbig_jax
706dd60d2049071be0fb3d311c83719121854678
[ "MIT" ]
null
null
null
rbig_jax/transforms/linear.py
alexhepburn/rbig_jax
706dd60d2049071be0fb3d311c83719121854678
[ "MIT" ]
null
null
null
import collections from functools import partial from typing import Tuple import jax import jax.numpy as np import objax from objax.typing import JaxArray from rbig_jax.transforms.base import Transform RotParams = collections.namedtuple("Params", ["projection"]) class HouseHolder(Transform): def __init__(self, ...
25.060729
84
0.639418
2de234153a46fc341b50bbb9284d108def42f816
1,031
py
Python
pykospi/naver.py
sharebook-kr/pykospi
bf31c60b5250d9afb0481e5d49eac7063c21d6a2
[ "Apache-2.0" ]
5
2018-03-18T15:53:39.000Z
2018-09-08T14:49:21.000Z
pykospi/naver.py
sharebook-kr/pykospi
bf31c60b5250d9afb0481e5d49eac7063c21d6a2
[ "Apache-2.0" ]
null
null
null
pykospi/naver.py
sharebook-kr/pykospi
bf31c60b5250d9afb0481e5d49eac7063c21d6a2
[ "Apache-2.0" ]
1
2021-02-25T22:22:57.000Z
2021-02-25T22:22:57.000Z
from bs4 import BeautifulSoup import requests import json def get_per(code): url = "http://finance.naver.com/item/main.nhn?code=" + code html = requests.get(url).text soup = BeautifulSoup(html, "html5lib") tags = soup.select("[id=_per]") try: per = tags[0].text per = per.replace(...
19.826923
63
0.56838
2de23b1d5dba0a9439ae04ede5cde1d4e278a228
5,607
py
Python
chainer/chain_RAP.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
chainer/chain_RAP.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
chainer/chain_RAP.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
import os import numpy as np import chainer from chainer import sequential from chainer import optimizers, serializers from chainer import reporter from chainer.functions.evaluation import accuracy from chainer.functions.loss import softmax_cross_entropy from chainer.utils import weight_clip class ChainRAP(chainer.l...
39.485915
102
0.570894
2de251225647ad37eb3163cce90a14b66c88902c
3,048
py
Python
src/discordapi/BotCommands.py
markos373/MarketBot
77b7b88c2c12b1d153f1f19893827aafdac2811b
[ "MIT" ]
7
2020-01-23T16:14:50.000Z
2022-01-03T16:04:11.000Z
src/discordapi/BotCommands.py
markos373/MarketBot
77b7b88c2c12b1d153f1f19893827aafdac2811b
[ "MIT" ]
3
2020-03-04T00:06:35.000Z
2020-03-24T21:01:06.000Z
src/discordapi/BotCommands.py
markos373/MarketBot
77b7b88c2c12b1d153f1f19893827aafdac2811b
[ "MIT" ]
4
2020-04-04T01:28:12.000Z
2021-09-26T22:25:41.000Z
from discordapi.BotFunctions import BotFunctions import discordapi.BotResponses as br import asyncio # structure of the bot command # [Action] [Field1] [Field2].. default_msg = 'how can I help? (type \'help\' to see options)' ''' Pipeline of parsing: call parse with given argumenets The parse then matches the operati...
31.102041
94
0.683399
2de26d7ac7f916acd9c6bcc618f20e4b517f430a
20
py
Python
sql30/__init__.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
1
2021-06-29T12:52:34.000Z
2021-06-29T12:52:34.000Z
sql30/__init__.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
null
null
null
sql30/__init__.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
null
null
null
__version__='0.2.4'
10
19
0.7
2de2746875b6df11331bc13aa70f3506376cd50f
10,555
py
Python
models/train_utils.py
shihui2010/learn_cfg_with_neural_network
982d9962898834e046b8e85195a3f713fee9b4a4
[ "MIT" ]
1
2021-12-21T04:58:09.000Z
2021-12-21T04:58:09.000Z
models/train_utils.py
shihui2010/learn_cfg_with_neural_network
982d9962898834e046b8e85195a3f713fee9b4a4
[ "MIT" ]
null
null
null
models/train_utils.py
shihui2010/learn_cfg_with_neural_network
982d9962898834e046b8e85195a3f713fee9b4a4
[ "MIT" ]
1
2022-03-14T05:01:23.000Z
2022-03-14T05:01:23.000Z
import os import numpy as np import json import torch import glob from torch.utils.tensorboard import SummaryWriter from models.universal_model import ( UniversalModel, LSTMModel, TransformerModel) from models.metrics import ( ClassificationMetric, LMMetric, PDAMetric, FullMetric) from datas...
42.051793
79
0.59621
2de2aa34b764a3c1095a736f0a0e034875ad849b
5,588
py
Python
cp4/src/viterbi_alg.py
tufts-ml-courses/comp136-spr-20s-assignments-
c53cce8e376862eeef395aa0b55eca8b284a0115
[ "MIT" ]
1
2021-02-17T08:09:17.000Z
2021-02-17T08:09:17.000Z
cp4/src/viterbi_alg.py
tufts-ml-courses/comp136-spr-20s-assignments-
c53cce8e376862eeef395aa0b55eca8b284a0115
[ "MIT" ]
2
2021-02-01T21:19:13.000Z
2021-04-17T23:25:22.000Z
cp4/src/viterbi_alg.py
tufts-ml-courses/comp136-spr-20s-assignments-
c53cce8e376862eeef395aa0b55eca8b284a0115
[ "MIT" ]
9
2021-02-08T21:54:43.000Z
2022-02-15T22:11:23.000Z
''' Viterbi algorithm for Hidden Markov Models. Includes: * skeleton of run_viterbi_algorithm requiring edits * a __main__ method with example input * doctests showing expected behavior Usage ----- To see estimated state sequence on simple example printed to stdout, do $ python viterbi_alg.py To verify if the script...
29.410526
93
0.642627
2de2c2e43284236c2132b29e31f1f5be9e12028a
3,246
py
Python
monitoring/checks/check_instance_vnic.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
monitoring/checks/check_instance_vnic.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
monitoring/checks/check_instance_vnic.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # ...
39.108434
79
0.544054
2de2c4f98f3c4204f20c50b343e433f5654108f8
81,569
py
Python
coast_v1/unit_test2.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
8
2020-09-10T13:40:07.000Z
2022-03-10T22:52:44.000Z
coast_v1/unit_test2.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
294
2020-05-11T12:17:17.000Z
2022-03-31T22:07:52.000Z
coast_v1/unit_test2.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
4
2020-05-28T10:43:56.000Z
2021-09-07T10:40:09.000Z
## """ Script to do unit testing Written as procedural code that plods through the code snippets and tests the outputs or expected metadata. ***SECTIONS*** This script is separated into Sections and Subsections, for which there are two counters to keep track: sec and subsec respectively. At the beginning of each secti...
40.642252
198
0.544582
2de2d10754947a489008460a82a10aefdebcd2ec
3,763
py
Python
nnvm/tests/python/frontend/onnx/model_zoo/squeezenet.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
nnvm/tests/python/frontend/onnx/model_zoo/squeezenet.py
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
23
2019-07-29T05:21:52.000Z
2020-08-31T18:51:42.000Z
nnvm/tests/python/frontend/onnx/model_zoo/squeezenet.py
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
51
2019-07-12T05:10:25.000Z
2021-07-28T16:19:06.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...
31.621849
94
0.667287
2de2d2f168b8449d206dbefc0993396715a75e55
6,303
py
Python
lib_fr/layer_utils/proposal_target_layer.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
5
2019-06-19T23:15:17.000Z
2020-08-24T08:29:01.000Z
lib_fr/layer_utils/proposal_target_layer.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
1
2019-04-04T14:19:40.000Z
2019-04-06T03:32:22.000Z
lib_fr/layer_utils/proposal_target_layer.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick, Sean Bell and Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from...
41.196078
102
0.693955
2de2f56281c2af4924c4a2eaf41b7477f27302f1
1,661
py
Python
master/migrations/0001_initial.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
null
null
null
master/migrations/0001_initial.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
3
2021-06-05T00:01:48.000Z
2021-09-22T19:39:12.000Z
master/migrations/0001_initial.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-11-25 05:46 from django.db import migrations, models import django_countries.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='School', fields=[ ...
42.589744
114
0.585792
2de333518e3ec36b044ae97fd7a8bacc2e55728d
304
py
Python
db_setup.py
jsonchin/nba_stats_scraper_db_storage
33f33d89c5c76db9625f4973db8afdbbd7045263
[ "Apache-2.0" ]
4
2017-11-04T05:03:57.000Z
2022-01-30T13:24:15.000Z
db_setup.py
jsonchin/nba_stats_scraper_db_storage
33f33d89c5c76db9625f4973db8afdbbd7045263
[ "Apache-2.0" ]
1
2021-06-01T22:05:19.000Z
2021-06-01T22:05:19.000Z
db_setup.py
jsonchin/nba_stats_scraper_db_storage
33f33d89c5c76db9625f4973db8afdbbd7045263
[ "Apache-2.0" ]
2
2017-11-26T18:59:59.000Z
2018-07-05T18:05:09.000Z
import nba_ss_db.db.initialize import nba_ss_db.scrape.scraper # initialize the database and run the initial scrapes that # are necessary for this tool (player_ids and game_dates) nba_ss_db.db.initialize.init_db() nba_ss_db.scrape.scraper.run_scrape_jobs( 'nba_ss_db/scrape/api_requests_init.yaml')
33.777778
58
0.822368
2de33e8be1e0e9bfd93b260c14d43d10a3929564
1,822
py
Python
test_scripts/pyfora2/numpyTests.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
test_scripts/pyfora2/numpyTests.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
test_scripts/pyfora2/numpyTests.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora 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 i...
32.535714
76
0.723381
2de380fb9710d628f5df7f89f4b204c77bc711dd
2,652
py
Python
experiments/state_distance/eval_qf_as_implicit_model.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/eval_qf_as_implicit_model.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/eval_qf_as_implicit_model.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" See how good a state-distance q function by comparing s_{QF} = \argmax_{s_g} Q(s, a s_g) with s' from the replay buffer. """ import argparse import joblib import numpy as np import torch from torch.autograd import Variable from torch.optim import Adam import rlkit.torch.pytorch_util as ptu from rlkit.data_...
27.625
76
0.671569
2de3834b75ae407edd75647d2e6f6c4de38af8cb
1,610
py
Python
server/openapi_server/annotator/test/test_label_spans.py
cascadianblue/phi-annotator
0da6c102ec1068e6b15c613e2a90a78f79d15935
[ "Apache-2.0" ]
null
null
null
server/openapi_server/annotator/test/test_label_spans.py
cascadianblue/phi-annotator
0da6c102ec1068e6b15c613e2a90a78f79d15935
[ "Apache-2.0" ]
19
2021-07-29T03:14:38.000Z
2022-03-01T06:03:14.000Z
server/openapi_server/annotator/test/test_label_spans.py
cascadianblue/phi-annotator
0da6c102ec1068e6b15c613e2a90a78f79d15935
[ "Apache-2.0" ]
null
null
null
from openapi_server.annotator.label_spans import label_tokens TEXT = "Hi my name is John Smith, I live in Minnesota. It is Tuesday" SPANS = [(0, 2), (3, 5), (6, 10), (11, 13), (14, 18), (19, 24), (24, 25), (26, 27), (28, 32), (33, 35), (36, 45), (45, 46), (47, 49), (50, 52), (53, 60)] TOKENS = [TEXT...
38.333333
78
0.564596
2de384d57602a0c4e726161b00d6862618b94e89
1,403
py
Python
test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.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 may ...
53.961538
101
0.738418
2de3aa67fb913a4488bf483775dbc681fc24bae8
1,018
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/region_WS.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_WS.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_WS.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. WS metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_WS = PhoneMetadata(id='WS', country_code=685, international_prefix='0', general_desc=PhoneNumberDesc(national_number_pattern='[2-8]\\d{4,6}', possible_length=(5, 6...
84.833333
142
0.684676
2de3b0898155a83a779fcfc59e3d915eb5e570ce
254
py
Python
tests/test_pattern_api.py
mikeboers/aque
4215fd01ab2a0fd88aeac7f2d69b4c888caa7aa1
[ "BSD-3-Clause" ]
1
2019-05-01T15:26:54.000Z
2019-05-01T15:26:54.000Z
tests/test_pattern_api.py
mikeboers/aque
4215fd01ab2a0fd88aeac7f2d69b4c888caa7aa1
[ "BSD-3-Clause" ]
null
null
null
tests/test_pattern_api.py
mikeboers/aque
4215fd01ab2a0fd88aeac7f2d69b4c888caa7aa1
[ "BSD-3-Clause" ]
null
null
null
from . import * class TestPatternAPI(BrokerTestCase): def test_missing_pattern(self): f = self.queue.submit_ex(tuple, pattern='not_a_pattern') self.worker.run_to_end() self.assertRaises(PatternMissingError, f.result, 0.1)
23.090909
64
0.700787