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
e8810930d6030363405408d83abb175db509579f
4,898
py
Python
lab21.py
hanna56/Algorithm-lecture
bc471daac89210637ed030b7d79eebbbbdce21d0
[ "MIT" ]
2
2021-07-12T14:36:41.000Z
2021-11-14T04:52:41.000Z
lab21.py
hanna56/Algorithm-lecture
bc471daac89210637ed030b7d79eebbbbdce21d0
[ "MIT" ]
null
null
null
lab21.py
hanna56/Algorithm-lecture
bc471daac89210637ed030b7d79eebbbbdce21d0
[ "MIT" ]
1
2021-10-17T16:09:03.000Z
2021-10-17T16:09:03.000Z
# 이진 탐색 트리에서 노드의 삭제 연산 구현 class Node: def __init__(self, key, data): self.key = key self.data = data self.left = None self.right = None def insert(self, key, data): if key < self.key: if self.left: self.left.insert(key, data) els...
29.684848
66
0.450388
2f835ca18838a72a56575fc6f9415b160e090c5a
70
py
Python
ML/Pytorch/GANs/5. ProGAN/test.py
ZonePG/Machine-Learning-Collection
85f1e761fab85b61d4dbd44285d6483b75ba649c
[ "MIT" ]
9
2021-03-29T13:55:35.000Z
2021-12-24T11:45:39.000Z
ML/Pytorch/GANs/5. ProGAN/test.py
Mubasshir-Ali/Machine-Learning-Collection
ee0b0f0718fac7810bb660713618605c58eb282e
[ "MIT" ]
null
null
null
ML/Pytorch/GANs/5. ProGAN/test.py
Mubasshir-Ali/Machine-Learning-Collection
ee0b0f0718fac7810bb660713618605c58eb282e
[ "MIT" ]
3
2021-05-06T06:53:43.000Z
2021-12-04T13:09:13.000Z
def func(x=1, y=2, **kwargs): print(x, y) print(func(x=3, y=4))
11.666667
29
0.528571
edec2a43d484dffec18cf92c41077d0f89b4ebb6
1,099
py
Python
code/Utils.py
deep-learning-20/hardnet
5320ce948702e9232c2927efa81685889105a25f
[ "MIT" ]
414
2017-06-01T02:18:23.000Z
2022-02-22T06:36:12.000Z
code/Utils.py
hfuzzyc/hardnet
deab7e892468a07fb2cf77d41e38714fa96a6e99
[ "MIT" ]
47
2017-09-21T10:25:54.000Z
2020-12-19T08:56:31.000Z
code/Utils.py
hfuzzyc/hardnet
deab7e892468a07fb2cf77d41e38714fa96a6e99
[ "MIT" ]
88
2017-06-01T05:43:31.000Z
2022-03-18T10:21:56.000Z
import torch import torch.nn.init import torch.nn as nn import cv2 import numpy as np # resize image to size 32x32 cv2_scale36 = lambda x: cv2.resize(x, dsize=(36, 36), interpolation=cv2.INTER_LINEAR) cv2_scale = lambda x: cv2.resize(x, dsize=(32, 32), ...
28.179487
64
0.569609
1768684b1f3fdac4bb9b3da29692ac1a48c49862
65
py
Python
data.py
frollow/check200
76021d3d1993a26de0f60293b9142f96f2284fd5
[ "MIT" ]
null
null
null
data.py
frollow/check200
76021d3d1993a26de0f60293b9142f96f2284fd5
[ "MIT" ]
null
null
null
data.py
frollow/check200
76021d3d1993a26de0f60293b9142f96f2284fd5
[ "MIT" ]
null
null
null
data = [ "https://www.ya.ru", "https://www.ya.ru/333", ]
13
28
0.476923
dca6f71d670c48f278227eeef0c2aed9a277059d
259
py
Python
sdk/python/pulumi_xyz/__init__.py
nickpulumi/pulumi-provider-boilerplate
ca398409550ec8fae2abb677e6f99b4fa91824bc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_xyz/__init__.py
nickpulumi/pulumi-provider-boilerplate
ca398409550ec8fae2abb677e6f99b4fa91824bc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_xyz/__init__.py
nickpulumi/pulumi-provider-boilerplate
ca398409550ec8fae2abb677e6f99b4fa91824bc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .provider import * from .random import *
32.375
80
0.706564
56703b6560f7f1a3aad1e72d08533a2e22ad31de
26,260
py
Python
sdk/python/pulumi_azure_nextgen/sql/latest/get_database.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/sql/latest/get_database.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/sql/latest/get_database.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
50.694981
771
0.707616
ed3fa1c4d49ec8150f79f348fa7f5c4ded34449c
1,984
py
Python
utils/batcher.py
oracleofnj/nmt-attention-tensorflow
6907def51daf3b1b8f0a2b683f220494a7361a75
[ "MIT" ]
2
2018-01-10T03:12:09.000Z
2018-02-20T14:40:28.000Z
utils/batcher.py
oracleofnj/nmt-attention-tensorflow
6907def51daf3b1b8f0a2b683f220494a7361a75
[ "MIT" ]
null
null
null
utils/batcher.py
oracleofnj/nmt-attention-tensorflow
6907def51daf3b1b8f0a2b683f220494a7361a75
[ "MIT" ]
null
null
null
"""Utility functions.""" import tensorflow as tf import numpy as np def ptb_batcher(raw_data, batch_size, num_steps): """Return a batch of data. Equivalent of ptb_producer that I wrote to understand all the TF concepts. """ with tf.name_scope('batcher'): tf_raw_data = tf.convert_to_tensor( ...
30.060606
78
0.558468
569b10c4f500c1fe9ac176f625567dc76b0ebe2b
860
py
Python
src/drone_openai/envs/goto_check.py
Tao-wecorp/drone_cadrl
748a948dc05d78fb91b9ff62a390dd8286342872
[ "MIT" ]
null
null
null
src/drone_openai/envs/goto_check.py
Tao-wecorp/drone_cadrl
748a948dc05d78fb91b9ff62a390dd8286342872
[ "MIT" ]
3
2021-10-06T11:33:38.000Z
2021-10-06T11:33:38.000Z
src/drone_openai/envs/goto_check.py
Tao-wecorp/drone_cadrl
748a948dc05d78fb91b9ff62a390dd8286342872
[ "MIT" ]
1
2020-06-25T11:25:33.000Z
2020-06-25T11:25:33.000Z
#! /usr/bin/env python import gym from gym.spaces import * import rospy import utils.warning_ignore from utils.saved_dir import model_dir, log_dir import parrotdrone_goto from stable_baselines.common.env_checker import check_env class CheckEnv(parrotdrone_goto.ParrotDroneGotoEnv): def __init__(self): r...
24.571429
58
0.680233
15e467b0ad1ddf0c0608cf02d3bce07065df1ffb
11,830
py
Python
openstack/resource.py
sivel/python-openstacksdk
85c6a42c8f983b467c79e5dacdfdc996657250b1
[ "Apache-2.0" ]
1
2015-02-16T09:34:58.000Z
2015-02-16T09:34:58.000Z
openstack/resource.py
sivel/python-openstacksdk
85c6a42c8f983b467c79e5dacdfdc996657250b1
[ "Apache-2.0" ]
null
null
null
openstack/resource.py
sivel/python-openstacksdk
85c6a42c8f983b467c79e5dacdfdc996657250b1
[ "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...
29.501247
79
0.602874
0f134adb92ac87cf556caa07afb3a4a1cb6c1fe7
1,145
py
Python
tests.py
hiway/atum
69097a95dbbcb00c8dc926b31f8f71d556cbe9af
[ "MIT" ]
2
2018-05-08T17:39:44.000Z
2021-08-17T14:45:18.000Z
tests.py
hiway/atum
69097a95dbbcb00c8dc926b31f8f71d556cbe9af
[ "MIT" ]
2
2018-05-08T20:48:46.000Z
2018-05-15T16:50:45.000Z
tests.py
hiway/atum
69097a95dbbcb00c8dc926b31f8f71d556cbe9af
[ "MIT" ]
null
null
null
def test_atum(): from atum import this, that assert this != that assert this == this assert that == that assert that is that assert that is that def test_atum_in_queue(): import sys from atum import user_is_awake if sys.version_info > (3, 0): from queue import Queue els...
22.019231
50
0.678603
430aebbd4ac205e4f2b8508622d4657a5236b7be
60,551
py
Python
instaloader/structures.py
naohide/instaloader
438669b9541711dda627c240c5f5199e0ec4e6cd
[ "MIT" ]
null
null
null
instaloader/structures.py
naohide/instaloader
438669b9541711dda627c240c5f5199e0ec4e6cd
[ "MIT" ]
null
null
null
instaloader/structures.py
naohide/instaloader
438669b9541711dda627c240c5f5199e0ec4e6cd
[ "MIT" ]
null
null
null
import json import lzma import re from base64 import b64decode, b64encode from collections import namedtuple from datetime import datetime from typing import Any, Dict, Iterator, List, Optional, Union from . import __version__ from .exceptions import * from .instaloadercontext import InstaloaderContext from .nodeitera...
40.179827
120
0.610907
0df262bbcfcd646231188dbc5edc9c9ee724567f
3,066
py
Python
silx/gui/widgets/test/test_boxlayoutdockwidget.py
vallsv/silx
834bfe9272af99096faa360e1ad96291bf46a2ac
[ "CC0-1.0", "MIT" ]
1
2017-08-03T15:51:42.000Z
2017-08-03T15:51:42.000Z
silx/gui/widgets/test/test_boxlayoutdockwidget.py
vallsv/silx
834bfe9272af99096faa360e1ad96291bf46a2ac
[ "CC0-1.0", "MIT" ]
7
2016-10-19T09:27:26.000Z
2020-01-24T13:26:56.000Z
silx/gui/widgets/test/test_boxlayoutdockwidget.py
payno/silx
13301e61627f98fa837008250ac74a0627a7a560
[ "CC0-1.0", "MIT" ]
null
null
null
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2018 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal #...
36.5
79
0.686562
20537ace5440c78da2dda3e490f5eaea0899ce8f
5,406
py
Python
litex_boards/platforms/de10lite.py
mhrtmnn/litex-boards
e950a4a588515c69c0eb559f432fa41d35f5eb0c
[ "BSD-2-Clause" ]
null
null
null
litex_boards/platforms/de10lite.py
mhrtmnn/litex-boards
e950a4a588515c69c0eb559f432fa41d35f5eb0c
[ "BSD-2-Clause" ]
null
null
null
litex_boards/platforms/de10lite.py
mhrtmnn/litex-boards
e950a4a588515c69c0eb559f432fa41d35f5eb0c
[ "BSD-2-Clause" ]
null
null
null
# # This file is part of LiteX-Boards. # # Copyright (c) 2019 msloniewski <marcin.sloniewski@gmail.com> # SPDX-License-Identifier: BSD-2-Clause from litex.build.generic_platform import * from litex.build.altera import AlteraPlatform from litex.build.altera.programmer import USBBlaster # IOs --------------------------...
41.267176
118
0.556789
d36246844e15aa04c5f0723093fcbed259a0600b
2,224
py
Python
fix15/fix15.py
davidmreed/fix15
0e76df68f8cc69b7d0937e77dc270e47e1798b0a
[ "MIT" ]
8
2018-07-09T13:39:51.000Z
2020-12-02T00:53:14.000Z
fix15/fix15.py
davidmreed/fix15
0e76df68f8cc69b7d0937e77dc270e47e1798b0a
[ "MIT" ]
null
null
null
fix15/fix15.py
davidmreed/fix15
0e76df68f8cc69b7d0937e77dc270e47e1798b0a
[ "MIT" ]
null
null
null
import csv def to18(idstr): if len(idstr) == 15: # To construct the 18 character Salesforce id, we're going to build a 15-bit checksum # expressed as three alphanumeric characters. # We do this by constructing 3 five-bit indices into the alnum character range # Each five-bit index c...
34.215385
101
0.603867
116b8638d0daabab55dd6cf1bec2eacc49b7c737
471
py
Python
is_core/exceptions/__init__.py
cedel1/django-is-core
39f7f79077da2956c29df6844af84b56d98a17cf
[ "BSD-3-Clause" ]
null
null
null
is_core/exceptions/__init__.py
cedel1/django-is-core
39f7f79077da2956c29df6844af84b56d98a17cf
[ "BSD-3-Clause" ]
null
null
null
is_core/exceptions/__init__.py
cedel1/django-is-core
39f7f79077da2956c29df6844af84b56d98a17cf
[ "BSD-3-Clause" ]
null
null
null
from .response import (ResponseException, HttpRedirectResponseException, HttpBadRequestResponseException, # noqa: F401 HttpUnauthorizedResponseException, HttpForbiddenResponseException, HttpUnsupportedMediaTypeResponseException, HttpMethodNotAllowedResponseException, ...
67.285714
119
0.764331
d8420fe86354a3787b753a6fbe0ff7bc892d7c07
1,417
py
Python
datastructures/disjoint_set.py
patrikkj/algorithms
25799fb57807eca1784202c499fda8a5a94acea3
[ "MIT" ]
null
null
null
datastructures/disjoint_set.py
patrikkj/algorithms
25799fb57807eca1784202c499fda8a5a94acea3
[ "MIT" ]
null
null
null
datastructures/disjoint_set.py
patrikkj/algorithms
25799fb57807eca1784202c499fda8a5a94acea3
[ "MIT" ]
null
null
null
class DisjointSetNode: def __init__(self, parent, rank): self.parent = self if parent is None else parent self.rank = rank class DisjointSet: def __init__(self, *nodes): """Creates a singleton disjoint set for every node provided.""" self.mapping = {} for node in nodes:...
31.488889
77
0.558222
cba1fbb314ae165e46e2560076c74e16d751944c
2,328
py
Python
py/bright_analysis/plots/skyplot.py
cosmodesi/bright_analysis
10ce859259c13f823a153cf1bec29331980a3aaf
[ "BSD-3-Clause" ]
null
null
null
py/bright_analysis/plots/skyplot.py
cosmodesi/bright_analysis
10ce859259c13f823a153cf1bec29331980a3aaf
[ "BSD-3-Clause" ]
5
2017-04-11T10:20:46.000Z
2017-09-22T22:24:43.000Z
py/bright_analysis/plots/skyplot.py
cosmodesi/bright_analysis
10ce859259c13f823a153cf1bec29331980a3aaf
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) import os import time import sys import healpy as hp import desiutil.plots as desiplot import desitarget.io import astropy.io.fits as fits import numpy as np import matplotlib.pyplot as pl from astropy.table i...
33.257143
100
0.606529
3c079025fab9f0758ecaa6b2d90304a467e84454
14,953
py
Python
pysnmp-with-texts/ATT-CNM-SIP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ATT-CNM-SIP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ATT-CNM-SIP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ATT-CNM-SIP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ATT-CNM-SIP-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:31:49 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
149.53
1,385
0.795426
0b89c494ebdab9f4e2e8d15adb54e3e5f607da49
13,505
py
Python
clients/kratos/python/ory_kratos_client/model/identity_credentials.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/ory_kratos_client/model/identity_credentials.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/ory_kratos_client/model/identity_credentials.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
47.720848
446
0.589115
36cf560ad688ba5c509ea0d825db725b79089eac
830
py
Python
O3/_11_regularization/regularization.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
O3/_11_regularization/regularization.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
O3/_11_regularization/regularization.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import LogisticRegression from O3 import prepare_data X_train, X_test, Y_train, Y_test = prepare_data(standardize=True, split=True) weights, params = [], [] for c in np.arange(-5, 5): l...
23.055556
65
0.625301
cf1d786eede859dd5f6a3d1dd092d12457d68896
11,273
py
Python
webapp/graphite/render/views.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
1
2016-07-25T09:45:31.000Z
2016-07-25T09:45:31.000Z
webapp/graphite/render/views.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
null
null
null
webapp/graphite/render/views.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
2
2018-03-19T17:49:03.000Z
2018-12-04T02:14:09.000Z
"""Copyright 2008 Orbitz WorldWide 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...
35.787302
125
0.684556
5d9b51238c25582690e3dde3b84f27c9255ddf9d
61,165
py
Python
pandas/core/dtypes/cast.py
LucasG0/pandas
a85b3b39829f92ff67478a07901227a8b180c0ed
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-02-12T08:12:40.000Z
2021-02-12T08:12:40.000Z
pandas/core/dtypes/cast.py
mohamed-khoualed/pandas
a427887c14e2f6d6bd6141ceae9798e4edaa00f3
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/dtypes/cast.py
mohamed-khoualed/pandas
a427887c14e2f6d6bd6141ceae9798e4edaa00f3
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
""" Routines for casting. """ from __future__ import annotations from contextlib import suppress from datetime import datetime, timedelta from typing import ( TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Set, Sized, Tuple, Type, Union, cast, ) import warnings im...
31.174822
88
0.60878
e906d84694faf6cd83ef783778f0b793d3dee423
2,086
py
Python
morseCode/encrypt.py
jae-yong-2/awesomeScripts
7561f2a6966e51973338db592da9f64cf53245e8
[ "MIT" ]
245
2020-09-24T03:49:20.000Z
2021-01-31T20:09:57.000Z
morseCode/encrypt.py
jae-yong-2/awesomeScripts
7561f2a6966e51973338db592da9f64cf53245e8
[ "MIT" ]
252
2020-09-28T02:19:44.000Z
2021-01-23T09:00:34.000Z
morseCode/encrypt.py
jae-yong-2/awesomeScripts
7561f2a6966e51973338db592da9f64cf53245e8
[ "MIT" ]
219
2020-09-23T18:51:42.000Z
2021-01-23T09:54:40.000Z
import winsound import time def encrypt(msg, MORSE_CODE_DICTIONARY): li1 = list(MORSE_CODE_DICTIONARY.keys()) wordlist = msg.split(" ") EncryptedMessage = list() MorseWord = "" for i in wordlist: for j in i: if j.upper() not in li1: EncryptedMessage.clear() ...
36.596491
68
0.323586
57f10e9e0fee666a8cca8e537150677d0c409494
283
py
Python
Python/swayamvar(mockvita).py
chathu1996/hacktoberfest2020
eaf64ac051709984cde916259e90cb24213b5c2f
[ "MIT" ]
71
2020-10-06T05:53:59.000Z
2021-11-27T03:14:42.000Z
Python/swayamvar(mockvita).py
chathu1996/hacktoberfest2020
eaf64ac051709984cde916259e90cb24213b5c2f
[ "MIT" ]
92
2020-10-05T19:18:14.000Z
2021-10-09T04:35:16.000Z
Python/swayamvar(mockvita).py
chathu1996/hacktoberfest2020
eaf64ac051709984cde916259e90cb24213b5c2f
[ "MIT" ]
572
2020-10-05T20:11:28.000Z
2021-10-10T16:28:29.000Z
leng = int(input()) bride = input() groom = input() left=0 while(True): if(bride[0] == groom[0]): bride = bride[1:] groom = groom[1:] left = 0 else: groom = groom[1:] + groom[0] left += 1 if(left == len(groom)): break answer = len(groom) print(answer)
15.722222
32
0.55477
894c29a3404a60e9fbcc15a31b86a72735bfdd93
2,708
py
Python
tests/ut/python/parallel/test_add_relu_redistribution.py
Rossil2012/mindspore
8a20b5d784b3fec6d32e058581ec56ec553a06a0
[ "Apache-2.0" ]
1
2021-04-23T06:35:18.000Z
2021-04-23T06:35:18.000Z
tests/ut/python/parallel/test_add_relu_redistribution.py
Rossil2012/mindspore
8a20b5d784b3fec6d32e058581ec56ec553a06a0
[ "Apache-2.0" ]
null
null
null
tests/ut/python/parallel/test_add_relu_redistribution.py
Rossil2012/mindspore
8a20b5d784b3fec6d32e058581ec56ec553a06a0
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., 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 agreed to...
30.426966
74
0.701625
ddf04df2a2eb93b77b97880bd1846955ea5d2760
10,010
py
Python
openpeerpower/components/owntracks/__init__.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
openpeerpower/components/owntracks/__init__.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
openpeerpower/components/owntracks/__init__.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Support for OwnTracks.""" from collections import defaultdict import json import logging import re from aiohttp.web import json_response import voluptuous as vol from openpeerpower import config_entries from openpeerpower.components import mqtt from openpeerpower.const import ( ATTR_GPS_ACCURACY, ATTR_LATI...
31.577287
88
0.631169
18ede1966b66242c67ed05d13b4f6c8c09cc3f0b
599
gyp
Python
binding.gyp
Alterdot/argon2d16k-hash-js
6fca8e437c0f50656242ad22da0b874cca9365d7
[ "MIT" ]
null
null
null
binding.gyp
Alterdot/argon2d16k-hash-js
6fca8e437c0f50656242ad22da0b874cca9365d7
[ "MIT" ]
null
null
null
binding.gyp
Alterdot/argon2d16k-hash-js
6fca8e437c0f50656242ad22da0b874cca9365d7
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "argon2d16k", "sources": [ "src/argon2d16k.cpp", "src/argon2/argon2.c", "src/argon2/core.c", "src/argon2/encoding.c", "src/argon2/opt.c", "src/argon2/thread...
26.043478
48
0.337229
7aa8a339aed5ccd867fab6dace86d4992ab64cda
151
py
Python
ctedit/init.py
bubbleboy14/ctedit
9eff315f2d83e0ba8b507d8180bcaa1c43f3b851
[ "MIT" ]
1
2020-08-07T01:40:12.000Z
2020-08-07T01:40:12.000Z
ctedit/init.py
bubbleboy14/ctedit
9eff315f2d83e0ba8b507d8180bcaa1c43f3b851
[ "MIT" ]
null
null
null
ctedit/init.py
bubbleboy14/ctedit
9eff315f2d83e0ba8b507d8180bcaa1c43f3b851
[ "MIT" ]
null
null
null
syms = { ".": ["_edit.py"], "js": ["edit"], "html": ["edit"] } model = { "ctedit.model": ["PageEdit", "Style"] } routes = { "/_edit": "_edit.py" }
13.727273
38
0.476821
a2aa499b94d107d35f39bd7bcd126aab0f04e144
342
py
Python
COCI/COCI_06_C5P2_Natrij.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
null
null
null
COCI/COCI_06_C5P2_Natrij.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
1
2021-10-14T18:26:56.000Z
2021-10-14T18:26:56.000Z
COCI/COCI_06_C5P2_Natrij.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
1
2021-08-06T03:39:55.000Z
2021-08-06T03:39:55.000Z
t1 = list(map(int, input().split(":"))) t2 = list(map(int, input().split(":"))) m1 = t1[0]*3600 + t1[1]*60 + t1[2] m2 = t2[0]*3600 + t2[1]*60 + t2[2] tot = (m2-m1) % 86400 h = (tot//3600) tot -= (tot//3600) * 3600 m = (tot//60) tot -= (tot//60)*60 s = tot fin = f"{h:02d}:{m:02d}:{s:02d}" print(fin if fin != "00:00...
19
47
0.517544
3141ff694289c2aa4f88f66551d488fc3df4c72d
1,412
py
Python
examples/plot_model_performance.py
rlf23240/ExaTrkXPlotting
777ca91e6b0d4389a643bca166c5413f8fc98ca8
[ "MIT" ]
null
null
null
examples/plot_model_performance.py
rlf23240/ExaTrkXPlotting
777ca91e6b0d4389a643bca166c5413f8fc98ca8
[ "MIT" ]
null
null
null
examples/plot_model_performance.py
rlf23240/ExaTrkXPlotting
777ca91e6b0d4389a643bca166c5413f8fc98ca8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np from matplotlib import pyplot as plt # Plotter. from ExaTrkXPlotting import Plotter, PlotConfig # Include performance plots. import ExaTrkXPlots.performance if __name__ == '__main__': fig, ax = plt.subplots(2, 2, figsize=(8, 8), tight_layout=True...
26.148148
79
0.57932
9a412b2a92ed8c6e35e307005c0d4e0e94f52f0b
1,559
py
Python
jdcloud_sdk/services/ipanti/apis/ModifyCertInfoRequest.py
jdcloud-demo/jdcloud-sdk-python
fddc2af24031c597948b8b8091978ac7e01a2695
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/ipanti/apis/ModifyCertInfoRequest.py
jdcloud-demo/jdcloud-sdk-python
fddc2af24031c597948b8b8091978ac7e01a2695
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/ipanti/apis/ModifyCertInfoRequest.py
jdcloud-demo/jdcloud-sdk-python
fddc2af24031c597948b8b8091978ac7e01a2695
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
32.479167
118
0.714561
9dfbf081d6c8c4b93b7fee508b912ade99541025
962
py
Python
src/mapping/rows/row_relation.py
zaxmks/demo-data-compliance-service
372e612c570aaf5b512bec17627f825e880add67
[ "CNRI-Python", "CECILL-B" ]
null
null
null
src/mapping/rows/row_relation.py
zaxmks/demo-data-compliance-service
372e612c570aaf5b512bec17627f825e880add67
[ "CNRI-Python", "CECILL-B" ]
null
null
null
src/mapping/rows/row_relation.py
zaxmks/demo-data-compliance-service
372e612c570aaf5b512bec17627f825e880add67
[ "CNRI-Python", "CECILL-B" ]
null
null
null
from dataclasses import dataclass from typing import Any, Dict, Optional @dataclass class ValueMatchDescription: value_match_score: float normalized_column_weight: float @dataclass class RowMatchDescription: # str is target field name match_dict: Dict[str, ValueMatchDescription] @dataclass class R...
24.05
59
0.643451
959f276667eae88735176db54dc4f99f14fa4412
1,557
py
Python
pecli/main.py
kirk-sayre-work/pecli
4d0f6e51f7ba029f818432ebc536b33322c343a6
[ "MIT" ]
null
null
null
pecli/main.py
kirk-sayre-work/pecli
4d0f6e51f7ba029f818432ebc536b33322c343a6
[ "MIT" ]
null
null
null
pecli/main.py
kirk-sayre-work/pecli
4d0f6e51f7ba029f818432ebc536b33322c343a6
[ "MIT" ]
null
null
null
import os import sys import argparse import pefile from pecli.plugins.base import Plugin def init_plugins(): plugin_dir = os.path.dirname(os.path.realpath(__file__)) + '/plugins' plugin_files = [x[:-3] for x in os.listdir(plugin_dir) if x.endswith(".py")] sys.path.insert(0, plugin_dir) for plugin in pl...
28.833333
80
0.588953
7edd79b5995eae48c92d50b83c036ba170cb430e
32
py
Python
utils/__init__.py
chuajiesheng/twitter-sentiment-analysis
7617243c953a20c517a737c79fe0f54e55aef140
[ "Apache-2.0" ]
null
null
null
utils/__init__.py
chuajiesheng/twitter-sentiment-analysis
7617243c953a20c517a737c79fe0f54e55aef140
[ "Apache-2.0" ]
null
null
null
utils/__init__.py
chuajiesheng/twitter-sentiment-analysis
7617243c953a20c517a737c79fe0f54e55aef140
[ "Apache-2.0" ]
null
null
null
from utils.reader import Reader
16
31
0.84375
ef9c96929a09c34e788a2e8bc1dfa2456b586e7e
24,660
py
Python
model/data_loader.py
MeganTj/CADA-VAE-PyTorch
4eff7867e990d1145332d0a50d2d52b75e404409
[ "MIT" ]
null
null
null
model/data_loader.py
MeganTj/CADA-VAE-PyTorch
4eff7867e990d1145332d0a50d2d52b75e404409
[ "MIT" ]
null
null
null
model/data_loader.py
MeganTj/CADA-VAE-PyTorch
4eff7867e990d1145332d0a50d2d52b75e404409
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import numpy as np import scipy.io as sio import torch from sklearn import preprocessing import sys import os from pathlib import Path import pdb import pickle import copy import sys, os sys.path.append(os.path.join(os.path.dirname("__file__"), '..')) sys.path.append(o...
41.1
173
0.583374
4c9415c25238c95895b6bb3aa1722ac9080d010d
30,664
py
Python
joshua/joshua_model.py
sfc-gh-gzhu/fdb-joshua
25efd3b0ec24c77b192cdfccd421f87639184d64
[ "Apache-2.0" ]
null
null
null
joshua/joshua_model.py
sfc-gh-gzhu/fdb-joshua
25efd3b0ec24c77b192cdfccd421f87639184d64
[ "Apache-2.0" ]
null
null
null
joshua/joshua_model.py
sfc-gh-gzhu/fdb-joshua
25efd3b0ec24c77b192cdfccd421f87639184d64
[ "Apache-2.0" ]
null
null
null
# # joshua_model.py # # This source file is part of the FoundationDB open source project # # Copyright 2013-2020 Apple Inc. and the FoundationDB project 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 ...
33.920354
121
0.62999
e00b690a45742a76833387fe86285dc2d291935c
1,693
py
Python
checks.d/kernel.py
borgified/datadog-checks
77331df7a53bb8c0ba7193fd44bf863f60ad8646
[ "MIT" ]
100
2016-07-23T02:50:03.000Z
2020-09-26T09:26:06.000Z
checks.d/kernel.py
skatlapa/datadog-checks
b62d44e9ad5557757e14caf2fe58aec2804696fa
[ "MIT" ]
71
2016-07-27T13:24:03.000Z
2021-01-07T23:27:09.000Z
checks.d/kernel.py
skatlapa/datadog-checks
b62d44e9ad5557757e14caf2fe58aec2804696fa
[ "MIT" ]
25
2016-09-27T22:58:25.000Z
2020-05-08T07:41:26.000Z
import subprocess from checks import AgentCheck class Veneur(AgentCheck): KERNEL_METRIC_NAME = 'linux.kernel' ERROR_METRIC_NAME = 'linux.kernel.agent_check.errors_total' def get_kernel_version(self): return subprocess.check_output(['uname', '-r']).strip() def get_linux_release(self): ...
29.701754
70
0.572947
ac8d94f13746c9e3a4ab00b3e1444b164ceaf184
870
py
Python
defoe/hansard/setup.py
akrause2014/defoe-1
ca4247cdd8007791ae2692dabc6fe58dfcacc906
[ "MIT" ]
null
null
null
defoe/hansard/setup.py
akrause2014/defoe-1
ca4247cdd8007791ae2692dabc6fe58dfcacc906
[ "MIT" ]
null
null
null
defoe/hansard/setup.py
akrause2014/defoe-1
ca4247cdd8007791ae2692dabc6fe58dfcacc906
[ "MIT" ]
null
null
null
""" Given a filename create a defoe.papers.issue.Issue. """ from defoe.hansard.debates import Hansard def filename_to_object(filename): """ Given a filename create a defoe.hansard.Hansard. If an error arises during its creation this is caught and returned as a string. :param filename: filename ...
29
95
0.666667
1279782634c31f55ec57bef82aff0235af9bf503
4,836
py
Python
runtime_costs.py
cassiersg/lrpm-bounder
248d959dd5dde148cff7525a42650a7dd0333c5f
[ "Apache-2.0" ]
null
null
null
runtime_costs.py
cassiersg/lrpm-bounder
248d959dd5dde148cff7525a42650a7dd0333c5f
[ "Apache-2.0" ]
null
null
null
runtime_costs.py
cassiersg/lrpm-bounder
248d959dd5dde148cff7525a42650a7dd0333c5f
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python3 # Copyright 2018 Gaëtan Cassiers # # 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 ...
35.822222
94
0.71464
0776a59350e127e15d8388d5cbeae31eefcfac46
19,170
py
Python
tagger_ui/tk_data_annotator_ui.py
RobertMcCarter/animal-finder
5ac839a65df62ab312e440ce43416727492e84d8
[ "MIT" ]
null
null
null
tagger_ui/tk_data_annotator_ui.py
RobertMcCarter/animal-finder
5ac839a65df62ab312e440ce43416727492e84d8
[ "MIT" ]
null
null
null
tagger_ui/tk_data_annotator_ui.py
RobertMcCarter/animal-finder
5ac839a65df62ab312e440ce43416727492e84d8
[ "MIT" ]
null
null
null
""" A Tkinter UI that allows me to scroll through the images and select regions on the images that should be tagged by the solution. """ # pyright: reportUnknownVariableType=false, reportUnknownMemberType=false import os import tkinter as tk from tkinter import filedialog from typing import Union import threading imp...
38.187251
122
0.593532
05f388a2dcbf2369d6e818e7a01146d79a586a38
1,196
py
Python
appengine/standard/hello_world/main.py
eldar996/gcloud
ff6d2b940b7d70ed74225987b2aa82a0044a21dc
[ "Apache-2.0" ]
null
null
null
appengine/standard/hello_world/main.py
eldar996/gcloud
ff6d2b940b7d70ed74225987b2aa82a0044a21dc
[ "Apache-2.0" ]
null
null
null
appengine/standard/hello_world/main.py
eldar996/gcloud
ff6d2b940b7d70ed74225987b2aa82a0044a21dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
28.47619
74
0.695652
9f665dd1530125d5e6858c6827066cb6713d53b3
10,121
py
Python
frustum_pointnet/datasets/kitti/frustum.py
anurag1paul/pseudo_lidar
02faf327efd43c986629d0ea797b058e464c05aa
[ "MIT" ]
1
2020-03-19T21:30:57.000Z
2020-03-19T21:30:57.000Z
frustum_pointnet/datasets/kitti/frustum.py
anurag1paul/pseudo_lidar
02faf327efd43c986629d0ea797b058e464c05aa
[ "MIT" ]
null
null
null
frustum_pointnet/datasets/kitti/frustum.py
anurag1paul/pseudo_lidar
02faf327efd43c986629d0ea797b058e464c05aa
[ "MIT" ]
1
2022-01-26T03:36:42.000Z
2022-01-26T03:36:42.000Z
import os import pickle import numpy as np from torch.utils.data import Dataset from datasets.kitti.attributes import kitti_attributes as kitti from utils.container import G class FrustumKitti(dict): def __init__(self, root, num_points, split=None, classes=('Car', 'Pedestrian', 'Cyclist'), num_...
51.902564
121
0.645193
09366ee83c84cf93071b97c95caf65871177f7a6
9,570
py
Python
vimdoctool.py
NOPNOPNOOP/vim-tools
3096d2478829bbc95ad1a2351d22a2f3daa4ab85
[ "Vim", "MIT" ]
29
2015-03-22T12:33:50.000Z
2021-12-31T09:24:59.000Z
vimdoctool.py
NOPNOPNOOP/vim-tools
3096d2478829bbc95ad1a2351d22a2f3daa4ab85
[ "Vim", "MIT" ]
5
2015-04-03T21:11:40.000Z
2019-10-23T21:44:24.000Z
vimdoctool.py
NOPNOPNOOP/vim-tools
3096d2478829bbc95ad1a2351d22a2f3daa4ab85
[ "Vim", "MIT" ]
7
2015-04-03T14:04:28.000Z
2021-09-15T18:02:02.000Z
#!/usr/bin/env python # Extract & combine function documentation from Vim scripts. # # Author: Peter Odding <peter@peterodding.com> # Last Change: April 2, 2015 # URL: http://peterodding.com/code/vim/tools/ """ Usage: vim-doc-tool MARKDOWN_FILE Extract the public functions and related comments (assumed to contain te...
37.237354
105
0.657262
682be765124df5265243451331625797ed963364
2,226
py
Python
modules/py/pkgs/QNLP/encoding/simple.py
ICHEC/QNLP
2966c7f71e6979c7ddef62520c3749cf6473fabe
[ "Apache-2.0" ]
29
2020-04-13T04:40:35.000Z
2021-12-17T11:21:35.000Z
modules/py/pkgs/QNLP/encoding/simple.py
ICHEC/QNLP
2966c7f71e6979c7ddef62520c3749cf6473fabe
[ "Apache-2.0" ]
6
2020-03-12T17:40:00.000Z
2021-01-20T12:15:08.000Z
modules/py/pkgs/QNLP/encoding/simple.py
ICHEC/QNLP
2966c7f71e6979c7ddef62520c3749cf6473fabe
[ "Apache-2.0" ]
9
2020-09-28T05:00:30.000Z
2022-03-04T02:11:49.000Z
from .encoder_base import EncoderBase class SimpleEncoder(EncoderBase): """ This cyclic encoder is the simplest (and currently the only used) encoding scheme to ensure equal Hamming distances between items separated by n indices. Not very efficient in use of qubits, but simple enough to implement. ...
40.472727
108
0.626235
b2d12d33a99eee041365fa40fb6d2fa5cf2c712d
475
py
Python
validation/conformations/techproof/merge_trajectories.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
10
2015-03-07T09:00:06.000Z
2019-01-25T15:00:59.000Z
validation/conformations/techproof/merge_trajectories.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
6
2015-01-08T11:17:14.000Z
2018-10-08T15:17:32.000Z
validation/conformations/techproof/merge_trajectories.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
11
2015-03-02T11:13:24.000Z
2022-02-22T16:21:56.000Z
import sys STRIDE = 6 END = 104 END_INCLUSIVE = END+1 for i in range(0,END_INCLUSIVE, STRIDE): file_range = (i,min(END_INCLUSIVE,i+STRIDE)) print "Merging %d -> %d."%file_range output_handler = open("merged/%d_%d.pdb"%(file_range[0],file_range[1]-1),"w") for i in range(*file_range): file_handle...
27.941176
81
0.642105
da8d03545ddd37c7dde8e52f17bd1c9b63c53e05
30,948
py
Python
plugins/m/sphinx.py
marinjurjevic/m.css
e6eff549fb5edeabacf01369d6b845a2a59c2ebe
[ "MIT" ]
8
2021-12-06T16:17:17.000Z
2022-03-05T09:23:45.000Z
plugins/m/sphinx.py
marinjurjevic/m.css
e6eff549fb5edeabacf01369d6b845a2a59c2ebe
[ "MIT" ]
11
2021-01-21T08:32:35.000Z
2021-06-29T16:13:13.000Z
plugins/m/sphinx.py
marinjurjevic/m.css
e6eff549fb5edeabacf01369d6b845a2a59c2ebe
[ "MIT" ]
1
2021-11-02T02:06:41.000Z
2021-11-02T02:06:41.000Z
#!/usr/bin/env python # # This file is part of m.css. # # Copyright © 2017, 2018, 2019, 2020 Vladimír Vondruš <mosra@centrum.cz> # # 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 w...
43.650212
279
0.647893
1915cebb44d196ab3375059cc4bf6d169ad1c32e
619,286
py
Python
qtdialogs.py
isabella232/BitcoinArmory
53c6f0b652aeb5774862952f729b8216664a1779
[ "MIT" ]
1
2020-10-02T13:49:19.000Z
2020-10-02T13:49:19.000Z
qtdialogs.py
pryds/BitcoinArmory
53c6f0b652aeb5774862952f729b8216664a1779
[ "MIT" ]
1
2021-06-11T12:22:09.000Z
2021-06-11T12:22:09.000Z
qtdialogs.py
isabella232/BitcoinArmory
53c6f0b652aeb5774862952f729b8216664a1779
[ "MIT" ]
1
2021-06-11T09:40:38.000Z
2021-06-11T09:40:38.000Z
# -*- coding: UTF-8 -*- ################################################################################ # # # Copyright (C) 2011-2015, Armory Technologies, Inc. # # Distributed under the GNU Affero General Public Li...
40.887759
139
0.598281
5ab38fa732609ac056b7b4af5a3d3bfa333cda34
648
py
Python
hashing_utilities.py
fgbruna/HashCalc
f96a2310a10f4b14aa1c1a5f5f81567b7b86e437
[ "MIT" ]
null
null
null
hashing_utilities.py
fgbruna/HashCalc
f96a2310a10f4b14aa1c1a5f5f81567b7b86e437
[ "MIT" ]
null
null
null
hashing_utilities.py
fgbruna/HashCalc
f96a2310a10f4b14aa1c1a5f5f81567b7b86e437
[ "MIT" ]
null
null
null
import hashlib import os def md5(fname): hash_md5 = hashlib.md5() with open(fname, "rb") as f: for chunk in iter(lambda: f.read(4096), b""): hash_md5.update(chunk) return hash_md5.hexdigest() def sha1(fname): hash_sha1 = hashlib.sha1() with open(fname, "rb") as f: for...
24
53
0.614198
75f8c72dca44f416c8d9400d7ad6a97a91b426aa
1,171
py
Python
upload/DSA_Main.py
lxl0928/info_safety_class_project
6c40535cd901d8de92a2525ba0484614cf70a4c4
[ "Apache-2.0" ]
1
2019-01-10T03:20:35.000Z
2019-01-10T03:20:35.000Z
upload/DSA_Main.py
lxl0928/info_safety_class_project
6c40535cd901d8de92a2525ba0484614cf70a4c4
[ "Apache-2.0" ]
null
null
null
upload/DSA_Main.py
lxl0928/info_safety_class_project
6c40535cd901d8de92a2525ba0484614cf70a4c4
[ "Apache-2.0" ]
null
null
null
class _DSAKey(object): def size(self): return size(self.p) - 1 def has_private(self): return hasattr(self, 'x') def _sign(self, m, k): if not self.has_private(): raise TypeError("No private key") if not (1 < k < self.q): raise ValueError("k is not be...
28.560976
81
0.509821
d7699d7f5adf06503b4971085d1bc83ebf714422
1,190
py
Python
examples/mujoco/train_ppo.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
56
2020-10-01T02:55:47.000Z
2022-03-07T08:00:25.000Z
examples/mujoco/train_ppo.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
4
2020-10-02T03:52:29.000Z
2021-10-02T03:59:00.000Z
examples/mujoco/train_ppo.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
10
2020-12-21T08:21:02.000Z
2022-01-11T03:36:20.000Z
import argparse import os from datetime import datetime from rljax.algorithm import PPO from rljax.env import make_continuous_env from rljax.trainer import Trainer def run(args): env = make_continuous_env(args.env_id) env_test = make_continuous_env(args.env_id) algo = PPO( num_agent_steps=args.n...
27.045455
86
0.665546
c97f93371bf257f4221d2fcc0e83d6ecff15e7bc
41,561
py
Python
tensorflow/contrib/distribute/python/keras_backward_compat_test.py
nathanielchu/tensorflow
92d160f610a6af39f644a265693cf16804ef78a9
[ "Apache-2.0" ]
4
2021-02-01T01:01:11.000Z
2021-07-21T15:22:20.000Z
tensorflow/contrib/distribute/python/keras_backward_compat_test.py
nathanielchu/tensorflow
92d160f610a6af39f644a265693cf16804ef78a9
[ "Apache-2.0" ]
8
2019-07-08T10:09:18.000Z
2019-09-26T20:55:43.000Z
tensorflow/contrib/distribute/python/keras_backward_compat_test.py
nathanielchu/tensorflow
92d160f610a6af39f644a265693cf16804ef78a9
[ "Apache-2.0" ]
5
2020-12-22T10:17:47.000Z
2021-05-06T14:14:52.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.446809
92
0.676644
ff798f896d979c409acbf61c13c11fecfcc33dca
2,337
py
Python
pxng/colors.py
pgdr/pixelengine
afeb2712b4cd4197f3dc1f7073c919d187068230
[ "BSD-2-Clause" ]
3
2020-10-09T16:21:46.000Z
2021-06-14T11:57:02.000Z
pxng/colors.py
pgdr/pixelengine
afeb2712b4cd4197f3dc1f7073c919d187068230
[ "BSD-2-Clause" ]
null
null
null
pxng/colors.py
pgdr/pixelengine
afeb2712b4cd4197f3dc1f7073c919d187068230
[ "BSD-2-Clause" ]
1
2020-10-21T11:06:27.000Z
2020-10-21T11:06:27.000Z
WHITE = (1, 1, 1) LIGHT_GREY = (0.75, 0.75, 0.75) GREY = (0.5, 0.5, 0.5) DARK_GREY = (0.25, 0.25, 0.25) BLACK = (0, 0, 0) RED_PASTEL = (1, 0.75, 0.75) LIGHT_RED = (1, 0.5, 0.5) RED = (1, 0, 0) DARK_RED = (0.5, 0, 0) VERY_DARK_RED = (0.25, 0, 0) GREEN_PASTEL = (0.75, 1, 0.75) LIGHT_GREEN = (0.5, 1, 0.5) GREEN = (0, 1,...
29.2125
103
0.646555
b49a04fffed2cad26ed27a8f3436acc16f9cf2c8
158
py
Python
telegram_bot/handlers/users/__init__.py
Oorzhakau/TeamForce_bot
b8037d53b228bc2ab5149fa67dde6bea17f25a65
[ "MIT" ]
null
null
null
telegram_bot/handlers/users/__init__.py
Oorzhakau/TeamForce_bot
b8037d53b228bc2ab5149fa67dde6bea17f25a65
[ "MIT" ]
null
null
null
telegram_bot/handlers/users/__init__.py
Oorzhakau/TeamForce_bot
b8037d53b228bc2ab5149fa67dde6bea17f25a65
[ "MIT" ]
null
null
null
from . import ( about_us, cancel, distribution, help, info, link, menu, messages, select_messages, start, tags, )
11.285714
20
0.531646
a2c4355cc64272845ddf433b5d6ce14f7122351d
202
py
Python
Mundo 1/ex025.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
1
2021-01-06T22:12:30.000Z
2021-01-06T22:12:30.000Z
Mundo 1/ex025.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
null
null
null
Mundo 1/ex025.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
null
null
null
# PROCURANDO UMA STRING DENTRO DA OUTRA nome = str(input('Digite seu nome: ').strip().lower()) print("silva" in nome.split()) # DESSA MANEIRA EVITA-SE QUE SILVA SEJA CONFUNDIDO DENTRO DE OUTRA STRING.
40.4
105
0.732673
222fd7f6758c3b4b2f8fa256fcd6f02f012fdd9c
5,733
py
Python
extension.py
malucart/TimingAttack
9c5145314cceccf1fe5512a246c7162ca03b162e
[ "MIT" ]
1
2020-08-06T01:57:51.000Z
2020-08-06T01:57:51.000Z
extension.py
malucart/TimingAttack
9c5145314cceccf1fe5512a246c7162ca03b162e
[ "MIT" ]
null
null
null
extension.py
malucart/TimingAttack
9c5145314cceccf1fe5512a246c7162ca03b162e
[ "MIT" ]
null
null
null
""" Name: Timing Attack Date: 7/31/2020 Author: inbarmada & louisa Description: TimingAttack is open source plugin to help pentesters for guessing if a username is valid or not by how long the system takes to respond for a success and a fail authenticationto. It means that...
36.515924
131
0.687075
acbcf6295f1c39dc244df07f68ef8d19168d37fe
194
py
Python
common.py
MashaIO/dlmladv
5b29980fe747c9930d00809e744f7ce7d14361bf
[ "MIT" ]
null
null
null
common.py
MashaIO/dlmladv
5b29980fe747c9930d00809e744f7ce7d14361bf
[ "MIT" ]
null
null
null
common.py
MashaIO/dlmladv
5b29980fe747c9930d00809e744f7ce7d14361bf
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt pd.set_option("display.max_rows", 13) pd.set_option('display.max_columns', 11) pd.set_option("display.latex.repr", False)
24.25
42
0.783505
00dab61229d1235e3140fac4ad1a8b1ac45fa3dd
883
py
Python
scripts/fundamentals/codewars_counting_sheep.py
duttashi/learnpy
c08b76b173b06d66187e51a6939d55d5dd12cb5a
[ "MIT" ]
null
null
null
scripts/fundamentals/codewars_counting_sheep.py
duttashi/learnpy
c08b76b173b06d66187e51a6939d55d5dd12cb5a
[ "MIT" ]
77
2019-04-20T06:54:19.000Z
2022-01-16T08:15:20.000Z
scripts/fundamentals/codewars_counting_sheep.py
duttashi/learnpy
c08b76b173b06d66187e51a6939d55d5dd12cb5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Sep 7 07:03:09 2020 Consider an array/list of sheep where some sheep may be missing from their place. We need a function that counts the number of sheep present in the array Reference: https://www.codewars.com/kata/54edbc7200b811e956000556/train/python @author: Ashish...
26.757576
155
0.565119
a4c1483f41c24b4efddd670486c8679db8caec5f
63
py
Python
djclick/test/testprj/testprj/settings_alt.py
disinformation-index/django-click
3584bff81cb7891a1aa2d7fe49c1db501f5b0e84
[ "MIT" ]
null
null
null
djclick/test/testprj/testprj/settings_alt.py
disinformation-index/django-click
3584bff81cb7891a1aa2d7fe49c1db501f5b0e84
[ "MIT" ]
null
null
null
djclick/test/testprj/testprj/settings_alt.py
disinformation-index/django-click
3584bff81cb7891a1aa2d7fe49c1db501f5b0e84
[ "MIT" ]
null
null
null
from .settings import * # NOQA SETTINGS_NAME = 'alternative'
15.75
31
0.730159
4c19b76f69c83e01f97dc2b2f2e1844f26fd9c31
13,403
py
Python
tornado_jsonapi/resource.py
lockie/tornado-jsonapi
f1cda34d4384fd47c03353c485ee6555aa3eafc2
[ "MIT" ]
10
2016-04-08T02:18:39.000Z
2020-06-09T09:15:32.000Z
tornado_jsonapi/resource.py
lockie/tornado-jsonapi
f1cda34d4384fd47c03353c485ee6555aa3eafc2
[ "MIT" ]
4
2020-01-10T19:53:09.000Z
2020-01-24T07:53:17.000Z
tornado_jsonapi/resource.py
lockie/tornado-jsonapi
f1cda34d4384fd47c03353c485ee6555aa3eafc2
[ "MIT" ]
2
2016-11-22T03:23:16.000Z
2020-01-20T17:13:59.000Z
#!/usr/bin/env python3 # vim: set fileencoding=utf8 : import types from contextlib import contextmanager from tornado import gen from tornado.concurrent import Future, is_future import inflection import python_jsonschema_objects as pjs from tornado_jsonapi.exceptions import MissingResourceSchemaError class Resource...
29.98434
78
0.549131
36de65c92bc6293a6585715856322544d8a20608
585
py
Python
addgene_url_tester.py
JMante1/Addgene-Annotation
8725ccb40fa7fc2d6386fc3053f1c52d5c590397
[ "BSD-3-Clause" ]
null
null
null
addgene_url_tester.py
JMante1/Addgene-Annotation
8725ccb40fa7fc2d6386fc3053f1c52d5c590397
[ "BSD-3-Clause" ]
null
null
null
addgene_url_tester.py
JMante1/Addgene-Annotation
8725ccb40fa7fc2d6386fc3053f1c52d5c590397
[ "BSD-3-Clause" ]
null
null
null
import requests import pandas as pd data = pd.read_csv('addgene_combined_ids.csv', header=None).to_dict(orient='list')[0] data_error = pd.read_csv('addgene_404_ids.csv', header=None).to_dict(orient='list')[0] # 28893 for i in range(0, 181798): # 181795 # first number should be one more than last in file if i ...
36.5625
91
0.639316
1eb07c043a26e13d889d8d8555564728693abed4
723
py
Python
tests/test_util.py
Tackitt/python-hl7
c058223b7aefab471738bd2f4e0e99e03d38c122
[ "BSD-3-Clause" ]
null
null
null
tests/test_util.py
Tackitt/python-hl7
c058223b7aefab471738bd2f4e0e99e03d38c122
[ "BSD-3-Clause" ]
null
null
null
tests/test_util.py
Tackitt/python-hl7
c058223b7aefab471738bd2f4e0e99e03d38c122
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import hl7 from .compat import unittest from .samples import sample_hl7, sample_file class IsHL7Test(unittest.TestCase): def test_ishl7(self): self.assertTrue(hl7.ishl7(sample_hl7)) def test_ishl7_empty(self): self.assertFalse(hl...
28.92
104
0.697095
f609cd6539b171dcad63eab4e1696f98958c805c
56,491
py
Python
sdk/python/pulumi_aws/lb/target_group.py
aamir-locus/pulumi-aws
3e234b050129bde35d8e072a88bd608562f02142
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/lb/target_group.py
aamir-locus/pulumi-aws
3e234b050129bde35d8e072a88bd608562f02142
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/lb/target_group.py
aamir-locus/pulumi-aws
3e234b050129bde35d8e072a88bd608562f02142
[ "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...
56.322034
707
0.682587
32ba1f95eac304ab7fcd19be753f409445787275
360
py
Python
BOJ/14000~14999/14649.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/14000~14999/14649.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/14000~14999/14649.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
n = int(input()) k = int(input()) check = [0]*101 cnt = [0]*3 for i in range(k): a,b=input().split() a=int(a) if b == 'R': for j in range(a+1,101): check[j]+=1 else: for j in range(1,a): check[j]+=1 for i in range(1,101): cnt[check[i]%3]+=1 for i in range(3...
18
37
0.458333
9565c8def3c70863d69de1cb88ac0e822467b0ac
235
py
Python
Python/replacePi.py
montukv/Coding-problem-solutions
973009c00038cc57500d965871376a60f8c4e0d1
[ "MIT" ]
null
null
null
Python/replacePi.py
montukv/Coding-problem-solutions
973009c00038cc57500d965871376a60f8c4e0d1
[ "MIT" ]
null
null
null
Python/replacePi.py
montukv/Coding-problem-solutions
973009c00038cc57500d965871376a60f8c4e0d1
[ "MIT" ]
null
null
null
def replacePi(s): if(len(s) <= 2): return s if(s[0] == "p" and s[1] == "i"): print("3.14",end='') replacePi(s[2:]) else : print(s[0],end="") replacePi(s[1:]) s = input() replacePi(s)
19.583333
36
0.429787
9af52da82ec3ce33179c77cd3ff96b799eabcf2e
12,868
py
Python
sphinx/roles.py
ericholscher/sphinx
12bf3b69ce33a1c4fef26740fc791f8255797cfc
[ "BSD-2-Clause" ]
1
2015-11-08T11:41:39.000Z
2015-11-08T11:41:39.000Z
sphinx/roles.py
ericholscher/sphinx
12bf3b69ce33a1c4fef26740fc791f8255797cfc
[ "BSD-2-Clause" ]
null
null
null
sphinx/roles.py
ericholscher/sphinx
12bf3b69ce33a1c4fef26740fc791f8255797cfc
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinx.roles ~~~~~~~~~~~~ Handlers for additional ReST roles. :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from six import iteritems from docutils import nodes, utils from docutils.parsers.rst i...
36.977011
81
0.609574
0c2d2698a2a1bab3e70d83e02a330d45fdf6b2f1
24,446
py
Python
tests/mockhadoop.py
lydian/mrjob
13028274296f5618d63ffc00301537fd385eef82
[ "Apache-2.0" ]
null
null
null
tests/mockhadoop.py
lydian/mrjob
13028274296f5618d63ffc00301537fd385eef82
[ "Apache-2.0" ]
null
null
null
tests/mockhadoop.py
lydian/mrjob
13028274296f5618d63ffc00301537fd385eef82
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2012 Yelp # Copyright 2013 Tom Arnfeld and David Marin # Copyright 2014 Contributors # Copyright 2015-2016 Yelp # Copyright 2017 Yelp and Contributors # Copyright 2018 Yelp # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
33.124661
79
0.61237
2e44d7cd45500a5298997bc2a7be9cdd290e190d
176
py
Python
Models/querysets/Field lookups/__lte/tests.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
Models/querysets/Field lookups/__lte/tests.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
Models/querysets/Field lookups/__lte/tests.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python from .models import MyModel """ https://docs.djangoproject.com/en/dev/ref/models/querysets/#lte """ qs = MyModel.objects q.filter(field__lte=42) # <=42
17.6
63
0.715909
ffb8780f1c0e3d0e7d7bc720c8a85b3951161c52
10,318
py
Python
spark_fhir_schemas/r4/complex_types/capabilitystatement_security.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
2
2020-10-31T23:25:01.000Z
2021-06-09T14:12:42.000Z
spark_fhir_schemas/r4/complex_types/capabilitystatement_security.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/r4/complex_types/capabilitystatement_security.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
null
null
null
from typing import Union, List, Optional from pyspark.sql.types import ( StructType, StructField, StringType, ArrayType, BooleanType, DataType, ) # This file is auto-generated by generate_schema so do not edit it manually # noinspection PyPep8Naming class CapabilityStatement_SecuritySchema: ...
47.990698
104
0.583834
254b3454297aca1432dacea5de2b909c059a8987
1,716
py
Python
tests/console/commands/source/conftest.py
pkoch/poetry
d22c5a7187d8b5a30196a7df58111b3c90be7d22
[ "MIT" ]
7,258
2018-02-28T16:23:08.000Z
2019-12-11T18:27:58.000Z
tests/console/commands/source/conftest.py
pkoch/poetry
d22c5a7187d8b5a30196a7df58111b3c90be7d22
[ "MIT" ]
1,608
2018-02-28T15:31:35.000Z
2019-12-11T20:00:05.000Z
tests/console/commands/source/conftest.py
pkoch/poetry
d22c5a7187d8b5a30196a7df58111b3c90be7d22
[ "MIT" ]
597
2018-03-07T15:07:46.000Z
2019-12-11T16:36:22.000Z
from __future__ import annotations from typing import TYPE_CHECKING import pytest from poetry.config.source import Source if TYPE_CHECKING: from poetry.poetry import Poetry from tests.types import CommandTesterFactory from tests.types import ProjectFactory @pytest.fixture def source_one() -> Source: ...
22.285714
80
0.734848
7d637f9016b9bb7cc98f1a63e07a381b8c93c118
1,710
py
Python
foowise/channels/JudgeSet.py
ben-schulz/foowise
16f437e9fc9a282db56a39efa8b84d06981ce652
[ "MIT" ]
1
2020-01-25T00:14:41.000Z
2020-01-25T00:14:41.000Z
foowise/channels/JudgeSet.py
ben-schulz/foowise
16f437e9fc9a282db56a39efa8b84d06981ce652
[ "MIT" ]
1
2018-08-19T17:41:33.000Z
2018-08-26T02:15:02.000Z
foowise/channels/JudgeSet.py
ben-schulz/foowise
16f437e9fc9a282db56a39efa8b84d06981ce652
[ "MIT" ]
null
null
null
from . import Sequent as S class JudgeSet: def __init__(self, judgements=set()): self.judgements = judgements def __len__(self): return len(self.judgements) def __repr__(self): return repr(self.judgements) def __iter__(self): for x in self.judgements: ...
19.883721
62
0.591813
cf3bc602b1750b42c2e5a7090a0b42caa3179721
1,358
py
Python
Stack/Stacking.py
mikema2019/Fraud-detection
bb66d8b05cb6ff99266f1e8e31bf97b52efd6d93
[ "MIT" ]
null
null
null
Stack/Stacking.py
mikema2019/Fraud-detection
bb66d8b05cb6ff99266f1e8e31bf97b52efd6d93
[ "MIT" ]
null
null
null
Stack/Stacking.py
mikema2019/Fraud-detection
bb66d8b05cb6ff99266f1e8e31bf97b52efd6d93
[ "MIT" ]
null
null
null
from mlxtend.classifier import StackingClassifier class Stacking: def __init__(self,classifiers,meta_classifier,use_probas=True,average_probas=False,use_features_in_secondary=True): self.__name__='Stacking' self.classes_=[0,1] self.classifiers=classifiers self.meta_classifier...
43.806452
120
0.691458
f292b44d3cf6831e2b944aca215488c69b02b660
17,756
py
Python
citadel/indico_citadel/schemas_test.py
tomasr8/indico-plugins
b85e4ad826fa362aa32eb236e73c9ab2f7c7f465
[ "MIT" ]
null
null
null
citadel/indico_citadel/schemas_test.py
tomasr8/indico-plugins
b85e4ad826fa362aa32eb236e73c9ab2f7c7f465
[ "MIT" ]
null
null
null
citadel/indico_citadel/schemas_test.py
tomasr8/indico-plugins
b85e4ad826fa362aa32eb236e73c9ab2f7c7f465
[ "MIT" ]
null
null
null
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2022 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from datetime import datetime, timedelta from io import BytesIO import pytes...
40.171946
119
0.64688
46a620e662329dea763e47f142aada9c34a210cb
13,505
py
Python
tests/integration/fixtures/mini_sentry.py
vsboldakov/relay
35ea02e87641f459530b7aa911a0e3738b548a4d
[ "BSL-1.0" ]
null
null
null
tests/integration/fixtures/mini_sentry.py
vsboldakov/relay
35ea02e87641f459530b7aa911a0e3738b548a4d
[ "BSL-1.0" ]
null
null
null
tests/integration/fixtures/mini_sentry.py
vsboldakov/relay
35ea02e87641f459530b7aa911a0e3738b548a4d
[ "BSL-1.0" ]
null
null
null
import gzip import json import os import re import uuid import datetime from copy import deepcopy from queue import Queue import pytest from flask import abort, Flask, request as flask_request, jsonify from werkzeug.serving import WSGIRequestHandler from pytest_localserver.http import WSGIServer from sentry_sdk.envel...
35.077922
97
0.590448
f09ecca57716e89a7574afd852c86e6e762e6b5d
2,811
py
Python
cookbook/recipes/core/basic/files.py
pmahindrakar-oss/flytesnacks
42fcf74f04d50f2527f6f13be72b36ef62e5b7f0
[ "Apache-2.0" ]
null
null
null
cookbook/recipes/core/basic/files.py
pmahindrakar-oss/flytesnacks
42fcf74f04d50f2527f6f13be72b36ef62e5b7f0
[ "Apache-2.0" ]
18
2021-08-25T15:15:22.000Z
2022-03-12T01:03:57.000Z
cookbook/recipes/core/basic/files.py
pmahindrakar-oss/flytesnacks
42fcf74f04d50f2527f6f13be72b36ef62e5b7f0
[ "Apache-2.0" ]
1
2021-05-07T20:21:44.000Z
2021-05-07T20:21:44.000Z
""" Work with files ------------------- Files are one of the most fundamental things that users of Python work with, and they are fully supported by Flyte. In the IDL, they are known as `Blob <https://github.com/lyft/flyteidl/blob/cee566b2e6e109120f1bb34c980b1cfaf006a473/protos/flyteidl/core/literals.proto#L33>`__ lit...
40.157143
168
0.729634
115c4cbedebd2481c414bb328aada05e1f2b902d
23,958
py
Python
datasette/utils/__init__.py
heussd/datasette
ce6372bc6210ae52ac1951647b8fbaee40d64fc1
[ "Apache-2.0" ]
null
null
null
datasette/utils/__init__.py
heussd/datasette
ce6372bc6210ae52ac1951647b8fbaee40d64fc1
[ "Apache-2.0" ]
null
null
null
datasette/utils/__init__.py
heussd/datasette
ce6372bc6210ae52ac1951647b8fbaee40d64fc1
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from collections import OrderedDict import base64 import click import hashlib import json import os import pkg_resources import re import shlex import tempfile import time import types import shutil import urllib import numbers try: import pysqlite3 as sqlite3 except ImportErr...
31.154746
94
0.613699
a9b7d6e2c09f3461b1269798c731cc12025f6cae
4,259
py
Python
spotify_app/authentication/auth.py
FQAlmeida/DjangoWithDocker
5c5569dafbf5b7754e4b388fa620a624eb9d1662
[ "MIT" ]
null
null
null
spotify_app/authentication/auth.py
FQAlmeida/DjangoWithDocker
5c5569dafbf5b7754e4b388fa620a624eb9d1662
[ "MIT" ]
null
null
null
spotify_app/authentication/auth.py
FQAlmeida/DjangoWithDocker
5c5569dafbf5b7754e4b388fa620a624eb9d1662
[ "MIT" ]
null
null
null
import requests as reqs import urllib import base64 import urllib3 import json from ..models import AccessToken from django.utils import timezone from datetime import timedelta class Spotify: redirect_uri = "http://127.0.0.1:8000/spotify/callback/" SPOTIFY_AUTH_URL = "https://accounts.spotify.com/authorize" ...
34.626016
91
0.634891
b00ad103d6730f058b4bd5b7be277f6a09fbae6e
595
py
Python
app/test/base.py
dorokhin/lightware-api
e76b1d2a254eec8520c6ce36b090f1eeb244ff8f
[ "MIT" ]
null
null
null
app/test/base.py
dorokhin/lightware-api
e76b1d2a254eec8520c6ce36b090f1eeb244ff8f
[ "MIT" ]
10
2019-01-13T08:18:14.000Z
2019-10-21T15:07:14.000Z
app/test/base.py
dorokhin/lightware-api
e76b1d2a254eec8520c6ce36b090f1eeb244ff8f
[ "MIT" ]
null
null
null
from flask_testing import TestCase from flask import current_app from app.main import db from manage import app from app import socketio class BaseTestCase(TestCase): """ Base Tests """ def create_app(self): app.config.from_object('app.main.config.TestingConfig') self.test_client = socketio.t...
23.8
63
0.662185
673cdd470ae04dfd7b60013c8cba343a9f78393d
9,981
py
Python
mermer/rpc/full_node_rpc_client.py
sumilying/mermer-chain
a493e56c3aca6cef341aff0eae04f5e52bc55f09
[ "Apache-2.0" ]
2
2021-11-12T13:32:35.000Z
2021-11-16T08:47:28.000Z
mermer/rpc/full_node_rpc_client.py
sumilying/mermer-blockchain
a493e56c3aca6cef341aff0eae04f5e52bc55f09
[ "Apache-2.0" ]
null
null
null
mermer/rpc/full_node_rpc_client.py
sumilying/mermer-blockchain
a493e56c3aca6cef341aff0eae04f5e52bc55f09
[ "Apache-2.0" ]
null
null
null
from typing import Dict, List, Optional, Tuple, Any from mermer.consensus.block_record import BlockRecord from mermer.full_node.signage_point import SignagePoint from mermer.rpc.rpc_client import RpcClient from mermer.types.blockchain_format.sized_bytes import bytes32 from mermer.types.coin_record import CoinRecord fr...
43.585153
120
0.645126
546f7ddbbb3277333176f4f6c12c05293848b3aa
44,184
py
Python
Lib/smtplib.py
T3chy/WordAnalysis
5ac2f2409a4be24b74468be0c907946f6276af26
[ "PSF-2.0" ]
null
null
null
Lib/smtplib.py
T3chy/WordAnalysis
5ac2f2409a4be24b74468be0c907946f6276af26
[ "PSF-2.0" ]
null
null
null
Lib/smtplib.py
T3chy/WordAnalysis
5ac2f2409a4be24b74468be0c907946f6276af26
[ "PSF-2.0" ]
null
null
null
#! /usr/bin/env python3 '''SMTP/ESMTP client class. This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP Authentication) and RFC 2487 (Secure SMTP over TLS). Notes: Please remember, when doing ESMTP, that the names of the SMTP service extensions are NOT the same thing as the option keywords for the R...
39.555953
89
0.589263
fd779b5697f7edd499b103ced66a167f23d3ef8e
288
py
Python
RepCRec/enums/LockAcquireStatus.py
apsdehal/RepCRec
82f5d062752be5643ad6dbab10bf5d51cbdc9f97
[ "MIT" ]
null
null
null
RepCRec/enums/LockAcquireStatus.py
apsdehal/RepCRec
82f5d062752be5643ad6dbab10bf5d51cbdc9f97
[ "MIT" ]
null
null
null
RepCRec/enums/LockAcquireStatus.py
apsdehal/RepCRec
82f5d062752be5643ad6dbab10bf5d51cbdc9f97
[ "MIT" ]
null
null
null
""" Authors: Amanpreet Singh Sharan Agrawal """ from enum import Enum class LockAcquireStatus(Enum): """ Type of output returns when one tries to acquire a lock through site manager """ ALL_SITES_DOWN = 0 NO_LOCK = 1 GOT_LOCK = 2 GOT_LOCK_RECOVERING = 3
16
52
0.670139
00032ae2f3129f5a05ad3bba91827bb7f8d08d06
389
py
Python
recipe/urls.py
rmuktader/recipe-app-api
cc3b984bd8e63fa9796785c02201a537a8079f6d
[ "MIT" ]
null
null
null
recipe/urls.py
rmuktader/recipe-app-api
cc3b984bd8e63fa9796785c02201a537a8079f6d
[ "MIT" ]
null
null
null
recipe/urls.py
rmuktader/recipe-app-api
cc3b984bd8e63fa9796785c02201a537a8079f6d
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from recipe.views import IngredientViewSet, RecipeViewSet, TagViewSet router = DefaultRouter() router.register("tags", TagViewSet) router.register("ingredients", IngredientViewSet) router.register("recipes", RecipeViewSet) app_na...
22.882353
69
0.784062
ee91abbd840c6ea8eef59ababe2c23b48f399779
4,978
py
Python
pytorch_lightning/plugins/training_type/sharded_spawn.py
adamviola/pytorch-lightning
9826de21625b162dfef43f30864b5a6d9efab003
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/training_type/sharded_spawn.py
adamviola/pytorch-lightning
9826de21625b162dfef43f30864b5a6d9efab003
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/training_type/sharded_spawn.py
adamviola/pytorch-lightning
9826de21625b162dfef43f30864b5a6d9efab003
[ "Apache-2.0" ]
null
null
null
# 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...
40.471545
120
0.71133
322518b18e74775a9095663dfb94eb7e5435e050
3,885
py
Python
conans/test/integration/conanfile/invalid_configuration_test.py
Mu-L/conan
7c24ec4bbd6e8c16cdcd879403aae742689bc36a
[ "MIT" ]
1
2019-11-04T17:23:09.000Z
2019-11-04T17:23:09.000Z
conans/test/integration/conanfile/invalid_configuration_test.py
Mu-L/conan
7c24ec4bbd6e8c16cdcd879403aae742689bc36a
[ "MIT" ]
1
2020-11-05T16:16:49.000Z
2020-11-05T16:16:49.000Z
conans/test/integration/conanfile/invalid_configuration_test.py
Mattlk13/conan
005fc53485557b0a570bb71670f2ca9c66082165
[ "MIT" ]
null
null
null
import textwrap import unittest from conans.client.command import ERROR_INVALID_CONFIGURATION from conans.test.utils.tools import TestClient class InvalidConfigurationTest(unittest.TestCase): def setUp(self): self.client = TestClient() self.client.save({"conanfile.py": """ from conans import Con...
42.692308
96
0.655598
6022893594d10bd8d8b3501e460c67290bb1ddab
1,212
py
Python
mentormatch/api/app/setup_compatibility_checker_factory.py
jonathanchukinas/mentormatch
fcd6ac2ed39b1635de6f35d5888067cef33fc958
[ "MIT" ]
1
2019-10-08T13:16:31.000Z
2019-10-08T13:16:31.000Z
mentormatch/api/app/setup_compatibility_checker_factory.py
jonathanchukinas/mentormatch
fcd6ac2ed39b1635de6f35d5888067cef33fc958
[ "MIT" ]
null
null
null
mentormatch/api/app/setup_compatibility_checker_factory.py
jonathanchukinas/mentormatch
fcd6ac2ed39b1635de6f35d5888067cef33fc958
[ "MIT" ]
null
null
null
import mentormatch.api.compatibility as pc from mentormatch.utils import ApplicantType, PairType ######################### # COMPATIBILITY FACTORY # ######################### compatibility_factory = pc.CompatibilityCheckerFactory() ############# # PREFERRED # ############# _compatibility_checker_preferred = pc.Compa...
29.560976
63
0.754125
e3bcb96d880b41b5e40dcbf8b9b29c579136903d
1,048
py
Python
python/src/aoc/year2015/day9.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
1
2021-02-16T21:30:04.000Z
2021-02-16T21:30:04.000Z
python/src/aoc/year2015/day9.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
null
null
null
python/src/aoc/year2015/day9.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
null
null
null
from itertools import permutations from aoc.util import load_example, load_input def prepare_data(lines): locations = {} distances = {} for line in lines: start, _, dest, _, distance = line.split() locations[start] = True locations[dest] = True distances[(start, dest)] = in...
22.782609
84
0.632634
ef41c9811494ac476988b77f7017a956434ea1a6
1,169
py
Python
test/functional/rpc_signmessage.py
PenTesting/bitcoin-abc
28fa7e2db7d986e63d70e41b8f1d29d5fdf724d2
[ "MIT" ]
35
2019-02-23T06:21:13.000Z
2021-11-15T11:35:13.000Z
test/functional/rpc_signmessage.py
PenTesting/bitcoin-abc
28fa7e2db7d986e63d70e41b8f1d29d5fdf724d2
[ "MIT" ]
60
2019-02-25T18:17:03.000Z
2021-07-13T00:14:00.000Z
test/functional/rpc_signmessage.py
PenTesting/bitcoin-abc
28fa7e2db7d986e63d70e41b8f1d29d5fdf724d2
[ "MIT" ]
24
2019-02-20T05:37:02.000Z
2021-10-29T18:42:10.000Z
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework class SignMessagesTest(BitcoinTestFramework):...
33.4
74
0.712575
f1e05aa7fef79396a5656e0dc3758ed6cf441f7c
7,427
py
Python
test/utils_test.py
Yomguithereal/ebbe
83a86c3e961778002cff3cc4f2bb59a5a0046592
[ "MIT" ]
5
2021-03-08T06:36:59.000Z
2021-06-22T09:09:16.000Z
test/utils_test.py
Yomguithereal/ebbe
83a86c3e961778002cff3cc4f2bb59a5a0046592
[ "MIT" ]
9
2021-05-11T11:04:44.000Z
2022-03-24T08:26:23.000Z
test/utils_test.py
Yomguithereal/ebbe
83a86c3e961778002cff3cc4f2bb59a5a0046592
[ "MIT" ]
null
null
null
# ============================================================================= # Ebbe Utilities Unit Tests # ============================================================================= import pytest from collections import OrderedDict from itertools import chain from ebbe import ( get, getter, getpath, ...
32.432314
111
0.500471
ae5bd5e3affb7e526f4f295de328d92ac807aa8d
2,168
py
Python
server/handlers/default_labeling/model_prediction.py
microsoft/OneLabeler
316175e98a1cba72d651567d9fac08fc6c7bdf4f
[ "MIT" ]
8
2022-03-26T17:45:01.000Z
2022-03-30T14:12:20.000Z
server/handlers/default_labeling/model_prediction.py
microsoft/OneLabeler
316175e98a1cba72d651567d9fac08fc6c7bdf4f
[ "MIT" ]
null
null
null
server/handlers/default_labeling/model_prediction.py
microsoft/OneLabeler
316175e98a1cba72d651567d9fac08fc6c7bdf4f
[ "MIT" ]
1
2022-03-27T06:11:24.000Z
2022-03-27T06:11:24.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import json from typing import List import numpy as np from sklearn.exceptions import NotFittedError from tornado.web import RequestHandler from ..types import DataObject, Label, Model from ..utils.load_estimator import load_estimator from .nu...
34.967742
76
0.638376
94d27fa9485d59a1d123593d3f1e67d38aaff9a1
255
py
Python
Python/Tarea/Guia1/3_types.py
marce1994/Learning
2b5928cf16c0d25bfc130ad4df9d415475395ec3
[ "MIT" ]
null
null
null
Python/Tarea/Guia1/3_types.py
marce1994/Learning
2b5928cf16c0d25bfc130ad4df9d415475395ec3
[ "MIT" ]
null
null
null
Python/Tarea/Guia1/3_types.py
marce1994/Learning
2b5928cf16c0d25bfc130ad4df9d415475395ec3
[ "MIT" ]
null
null
null
def intTryParse(value): try: return int(value) except ValueError: return value a = intTryParse(input("Ingrese el primer valor: ")); b = intTryParse(input("Ingrese el segnudo valor: ")); print(type(a), type(b), type(a)==type(b));
23.181818
53
0.639216
69edde37a66bd697e6e721b9fd1e89269e8aba3f
2,133
py
Python
Algorithm.Python/PortfolioRebalanceOnDateRulesRegressionAlgorithm.py
echoplaza/Lean
66f32cffe2ddb07532c8160299a7b1b6d67429ee
[ "Apache-2.0" ]
1
2021-02-11T21:13:12.000Z
2021-02-11T21:13:12.000Z
Algorithm.Python/PortfolioRebalanceOnDateRulesRegressionAlgorithm.py
echoplaza/Lean
66f32cffe2ddb07532c8160299a7b1b6d67429ee
[ "Apache-2.0" ]
1
2021-01-23T17:59:52.000Z
2021-01-23T17:59:52.000Z
Algorithm.Python/PortfolioRebalanceOnDateRulesRegressionAlgorithm.py
echoplaza/Lean
66f32cffe2ddb07532c8160299a7b1b6d67429ee
[ "Apache-2.0" ]
null
null
null
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the Licen...
50.785714
152
0.742147
c0824334791d0d0df4262d67ecae676568455c17
3,441
py
Python
isi_sdk/models/storagepool_nodepools.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
isi_sdk/models/storagepool_nodepools.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
isi_sdk/models/storagepool_nodepools.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
# coding: utf-8 """ Copyright 2016 SmartBear Software 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...
27.97561
77
0.575414
d5d4557518ea5a73d9e18b6b957bc0fd9234d72d
583
py
Python
accountifie/gl/migrations/0007_auto_20180510_2236.py
imcallister/accountifie
094834c9d632e0353e3baf8d924eeb10cba0add4
[ "MIT", "Unlicense" ]
4
2017-06-02T08:48:48.000Z
2021-11-21T23:57:15.000Z
accountifie/gl/migrations/0007_auto_20180510_2236.py
imcallister/accountifie
094834c9d632e0353e3baf8d924eeb10cba0add4
[ "MIT", "Unlicense" ]
3
2020-06-05T16:55:42.000Z
2021-06-10T17:43:12.000Z
accountifie/gl/migrations/0007_auto_20180510_2236.py
imcallister/accountifie
094834c9d632e0353e3baf8d924eeb10cba0add4
[ "MIT", "Unlicense" ]
4
2015-12-15T14:27:51.000Z
2017-04-21T21:42:27.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gl', '0006_auto_20171221_0736'), ] operations = [ migrations.AddField( model_name='company', name='l...
23.32
66
0.581475
d2afae9bf6e2f75b88bfc4cbb56cbc74ed300f4b
4,461
py
Python
cnn_model.py
dream-catcher/deep_cnn_text_classifier
a5caca5adf9648b1c382949f587d9848206e970d
[ "MIT" ]
2
2017-11-02T09:03:20.000Z
2018-03-14T06:29:08.000Z
cnn_model.py
dream-catcher/deep_cnn_text_classifier
a5caca5adf9648b1c382949f587d9848206e970d
[ "MIT" ]
null
null
null
cnn_model.py
dream-catcher/deep_cnn_text_classifier
a5caca5adf9648b1c382949f587d9848206e970d
[ "MIT" ]
null
null
null
import math import tensorflow as tf import numpy as np class DeepCNN(object): """ A CNN for text classification. Uses an embedding layer, followed by multiple convolutional, max-pooling and softmax layer. """ def __init__( self, sequence_length, num_classes, vocab_size, embedding_size=...
42.894231
101
0.589554
74bb4b2c695fe4023f51a7eb431f7026ca01fe03
3,939
py
Python
pynq/lib/pmod/tests/test_pmod_devmode.py
michalkouril/PYNQ
c72febc2decc83816f40b91a7f60e11fe707c248
[ "BSD-3-Clause" ]
1,537
2016-09-26T22:51:50.000Z
2022-03-31T13:33:54.000Z
pynq/lib/pmod/tests/test_pmod_devmode.py
michalkouril/PYNQ
c72febc2decc83816f40b91a7f60e11fe707c248
[ "BSD-3-Clause" ]
414
2016-10-03T21:12:10.000Z
2022-03-21T14:55:02.000Z
pynq/lib/pmod/tests/test_pmod_devmode.py
michalkouril/PYNQ
c72febc2decc83816f40b91a7f60e11fe707c248
[ "BSD-3-Clause" ]
826
2016-09-23T22:29:43.000Z
2022-03-29T11:02:09.000Z
# Copyright (c) 2016, Xilinx, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of ...
39
79
0.730135
71ed8ce7668d3d40a7bc0d867d0c7bc939bef5e3
649
py
Python
src/chirps/migrations/0004_chirp_user.py
Slatterychase/Chirped
ab2f8a013666f4b6e4ee3c1a7d9f326e00cbf828
[ "MIT" ]
null
null
null
src/chirps/migrations/0004_chirp_user.py
Slatterychase/Chirped
ab2f8a013666f4b6e4ee3c1a7d9f326e00cbf828
[ "MIT" ]
null
null
null
src/chirps/migrations/0004_chirp_user.py
Slatterychase/Chirped
ab2f8a013666f4b6e4ee3c1a7d9f326e00cbf828
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-04-04 21:18 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
27.041667
121
0.679507
2d34a8ad52c07ae085e8ca3b4b19d959d6f1218a
4,574
py
Python
Google_Image_Downloader/image_grapper.py
vsudhakar99/Python
bb1b574056a83d804ed89902377056184c614755
[ "MIT" ]
3
2020-05-22T09:16:02.000Z
2022-02-08T20:20:51.000Z
Google_Image_Downloader/image_grapper.py
vsudhakar99/Python
bb1b574056a83d804ed89902377056184c614755
[ "MIT" ]
5
2021-03-19T10:08:49.000Z
2022-03-12T00:11:19.000Z
Google_Image_Downloader/image_grapper.py
vsudhakar99/Python
bb1b574056a83d804ed89902377056184c614755
[ "MIT" ]
4
2020-05-22T09:16:04.000Z
2021-08-20T13:42:41.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- #importing required libraries import json from os import chdir, system from os import walk from os.path import curdir from os.path import pardir from urllib.parse import urlencode from urllib.request import urlopen, Request import requests import ssl from bs4 import BeautifulS...
26.593023
125
0.57324
fd2d205074bb888e3bd9e7b551c5511c6e5d9bc2
195
py
Python
papers/pytorch-video-understanding/models/module_zoo/__init__.py
jiangzeyinzi/EssentialMC2
190b22cbfff1c27286bcc3dd87b2df6318ed2511
[ "MIT" ]
1
2021-11-24T03:13:01.000Z
2021-11-24T03:13:01.000Z
papers/pytorch-video-understanding/models/module_zoo/__init__.py
hrb518/EssentialMC2
cfb49fa51a13373e4afc74f8800ec8284c41b8d2
[ "MIT" ]
null
null
null
papers/pytorch-video-understanding/models/module_zoo/__init__.py
hrb518/EssentialMC2
cfb49fa51a13373e4afc74f8800ec8284c41b8d2
[ "MIT" ]
1
2021-12-26T16:06:08.000Z
2021-12-26T16:06:08.000Z
#!/usr/bin/env python3 # Copyright (C) Alibaba Group Holding Limited. from models.module_zoo.heads import * from models.module_zoo.stems import * from models.module_zoo.branches import *
27.857143
48
0.758974
cd43c7ffcc393fb508b171b9d69924975c6c60ac
3,690
py
Python
django_grapesjs/tests/models.py
agenteAND/django_grapesjs
fc0ab4052182336bf92a6254e550532f7788d1a5
[ "MIT" ]
54
2018-06-05T13:59:40.000Z
2021-11-18T09:52:04.000Z
django_grapesjs/tests/models.py
agenteAND/django_grapesjs
fc0ab4052182336bf92a6254e550532f7788d1a5
[ "MIT" ]
5
2018-06-15T01:54:12.000Z
2021-05-18T06:10:20.000Z
django_grapesjs/tests/models.py
agenteAND/django_grapesjs
fc0ab4052182336bf92a6254e550532f7788d1a5
[ "MIT" ]
24
2018-09-10T11:32:24.000Z
2022-03-05T15:29:11.000Z
from django import test from django.core.management.base import SystemCheckError from django_grapesjs.models import GrapesJsHtmlField from django_grapesjs.forms import GrapesJsField, GrapesJsWidget from django_grapesjs.settings import REDACTOR_CONFIG __all__ = ('GrapesJsHtmlFieldTestCase', ) TEMPLATE_CHOICES = ( ...
35.825243
114
0.684011
2ed632957cae4b910d248b313d4a6a69f9e8226b
11,560
py
Python
salt/cloud/clouds/ibmsce.py
bbinet/salt
b525e65d18b3ed734cea9792878df235c9aba36f
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/ibmsce.py
bbinet/salt
b525e65d18b3ed734cea9792878df235c9aba36f
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/ibmsce.py
bbinet/salt
b525e65d18b3ed734cea9792878df235c9aba36f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' IBM SCE Cloud Module ==================== The IBM SCE cloud module. This module interfaces with the IBM SCE public cloud service. To use Salt Cloud with IBM SCE log into the IBM SCE web interface and create an SSH key. Using the old configuration syntax, the following parameters are requir...
32.111111
79
0.610208
bbb959227bfbc9f381d011d641c43d4b295a4f5f
10,259
py
Python
qiskit/transpiler/passes/mapping/noise_adaptive_layout.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
1
2019-12-14T14:12:26.000Z
2019-12-14T14:12:26.000Z
qiskit/transpiler/passes/mapping/noise_adaptive_layout.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
null
null
null
qiskit/transpiler/passes/mapping/noise_adaptive_layout.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
40.389764
94
0.602105