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
2dc65ef71c67ff7a1776ce2907126d5e64a99ed0
8,255
py
Python
sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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 may ...
36.526549
94
0.803271
2dc66fa16c0808e79d56337033fe4e7922ec5ce6
16,989
py
Python
extensions/shapefile_converter.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
extensions/shapefile_converter.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
14
2020-09-30T21:16:46.000Z
2021-11-08T18:54:34.000Z
extensions/shapefile_converter.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
1
2020-09-17T12:48:57.000Z
2020-09-17T12:48:57.000Z
# This work is based on original code developed and copyrighted by TNO 2020. # Subsequent contributions are licensed to you by the developers of such code and are # made available to the Project under one or several contributor license agreements. # # This work is licensed to you under the Apache License, Version 2...
47.191667
446
0.577197
2dc688d06506d6cca738c5892df9e581af5b49f1
30,608
py
Python
core/domain/user_jobs_continuous.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
3
2021-06-26T09:45:19.000Z
2021-11-17T11:11:39.000Z
core/domain/user_jobs_continuous.py
import-keshav/oppia
899b9755a6b795a8991e596055ac24065a8435e0
[ "Apache-2.0" ]
4
2019-08-15T10:49:21.000Z
2022-03-02T05:10:20.000Z
core/domain/user_jobs_continuous.py
grishamjindal/oppia
3a29329a446e30b3b70641cf0286e23fad85418f
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Oppia 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 applicable ...
44.103746
127
0.625327
2dc6a3d7f61682dd3f8348ce11377b33cae1f975
1,578
py
Python
server/benchmarks/context_strategies.py
vis-au/prointerest
6200908d4ddeecaf05de859063d9eaaa7e63a6be
[ "Apache-2.0" ]
null
null
null
server/benchmarks/context_strategies.py
vis-au/prointerest
6200908d4ddeecaf05de859063d9eaaa7e63a6be
[ "Apache-2.0" ]
null
null
null
server/benchmarks/context_strategies.py
vis-au/prointerest
6200908d4ddeecaf05de859063d9eaaa7e63a6be
[ "Apache-2.0" ]
null
null
null
from typing import Callable, List, Tuple from context_item_selection_strategy.no_context import * from context_item_selection_strategy.chunk_based_context import * from context_item_selection_strategy.sampling_based_context import * from context_item_selection_strategy.clustering_based_context import * from context_it...
37.571429
132
0.770596
2dc6f22f94935b769ed1f45fd28db2005bfb32b8
6,629
py
Python
azure/multiapi/storage/v2018_11_09/common/_connection.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
3
2019-02-21T20:46:26.000Z
2021-06-22T15:35:52.000Z
azure/multiapi/storage/v2018_11_09/common/_connection.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
11
2017-10-05T18:20:40.000Z
2020-10-10T09:20:19.000Z
azure/multiapi/storage/v2018_11_09/common/_connection.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
15
2017-10-02T18:48:20.000Z
2022-03-03T14:03:49.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import sys...
40.919753
118
0.597375
2dc6f8d3d86b149465842051ce2b032fac0cb0b8
1,220
py
Python
pymite/utils.py
damnit/pymite
1e9b9bf6aef790af2d8781f9f77c098c54ca0342
[ "MIT" ]
4
2016-09-25T17:25:41.000Z
2019-12-28T06:25:10.000Z
pymite/utils.py
damnit/pymite
1e9b9bf6aef790af2d8781f9f77c098c54ca0342
[ "MIT" ]
null
null
null
pymite/utils.py
damnit/pymite
1e9b9bf6aef790af2d8781f9f77c098c54ca0342
[ "MIT" ]
2
2017-09-23T14:55:59.000Z
2018-10-28T09:18:14.000Z
# -*- coding: utf-8 -*- # File: utils.py """ utils module. """ __author__ = 'Otto Hockel <hockel.otto@googlemail.com>' __docformat__ = 'plaintext' from functools import wraps def declassify(to_remove, *args, **kwargs): """ flatten the return values of the mite api. """ def argdecorate(fn): "...
25.416667
63
0.543443
2dc6fd9eea6e114b450947314872885754f5035d
3,973
py
Python
ProjectFolder/Code/perfEval.py
sebastianwindeck/DeepLearningProject
7a0988c44a4923f83ec99f774fc98ad9a18b78df
[ "MIT" ]
1
2019-06-15T14:54:27.000Z
2019-06-15T14:54:27.000Z
ProjectFolder/Code/perfEval.py
sebastianwindeck/DeepLearningProject
7a0988c44a4923f83ec99f774fc98ad9a18b78df
[ "MIT" ]
null
null
null
ProjectFolder/Code/perfEval.py
sebastianwindeck/DeepLearningProject
7a0988c44a4923f83ec99f774fc98ad9a18b78df
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.cm as cm import os import pandas import numpy as np base_model_dir = '../../ProjectFolder/Basemodel_1_pitch/' base_model_file = base_model_dir + 'initialtraining.log' noise_model_dir = '../../ProjectFolder/Checkpoints/train2019-01-18-10-35-19/' # load data on initial...
37.130841
113
0.692424
2dc710b8afae32a82aa665b5777446d2b099df8a
6,155
py
Python
nion/data/test/ExtendedData_test.py
cmeyer/niondata
e9028a0487d5d5d394be625ec9b5d2ab6b2f226f
[ "Apache-2.0" ]
null
null
null
nion/data/test/ExtendedData_test.py
cmeyer/niondata
e9028a0487d5d5d394be625ec9b5d2ab6b2f226f
[ "Apache-2.0" ]
null
null
null
nion/data/test/ExtendedData_test.py
cmeyer/niondata
e9028a0487d5d5d394be625ec9b5d2ab6b2f226f
[ "Apache-2.0" ]
null
null
null
# standard libraries import h5py import logging import os import shutil import unittest # third party libraries import numpy # local libraries from nion.data import Calibration from nion.data import DataAndMetadata def db_make_directory_if_needed(directory_path): if os.path.exists(directory_path): if no...
43.964286
215
0.676523
2dc72f37c8c7af9234a21a87951349ab6b5002b1
1,947
py
Python
ml/functions.py
leonoravesterbacka/carl-torch
383ef84c449d654d783b4e8bdbb847ee8cbf24b9
[ "MIT" ]
8
2020-04-17T13:15:12.000Z
2021-07-21T00:30:51.000Z
ml/functions.py
neko-0/carl-torch
21aea15e26f469c2bbcd817756b827f30a2240b0
[ "MIT" ]
6
2020-10-27T14:04:33.000Z
2022-03-12T00:47:50.000Z
ml/functions.py
neko-0/carl-torch
21aea15e26f469c2bbcd817756b827f30a2240b0
[ "MIT" ]
4
2020-10-06T07:29:59.000Z
2021-03-05T10:03:16.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import six import logging import os import torch from torch.nn import functional as F from torch import optim from torch.nn import BCELoss, BCEWithLogitsLoss, MSELoss from contextlib import contextmanager logger = logging.getLogger(__...
27.041667
93
0.645095
2dc73ac52591d78db32e1900b4d17667aa27987e
6,056
py
Python
frameit/frameattr.py
biggorilla-gh/frameit
9cae56b4089fff6c955f8b86c699aa402a1390ac
[ "Apache-2.0" ]
3
2018-12-29T01:10:37.000Z
2020-06-12T09:45:11.000Z
frameit/frameattr.py
biggorilla-gh/frameit
9cae56b4089fff6c955f8b86c699aa402a1390ac
[ "Apache-2.0" ]
null
null
null
frameit/frameattr.py
biggorilla-gh/frameit
9cae56b4089fff6c955f8b86c699aa402a1390ac
[ "Apache-2.0" ]
null
null
null
import json from spacy.lexeme import Lexeme from spacy.tokens import Token from frameit import Corpus from frameit.models.nocontext_model import NoContextModel from frameit.models.context_model import ContextModel from frameit.models.lambda_rule_model import LambdaRuleModel from frameit.models.rule_model import RuleMo...
37.382716
90
0.567371
2dc74c8a77b23cfaebd6724d57e39f689a592171
5,279
py
Python
tests/app/dao/test_service_inbound_api_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
null
null
null
tests/app/dao/test_service_inbound_api_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
51
2019-07-03T14:11:19.000Z
2019-07-08T12:24:55.000Z
tests/app/dao/test_service_inbound_api_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
null
null
null
import uuid import pytest from sqlalchemy.exc import SQLAlchemyError from app import signer from app.dao.service_inbound_api_dao import ( get_service_inbound_api, get_service_inbound_api_for_service, reset_service_inbound_api, save_service_inbound_api, ) from app.models import ServiceInboundApi from t...
39.395522
108
0.74749
2dc76c123455fd8b1eba7842b608d84bb81983b4
23,065
py
Python
jina/flow/mixin/crud.py
HarshCasper/jina
81ab098b140b74ad1cfdfde9218cec7a40923749
[ "Apache-2.0" ]
1
2021-02-25T19:28:50.000Z
2021-02-25T19:28:50.000Z
jina/flow/mixin/crud.py
HarshCasper/jina
81ab098b140b74ad1cfdfde9218cec7a40923749
[ "Apache-2.0" ]
4
2020-09-01T17:47:27.000Z
2021-04-16T23:11:57.000Z
jina/flow/mixin/crud.py
deepampatel/jina
97f9e97a4a678a28bdeacbc7346eaf7bbd2aeb89
[ "Apache-2.0" ]
null
null
null
import warnings from typing import Union, Iterable, TextIO, Dict import numpy as np from ...clients.base import InputFnType, CallbackFnType from ...enums import DataInputType from ...helper import deprecated_alias class CRUDFlowMixin: """The synchronous version of the Mixin for CRUD in Flow""" def train(sel...
59.141026
120
0.612963
2dc77bef14ac69b1dae8b8270fe5d37b38f624f5
3,612
py
Python
myproject/cvPrj/model_torch.py
GavinK-ai/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
1
2021-11-15T06:16:44.000Z
2021-11-15T06:16:44.000Z
myproject/cvPrj/model_torch.py
JKai96/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
null
null
null
myproject/cvPrj/model_torch.py
JKai96/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.utils.data import DataLoader from torchvision import datasets from torchvision.transforms import ToTensor, Lambda, Compose import matplotlib.pyplot as plt import numpy as np import random import cv2 as cv import time train_path = 'dataset/training_data_aug' test_path = 'dat...
28
91
0.613787
2dc7c1074447e6a369c2da7d8daa1a6b5a6f561b
1,053
py
Python
setup.py
GentleCP/cptools
6816314f7e16168d3ce43c73e335a3c08590acb5
[ "MIT" ]
2
2021-04-17T13:16:38.000Z
2021-06-16T02:26:09.000Z
setup.py
GentleCP/cptools
6816314f7e16168d3ce43c73e335a3c08590acb5
[ "MIT" ]
null
null
null
setup.py
GentleCP/cptools
6816314f7e16168d3ce43c73e335a3c08590acb5
[ "MIT" ]
null
null
null
from setuptools import setup import setuptools from pathlib import Path about = {} root_path = Path(__file__).parent __about__ = root_path.joinpath('cptools/__about__.py').open('r', encoding='utf-8').read() exec(__about__, about) with open("README.md", 'r', encoding='utf8') as f: long_description = f.re...
30.970588
90
0.642925
2dc7e9d4b01dcc767a2dea0db22c4575b9e732e3
4,077
py
Python
jumpy/jumpy/spark/fast_impl.py
zhangy10/deeplearning4j
9d31156ce600dee6ce4a7fac28286ebbaa211164
[ "Apache-2.0" ]
null
null
null
jumpy/jumpy/spark/fast_impl.py
zhangy10/deeplearning4j
9d31156ce600dee6ce4a7fac28286ebbaa211164
[ "Apache-2.0" ]
null
null
null
jumpy/jumpy/spark/fast_impl.py
zhangy10/deeplearning4j
9d31156ce600dee6ce4a7fac28286ebbaa211164
[ "Apache-2.0" ]
null
null
null
################################################################################ # Copyright (c) 2015-2018 Skymind, Inc. # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at # https://www.apache.org/licenses/LICENSE-2.0. # # Unless...
30.425373
87
0.695364
2dc7fb76567832f5c184e3a6a314ad39ef82ba02
1,119
py
Python
skimage/graph/tests/test_heap.py
jaberg/scikits-image
2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d
[ "BSD-3-Clause" ]
2
2020-02-17T18:54:33.000Z
2021-09-28T15:18:23.000Z
skimage/graph/tests/test_heap.py
amueller/scikit-image
a8bfc5c5814a3c7fe363cfcad0c68b935706cd3c
[ "BSD-3-Clause" ]
1
2015-09-04T09:25:46.000Z
2015-09-04T09:25:46.000Z
skimage/graph/tests/test_heap.py
emmanuelle/scikit-image
eccc41907135cf81b99c4be18a480a9bc705485d
[ "BSD-3-Clause" ]
1
2019-12-20T19:19:59.000Z
2019-12-20T19:19:59.000Z
import numpy as np from numpy.testing import * import time import random import skimage.graph.heap as heap def test_heap(): _test_heap(100000, True) _test_heap(100000, False) def _test_heap(n, fast_update): # generate random numbers with duplicates random.seed(0) a = [random.uniform(1.0, 100.0)...
20.722222
74
0.557641
2dc7fed6cfae3a6595a35ea95be96e15301ae429
592
py
Python
python/q1528/q1528.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q1528/q1528.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q1528/q1528.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def restoreString(self, s: str, indices: List[int]) -> str: list = ["" for i in range(len(indices))] for c, i in zip(s, indices): list[i] = c return "".join(list) def restoreString_2(self, s: str, indices: List[int]) -> str: ...
23.68
65
0.523649
2dc813afc39a65a1a6b946978aed87d4e0ab4213
763
py
Python
ctic/2.8.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
1
2020-02-25T10:32:27.000Z
2020-02-25T10:32:27.000Z
ctic/2.8.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
ctic/2.8.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
""" 2.8 - Detect loop in LL """ # Definition of ListNode class ListNode: def __init__(self, val): self.val = val self.next = None # Floyd' algorithm def detectLoop(head: ListNode) -> bool: if not head or not head.next: return False fast = slow = head while fast and fast....
16.955556
53
0.580603
2dc8203134d6d465b3bc36ad4e15c882983914cc
13,345
py
Python
srcs/model.py
noambuckman/PIXOR
70a7033874ac1f84baa307049b2891ebc4db83d2
[ "MIT" ]
null
null
null
srcs/model.py
noambuckman/PIXOR
70a7033874ac1f84baa307049b2891ebc4db83d2
[ "MIT" ]
null
null
null
srcs/model.py
noambuckman/PIXOR
70a7033874ac1f84baa307049b2891ebc4db83d2
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import math from utils import maskFOV_on_BEV, get_discretization_from_geom def conv3x3(in_planes, out_planes, stride=1, bias=False): """3x3 convolution with padding""" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, ...
34.39433
115
0.578868
2dc822fb0ead9cda7caa0a6995dd6bf42b6c8d42
9,843
py
Python
openpype/plugins/publish/extract_otio_audio_tracks.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/plugins/publish/extract_otio_audio_tracks.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/plugins/publish/extract_otio_audio_tracks.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
import os import pyblish import openpype.api from openpype.lib import ( get_ffmpeg_tool_path ) import tempfile import opentimelineio as otio class ExtractOtioAudioTracks(pyblish.api.ContextPlugin): """Extract Audio tracks from OTIO timeline. Process will merge all found audio tracks into one long .wav fi...
32.919732
78
0.533679
2dc84ea10bdf6e18c8afdd0b861d5b87cb6bebcc
3,973
py
Python
src/buildstream/_pluginfactory/pluginoriginpip.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/_pluginfactory/pluginoriginpip.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/_pluginfactory/pluginoriginpip.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2020 Codethink Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
36.118182
94
0.61037
2dc87b154ee455ab57a7e6bd8a5ac51d60347ab7
16,796
py
Python
basic.py
mjucker/pv_atmos
ec962d2ebc1f725bff4031929b0007781dc6db6f
[ "MIT" ]
48
2015-01-07T02:01:11.000Z
2022-02-04T08:38:24.000Z
basic.py
mjucker/pv_atmos
ec962d2ebc1f725bff4031929b0007781dc6db6f
[ "MIT" ]
1
2016-05-16T07:42:45.000Z
2017-03-22T23:33:28.000Z
basic.py
mjucker/pv_atmos
ec962d2ebc1f725bff4031929b0007781dc6db6f
[ "MIT" ]
19
2015-01-07T02:03:43.000Z
2021-07-31T19:37:07.000Z
#!/usr/bin/python # Filename: basic.py # # Code by Martin Jucker, distributed under an MIT License # Any publication benefitting from this piece of code should cite # Jucker, M 2014. Scientific Visualisation of Atmospheric Data with ParaView. # Journal of Open Research Software 2(1):e4, DOI: http://dx.doi.org/10.5334/j...
45.150538
314
0.637592
2dc8801da7b236deed4a002e5231b7acfb357e3b
13,688
py
Python
hax/helper/generate_sysconf.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
hax/helper/generate_sysconf.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
hax/helper/generate_sysconf.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Seagate Technology LLC and/or its Affiliates # # 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 appl...
36.21164
79
0.590517
2dc886a8a1f4f360bc15f7bcf80d3c94678ca9ab
3,257
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_11_01_preview/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_11_01_preview/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_11_01_preview/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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 may ...
47.897059
130
0.701566
2dc8b6a00646400249e6cce87ac63b89837d7864
4,063
py
Python
src/model/data_loader.py
karanrampal/image-caption
f903504dbb369ec86e11f7628421bf06d78d117f
[ "MIT" ]
null
null
null
src/model/data_loader.py
karanrampal/image-caption
f903504dbb369ec86e11f7628421bf06d78d117f
[ "MIT" ]
null
null
null
src/model/data_loader.py
karanrampal/image-caption
f903504dbb369ec86e11f7628421bf06d78d117f
[ "MIT" ]
null
null
null
"""Extract, Transform and Load the data""" import logging import os import json import random from collections import defaultdict from typing import Dict, List, Optional, Tuple import torch import torchvision.transforms as tx from torch.utils.data import DataLoader, Dataset from torchvision.io import read_image, Imag...
31.742188
106
0.687669
2dc8ba997c8c8abf5ba99f789a008734402187e0
7,607
py
Python
xhistogram/xarray.py
raybellwaves/xhistogram
9992eba11eff9ee704e0f6755d521ab56cab9de3
[ "MIT" ]
null
null
null
xhistogram/xarray.py
raybellwaves/xhistogram
9992eba11eff9ee704e0f6755d521ab56cab9de3
[ "MIT" ]
null
null
null
xhistogram/xarray.py
raybellwaves/xhistogram
9992eba11eff9ee704e0f6755d521ab56cab9de3
[ "MIT" ]
null
null
null
""" Xarray API for xhistogram. """ import xarray as xr import numpy as np from collections import OrderedDict from .core import histogram as _histogram def histogram(*args, bins=None, dim=None, weights=None, density=False, block_size='auto', keep_coords=False, bin_dim_suffix='_bin', bin_e...
40.248677
105
0.649928
2dc8d45904bc25a31da50d7a97ac1f20ab3c87bb
180
py
Python
src/compiling.py
ezielramos/cool-compiler-2021
e5b2aa51e47296b21f8b1ea14d73b1c7e7ef0785
[ "MIT" ]
null
null
null
src/compiling.py
ezielramos/cool-compiler-2021
e5b2aa51e47296b21f8b1ea14d73b1c7e7ef0785
[ "MIT" ]
null
null
null
src/compiling.py
ezielramos/cool-compiler-2021
e5b2aa51e47296b21f8b1ea14d73b1c7e7ef0785
[ "MIT" ]
null
null
null
import sys, lexerTest, parserTest, semanticTest, codegenTest addr = None addr = sys.argv[1] lexerTest.run(addr) parserTest.run(addr) semanticTest.run(addr) codegenTest.run(addr)
18
60
0.783333
2dc8ef6e78c60d2b2f7bfe442c1d43d645770c6a
159
py
Python
tests/integration/launcher.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2020-09-30T11:40:22.000Z
2020-11-09T09:06:30.000Z
tests/integration/launcher.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
tests/integration/launcher.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
import random import sys import time def main() -> int: time.sleep(10) return random.randint(0, 1) if __name__ == "__main__": sys.exit(main())
12.230769
31
0.641509
2dc8f8584618cb667394f23d20f7e11b563838b1
5,275
py
Python
RNNS/model/classifier_model.py
CenIII/Text-style-transfer-DeleteRetrieve
2b7aa017765dcae65b42fc94d3ccaddc57ac8661
[ "MIT" ]
null
null
null
RNNS/model/classifier_model.py
CenIII/Text-style-transfer-DeleteRetrieve
2b7aa017765dcae65b42fc94d3ccaddc57ac8661
[ "MIT" ]
null
null
null
RNNS/model/classifier_model.py
CenIII/Text-style-transfer-DeleteRetrieve
2b7aa017765dcae65b42fc94d3ccaddc57ac8661
[ "MIT" ]
null
null
null
import torch import numpy as np from torch.autograd import Variable import torch.nn.functional as F import torch.utils.data as data_utils class StructuredSelfAttention_test(torch.nn.Module): """ The class is an implementation of the paper A Structured Self-Attentive Sentence Embedding including regularization...
39.365672
160
0.629953
2dc92794b635de65136acf2841004b1d7b952474
1,933
py
Python
sysinv/sysinv/sysinv/sysinv/openstack/common/db/exception.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/openstack/common/db/exception.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/openstack/common/db/exception.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
33.327586
78
0.716503
2dc9609b967f3944d279e1654ccd1fe298844158
1,435
py
Python
setup.py
mduranmustafa/keras
d4a14ee54728ac8ea6c5ffbf41f559662dcfba46
[ "MIT" ]
null
null
null
setup.py
mduranmustafa/keras
d4a14ee54728ac8ea6c5ffbf41f559662dcfba46
[ "MIT" ]
null
null
null
setup.py
mduranmustafa/keras
d4a14ee54728ac8ea6c5ffbf41f559662dcfba46
[ "MIT" ]
1
2019-10-03T22:52:17.000Z
2019-10-03T22:52:17.000Z
from setuptools import setup from setuptools import find_packages setup(name='Keras', version='2.0.9', description='Deep Learning for Python', author='Francois Chollet', author_email='francois.chollet@gmail.com', url='https://github.com/fchollet/keras', download_url='https://github...
35.875
72
0.522648
2dc964038d470f7e6d3cec147da2e8284b73a521
8,445
py
Python
tencentcloud/cfs/v20190719/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
tencentcloud/cfs/v20190719/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
tencentcloud/cfs/v20190719/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
32.988281
105
0.862877
2dc967914f0278a927b112d3a114e9b0f31e4f68
2,537
py
Python
assemblyline/common/tagging.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
assemblyline/common/tagging.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
assemblyline/common/tagging.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
import re from typing import List, Dict from assemblyline.common.dict_utils import flatten from assemblyline.odm.models.tagging import Tagging def tag_list_to_dict(tag_list: List[Dict]) -> Dict: tag_dict = {} for t in tag_list: if t['type'] not in tag_dict: tag_dict[t['type']] = [] ...
32.525641
106
0.569965
2dc969b5955a35162e4c15e85c37879514bccda0
4,624
py
Python
keras_frcnn/simple_parser_datagen.py
So-dal/Keras_FasterRCNN_CustomDataset
254a3e7b32d025d5ccabf527052d4ef457b29563
[ "Apache-2.0" ]
null
null
null
keras_frcnn/simple_parser_datagen.py
So-dal/Keras_FasterRCNN_CustomDataset
254a3e7b32d025d5ccabf527052d4ef457b29563
[ "Apache-2.0" ]
null
null
null
keras_frcnn/simple_parser_datagen.py
So-dal/Keras_FasterRCNN_CustomDataset
254a3e7b32d025d5ccabf527052d4ef457b29563
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np def get_data_batch(input_path, batch_imgs, dataset): """ input_path = fichier d'annotations .txt batch_imgs = liste qui contient les noms de fichiers dans le batch dataset = string : type de dataset train/val or test """ found_bg = False all_imgs = ...
35.030303
150
0.556877
2dc987c2f701e13d5fb95294a630aadfbfe22a43
1,777
py
Python
examples/AdAccountGeneratePreviewsEdgeInstagramStandards.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdAccountGeneratePreviewsEdgeInstagramStandards.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdAccountGeneratePreviewsEdgeInstagramStandards.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
44.425
269
0.767023
2dc9a82bd131dfd3641b336db8ca2eb22da6c0a9
16,002
py
Python
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/11_ext_g/train0.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/11_ext_g/train0.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/11_ext_g/train0.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import os, sys #os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="1" import numpy as np import pandas as pd import matplotlib.pyplot as plt import skimage.io from skimage.transform import resize from imgaug import augmenters as iaa from tqdm import tqdm import PIL from PIL import Image...
35.092105
123
0.661917
2dc9ae6f2bd26547214793c8780d8732e51f11c9
90,177
py
Python
src/rprblender/nodes/blender_nodes.py
ralic/RadeonProRenderBlenderAddon
310c650d4230289ac5d5407cc24a13b4c7ce0a90
[ "Apache-2.0" ]
1
2021-03-29T05:55:49.000Z
2021-03-29T05:55:49.000Z
src/rprblender/nodes/blender_nodes.py
ralic/RadeonProRenderBlenderAddon
310c650d4230289ac5d5407cc24a13b4c7ce0a90
[ "Apache-2.0" ]
1
2021-04-03T09:39:28.000Z
2021-04-03T09:39:28.000Z
src/rprblender/nodes/blender_nodes.py
isabella232/RadeonProRenderBlenderAddon
ff4ede164c1e1e909f182be709422bc8c8878b1c
[ "Apache-2.0" ]
null
null
null
#********************************************************************** # Copyright 2020 Advanced Micro Devices, 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.o...
38.487836
140
0.615767
2dc9ba20c7e1e06ee3c945a052fd4cef464e2847
777
gyp
Python
media/base/ipc/media_base_ipc.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
media/base/ipc/media_base_ipc.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
media/base/ipc/media_base_ipc.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { # GN version: //media/base/ipc 'target_name': 'media_base_ipc', 'type': 'static_library', 'dependencies': [ ...
28.777778
77
0.571429
2dc9bbb059934b2e5f642c491fe2fb1d0a23eced
5,219
py
Python
gitlab-ci/src/job_scripts/cargo_build_canisters.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
null
null
null
gitlab-ci/src/job_scripts/cargo_build_canisters.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
null
null
null
gitlab-ci/src/job_scripts/cargo_build_canisters.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
1
2022-03-12T03:13:53.000Z
2022-03-12T03:13:53.000Z
import logging import os import shutil from os import environ from os import getenv from os import path from typing import Optional from ci import cwd from ci import ENV from ci import flatten from ci import mkdir_p from ci import sh from ci import show_sccache_stats CANISTERS = [ "cycles-minting-canister", "...
31.251497
114
0.624832
2dc9c432dd7feb75631802a63b27ddbff2c3f585
542
py
Python
example/testapp/__init__.py
elpaso/rpc4django
d722faf5fb8408c7cd5f7c937b489b8cd5eae2ff
[ "BSD-3-Clause" ]
null
null
null
example/testapp/__init__.py
elpaso/rpc4django
d722faf5fb8408c7cd5f7c937b489b8cd5eae2ff
[ "BSD-3-Clause" ]
null
null
null
example/testapp/__init__.py
elpaso/rpc4django
d722faf5fb8408c7cd5f7c937b489b8cd5eae2ff
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from rpc4django import rpcmethod from othermodule import intro, request from secretmodule import * # imports protected method @rpcmethod(name='rpc4django.mytestmethod',signature=['int', 'int', 'int', 'int']) def mytestmethod(a, b, c): ''' Adds the three parameters together and returns ...
22.583333
81
0.625461
2dc9d3dbecf6d49422047c144bb322db043b5153
48,126
py
Python
src/sage/graphs/graph_database.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/graphs/graph_database.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/graphs/graph_database.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
""" Graph database INFO: This module implements classes (GraphDatabase, GraphQuery, GenericGraphQuery) for interfacing with the sqlite database graphs.db. The GraphDatabase class interfaces with the sqlite database graphs.db. It is an immutable database that inherits from SQLDatabase (see sage.databases.database.py)...
44.893657
154
0.422142
2dc9de17b865659484619fd7a52973a0efd5fd8d
41,086
py
Python
oscar/lib/python2.7/site-packages/setuptools/package_index.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/setuptools/package_index.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/setuptools/package_index.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""PyPI and direct package downloading""" import sys import os import re import shutil import socket import base64 import hashlib import itertools from functools import wraps try: from urllib.parse import splituser except ImportError: from urllib2 import splituser from setuptools.extern import...
36.815412
88
0.560556
2dca1b02985505dd118fdff1b3818811b69ebc24
532
py
Python
redhawk/test/files/examples/counter.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
2
2016-10-04T11:46:32.000Z
2017-07-09T15:23:55.000Z
redhawk/test/files/examples/counter.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
4
2016-03-07T13:16:48.000Z
2018-03-21T00:25:04.000Z
redhawk/test/files/examples/counter.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
3
2016-04-06T08:04:34.000Z
2020-03-17T20:59:47.000Z
def CounterClosure(init=0): value = [init] def Inc(): value[0] += 1 return value[0] return Inc class CounterClass: def __init__(self, init=0): self.value = init def Bump(self): self.value += 1 return self.value def CounterIter(init = 0): while True: init += 1 yield init if __...
18.344828
39
0.590226
2dca307ee69792af92c5cbc9ae60f56cb4b22e52
10,759
py
Python
tests/p2p/test_auth.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
137
2017-03-17T11:37:51.000Z
2022-03-07T07:51:28.000Z
tests/p2p/test_auth.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
102
2017-04-07T10:43:03.000Z
2018-11-11T18:01:56.000Z
tests/p2p/test_auth.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
39
2017-03-17T11:38:52.000Z
2021-02-18T23:05:17.000Z
import asyncio import pytest from eth_utils import ( decode_hex, ) from eth_keys import keys from cancel_token import CancelToken from p2p import ecies from p2p import kademlia from p2p.p2p_proto import Hello from p2p.auth import ( HandshakeInitiator, HandshakeResponder, ) from p2p.auth import decode_a...
46.575758
99
0.762431
2dca3bb11bfee07f74774e1e0e9a9a76dadfabe7
477
py
Python
comps/migrations/0003_comp_url_data_format.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
null
null
null
comps/migrations/0003_comp_url_data_format.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
87
2020-04-15T22:29:03.000Z
2022-01-02T02:21:28.000Z
comps/migrations/0003_comp_url_data_format.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-05 17:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comps', '0002_comp_logo'), ] operations = [ migrations.AddField( model_name='comp', name='url_data_format', ...
25.105263
147
0.589099
2dca4c30a5eecfd4432cd8ee36a915900b826c9c
1,029
py
Python
test/test_cms_error.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_cms_error.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_cms_error.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
1
2020-05-15T04:20:48.000Z
2020-05-15T04:20:48.000Z
# coding: utf-8 """ Container Security APIs All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501 ...
25.725
265
0.707483
2dca7297384da108a4373d63a911a369b04a72b4
18,379
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/isosurface/slices/__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/isosurface/slices/__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/isosurface/slices/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): # fill # ---- @property def fill(self): """ Sets the fill ratio of the `slices`. The default fill value of the `slices` is 1 meaning that t...
29.219396
82
0.550737
2dca7ced9c51cc5808200f2d2e696cbca6637c2a
30,607
py
Python
tests/modeltests/fixtures/tests.py
jezdez-archive/django-old
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2019-06-13T16:18:27.000Z
2019-06-13T16:18:27.000Z
tests/modeltests/fixtures/tests.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
null
null
null
tests/modeltests/fixtures/tests.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import StringIO from django.contrib.sites.models import Site from django.core import management from django.db import connection from django.test import TestCase, TransactionTestCase, skipUnlessDBFeature from .models import Article, Book, Spy, Tag, Visa class TestCaseFixtureL...
85.733894
4,318
0.649361
2dca94b6cb507037ac8697b3ae990a76ef88d254
7,570
py
Python
aioapp/db.py
konstantin-stepanov/aiodirector
4a928762c6a388a4102154b59b78badbff9e1511
[ "MIT" ]
null
null
null
aioapp/db.py
konstantin-stepanov/aiodirector
4a928762c6a388a4102154b59b78badbff9e1511
[ "MIT" ]
null
null
null
aioapp/db.py
konstantin-stepanov/aiodirector
4a928762c6a388a4102154b59b78badbff9e1511
[ "MIT" ]
null
null
null
import json import asyncio import asyncpg import asyncpg.pool import aiozipkin as az import aiozipkin.span as azs # noqa from .app import Component from .error import PrepareError from .misc import mask_url_pwd class PgDb(Component): def __init__(self, dsn, pool_min_size=10, pool_max_size=10, po...
35.373832
79
0.596697
2dcaa8465d76636c061f62b1f4cfc1082a7b08fe
138
py
Python
assignment2/nn_visualization/models.py
hyzhak/cs231n-lecture-notes
0f0a586a1f015e97f6ea62ad9711ac6e766f46bc
[ "MIT" ]
14
2018-06-25T08:41:27.000Z
2022-01-17T17:16:02.000Z
assignment2/nn_visualization/models.py
hyzhak/cs231n-lecture-notes
0f0a586a1f015e97f6ea62ad9711ac6e766f46bc
[ "MIT" ]
12
2020-11-18T21:11:03.000Z
2022-03-11T23:14:53.000Z
assignment2/nn_visualization/models.py
hyzhak/cs231n-lecture-notes
0f0a586a1f015e97f6ea62ad9711ac6e766f46bc
[ "MIT" ]
7
2018-05-04T14:54:29.000Z
2020-06-16T17:13:31.000Z
def get_model_name(model): """ Get name of model :param model: :return: """ return model['hyper_params']['name']
15.333333
40
0.572464
2dcac0863d8c9eb5592cd1dbbf223b4ef6b2661e
923
py
Python
src/elemeno_ai_sdk/models/conversion/tensorflow.py
elemeno-ai/elemeno-ai-sdk
2737b2c9c575119bd40efcd8c5e91a98f9d8b6b1
[ "Apache-2.0" ]
1
2021-11-16T13:38:39.000Z
2021-11-16T13:38:39.000Z
src/elemeno_ai_sdk/models/conversion/tensorflow.py
elemeno-ai/elemeno-ai-sdk
2737b2c9c575119bd40efcd8c5e91a98f9d8b6b1
[ "Apache-2.0" ]
null
null
null
src/elemeno_ai_sdk/models/conversion/tensorflow.py
elemeno-ai/elemeno-ai-sdk
2737b2c9c575119bd40efcd8c5e91a98f9d8b6b1
[ "Apache-2.0" ]
null
null
null
from typing import Any import tf2onnx from tensorflow.python.keras.models import load_model import onnx from elemeno_ai_sdk.models.conversion.converter_abc import ConverterABC ConverterABC.register class TensorflowConverter: def transform(self, path: str) -> Any: """ Convert a tensorflow model t...
34.185185
83
0.652221
2dcacdad85e636d95e30bb0b0e001cf56b172635
11,118
py
Python
airflow/contrib/auth/backends/ldap_auth.py
zaoshu/incubator-airflow
35e7d2bea12700339934998edefda9458a44b4db
[ "Apache-2.0" ]
null
null
null
airflow/contrib/auth/backends/ldap_auth.py
zaoshu/incubator-airflow
35e7d2bea12700339934998edefda9458a44b4db
[ "Apache-2.0" ]
2
2018-05-04T18:59:22.000Z
2018-08-14T19:07:51.000Z
airflow/contrib/auth/backends/ldap_auth.py
zaoshu/incubator-airflow
35e7d2bea12700339934998edefda9458a44b4db
[ "Apache-2.0" ]
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 ...
34.962264
152
0.598669
2dcad5d3e733c2382201bcdb8c5c49221a0dfe60
2,166
py
Python
configs/_dynamic_/rules/140GF_rules.py
zengming16/GAIA-det
cac6b5601d63aeaa3882cea2256dcb2539fecb34
[ "Apache-2.0" ]
149
2021-06-21T06:18:16.000Z
2022-03-23T08:55:23.000Z
configs/_dynamic_/rules/140GF_rules.py
zengming16/GAIA-det
cac6b5601d63aeaa3882cea2256dcb2539fecb34
[ "Apache-2.0" ]
7
2021-07-11T07:52:58.000Z
2022-03-30T11:41:39.000Z
configs/_dynamic_/rules/140GF_rules.py
zengming16/GAIA-det
cac6b5601d63aeaa3882cea2256dcb2539fecb34
[ "Apache-2.0" ]
13
2021-06-29T06:06:13.000Z
2022-02-28T01:31:17.000Z
model_space_path = 'path/to/ar50to101_flops.json' model_sampling_rules = dict( type='sequential', rules=[ # 1. overhead constraints, e.g. close to R50(138*1e9), replace it basing on your needs. dict( func_str= 'lambda x: x[\'overhead.flops\'] <=140*1e9 and x[\'overhead.fl...
39.381818
120
0.449677
2dcb33c2263e1357ab0626164278f30088126438
1,958
py
Python
tests/test_processes.py
gwiederhecker/MPh
d5eb7b6e9e00fe3fcd00acf53278a89243ae512a
[ "MIT" ]
1
2021-12-23T09:15:56.000Z
2021-12-23T09:15:56.000Z
tests/test_processes.py
gwiederhecker/MPh
d5eb7b6e9e00fe3fcd00acf53278a89243ae512a
[ "MIT" ]
null
null
null
tests/test_processes.py
gwiederhecker/MPh
d5eb7b6e9e00fe3fcd00acf53278a89243ae512a
[ "MIT" ]
null
null
null
"""Tests multi-processing.""" __license__ = 'MIT' ######################################## # Dependencies # ######################################## import parent from subprocess import run, PIPE from platform import system from pathlib import Path from sys import argv import logg...
31.079365
79
0.501532
2dcb3fc5d3d7c5ec6776d0a47c481757b50a1b3a
1,373
py
Python
src/plot_4.py
Mehul2203/dashboard1-group-e
300d8db176c24c46008e01147818cfeca04470c9
[ "MIT" ]
null
null
null
src/plot_4.py
Mehul2203/dashboard1-group-e
300d8db176c24c46008e01147818cfeca04470c9
[ "MIT" ]
3
2022-03-06T03:10:56.000Z
2022-03-19T23:04:23.000Z
src/plot_4.py
Mehul2203/dashboard1-group-e
300d8db176c24c46008e01147818cfeca04470c9
[ "MIT" ]
3
2022-02-17T00:34:20.000Z
2022-03-26T03:09:21.000Z
from ctypes import alignment from dash import Dash, dcc, html, Input, Output import plotly.express as px import pandas as pd import dash_bootstrap_components as dbc # Read data df = pd.read_csv('../data/Superstore.csv') states = sorted(df['State'].unique()) # Create instance of app app = Dash(__name__,external_styles...
28.604167
97
0.682447
2dcb4c5945f9466dede23121ae2c4806a6b7f8e8
9,410
py
Python
mindmeld/active_learning/results_manager.py
Zozman/mindmeld
d86cc823c9b36dbafc8fc8f8ea04085ca1ffdeb5
[ "Apache-2.0" ]
1
2022-02-09T13:39:41.000Z
2022-02-09T13:39:41.000Z
mindmeld/active_learning/results_manager.py
Zozman/mindmeld
d86cc823c9b36dbafc8fc8f8ea04085ca1ffdeb5
[ "Apache-2.0" ]
null
null
null
mindmeld/active_learning/results_manager.py
Zozman/mindmeld
d86cc823c9b36dbafc8fc8f8ea04085ca1ffdeb5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Cisco Systems, Inc. and others. 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...
36.757813
101
0.637513
2dcb58129b128c1ee9c1ed4cfe945491b9008cd8
405
py
Python
Background/MakeBackgroundOutline.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
2
2021-02-12T20:36:29.000Z
2021-11-03T08:04:01.000Z
Background/MakeBackgroundOutline.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
Background/MakeBackgroundOutline.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
# MenuTitle: Make Background Outline # -*- coding: utf-8 -*- __doc__ = """ Copies the forground to the background as outlines in all selected glyphs. """ # Glyphs.clearLog() # Glyphs.showMacroWindow() Glyphs.font.disableUpdateInterface() for g in [x.parent for x in Glyphs.font.selectedLayers]: for l in g.layers:...
23.823529
74
0.725926
2dcb6104de535de2016354b00ae0ac0b952cd1d8
1,236
py
Python
examples/interactive/interactive_2d/2d_interactive.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
150
2015-01-16T12:24:13.000Z
2022-03-03T18:01:18.000Z
examples/interactive/interactive_2d/2d_interactive.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
129
2015-01-13T04:58:56.000Z
2022-03-02T13:39:16.000Z
examples/interactive/interactive_2d/2d_interactive.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
88
2015-02-16T20:04:12.000Z
2022-03-10T06:50:30.000Z
#! /usr/bin/env python # Create a interactive contour plot of a 2D NMRPipe spectrum import nmrglue as ng import matplotlib.pyplot as plt import matplotlib.cm # plot parameters cmap = matplotlib.cm.Blues_r # contour map (colors to use for contours) contour_start = 30000 # contour level start value contour...
28.744186
74
0.723301
2dcb71ce04c3a22c945f619686a2973ed280c276
55,535
py
Python
Gilbo-API/Gilbo.py
RavenJSnow/RPG_Game
597df3671f522fe3c373fba505a2027f8ba4a96b
[ "Apache-2.0" ]
null
null
null
Gilbo-API/Gilbo.py
RavenJSnow/RPG_Game
597df3671f522fe3c373fba505a2027f8ba4a96b
[ "Apache-2.0" ]
null
null
null
Gilbo-API/Gilbo.py
RavenJSnow/RPG_Game
597df3671f522fe3c373fba505a2027f8ba4a96b
[ "Apache-2.0" ]
null
null
null
# Gilbo RPG API -- Version 1.2.8 # from abc import ABC, abstractmethod from enum import IntEnum, auto # 3rd Party Libraries import numpy as np try: from dispatcher import Signal except ModuleNotFoundError: from django.dispatch.dispatcher import Signal # # Events # # # Inventory-related pub_...
36.560237
212
0.560944
2dcb938ace8440928546421c015172e2d3089653
5,747
py
Python
propagsim/tfutils.py
parcoor/py-propagsim
86f8d7072d78adafb01739375bed4023b0a046a0
[ "MIT" ]
9
2020-03-23T07:56:11.000Z
2020-05-19T07:37:20.000Z
propagsim/tfutils.py
parcoor/py-propagsim
86f8d7072d78adafb01739375bed4023b0a046a0
[ "MIT" ]
4
2020-03-24T11:25:24.000Z
2020-04-26T01:16:16.000Z
propagsim/tfutils.py
parcoor/py-propagsim
86f8d7072d78adafb01739375bed4023b0a046a0
[ "MIT" ]
4
2020-03-24T11:18:35.000Z
2020-05-09T17:46:48.000Z
import tensorflow as tf from numpy.linalg import norm from numpy.random import rand from scipy.spatial.distance import cdist import warnings warnings.filterwarnings('ignore', category=RuntimeWarning) def get_least_severe_state(states): """ Get the state that has the least severity > 0 """ least_severe_stat...
47.495868
135
0.738124
2dcba32774e9b55178e28b8069c841dbb9db141c
2,148
py
Python
tests/test_url2tree.py
xodhx4/url2tree
9e5f8f6ed231ef991583b25c844088e9c4ee912c
[ "MIT" ]
1
2019-09-20T01:54:28.000Z
2019-09-20T01:54:28.000Z
tests/test_url2tree.py
xodhx4/url2tree
9e5f8f6ed231ef991583b25c844088e9c4ee912c
[ "MIT" ]
null
null
null
tests/test_url2tree.py
xodhx4/url2tree
9e5f8f6ed231ef991583b25c844088e9c4ee912c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `url2tree` package.""" import pytest from url2tree import url2tree @pytest.fixture def randomUrlData(): # TODO : Add faker for random url test from faker import Faker fake = Faker() domain = fake.url() url_logs = [(domain + fake.uri_pa...
24.134831
68
0.648976
2dcbb0830d58f856be6fed6d3f25ae75be5832db
3,103
py
Python
tests/test_threadutils.py
hengyicai/Adaptive_Multi-curricula_Learning_for_Dialog
e2d2c613ac4075ce023d6b4acb0a5eddac4e7837
[ "MIT" ]
17
2020-03-27T17:25:52.000Z
2021-11-19T03:46:25.000Z
tests/test_threadutils.py
urantialife/ParlAI
9b6640d50d907e9fa5352f5c4c2290d436110854
[ "MIT" ]
3
2021-03-11T06:04:15.000Z
2021-08-31T15:44:42.000Z
tests/test_threadutils.py
urantialife/ParlAI
9b6640d50d907e9fa5352f5c4c2290d436110854
[ "MIT" ]
3
2020-05-04T04:37:42.000Z
2021-07-19T11:09:37.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.core.thread_utils import SharedTable from multiprocessing import Process import unittest import random import...
26.75
81
0.499194
2dcbc9c2b9ab571a5645a058681e01a85bdbb9a5
3,088
py
Python
daoliproxy/openstack/common/report/models/with_default_views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
daoliproxy/openstack/common/report/models/with_default_views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
daoliproxy/openstack/common/report/models/with_default_views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Red Hat, 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 agre...
37.658537
78
0.665155
2dcbe4172bed724c3e41f4edccc637f6ac9294f4
5,632
py
Python
examples/diffusion/poisson_parametric_study.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
examples/diffusion/poisson_parametric_study.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
examples/diffusion/poisson_parametric_study.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
r""" Poisson equation. This example demonstrates parametric study capabilities of Application classes. In particular (written in the strong form): .. math:: c \Delta t = f \mbox{ in } \Omega, t = 2 \mbox{ on } \Gamma_1 \;, t = -2 \mbox{ on } \Gamma_2 \;, f = 1 \mbox{ in } \Omega_1 \;, f = 0 \mbox...
26.074074
79
0.584339
2dcbed1766351b627e3d1e6cefb4484eb8ff9e0a
4,251
py
Python
validator/sawtooth_validator/database/lmdb_nolock_database.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
validator/sawtooth_validator/database/lmdb_nolock_database.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
1
2021-12-09T23:11:26.000Z
2021-12-09T23:11:26.000Z
validator/sawtooth_validator/database/lmdb_nolock_database.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
32.450382
80
0.555634
2dcbed3ec81bbb9b9671c4f98387bc67f1f3cb64
12,719
py
Python
bonneville/modules/useradd.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/useradd.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/useradd.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Manage users with the useradd command ''' # Import python libs import re try: import grp import pwd except ImportError: pass import logging import copy # Import bonneville libs import bonneville.utils from bonneville._compat import string_types log = logging.getLogger(__name_...
24.745136
79
0.582514
2dcc5370d495b88fb8abba2448f8185d857738db
6,611
py
Python
eddymotion/model.py
arokem/EddyMotionCorrection
3eac1547b31b8f42f17fa67a442ccdc8527658c2
[ "Apache-2.0" ]
null
null
null
eddymotion/model.py
arokem/EddyMotionCorrection
3eac1547b31b8f42f17fa67a442ccdc8527658c2
[ "Apache-2.0" ]
null
null
null
eddymotion/model.py
arokem/EddyMotionCorrection
3eac1547b31b8f42f17fa67a442ccdc8527658c2
[ "Apache-2.0" ]
null
null
null
"""A factory class that adapts DIPY's dMRI models.""" import warnings import numpy as np from dipy.core.gradients import gradient_table class ModelFactory: """A factory for instantiating diffusion models.""" @staticmethod def init(gtab, model="TensorModel", **kwargs): """ Instatiate a dif...
28.743478
75
0.532748
2dcc83097032b666e75f2a664e9b2f9f57b7c89c
1,146
py
Python
terrascript/artifactory/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/artifactory/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/artifactory/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/artifactory/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class artifactory_access_token(terrascript.Resource): pass class artifactory_api_key(terrascript....
17.363636
79
0.800175
2dcc8a9bc9cb0a15ecc057dd7f45991677b0cbdc
2,420
py
Python
lightdo/utils.py
arasHi87/RaitoNoberu
7ed59db8975175f8927558382ebe3ec491a72672
[ "MIT" ]
2
2020-02-17T04:06:48.000Z
2021-04-19T07:36:04.000Z
lightdo/utils.py
arasHi87/RaitoNoberu
7ed59db8975175f8927558382ebe3ec491a72672
[ "MIT" ]
1
2021-06-02T00:36:49.000Z
2021-06-02T00:36:49.000Z
lightdo/utils.py
arasHi87/RaitoNoberu
7ed59db8975175f8927558382ebe3ec491a72672
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, print_function import os import json import random import requests from ebooklib import epub from lightdo.mega import Mega from lightdo.logger import logger def txt2epub(data, path): for name in data['content']: book = epub.EpubBook() book.set_identifier('{...
29.876543
72
0.614463
2dccd353c2dd39705056edd0e80bb3554aaad660
6,165
py
Python
tmp_dnn.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
628
2015-03-25T17:32:30.000Z
2021-07-30T18:24:33.000Z
tmp_dnn.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
4
2015-04-06T10:23:19.000Z
2017-01-10T18:47:49.000Z
tmp_dnn.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
253
2015-03-25T18:08:43.000Z
2022-01-26T22:35:05.000Z
""" cuDNN based layers """ import theano import theano.tensor as T from lasagne import init from lasagne import nonlinearities from lasagne.layers.base import Layer dnn_available = False if theano.config.device.startswith("gpu"): from theano.sandbox.cuda import dnn if dnn.dnn_available(): dnn_availa...
39.018987
135
0.618167
2dccdb9065110fa4e91c446fff29892e90aacc6e
1,346
py
Python
setup.py
meisterluk/ruledxml
2c66f0b7a931479c7ce3ab6877b1b4ea202f902a
[ "BSD-3-Clause" ]
null
null
null
setup.py
meisterluk/ruledxml
2c66f0b7a931479c7ce3ab6877b1b4ea202f902a
[ "BSD-3-Clause" ]
null
null
null
setup.py
meisterluk/ruledxml
2c66f0b7a931479c7ce3ab6877b1b4ea202f902a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ ruledxml ~~~~~~~~ Rule-based XML transformations. To install *ruledxml* use pip3: .. code:: bash $ pip3 install ruledxml (C) 2015, meisterluk, BSD 3-clause license """ import os.path from setuptools import setup def readfile(fname): with open(os.path...
25.884615
68
0.610698
2dccddd2fd6b6d9629ccd8b6a61c6ea322a0dc18
169,263
py
Python
src/sage/combinat/ncsf_qsym/qsym.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/ncsf_qsym/qsym.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/ncsf_qsym/qsym.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
r""" Quasisymmetric functions REFERENCES: .. [Ges] \I. Gessel, *Multipartite P-partitions and inner products of skew Schur functions*, Contemp. Math. **34** (1984), 289-301. http://people.brandeis.edu/~gessel/homepage/papers/multipartite.pdf .. [MR] \C. Malvenuto and C. Reutenauer, *Duality between quasi-symme...
41.772705
238
0.493504
2dccde7f0ed84de32809be6c6530e765639459e4
692
py
Python
setup.py
JohnnyHowe/Slow-Engine-Python
4a9ac30fdfa3f60ac3099d2f559d9ff375e51787
[ "MIT" ]
null
null
null
setup.py
JohnnyHowe/Slow-Engine-Python
4a9ac30fdfa3f60ac3099d2f559d9ff375e51787
[ "MIT" ]
null
null
null
setup.py
JohnnyHowe/Slow-Engine-Python
4a9ac30fdfa3f60ac3099d2f559d9ff375e51787
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="example-pkg-YOUR-USERNAME-HERE", # Replace with your own username version="0.0.1", author="Example Author", author_email="author@example.com", description="A small example package", lo...
31.454545
75
0.67341
2dcce11600a48144cc6928ac683793c6f059f956
24,033
py
Python
zerver/lib/test_helpers.py
stableapple/zulip
fdced1570f6908121f9e663280bc8460589ee1f6
[ "Apache-2.0" ]
null
null
null
zerver/lib/test_helpers.py
stableapple/zulip
fdced1570f6908121f9e663280bc8460589ee1f6
[ "Apache-2.0" ]
null
null
null
zerver/lib/test_helpers.py
stableapple/zulip
fdced1570f6908121f9e663280bc8460589ee1f6
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from typing import ( Any, Callable, Dict, Generator, Iterable, Iterator, List, Mapping, Optional, Tuple, Union, IO, TypeVar, TYPE_CHECKING ) from django.urls.resolvers import LocaleRegexURLResolver from django.conf import settings from django.test import override_settings ...
39.463054
206
0.638414
2dccf187882c87687315822d60a83776ffeaee87
3,284
py
Python
liualgotrader/models/gain_loss.py
TheSnoozer/LiuAlgoTrader
5ad4e46db126698399d338c4488aa4983385c2d8
[ "MIT" ]
null
null
null
liualgotrader/models/gain_loss.py
TheSnoozer/LiuAlgoTrader
5ad4e46db126698399d338c4488aa4983385c2d8
[ "MIT" ]
null
null
null
liualgotrader/models/gain_loss.py
TheSnoozer/LiuAlgoTrader
5ad4e46db126698399d338c4488aa4983385c2d8
[ "MIT" ]
null
null
null
from datetime import date from pandas import DataFrame from liualgotrader.common import config from liualgotrader.common.database import fetch_as_dataframe from liualgotrader.common.tlog import tlog class GainLoss: @classmethod async def save(cls, df: DataFrame): pool = config.db_conn_pool ...
37.747126
144
0.48447
2dcd3b607838156d36fadeb37e753e13a8db630d
101,178
py
Python
google-cloud-sdk/platform/gsutil/gslib/command.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/platform/gsutil/gslib/command.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/platform/gsutil/gslib/command.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# -*- coding: utf-8 -*- # Copyright 2010 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
43.724287
87
0.698383
2dcd7ff0d896c231a777fea73f40dde19446866a
42,436
py
Python
code_server/model/layers.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
code_server/model/layers.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
code_server/model/layers.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import scipy.sparse as sp from .layer_utils import * import numpy as np class BaseLayer(object): def __init__(self, input_dim, output_dim, activation_func, name, dropout_prob = None, bias = False, ...
34.11254
108
0.545127
2dcd87c203323e9d4ab17013ed8478f0cba2bb4a
2,045
py
Python
backend/factories/elections.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
2
2020-02-28T16:24:55.000Z
2020-03-27T17:12:50.000Z
backend/factories/elections.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
51
2020-02-12T20:52:08.000Z
2022-02-27T00:23:20.000Z
backend/factories/elections.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
null
null
null
import operator import factory.fuzzy from apollo.elections.models import Election, Question, Vote, Answer from apollo.elections.models.election import VoterAuthorizationRule from factories.users import UserFactory class ElectionFactory(factory.django.DjangoModelFactory): class Meta: model = Election ...
26.907895
80
0.70709
2dcd887d3ccb53bb61563d1898d71e0c03917f30
2,524
py
Python
sf6/sf6.py
marshallmcdonnell/ase-scripts
2de692304fed32b7132275b5a51c307b5797fc55
[ "MIT" ]
null
null
null
sf6/sf6.py
marshallmcdonnell/ase-scripts
2de692304fed32b7132275b5a51c307b5797fc55
[ "MIT" ]
null
null
null
sf6/sf6.py
marshallmcdonnell/ase-scripts
2de692304fed32b7132275b5a51c307b5797fc55
[ "MIT" ]
null
null
null
"""Get energy from a LAMMPS calculation""" from __future__ import print_function from ase import units from ase.calculators.lammpslib import LAMMPSlib, write_lammps_data from ase.neighborlist import NeighborList from ase.md.velocitydistribution import MaxwellBoltzmannDistribution from ase.io.trajectory import Trajec...
29.694118
92
0.590333
2dce00e56fcfad2d70fd8ef4085822468eb04aee
3,592
py
Python
sktime/utils/validation/series_as_features.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-10-05T12:17:41.000Z
2020-10-19T08:57:50.000Z
sktime/utils/validation/series_as_features.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-04-20T12:26:42.000Z
2020-04-22T17:09:14.000Z
sktime/utils/validation/series_as_features.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2022-02-14T18:19:01.000Z
2022-02-14T18:19:01.000Z
__author__ = ["Markus Löning"] __all__ = [ "check_X", "check_y", "check_X_y", "_enforce_X_univariate", "_enforce_min_instances" ] import numpy as np import pandas as pd from sklearn.utils.validation import check_consistent_length def check_X(X, enforce_univariate=False, enforce_min_instances=1): ...
24.60274
75
0.616091
2dce1377a5117aec30db1dfd28195ef0b2a4c85c
995
py
Python
zookeeper/core/task_test.py
AdamHillier/zookeeper
f9a2c19d429bf61a3bc64dc51ba942872b22c5a1
[ "Apache-2.0" ]
4
2019-05-30T17:07:28.000Z
2019-07-07T14:01:29.000Z
zookeeper/core/task_test.py
AdamHillier/zookeeper
f9a2c19d429bf61a3bc64dc51ba942872b22c5a1
[ "Apache-2.0" ]
58
2020-10-15T06:39:46.000Z
2022-03-29T12:05:45.000Z
zookeeper/core/task_test.py
AdamHillier/zookeeper
f9a2c19d429bf61a3bc64dc51ba942872b22c5a1
[ "Apache-2.0" ]
1
2019-06-02T17:01:13.000Z
2019-06-02T17:01:13.000Z
import pytest from zookeeper.core.task import task def test_with_argumentless_run(): """Tasks with argument-less `run` should not cause errors.""" @task class T1: def run(self): pass @task class T2: @classmethod def run(cls): pass @task c...
19.134615
93
0.561809
2dce31513a8a87690b065b58fdd470381ab0f2b6
1,154
py
Python
{{cookiecutter.project_slug}}/tests/test_{{cookiecutter.project_slug}}.py
bird-house/cookiecutter-birdhouse
cbf3626fd8bc465a7cb3197f1cdc5e1282344fa3
[ "BSD-3-Clause" ]
3
2019-04-17T11:26:20.000Z
2021-06-15T17:21:12.000Z
{{cookiecutter.project_slug}}/tests/test_{{cookiecutter.project_slug}}.py
bird-house/cookiecutter-birdhouse
cbf3626fd8bc465a7cb3197f1cdc5e1282344fa3
[ "BSD-3-Clause" ]
85
2018-02-20T19:05:04.000Z
2022-02-23T11:26:23.000Z
{{cookiecutter.project_slug}}/tests/test_{{cookiecutter.project_slug}}.py
bird-house/cookiecutter-birdhouse
cbf3626fd8bc465a7cb3197f1cdc5e1282344fa3
[ "BSD-3-Clause" ]
3
2018-06-15T11:58:51.000Z
2022-02-21T13:55:28.000Z
#!/usr/bin/env python """Tests for `{{ cookiecutter.project_slug }}` package.""" {% if cookiecutter.use_pytest == 'y' -%} import pytest {% else %} import unittest {%- endif %} from click.testing import CliRunner import {{ cookiecutter.project_slug }} from {{ cookiecutter.project_slug }} import cli {%- if cookiecutt...
25.086957
78
0.666378
2dce32530310e586f742cc31bfbc7ec806908e25
23,341
py
Python
tests/notice_sxs_tests.py
cfpb/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
36
2015-01-05T21:17:36.000Z
2020-04-28T21:02:55.000Z
tests/notice_sxs_tests.py
DalavanCloud/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
49
2015-01-28T15:54:25.000Z
2018-08-20T20:20:08.000Z
tests/notice_sxs_tests.py
DalavanCloud/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
23
2015-01-28T15:34:18.000Z
2021-02-20T10:53:34.000Z
# vim: set encoding=utf-8 from lxml import etree from regparser.notice import sxs from unittest import TestCase class NoticeSxsTests(TestCase): def test_find_page(self): xml = """<ROOT> <P /> Text <P /> <PRTPAGE P="333" /> <P /> <PRTP...
40.382353
78
0.524014
2dce4b94ad28438f94a138e52c010db2afe7c5e4
17,734
py
Python
pcdet/models/dense_heads/anchor_head_single_context_fpn_weak.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
8
2021-06-23T02:06:56.000Z
2022-03-18T08:34:32.000Z
pcdet/models/dense_heads/anchor_head_single_context_fpn_weak.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
2
2021-07-17T11:19:14.000Z
2021-09-25T03:30:36.000Z
pcdet/models/dense_heads/anchor_head_single_context_fpn_weak.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from .anchor_head_template import AnchorHeadTemplate class GradReverse(torch.autograd.Function): def __init__(self, lambd): self.lambd = lambd def forward(self, x): return x.view_as(x) def backward(self...
43.572482
191
0.565749
2dce600bbb6adae09a7615ce26afc0af13bf3cef
4,758
py
Python
test/vanilla/legacy/AcceptanceTests/test_number.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/legacy/AcceptanceTests/test_number.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/legacy/AcceptanceTests/test_number.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
38.064
100
0.715006
2dcea292a3a31f6630df9753368b2b1cddadfc0a
1,840
py
Python
hutch_python/exp_load.py
ZryletTC/hutch-python
f0975c17ce3d773688af0dcc68fe57dc94b42518
[ "BSD-3-Clause-LBNL" ]
null
null
null
hutch_python/exp_load.py
ZryletTC/hutch-python
f0975c17ce3d773688af0dcc68fe57dc94b42518
[ "BSD-3-Clause-LBNL" ]
null
null
null
hutch_python/exp_load.py
ZryletTC/hutch-python
f0975c17ce3d773688af0dcc68fe57dc94b42518
[ "BSD-3-Clause-LBNL" ]
null
null
null
import logging from importlib import import_module from types import SimpleNamespace from . import utils logger = logging.getLogger(__name__) def get_exp_objs(exp_module, *, ask_on_failure=True): """ Load the correct experiment module. This will import User from ``experiments.{exp_module}`` and cre...
32.857143
79
0.617391
2dceaa86dc296e5a44715e0d50f6a87ace17a504
1,688
py
Python
upscale.py
jlfilho/api-srvideo-rtmp
2aaefd4b976f1f8067739a47b11c16dc5b8fddc6
[ "MIT" ]
null
null
null
upscale.py
jlfilho/api-srvideo-rtmp
2aaefd4b976f1f8067739a47b11c16dc5b8fddc6
[ "MIT" ]
null
null
null
upscale.py
jlfilho/api-srvideo-rtmp
2aaefd4b976f1f8067739a47b11c16dc5b8fddc6
[ "MIT" ]
null
null
null
import argparse import ffmpeg import sys import numpy as np import subprocess from model import create_model, sr_genarator from util import scale_lr_imgs, unscale_hr_imgs, payloader_pre, payloader_pos from util import start_ffmpeg_reader, start_ffmpeg_writer from util import get_video_size, read_frame, return_seg,...
27.225806
79
0.621445
2dcecd437d95eeea9d028984e5f7cbe4248b7420
130
py
Python
varnish/datadog_checks/varnish/__about__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
2
2019-04-03T17:21:38.000Z
2020-02-04T16:28:05.000Z
varnish/datadog_checks/varnish/__about__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
10
2018-02-27T19:06:07.000Z
2021-08-30T03:23:26.000Z
varnish/datadog_checks/varnish/__about__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
6
2018-01-09T21:37:20.000Z
2020-05-26T09:28:09.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) __version__ = "1.2.1"
21.666667
59
0.707692
2dcf062671a6fcf536471c0fbaf637433690360f
309
py
Python
Source/Oyooni/Text Recognition/testOCR.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Text Recognition/testOCR.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Text Recognition/testOCR.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
import cv2 import pytesseract pytesseract.pytesseract.tesseract_cmd = r'C:/Program Files/Tesseract-OCR/tesseract.exe' #image path imgUrl=r'C:/Users/abdq9/Desktop/test.jpg' img=cv2.imread(imgUrl) custom_config = r'--oem 3 --psm 6' text = pytesseract.image_to_string(img,config=custom_config, lang= 'ara+eng')
30.9
87
0.783172
2dcf0cb046463524bee4620b660aaa0279952766
7,689
py
Python
exp2/exp2_0b.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
exp2/exp2_0b.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
5
2017-05-22T20:32:07.000Z
2017-06-02T21:06:23.000Z
exp2/exp2_0b.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import h5py import time import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt # Functions for initializing neural nets parameters def init_weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1, dtype=tf.float32) return tf.Variable(initia...
34.479821
166
0.680453
2dcf27dff29b34acad3758b61cc1409c48d8574c
1,660
py
Python
section2 - Copy/src/run_ml_pipeline.py
root-dh-94/Hippocampal-Volume-Quantification-in-Alzheimer-s-Progression
6aba08ba44248af08efb5c19b5f95d3643a025f4
[ "MIT" ]
null
null
null
section2 - Copy/src/run_ml_pipeline.py
root-dh-94/Hippocampal-Volume-Quantification-in-Alzheimer-s-Progression
6aba08ba44248af08efb5c19b5f95d3643a025f4
[ "MIT" ]
null
null
null
section2 - Copy/src/run_ml_pipeline.py
root-dh-94/Hippocampal-Volume-Quantification-in-Alzheimer-s-Progression
6aba08ba44248af08efb5c19b5f95d3643a025f4
[ "MIT" ]
null
null
null
""" This file contains code that will kick off training and testing processes """ import os import json from experiments.UNetExperiment import UNetExperiment from data_prep.HippocampusDatasetLoader import LoadHippocampusData from sklearn.model_selection import train_test_split class Config: """ Holds configur...
23.055556
90
0.654217
2dcf30f8fe149846d27fcb6ae8fba9ebcbb271a2
108
py
Python
core/threatlevels.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
core/threatlevels.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
core/threatlevels.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from enum import Enum class ThreatLevel(Enum): Minor = 0 Major = 1 Critical = 2 Fatal = 3
12
24
0.601852
2dcf4f433e3bcc3caf9d7f997fc638a80a76520f
3,516
py
Python
tests/unit/modules/rvm_test.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2015-10-06T22:25:22.000Z
2015-10-06T22:25:22.000Z
tests/unit/modules/rvm_test.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/rvm_test.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
import sys import os sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) from saltunittest import TestCase, TestLoader, TextTestRunner, skipIf try: from mock import MagicMock, patch has_mock = True except ImportError: has_mock = False if has_mock: import salt....
28.128
78
0.569397
2dcf51d0aa648c782e2be3635164c9b31652153a
2,338
py
Python
src/toil/test/lib/test_ec2.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
348
2018-07-08T03:38:28.000Z
2022-03-11T18:57:44.000Z
src/toil/test/lib/test_ec2.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
1,700
2018-07-05T18:28:49.000Z
2022-03-31T14:09:04.000Z
src/toil/test/lib/test_ec2.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
126
2018-07-11T18:59:29.000Z
2022-01-24T03:14:02.000Z
# Copyright (C) 2015-2021 Regents of the University of California # # 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 app...
42.509091
99
0.696749
2dcf73464210faf258cbbebc148f4058ccd17e2c
616
py
Python
AlgorithmsPractice/python/01_simple_Two sum.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/01_simple_Two sum.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
AlgorithmsPractice/python/01_simple_Two sum.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# 2018-6-12 # Two sum class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ result = [] leng = len(nums) i = 0 while i < leng - 1: j = i + 1 while j < l...
22.814815
47
0.409091
2dcf82c61db9cafc8e7b67044f5c188a87a967d7
109
py
Python
jupylint/__init__.py
EdmundGoodman/Jupyter_Pylinter
d24d210e06a8c0a8e8734da02e95a119d5ad70ee
[ "MIT" ]
5
2021-10-30T17:05:48.000Z
2022-03-31T02:10:56.000Z
jupylint/__init__.py
EdmundGoodman/Jupyter_Pylinter
d24d210e06a8c0a8e8734da02e95a119d5ad70ee
[ "MIT" ]
3
2021-10-31T14:40:39.000Z
2021-11-24T21:23:01.000Z
jupylint/__init__.py
EdmundGoodman/Jupyter_Pylinter
d24d210e06a8c0a8e8734da02e95a119d5ad70ee
[ "MIT" ]
1
2021-11-24T21:24:30.000Z
2021-11-24T21:24:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from .jupylint import Jupylint, OldJupyterVersionError, main
21.8
60
0.715596
2dcf9c837e28af15eda8cf54eeb17e25997b0570
28,683
py
Python
Firmware/fibre/tools/interface_generator.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
19
2018-09-08T09:51:54.000Z
2020-10-02T06:52:26.000Z
Firmware/fibre/tools/interface_generator.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
2
2019-06-30T05:35:29.000Z
2020-06-25T16:41:18.000Z
Firmware/fibre/tools/interface_generator.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
25
2019-02-09T13:39:27.000Z
2020-09-04T03:03:29.000Z
#!/bin/python3 import yaml import json import jinja2 import jsonschema import re import argparse import sys from collections import OrderedDict # This schema describes what we expect interface definition files to look like validator = jsonschema.Draft4Validator(yaml.safe_load(""" definitions: interface: type: o...
41.751092
215
0.612244
2dcfc1444fbc0bfe121dedd2c554c4a9b2de5844
2,887
py
Python
sdk/communication/azure-communication-networktraversal/samples/network_traversal_samples_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/communication/azure-communication-networktraversal/samples/network_traversal_samples_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/communication/azure-communication-networktraversal/samples/network_traversal_samples_async.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. # --------------------------------------------------------------------...
43.742424
104
0.700381
2dcfeba65d3c5327b881ac1ffe43fa5250be589b
16,064
py
Python
art/estimators/classification/query_efficient_bb.py
h3yin/ART-with-amortized-attacks
11c541e49ddc7e3c6144acb6219652e5fd3b165d
[ "MIT" ]
null
null
null
art/estimators/classification/query_efficient_bb.py
h3yin/ART-with-amortized-attacks
11c541e49ddc7e3c6144acb6219652e5fd3b165d
[ "MIT" ]
null
null
null
art/estimators/classification/query_efficient_bb.py
h3yin/ART-with-amortized-attacks
11c541e49ddc7e3c6144acb6219652e5fd3b165d
[ "MIT" ]
null
null
null
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2018 # # 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 # r...
43.771117
120
0.605702
2dcffb7227af313429f85eeee4848a454f3998b1
508
py
Python
main/migrations/0033_post_title_el.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
5
2017-08-25T16:37:18.000Z
2019-02-25T18:26:37.000Z
main/migrations/0033_post_title_el.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
43
2017-01-22T23:58:43.000Z
2018-05-17T21:35:16.000Z
main/migrations/0033_post_title_el.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
2
2017-11-05T08:36:02.000Z
2017-12-22T17:37:19.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-26 14:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0032_auto_20170926_1344'), ] operations = [ migrations.AddField( ...
23.090909
76
0.61811