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
f7a315c104b4b611cc7297d4f14b78389f131a5d
520
py
Python
magic_method_3.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
magic_method_3.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
magic_method_3.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
class DemoManager(object): def __enter__(self): pass def __exit__(self, ex_type, ex_value, ex_tb): if ex_type is IndexError: print(ex_value.__class__) return True if ex_type is TypeError: print(ex_value.__class__) return # return None w...
26
49
0.613462
f7a343560b5b99dcdde88341cd92c23d669151a2
1,003
py
Python
synapse/links/tcp.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/links/tcp.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/links/tcp.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
import synapse.common as s_common import synapse.lib.socket as s_socket from synapse.links.common import * class TcpRelay(LinkRelay): ''' Implements the TCP protocol for synapse. tcp://[user[:passwd]@]<host>[:port]/<path> ''' proto = 'tcp' def _reqValidLink(self): host = self.link[...
23.880952
52
0.572283
f7a35076be4b517c5bb87c7e2291a8110f26037b
2,494
py
Python
rideshare/rideshare_profile/models.py
RideQuest/ridequest
a2f51d99109f9767c5d2abe7f6fb3f160e5212da
[ "MIT" ]
null
null
null
rideshare/rideshare_profile/models.py
RideQuest/ridequest
a2f51d99109f9767c5d2abe7f6fb3f160e5212da
[ "MIT" ]
12
2016-04-30T02:36:13.000Z
2016-04-30T02:39:45.000Z
rideshare/rideshare_profile/models.py
RideQuest/ridequest
a2f51d99109f9767c5d2abe7f6fb3f160e5212da
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from phonenumber_field.modelfields import PhoneNumberField from django.contrib.gis.db import models as geomodels CAR_BRAND = [('Audi', 'Audi'), ('Acura', 'Acura'), ('BMW', 'BMW'), ('Buick', 'Buick'), ('Cadillac', 'Cadillac'), ('Ch...
39.587302
79
0.568565
f7a3546701722154359267bcf600ef2dfa4069b5
1,452
py
Python
piperider/artifacts/aws/athena.py
zinkosuke/piperider
1157862b8eeaabb075d04753202074a5f8ee6d24
[ "MIT" ]
null
null
null
piperider/artifacts/aws/athena.py
zinkosuke/piperider
1157862b8eeaabb075d04753202074a5f8ee6d24
[ "MIT" ]
3
2021-04-03T15:00:02.000Z
2021-04-08T12:17:15.000Z
piperider/artifacts/aws/athena.py
zinkosuke/piperider
1157862b8eeaabb075d04753202074a5f8ee6d24
[ "MIT" ]
1
2021-04-03T14:57:25.000Z
2021-04-03T14:57:25.000Z
from logging import getLogger from typing import Dict from typing import Optional from piperider.artifacts.aws.s3 import S3PrefixArtifact from piperider.types import AwsCredentials from piperider.utils.aws import athena logger = getLogger(__name__) class AthenaArtifact(S3PrefixArtifact): """ It represents a...
25.928571
79
0.609504
f7a354e75c19f7964396d00b43b672717926a167
529
py
Python
02_reading_spreadsheets/readings_cells_from_single_column.py
r00c/automating_excel_with_python
b4fa01aa6bdc2ec1c87a3e9cd00813b100f81f8b
[ "MIT" ]
43
2021-07-01T11:50:38.000Z
2022-03-26T13:56:15.000Z
02_reading_spreadsheets/readings_cells_from_single_column.py
wenxuefeng3930/automating_excel_with_python
dc2509359e1b14d2ad694f9fe554f3ce1781e497
[ "MIT" ]
1
2021-11-06T23:06:21.000Z
2021-11-07T01:24:44.000Z
02_reading_spreadsheets/readings_cells_from_single_column.py
wenxuefeng3930/automating_excel_with_python
dc2509359e1b14d2ad694f9fe554f3ce1781e497
[ "MIT" ]
11
2021-06-25T02:06:35.000Z
2022-03-31T14:29:59.000Z
# reading_cells_from_single_column.py from openpyxl import load_workbook def iterating_column(path, sheet_name, col): workbook = load_workbook(filename=path) if sheet_name not in workbook.sheetnames: print(f"'{sheet_name}' not found. Quitting.") return sheet = workbook[sheet_name] fo...
26.45
64
0.669187
f7a3692c3419b4b8ca62d94617ec0d565e1cd0b8
605
py
Python
leetcode/medium/274-H_index.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
1
2020-02-25T10:32:27.000Z
2020-02-25T10:32:27.000Z
leetcode/medium/274-H_index.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
leetcode/medium/274-H_index.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
""" Leetcode #274 """ from typing import List class Solution: # similar to bucket sort def hIndex(self, citations: List[int]) -> int: n = len(citations) citeCount = [0] * (n+1) for c in citations: if c >= n: citeCount[n] += 1 else: ...
19.516129
50
0.449587
f7a37d0044055358ce9a4afdfcfc3bf6ca711a2a
6,596
py
Python
test_df_config/test_utils.py
d9pouces/df_conf
b905e8efea80633c3b95c22c19c0d13604a71a5b
[ "CECILL-B" ]
null
null
null
test_df_config/test_utils.py
d9pouces/df_conf
b905e8efea80633c3b95c22c19c0d13604a71a5b
[ "CECILL-B" ]
null
null
null
test_df_config/test_utils.py
d9pouces/df_conf
b905e8efea80633c3b95c22c19c0d13604a71a5b
[ "CECILL-B" ]
null
null
null
# ############################################################################## # This file is part of df_config # # # # Copyright (C) 2020 Matthieu Gallet <github@19pouces.net> ...
39.261905
115
0.543056
f7a38528948de196c53116ea0f29aba31a3f56c7
742
py
Python
jackal/loaders.py
joyongjin/Jackal
63d637e92228d669cf8a6fc4b219a8c08471f5e3
[ "MIT" ]
6
2018-11-09T05:48:42.000Z
2020-06-25T07:14:40.000Z
jackal/loaders.py
jrog612/Jackal
63d637e92228d669cf8a6fc4b219a8c08471f5e3
[ "MIT" ]
1
2020-05-16T16:06:02.000Z
2020-05-16T16:06:02.000Z
jackal/loaders.py
jrog612/Jackal
63d637e92228d669cf8a6fc4b219a8c08471f5e3
[ "MIT" ]
null
null
null
from jackal.settings import jackal_settings from jackal.structures import JackalBaseStructure, BaseQueryFunction def structure_loader(key): ret_data = dict() stru = getattr(jackal_settings, key, None) if stru is None: stru = jackal_settings.CUSTOM_STRUCTURES.get(key) if stru is None: ...
24.733333
68
0.67655
f7a3b41b813bc14120b97ee5e1cecec0daeee4ab
4,634
py
Python
sem/modules/decompile_dictionary.py
YoannDupont/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
22
2016-11-13T21:08:58.000Z
2021-04-26T07:04:54.000Z
sem/modules/decompile_dictionary.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
15
2016-11-15T10:21:07.000Z
2021-11-08T10:08:05.000Z
sem/modules/decompile_dictionary.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
8
2016-11-15T10:21:41.000Z
2022-03-04T21:28:05.000Z
#-*- coding: utf-8 -*- """ file: decompile_dictionary.py Description: creates a dictionary file from a serialized dictionary. A dictionary file is a file where every entry is on one line. There are two kinds of dictionaries: token and multiword. A token dictionary will apply itself on single tokens. A multiwo...
40.649123
384
0.673932
f7a3c2f6f82b18980e8478214de28941fadbf65f
67,484
py
Python
src/toil/test/src/fileStoreTest.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
348
2018-07-08T03:38:28.000Z
2022-03-11T18:57:44.000Z
src/toil/test/src/fileStoreTest.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
1,700
2018-07-05T18:28:49.000Z
2022-03-31T14:09:04.000Z
src/toil/test/src/fileStoreTest.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...
48.584593
151
0.572951
f7a3cc6516fbfffa76a2b4bc520f4c91ebb4ce23
14,983
py
Python
sql30/db.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
null
null
null
sql30/db.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
null
null
null
sql30/db.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2020 Vipin Sharma. All Rights Reserved. # SPDX-License-Identifier: BSD-2 License # The full license information can be found in LICENSE.txt # in the root directory of this project. ''' A simple ORM for interacting with SQLite database. ''' import logging import os import sqlite3 ...
32.857456
87
0.564974
f7a3f0e2e19554894e6047d8c537fc34a78a4599
4,107
py
Python
sfepy/discrete/iga/io.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
sfepy/discrete/iga/io.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
sfepy/discrete/iga/io.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
""" IO for NURBS and Bezier extraction data. """ from __future__ import absolute_import import numpy as nm import six from six.moves import range from sfepy.base.ioutils import HDF5ContextManager, enc, dec def write_iga_data(filename, group, knots, degrees, control_points, weights, cs, conn, bezier_...
32.595238
80
0.597029
f7a3f412e0d71f7bb66dda3428cd1409b052a03d
18,969
py
Python
twilio/rest/api/v2010/account/conference/__init__.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
1
2021-02-24T04:59:03.000Z
2021-02-24T04:59:03.000Z
twilio/rest/api/v2010/account/conference/__init__.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/rest/api/v2010/account/conference/__init__.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
1
2018-12-09T00:53:21.000Z
2018-12-09T00:53:21.000Z
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import serialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import ...
34.240072
93
0.625705
f7a41c5789318a465d4d543be55d409a01b6f4f4
753
py
Python
problem_2_hard.py
pythonmite/Daily-Coding-Problem
8f758cb8cf0c6a7524c8874116ca9ed08545c773
[ "MIT" ]
null
null
null
problem_2_hard.py
pythonmite/Daily-Coding-Problem
8f758cb8cf0c6a7524c8874116ca9ed08545c773
[ "MIT" ]
1
2020-04-25T03:24:49.000Z
2020-05-27T12:38:08.000Z
problem_2_hard.py
pythonmite/Daily-Coding-Problem
8f758cb8cf0c6a7524c8874116ca9ed08545c773
[ "MIT" ]
2
2020-04-24T16:49:32.000Z
2020-04-25T03:20:21.000Z
""" Company Name : Uber Problem Statement : Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original array except the one at i. For example, if our input was [1, 2, 3, 4, 5], the expected o...
28.961538
128
0.612218
f7a4367cc9338d33f65ff98f05d2a720bf768bf0
5,883
py
Python
train.py
rdutra/multi-class-text-classification-cnn
bdb4403166e8b350fbc2b1073276755e46af9603
[ "Apache-2.0" ]
null
null
null
train.py
rdutra/multi-class-text-classification-cnn
bdb4403166e8b350fbc2b1073276755e46af9603
[ "Apache-2.0" ]
null
null
null
train.py
rdutra/multi-class-text-classification-cnn
bdb4403166e8b350fbc2b1073276755e46af9603
[ "Apache-2.0" ]
null
null
null
import os import sys import json import time import logging import data_helper import numpy as np import tensorflow as tf from text_cnn import TextCNN from tensorflow.contrib import learn from sklearn.model_selection import train_test_split logging.getLogger().setLevel(logging.INFO) def train_cnn(): """Step 0: load ...
42.941606
114
0.7316
f7a450127ccc01eaa6cd2da1580d42b0c9a0f9ec
13,079
py
Python
sdk/python/pulumi_kong/target.py
pulumi/pulumi-kong
775c17e4eac38934252410ed3dcdc6fc3bd40c5c
[ "ECL-2.0", "Apache-2.0" ]
4
2020-02-23T10:05:20.000Z
2020-05-15T14:22:10.000Z
sdk/python/pulumi_kong/target.py
pulumi/pulumi-kong
775c17e4eac38934252410ed3dcdc6fc3bd40c5c
[ "ECL-2.0", "Apache-2.0" ]
41
2020-04-21T22:04:23.000Z
2022-03-31T15:29:53.000Z
sdk/python/pulumi_kong/target.py
pulumi/pulumi-kong
775c17e4eac38934252410ed3dcdc6fc3bd40c5c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
39.875
138
0.62413
f7a477916f7047472e471b6eab937c74a6373c1b
6,472
py
Python
oscar/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2013 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # """Parser for the environment markers micro-language defined in PEP 345.""" import ast import os import sys import platform ...
33.884817
78
0.551452
f7a4bb4eb4cba83b90fb2023edfe41791a2b90a4
5,896
py
Python
cassiopeia-diskstore/cassiopeia_diskstore/common.py
meraki-analytics/cassiopeia-datastores
38e84f56e17ff5ff17dd6439a131d12d258fb407
[ "MIT" ]
3
2017-11-22T20:38:18.000Z
2018-09-04T07:48:55.000Z
cassiopeia-diskstore/cassiopeia_diskstore/common.py
meraki-analytics/cassiopeia-datastores
38e84f56e17ff5ff17dd6439a131d12d258fb407
[ "MIT" ]
12
2018-06-05T16:08:36.000Z
2020-11-26T19:16:59.000Z
cassiopeia-diskstore/cassiopeia_diskstore/common.py
meraki-analytics/cassiopeia-datastores
38e84f56e17ff5ff17dd6439a131d12d258fb407
[ "MIT" ]
10
2017-11-14T18:59:10.000Z
2020-09-17T15:18:29.000Z
import os import pickle import datetime from abc import abstractmethod from typing import Mapping, Any, TypeVar, Iterable, Type, Dict, List import simplekv, simplekv.fs from datapipelines import DataSource, DataSink, PipelineContext, NotFoundError from cassiopeia.dto.common import DtoObject from cassiopeia.dto.champi...
40.944444
273
0.628562
f7a4dc0af3ecaea46c7e3dd3de12799f3d5cc66e
16,229
py
Python
boot/scripts/gpio_led.py
maxmlr/rpi-photobooth
bd479e321320d433bbc33c678b3e0a97640b6cb5
[ "MIT" ]
1
2021-11-08T20:46:00.000Z
2021-11-08T20:46:00.000Z
boot/scripts/gpio_led.py
maxmlr/rpi-photobooth
bd479e321320d433bbc33c678b3e0a97640b6cb5
[ "MIT" ]
72
2020-01-23T16:56:30.000Z
2021-11-14T23:25:15.000Z
boot/scripts/gpio_led.py
maxmlr/rpi-photobooth
bd479e321320d433bbc33c678b3e0a97640b6cb5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import argparse import inspect from signal import signal, SIGINT import time import datetime import board import neopixel from colors import Color from helpers import frange, pre_execution, post_execution, retry class LEDPanel: def __init__(self, pixel_pin=board.D18, num_pixels...
37.308046
152
0.542178
f7a4e2207059b07e85577d94bd75211f0571ffb3
1,605
py
Python
scoreboard/validators/__init__.py
jnovikov/ctfscoreboard
15c2d2ec766a8360c42581e5952c8a18e2b4f7d8
[ "Apache-2.0" ]
null
null
null
scoreboard/validators/__init__.py
jnovikov/ctfscoreboard
15c2d2ec766a8360c42581e5952c8a18e2b4f7d8
[ "Apache-2.0" ]
null
null
null
scoreboard/validators/__init__.py
jnovikov/ctfscoreboard
15c2d2ec766a8360c42581e5952c8a18e2b4f7d8
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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 required by applicable law or ag...
27.672414
74
0.696573
f7a4e88f9033af4f134650f21f29d3cc551543d1
32,889
py
Python
test/unit/test_transports.py
cstockton/py-emit
3c240afb4a6159aa3a9a5930c0f6a606d41370b1
[ "MIT" ]
null
null
null
test/unit/test_transports.py
cstockton/py-emit
3c240afb4a6159aa3a9a5930c0f6a606d41370b1
[ "MIT" ]
null
null
null
test/unit/test_transports.py
cstockton/py-emit
3c240afb4a6159aa3a9a5930c0f6a606d41370b1
[ "MIT" ]
3
2017-08-29T22:59:25.000Z
2020-02-21T19:13:41.000Z
import pytest import threading from time import sleep from datetime import datetime, timedelta from emit import queue from emit.decorators import defer, delay from emit.transports import ( Transport, Worker, Group, ThreadedWorker, WorkerError, WorkerStoppedError) from emit.queue import Queue from emit.utils import ...
29.028244
90
0.592964
f7a4f1341ad26565c5598a16cf0cc09012895956
2,236
py
Python
yggdrasil/communication/transforms/FilterTransform.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
22
2019-02-05T15:20:07.000Z
2022-02-25T09:00:40.000Z
yggdrasil/communication/transforms/FilterTransform.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
48
2019-02-15T20:41:24.000Z
2022-03-16T20:52:02.000Z
yggdrasil/communication/transforms/FilterTransform.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
16
2019-04-27T03:36:40.000Z
2021-12-02T09:47:06.000Z
from yggdrasil.communication.transforms.TransformBase import TransformBase class FilterTransform(TransformBase): r"""Class for applying a filter.""" _transformtype = 'filter' _schema_required = ['filter'] _schema_properties = {'filter': {'$ref': '#/definitions/filter'}} def __init__(self, *args, ...
33.373134
82
0.580948
f7a4fc190ea0102ef2dfea26f80718a0e6e24830
666
py
Python
pycoral/__init__.py
notaJiminLee/pycoral
d04eabadb69b57899c429d808633969444985ff2
[ "Apache-2.0" ]
1
2021-04-30T19:49:01.000Z
2021-04-30T19:49:01.000Z
pycoral/__init__.py
notaJiminLee/pycoral
d04eabadb69b57899c429d808633969444985ff2
[ "Apache-2.0" ]
null
null
null
pycoral/__init__.py
notaJiminLee/pycoral
d04eabadb69b57899c429d808633969444985ff2
[ "Apache-2.0" ]
1
2021-06-03T21:24:40.000Z
2021-06-03T21:24:40.000Z
# Lint as: python3 # Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
37
74
0.753754
f7a4ffc8809470b67ed6382d1115254ac12fe2cd
4,572
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_scale_status.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_scale_status.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_scale_status.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Sca...
31.75
334
0.601706
f7a503cfa6f4bf7504fd61dc42f08f20f83fb939
4,104
py
Python
scripts/aggregator.py
nobu-g/cohesion-analysis
bf2e22c1aff51f96fd2aaef6359839646548c3be
[ "MIT" ]
12
2020-12-25T11:13:17.000Z
2021-12-28T05:19:46.000Z
scripts/aggregator.py
nobu-g/cohesion-analysis
bf2e22c1aff51f96fd2aaef6359839646548c3be
[ "MIT" ]
1
2020-12-25T09:26:26.000Z
2020-12-25T09:26:34.000Z
scripts/aggregator.py
nobu-g/cohesion-analysis
bf2e22c1aff51f96fd2aaef6359839646548c3be
[ "MIT" ]
1
2022-02-25T13:22:47.000Z
2022-02-25T13:22:47.000Z
# MIT License # Copyright (c) 2019 Sebastian Penhouet # GitHub project: https://github.com/Spenhouet/tensorboard-aggregator # ============================================================================== """Aggregates multiple tensorbaord runs""" # python scripts/aggregator.py -r result/CAModel-all-4e-nict-coref-ocz-...
41.04
115
0.670565
f7a5082c89c462b5b80c6f01c1cb08e1046ec2f6
407
py
Python
getdata/helpers/response.py
togetherchicago/chi77
09dab3454596d7f461eed0ae7eb9250308f88581
[ "MIT" ]
2
2018-02-11T02:42:08.000Z
2018-02-26T06:02:07.000Z
getdata/helpers/response.py
togetherchicago/chi77
09dab3454596d7f461eed0ae7eb9250308f88581
[ "MIT" ]
9
2018-11-14T00:59:03.000Z
2022-02-26T06:52:13.000Z
getdata/helpers/response.py
togetherchicago/chi77
09dab3454596d7f461eed0ae7eb9250308f88581
[ "MIT" ]
6
2018-02-05T20:02:40.000Z
2018-03-09T23:20:40.000Z
from django.http import JsonResponse STATUS_OK = 200 STATUS_NOT_FOUND = 404 STATUS_FORBIDDEN = 403 STATUS_BAD_REQUEST = 400 STATUS_SERVER_ERROR = 500 def respondJSON(status, message, data = None, status_code=200): responseData = { 'status': status, 'message': message } if data: responseDat...
25.4375
69
0.722359
f7a521539c66decb6f6e7f07f9a08ba4faa28d80
147
py
Python
tethys_apps/models.py
CI-WATER/django-tethys_apps
da693984c2cd7836deb182fad7824206ef95284e
[ "BSD-2-Clause" ]
null
null
null
tethys_apps/models.py
CI-WATER/django-tethys_apps
da693984c2cd7836deb182fad7824206ef95284e
[ "BSD-2-Clause" ]
null
null
null
tethys_apps/models.py
CI-WATER/django-tethys_apps
da693984c2cd7836deb182fad7824206ef95284e
[ "BSD-2-Clause" ]
null
null
null
from tethys_apps.app_harvester import SingletonAppHarvester # Perform App Harvesting harvester = SingletonAppHarvester() harvester.harvest_apps()
24.5
59
0.857143
f7a5506bce965beed24e4d319b034019659d9e4a
18,208
py
Python
ongoing/prescriptors/prescribe.py
bradyneal/covid-xprize-comp
d515f58b009a0a3e2421bc83e7ac893f3c3a1ece
[ "Apache-2.0" ]
null
null
null
ongoing/prescriptors/prescribe.py
bradyneal/covid-xprize-comp
d515f58b009a0a3e2421bc83e7ac893f3c3a1ece
[ "Apache-2.0" ]
null
null
null
ongoing/prescriptors/prescribe.py
bradyneal/covid-xprize-comp
d515f58b009a0a3e2421bc83e7ac893f3c3a1ece
[ "Apache-2.0" ]
null
null
null
import os import argparse import numpy as np import pandas as pd import time import zipfile import os.path from ongoing.prescriptors.neat_multi.neat_prescriptor_many_objective import Neat as Neat2D from ongoing.prescriptors.neat_13D.neat_prescriptor_many_objective import Neat as Neat13D from ongoing.prescriptors.band...
42.24594
148
0.617091
f7a552cca5002a3494417f39a4e62369d0fb2c6e
3,529
py
Python
mars/serialization/aio.py
deka108/mars
2cd39847c188bb690dd5e2d612a5cbe9f7b21eca
[ "Apache-2.0" ]
1
2021-11-30T12:07:21.000Z
2021-11-30T12:07:21.000Z
mars/serialization/aio.py
deka108/mars
2cd39847c188bb690dd5e2d612a5cbe9f7b21eca
[ "Apache-2.0" ]
null
null
null
mars/serialization/aio.py
deka108/mars
2cd39847c188bb690dd5e2d612a5cbe9f7b21eca
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.675926
74
0.65571
f7a56ab77a6363d7568cf50d5a8c7527db9a6540
4,990
py
Python
embiggen/edge_prediction/edge_prediction_sklearn/random_forest_edge_prediction.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/edge_prediction/edge_prediction_sklearn/random_forest_edge_prediction.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/edge_prediction/edge_prediction_sklearn/random_forest_edge_prediction.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Submodule wrapping Random Forest for edge prediction.""" from typing import Dict, Any from sklearn.ensemble import RandomForestClassifier from embiggen.edge_prediction.edge_prediction_sklearn.decision_tree_edge_prediction import DecisionTreeEdgePrediction from embiggen.edge_prediction.edge_prediction_sklearn.sklearn...
39.92
126
0.635671
f7a58ca0649038226b0725df543ecaeb4d9fd8d1
36,503
py
Python
lib/netty/protobuf/python/google/protobuf/descriptor.py
meghana0507/grpc-java-poll
b35805a7265e5d6d9468ab17bc33b92ed00ecd97
[ "BSD-3-Clause" ]
1
2017-08-16T15:00:29.000Z
2017-08-16T15:00:29.000Z
lib/netty/protobuf/python/google/protobuf/descriptor.py
meghana0507/grpc-java-poll
b35805a7265e5d6d9468ab17bc33b92ed00ecd97
[ "BSD-3-Clause" ]
null
null
null
lib/netty/protobuf/python/google/protobuf/descriptor.py
meghana0507/grpc-java-poll
b35805a7265e5d6d9468ab17bc33b92ed00ecd97
[ "BSD-3-Clause" ]
null
null
null
# Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
38.874334
80
0.711695
f7a58ea0d942cb4830d52c0d83986ad25c69ef9e
29,463
py
Python
one_more_layer_of_stacking/src/models/pd_bninception_v3.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
one_more_layer_of_stacking/src/models/pd_bninception_v3.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
one_more_layer_of_stacking/src/models/pd_bninception_v3.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
# coding: utf-8 # In[1]: def pd_bninception_v3(): import torch model_name = 'pd_bninception_v3' device = 'cuda:0' torch.backends.cudnn.benchmark = True # In[2]: import numpy as np import pandas as pd from sklearn.model_selection import KFold, StratifiedKFold from sklearn.u...
36.464109
4,844
0.658521
f7a59cee838084f7c3c995327448b20c411f99f1
3,652
py
Python
desktopmagic/test/test_screengrab_win32.py
p3rd1x/Desktopmagic
906cbe16f4e6c5fea7121c186ff8c6e7c997b2f7
[ "MIT" ]
49
2015-05-20T08:19:42.000Z
2021-11-12T17:20:40.000Z
desktopmagic/test/test_screengrab_win32.py
p3rd1x/Desktopmagic
906cbe16f4e6c5fea7121c186ff8c6e7c997b2f7
[ "MIT" ]
9
2015-06-17T22:47:21.000Z
2022-03-15T09:00:28.000Z
desktopmagic/test/test_screengrab_win32.py
p3rd1x/Desktopmagic
906cbe16f4e6c5fea7121c186ff8c6e7c997b2f7
[ "MIT" ]
16
2015-12-13T18:34:45.000Z
2021-02-17T13:50:17.000Z
from __future__ import print_function import os try: # Needed for Python 2.6 compatibility import unittest2 as unittest except ImportError: import unittest import tempfile from desktopmagic.screengrab_win32 import getDisplayRects, saveRectToBmp, getRectAsImage, GrabFailed try: # Pillow or PIL from PIL import Im...
30.689076
103
0.728094
f7a5b10961f8e8874760fcfc31104a61f3a1fdf8
12,199
py
Python
src/ftns_Fourier.py
3juholee/project_h2
bf88c10186e1b89ea239c0bf3eda5c411207393b
[ "MIT" ]
null
null
null
src/ftns_Fourier.py
3juholee/project_h2
bf88c10186e1b89ea239c0bf3eda5c411207393b
[ "MIT" ]
null
null
null
src/ftns_Fourier.py
3juholee/project_h2
bf88c10186e1b89ea239c0bf3eda5c411207393b
[ "MIT" ]
null
null
null
from class_gto import * from scipy import * from scipy import linalg from scipy import interpolate import sys import time def extract_sig(Sigma,oms_f_log,oms_f,outputname="SigGW.out"): data = zeros((len(oms_f),3),float) data[:,0] = oms_f Sig = Spline_Complex(Sigma, oms_f_log,oms_f) data[:,1] = real(Sig) data[:,2...
27.662132
94
0.631199
f7a5bfbcb5f33a2ecb6605615732a2cd9e556003
5,640
py
Python
tempest/api/compute/servers/test_disk_config.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/api/compute/servers/test_disk_config.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/api/compute/servers/test_disk_config.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # 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 requ...
42.406015
78
0.668085
f7a5c1012e1913a5a81f190bc265b3a8370258c2
561
py
Python
python/array/1287_element_appearing_more_than_25_percent_in_sorted_array.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/array/1287_element_appearing_more_than_25_percent_in_sorted_array.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/array/1287_element_appearing_more_than_25_percent_in_sorted_array.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution(object): def findSpecialInteger(self, arr): """ :type arr: List[int] :rtype: int """ t = len(arr) // 4 + 1 prev, c = arr[0], 1 for i in range(1, len(arr) - 1): if arr[i] == prev: c += 1 if c >= t: ...
24.391304
66
0.409982
f7a5edcca6a93b16c603678dc522391cafede1c9
3,948
py
Python
support/v8/test/sputnik/testcfg.py
hflw/Blackpyre-Engine
9cc22f002cb9a4f9c7995232ef92518c039be9ab
[ "AFL-3.0" ]
2
2017-11-27T03:30:22.000Z
2017-12-11T11:26:22.000Z
deps/v8/test/sputnik/testcfg.py
dalizard/node
776754c33f347ef4827cf2b9d3cea7c1d46be7b5
[ "MIT" ]
1
2022-03-27T10:33:09.000Z
2022-03-27T10:33:09.000Z
deps/v8/test/sputnik/testcfg.py
dalizard/node
776754c33f347ef4827cf2b9d3cea7c1d46be7b5
[ "MIT" ]
null
null
null
# Copyright 2009 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
34.938053
79
0.724671
f7a611377f53986368b450eb71af7bdf970852db
922
py
Python
setup.py
JKamlah/dinglehopper
40ab1c07747e0bb888a7f06b249835e375235e71
[ "Apache-2.0" ]
null
null
null
setup.py
JKamlah/dinglehopper
40ab1c07747e0bb888a7f06b249835e375235e71
[ "Apache-2.0" ]
null
null
null
setup.py
JKamlah/dinglehopper
40ab1c07747e0bb888a7f06b249835e375235e71
[ "Apache-2.0" ]
null
null
null
from io import open from setuptools import find_packages, setup with open('requirements.txt') as fp: install_requires = fp.read() setup( name='dinglehopper', author='Mike Gerber, The QURATOR SPK Team', author_email='mike.gerber@sbb.spk-berlin.de, qurator@sbb.spk-berlin.de', description='The OCR ev...
31.793103
81
0.669197
f7a6491263554deb9118703d943edd4b569250be
770
py
Python
scrape_single_profile.py
vc-pitch-platform/scrape-linkedin-selenium
6de42ead7cd3c402927ad250a12481000093dabe
[ "MIT" ]
null
null
null
scrape_single_profile.py
vc-pitch-platform/scrape-linkedin-selenium
6de42ead7cd3c402927ad250a12481000093dabe
[ "MIT" ]
null
null
null
scrape_single_profile.py
vc-pitch-platform/scrape-linkedin-selenium
6de42ead7cd3c402927ad250a12481000093dabe
[ "MIT" ]
null
null
null
from scrape_linkedin import ProfileScraper from scrape_linkedin.utils import HEADLESS_OPTIONS import json from dotenv import load_dotenv import os load_dotenv() LI_AT_COOKIE = os.getenv('LI_AT_COOKIE') HEADLESS = True if not LI_AT_COOKIE: raise Exception("Please define the environment variable LI_AT_COOKIE conta...
32.083333
148
0.787013
f7a64d6aacc36d0e83bf91c108d206888dff5865
960
py
Python
core/apps/classes/models.py
yavuzbektas/StudentAnalayze
794f433f650633f646bee5cbe08d04afdbd75e84
[ "MIT" ]
null
null
null
core/apps/classes/models.py
yavuzbektas/StudentAnalayze
794f433f650633f646bee5cbe08d04afdbd75e84
[ "MIT" ]
null
null
null
core/apps/classes/models.py
yavuzbektas/StudentAnalayze
794f433f650633f646bee5cbe08d04afdbd75e84
[ "MIT" ]
null
null
null
from django.db import models from apps.home.models import Profil,Session from django.db.models.fields.related import OneToOneField,ManyToManyField from django.db.models.deletion import CASCADE from django.db.models.fields import CharField, DateField, IntegerField, TextField # Create your models here. class ClassLevels...
33.103448
81
0.734375
f7a67deb0de876620e07bf3a2b7b9718c4ba4569
9,772
py
Python
benchmarking/pytorch_geometric/train_resdel_gnn.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
benchmarking/pytorch_geometric/train_resdel_gnn.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
benchmarking/pytorch_geometric/train_resdel_gnn.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
import argparse import datetime import os import time import dotenv as de import numpy as np de.load_dotenv() import torch import torch.nn as nn from torch_geometric.data import DataLoader from torch_geometric.nn import GCNConv from torch.nn import Linear import torch.nn.functional as F # import atom3d.util.dataty...
37.29771
146
0.61973
f7a690d83c1b48b283a7f544ca7a56c46dd4a43b
1,129
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_extension_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_extension_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_extension_profile_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
36.419355
89
0.635075
f7a69bb619ac1cae8d5a27fcd57bc5e49aded5b7
1,283
py
Python
keystone/common/sql/migrate_repo/versions/062_drop_assignment_role_fk.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/common/sql/migrate_repo/versions/062_drop_assignment_role_fk.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/common/sql/migrate_repo/versions/062_drop_assignment_role_fk.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
35.638889
75
0.73032
f7a6af5f7e0203e55c809054419b077f1b4b45e2
12,776
py
Python
api_app/services/aad_authentication.py
marrobi/AzureTRE
350d8a0b3715d107db332b42089b25a37c9b2990
[ "MIT" ]
null
null
null
api_app/services/aad_authentication.py
marrobi/AzureTRE
350d8a0b3715d107db332b42089b25a37c9b2990
[ "MIT" ]
null
null
null
api_app/services/aad_authentication.py
marrobi/AzureTRE
350d8a0b3715d107db332b42089b25a37c9b2990
[ "MIT" ]
null
null
null
import base64 import logging from typing import List import jwt import requests import rsa from fastapi import Request, HTTPException, status from msal import ConfidentialClientApplication from services.access_service import AccessService, AuthConfigValidationError from core import config from db.errors import Entity...
50.101961
204
0.691453
f7a6cf662c87426100707d316c14ec5fadcf050d
33,140
py
Python
yaksh/evaluator_tests/test_simple_question_types.py
tyochans/online_test
4eb754c2e71922819de7390d1b4993a21763de3e
[ "Python-2.0" ]
1
2022-03-21T11:14:17.000Z
2022-03-21T11:14:17.000Z
yaksh/evaluator_tests/test_simple_question_types.py
tyochans/online_test
4eb754c2e71922819de7390d1b4993a21763de3e
[ "Python-2.0" ]
null
null
null
yaksh/evaluator_tests/test_simple_question_types.py
tyochans/online_test
4eb754c2e71922819de7390d1b4993a21763de3e
[ "Python-2.0" ]
null
null
null
import unittest from datetime import datetime, timedelta from django.utils import timezone from textwrap import dedent import pytz from yaksh.models import User, Profile, Question, Quiz, QuestionPaper,\ AnswerPaper, Answer, Course, IntegerTestCase, FloatTestCase,\ StringTestCase, McqTestCase, ArrangeTestCase ...
39.831731
78
0.517019
f7a6e3c5fb1de8ac1d643fe5ab350b0774cdcbf6
2,454
py
Python
pycryptoki/mechanism/rsa.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
24
2016-08-17T13:52:07.000Z
2019-12-26T17:16:39.000Z
pycryptoki/mechanism/rsa.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
8
2020-08-06T15:19:46.000Z
2022-03-25T17:52:00.000Z
pycryptoki/mechanism/rsa.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
12
2016-11-22T05:43:18.000Z
2020-02-12T17:45:05.000Z
""" RSA-related Mechanism implementations. """ from ctypes import c_void_p, cast, pointer, sizeof from .helpers import Mechanism from ..attributes import to_byte_array from ..cryptoki import CK_ULONG, CK_RSA_PKCS_OAEP_PARAMS, CK_RSA_PKCS_PSS_PARAMS from ..defines import * class RSAPKCSOAEPMechanism(Mechanism): "...
33.616438
81
0.669519
f7a710f78201c8f3ade576b9553c29766379cc4f
6,022
py
Python
certbot_dns_desec/dns_desec.py
akararsse/certbot-dns-desec
7956b508456f0ea72fafca4f96e39fa67b114f79
[ "Apache-2.0" ]
1
2021-04-12T05:29:12.000Z
2021-04-12T05:29:12.000Z
certbot_dns_desec/dns_desec.py
akararsse/certbot-dns-desec
7956b508456f0ea72fafca4f96e39fa67b114f79
[ "Apache-2.0" ]
null
null
null
certbot_dns_desec/dns_desec.py
akararsse/certbot-dns-desec
7956b508456f0ea72fafca4f96e39fa67b114f79
[ "Apache-2.0" ]
null
null
null
import logging import zope.interface from certbot import errors from certbot import interfaces from certbot.plugins import dns_common from certbot.plugins import dns_common_lexicon import requests logger = logging.getLogger(__name__) DESEC_API = "https://desec.io/api/v1" @zope.interface.implementer(interfaces.IA...
35.011628
154
0.615576
f7a746d3caf4808568acf5f5848294d42dbd5c97
4,150
py
Python
nova/tests/test_hacking.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/test_hacking.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/test_hacking.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 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 a...
42.783505
79
0.666265
f7a794ef630be992a477f787f40ad4fb173f38c4
5,478
py
Python
gammapy/datasets/tests/test_flux_points.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/datasets/tests/test_flux_points.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/datasets/tests/test_flux_points.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest import numpy as np from numpy.testing import assert_allclose from astropy.table import Table from gammapy.datasets import Datasets, FluxPointsDataset from gammapy.estimators import FluxPoints from gammapy.modeling import Fit from gammapy.mode...
34.024845
85
0.682913
f7a794f138219ad702622e0b26c5fa87c1f475cb
3,271
py
Python
datasets/imdb.py
liamrahav/TopicBERT-PyTorch
e37e5185cf35d38275543ba1dc656f8496a4587d
[ "MIT" ]
5
2021-04-08T03:25:47.000Z
2022-01-10T05:17:32.000Z
datasets/imdb.py
liamrahav/TopicBERT-PyTorch
e37e5185cf35d38275543ba1dc656f8496a4587d
[ "MIT" ]
1
2021-04-23T13:49:21.000Z
2021-04-25T16:42:01.000Z
datasets/imdb.py
liamrahav/TopicBERT-PyTorch
e37e5185cf35d38275543ba1dc656f8496a4587d
[ "MIT" ]
null
null
null
import os import pickle import torch from torch.utils.data import Dataset from torchtext.datasets import IMDB from torchtext.data import RawField from tqdm import tqdm from datasets import Vocabulary from datasets.utils import TwoWayDict class IMDBDataset(Dataset): def __init__(self, examples, vocab, one_hot=Tr...
36.752809
115
0.590339
f7a7a7dedaffe91838f43d62722f45f449344a04
558
py
Python
apps/user/models/signals/user.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
19
2017-09-13T07:51:58.000Z
2022-03-28T11:04:03.000Z
apps/user/models/signals/user.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
147
2017-09-14T13:45:30.000Z
2022-03-14T15:54:09.000Z
apps/user/models/signals/user.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
5
2019-08-31T13:13:30.000Z
2021-03-26T15:46:38.000Z
from django.contrib.auth import get_user_model from django.core.exceptions import SuspiciousOperation from django.db import models from django.dispatch import receiver @receiver(models.signals.pre_delete, sender=get_user_model()) def prevent_delete_user(instance, **kwargs): instance.is_active = False instance...
34.875
101
0.775986
f7a7be2005736748542f7277b559a51e35d27b16
652
py
Python
build_reference_shapes.py
ligaripash/MuSiCa
f1cd8e77976735dfbae42bef09d372941ecd9bd3
[ "MIT" ]
3
2021-09-16T08:22:04.000Z
2022-01-20T00:38:15.000Z
build_reference_shapes.py
ligaripash/MuSiCa
f1cd8e77976735dfbae42bef09d372941ecd9bd3
[ "MIT" ]
null
null
null
build_reference_shapes.py
ligaripash/MuSiCa
f1cd8e77976735dfbae42bef09d372941ecd9bd3
[ "MIT" ]
null
null
null
import data_provider base_dir = '/root/shared_data/300W_LP/semi_frontal/' out_dir = base_dir + 'experiments/reference_shapes_101/' gt_dir = base_dir + '300W_LP_semi_frontal_101/' bb_dir = base_dir + '300W_LP_semi_frontal_99/300W_LP_semi_frontal_bbs_VRA_new/' pose_dir = base_dir + '300W_LP_semi_frontal_99/300W_LP_semi_...
40.75
100
0.806748
f7a7fdf62865e9043b11a8356b1868630519fdc2
1,708
py
Python
tests/test.py
jjagielka/python-accessor
c420d7d13af76224255cfd1e2564cd48db29bde5
[ "MIT" ]
null
null
null
tests/test.py
jjagielka/python-accessor
c420d7d13af76224255cfd1e2564cd48db29bde5
[ "MIT" ]
null
null
null
tests/test.py
jjagielka/python-accessor
c420d7d13af76224255cfd1e2564cd48db29bde5
[ "MIT" ]
null
null
null
"""Test module.""" import unittest from accessor import accessor as _, flatten tester = [ { 'a': 1, 'b': {'c': 5, 'cc': {'d': 6, 'e': 7}}, 'f': [ {'g': 11, 'h': 12}, {'g': 13, 'h': 14}, ] }, { 'a': 3, 'b': {'c': 8, 'cc': {'d': 9, 'e...
23.081081
95
0.500585
f7a81145e7fca099aad898e33c5792341d6e78b2
1,443
py
Python
bot/__main__.py
Achxy/emoji-alchemist
df718da216d9dbfa82e4f11fe24d82b8508f8c95
[ "MIT" ]
1
2022-01-06T07:55:57.000Z
2022-01-06T07:55:57.000Z
bot/__main__.py
Achxy/emoji-alchemist
df718da216d9dbfa82e4f11fe24d82b8508f8c95
[ "MIT" ]
null
null
null
bot/__main__.py
Achxy/emoji-alchemist
df718da216d9dbfa82e4f11fe24d82b8508f8c95
[ "MIT" ]
null
null
null
""" EmojiWizard is a project licensed under GNU Affero General Public License. Copyright (C) 2022-present Achxy This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License...
30.0625
77
0.749827
f7a811d3b290bcc090e584c48b359a1bbf725fa7
2,255
py
Python
server/fm_server/presence.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
1
2017-10-22T03:15:58.000Z
2017-10-22T03:15:58.000Z
server/fm_server/presence.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
33
2016-06-20T19:43:47.000Z
2022-01-21T23:19:11.000Z
server/fm_server/presence.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
null
null
null
"""Run a service that responds to pings with the address of the rabbitmq broker.""" import logging import socket import time from fm_database.base import get_session from fm_database.models.system import Interface from fm_server.settings import get_config from fm_server.system.info import get_ip_of_interface...
35.234375
111
0.670953
f7a82071f7f669e25e814be6fecf507cb7782dfc
4,236
py
Python
pytorch_impl/libs/garfieldpp/worker.py
c4dt/Garfield
952c124490ba524e81ef45d5d7565ec408697bfc
[ "MIT" ]
null
null
null
pytorch_impl/libs/garfieldpp/worker.py
c4dt/Garfield
952c124490ba524e81ef45d5d7565ec408697bfc
[ "MIT" ]
2
2021-09-13T14:36:10.000Z
2022-01-26T16:33:16.000Z
pytorch_impl/libs/garfieldpp/worker.py
c4dt/Garfield
952c124490ba524e81ef45d5d7565ec408697bfc
[ "MIT" ]
null
null
null
# coding: utf-8 ### # @file worker.py # @author Arsany Guirguis <arsany.guirguis@epfl.ch> # # @section LICENSE # # Copyright (c) 2020 Arsany Guirguis. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
43.670103
110
0.684136
f7a841360d2d6a4ce47e74fcff1334086502f7ba
15,716
py
Python
polymaze/polygrid.py
kobejohn/polymaze
c7ac6049bef547f032c353c5c50e8ead95954a33
[ "MIT" ]
21
2015-02-09T17:36:36.000Z
2021-06-01T19:58:59.000Z
polymaze/polygrid.py
kobejohn/polymaze
c7ac6049bef547f032c353c5c50e8ead95954a33
[ "MIT" ]
1
2017-01-12T13:52:07.000Z
2017-01-12T13:52:07.000Z
polymaze/polygrid.py
kobejohn/polymaze
c7ac6049bef547f032c353c5c50e8ead95954a33
[ "MIT" ]
4
2017-12-07T15:18:19.000Z
2021-06-01T19:59:20.000Z
# coding=utf-8 import math import os import random import PIL.Image import PIL.ImageDraw import PIL.ImageFilter import PIL.ImageFont import PIL.ImageOps from . import shapes as _shapes _SS_DICT = _shapes.supershapes_dict() _EDGES_PER_COMPLEXITY = 400 _DEFAULT_COMPLEXITY = 1.0 _DEFAULT_FONT = os.path.join(os.path.di...
43.057534
109
0.628341
f7a85d1a9d943cae33dc7729c3cc4229b8daacb5
13,617
py
Python
python/smlmlib/simflux.py
qnano/simflux
4f149d4e6c997954ac862cc5a7a404855b2a0be9
[ "MIT" ]
2
2019-12-13T16:24:12.000Z
2021-03-13T04:02:51.000Z
python/smlmlib/simflux.py
qnano/simflux
4f149d4e6c997954ac862cc5a7a404855b2a0be9
[ "MIT" ]
1
2021-01-25T13:32:43.000Z
2021-01-26T06:03:19.000Z
python/smlmlib/simflux.py
qnano/simflux
4f149d4e6c997954ac862cc5a7a404855b2a0be9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import ctypes import numpy as np import matplotlib.pyplot as plt import numpy.ctypeslib as ctl import scipy.stats from enum import Enum from .base import SMLM, NullableFloatArrayType from smlmlib import gaussian from smlmlib.context import Context from smlmlib.psf import PSF from smlmlib.cali...
45.541806
122
0.633473
f7a86d34d7b3550fcbe186b679177a9de7013e5f
6,669
py
Python
gslib/commands/version.py
djnicolson/gsutil
0e629ab55032b799ec728c05a71faf72cd49ff48
[ "Apache-2.0" ]
null
null
null
gslib/commands/version.py
djnicolson/gsutil
0e629ab55032b799ec728c05a71faf72cd49ff48
[ "Apache-2.0" ]
null
null
null
gslib/commands/version.py
djnicolson/gsutil
0e629ab55032b799ec728c05a71faf72cd49ff48
[ "Apache-2.0" ]
1
2020-12-09T15:02:24.000Z
2020-12-09T15:02:24.000Z
# -*- coding: utf-8 -*- # Copyright 2011 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...
33.852792
87
0.687209
f7a89e71fb7a16ddfa9c70911b57847f6b163432
3,574
py
Python
ref/backup/shufflenet.py
BXuan694/basemodel-pytorch
a36c96904580be902e323db17eebbe2ea1f54176
[ "MIT" ]
1
2019-03-18T15:35:34.000Z
2019-03-18T15:35:34.000Z
shufflenet.py
BXuan694/basemodel-pytorch
a36c96904580be902e323db17eebbe2ea1f54176
[ "MIT" ]
null
null
null
shufflenet.py
BXuan694/basemodel-pytorch
a36c96904580be902e323db17eebbe2ea1f54176
[ "MIT" ]
1
2019-03-19T01:06:47.000Z
2019-03-19T01:06:47.000Z
'''ShuffleNet in PyTorch. See the paper "ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices" for more details. ''' import torch import torch.nn as nn import torch.nn.functional as F class ShuffleBlock(nn.Module): def __init__(self, groups): super(ShuffleBlock, self).__init...
32.490909
126
0.606883
f7a8a460f8458afe0d2eb3c1c2d9a742bf0b28eb
2,687
py
Python
tests/models/validators/v1_3_3/jsd_4ca2db1143ebb5d7.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v1_3_3/jsd_4ca2db1143ebb5d7.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v1_3_3/jsd_4ca2db1143ebb5d7.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Delete SP Profile data model. Copyright (c) 2019 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including ...
32.373494
78
0.596204
f7a8c1adeb1563a08237ff9e09891c19c18ef3b8
30,188
py
Python
hvad/manager.py
ojii/django-nani
e75b3e91738bcddf94264df832a13ac47e979394
[ "BSD-3-Clause" ]
1
2015-09-28T10:07:48.000Z
2015-09-28T10:07:48.000Z
hvad/manager.py
ojii/django-nani
e75b3e91738bcddf94264df832a13ac47e979394
[ "BSD-3-Clause" ]
null
null
null
hvad/manager.py
ojii/django-nani
e75b3e91738bcddf94264df832a13ac47e979394
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from django.conf import settings from django.db import models, transaction, IntegrityError from django.db.models.query import (QuerySet, ValuesQuerySet, DateQuerySet, CHUNK_SIZE) from django.db.models.query_utils import Q from django.utils.translation import get_language from hv...
37.454094
113
0.579204
f7a8ccc3b158689494787cdd1baab1c8c4a2ff19
8,447
py
Python
sdk/eventhub/azure-eventhubs/tests/test_send.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/eventhub/azure-eventhubs/tests/test_send.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/eventhub/azure-eventhubs/tests/test_send.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# -- coding: utf-8 -- #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-----------------------------------------------------------------...
29.534965
118
0.64662
f7a8d0e9bf16df370b028700ac4ddf8dde7d6cf8
4,756
py
Python
bindings/python/gi/overrides/Modulemd.py
AarushiSingh09/libmodulemd
707a59858252fe176759f75fe2851212b30f0b87
[ "MIT" ]
1
2019-03-12T05:36:55.000Z
2019-03-12T05:36:55.000Z
bindings/python/gi/overrides/Modulemd.py
AarushiSingh09/libmodulemd
707a59858252fe176759f75fe2851212b30f0b87
[ "MIT" ]
null
null
null
bindings/python/gi/overrides/Modulemd.py
AarushiSingh09/libmodulemd
707a59858252fe176759f75fe2851212b30f0b87
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # This file is part of libmodulemd # Copyright (C) 2016 Red Hat, Inc. # Copyright (C) 2017-2018 Stephen Gallagher # # Fedora-License-Identifier: MIT # SPDX-2.0-License-Identifier: MIT # SPDX-3.0-License-Identifier: MIT # # This program is free software. # For more information on the license, see COP...
27.333333
75
0.606812
f7a8d6c4777086de7664b703a889c5a64b4f79a4
775
py
Python
app/db/syncdb/file_repository.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2021-05-04T08:46:19.000Z
2021-05-04T08:46:19.000Z
app/db/syncdb/file_repository.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
null
null
null
app/db/syncdb/file_repository.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2022-01-28T21:21:32.000Z
2022-01-28T21:21:32.000Z
from bson.objectid import ObjectId from gridfs import GridFS from pymongo.database import Database from app.db.error.non_existent_error import NonExistentError class FileRepository(): def __init__(self, db: Database): self.fs = GridFS(db) def get_file(self, id: ObjectId) -> bytes: if not ...
32.291667
97
0.673548
f7a8dcd03e457e46773e621337a6756e64cfb806
7,398
py
Python
taxamo/test/test_connectivity.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
4
2016-03-14T03:59:08.000Z
2020-06-21T07:58:38.000Z
taxamo/test/test_connectivity.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
2
2016-03-07T13:41:23.000Z
2017-07-11T13:39:44.000Z
taxamo/test/test_connectivity.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
8
2016-01-13T14:32:19.000Z
2021-08-16T11:14:06.000Z
""" Copyright 2014-2021 by Taxamo 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 ...
39.989189
144
0.494458
f7a8e0a9ee87f843dac12a48788eb56d71bbae38
4,383
py
Python
orchid/native_well_adapter.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
orchid/native_well_adapter.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
orchid/native_well_adapter.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2022 Reveal Energy Services, 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 appl...
38.787611
107
0.674424
f7a8f11e3d6c097a460ff598ac4a22b829937eca
4,655
py
Python
exe/process_test_setup.py
Tristanovsk/trios
d84a498f0b562d7a792a4588e4d983be885f24b9
[ "MIT" ]
null
null
null
exe/process_test_setup.py
Tristanovsk/trios
d84a498f0b562d7a792a4588e4d983be885f24b9
[ "MIT" ]
null
null
null
exe/process_test_setup.py
Tristanovsk/trios
d84a498f0b562d7a792a4588e4d983be885f24b9
[ "MIT" ]
null
null
null
import glob import matplotlib.pyplot as plt from scipy.interpolate import interp1d from trios.utils.sunposition import sunpos from trios.utils import utils as u from trios.process import * coordf = glob.glob("/DATA/OBS2CO/data/info/mesures_in_situ.csv")[0] coords = pd.read_csv(coordf, sep=';') awrfiles = glob.glob("...
36.653543
117
0.584748
f7a95352498b770565ab94c454e69a59fcecfb38
274
py
Python
yeoboseyo/__init__.py
foxmask/yeoboseyo-django
8dc1df9373f4fc27502aa9097e3724a87a2b8ce6
[ "BSD-3-Clause" ]
2
2020-11-18T08:18:17.000Z
2021-02-27T13:17:20.000Z
yeoboseyo/__init__.py
foxmask/yeoboseyo-django
8dc1df9373f4fc27502aa9097e3724a87a2b8ce6
[ "BSD-3-Clause" ]
null
null
null
yeoboseyo/__init__.py
foxmask/yeoboseyo-django
8dc1df9373f4fc27502aa9097e3724a87a2b8ce6
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ 여보세요 """ from yeoboseyo.services.joplin import Joplin from yeoboseyo.services.mail import Mail from yeoboseyo.services.mastodon import Mastodon from yeoboseyo.services.reddit import Reddit from yeoboseyo.services import Service __version__ = '0.1.0'
22.833333
48
0.79562
f7a9795f8e9789ac2fe94178c173ee326f1bd081
2,370
py
Python
multi_ear_services/uart/ws.py
Multi-EAR/Multi-EAR-software
50f753a5e6779a0d8283a43c3708bb0cd7cfc3fb
[ "MIT" ]
null
null
null
multi_ear_services/uart/ws.py
Multi-EAR/Multi-EAR-software
50f753a5e6779a0d8283a43c3708bb0cd7cfc3fb
[ "MIT" ]
8
2021-11-19T10:15:55.000Z
2022-01-14T21:10:22.000Z
multi_ear_services/uart/ws.py
Multi-EAR/Multi-EAR-software
50f753a5e6779a0d8283a43c3708bb0cd7cfc3fb
[ "MIT" ]
null
null
null
import asyncio import websockets class MultiEARWebsocket(): """ Class MultiEARWebsocket Wrapper for broadcasting data over the HTML5 Websocket protocol Author: Mathijs Koymans, 2021 """ def __init__(self): """ Def MultiEARWebsocket.__init__ Instantiates the MultiEAR...
23.009709
78
0.608861
f7a992576c2f92d566e12e4aa7d9cc144672b848
5,111
py
Python
yaksh/evaluator_tests/test_scilab_evaluation.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
yaksh/evaluator_tests/test_scilab_evaluation.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
yaksh/evaluator_tests/test_scilab_evaluation.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
1
2015-04-05T09:51:54.000Z
2015-04-05T09:51:54.000Z
from __future__ import unicode_literals import unittest import os import shutil import tempfile from psutil import Process from textwrap import dedent #Local Import from yaksh import grader as gd from yaksh.grader import Grader from yaksh.scilab_code_evaluator import ScilabCodeEvaluator from yaksh.evaluator_tests.test...
33.847682
74
0.50088
f7a9986f0a17f46cd6804957bdfe5a1d885cf165
2,030
py
Python
venv/Lib/site-packages/pyrogram/raw/types/send_message_record_video_action.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/send_message_record_video_action.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/send_message_record_video_action.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.71875
103
0.639901
f7a9a21f5faba3d45321c6efa439d1df6eae951b
766
py
Python
sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.875
114
0.627937
f7a9b01bf86fcdca8b1ade6506d8e1a7c55deca2
2,357
py
Python
examples/hft_example.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
null
null
null
examples/hft_example.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
null
null
null
examples/hft_example.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
1
2020-03-19T13:58:33.000Z
2020-03-19T13:58:33.000Z
# Copyright 2018 The Cornac 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 ...
46.215686
114
0.704285
f7a9b981bf1530b7e280f532bbfee0376ec434a9
1,185
py
Python
deleteFile.py
vascocandeias/maestro-cloud
15e8407a60f77664cb3e6bd083b63bdec52fcbfc
[ "Apache-2.0" ]
null
null
null
deleteFile.py
vascocandeias/maestro-cloud
15e8407a60f77664cb3e6bd083b63bdec52fcbfc
[ "Apache-2.0" ]
null
null
null
deleteFile.py
vascocandeias/maestro-cloud
15e8407a60f77664cb3e6bd083b63bdec52fcbfc
[ "Apache-2.0" ]
null
null
null
import boto3 import json import os IDENTITY_POOL_ID = os.environ['IDENTITY_POOL_ID'] COGNITO_USER_POOL = os.environ['COGNITO_USER_POOL'] S3_BUCKET = os.environ['S3_BUCKET'] dynamodb = boto3.resource('dynamodb') table = dynamodb.Table(os.environ['TABLE']) s3 = boto3.resource('s3') bucket = s3.Bucket(S3_BUCKET) cognit...
23.7
89
0.579747
f7a9d668e5eeb123590c95f0f4b6298371fb2798
371
py
Python
analyticsclient/exceptions.py
annagav/edx-analytics-data-api-client
d26891b53be18490aff4e2d38a5c80efbf00626f
[ "Apache-2.0" ]
null
null
null
analyticsclient/exceptions.py
annagav/edx-analytics-data-api-client
d26891b53be18490aff4e2d38a5c80efbf00626f
[ "Apache-2.0" ]
4
2015-11-19T20:15:39.000Z
2019-03-19T18:15:49.000Z
analyticsclient/exceptions.py
Stanford-Online/edx-analytics-data-api-client
8901e59e02bb30b8b604e274a39439dc3f71aa8b
[ "Apache-2.0" ]
null
null
null
class ClientError(Exception): """Common base class for all client errors.""" pass class NotFoundError(ClientError): """URL was not found.""" pass class InvalidRequestError(ClientError): """The API request was invalid.""" pass class TimeoutError(ClientError): """The API server did no...
16.130435
68
0.67655
f7a9e444ee8858ac7b97eb16eb7dc31f7026c7d4
11,383
py
Python
lab4_ZHANG_ZHENG_YANG/Python/Muscle.py
cvemeki/Computational-motor-control
cf02c77bff44ffdff63630c445b35b657a1d2b6c
[ "Apache-2.0" ]
null
null
null
lab4_ZHANG_ZHENG_YANG/Python/Muscle.py
cvemeki/Computational-motor-control
cf02c77bff44ffdff63630c445b35b657a1d2b6c
[ "Apache-2.0" ]
null
null
null
lab4_ZHANG_ZHENG_YANG/Python/Muscle.py
cvemeki/Computational-motor-control
cf02c77bff44ffdff63630c445b35b657a1d2b6c
[ "Apache-2.0" ]
null
null
null
import numpy as np class Muscle(object): """This class implements the muscle model. The muscle model is based on the hill-type muscle model. """ # Default Muscle Parameters c = np.log(0.05) # pylint: disable=no-member N = 1.5 K = 5.0 tau_act = 0.01 # Time constant for the activation...
36.719355
106
0.589827
f7a9fb181ae593ad462a7a80ad5d4bdeb8800cf8
2,254
py
Python
src/figures/PSD.py
sarahthiele/hush
5a6a67cacd21615c9c02a6c3539c598ddf3da405
[ "MIT" ]
2
2021-12-08T20:12:41.000Z
2022-03-08T21:21:15.000Z
src/figures/PSD.py
sarahthiele/hush
5a6a67cacd21615c9c02a6c3539c598ddf3da405
[ "MIT" ]
5
2021-11-23T21:50:48.000Z
2022-01-05T16:34:32.000Z
src/figures/PSD.py
sarahthiele/hush
5a6a67cacd21615c9c02a6c3539c598ddf3da405
[ "MIT" ]
2
2021-11-23T21:43:31.000Z
2021-12-06T14:07:34.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt import astropy.units as u def func(x, a, b, c, d, e): return a + b * x + c * x ** 2 + d * x ** 3 + e * x ** 4 model = "fiducial" colors = ["#add0ed", "#2b5d87", "#4288c2", "#17334a"] Tobs = 4 * u.yr power_dat_F50 = pd.read_hdf( "../data/...
22.767677
94
0.579858
f7aa00c2bf74c0b22ace096005758e2a5ad8eadd
20,884
py
Python
appengine/third_party/python-adb/adb/adb_protocol.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/third_party/python-adb/adb/adb_protocol.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2022-03-02T09:56:27.000Z
2022-03-02T09:56:27.000Z
appengine/third_party/python-adb/adb/adb_protocol.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Copyright 2014 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 required by applicable law or a...
33.467949
80
0.657393
f7aa2d203d49a67ee4e9bb1e6aef0223e6dda359
8,870
py
Python
apiv2-python/api/client_http.py
databeast/apicore
2ac982e399d98510fc2bafed0aeb55eb0d2cf9c1
[ "BSD-3-Clause" ]
null
null
null
apiv2-python/api/client_http.py
databeast/apicore
2ac982e399d98510fc2bafed0aeb55eb0d2cf9c1
[ "BSD-3-Clause" ]
null
null
null
apiv2-python/api/client_http.py
databeast/apicore
2ac982e399d98510fc2bafed0aeb55eb0d2cf9c1
[ "BSD-3-Clause" ]
null
null
null
import json import sys import asyncio import newrelic.agent from aiohttp import ClientSession, InvalidURL, ClientError, ClientResponseError, ClientTimeout, ContentTypeError, ClientConnectionError, ClientOSError, ClientConnectorError, ClientProxyConnectionError, \ ClientSSLError, ClientConnectorSSLError, ClientConn...
46.684211
203
0.585682
f7aa69b5dd8b8dffbfcf8bdb079fde2e0f956a0e
3,292
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/app/api/requests.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/lib/googlecloudsdk/api_lib/app/api/requests.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/app/api/requests.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2015 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 required by applicable law or ag...
37.409091
80
0.740279
f7aa863b0ab4501b06b1e99bd01009119400accc
1,246
py
Python
project-metrics/metrics_service/apis/codecov_test.py
fossabot/amp-github-apps
38739db67b8888418aa919e3c935d7b41b161e4d
[ "Apache-2.0" ]
null
null
null
project-metrics/metrics_service/apis/codecov_test.py
fossabot/amp-github-apps
38739db67b8888418aa919e3c935d7b41b161e4d
[ "Apache-2.0" ]
null
null
null
project-metrics/metrics_service/apis/codecov_test.py
fossabot/amp-github-apps
38739db67b8888418aa919e3c935d7b41b161e4d
[ "Apache-2.0" ]
null
null
null
"""Tests for Codecov API interface.""" from agithub import base as agithub_base import unittest from unittest import mock import env from apis import codecov class TestCodecovApi(unittest.TestCase): def setUp(self): super(TestCodecovApi, self).setUp() mock.patch.object( env, 'get', side_effect={...
28.976744
79
0.68138
f7aab772891b08aa5785dc5b553ca45ebc55cb9b
193
py
Python
python/hashmap_tree_intersection/hashmap_tree_intersection/tree.py
RoaaMustafa/data-structures-and-algorithms
3a756dd5b3feae338eaac28e9229bc37ad6013e2
[ "MIT" ]
null
null
null
python/hashmap_tree_intersection/hashmap_tree_intersection/tree.py
RoaaMustafa/data-structures-and-algorithms
3a756dd5b3feae338eaac28e9229bc37ad6013e2
[ "MIT" ]
2
2021-08-06T13:44:01.000Z
2021-08-07T10:18:07.000Z
python/hashmap_tree_intersection/hashmap_tree_intersection/tree.py
RoaaMustafa/data-structures-and-algorithms
3a756dd5b3feae338eaac28e9229bc37ad6013e2
[ "MIT" ]
1
2021-12-06T22:12:31.000Z
2021-12-06T22:12:31.000Z
class Node: def __init__(self, value): self.value = value self.left = None self.right = None class BinaryTree: def __init__(self): self.root = None
13.785714
30
0.569948
f7aac8534f210baf90aa8c89b7dfc7f46fa5f90a
245
py
Python
ngsutils/bam/t/test_minorallele.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
57
2015-03-09T01:26:45.000Z
2022-02-22T07:26:01.000Z
ngsutils/bam/t/test_minorallele.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-02-03T23:24:46.000Z
2022-03-16T20:08:10.000Z
ngsutils/bam/t/test_minorallele.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-01-18T16:47:47.000Z
2022-02-22T07:28:09.000Z
#!/usr/bin/env python ''' Tests for bamutils minorallele ''' import unittest class MinorAlleleTest(unittest.TestCase): def testMinor1(self): 'MISSING TEST/EXPERIMENTAL' pass if __name__ == '__main__': unittest.main()
15.3125
41
0.677551
f7ab4e54c54186bbd21e1d07ffab6357914aafed
12,688
py
Python
grafica/PlotlyFigure.py
cbeiraod/grafica
6f47a47f47625b4bdb83dd15e2fcbaa9c8ca2d05
[ "MIT" ]
null
null
null
grafica/PlotlyFigure.py
cbeiraod/grafica
6f47a47f47625b4bdb83dd15e2fcbaa9c8ca2d05
[ "MIT" ]
null
null
null
grafica/PlotlyFigure.py
cbeiraod/grafica
6f47a47f47625b4bdb83dd15e2fcbaa9c8ca2d05
[ "MIT" ]
1
2022-03-25T09:33:45.000Z
2022-03-25T09:33:45.000Z
from .figure import Figure from .traces import Scatter, ErrorBand, Histogram, Heatmap, Contour, KDE import plotly.graph_objects as go import plotly import numpy as np import warnings class PlotlyFigure(Figure): def __init__(self): super().__init__() self.plotly_figure = go.Figure() # Methods that must be overr...
36.251429
325
0.674259
f7ab5981c3ca2819965bbf6b6a239022212750d9
1,234
py
Python
pygame/pong/pong04.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
pygame/pong/pong04.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
pygame/pong/pong04.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Este programa es sólo el comienzo de un ping-pong muy simple pong02.py ''' # Imports generales import pygame import sys from pygame.locals import * # Inicialización entorno pygame.init() # Definiciones de colores BLANCO = (255,255,255) NEGRO = (0,0,0) # Inicializac...
18.984615
61
0.65235
f7ab7e768c27f2fb4d93c730d89e5c0dc6c4c0dc
101
py
Python
tests.py
j3ygh/gong-xi-fa-cai
acbda76742e4dc1c78d22eb30350a5396fa8d133
[ "MIT" ]
6
2022-01-30T05:44:02.000Z
2022-02-01T12:06:28.000Z
tests.py
j3ygithub/gong-xi-fa-cai
acbda76742e4dc1c78d22eb30350a5396fa8d133
[ "MIT" ]
null
null
null
tests.py
j3ygithub/gong-xi-fa-cai
acbda76742e4dc1c78d22eb30350a5396fa8d133
[ "MIT" ]
2
2022-02-03T15:05:59.000Z
2022-03-09T18:16:38.000Z
import doctest import gong_xi_fa_cai if __name__ == "__main__": doctest.testmod(gong_xi_fa_cai)
16.833333
35
0.782178
f7ab82868610bee9657624c4c7a7ed5b149db787
2,589
py
Python
Apps/Engines/Nuke/NukeTools_1.01/Python/ImageMagick.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
17
2017-06-27T04:14:42.000Z
2022-03-07T03:37:44.000Z
Apps/Engines/Nuke/NukeTools_1.01/Python/ImageMagick.py
geoffroygivry/Cyclops-VFX
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2017-06-14T04:17:51.000Z
2018-08-23T20:12:44.000Z
Apps/Engines/Nuke/NukeTools_1.01/Python/ImageMagick.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2019-03-18T06:18:33.000Z
2019-08-14T21:07:53.000Z
# The MIT License (MIT) # # Copyright (c) 2015 Geoffroy Givry # # 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, c...
47.072727
128
0.704519
f7aba244864734941e74d6558717ff6fb996e876
717
py
Python
Encryption Using Dictionary/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
Encryption Using Dictionary/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
Encryption Using Dictionary/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
## Project: 3 # Encryption using Dictionary # i will develop my script by adding decrypthion key mother fuckers حطور الكود بتاعي من التشفير الى فك التشفير keys = { "A":"E", "B":"F", "C":"G", "D":"H", "E":"I", "F":"J", "G":"K", "H":"L", "I":"M", "J":"N", "K":"O", "L":"P", "M":"Q", "N":"R", "O":"S", "P":...
27.576923
110
0.482566
f7abaf22c6249beda27eb6ada29bdb240bb89d39
2,206
py
Python
pyplan/pyplan/activity/service.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
null
null
null
pyplan/pyplan/activity/service.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
null
null
null
pyplan/pyplan/activity/service.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
null
null
null
from pyplan.pyplan.common.baseService import BaseService from pyplan.pyplan.usercompanies.models import UserCompany from .models import Activity, ActivityType from django.conf import settings import os class ActivityService(BaseService): def registerOpenModel(self, file): self.client_session.userCompanyI...
38.701754
127
0.680417
f7abb83acff5bfb512fa544a0f747e510b7c7afe
131
py
Python
iris_sdk/models/maps/dlda_tn_groups.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/maps/dlda_tn_groups.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/maps/dlda_tn_groups.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from iris_sdk.models.maps.base_map import BaseMap class DldaTnGroupsMap(BaseMap): dlda_tn_group = None
18.714286
49
0.778626
f7abd3c984289ac1316e429f94cd17f06eeab2b1
1,215
py
Python
examples/dagman_parentchild_example.py
zdgriffith/pycondor
3daf8ca32eb206988790880e040821e15f1088f8
[ "MIT" ]
null
null
null
examples/dagman_parentchild_example.py
zdgriffith/pycondor
3daf8ca32eb206988790880e040821e15f1088f8
[ "MIT" ]
null
null
null
examples/dagman_parentchild_example.py
zdgriffith/pycondor
3daf8ca32eb206988790880e040821e15f1088f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pycondor if __name__ == "__main__": # Declare the error, output, log, and submit directories for Condor Job error = 'condor/error' output = 'condor/output' log = 'condor/log' submit = 'condor/submit' # Setting up first PyCondor Job job1 = pycondor.Job('exampl...
31.973684
75
0.640329
f7abd55bf3195b47e95f34cdd32a779a894b187c
10,908
py
Python
ThirdParty/Twisted/twisted/internet/test/test_posixprocess.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
ThirdParty/Twisted/twisted/internet/test/test_posixprocess.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
4
2017-02-19T23:58:13.000Z
2019-11-01T15:31:22.000Z
ThirdParty/Twisted/twisted/internet/test/test_posixprocess.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for POSIX-based L{IReactorProcess} implementations. """ import errno, os, sys try: import fcntl except ImportError: platformSkip = "non-POSIX platform" else: from twisted.internet import process platformSkip = None fro...
31.98827
81
0.627246
f7abde8b6e1bdd57a9bbad52f09b81ad921e0498
3,478
py
Python
openstack/tests/functional/baremetal/test_baremetal_port.py
infonova/openstacksdk
3cf6730a71d8fb448f24af8a5b4e82f2af749cea
[ "Apache-2.0" ]
null
null
null
openstack/tests/functional/baremetal/test_baremetal_port.py
infonova/openstacksdk
3cf6730a71d8fb448f24af8a5b4e82f2af749cea
[ "Apache-2.0" ]
null
null
null
openstack/tests/functional/baremetal/test_baremetal_port.py
infonova/openstacksdk
3cf6730a71d8fb448f24af8a5b4e82f2af749cea
[ "Apache-2.0" ]
1
2021-03-12T14:28:28.000Z
2021-03-12T14:28:28.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 # distributed under t...
41.404762
77
0.647211
f7ac00b540b0ddcd2f39d77ecc5af0466c557e43
1,028
py
Python
manage.py
munapaula/vue_ema
5aeaa3da426cc7e9d3c162696b1cacd1acf31211
[ "MIT" ]
null
null
null
manage.py
munapaula/vue_ema
5aeaa3da426cc7e9d3c162696b1cacd1acf31211
[ "MIT" ]
null
null
null
manage.py
munapaula/vue_ema
5aeaa3da426cc7e9d3c162696b1cacd1acf31211
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local') try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure tha...
34.266667
77
0.656615
f7ac0cd2f62a37f706f9c3a7a6cbee7487e57233
2,459
py
Python
db_multitenant/middleware.py
appsembler/django-db-multitenant
dee2541110c2fafae982b405db5ddd77753aeeac
[ "Apache-2.0" ]
null
null
null
db_multitenant/middleware.py
appsembler/django-db-multitenant
dee2541110c2fafae982b405db5ddd77753aeeac
[ "Apache-2.0" ]
null
null
null
db_multitenant/middleware.py
appsembler/django-db-multitenant
dee2541110c2fafae982b405db5ddd77753aeeac
[ "Apache-2.0" ]
1
2019-02-03T03:31:55.000Z
2019-02-03T03:31:55.000Z
# Copyright (c) 2013, mike wakerly <opensource@hoho.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list of c...
44.709091
80
0.754778
f7ac2357ca9836f2f5e109a5ba104a5677b66530
1,916
py
Python
performance/driver/classes/reporter/log.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
2
2018-02-27T18:21:21.000Z
2018-03-16T12:12:12.000Z
performance/driver/classes/reporter/log.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
1
2018-06-25T07:14:41.000Z
2018-06-25T07:14:41.000Z
performance/driver/classes/reporter/log.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
1
2020-06-25T10:37:21.000Z
2020-06-25T10:37:21.000Z
import os import datetime from performance.driver.core.classes import Reporter from performance.driver.core.events import LogLineEvent, TickEvent class LogReporter(Reporter): """ The **Log Lines Reporter** is writing the contents of every ``LogLineEvent`` into a file stream. :: reporters: - class...
25.210526
83
0.656576
f7ac44e6e88f9758b22287def01eb9e7791bcaf3
2,181
py
Python
s100py/tests/s100_test.py
GlenRice-NOAA/s100py
e890ea2a74b4867f19b39cd31d688f368fc7cf1d
[ "CC0-1.0" ]
null
null
null
s100py/tests/s100_test.py
GlenRice-NOAA/s100py
e890ea2a74b4867f19b39cd31d688f368fc7cf1d
[ "CC0-1.0" ]
null
null
null
s100py/tests/s100_test.py
GlenRice-NOAA/s100py
e890ea2a74b4867f19b39cd31d688f368fc7cf1d
[ "CC0-1.0" ]
null
null
null
import pytest import os import datetime import logging import tempfile from s100py import s100 @pytest.fixture(scope="module") def s100_file(): h, fstr = tempfile.mkstemp(".h5", dir=os.path.split(__file__)[0]) os.close(h) # create a S100 file to do basic tests, each test of a specific spec (102, 111) wi...
35.177419
113
0.745071
f7ac4c5db809d1fbfac75ea6a75245cda35751a4
1,312
py
Python
chapter16-coroutine/coro_averager2.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:02.000Z
2019-11-23T05:57:02.000Z
chapter16-coroutine/coro_averager2.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
null
null
null
chapter16-coroutine/coro_averager2.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:43.000Z
2019-11-23T05:57:43.000Z
# -*- coding: utf-8 -*- """ 定义一个求平均值的协程,让它返回一个结果 A coroutine to compute a running average. Testing ``averager`` by itself:: # BEGIN RETURNING_AVERAGER_DEMO1 >>> coro_avg = averager() >>> next(coro_avg) >>> coro_avg.send(10) # <1> >>> coro_avg.send(30) >>> coro_avg.send(6.5) >>> coro_avg.send...
20.825397
57
0.609756
f7ac533aebd2a2fc532a294f5c293857bd73a8fd
37,263
py
Python
habitat_baselines/rl/ppo/ppo_trainer.py
DJongstra/habitat-lab
42c52f65ad0b758ec7d2dd14ec5d3d64f365d24b
[ "MIT" ]
null
null
null
habitat_baselines/rl/ppo/ppo_trainer.py
DJongstra/habitat-lab
42c52f65ad0b758ec7d2dd14ec5d3d64f365d24b
[ "MIT" ]
1
2021-06-11T18:35:31.000Z
2021-06-14T00:15:12.000Z
habitat_baselines/rl/ppo/ppo_trainer.py
DJongstra/habitat-lab
42c52f65ad0b758ec7d2dd14ec5d3d64f365d24b
[ "MIT" ]
3
2021-05-06T22:54:13.000Z
2022-02-09T14:55:15.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. import contextlib import os import random import time from collections import defaultdict, deque from typing import Any,...
34.56679
143
0.55849