hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
c6965586b48bc506e3e128702471b40475bd52dd
18,545
py
Python
gazoo_device/log_parser.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
14
2020-11-05T23:23:32.000Z
2022-03-01T18:59:29.000Z
gazoo_device/log_parser.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
1
2021-06-24T19:20:50.000Z
2021-06-24T19:20:50.000Z
gazoo_device/log_parser.py
isabella232/gazoo-device
0e1e276d72333e713b47152815708b9c74c45409
[ "Apache-2.0" ]
5
2021-05-20T22:52:51.000Z
2022-02-21T08:46:21.000Z
# Copyright 2021 Google LLC # # 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, ...
38.080082
89
0.586465
fdf4ab87a882e0ff79cb25d3da18fbad0a54b4fe
1,374
py
Python
python/tarjan.py
zetraxus/GiS
1c3085ced084bb477ae77a0d50434c74e60826d3
[ "MIT" ]
null
null
null
python/tarjan.py
zetraxus/GiS
1c3085ced084bb477ae77a0d50434c74e60826d3
[ "MIT" ]
null
null
null
python/tarjan.py
zetraxus/GiS
1c3085ced084bb477ae77a0d50434c74e60826d3
[ "MIT" ]
null
null
null
class TarjanAlgorithm(object): """ A Tarjan's Algorithm for bridge finding Initialize with graph as adjacency list. After `run`, founded bridges are stored in `bridges` property. """ NOT_ANALYZED = 0 NO_PARENT = -1 def __init__(self, adjacency_list): self._graph = adjacency_list ...
29.234043
67
0.55968
073fae573c85aecbc9f9f8bec4064a08df6745e2
9,304
py
Python
src/sage/repl/ipython_kernel/install.py
fchapoton/sage
765c5cb3e24dd134708eca97e4c52e0221cd94ba
[ "BSL-1.0" ]
4
2020-07-17T04:49:44.000Z
2020-07-29T06:33:51.000Z
src/sage/repl/ipython_kernel/install.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
1
2020-04-18T16:30:43.000Z
2020-04-18T16:30:43.000Z
src/sage/repl/ipython_kernel/install.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
3
2020-03-29T17:13:36.000Z
2021-05-03T18:11:28.000Z
""" Installing the SageMath Jupyter Kernel and Extensions Kernels have to register themselves with Jupyter so that they appear in the Jupyter notebook's kernel drop-down. This is done by :class:`SageKernelSpec`. .. NOTE:: The doctests in this module run in a temporary directory as the involved directories mi...
29.630573
81
0.588672
b722d3cb283eae4c0861fff94c0322a1b76ab262
1,100
py
Python
google/ads/googleads/v7/enums/types/budget_type.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
285
2018-10-05T16:47:58.000Z
2022-03-31T00:58:39.000Z
google/ads/googleads/v7/enums/types/budget_type.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
425
2018-09-10T13:32:41.000Z
2022-03-31T14:50:05.000Z
google/ads/googleads/v7/enums/types/budget_type.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
369
2018-11-28T07:01:00.000Z
2022-03-28T09:53:22.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
28.205128
74
0.697273
96792a366a461b95a3945cd6fdff2c63bca0fc40
14,745
py
Python
tests/test_multiprocess.py
takeda/client_python
09fb45953bac018a90e89f0b1e7bcd1d5d81c01b
[ "Apache-2.0" ]
2,729
2015-02-12T13:13:24.000Z
2022-03-30T10:33:12.000Z
tests/test_multiprocess.py
takeda/client_python
09fb45953bac018a90e89f0b1e7bcd1d5d81c01b
[ "Apache-2.0" ]
668
2015-02-10T22:57:50.000Z
2022-03-30T06:25:49.000Z
tests/test_multiprocess.py
takeda/client_python
09fb45953bac018a90e89f0b1e7bcd1d5d81c01b
[ "Apache-2.0" ]
767
2015-02-10T22:51:46.000Z
2022-03-26T01:11:58.000Z
from __future__ import unicode_literals import glob import os import shutil import sys import tempfile import warnings from prometheus_client import mmap_dict, values from prometheus_client.core import ( CollectorRegistry, Counter, Gauge, Histogram, Sample, Summary, ) from prometheus_client.multiprocess import ( ...
39.637097
86
0.607121
130274fd482b7d78083378b00f293462b948b2a2
3,971
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.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 ...
45.643678
104
0.663309
aec90134adab2d61279e2316f88ae6c8ada39a2e
1,985
py
Python
lib/surface/compute/interconnects/attachments/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/compute/interconnects/attachments/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/interconnects/attachments/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2017 Google LLC. 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 requir...
36.759259
78
0.782368
f1990bf1b49eb1c8ff519f20d98ab741ab55d039
3,614
py
Python
rlkit/core/batch_rl_algorithm.py
hammer-wang/rlkit-pybullet
d4b47f97747046e557bd8eb8e16cbb105d604fe6
[ "MIT" ]
null
null
null
rlkit/core/batch_rl_algorithm.py
hammer-wang/rlkit-pybullet
d4b47f97747046e557bd8eb8e16cbb105d604fe6
[ "MIT" ]
null
null
null
rlkit/core/batch_rl_algorithm.py
hammer-wang/rlkit-pybullet
d4b47f97747046e557bd8eb8e16cbb105d604fe6
[ "MIT" ]
null
null
null
import abc import gtimer as gt from rlkit.core.rl_algorithm import BaseRLAlgorithm from rlkit.data_management.replay_buffer import ReplayBuffer from rlkit.samplers.data_collector import PathCollector import pickle as pkl class BatchRLAlgorithm(BaseRLAlgorithm, metaclass=abc.ABCMeta): def __init__( se...
36.505051
76
0.617598
326235a8060541833c74e9c408f08036a2e9673d
1,528
py
Python
lambda_function.py
Greg-s-Tutorials/vanity-numbers
9f31f16ba7c51e704b6b0da839a47c16fe772449
[ "MIT" ]
null
null
null
lambda_function.py
Greg-s-Tutorials/vanity-numbers
9f31f16ba7c51e704b6b0da839a47c16fe772449
[ "MIT" ]
null
null
null
lambda_function.py
Greg-s-Tutorials/vanity-numbers
9f31f16ba7c51e704b6b0da839a47c16fe772449
[ "MIT" ]
1
2021-12-02T00:05:13.000Z
2021-12-02T00:05:13.000Z
import boto3 from vanitynumbers import ( validate_phone_number, save_vanity_numbers, get_response_message, find_words ) from vanitynumbers.data import lambda_test_events def lambda_handler(event, context): # Get the service resource. ddb = boto3.resource('dynamodb') # Instantiate vanity_numbers table res...
31.833333
84
0.75
2b0517b6a8bb300aa4b862bf01ff80b3b8e71cdf
27,022
py
Python
kubernetes/client/apis/authorization_v1beta1_api.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
1
2019-02-17T15:28:39.000Z
2019-02-17T15:28:39.000Z
kubernetes/client/apis/authorization_v1beta1_api.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
kubernetes/client/apis/authorization_v1beta1_api.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os i...
47.911348
276
0.610281
190f76f35bd3cf40c76bb744f9d3205abccfc1e0
11,272
py
Python
tools/ECPB/create_tfrecords.py
Ernstsen/Pedestron
0c5aa35881561bcd0acf5de8939472efd6409256
[ "Apache-2.0" ]
594
2020-03-20T11:52:59.000Z
2022-03-30T11:58:55.000Z
tools/ECPB/create_tfrecords.py
Ernstsen/Pedestron
0c5aa35881561bcd0acf5de8939472efd6409256
[ "Apache-2.0" ]
131
2020-03-25T09:48:04.000Z
2022-03-30T17:54:38.000Z
tools/ECPB/create_tfrecords.py
Ernstsen/Pedestron
0c5aa35881561bcd0acf5de8939472efd6409256
[ "Apache-2.0" ]
128
2020-03-20T14:22:11.000Z
2022-03-22T09:41:39.000Z
import glob import hashlib import json import logging import os import pickle import time from concurrent.futures import ThreadPoolExecutor import numpy as np import tensorflow as tf logging.basicConfig(level=logging.INFO, format='%(asctime)s, %(levelname)-8s %(message)s', date...
36.478964
118
0.620564
8288c390f0d456fcec03927cf004da68c0ff66fe
172
py
Python
pra subir/pythonexercicios/ex27.py
daianebandeira88/curso-python
763f5f36b6d7329549ad861c63acc3c84aade887
[ "MIT" ]
null
null
null
pra subir/pythonexercicios/ex27.py
daianebandeira88/curso-python
763f5f36b6d7329549ad861c63acc3c84aade887
[ "MIT" ]
null
null
null
pra subir/pythonexercicios/ex27.py
daianebandeira88/curso-python
763f5f36b6d7329549ad861c63acc3c84aade887
[ "MIT" ]
null
null
null
n=str(input('digite seu nome completo')).strip() nome=n.split() print('seu primeiro nome é {} '.format(nome[0],)) print('e seu ultimo nome é {}'.format(nome[len(nome)-1]))
34.4
57
0.668605
7330afd9515754ce8b2a9f7adca4f41c54b24485
1,112
py
Python
gluonnlp/__init__.py
bkktimber/gluon-nlp
205acce13a83b30eabd7a638e4773e7a4f91059a
[ "Apache-2.0" ]
null
null
null
gluonnlp/__init__.py
bkktimber/gluon-nlp
205acce13a83b30eabd7a638e4773e7a4f91059a
[ "Apache-2.0" ]
null
null
null
gluonnlp/__init__.py
bkktimber/gluon-nlp
205acce13a83b30eabd7a638e4773e7a4f91059a
[ "Apache-2.0" ]
1
2018-09-18T08:39:00.000Z
2018-09-18T08:39:00.000Z
# coding: utf-8 # 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...
30.054054
62
0.710432
aa286d2118c13d6018202f28ff475a01ef7d8093
1,964
py
Python
tests/accelerators/ddp_model.py
javierlorenzod/pytorch-lightning
6dba26666aa564db414eb238d99a4213006d8220
[ "Apache-2.0" ]
1
2021-08-05T01:45:26.000Z
2021-08-05T01:45:26.000Z
tests/accelerators/ddp_model.py
javierlorenzod/pytorch-lightning
6dba26666aa564db414eb238d99a4213006d8220
[ "Apache-2.0" ]
null
null
null
tests/accelerators/ddp_model.py
javierlorenzod/pytorch-lightning
6dba26666aa564db414eb238d99a4213006d8220
[ "Apache-2.0" ]
1
2021-02-16T00:47:46.000Z
2021-02-16T00:47:46.000Z
# Copyright The PyTorch Lightning team. # # 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.733333
88
0.697556
495245d32fc4b2dd0f3d070ae40b9e0f731c01a5
4,093
py
Python
imagebot/_template_matcher.py
jnhyperion/ImageBot
d8b8f917bdafc6a4e4feb0e17d99a81853f2605a
[ "MIT" ]
null
null
null
imagebot/_template_matcher.py
jnhyperion/ImageBot
d8b8f917bdafc6a4e4feb0e17d99a81853f2605a
[ "MIT" ]
null
null
null
imagebot/_template_matcher.py
jnhyperion/ImageBot
d8b8f917bdafc6a4e4feb0e17d99a81853f2605a
[ "MIT" ]
null
null
null
import cv2 import math import numpy as np from typing import List, Union, Tuple from ._base_matcher import BaseMatcher from ._convertor import convert_images from ._results import MatchingResult class TemplateMatcher(BaseMatcher): def __init__( self, image_path: str, template_path: str, ...
37.550459
119
0.571708
540ef532f525f94d29e608fcf9ec7ebab3d351e3
338
py
Python
sympy/plotting/pygletplot/plot_object.py
sn6uv/sympy
5b149c2f72847e4785c65358b09d99b29f101dd5
[ "BSD-3-Clause" ]
7
2015-01-14T06:55:33.000Z
2018-08-11T14:43:52.000Z
sympy/plotting/plot_object.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
1
2018-02-19T04:56:04.000Z
2018-02-19T04:56:04.000Z
sympy/plotting/plot_object.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
1
2016-04-24T14:39:22.000Z
2016-04-24T14:39:22.000Z
class PlotObject(object): """ Base class for objects which can be displayed in a Plot. """ visible = True def _draw(self): if self.visible: self.draw() def draw(self): """ OpenGL rendering code for the plot object. Override in base class. ...
18.777778
52
0.529586
d7e41d5e4fc1536d6646f01f4f8b25294e041d30
848
py
Python
src/neuralnetwork.py
hirotatsuya/deep-learning-python
83b9da2b616f6b6b545b354b3c0c931b59add6f0
[ "MIT" ]
null
null
null
src/neuralnetwork.py
hirotatsuya/deep-learning-python
83b9da2b616f6b6b545b354b3c0c931b59add6f0
[ "MIT" ]
null
null
null
src/neuralnetwork.py
hirotatsuya/deep-learning-python
83b9da2b616f6b6b545b354b3c0c931b59add6f0
[ "MIT" ]
null
null
null
import numpy as np def sigmoid(x): return 1 / (1 + np.exp(-x)) def identity_function(x): return x def init_network(): network = {} network['W1'] = np.array([[0.1, 0.3, 0.5], [0.2, 0.4, 0.6]]) network['b1'] = np.array([0.1, 0.2, 0.3]) network['W2'] = np.array([[0.1, 0.4], [0.2, 0.5], [0.3, 0.6]]) networ...
22.918919
64
0.553066
8252dac0ee3bb51d313ce6d8339506ed41e3bde7
1,359
py
Python
racecar_behaviors/scripts/path_following.py
matlabbe/racecar-velodyne
94ef4c0a4b908ca12f9236458c492a1583a8889c
[ "MIT" ]
2
2021-01-20T02:36:32.000Z
2021-11-09T02:46:25.000Z
racecar_behaviors/scripts/path_following.py
matlabbe/racecar-velodyne
94ef4c0a4b908ca12f9236458c492a1583a8889c
[ "MIT" ]
null
null
null
racecar_behaviors/scripts/path_following.py
matlabbe/racecar-velodyne
94ef4c0a4b908ca12f9236458c492a1583a8889c
[ "MIT" ]
12
2020-07-07T16:23:45.000Z
2021-09-07T20:33:40.000Z
#!/usr/bin/env python import rospy import math import numpy as np from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan from nav_msgs.msg import Odometry class PathFollowing: def __init__(self): self.max_speed = rospy.get_param('~max_speed', 1) self.max_steering = rospy.get_pa...
30.886364
93
0.655629
601ad1ac15a29a330f03f33758d30c4c2007c163
162
py
Python
my_project/__init__.py
sotch-pr35mac/clinc-business-logic-server-template-python
6178edb7b3bb368376720fe2baf0babe65a37329
[ "BSD-3-Clause" ]
1
2019-11-11T15:40:35.000Z
2019-11-11T15:40:35.000Z
my_project/__init__.py
sotch-pr35mac/clinc-business-logic-server-template-python
6178edb7b3bb368376720fe2baf0babe65a37329
[ "BSD-3-Clause" ]
3
2018-08-06T20:43:38.000Z
2021-06-10T20:43:52.000Z
my_project/__init__.py
sotch-pr35mac/clinc-business-logic-server-template-python
6178edb7b3bb368376720fe2baf0babe65a37329
[ "BSD-3-Clause" ]
2
2018-08-06T18:37:39.000Z
2019-05-23T13:27:56.000Z
""" Module imports for templates.python.business_logic.my_project This file is automatically generated by ./scripts/empty_pyinit.sh DO NOT EDIT IT MANUALLY """
20.25
65
0.796296
fbcf1482defc9d99f1d63dab75fd0d87eea701a2
4,529
py
Python
plaster/gen/sigproc_v2_generator.py
erisyon/plaster
20af32aed2365c6351fe3c26293308960099152b
[ "MIT" ]
null
null
null
plaster/gen/sigproc_v2_generator.py
erisyon/plaster
20af32aed2365c6351fe3c26293308960099152b
[ "MIT" ]
22
2020-06-22T19:27:50.000Z
2021-09-30T20:02:31.000Z
plaster/gen/sigproc_v2_generator.py
erisyon/plaster
20af32aed2365c6351fe3c26293308960099152b
[ "MIT" ]
2
2020-06-16T17:38:46.000Z
2021-08-06T09:37:22.000Z
from munch import Munch from plaster.gen.base_generator import BaseGenerator from plaster.run.rad_filter.rad_filter_params import RadFilterParams from plaster.gen import task_templates from plaster.tools.schema.schema import Schema as s from plaster.gen.report_builder import ReportBuilder class SigprocV2Generator(Bas...
34.838462
85
0.597483
49a41dee7afb65abc07818d79e6cc004a1675776
543
py
Python
app.py
garritfra/express-python
681fdad93e34e31057a716c68b40492776346944
[ "Unlicense" ]
1
2021-09-28T04:07:32.000Z
2021-09-28T04:07:32.000Z
app.py
garritfra/express-python
681fdad93e34e31057a716c68b40492776346944
[ "Unlicense" ]
null
null
null
app.py
garritfra/express-python
681fdad93e34e31057a716c68b40492776346944
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from http.server import HTTPServer, SimpleHTTPRequestHandler, HTTPStatus class Handler(SimpleHTTPRequestHandler): def do_GET(self): self.send_response(HTTPStatus.OK) self.send_header('Content-type', 'text/html') self.end_headers() self.wfile.write(b'Hello, W...
24.681818
72
0.694291
a2a8ee8e1274c7a420f0eda0f96fb584ca6d0584
920
py
Python
medium/739-daily-temperatures.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
2
2021-03-14T11:38:26.000Z
2021-03-14T11:38:30.000Z
medium/739-daily-temperatures.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
null
null
null
medium/739-daily-temperatures.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
1
2022-01-17T19:33:23.000Z
2022-01-17T19:33:23.000Z
''' 每日温度 请根据每日 气温 列表,重新生成一个列表。对应位置的输出为:要想观测到更高的气温,至少需要等待的天数。如果气温在这之后都不会升高,请在该位置用 0 来代替。 例如,给定一个列表 temperatures = [73, 74, 75, 71, 69, 72, 76, 73],你的输出应该是 [1, 1, 4, 2, 1, 1, 0, 0]。 提示:气温 列表长度的范围是 [1, 30000]。每个气温的值的均为华氏度,都是在 [30, 100] 范围内的整数。 ''' from typing import List ''' 思路:单调栈 将T[0]入栈,然后遍历整个温度数值T[1..n-1]: 如果当前...
23.589744
91
0.579348
11fdebb1b93fd1c8f987cf108e42884fe90c950d
5,007
py
Python
library/avi_geodb.py
avinetworks/ansible-role-avisdk
b20b1ca33b80e43c2598dc1823439055658600f7
[ "Apache-2.0" ]
13
2016-10-11T16:43:01.000Z
2021-10-08T20:19:57.000Z
library/avi_geodb.py
avinetworks/ansible-role-avisdk
b20b1ca33b80e43c2598dc1823439055658600f7
[ "Apache-2.0" ]
27
2017-08-30T13:51:59.000Z
2022-03-11T05:52:38.000Z
library/avi_geodb.py
avinetworks/ansible-role-avisdk
b20b1ca33b80e43c2598dc1823439055658600f7
[ "Apache-2.0" ]
11
2016-10-11T19:47:10.000Z
2021-05-21T07:21:18.000Z
#!/usr/bin/python # module_check: supported # Copyright 2021 VMware, Inc. All rights reserved. VMware Confidential # SPDX-License-Identifier: Apache License 2.0 ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION =...
30.345455
139
0.604354
a48bcaa6f477b8900d01deb73e23c2d25670d477
24,506
py
Python
superset/dashboards/api.py
AmritaTech/superset
c685c9ea8fa70ba6646617d0a272c11e1130081c
[ "Apache-2.0" ]
4
2021-10-05T00:55:28.000Z
2021-12-21T10:56:14.000Z
superset/dashboards/api.py
AmritaTech/superset
c685c9ea8fa70ba6646617d0a272c11e1130081c
[ "Apache-2.0" ]
23
2020-12-28T14:25:14.000Z
2022-03-11T05:29:41.000Z
superset/dashboards/api.py
AmritaTech/superset
c685c9ea8fa70ba6646617d0a272c11e1130081c
[ "Apache-2.0" ]
3
2021-01-05T10:54:08.000Z
2021-01-05T12:36:19.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...
33.569863
88
0.564433
28105367567031650103288f9acc79ddc001dd8f
198
py
Python
testautoload/models.py
MaxLarue/django-simple-acl
d980d149b663b0742eb2baf52ff596e7827c8941
[ "MIT" ]
1
2020-10-13T17:19:42.000Z
2020-10-13T17:19:42.000Z
testautoload/models.py
MaxLarue/django-simple-acl
d980d149b663b0742eb2baf52ff596e7827c8941
[ "MIT" ]
null
null
null
testautoload/models.py
MaxLarue/django-simple-acl
d980d149b663b0742eb2baf52ff596e7827c8941
[ "MIT" ]
null
null
null
from django.db import models class Order(models.Model): pass class Product(models.Model): pass class Invoice(models.Model): pass class InvoiceProposition(models.Model): pass
11
39
0.712121
8a49b737bc12ef8272baccf696e7a9840bda1b85
371
py
Python
models/conditional_event_definition.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/conditional_event_definition.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/conditional_event_definition.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
from dataclasses import dataclass from .t_conditional_event_definition import TConditionalEventDefinition __NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL" @dataclass class ConditionalEventDefinition(TConditionalEventDefinition): class Meta: name = "conditionalEventDefinition" namespa...
30.916667
71
0.789757
e01c23c709f3766f56b36fe37c8129c21e3e53ce
150
py
Python
zilean/system/utils/_mysqld_utils.py
A-Hilaly/zilean
2b2e87969a0d8064e8b92b07c346a4006f93c795
[ "Apache-2.0" ]
null
null
null
zilean/system/utils/_mysqld_utils.py
A-Hilaly/zilean
2b2e87969a0d8064e8b92b07c346a4006f93c795
[ "Apache-2.0" ]
null
null
null
zilean/system/utils/_mysqld_utils.py
A-Hilaly/zilean
2b2e87969a0d8064e8b92b07c346a4006f93c795
[ "Apache-2.0" ]
null
null
null
def __mysql_version(): pass def __check_mysql_exists(): pass def __execute_mysqld_in(): pass def __execute_mysqld_out(): pass
8.823529
27
0.68
3e52d47d92e904d3063f341744eb86f9cc5c80fc
2,550
py
Python
default_data.py
kevincloud/sentinel-data-api
c737b62247963f61a453d06fb4c965d4d5dd8ac3
[ "Apache-2.0" ]
1
2021-12-06T21:01:37.000Z
2021-12-06T21:01:37.000Z
default_data.py
kevincloud/sentinel-data-api
c737b62247963f61a453d06fb4c965d4d5dd8ac3
[ "Apache-2.0" ]
null
null
null
default_data.py
kevincloud/sentinel-data-api
c737b62247963f61a453d06fb4c965d4d5dd8ac3
[ "Apache-2.0" ]
null
null
null
import configparser from azure.cosmosdb.table.tableservice import TableService from azure.cosmosdb.table.models import Entity config = configparser.ConfigParser() config.read('app.ini') identifier = config['App']['Identifier'] account_name = identifier + "-cosmos-db" account_key = config['App']['AccountKey'] table_en...
33.552632
154
0.78549
f1c6279be76fa88a569c09c04c3546116c32db52
1,709
py
Python
app/core/migrations/0001_initial.py
AitorPo/recipe-app-api
abb9d1774735c78d5fac0ebc20e727ad1a4851c7
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
AitorPo/recipe-app-api
abb9d1774735c78d5fac0ebc20e727ad1a4851c7
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
AitorPo/recipe-app-api
abb9d1774735c78d5fac0ebc20e727ad1a4851c7
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-09-28 08:09 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.264706
266
0.63897
d43893e5e464f90b18387e00f26cdfed7675cb91
49,214
py
Python
Python/libraries/recognizers-number-with-unit/recognizers_number_with_unit/resources/portuguese_numeric_with_unit.py
Irrelevances/Recognizers-Text
630ce12bb47e201f663d72c31c680f6d40171962
[ "MIT" ]
null
null
null
Python/libraries/recognizers-number-with-unit/recognizers_number_with_unit/resources/portuguese_numeric_with_unit.py
Irrelevances/Recognizers-Text
630ce12bb47e201f663d72c31c680f6d40171962
[ "MIT" ]
null
null
null
Python/libraries/recognizers-number-with-unit/recognizers_number_with_unit/resources/portuguese_numeric_with_unit.py
Irrelevances/Recognizers-Text
630ce12bb47e201f663d72c31c680f6d40171962
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # <auto-generated> # This code was generated by a tool. # Changes to this file may cause incorrect behavior and will be lost if # the code is regenerated. # </auto-generated> # --------------------------------------------------...
107.454148
335
0.559739
44292370c125f5d4f1916e1028aa8750ee10c13c
1,734
py
Python
apps/users/views.py
fylein/fyle-intacct-api
16e45538ec3a2b7af396742a42302704c33a7bd7
[ "MIT" ]
null
null
null
apps/users/views.py
fylein/fyle-intacct-api
16e45538ec3a2b7af396742a42302704c33a7bd7
[ "MIT" ]
3
2020-07-20T10:54:15.000Z
2022-02-23T17:13:49.000Z
apps/users/views.py
fylein/fyle-intacct-api
16e45538ec3a2b7af396742a42302704c33a7bd7
[ "MIT" ]
2
2020-07-25T14:50:56.000Z
2020-08-02T13:48:37.000Z
from rest_framework import generics, status from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from fyle_rest_auth.models import AuthToken from apps.fyle.connector import FyleConnector from apps.workspaces.models import FyleCredential, Workspace class UserProfileView...
29.389831
81
0.653979
73c34b1503e6b7863ac80be15afae10936a2c5ce
5,576
py
Python
particleFilter.py
andrewwarrington/cost-optimal-particle-filter
a6acb60ca90c7f7b984182891d39adeb7e05724f
[ "MIT" ]
2
2018-06-20T21:17:47.000Z
2018-09-07T01:27:26.000Z
particleFilter.py
andrewwarrington/cost-optimal-particle-filter
a6acb60ca90c7f7b984182891d39adeb7e05724f
[ "MIT" ]
null
null
null
particleFilter.py
andrewwarrington/cost-optimal-particle-filter
a6acb60ca90c7f7b984182891d39adeb7e05724f
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2018, Andrew Warrington. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
36.207792
93
0.747669
cba299d53e4a87dcb2ad335a5ea6bffb40bf29fc
11,203
py
Python
train_binary_imagenetlt_stage1.py
caisarl76/MiSLAS
64717e7085d211751ef27d2f859a7f99e7f93fd9
[ "MIT" ]
null
null
null
train_binary_imagenetlt_stage1.py
caisarl76/MiSLAS
64717e7085d211751ef27d2f859a7f99e7f93fd9
[ "MIT" ]
null
null
null
train_binary_imagenetlt_stage1.py
caisarl76/MiSLAS
64717e7085d211751ef27d2f859a7f99e7f93fd9
[ "MIT" ]
null
null
null
import argparse import os import random import shutil import time import warnings import numpy as np import pprint import math import torch import torch.nn as nn import torch.nn.parallel import torch.optim import torch.utils.data import torch.utils.data.distributed import torch.nn.functional as F from torch.utils.tens...
34.791925
130
0.615639
f6b1ce7a2f3bea6e53b6d6e845eae637cb95f39b
40,035
py
Python
mongoengine/base/document.py
decklord/mongoengine
cf75dac1c612ca21e32f403348b77c1da7766703
[ "MIT" ]
null
null
null
mongoengine/base/document.py
decklord/mongoengine
cf75dac1c612ca21e32f403348b77c1da7766703
[ "MIT" ]
null
null
null
mongoengine/base/document.py
decklord/mongoengine
cf75dac1c612ca21e32f403348b77c1da7766703
[ "MIT" ]
null
null
null
import copy import operator import numbers from collections import Hashable from functools import partial import pymongo from bson import json_util, ObjectId from bson.dbref import DBRef from bson.son import SON from mongoengine import signals from mongoengine.common import _import_class from mongoengine.errors impor...
38.982473
117
0.538379
03f341a03895e3abae62115082c1768dff794909
6,053
py
Python
triangular_lattice/fill_bucket.py
ssh0/growing-string
2e43916e91157dfb4253775149b35ec9d81ef14d
[ "MIT" ]
null
null
null
triangular_lattice/fill_bucket.py
ssh0/growing-string
2e43916e91157dfb4253775149b35ec9d81ef14d
[ "MIT" ]
1
2016-04-14T08:15:28.000Z
2016-04-27T02:57:13.000Z
triangular_lattice/fill_bucket.py
ssh0/growing-string
2e43916e91157dfb4253775149b35ec9d81ef14d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # written by Shotaro Fujimoto from growing_string import Main from triangular import LatticeTriangular as LT from strings import String import numpy as np import matplotlib.pyplot as plt import matplotlib.tri as tri from matplotlib.patches import Polygon from matplotlib....
34.005618
80
0.506195
8a05cde1f9681b8b083699e7006dce030bf080ed
4,902
py
Python
l-sort-helper.py
indraniel/google-cloud-sv-pipeline-helpers
415dfd38a63930cd448f97a925540ba24d5e6184
[ "0BSD" ]
null
null
null
l-sort-helper.py
indraniel/google-cloud-sv-pipeline-helpers
415dfd38a63930cd448f97a925540ba24d5e6184
[ "0BSD" ]
null
null
null
l-sort-helper.py
indraniel/google-cloud-sv-pipeline-helpers
415dfd38a63930cd448f97a925540ba24d5e6184
[ "0BSD" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import argparse, contextlib, os, sys, tempfile, shutil, datetime import subprocess as sp import google.auth from googleapiclient import discovery from google.cloud import storage import requests def log(msg): timestamp = datetime.datetime.now().strfti...
30.447205
118
0.659119
666604f0d68b35e85b865f3e38aae4be1944e9f2
10,774
py
Python
examples/wiki_parser/wiki_dump_parse.py
J007X/forte
257f5d4798c632a67e63a4d549c81f2b3b87b714
[ "Apache-2.0" ]
163
2019-11-01T19:25:40.000Z
2022-03-30T22:49:45.000Z
examples/wiki_parser/wiki_dump_parse.py
J007X/forte
257f5d4798c632a67e63a4d549c81f2b3b87b714
[ "Apache-2.0" ]
633
2019-11-01T20:07:08.000Z
2022-03-31T23:11:20.000Z
examples/wiki_parser/wiki_dump_parse.py
KGerring/forte
7dc6e6c7d62d9a4126bdfc5ca02d15be3ffd61ca
[ "Apache-2.0" ]
62
2019-11-01T19:41:33.000Z
2022-03-24T11:14:21.000Z
# Copyright 2019 The Forte 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 ...
30.435028
79
0.656395
b7e4c4d08669f5a68375197c9738d5caf8806fd6
813
py
Python
sandbox/manage.py
juwaini/django-mfa
910b0f544ae5bebc02434cc6b176f74b5040f3b7
[ "MIT" ]
172
2016-09-12T15:40:37.000Z
2022-03-30T10:24:55.000Z
sandbox/manage.py
juwaini/django-mfa
910b0f544ae5bebc02434cc6b176f74b5040f3b7
[ "MIT" ]
60
2016-08-27T14:31:00.000Z
2022-01-04T18:21:15.000Z
sandbox/manage.py
juwaini/django-mfa
910b0f544ae5bebc02434cc6b176f74b5040f3b7
[ "MIT" ]
74
2016-08-25T09:28:18.000Z
2022-03-05T03:01:48.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_django_mfa.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure t...
35.347826
79
0.645756
92a06113ebfdbbc4b44cec5f18c4895a0227d4af
44
py
Python
blog/blog/__init__.py
Asura0528/blog
dafed165b34b9370e0194e6055869814c8d3fc95
[ "MIT" ]
null
null
null
blog/blog/__init__.py
Asura0528/blog
dafed165b34b9370e0194e6055869814c8d3fc95
[ "MIT" ]
null
null
null
blog/blog/__init__.py
Asura0528/blog
dafed165b34b9370e0194e6055869814c8d3fc95
[ "MIT" ]
null
null
null
import pymysql pymysql.install_as_MySQLdb()
44
44
0.863636
3fe42cdc00cb4e0f9d59eb801fd39500215ae5eb
2,282
py
Python
tests/integration/test_ip_resolve.py
thisismyrobot/dnstwister
624b2d95f0febaae7183666efce99164fd03466f
[ "Apache-1.1" ]
42
2016-04-06T19:41:23.000Z
2021-06-23T23:52:57.000Z
tests/integration/test_ip_resolve.py
dnstwister/dnstwister
624b2d95f0febaae7183666efce99164fd03466f
[ "Apache-1.1" ]
126
2015-12-05T03:41:20.000Z
2021-06-12T01:04:57.000Z
tests/integration/test_ip_resolve.py
thisismyrobot/dnstwister
624b2d95f0febaae7183666efce99164fd03466f
[ "Apache-1.1" ]
21
2015-12-07T19:39:36.000Z
2020-04-06T18:06:29.000Z
"""Test resolving IPs.""" import socket from dnstwister import tools from dnstwister.core.domain import Domain def test_resolve(webapp): """Test we can resolve IP addresses.""" domain = 'dnstwister.report' hexdomain = Domain(domain).to_hex() response = webapp.get('/api/ip/{}'.format(hexdomain)) ...
33.072464
119
0.687555
e777468820bc4f6d075744ba2800d099f12309a4
173
py
Python
portfolio_project/guestbook/admin.py
KimEunYeol/web-portfolio
cd56191bdf12c712b252015d3ecb31b037f922ed
[ "MIT" ]
null
null
null
portfolio_project/guestbook/admin.py
KimEunYeol/web-portfolio
cd56191bdf12c712b252015d3ecb31b037f922ed
[ "MIT" ]
7
2021-03-19T03:41:33.000Z
2022-03-12T00:30:35.000Z
portfolio_project/guestbook/admin.py
KimEunYeol/web-portfolio
cd56191bdf12c712b252015d3ecb31b037f922ed
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import GuestBook, Comment, Like admin.site.register(GuestBook) admin.site.register(Comment) admin.site.register(Like)
24.714286
44
0.780347
0536d2d272fd292dd96cac951041f07e4e3e068e
663
py
Python
var/spack/repos/builtin/packages/py-webencodings/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/py-webencodings/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/py-webencodings/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyWebencodings(PythonPackage): """This is a Python implementation of the WHATWG Encoding s...
34.894737
95
0.731523
658cf32b85dfadac1ebe4c43bdbc82b694230d62
690
py
Python
alipay/aop/api/response/AlipayMobilePublicFollowAddResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayMobilePublicFollowAddResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayMobilePublicFollowAddResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayMobilePublicFollowAddResponse(AlipayResponse): def __init__(self): super(AlipayMobilePublicFollowAddResponse, self).__init__() self._code = None ...
26.538462
108
0.701449
efebe7129f01e339e8cbea1971b7ff61898f8369
5,055
py
Python
tensorflow_datasets/translate/ted_multi.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-05-10T10:41:27.000Z
2021-05-10T10:41:27.000Z
tensorflow_datasets/translate/ted_multi.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/translate/ted_multi.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-07-04T11:07:35.000Z
2021-07-04T11:07:35.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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 appl...
43.577586
689
0.638773
ee722539010226d828ced54d20c00b25f05ecb01
43
py
Python
test/data/invalid/expression.py
pombredanne/read_version
34b11acfb34fe14249354c2c0449cf1b53b07c71
[ "MIT" ]
7
2018-09-25T18:03:41.000Z
2021-03-30T05:56:34.000Z
test/data/invalid/expression.py
pombredanne/read_version
34b11acfb34fe14249354c2c0449cf1b53b07c71
[ "MIT" ]
2
2020-02-02T22:57:41.000Z
2020-12-05T04:04:05.000Z
test/data/invalid/expression.py
pombredanne/read_version
34b11acfb34fe14249354c2c0449cf1b53b07c71
[ "MIT" ]
3
2019-06-26T17:41:40.000Z
2020-03-19T17:19:04.000Z
__version__ = ".".join(map(str, range(3)))
21.5
42
0.627907
1b626fe33138ae239925e97eecb0f832172e7fcc
64
py
Python
prototype/test/pythonvm_book/test_ext_list.py
zoloypzuo/ZeloPy
43d9242a509737fe1bb66deba73aa9e749b53c62
[ "MIT" ]
null
null
null
prototype/test/pythonvm_book/test_ext_list.py
zoloypzuo/ZeloPy
43d9242a509737fe1bb66deba73aa9e749b53c62
[ "MIT" ]
null
null
null
prototype/test/pythonvm_book/test_ext_list.py
zoloypzuo/ZeloPy
43d9242a509737fe1bb66deba73aa9e749b53c62
[ "MIT" ]
null
null
null
class A(list): pass a = A() a.append(3) print a[0] print a
8
14
0.578125
dd1739a6378e6cd5309214595da2ef47a2ec999d
12,925
py
Python
dl1_data_handler/dl_eventsources.py
LucaRomanato/dl1-data-handler
68fb46e724fa16163d0cd963983eaca3a3b68645
[ "MIT" ]
null
null
null
dl1_data_handler/dl_eventsources.py
LucaRomanato/dl1-data-handler
68fb46e724fa16163d0cd963983eaca3a3b68645
[ "MIT" ]
null
null
null
dl1_data_handler/dl_eventsources.py
LucaRomanato/dl1-data-handler
68fb46e724fa16163d0cd963983eaca3a3b68645
[ "MIT" ]
null
null
null
from astropy import units as u from astropy.coordinates import Angle from ctapipe.containers import DataContainer, TelescopePointingContainer from ctapipe.instrument import TelescopeDescription, SubarrayDescription, OpticsDescription, CameraGeometry, CameraReadout, CameraDescription from ctapipe.io.eventsource import E...
43.227425
199
0.598994
186dbfaa9e2fdb016ffea78189244c3dd4d398e9
2,022
py
Python
dash/categories/models.py
rapidpro/dash
71c8fcd1ab823ef31512b5ee22eca6158b3575c1
[ "BSD-3-Clause" ]
7
2015-06-25T20:09:35.000Z
2019-02-12T17:41:46.000Z
dash/categories/models.py
rapidpro/dash
71c8fcd1ab823ef31512b5ee22eca6158b3575c1
[ "BSD-3-Clause" ]
108
2015-01-05T13:23:57.000Z
2022-02-10T10:55:01.000Z
dash/categories/models.py
rapidpro/dash
71c8fcd1ab823ef31512b5ee22eca6158b3575c1
[ "BSD-3-Clause" ]
9
2015-06-15T15:13:13.000Z
2019-01-09T18:34:20.000Z
from functools import partial from smartmin.models import SmartModel from django.db import models from django.utils.translation import ugettext_lazy as _ from dash.orgs.models import Org from dash.utils import generate_file_path class Category(SmartModel): """ Every organization can choose to categorize th...
28.885714
116
0.656281
55e5c70712acd0f1400df6091d953d248fa466e8
25,270
py
Python
dask/dataframe/utils.py
TryTestspace/dask
86d4f7d8c6d48ec6c4b1de1b6cfd2d3f4e5a4c1b
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/utils.py
TryTestspace/dask
86d4f7d8c6d48ec6c4b1de1b6cfd2d3f4e5a4c1b
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/utils.py
TryTestspace/dask
86d4f7d8c6d48ec6c4b1de1b6cfd2d3f4e5a4c1b
[ "BSD-3-Clause" ]
1
2021-03-28T04:50:43.000Z
2021-03-28T04:50:43.000Z
from __future__ import absolute_import, division, print_function import re import textwrap from distutils.version import LooseVersion from collections import Iterator import sys import traceback from contextlib import contextmanager import numpy as np import pandas as pd import pandas.util.testing as tm from pandas....
35.793201
99
0.583657
075a7595e71f210ad83aaf171f320bbf4edd767e
604
py
Python
dcosdev/basic/local_config.py
iss-lab/dcosdev
669b97aedc71a8d1eccd5f9ce722bc0fda64ceff
[ "Apache-2.0" ]
null
null
null
dcosdev/basic/local_config.py
iss-lab/dcosdev
669b97aedc71a8d1eccd5f9ce722bc0fda64ceff
[ "Apache-2.0" ]
null
null
null
dcosdev/basic/local_config.py
iss-lab/dcosdev
669b97aedc71a8d1eccd5f9ce722bc0fda64ceff
[ "Apache-2.0" ]
null
null
null
template = """ values: package-name: %(package-name)s package-version: snapshot artifacts-url: http://%(minio-host)s/artifacts/%(package-name)s minio-host: %(minio-host)s minio-access-key: %(minio-access-key)s minio-secret-key: %(minio-secret-key)s upgrades-from: "" downgrades-to: "" documentation-pat...
33.555556
75
0.716887
ac77d0669647aa1194ef21ccf20ac74e057e9f3c
614
py
Python
metarecord/management/commands/export_data.py
kerkkoheiskanen/helerm
bdaf801a940d42325a1076b42bb0edef831fbac9
[ "MIT" ]
2
2017-04-21T15:36:23.000Z
2020-12-04T09:32:39.000Z
metarecord/management/commands/export_data.py
kerkkoheiskanen/helerm
bdaf801a940d42325a1076b42bb0edef831fbac9
[ "MIT" ]
168
2016-10-05T12:58:41.000Z
2021-08-31T14:29:56.000Z
metarecord/management/commands/export_data.py
kerkkoheiskanen/helerm
bdaf801a940d42325a1076b42bb0edef831fbac9
[ "MIT" ]
7
2016-10-13T12:51:36.000Z
2021-01-21T13:05:04.000Z
from django.core.management.base import BaseCommand from metarecord.exporter.jhs import JHSExporter, JHSExporterException class Command(BaseCommand): help = "Export ERMCS data to JHS191 XML file" def __init__(self): super().__init__() def add_arguments(self, parser): parser.add_argument...
26.695652
69
0.674267
566f0b726a51a0dbb21e7a582ea822f60fbf5309
2,194
py
Python
kvh_gyro/scripts/gyro_node.py
jake3991/Argonaut
c006b02688804369a172d0c6f31e4962258ecbea
[ "BSD-3-Clause" ]
6
2021-05-06T23:55:26.000Z
2022-03-26T23:13:46.000Z
kvh_gyro/scripts/gyro_node.py
jake3991/Argonaut
c006b02688804369a172d0c6f31e4962258ecbea
[ "BSD-3-Clause" ]
null
null
null
kvh_gyro/scripts/gyro_node.py
jake3991/Argonaut
c006b02688804369a172d0c6f31e4962258ecbea
[ "BSD-3-Clause" ]
1
2021-08-17T14:41:24.000Z
2021-08-17T14:41:24.000Z
#!/usr/bin/env python import serial from time import time import struct import numpy as np import rospy from kvh_gyro.msg import gyro if __name__ == '__main__': #init the node rospy.init_node('gyro_node') #define the publisher pub = rospy.Publisher('/gyro', gyro, queue_size=1000) #define some p...
32.264706
131
0.522789
f34beb240b8face32acf68eac9dbfe9a6c0f6248
17,706
py
Python
geoviews/plotting/mpl/__init__.py
nickhand/geoviews
964afebf4950a9c9b69b5f44e751f74a52597eb8
[ "BSD-3-Clause" ]
null
null
null
geoviews/plotting/mpl/__init__.py
nickhand/geoviews
964afebf4950a9c9b69b5f44e751f74a52597eb8
[ "BSD-3-Clause" ]
null
null
null
geoviews/plotting/mpl/__init__.py
nickhand/geoviews
964afebf4950a9c9b69b5f44e751f74a52597eb8
[ "BSD-3-Clause" ]
null
null
null
import copy import numpy as np import param import matplotlib.ticker as mticker from cartopy import crs as ccrs from cartopy.io.img_tiles import GoogleTiles from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER try: from owslib.wmts import WebMapTileService except: WebMapTileService = None...
32.369287
103
0.618096
de6250d7270943c600a12566a5457aae31347e86
3,075
py
Python
support_tickets/support_tickets/doctype/support_ticket/support_ticket.py
8848digital/support-tickets
cac253b8ce14c08cd9c3cd498c35d23635deb300
[ "MIT" ]
null
null
null
support_tickets/support_tickets/doctype/support_ticket/support_ticket.py
8848digital/support-tickets
cac253b8ce14c08cd9c3cd498c35d23635deb300
[ "MIT" ]
null
null
null
support_tickets/support_tickets/doctype/support_ticket/support_ticket.py
8848digital/support-tickets
cac253b8ce14c08cd9c3cd498c35d23635deb300
[ "MIT" ]
2
2021-11-09T10:23:43.000Z
2021-12-28T18:35:19.000Z
# Copyright (c) 2021, Nirali Satapara and contributors # For license information, please see license.txt import frappe from frappe.model.document import Document import requests import json from support_tickets.api import validate_and_get_project from frappe.utils import get_url, nowdate from frappe.utils.data import ...
39.423077
134
0.75252
759d87cd5ce17b7c3f2124dad2b1e08d438ce481
4,675
py
Python
ansible/modules/storage/infinidat/infini_vol.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ansible/modules/storage/infinidat/infini_vol.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ansible/modules/storage/infinidat/infini_vol.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016, Gregory Shulov (gregory.shulov@gmail.com) # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of...
26.412429
104
0.658182
0bad6cd31a08fad028810c8bf15610a4b6f9a4f1
3,300
py
Python
facebook_business/adobjects/pageadminnote.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
576
2018-05-01T19:09:32.000Z
2022-03-31T11:45:11.000Z
facebook_business/adobjects/pageadminnote.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
217
2018-05-03T07:31:59.000Z
2022-03-29T14:19:52.000Z
facebook_business/adobjects/pageadminnote.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
323
2018-05-01T20:32:26.000Z
2022-03-29T07:05:12.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...
35.483871
103
0.685152
3d7358e0c2f4edf80f80747440716254e7b61aa6
16,574
py
Python
lib/python3.6/site-packages/statsmodels/stats/gof.py
KshitizSharmaV/Quant_Platform_Python
d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39
[ "BSD-3-Clause" ]
1
2020-05-09T08:42:52.000Z
2020-05-09T08:42:52.000Z
lib/python3.6/site-packages/statsmodels/stats/gof.py
KshitizSharmaV/Quant_Platform_Python
d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39
[ "BSD-3-Clause" ]
null
null
null
lib/python3.6/site-packages/statsmodels/stats/gof.py
KshitizSharmaV/Quant_Platform_Python
d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39
[ "BSD-3-Clause" ]
1
2020-05-09T08:42:58.000Z
2020-05-09T08:42:58.000Z
'''extra statistical function and helper functions contains: * goodness-of-fit tests - powerdiscrepancy - gof_chisquare_discrete - gof_binning_discrete Author: Josef Perktold License : BSD-3 changes ------- 2013-02-25 : add chisquare_power, effectsize and "value" ''' from statsmodels.compat.python import l...
33.963115
129
0.635151
13f986181749dd8ce53e92b3a1daf9566558cffb
4,414
py
Python
contrib/seeds/generate-seeds.py
puzcoin/tpc
60d0df689be4f215ecadfbb9c0df823b6e916758
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
puzcoin/tpc
60d0df689be4f215ecadfbb9c0df823b6e916758
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
puzcoin/tpc
60d0df689be4f215ecadfbb9c0df823b6e916758
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Wladimir J. van der Laan # Copyright (c) 2015-2018 The PIVX developers # Copyright (c) 2018 The Tpc developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate ...
31.528571
98
0.584957
3104f6810c3585c8a4540d18cdc099d97189fa4e
4,555
py
Python
storm_analysis/test/test_scmos_cal.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
storm_analysis/test/test_scmos_cal.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
storm_analysis/test/test_scmos_cal.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python """ sCMOS calibration tests. """ import numpy import numpy.random import tifffile import storm_analysis import storm_analysis.simulator.camera as camera import storm_analysis.sCMOS.camera_calibration as camCal import storm_analysis.sCMOS.movie_to_calib_format as movieToCalFmt def test_create_c...
35.038462
99
0.496817
fedd40d8ac52c6a92c25f5ce5e14a65b22390c9f
950
py
Python
buildroot/support/testing/tests/core/test_rootfs_overlay.py
bramkragten/operating-system
27fc2de146f1ef047316a4b58a236c72d26da81c
[ "Apache-2.0" ]
617
2015-01-04T14:33:56.000Z
2022-03-24T22:42:25.000Z
buildroot/support/testing/tests/core/test_rootfs_overlay.py
bramkragten/operating-system
27fc2de146f1ef047316a4b58a236c72d26da81c
[ "Apache-2.0" ]
631
2015-01-01T22:53:25.000Z
2022-03-17T18:41:00.000Z
buildroot/support/testing/tests/core/test_rootfs_overlay.py
bramkragten/operating-system
27fc2de146f1ef047316a4b58a236c72d26da81c
[ "Apache-2.0" ]
133
2015-03-03T18:40:05.000Z
2022-03-18T13:34:26.000Z
import os import subprocess import infra.basetest def compare_file(file1, file2): return subprocess.call(["cmp", file1, file2]) class TestRootfsOverlay(infra.basetest.BRTest): rootfs_overlay_path = infra.filepath("tests/core/rootfs-overlay") config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ ...
30.645161
80
0.677895
ab2053febc170faa88aeaf07e58b9f23c86d650b
265,449
py
Python
groupdocs/SignatureApi.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
groupdocs/SignatureApi.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
groupdocs/SignatureApi.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2012 GroupDocs. 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 ...
44.21939
225
0.571243
6f8a56a3869c640a3c1ab6bd377831428b9e74af
676
py
Python
ws/handler/event/enum/elapsed.py
fabaff/automate-ws
a9442f287692787e3f253e1ff23758bec8f3902e
[ "MIT" ]
null
null
null
ws/handler/event/enum/elapsed.py
fabaff/automate-ws
a9442f287692787e3f253e1ff23758bec8f3902e
[ "MIT" ]
1
2021-12-21T11:34:47.000Z
2021-12-21T11:34:47.000Z
ws/handler/event/enum/elapsed.py
fabaff/automate-ws
a9442f287692787e3f253e1ff23758bec8f3902e
[ "MIT" ]
1
2021-12-21T10:10:13.000Z
2021-12-21T10:10:13.000Z
import home from ws.handler.event.enum import Handler as Parent class Handler(Parent): KLASS = home.event.elapsed.Event TEMPLATE = "event/enum.html" LABEL = "Elapsed" ICON_ELAPSED = "fas fa-stop-circle" ICON_NOT_ELAPSED = "far fa-stop-circle" def _get_str(self, e): if e == home.even...
25.037037
51
0.616864
7f2a3109189ed11ad83de3c324028b35807fcb26
1,571
py
Python
features/output.py
AngeStan/github-list-commits
1c49445374489503e64adf07d3475447fda4b323
[ "Apache-2.0" ]
1
2020-02-18T09:53:59.000Z
2020-02-18T09:53:59.000Z
features/output.py
AngeStan/github-list-commits
1c49445374489503e64adf07d3475447fda4b323
[ "Apache-2.0" ]
null
null
null
features/output.py
AngeStan/github-list-commits
1c49445374489503e64adf07d3475447fda4b323
[ "Apache-2.0" ]
null
null
null
import csv, sqlite3, os, datetime def export_csv(table): now = datetime.datetime.now().strftime('%Y-%m-%d %H.%M.%S') # string "now" is a formatted current time var file_name = f"commits {now}.csv" csv_file = open(file_name, 'w', newline='') csv_write = csv.DictWriter(csv_file, ["SHA", "Message", "URL...
41.342105
111
0.629535
0ec9e5457408399ae644ebde378afbf34c85c829
3,568
py
Python
FastSurferCNN/models/losses.py
Jinboasltw/FastSurfer
3c0330c459c221b85428d3ec2e95f5196aee3129
[ "Apache-2.0" ]
257
2020-06-24T15:34:31.000Z
2022-03-30T04:24:18.000Z
FastSurferCNN/models/losses.py
Jinboasltw/FastSurfer
3c0330c459c221b85428d3ec2e95f5196aee3129
[ "Apache-2.0" ]
92
2020-06-24T18:44:38.000Z
2022-03-31T15:15:31.000Z
FastSurferCNN/models/losses.py
Jinboasltw/FastSurfer
3c0330c459c221b85428d3ec2e95f5196aee3129
[ "Apache-2.0" ]
62
2020-06-25T00:59:10.000Z
2022-03-10T10:12:09.000Z
# Copyright 2019 Image Analysis Lab, German Center for Neurodegenerative Diseases (DZNE), Bonn # # 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-...
33.037037
104
0.653307
53c1b963c5ece49bcaf75e9e12322090fc7dcd3e
1,257
py
Python
magic_card_generator/dataset/collection/card_collector.py
joaopedromattos/MTGAN
9a48123d08650fb06e9a138364f98a675bf95451
[ "MIT" ]
1
2020-11-18T18:47:25.000Z
2020-11-18T18:47:25.000Z
magic_card_generator/dataset/collection/card_collector.py
joaopedromattos/MTGan
9a48123d08650fb06e9a138364f98a675bf95451
[ "MIT" ]
null
null
null
magic_card_generator/dataset/collection/card_collector.py
joaopedromattos/MTGan
9a48123d08650fb06e9a138364f98a675bf95451
[ "MIT" ]
1
2021-12-22T15:53:42.000Z
2021-12-22T15:53:42.000Z
# -*- coding: utf-8 -*- """dataset_collection Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1lHElNaOJc6KguYAQuFrWGjVqDUUk3an8 """ import os from requests import get import pandas as pd import numpy as np from tqdm import tqdm os.system("wget https:/...
30.658537
112
0.692124
f67a04c9e56f2d42f6610ca910e69989c875a9ac
3,714
py
Python
src/backendServer/requestHandler/views.py
JiahongHe/Personal-Facial-Identification-System
11ed41a5afda02f46f04f539036fb1c27dc756d6
[ "MIT" ]
null
null
null
src/backendServer/requestHandler/views.py
JiahongHe/Personal-Facial-Identification-System
11ed41a5afda02f46f04f539036fb1c27dc756d6
[ "MIT" ]
null
null
null
src/backendServer/requestHandler/views.py
JiahongHe/Personal-Facial-Identification-System
11ed41a5afda02f46f04f539036fb1c27dc756d6
[ "MIT" ]
1
2018-11-27T16:59:30.000Z
2018-11-27T16:59:30.000Z
from django.shortcuts import render from django.http import HttpResponse from requestHandler.models import User, Song, SystemSetting from .forms import updateForm import json fields = ['FirstName', 'LastName', 'Email', 'passWord'] def requestInfo(request): # API that returns all the nec...
35.711538
111
0.609585
d9db9e3bca29f1e0c503c0193b72f2e95adbae9c
8,886
py
Python
polyaxon/query/parser.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/query/parser.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/query/parser.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
from collections import defaultdict, namedtuple from query.exceptions import QueryParserException class QueryOpSpec(namedtuple("QueryOpSpec", "op negation params")): def items(self): return self._asdict().items() def parse_negation_operation(operation): """Parse the negation modifier in an operati...
34.710938
97
0.613324
64b89391e1d04b3916809d21ae58557b246b7448
964
py
Python
sdi/sprites/Animatable.py
dysfunctionals/sdi-display
cd7ce012de73034752a4efb70298200dd6d42a39
[ "MIT" ]
null
null
null
sdi/sprites/Animatable.py
dysfunctionals/sdi-display
cd7ce012de73034752a4efb70298200dd6d42a39
[ "MIT" ]
1
2020-02-23T11:57:04.000Z
2020-03-09T11:11:42.000Z
sdi/sprites/Animatable.py
dysfunctionals/sdi-display
cd7ce012de73034752a4efb70298200dd6d42a39
[ "MIT" ]
1
2020-02-22T23:58:22.000Z
2020-02-22T23:58:22.000Z
import pygame, random class Animatable(pygame.sprite.Sprite): def __init__(self, files, image_count, delays, scale, init_y, init_x=1920): super().__init__() self.images = [] self.delays = delays self.scale = int(32 * (random.randint(7, 14) / 10) * self.scale) for suffix in...
29.212121
79
0.520747
1f9832c3ab921ba545a0efe448f2923b9b22ce06
6,392
py
Python
terra/tests/test_executor_celery.py
NoahRJohnson/terra
131954ee42fb5905ceff35101e34d89c5eb6de6c
[ "MIT" ]
null
null
null
terra/tests/test_executor_celery.py
NoahRJohnson/terra
131954ee42fb5905ceff35101e34d89c5eb6de6c
[ "MIT" ]
null
null
null
terra/tests/test_executor_celery.py
NoahRJohnson/terra
131954ee42fb5905ceff35101e34d89c5eb6de6c
[ "MIT" ]
null
null
null
import sys import os import time from unittest import mock, skipUnless try: import celery except: # noqa celery = None from .utils import TestCase @skipUnless(celery, "Celery not installed") class TestCeleryConfig(TestCase): def setUp(self): self.patches.append(mock.patch.dict(os.environ, ...
29.054545
79
0.673967
0804b774727a1f200928d93df073c5ad646f3599
1,822
py
Python
src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_queue_event_subscription_destination_py3.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2019-05-10T19:58:09.000Z
2019-05-10T19:58:09.000Z
src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_queue_event_subscription_destination_py3.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/storage_queue_event_subscription_destination_py3.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.488889
89
0.655873
fb78ee438fb9053d53b21663fbe0b4b37d4389ac
5,811
py
Python
gym/envs/toy_text/frozen_lake.py
afernandezcanosa/gym
11c3b77ea0afd467b51e4f2c73e47e103ef128e9
[ "Python-2.0", "OLDAP-2.7" ]
6
2020-03-25T07:58:24.000Z
2021-12-26T05:53:32.000Z
gym/envs/toy_text/frozen_lake.py
afernandezcanosa/gym
11c3b77ea0afd467b51e4f2c73e47e103ef128e9
[ "Python-2.0", "OLDAP-2.7" ]
2
2020-03-20T18:10:49.000Z
2021-11-29T12:27:51.000Z
gym/envs/toy_text/frozen_lake.py
afernandezcanosa/gym
11c3b77ea0afd467b51e4f2c73e47e103ef128e9
[ "Python-2.0", "OLDAP-2.7" ]
3
2022-02-03T16:40:08.000Z
2022-02-06T17:28:11.000Z
import sys from contextlib import closing import numpy as np from six import StringIO, b from gym import utils from gym.envs.toy_text import discrete LEFT = 0 DOWN = 1 RIGHT = 2 UP = 3 MAPS = { "4x4": [ "SFFF", "FHFH", "FFFH", "HFFG" ], "8x8": [ "SFFFFFFF", ...
32.104972
95
0.487352
4fafa8db09c25775d999498635af4b5c3894a651
5,043
py
Python
tests/printing/test_configure_printing.py
anna-naden/qalgebra
e7641ef77a2433caf2f587df27235800b894b631
[ "MIT" ]
2
2020-08-17T12:18:19.000Z
2020-08-25T11:17:27.000Z
tests/printing/test_configure_printing.py
anna-naden/qalgebra
e7641ef77a2433caf2f587df27235800b894b631
[ "MIT" ]
1
2022-01-13T10:29:18.000Z
2022-01-13T10:29:18.000Z
tests/printing/test_configure_printing.py
anna-naden/qalgebra
e7641ef77a2433caf2f587df27235800b894b631
[ "MIT" ]
null
null
null
import pytest from sympy import atan, symbols from qalgebra.core.operator_algebra import LocalSigma, OperatorSymbol from qalgebra.core.state_algebra import CoherentStateKet from qalgebra.printing import ( ascii, configure_printing, init_printing, latex, unicode, ) def test_sympy_tex_cached(): ...
33.845638
79
0.587151
a38f371772dfd4865cc1313dd8f650d73e287d83
736
py
Python
U9/EJ10U9.py
jdmejiav/python-unal-execises
4bfe3c6caed8b20bc27eb015e9f74f059355da54
[ "MIT" ]
null
null
null
U9/EJ10U9.py
jdmejiav/python-unal-execises
4bfe3c6caed8b20bc27eb015e9f74f059355da54
[ "MIT" ]
null
null
null
U9/EJ10U9.py
jdmejiav/python-unal-execises
4bfe3c6caed8b20bc27eb015e9f74f059355da54
[ "MIT" ]
null
null
null
archivo = open('conversaciones.txt','r') for renglon in archivo: renglon = renglon.replace('\n','').lower() opositivos = 0 causativos = 0 if "sin embargo" in renglon: opositivos+=1 if "no obstante" in renglon: opositivos+=1 if "ahora bien" in renglon: opositivos+=1 ...
18.4
71
0.59375
eb3cc27e3a4161247877c6d8a1d06d32f9eaae79
449
py
Python
equibel/__init__.py
asteroidhouse/equibel
476d58e4c8d4b5aabe4b94b650e6d326acb41ec8
[ "MIT" ]
4
2015-05-19T04:31:52.000Z
2019-08-13T23:57:29.000Z
equibel/__init__.py
asteroidhouse/equibel
476d58e4c8d4b5aabe4b94b650e6d326acb41ec8
[ "MIT" ]
null
null
null
equibel/__init__.py
asteroidhouse/equibel
476d58e4c8d4b5aabe4b94b650e6d326acb41ec8
[ "MIT" ]
null
null
null
from __future__ import absolute_import import equibel.graph from equibel.graph import * import equibel.graphgen from equibel.graphgen import * import equibel.formulagen from equibel.formulagen import * import equibel.formatters from equibel.formatters import * import equibel.parsers from equibel.parsers import * ...
17.269231
38
0.797327
de7f62792396e0e054c3dcbdd6da37f0d2bbf438
5,618
py
Python
Main.py
david-c-stein/Python-Multiprocessing
f55000ad0e0e0280a28a55247d03a37df8630922
[ "MIT" ]
2
2020-05-06T08:55:23.000Z
2020-10-13T15:37:59.000Z
Main.py
david-c-stein/Python-Multiprocessing
f55000ad0e0e0280a28a55247d03a37df8630922
[ "MIT" ]
null
null
null
Main.py
david-c-stein/Python-Multiprocessing
f55000ad0e0e0280a28a55247d03a37df8630922
[ "MIT" ]
null
null
null
#!/usr/bin/env python import datetime import getopt import inspect import json import os import platform import sys import time import threading from Global import __MULTIPROCESSING__ __version__ = "0.1" if __MULTIPROCESSING__: import multiprocessing from multiprocessing import Queue from multiprocessi...
29.108808
110
0.475614
df03ae652dbbe5434783b31c79cb37355cd83f86
1,065
py
Python
Shishkin_Anatoliy_lesson_10/actions/my_iterators.py
amilykh/2074_GB_Python_1-
0112ad710154623ad1dafffbdb413caeff424813
[ "MIT" ]
3
2022-01-28T15:53:22.000Z
2022-03-07T15:58:14.000Z
Shishkin_Anatoliy_lesson_10/actions/my_iterators.py
amilykh/2074_GB_Python_1-
0112ad710154623ad1dafffbdb413caeff424813
[ "MIT" ]
5
2022-01-24T11:08:42.000Z
2022-03-03T00:15:22.000Z
Shishkin_Anatoliy_lesson_10/actions/my_iterators.py
amilykh/2074_GB_Python_1-
0112ad710154623ad1dafffbdb413caeff424813
[ "MIT" ]
18
2022-01-18T05:56:00.000Z
2022-02-28T10:30:18.000Z
class IterObj: ... # просто класс-заглушка class IteratorEnergy: """Объект-итератор, имитация иссякающей энергии""" def __init__(self, start=10): self.i = start + 1 # У итератора есть метод __next__ def __next__(self): self.i -= 1 if self.i >= 1: return self.i ...
23.666667
58
0.611268
46cf8327d4cfcab196e5153b443a24c1ba6cfd68
1,045
py
Python
plaidml/bridge/tensorflow/tests/util.py
hfp/plaidml
c86852a910e68181781b3045f5a306d2f41a775f
[ "Apache-2.0" ]
null
null
null
plaidml/bridge/tensorflow/tests/util.py
hfp/plaidml
c86852a910e68181781b3045f5a306d2f41a775f
[ "Apache-2.0" ]
null
null
null
plaidml/bridge/tensorflow/tests/util.py
hfp/plaidml
c86852a910e68181781b3045f5a306d2f41a775f
[ "Apache-2.0" ]
null
null
null
import numpy as np from plaidml.bridge.tensorflow.tests import archive_py_generated as schema dataTypeMap = { 'int8': (schema.I8DataT, schema.Data.I8Data), 'int16': (schema.I16DataT, schema.Data.I16Data), 'int32': (schema.I32DataT, schema.Data.I32Data), 'int64': (schema.I64DataT, schema.Data.I64Data),...
33.709677
74
0.680383
1deb15ba03296cdc428e63f9c302e67ff93a5373
10,051
py
Python
src/python/grpcio_tests/tests/unit/_cython/_read_some_but_not_all_responses_test.py
geffzhang/grpc
3ca1872927be87e3acb5230080990291d9393c5a
[ "BSD-3-Clause" ]
null
null
null
src/python/grpcio_tests/tests/unit/_cython/_read_some_but_not_all_responses_test.py
geffzhang/grpc
3ca1872927be87e3acb5230080990291d9393c5a
[ "BSD-3-Clause" ]
null
null
null
src/python/grpcio_tests/tests/unit/_cython/_read_some_but_not_all_responses_test.py
geffzhang/grpc
3ca1872927be87e3acb5230080990291d9393c5a
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
41.705394
83
0.634265
f3aec75d462ac45fc9cd058f407ddc1bd9a217c5
1,898
py
Python
PyTrinamicMicro/platforms/motionpy2/examples/tmcl_bridge/tmcl_bridge_uart_x.py
trinamic/PyTrinamicMicro
defcd1aef2ea35e848b3a3faf201ec4d8a649bfd
[ "MIT" ]
4
2020-06-25T08:59:59.000Z
2021-07-17T09:52:38.000Z
PyTrinamicMicro/platforms/motionpy2/examples/tmcl_bridge/tmcl_bridge_uart_x.py
trinamic/PyTrinamicMicro
defcd1aef2ea35e848b3a3faf201ec4d8a649bfd
[ "MIT" ]
2
2020-10-08T15:48:07.000Z
2021-05-12T13:28:27.000Z
PyTrinamicMicro/platforms/motionpy2/examples/tmcl_bridge/tmcl_bridge_uart_x.py
trinamic/PyTrinamicMicro
defcd1aef2ea35e848b3a3faf201ec4d8a649bfd
[ "MIT" ]
3
2021-01-26T09:24:28.000Z
2021-04-27T08:42:38.000Z
''' Bridge from USB host to UART module. Pitfall: stdout redirection is impossible in micropython at the moment. By default, stdout-writing functions will write to VCP and interfere with connection. Therefore, do not use stdout-writing functions (print, ...) here or turn them off while using VCP. Created on 08.10.202...
32.169492
101
0.800843
631cd426b32b8bc47877d1fcabb30b4a4948e199
7,645
py
Python
python/paddle/fluid/tests/unittests/dygraph_to_static/test_convert_operators.py
a6802739/Paddle
c0bda9109f11872432f7d60580b5b6a3367f2577
[ "Apache-2.0" ]
1
2020-12-21T09:01:24.000Z
2020-12-21T09:01:24.000Z
python/paddle/fluid/tests/unittests/dygraph_to_static/test_convert_operators.py
a6802739/Paddle
c0bda9109f11872432f7d60580b5b6a3367f2577
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/dygraph_to_static/test_convert_operators.py
a6802739/Paddle
c0bda9109f11872432f7d60580b5b6a3367f2577
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle 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 app...
39.407216
80
0.516678
0c24e5f375447159ab4363e995ab710e9c15c369
726
py
Python
Python_script/cnt.py
hzz0024/BioinfoTools
1a2fd50e8dfb0e52f2514720e938702fe255ca7b
[ "MIT" ]
2
2019-08-15T15:16:28.000Z
2020-10-12T12:27:19.000Z
Python_script/cnt.py
hzz0024/BioinfoTools
1a2fd50e8dfb0e52f2514720e938702fe255ca7b
[ "MIT" ]
null
null
null
Python_script/cnt.py
hzz0024/BioinfoTools
1a2fd50e8dfb0e52f2514720e938702fe255ca7b
[ "MIT" ]
null
null
null
import numpy as np import re import argparse arg_parser = argparse.ArgumentParser() arg_parser.add_argument( '--input', default='./Flowcell1_1_fastq', help='Input file.') args = arg_parser.parse_args() # replace the fileName with your own fastq file name fileName = args.input fi...
25.928571
54
0.597796
e5b85dfbc95660ee9b847b012a6337d4b6b30b70
496
py
Python
examples/advanced/hydra_app_example/setup.py
Devabdulakeem/hydra
7afee0976f7507c3c1b607ebd129d3408b608fa2
[ "MIT" ]
1
2021-02-23T00:00:20.000Z
2021-02-23T00:00:20.000Z
examples/advanced/hydra_app_example/setup.py
rolveb/hydra
dfbebc34020ad3d4bf1ab061565408740e62eb22
[ "MIT" ]
null
null
null
examples/advanced/hydra_app_example/setup.py
rolveb/hydra
dfbebc34020ad3d4bf1ab061565408740e62eb22
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from setuptools import find_packages, setup setup( name="hydra-app", version="0.1", packages=find_packages(include=["hydra_app"]), entry_points={"console_scripts": ["hydra_app = hydra_app.main:main"]}, au...
27.555556
74
0.693548
1de385f2ef105533a657268c8f28ab9e84887666
1,201
py
Python
soda/core/tests/unit/test_sodacl_error_user_defined_queries.py
duyet/soda-core
92a52e0d7c1e88624d0637123cfcb2610af6d112
[ "Apache-2.0" ]
4
2022-03-23T02:43:42.000Z
2022-03-31T15:20:54.000Z
soda/core/tests/unit/test_sodacl_error_user_defined_queries.py
duyet/soda-core
92a52e0d7c1e88624d0637123cfcb2610af6d112
[ "Apache-2.0" ]
543
2022-03-22T09:02:17.000Z
2022-03-31T16:29:41.000Z
soda/core/tests/unit/test_sodacl_error_user_defined_queries.py
duyet/soda-core
92a52e0d7c1e88624d0637123cfcb2610af6d112
[ "Apache-2.0" ]
1
2022-03-27T03:37:55.000Z
2022-03-27T03:37:55.000Z
from textwrap import dedent from soda.scan import Scan def test_user_defined_metric_query_unsupported_configuration(): scan = Scan() scan.add_sodacl_yaml_str( dedent( """ checks for CUSTOMERS: - avg_surface between 1068 and 1069: typo config: AVG(size * distance)...
24.510204
128
0.622814
7d6bcc4d564c9332cd2abde37753d3a5c4a89515
34,070
py
Python
python/paddle/utils/cpp_extension/extension_utils.py
dingsiyu/paddle_adamw
868c0e44d7d43d83fd062bfe4536f13b8bf4517f
[ "Apache-2.0" ]
1
2021-04-22T03:51:33.000Z
2021-04-22T03:51:33.000Z
python/paddle/utils/cpp_extension/extension_utils.py
dingsiyu/paddle_adamw
868c0e44d7d43d83fd062bfe4536f13b8bf4517f
[ "Apache-2.0" ]
null
null
null
python/paddle/utils/cpp_extension/extension_utils.py
dingsiyu/paddle_adamw
868c0e44d7d43d83fd062bfe4536f13b8bf4517f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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 appli...
33.142023
128
0.629087
99f8c648b3a236c026b3aeb2f1a82b8047ca5c4d
20
py
Python
scratch/py-eval/py/numpy-array.py
mdorier/Supervisor
f1e43b2b33fb2cf9e03ea3ac49378aba37bd9839
[ "MIT" ]
10
2017-03-14T14:36:19.000Z
2021-01-21T00:39:36.000Z
scratch/py-eval/py/numpy-array.py
mdorier/Supervisor
f1e43b2b33fb2cf9e03ea3ac49378aba37bd9839
[ "MIT" ]
58
2017-03-03T21:07:53.000Z
2021-07-19T18:51:03.000Z
scratch/py-eval/py/numpy-array.py
ORNL-BSEC/Supervisor
14a73ad19b10cebab0d7d2d48e52692485957ad2
[ "MIT" ]
21
2017-03-08T16:07:47.000Z
2020-11-24T04:23:00.000Z
A = numpy.array(3)
6.666667
18
0.6
49cfcbfd245b21bf56aabce05e645d8b37bf0e5d
992
py
Python
test/test_inline_response2002.py
latourette359/modern_logic_client
16d415e1b07a66a975dc08a67465c0d70c90cbac
[ "MIT" ]
null
null
null
test/test_inline_response2002.py
latourette359/modern_logic_client
16d415e1b07a66a975dc08a67465c0d70c90cbac
[ "MIT" ]
null
null
null
test/test_inline_response2002.py
latourette359/modern_logic_client
16d415e1b07a66a975dc08a67465c0d70c90cbac
[ "MIT" ]
null
null
null
# coding: utf-8 """ Modern Logic Api Manage and version your customer decision logic outside of your codebase # noqa: E501 OpenAPI spec version: 1.0.0 Contact: info@usemodernlogic.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import im...
24.8
99
0.728831
f3e6b6166cb8ed68437f31096f216c9a76000d00
273
py
Python
modules/loss_functions/__init__.py
df424/ml
e12232ca4b90f983bfb14718afd314d3d6cc1bf9
[ "MIT" ]
null
null
null
modules/loss_functions/__init__.py
df424/ml
e12232ca4b90f983bfb14718afd314d3d6cc1bf9
[ "MIT" ]
null
null
null
modules/loss_functions/__init__.py
df424/ml
e12232ca4b90f983bfb14718afd314d3d6cc1bf9
[ "MIT" ]
null
null
null
from ml.modules.loss_functions.loss_function import LossFunction from ml.modules.loss_functions.cross_entropy import CrossEntropyLoss from ml.modules.loss_functions.log_likelihood import SigmoidLogLikelihood from ml.modules.loss_functions.squared_error import SquaredError
54.6
73
0.897436
78c5820665af4380870cd71167a5c30c7ab4657f
1,854
py
Python
prepare/migrations/0007_auto_20210808_1231.py
engelsmann/bedom
eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2
[ "CC0-1.0" ]
1
2020-10-01T06:40:32.000Z
2020-10-01T06:40:32.000Z
prepare/migrations/0007_auto_20210808_1231.py
engelsmann/bedom
eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2
[ "CC0-1.0" ]
17
2020-10-01T11:49:30.000Z
2022-03-04T16:07:45.000Z
prepare/migrations/0007_auto_20210808_1231.py
engelsmann/bedom
eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-08 10:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('prepare', '0006_auto_20210801_1550'), ] operations = [ migrations.AlterField( model_name='fokusgruppe', name='bedømt...
34.333333
128
0.587379
b3dcba7dd1ed0622baeddd8be80c5f162ee33699
2,656
py
Python
sushirank/datasets.py
Datatouille/sushirank
fe77509c6220ae269b9cb3003045b973e34f8661
[ "Apache-2.0" ]
19
2020-07-19T07:14:57.000Z
2022-01-29T02:42:40.000Z
sushirank/datasets.py
Datatouille/sushirank
fe77509c6220ae269b9cb3003045b973e34f8661
[ "Apache-2.0" ]
null
null
null
sushirank/datasets.py
Datatouille/sushirank
fe77509c6220ae269b9cb3003045b973e34f8661
[ "Apache-2.0" ]
10
2020-07-19T07:18:49.000Z
2020-12-16T13:39:34.000Z
import numpy as np import torch from torch.utils.data import Dataset from tqdm.auto import tqdm device = 'cuda' if torch.cuda.is_available() else 'cpu' class PointwiseDataset(Dataset): def __init__( self, df, label_col, cat_cols, num_cols, ): self.label_col = lab...
32.790123
104
0.578313
984ca1d8b16729b1f46e8e48abfa388a669ab8bd
3,738
py
Python
qa/rpc-tests/maxblocksinflight.py
CircuitBreaker88/BTCMonster
d9598ed7c389c64743534e047787ba7195bdf24a
[ "MIT" ]
3
2019-05-25T11:07:10.000Z
2019-08-17T01:29:06.000Z
qa/rpc-tests/maxblocksinflight.py
CircuitBreaker88/BTCMonster
d9598ed7c389c64743534e047787ba7195bdf24a
[ "MIT" ]
null
null
null
qa/rpc-tests/maxblocksinflight.py
CircuitBreaker88/BTCMonster
d9598ed7c389c64743534e047787ba7195bdf24a
[ "MIT" ]
1
2019-03-27T20:37:32.000Z
2019-03-27T20:37:32.000Z
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import logging ...
38.536082
110
0.631354
b2744d063020a5427dc23ef3f33c603849c8bb50
1,451
py
Python
steembase/operationids.py
VoxChain/vox-python
74147edcdeaa76e18faa752e5feb9b2174db9847
[ "MIT" ]
24
2017-05-01T20:31:32.000Z
2020-04-09T02:32:02.000Z
steembase/operationids.py
VoxChain/vox-python
74147edcdeaa76e18faa752e5feb9b2174db9847
[ "MIT" ]
7
2017-05-31T22:47:57.000Z
2018-02-10T22:21:25.000Z
steembase/operationids.py
VoxChain/vox-python
74147edcdeaa76e18faa752e5feb9b2174db9847
[ "MIT" ]
25
2017-05-31T22:48:11.000Z
2020-07-19T11:23:34.000Z
op_names = [ 'vote', 'comment', 'transfer', 'transfer_to_vesting', 'withdraw_vesting', 'limit_order_create', 'limit_order_cancel', 'feed_publish', 'convert', 'account_create', 'account_update', 'witness_update', 'account_witness_vote', 'account_witness_proxy', ...
23.403226
54
0.67195
159c3e22f62d5fe68c2b54bfb5649693ddbd806b
15,372
py
Python
source/lib/blueprints/byom/model_monitor.py
Salah856/aws-mlops-framework
59cc38dd74b2715e104e7247422aae6e3bb59b37
[ "Apache-2.0" ]
null
null
null
source/lib/blueprints/byom/model_monitor.py
Salah856/aws-mlops-framework
59cc38dd74b2715e104e7247422aae6e3bb59b37
[ "Apache-2.0" ]
null
null
null
source/lib/blueprints/byom/model_monitor.py
Salah856/aws-mlops-framework
59cc38dd74b2715e104e7247422aae6e3bb59b37
[ "Apache-2.0" ]
null
null
null
# ##################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
53.006897
125
0.654567
6c9fea53f9379258f0d3690d16300eb490d12f66
918
py
Python
tests/unit/tsi/api_object_test.py
jdgwartney/tsi
d0e098ce40e0743eb51af8a65b7589b549019542
[ "Apache-2.0" ]
null
null
null
tests/unit/tsi/api_object_test.py
jdgwartney/tsi
d0e098ce40e0743eb51af8a65b7589b549019542
[ "Apache-2.0" ]
null
null
null
tests/unit/tsi/api_object_test.py
jdgwartney/tsi
d0e098ce40e0743eb51af8a65b7589b549019542
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2014-2015 Boundary, 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 applica...
26.228571
74
0.71024
aa1d1145381d2ac071008866a8aec6b198c1f460
356
py
Python
qtrio/_tests/test_cli.py
nodeselector/qtrio
4bc25ef97d7e6e01a9751de9c84a4214e637e9d4
[ "Apache-2.0", "MIT" ]
null
null
null
qtrio/_tests/test_cli.py
nodeselector/qtrio
4bc25ef97d7e6e01a9751de9c84a4214e637e9d4
[ "Apache-2.0", "MIT" ]
1
2021-03-30T21:14:20.000Z
2021-03-30T21:14:20.000Z
qtrio/_tests/test_cli.py
nodeselector/qtrio
4bc25ef97d7e6e01a9751de9c84a4214e637e9d4
[ "Apache-2.0", "MIT" ]
null
null
null
import os import pathlib import subprocess import sys import sysconfig def test_emissions_help_dash_m(): """The CLI run via ``python -m qtrio`` doesn't fail when asked for --help for the emissions example. Woooot more stuff. """ subprocess.run( [sys.executable, "-m", "qtrio", "examples", "emis...
23.733333
86
0.671348
8335b72902270d31619ee9c6ec3bc3e2a35b3089
2,525
py
Python
pirates/minigame/RepairMousePicker.py
ksmit799/POTCO-PS
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
8
2017-01-24T04:33:29.000Z
2020-11-01T08:36:24.000Z
pirates/minigame/RepairMousePicker.py
ksmit799/Pirates-Online-Remake
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
1
2017-03-02T18:05:17.000Z
2017-03-14T06:47:10.000Z
pirates/minigame/RepairMousePicker.py
ksmit799/Pirates-Online-Remake
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
11
2017-03-02T18:46:07.000Z
2020-11-01T08:36:26.000Z
# File: R (Python 2.4) import math from pandac.PandaModules import BitMask32 from pandac.PandaModules import NodePath, Point3 from pandac.PandaModules import CollisionNode, CollisionSphere, CollisionRay, GeomNode from pandac.PandaModules import CollisionTraverser, CollisionHandlerQueue from direct.interval.IntervalGlo...
35.069444
94
0.685149
127b52dc86dba829f0bac1effcaac2a123f62c00
11,677
py
Python
lib/python3.8/site-packages/ansible_collections/junipernetworks/junos/plugins/modules/junos_l2_interface.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/junipernetworks/junos/plugins/modules/junos_l2_interface.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/junipernetworks/junos/plugins/modules/junos_l2_interface.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Ansible by Red Hat, inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = """ module: junos_l2_interface author: Gan...
27.868735
119
0.602895
de9c8eb2450c695fbd90f343015d25178ebee290
1,075
py
Python
tests/test_slice_into_chunks.py
thekevinscott/VGGishAudioData
2bdf358147695411485163a7009c3b76ead8270b
[ "MIT" ]
1
2022-01-19T07:30:17.000Z
2022-01-19T07:30:17.000Z
tests/test_slice_into_chunks.py
thekevinscott/AudioData
2bdf358147695411485163a7009c3b76ead8270b
[ "MIT" ]
null
null
null
tests/test_slice_into_chunks.py
thekevinscott/AudioData
2bdf358147695411485163a7009c3b76ead8270b
[ "MIT" ]
null
null
null
import pytest import random from ..AudioData.AudioData import AudioData from pydub.generators import Sine audioData = AudioData() def test_it_returns_chunks(): audio = Sine(440).to_audio_segment() files = [{ 'audio': audio[0:1000], 'file': 'foo', 'label': 'foo', 'start_index': 0...
24.431818
61
0.610233
c0539bd10f6bb025181c6b73d398c0cd6097e120
2,901
py
Python
src/openfermion/chem/pubchem.py
Emieeel/OpenFermion
c19d9667c5970473893f9bc0183556c4cd354dd7
[ "Apache-2.0" ]
1,291
2017-09-27T22:00:26.000Z
2022-03-25T14:34:50.000Z
src/openfermion/chem/pubchem.py
SamarthVadia/OpenFermion
865d8591cad9b0681f6dd25a391a5292ed2de1d4
[ "Apache-2.0" ]
521
2017-09-27T21:36:17.000Z
2022-03-02T12:45:56.000Z
src/openfermion/chem/pubchem.py
SamarthVadia/OpenFermion
865d8591cad9b0681f6dd25a391a5292ed2de1d4
[ "Apache-2.0" ]
365
2017-09-27T21:25:38.000Z
2022-03-29T19:28:46.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribu...
43.954545
78
0.604619
83771757befee8cd2af784ec0026d0001c945b10
649
py
Python
welcome/views.py
Gaoshengyue/openshfitdemo
2d57cf07d4dee3675af2665edbbd8cd1c0d4cb90
[ "CC0-1.0" ]
null
null
null
welcome/views.py
Gaoshengyue/openshfitdemo
2d57cf07d4dee3675af2665edbbd8cd1c0d4cb90
[ "CC0-1.0" ]
null
null
null
welcome/views.py
Gaoshengyue/openshfitdemo
2d57cf07d4dee3675af2665edbbd8cd1c0d4cb90
[ "CC0-1.0" ]
null
null
null
import os from django.shortcuts import render from django.conf import settings from django.http import HttpResponse from . import database from .models import PageView # Create your views here. def index(request): if request.method == 'GET': return render(request,'index.html') # hostname = os.geten...
24.037037
52
0.676425
180391b637a2adcddff9ff6494b193fa3170ca06
9,214
py
Python
python/ray/serve/http_proxy.py
heyong4725/ray
b73080c85f25e5037e27321661e599c706c42f42
[ "Apache-2.0" ]
2
2020-12-22T00:55:48.000Z
2021-04-08T22:02:33.000Z
python/ray/serve/http_proxy.py
mehrdadn/ray
3506910c5da257215d38d02f424acc4f419ddbaf
[ "Apache-2.0" ]
8
2020-11-13T19:02:47.000Z
2022-03-12T00:44:51.000Z
python/ray/serve/http_proxy.py
mehrdadn/ray
3506910c5da257215d38d02f424acc4f419ddbaf
[ "Apache-2.0" ]
null
null
null
import asyncio from urllib.parse import parse_qs import socket import uvicorn import ray from ray.exceptions import RayTaskError from ray import serve from ray.serve.context import TaskContext from ray.serve.metric import MetricClient from ray.serve.request_params import RequestMetadata from ray.serve.http_util impor...
38.552301
79
0.645648