hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
350bb2c6e2f935943a5194b0fe9fa83703e72d8f
1,525
py
Python
transports/email/__init__.py
tperrier/mwachx
94616659dc29843e661b2ecc9a2e7f1d4e81b5a4
[ "Apache-2.0" ]
3
2015-05-27T14:35:49.000Z
2016-02-26T21:04:32.000Z
transports/email/__init__.py
tperrier/mwachx
94616659dc29843e661b2ecc9a2e7f1d4e81b5a4
[ "Apache-2.0" ]
375
2015-01-31T10:08:34.000Z
2021-06-10T19:44:21.000Z
transports/email/__init__.py
tperrier/mwachx
94616659dc29843e661b2ecc9a2e7f1d4e81b5a4
[ "Apache-2.0" ]
6
2016-01-10T19:52:41.000Z
2020-06-15T22:07:24.000Z
#Email Imports import smtplib,sys from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText #Django imports from django.conf import settings def send(to,message): success = email("SMS as Email: {}".format(to),message) return 'Email Transport ID', success, {} def email(subject,message,...
33.152174
100
0.700328
808609355a9c75f68afc8788099cf47e966f6466
4,917
py
Python
run.py
fordevoted/GIF_generator
c8460a670b6b44d14ef98cd12d43f08a93df5321
[ "MIT" ]
2
2020-01-09T03:49:33.000Z
2020-01-24T03:57:09.000Z
run.py
fordevoted/GIF_generator
c8460a670b6b44d14ef98cd12d43f08a93df5321
[ "MIT" ]
null
null
null
run.py
fordevoted/GIF_generator
c8460a670b6b44d14ef98cd12d43f08a93df5321
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Apr 3 12:17:38 2018 @author: github.com/GustavZ """ import os import tarfile from six.moves import urllib import numpy as np import tensorflow as tf import yaml import cv2 from stuff.helper import FPS2, WebcamVideoStream from skimage import measure #...
36.969925
106
0.608704
4a1556fcefc6f81fe6cf42b11d57abd7f2472c05
4,607
py
Python
nova/tests/unit/notifications/test_base.py
WeifanFu-bsn/nova
c7b54a80ac25f6a01d0a150c546532f5ae2592ce
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/notifications/test_base.py
WeifanFu-bsn/nova
c7b54a80ac25f6a01d0a150c546532f5ae2592ce
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/notifications/test_base.py
WeifanFu-bsn/nova
c7b54a80ac25f6a01d0a150c546532f5ae2592ce
[ "Apache-2.0" ]
1
2020-07-22T21:17:41.000Z
2020-07-22T21:17:41.000Z
# Copyright (c) 2017 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 ...
43.87619
79
0.622097
7ab2e0aa9a0f7def7a340d840c0128dfbae9b3f6
12,462
py
Python
test/functional/feature_fee_estimation.py
bitcoin-black/bitcoinblack
ad87d315c635ef439d4664da46e6672153f91b79
[ "MIT" ]
null
null
null
test/functional/feature_fee_estimation.py
bitcoin-black/bitcoinblack
ad87d315c635ef439d4664da46e6672153f91b79
[ "MIT" ]
null
null
null
test/functional/feature_fee_estimation.py
bitcoin-black/bitcoinblack
ad87d315c635ef439d4664da46e6672153f91b79
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The DigiByte Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test fee estimation code.""" from test_framework.test_framework import DigiByteTestFramework from tes...
47.38403
113
0.646285
796fd076c6a5e5b144d1a8b0e3dc64f5ef3ca650
2,745
py
Python
Lib/test/test_crypt.py
yungyu/cpython
97588f439d35a918c95f6785c0fa17d3fbc40c31
[ "PSF-2.0" ]
7
2018-04-28T12:39:00.000Z
2020-12-17T11:22:25.000Z
Lib/test/test_crypt.py
yungyu/cpython
97588f439d35a918c95f6785c0fa17d3fbc40c31
[ "PSF-2.0" ]
null
null
null
Lib/test/test_crypt.py
yungyu/cpython
97588f439d35a918c95f6785c0fa17d3fbc40c31
[ "PSF-2.0" ]
3
2019-04-22T21:31:38.000Z
2020-04-23T08:51:10.000Z
import sys from test import support import unittest crypt = support.import_module('crypt') class CryptTestCase(unittest.TestCase): def test_crypt(self): cr = crypt.crypt('mypassword') cr2 = crypt.crypt('mypassword', cr) self.assertEqual(cr2, cr) cr = crypt.crypt('mypassword', 'ab'...
38.661972
79
0.604007
ec8eaa8e48ef197178aa1b0e0c319c052c7f9282
2,564
py
Python
docs/source/conf.py
mew2057/ibm-spectrum-scale-csi-operator
67535f3a0f114d3210232cf9341352b920fcc9f8
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
mew2057/ibm-spectrum-scale-csi-operator
67535f3a0f114d3210232cf9341352b920fcc9f8
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
mew2057/ibm-spectrum-scale-csi-operator
67535f3a0f114d3210232cf9341352b920fcc9f8
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
31.268293
79
0.673167
45c176d8169681908038753d43c25edab394a572
4,735
py
Python
src/emmental/modules/embedding_module.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
src/emmental/modules/embedding_module.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
src/emmental/modules/embedding_module.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
from typing import Dict, List, Optional, Tuple import numpy as np import torch import torch.nn as nn from numpy import ndarray from torch import Tensor class EmbeddingModule(nn.Module): r"""Embedding module. Args: word_counter(dict): Word count dictionary that contians the frequencies of each ...
31.778523
87
0.574868
8257630cf207137c341d0041ed72c6c67c2854ba
34,923
py
Python
python/paddle/fluid/tests/unittests/test_signal.py
SmirnovKol/Paddle
a3730dc87bc61593514b830727e36e5d19e753cd
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/test_signal.py
SmirnovKol/Paddle
a3730dc87bc61593514b830727e36e5d19e753cd
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_signal.py
SmirnovKol/Paddle
a3730dc87bc61593514b830727e36e5d19e753cd
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.474827
157
0.587092
ad0a55776dcfe0d1b212e3f90d2a703f6f09d53c
5,856
py
Python
Community-Supported/clouddb-extractor/mysql_extractor.py
TableauKyle/hyper-api-samples
37c21c988122c6dbfb662d9ec72d90c4cd30e4cc
[ "MIT" ]
73
2020-04-29T15:41:55.000Z
2022-03-12T04:55:24.000Z
Community-Supported/clouddb-extractor/mysql_extractor.py
TableauKyle/hyper-api-samples
37c21c988122c6dbfb662d9ec72d90c4cd30e4cc
[ "MIT" ]
32
2020-06-10T00:47:20.000Z
2022-03-28T11:19:00.000Z
Community-Supported/clouddb-extractor/mysql_extractor.py
TableauKyle/hyper-api-samples
37c21c988122c6dbfb662d9ec72d90c4cd30e4cc
[ "MIT" ]
54
2020-05-01T20:01:51.000Z
2022-03-28T11:11:00.000Z
"""MySQL implementation of Base Hyper Extractor ABC Tableau Community supported Hyper API sample ----------------------------------------------------------------------------- This file is the copyrighted property of Tableau Software and is protected by registered patents and other applicable U.S. and international l...
37.538462
120
0.658811
f7f18402a1160ce856644f4c8082753e0a841873
186
py
Python
python/py-itertools/itertools-product.py
th3c0d3br34ker/hackerrank-solutions
c61e987cbb359fd27e41051c39ffd7f377f0c5f2
[ "MIT" ]
1
2020-08-04T18:31:24.000Z
2020-08-04T18:31:24.000Z
python/py-itertools/itertools-product.py
th3c0d3br34ker/hackerrank-solutions
c61e987cbb359fd27e41051c39ffd7f377f0c5f2
[ "MIT" ]
null
null
null
python/py-itertools/itertools-product.py
th3c0d3br34ker/hackerrank-solutions
c61e987cbb359fd27e41051c39ffd7f377f0c5f2
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT from itertools import product a = map(int, input().split()) b = map(int, input().split()) print(*product(a, b))
18.6
69
0.688172
da487deaa8388879e9e089790054c00da9dc595f
1,895
py
Python
src/data/64.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/64.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/64.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, copy, functools import time, random sys.setrecursionlimit(10**6) inf = 10**20 eps = 1.0 / 10**10 mod = 10**9 + 7 mod2 = 998244353 dd = [(-1, 0), (0, 1), (1, 0), (0, -1)] ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0,...
18.578431
102
0.475462
9af7b9e03a24fa9b12f224b7a0ee428e77a94d8d
173
py
Python
src/views/index.py
Ohtu-FaceTed/FaceTed-Backend
0fff9018ec28eb73d40c56b27e26b1535b8272fc
[ "BSD-3-Clause" ]
1
2020-01-25T15:12:11.000Z
2020-01-25T15:12:11.000Z
src/views/index.py
Ohtu-FaceTed/FaceTed-Backend
0fff9018ec28eb73d40c56b27e26b1535b8272fc
[ "BSD-3-Clause" ]
3
2019-10-07T06:41:49.000Z
2021-06-02T00:32:15.000Z
src/views/index.py
StatisticsFinland/rakennusluokkahaku
912d62d07fe9802c7d5351f7b73b79732ad12304
[ "BSD-3-Clause" ]
1
2020-01-22T11:47:50.000Z
2020-01-22T11:47:50.000Z
from flask import escape, request from . import views as app @app.route("/") def index(): name = request.args.get("name", "World") return f"Hello, {escape(name)}"
19.222222
44
0.653179
c6fcf36085d569e353140d90b84d5b2aba49b219
4,879
py
Python
support/go-NN-master/engine/TFEngine.py
sjkim04/AlphaGOZero-python-tensorflow
32434d55466480ed2d3d042be654e62cf70d7cce
[ "MIT" ]
325
2017-10-28T01:12:47.000Z
2022-03-25T12:00:06.000Z
support/go-NN-master/engine/TFEngine.py
sjkim04/AlphaGOZero-python-tensorflow
32434d55466480ed2d3d042be654e62cf70d7cce
[ "MIT" ]
14
2017-10-30T19:27:33.000Z
2021-03-25T21:41:35.000Z
support/go-NN-master/engine/TFEngine.py
sjkim04/AlphaGOZero-python-tensorflow
32434d55466480ed2d3d042be654e62cf70d7cce
[ "MIT" ]
113
2017-10-29T09:58:43.000Z
2021-12-30T01:52:45.000Z
import tensorflow as tf import numpy as np import random import os from Engine import * import Book import Features import Normalization import Symmetry import Checkpoint from GTP import Move, true_stderr from Board import * def softmax(E, temp): #print "E =\n", E expE = np.exp(temp * (E - max(E))) # subtract ...
35.100719
147
0.636606
f789a232e66c4d935a0c2ee689653d33f79b562e
4,377
py
Python
template_settings_postgres.py
UoW-CPC/Asclepios-TrustedAuthority
9fd84d356b4d503bc41940055a51f23fae68c870
[ "Apache-1.1" ]
null
null
null
template_settings_postgres.py
UoW-CPC/Asclepios-TrustedAuthority
9fd84d356b4d503bc41940055a51f23fae68c870
[ "Apache-1.1" ]
3
2020-03-25T13:01:31.000Z
2020-10-01T12:07:55.000Z
TA/settings.py
UoW-CPC/Asclepios-TrustedAuthority
9fd84d356b4d503bc41940055a51f23fae68c870
[ "Apache-1.1" ]
1
2020-03-24T12:43:26.000Z
2020-03-24T12:43:26.000Z
""" Django settings for TA project. Generated by 'django-admin startproject' using Django 1.11.24. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os imp...
25.899408
118
0.66027
bae7056d537ae144e5935ef3b52b96861fee89f4
211
py
Python
audio_annotator_generic/__init__.py
sofiaele/audio_annotator
c9be96fce1a3ccdb53a73b80b81fc93ce0050901
[ "MIT" ]
null
null
null
audio_annotator_generic/__init__.py
sofiaele/audio_annotator
c9be96fce1a3ccdb53a73b80b81fc93ce0050901
[ "MIT" ]
null
null
null
audio_annotator_generic/__init__.py
sofiaele/audio_annotator
c9be96fce1a3ccdb53a73b80b81fc93ce0050901
[ "MIT" ]
null
null
null
from flask import Flask from flask_login import LoginManager, UserMixin, login_required app = Flask(__name__) app.secret_key = "a2f8a7fa-fb61-11ea-8c89-0f4248d2074f" from audio_annotator_generic import routes
26.375
63
0.834123
bb7d928bbe39c2591fa3a7f6ae24299e4658f58a
31,672
py
Python
electrum/gui/qt/util.py
WER136/electrum
b86b3ec1d1e93113a9a551b0497da7076a95f29d
[ "MIT" ]
6
2020-09-13T23:41:59.000Z
2022-02-18T17:20:19.000Z
electrum/gui/qt/util.py
WER136/electrum
b86b3ec1d1e93113a9a551b0497da7076a95f29d
[ "MIT" ]
19
2019-11-19T14:34:30.000Z
2022-03-10T21:21:07.000Z
electrum/gui/qt/util.py
WER136/electrum
b86b3ec1d1e93113a9a551b0497da7076a95f29d
[ "MIT" ]
5
2019-11-17T12:10:24.000Z
2021-05-12T15:47:59.000Z
import asyncio import os.path import time import sys import platform import queue import traceback import os import webbrowser from functools import partial, lru_cache from typing import NamedTuple, Callable, Optional, TYPE_CHECKING, Union, List, Dict from PyQt5.QtGui import (QFont, QColor, QCursor, QPixmap, QStandar...
34.919515
124
0.62942
2d6ff61f4f9b933dca3e7cdaceeea3e9cdcc21ec
2,245
py
Python
odd_glue_adapter/mappers/jobs.py
opendatadiscovery/odd-glue-adapter
d54aff8517bdb3f0643290bf3d3b8494b551703f
[ "Apache-2.0" ]
null
null
null
odd_glue_adapter/mappers/jobs.py
opendatadiscovery/odd-glue-adapter
d54aff8517bdb3f0643290bf3d3b8494b551703f
[ "Apache-2.0" ]
1
2021-12-29T15:55:49.000Z
2022-01-05T21:22:44.000Z
odd_glue_adapter/mappers/jobs.py
opendatadiscovery/odd-glue-adapter
d54aff8517bdb3f0643290bf3d3b8494b551703f
[ "Apache-2.0" ]
1
2021-10-04T15:57:14.000Z
2021-10-04T15:57:14.000Z
from typing import Dict, Any from odd_models.models import DataEntity, DataEntityType, DataTransformer, DataTransformerRun, Status from oddrn_generator import GlueGenerator from . import metadata_extractor GLUE_JOB_STATUSES = { 'STARTING': Status.UNKNOWN, 'RUNNING': Status.UNKNOWN, 'STOPPING': Status.UNK...
39.385965
101
0.69755
84bcc51d0c620c71b3d3f48ebe3c462adf280936
5,655
py
Python
structural_optimization.py
BUAA-WJR/SO-ET
c9357b99f07f7f52dfb4a5bae7e4694fba845198
[ "MIT" ]
3
2021-09-07T12:11:04.000Z
2021-12-02T12:42:03.000Z
structural_optimization.py
BUAA-WJR/SO-ET
c9357b99f07f7f52dfb4a5bae7e4694fba845198
[ "MIT" ]
null
null
null
structural_optimization.py
BUAA-WJR/SO-ET
c9357b99f07f7f52dfb4a5bae7e4694fba845198
[ "MIT" ]
3
2021-11-02T07:22:17.000Z
2021-12-28T07:28:55.000Z
#!/usr/bin/env python # encoding: utf-8 # author: ryan_wu # email: imitator_wu@outlook.com # date: 2020-11-26 16:09:29 # 把networkx的图转成邻接矩阵,然后用结构信息树,给转成各种深度的树 import os import sys import copy import json import time import pickle import itertools import traceback import numpy as np import networkx as nx from mult...
33.461538
96
0.563572
93e7329c593ae567b1fd4420593a1f0078f785c3
5,691
py
Python
sceptre/cli/new.py
dennisconrad/sceptre
d596500eb395489d889db476b8fcf4fa5753d563
[ "Apache-2.0" ]
null
null
null
sceptre/cli/new.py
dennisconrad/sceptre
d596500eb395489d889db476b8fcf4fa5753d563
[ "Apache-2.0" ]
1
2021-03-26T00:46:38.000Z
2021-03-26T00:46:38.000Z
sceptre/cli/new.py
dennisconrad/sceptre
d596500eb395489d889db476b8fcf4fa5753d563
[ "Apache-2.0" ]
null
null
null
import os import errno import click import yaml from sceptre.config.reader import STACK_GROUP_CONFIG_ATTRIBUTES from sceptre.cli.helpers import catch_exceptions from sceptre.exceptions import ProjectAlreadyExistsError @click.group(name="new") def new_group(): """ Commands for initialising Sceptre projects. ...
31.97191
78
0.677034
c0547a05aef370edd1e288190f8e1124413f39a5
649
py
Python
ganonymizer-v3/app/api/controller.py
MSec-H2020/GANonymizer
3bacfbf2593e5ba9e4a8f4d654f53c8df0e55174
[ "Apache-2.0" ]
null
null
null
ganonymizer-v3/app/api/controller.py
MSec-H2020/GANonymizer
3bacfbf2593e5ba9e4a8f4d654f53c8df0e55174
[ "Apache-2.0" ]
null
null
null
ganonymizer-v3/app/api/controller.py
MSec-H2020/GANonymizer
3bacfbf2593e5ba9e4a8f4d654f53c8df0e55174
[ "Apache-2.0" ]
null
null
null
import base64 import io from flask import jsonify from PIL import Image import api.gano as gano def health(): return jsonify({"message": "hello"}), 200 def image(inp_b64): print("\n---------------------------------------------") inp_io = io.BytesIO(base64.b64decode(inp_b64)) inp_io.seek(0) inp...
22.37931
60
0.571649
75eaa4e7d00bdaed8ea5196cee41c4a0b88a3756
5,198
py
Python
pagewalker/pagewalker/report/database/resource.py
rafal-qa/page-walker
8940a819d436d46f729c9307effc5118d692cad0
[ "MIT" ]
16
2018-07-08T19:20:15.000Z
2021-01-08T22:08:49.000Z
pagewalker/pagewalker/report/database/resource.py
rafal-qa/page-walker
8940a819d436d46f729c9307effc5118d692cad0
[ "MIT" ]
null
null
null
pagewalker/pagewalker/report/database/resource.py
rafal-qa/page-walker
8940a819d436d46f729c9307effc5118d692cad0
[ "MIT" ]
5
2018-10-26T13:08:10.000Z
2020-06-20T21:03:17.000Z
class DatabaseResource(object): def __init__(self, conn): self.conn = conn def resource_list_only(self): c = self.conn.cursor() c.execute(""" SELECT DISTINCT RS.id, RS.url, RS.url_blacklisted, RS.is_truncated, RS.is_external FROM devtools_request AS RQ ...
39.082707
111
0.602732
7bc8c5173aba14a6be079b78227f14a101b2763d
3,898
py
Python
gitlab-ci/tools/git_statistics/git_statistics.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
941
2021-05-10T08:14:14.000Z
2022-03-31T11:40:24.000Z
gitlab-ci/tools/git_statistics/git_statistics.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
4
2021-12-22T22:34:51.000Z
2022-03-31T07:34:19.000Z
gitlab-ci/tools/git_statistics/git_statistics.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
122
2021-05-10T08:21:23.000Z
2022-03-25T20:34:12.000Z
import os import re import subprocess from io import StringIO import pandas as pd pd.options.mode.chained_assignment = None REPOSITORIES = [ "nns-dapp", "internet-identity", "motoko", "sdk", "ic", "docs", "agent-js", "ic-staking-documentation", "keysmith", "examples", ] COLUMN...
24.987179
114
0.641868
f23603cf15b80660aa76284116c1923e465d7a04
4,105
py
Python
check_uptime_by_ssh.py
ovh/check-linux-by-ssh
e04c8df797818aabe492d687c46972cd212b6997
[ "MIT" ]
13
2015-01-19T22:53:22.000Z
2018-07-14T20:48:30.000Z
check_uptime_by_ssh.py
ovh/check-linux-by-ssh
e04c8df797818aabe492d687c46972cd212b6997
[ "MIT" ]
null
null
null
check_uptime_by_ssh.py
ovh/check-linux-by-ssh
e04c8df797818aabe492d687c46972cd212b6997
[ "MIT" ]
4
2015-12-19T20:36:43.000Z
2021-06-05T16:21:32.000Z
#!/usr/bin/env python # Copyright (C) 2013: # Gabes Jean, naparuba@gmail.com # Pasche Sebastien, sebastien.pasche@leshop.ch # # 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 ...
33.104839
122
0.692083
76eafba3fa434b84710216a668007383141525bf
92
py
Python
redeer/gui/forms.py
davidszotten/redeer
b6a7a2cc15e4b90b3868042d9131f9d10dcfb4d1
[ "MIT" ]
1
2019-06-27T13:24:17.000Z
2019-06-27T13:24:17.000Z
redeer/gui/forms.py
davidszotten/redeer
b6a7a2cc15e4b90b3868042d9131f9d10dcfb4d1
[ "MIT" ]
null
null
null
redeer/gui/forms.py
davidszotten/redeer
b6a7a2cc15e4b90b3868042d9131f9d10dcfb4d1
[ "MIT" ]
null
null
null
from django import forms class UploadForm(forms.Form): reader_xml = forms.FileField()
15.333333
34
0.75
22bed998f858c0ccc17ec9f605d1e155a60feb7d
63,433
py
Python
skbio/io/tests/test_registry.py
danodonovan/scikit-bio
06e0b513bfc8ef68e0899596d002b5c112049382
[ "BSD-3-Clause" ]
null
null
null
skbio/io/tests/test_registry.py
danodonovan/scikit-bio
06e0b513bfc8ef68e0899596d002b5c112049382
[ "BSD-3-Clause" ]
null
null
null
skbio/io/tests/test_registry.py
danodonovan/scikit-bio
06e0b513bfc8ef68e0899596d002b5c112049382
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
32.613368
79
0.599404
42bf9a0048bf583ff4c6703353e2bab9e4b67009
4,191
py
Python
simplejson/tests/test_speedups.py
Daybreak2019/simplejson
9be9bc0742d1dfaff26e418138643b5b253c4242
[ "AFL-2.1" ]
null
null
null
simplejson/tests/test_speedups.py
Daybreak2019/simplejson
9be9bc0742d1dfaff26e418138643b5b253c4242
[ "AFL-2.1" ]
null
null
null
simplejson/tests/test_speedups.py
Daybreak2019/simplejson
9be9bc0742d1dfaff26e418138643b5b253c4242
[ "AFL-2.1" ]
null
null
null
from __future__ import with_statement import sys import unittest from unittest import TestCase import simplejson from simplejson import encoder, decoder, scanner from simplejson.compat import PY3, long_type, b def has_speedups(): return encoder.c_make_encoder is not None def skip_if_speedups_missing(func): ...
35.820513
78
0.639704
155d88d6ec2d9f96a5de40384eb2a166715be02d
62,050
py
Python
pandas/core/internals/managers.py
fgebhart/pandas
524fc9c6790ddc4b151b6fb910a27073961c5fba
[ "BSD-3-Clause" ]
1
2020-09-01T12:13:29.000Z
2020-09-01T12:13:29.000Z
pandas/core/internals/managers.py
fgebhart/pandas
524fc9c6790ddc4b151b6fb910a27073961c5fba
[ "BSD-3-Clause" ]
null
null
null
pandas/core/internals/managers.py
fgebhart/pandas
524fc9c6790ddc4b151b6fb910a27073961c5fba
[ "BSD-3-Clause" ]
1
2022-03-08T15:07:11.000Z
2022-03-08T15:07:11.000Z
from collections import defaultdict import itertools from typing import ( Any, Callable, DefaultDict, Dict, List, Optional, Sequence, Tuple, TypeVar, Union, ) import warnings import numpy as np from pandas._libs import internals as libinternals, lib from pandas._typing import A...
31.771633
88
0.571378
804fc62be2edfbd57a9df58d3706561181aebbfc
2,750
py
Python
exercicios/1-9.py
figueredo/pda
26003d6f9a30fd928b3cc709379b456c8950b63c
[ "MIT" ]
null
null
null
exercicios/1-9.py
figueredo/pda
26003d6f9a30fd928b3cc709379b456c8950b63c
[ "MIT" ]
null
null
null
exercicios/1-9.py
figueredo/pda
26003d6f9a30fd928b3cc709379b456c8950b63c
[ "MIT" ]
null
null
null
# Altere o script para ao invés de imprimir o resultado na tela, salvar em um # arquivo no formato CSV (comma separated values). # Cada linha deverá conter o nome do investimento como primeiro elemento, # seguido dos resultados para cada ano. # # CSV: # - Tabela # - Cada do arquivo representa uma linha da tabela # - Co...
30.898876
83
0.740364
b90dcca8c743b4fcea2057c54f31539d724580ab
1,195
py
Python
core/django_arcade_core/game_event.py
kfields/django-arcade
24df3d43dde2d69df333529d8790507fb1f5fcf1
[ "MIT" ]
1
2021-10-03T05:44:32.000Z
2021-10-03T05:44:32.000Z
core/django_arcade_core/game_event.py
kfields/django-arcade
24df3d43dde2d69df333529d8790507fb1f5fcf1
[ "MIT" ]
null
null
null
core/django_arcade_core/game_event.py
kfields/django-arcade
24df3d43dde2d69df333529d8790507fb1f5fcf1
[ "MIT" ]
null
null
null
from .message import Event factories = None class GameEvent(Event): def __init__(self, id): super().__init__(id) @classmethod def produce(self, data): return factories[data['__typename']](data) class JoinEvent(GameEvent): def __init__(self, id, playerId): super().__init__(id...
25.978261
90
0.630126
e941fd9b62783c62be7a05f0cc49c912c6f8f459
2,985
py
Python
tests/aws_interfaces_tests/test_s3_interface.py
aws-samples/aws-iot-ota-deployment-tool
23ecbbcd37e92af4f37ba2b247f859d910fd6b80
[ "MIT-0" ]
28
2020-01-30T01:29:14.000Z
2022-03-06T06:31:58.000Z
tests/aws_interfaces_tests/test_s3_interface.py
aws-samples/aws-iot-ota-deployment-tool
23ecbbcd37e92af4f37ba2b247f859d910fd6b80
[ "MIT-0" ]
1
2021-06-02T02:39:39.000Z
2021-06-02T02:39:39.000Z
tests/aws_interfaces_tests/test_s3_interface.py
aws-samples/aws-iot-ota-deployment-tool
23ecbbcd37e92af4f37ba2b247f859d910fd6b80
[ "MIT-0" ]
5
2020-02-16T01:42:55.000Z
2022-02-24T14:57:16.000Z
import unittest from unittest.mock import Mock, call from unittest.mock import patch from aws_interfaces.s3_interface import S3Interface from botocore.exceptions import ClientError from pathlib import Path REGION = 'us-east-1' FILE_NAME = 'test.bin' BUCKET = 'testBucket' KEY = 'testObjectName' Path(FILE_NAME).touch()...
39.276316
109
0.709213
40813bf16b65e09f4c617102dc691a27354eab85
419
py
Python
django_project/users/signals.py
Amol0296/Blog_Post_Website
c08e729d0ffb435276e437b933987e15cb567484
[ "Apache-2.0" ]
null
null
null
django_project/users/signals.py
Amol0296/Blog_Post_Website
c08e729d0ffb435276e437b933987e15cb567484
[ "Apache-2.0" ]
null
null
null
django_project/users/signals.py
Amol0296/Blog_Post_Website
c08e729d0ffb435276e437b933987e15cb567484
[ "Apache-2.0" ]
null
null
null
from django.db.models.signals import post_save from django.contrib.auth.models import User from django.dispatch import receiver from .models import Profile @receiver(post_save,sender=User) def create_profile(sender,instance,created,**kwargs): if created: Profile.objects.create(user=instance) @receiver(p...
24.647059
53
0.775656
dca404d540bbc85c482d61234d182fc7b31e4de1
3,124
py
Python
contrib/testgen/base58.py
satcoin-dev/satcoin
a68f5965a8c28cfcaf8855a661ea3f15de9ae7d5
[ "MIT" ]
4
2021-02-28T04:34:58.000Z
2021-09-14T15:25:31.000Z
contrib/testgen/base58.py
satcoin-dev/satcoin
a68f5965a8c28cfcaf8855a661ea3f15de9ae7d5
[ "MIT" ]
null
null
null
contrib/testgen/base58.py
satcoin-dev/satcoin
a68f5965a8c28cfcaf8855a661ea3f15de9ae7d5
[ "MIT" ]
1
2021-06-18T13:13:17.000Z
2021-06-18T13:13:17.000Z
# Copyright (c) 2012-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Satcoin base58 encoding and decoding. Based on https://satcointalk.org/index.php?topic=1026.0 (public domain) ''' import has...
26.931034
97
0.621639
d0f3f4bfba6f60f95e5d2c4209f8fce6fe26be57
6,140
py
Python
benchmark.py
PRRAG/DeepSpeech-PyTorch
cc65e008dacce794309b55bc4d3d75e909731b56
[ "MIT" ]
1
2020-05-31T13:41:44.000Z
2020-05-31T13:41:44.000Z
benchmark.py
PRRAG/DeepSpeech-PyTorch
cc65e008dacce794309b55bc4d3d75e909731b56
[ "MIT" ]
null
null
null
benchmark.py
PRRAG/DeepSpeech-PyTorch
cc65e008dacce794309b55bc4d3d75e909731b56
[ "MIT" ]
null
null
null
""" This file is to test if the training can occur on the hardware we use or not """ import argparse import json import time import torch import torch.distributed as dist import torch.utils.data.distributed from apex.fp16_utils import FP16_Optimizer from apex.parallel import DistributedDataParallel from tqdm import ...
42.638889
113
0.696254
ce4d1cea8d8dfe4762588a5efb6ea66b669fa18f
9,239
py
Python
rawtools/gui/nsihdr.py
Topp-Roots-Lab/python-rawtools
f453388eba32eaa6cddc5decfd72a3dbb657b198
[ "BSD-3-Clause" ]
null
null
null
rawtools/gui/nsihdr.py
Topp-Roots-Lab/python-rawtools
f453388eba32eaa6cddc5decfd72a3dbb657b198
[ "BSD-3-Clause" ]
null
null
null
rawtools/gui/nsihdr.py
Topp-Roots-Lab/python-rawtools
f453388eba32eaa6cddc5decfd72a3dbb657b198
[ "BSD-3-Clause" ]
null
null
null
""""GUI for NSIHDR conversion tool""" import logging import os import tkinter as tk from enum import Enum from importlib.metadata import version from pprint import pformat from tkinter import (E, N, S, StringVar, Toplevel, W, filedialog, ttk) from rawtools import nsihdr from ttkthemes import ThemedTk __version__ = v...
35.671815
239
0.721182
8c3bb894da81c3e2c7b5a331b858a19d4e77093c
5,002
py
Python
docs/sphinx/conf.py
ExternalRepositories/CHAI
f9d3bd096d6d860e86145f2858f7d649fda3dcc4
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
73
2017-07-27T23:15:04.000Z
2022-01-30T17:59:43.000Z
docs/sphinx/conf.py
ExternalRepositories/CHAI
f9d3bd096d6d860e86145f2858f7d649fda3dcc4
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
107
2017-09-06T00:45:40.000Z
2022-03-31T23:35:15.000Z
docs/sphinx/conf.py
ExternalRepositories/CHAI
f9d3bd096d6d860e86145f2858f7d649fda3dcc4
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
19
2017-10-17T18:17:48.000Z
2021-08-13T22:19:40.000Z
############################################################################## # Copyright (c) 2016-20, Lawrence Livermore National Security, LLC and CHAI # project contributors. See the COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause ###############################################################...
30.315152
79
0.659936
a7b6ac7a413f2b8328de8de2d040a6b01674f9bf
4,492
py
Python
src/geometry.py
ralmeidabem/garoopa
76e7cd39ce939780c1725d8f287a00392bd58a3f
[ "MIT" ]
1
2019-11-13T14:14:38.000Z
2019-11-13T14:14:38.000Z
src/geometry.py
ralmeidabem/garoopa
76e7cd39ce939780c1725d8f287a00392bd58a3f
[ "MIT" ]
null
null
null
src/geometry.py
ralmeidabem/garoopa
76e7cd39ce939780c1725d8f287a00392bd58a3f
[ "MIT" ]
null
null
null
# Python program to implement Cohen Sutherland algorithm for line clipping. # Adapted from: https://www.geeksforgeeks.org/line-clipping-set-1-cohen-sutherland-algorithm/ # Defining x_max,y_max and x_min,y_min for rectangle # Since diagonal points are enough to define a rectangle # x_max = 10.0 # y_max = 8.0 # x_min = ...
33.774436
93
0.483081
2ffcbf3e566c0c3decf742827029005175ab88bf
227
py
Python
app/schemas/reset.py
Gingernaut/microAuth
0355147b571ed5d9e50ab534f13eb6eee6d9a219
[ "MIT" ]
28
2017-10-03T21:33:43.000Z
2021-03-04T08:04:36.000Z
app/schemas/reset.py
Gingernaut/microAuth
0355147b571ed5d9e50ab534f13eb6eee6d9a219
[ "MIT" ]
406
2017-12-10T22:24:31.000Z
2021-07-26T12:16:38.000Z
app/schemas/reset.py
Gingernaut/microAuth
0355147b571ed5d9e50ab534f13eb6eee6d9a219
[ "MIT" ]
4
2019-03-04T14:14:25.000Z
2021-08-07T12:47:47.000Z
from pydantic import BaseModel from datetime import datetime class Reset(BaseModel): id: int userId: int createdTime: datetime expireTime: datetime isValid: bool class Config: orm_mode = True
16.214286
30
0.69163
19603a84c5d15096f73a0244badbeff30854c5e2
569
py
Python
fs/utils.py
Trietptm-on-Coding-Algorithms/imageio
4afc0fbfb42021b9c4aec1abb2b7224ef8a8227c
[ "Apache-2.0" ]
5
2020-04-12T20:01:08.000Z
2021-01-03T13:27:04.000Z
fs/utils.py
0xPhoeniX/imageio
4afc0fbfb42021b9c4aec1abb2b7224ef8a8227c
[ "Apache-2.0" ]
null
null
null
fs/utils.py
0xPhoeniX/imageio
4afc0fbfb42021b9c4aec1abb2b7224ef8a8227c
[ "Apache-2.0" ]
1
2020-06-15T16:36:47.000Z
2020-06-15T16:36:47.000Z
def hexdump(src, size=None, length=16): if src is None: return '' FILTER = ''.join([(len(repr(chr(x))) == 3) and chr(x) or '.' for x in range(256)]) if size is None: size = len(src) size = min(size, len(src)) lines = [] for c in range(0, size, length): chars = src[c:c +...
33.470588
86
0.506151
9656cc57c2718ca6f3c0689722f3c5e5861600c7
3,163
py
Python
clients/python-flask/generated/openapi_server/models/default_crumb_issuer.py
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/python-flask/generated/openapi_server/models/default_crumb_issuer.py
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/python-flask/generated/openapi_server/models/default_crumb_issuer.py
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server import util class DefaultCrumbIssuer(Model): """NOTE: This class is auto generated by Open...
27.034188
101
0.635789
0f43ba839dca1e05ce4209d68691bcb72939baa0
2,156
py
Python
vspk/v6/fetchers/nubridgeinterfaces_fetcher.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
19
2016-03-07T12:34:22.000Z
2020-06-11T11:09:02.000Z
vspk/v6/fetchers/nubridgeinterfaces_fetcher.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
40
2016-06-13T15:36:54.000Z
2020-11-10T18:14:43.000Z
vspk/v6/fetchers/nubridgeinterfaces_fetcher.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
15
2016-06-10T22:06:01.000Z
2020-12-15T18:37:42.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # 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 copyrigh...
40.679245
86
0.731447
65ac07853eaf291b3793ee277bdaf6629604fa1c
2,791
py
Python
app/models.py
ethan-leba/flask-twitter
27785b88354679d853fe86e6e8629ee72b1d40a4
[ "MIT" ]
null
null
null
app/models.py
ethan-leba/flask-twitter
27785b88354679d853fe86e6e8629ee72b1d40a4
[ "MIT" ]
null
null
null
app/models.py
ethan-leba/flask-twitter
27785b88354679d853fe86e6e8629ee72b1d40a4
[ "MIT" ]
null
null
null
from . import db, login_manager from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash import datetime @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class Role(db.Model): __tablename__ = 'role' id = db.Column(db....
34.8875
91
0.687209
dc4c072d298ba73ca41d202c60b27cb7146431ec
77
py
Python
kernel/security/protol/spdz/communicator/__init__.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
39
2021-10-12T01:43:27.000Z
2022-03-28T04:46:35.000Z
kernel/security/protol/spdz/communicator/__init__.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
6
2021-10-14T02:11:47.000Z
2022-03-23T02:41:50.000Z
kernel/security/protol/spdz/communicator/__init__.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
10
2021-10-14T09:36:03.000Z
2022-02-10T11:05:12.000Z
from kernel.security.protol.spdz.communicator.federation import Communicator
38.5
76
0.883117
e5082ecefb8e645b6c80618d0c3da7b05f0c5c78
669
py
Python
doc/source/tutorial-schema.py
techdragon/validatingconfigparser
8cf939c75330db53901072eb4e3f21dec58b05e5
[ "Apache-2.0" ]
null
null
null
doc/source/tutorial-schema.py
techdragon/validatingconfigparser
8cf939c75330db53901072eb4e3f21dec58b05e5
[ "Apache-2.0" ]
null
null
null
doc/source/tutorial-schema.py
techdragon/validatingconfigparser
8cf939c75330db53901072eb4e3f21dec58b05e5
[ "Apache-2.0" ]
null
null
null
import validatingconfigparser import formencode.validators as validators import formencode.schema as schema class MySchema(schema.Schema): # Not validating names! gender = validators.OneOf(['male', 'female']) age = validators.Int(min=0) married = validators.StringBool() weight = validators.Number(...
25.730769
61
0.724963
f9f71bd238fc5681a1e1929cc06db1c1c53b3dfb
4,291
py
Python
zerver/webhooks/wordpress/tests.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
4
2019-06-04T09:06:53.000Z
2019-06-04T09:07:47.000Z
zerver/webhooks/wordpress/tests.py
991rajat/zulip
648a60baf63f9afade83148bd9ae1fc480510178
[ "Apache-2.0" ]
4
2020-06-06T00:51:42.000Z
2022-02-10T21:38:40.000Z
zerver/webhooks/wordpress/tests.py
991rajat/zulip
648a60baf63f9afade83148bd9ae1fc480510178
[ "Apache-2.0" ]
1
2020-02-06T13:56:40.000Z
2020-02-06T13:56:40.000Z
# -*- coding: utf-8 -*- from zerver.lib.test_classes import WebhookTestCase class WordPressHookTests(WebhookTestCase): STREAM_NAME = 'wordpress' URL_TEMPLATE = "/api/v1/external/wordpress?api_key={api_key}&stream={stream}" FIXTURE_DIR_NAME = 'wordpress' def test_publish_post(self) -> None: ex...
46.641304
114
0.661617
6c84c8a0c6f7b3464b36c3c9c33b6886e46eef0b
225,788
py
Python
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_sql_resources_operations.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_sql_resources_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_sql_resources_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
48.390056
2,139
0.679948
fd3c5fd1d3615bc0be462a474e0d1a389d6b01cf
1,326
py
Python
softuniada_2021/04_easter_surprise.py
elenaborisova/Softuniada-Hackathon
0816cb560fe76791f1f419e1de7cb6d50de7ea4a
[ "MIT" ]
null
null
null
softuniada_2021/04_easter_surprise.py
elenaborisova/Softuniada-Hackathon
0816cb560fe76791f1f419e1de7cb6d50de7ea4a
[ "MIT" ]
null
null
null
softuniada_2021/04_easter_surprise.py
elenaborisova/Softuniada-Hackathon
0816cb560fe76791f1f419e1de7cb6d50de7ea4a
[ "MIT" ]
null
null
null
def is_valid(curr_row, curr_col, change_row, change_col, matrix, initial_symbol): return 0 <= curr_row + change_row < rows_count and \ 0 <= curr_col + change_col < cols_count and \ matrix[curr_row+change_row][curr_col+change_col] == initial_symbol def traverse(curr_row, curr_col, initial_pos...
39
129
0.705128
89e1635fefdf28e4461ec626c2a22a062ec6d3ac
3,673
py
Python
z80/assertions.py
stefan-wolfsheimer/Z80-ASM
42863f5e329e27fb3b9375510695c027348dd793
[ "MIT" ]
2
2021-03-05T15:02:50.000Z
2021-10-30T21:53:43.000Z
z80/assertions.py
stefan-wolfsheimer/Z80-ASM
42863f5e329e27fb3b9375510695c027348dd793
[ "MIT" ]
null
null
null
z80/assertions.py
stefan-wolfsheimer/Z80-ASM
42863f5e329e27fb3b9375510695c027348dd793
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2018 stefan-wolfsheimer # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, me...
33.390909
79
0.640893
a95ce6e045bb48355cb802e62f727f6f8e5ebcfc
1,750
py
Python
games/spiders/cutter.py
jrcowart/megaminer_spring2016
115f71dadde49e170af50b2f55127ba184cfb2cb
[ "MIT" ]
4
2016-07-25T01:06:05.000Z
2018-11-17T09:02:43.000Z
games/spiders/cutter.py
jrcowart/megaminer_spring2016
115f71dadde49e170af50b2f55127ba184cfb2cb
[ "MIT" ]
null
null
null
games/spiders/cutter.py
jrcowart/megaminer_spring2016
115f71dadde49e170af50b2f55127ba184cfb2cb
[ "MIT" ]
2
2018-11-17T09:02:43.000Z
2019-11-13T11:09:41.000Z
# Generated by Creer at 10:56PM on April 20, 2016 UTC, git hash: '087b1901032ab5bed5806b24830233eac5c2de55' # This is a simple class to represent the Cutter object in the game. You can extend it by adding utility functions here in this file. from games.spiders.spiderling import Spiderling # <<-- Creer-Merge: imports ...
35
135
0.672
1e61f5cb0daf08ea67f29a2b7d7c7210b7dc5e6b
11,117
py
Python
src/pico_code/pico/explorer-base/ExplorerWorkout2.py
romilly/pico-code
57bbc14e0a5c3e874162fcfb1fcd7cca3a838cce
[ "MIT" ]
15
2021-02-04T02:38:23.000Z
2022-01-20T17:55:15.000Z
src/pico_code/pico/explorer-base/ExplorerWorkout2.py
romilly/pico-code
57bbc14e0a5c3e874162fcfb1fcd7cca3a838cce
[ "MIT" ]
1
2021-05-06T10:09:51.000Z
2021-05-06T10:09:51.000Z
src/pico_code/pico/explorer-base/ExplorerWorkout2.py
romilly/pico-code
57bbc14e0a5c3e874162fcfb1fcd7cca3a838cce
[ "MIT" ]
2
2021-02-04T20:09:01.000Z
2021-02-18T16:16:22.000Z
# Physical Computing with Graphics on Pico Explorer # Tony Goodhew 30th Jan 2021 # 10K Ohm potentiometer on ADC0 # LED with 470 Ohm resistor on GP4 import picoexplorer as display import utime, random, math from machine import Pin width = display.get_width() height = display.get_height() display_buffer = bytearray(width...
29.80429
77
0.601421
b3906d3ddaa50c3c0c9bf004ff3230845a39cec4
2,706
py
Python
apps/beeswax/src/beeswax/management/commands/create_table_query_data.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
apps/beeswax/src/beeswax/management/commands/create_table_query_data.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
apps/beeswax/src/beeswax/management/commands/create_table_query_data.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
31.465116
97
0.734294
d0393989651b3644a64a62b6f74f91ce19d7cb29
945
py
Python
tests/unix/ffi_float.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
tests/unix/ffi_float.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
tests/unix/ffi_float.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# test ffi float support try: import ffi except ImportError: print("SKIP") raise SystemExit def ffi_open(names): err = None for n in names: try: mod = ffi.open(n) return mod except OSError as e: err = e raise err libc = ffi_open(("libc.so",...
23.04878
81
0.568254
801bd14891412bfcebf8217f7efd06c55f3de54d
736
py
Python
optimal_experiments_Huber_1.py
superporchetta/robust_linear_regression
d0b0022b442d7498ebecd1dcd44b5b2bea9a2459
[ "MIT" ]
null
null
null
optimal_experiments_Huber_1.py
superporchetta/robust_linear_regression
d0b0022b442d7498ebecd1dcd44b5b2bea9a2459
[ "MIT" ]
null
null
null
optimal_experiments_Huber_1.py
superporchetta/robust_linear_regression
d0b0022b442d7498ebecd1dcd44b5b2bea9a2459
[ "MIT" ]
null
null
null
from src.utils import experiment_runner from itertools import product if __name__ == "__main__": deltas_large = [0.5, 1.0, 2.0, 5.0, 10.0] # 0.5, 1.0, 2.0, 5.0, 10.0 percentages = [0.1, 0.3] # 0.01, 0.05, 0.1, 0.3 loss_name = "Huber" experiment_settings = [ { "loss_name" : loss_na...
28.307692
72
0.535326
78b974e828684d14f435a7f273a108f37a36d762
1,981
py
Python
dhost/notifications/views.py
dhost-project/dhost
ca6a4a76a737174b24165e20edeb1d1019a9424b
[ "MIT" ]
null
null
null
dhost/notifications/views.py
dhost-project/dhost
ca6a4a76a737174b24165e20edeb1d1019a9424b
[ "MIT" ]
67
2021-07-06T11:50:25.000Z
2021-10-14T13:45:51.000Z
dhost/notifications/views.py
dhost-project/dhost
ca6a4a76a737174b24165e20edeb1d1019a9424b
[ "MIT" ]
null
null
null
from rest_framework.decorators import action from rest_framework.response import Response from dhost.api.viewsets import DestroyListRetrieveViewSet from .models import Notification from .serializers import NotificationSerializer class NotificationViewSet(DestroyListRetrieveViewSet): queryset = Notification.obje...
34.754386
66
0.674407
ec953bf462daf5f05c4704c4cf5bd5057288f255
726
py
Python
test_project/forward_different_fields/urls.py
dr-rompecabezas/django-autocomplete-light
4adff74ac4b20a644f57d2a40a283ed79264543d
[ "MIT" ]
null
null
null
test_project/forward_different_fields/urls.py
dr-rompecabezas/django-autocomplete-light
4adff74ac4b20a644f57d2a40a283ed79264543d
[ "MIT" ]
null
null
null
test_project/forward_different_fields/urls.py
dr-rompecabezas/django-autocomplete-light
4adff74ac4b20a644f57d2a40a283ed79264543d
[ "MIT" ]
null
null
null
from dal import autocomplete from django.urls import re_path as url class ListWithForwardsView(autocomplete.Select2ListView): def get_list(self): self.forwarded.get("name") self.forwarded.get("checkbox") self.forwarded.get("select") self.forwarded.get("select_radio") self....
25.928571
57
0.666667
17ffa3521ff98fcad5bd2483ac4000a37213f0c9
33,006
py
Python
muranoclient/tests/functional/cli/test_murano.py
starlingx-staging/stx-python-muranoclient
c4e5a5e36ee1e1920f1639ecda981c97bd4c0a03
[ "Apache-2.0" ]
null
null
null
muranoclient/tests/functional/cli/test_murano.py
starlingx-staging/stx-python-muranoclient
c4e5a5e36ee1e1920f1639ecda981c97bd4c0a03
[ "Apache-2.0" ]
null
null
null
muranoclient/tests/functional/cli/test_murano.py
starlingx-staging/stx-python-muranoclient
c4e5a5e36ee1e1920f1639ecda981c97bd4c0a03
[ "Apache-2.0" ]
1
2019-01-11T16:13:46.000Z
2019-01-11T16:13:46.000Z
# Copyright (c) 2015 Mirantis, 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 w...
37.168919
79
0.592014
63ccf626379578406f3ac061aa9d1f454fd611bd
10,911
py
Python
pyspherepack/box.py
cunni/pyspherepack
a5f87619eeac211472a9c3cab3632c31477beba9
[ "MIT" ]
1
2020-02-29T04:17:09.000Z
2020-02-29T04:17:09.000Z
pyspherepack/box.py
cunni/pyspherepack
a5f87619eeac211472a9c3cab3632c31477beba9
[ "MIT" ]
1
2019-07-29T10:06:45.000Z
2019-07-29T10:06:45.000Z
pyspherepack/box.py
cunni/pyspherepack
a5f87619eeac211472a9c3cab3632c31477beba9
[ "MIT" ]
null
null
null
import autograd.numpy as np from autograd import grad from autograd.misc.optimizers import adam import matplotlib matplotlib.use('Agg') # http://www.davidketcheson.info/2015/01/13/using_matplotlib_image_comparison.html from matplotlib import pyplot as plt from matplotlib import interactive interactive(True) #import py...
57.426316
285
0.630006
3256534b6267a9a08b85923f4bc3e4078c18f9cf
9,974
py
Python
official/nlp/configs/encoders.py
franzigeiger/models
8756b1176c70256e082d865580adbc9e09ce3036
[ "Apache-2.0" ]
null
null
null
official/nlp/configs/encoders.py
franzigeiger/models
8756b1176c70256e082d865580adbc9e09ce3036
[ "Apache-2.0" ]
null
null
null
official/nlp/configs/encoders.py
franzigeiger/models
8756b1176c70256e082d865580adbc9e09ce3036
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 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 ...
40.544715
80
0.755564
8f79e93200ec47f8635d0f58c9e3545822ecad59
619
py
Python
Algorithms/Sorting/Selection_Sort/Selection_Sort.py
debarshi-1999/DSA-Library
f9ebf63ca50c8bbd7538313b3c7aeddcc27fd198
[ "MIT" ]
30
2020-10-08T17:44:47.000Z
2022-03-23T18:05:06.000Z
Algorithms/Sorting/Selection_Sort/Selection_Sort.py
debarshi-1999/DSA-Library
f9ebf63ca50c8bbd7538313b3c7aeddcc27fd198
[ "MIT" ]
118
2020-10-08T04:29:44.000Z
2021-12-10T06:22:26.000Z
Algorithms/Sorting/Selection_Sort/Selection_Sort.py
debarshi-1999/DSA-Library
f9ebf63ca50c8bbd7538313b3c7aeddcc27fd198
[ "MIT" ]
125
2020-10-08T04:34:19.000Z
2022-03-30T19:16:27.000Z
def Selection_Sort(arr): for i in range(len(arr)): mins=i for k in range(i+1,len(arr)): if(arr[k] < arr[mins]): mins=k q=arr[i] arr[i]=arr[mins] arr[mins]=q #swapping is donr print(arr) Selection_Sort([4,2,4,2,1,0,6,7]) #Algorith followed is: #selection_Sort(array): # for i=0 to len(arra...
23.807692
79
0.668821
e97a252d70337dc042ec30f6542715bb0e66bc7d
5,978
py
Python
coto/session/session.py
wvanheerde/coto
d7eeb2e98a24b743d879ef5e2da9cbbacc417d8d
[ "Apache-2.0" ]
null
null
null
coto/session/session.py
wvanheerde/coto
d7eeb2e98a24b743d879ef5e2da9cbbacc417d8d
[ "Apache-2.0" ]
null
null
null
coto/session/session.py
wvanheerde/coto
d7eeb2e98a24b743d879ef5e2da9cbbacc417d8d
[ "Apache-2.0" ]
null
null
null
import requests import json from urllib.parse import unquote from colors import color from .. import clients def dr(r): for i in r.history + [r]: if i.status_code < 400: fg = 'green' else: fg = 'red' print() print( color( str(i....
31.967914
149
0.537471
9be4528212577315fb17a1f59df18efd93534fa0
1,320
py
Python
server/authentication/tests/test_refresh_to_access.py
Aradhya-Tripathi/free-watch
c3353c0eec8d545372f22d6ac437ed71c1940f70
[ "MIT" ]
5
2021-10-09T09:36:12.000Z
2021-12-14T17:03:31.000Z
server/authentication/tests/test_refresh_to_access.py
Aradhya-Tripathi/fire-watch
c3353c0eec8d545372f22d6ac437ed71c1940f70
[ "MIT" ]
8
2022-02-21T19:01:49.000Z
2022-03-05T20:43:05.000Z
server/authentication/tests/test_refresh_to_access.py
Aradhya-Tripathi/free-watch
c3353c0eec8d545372f22d6ac437ed71c1940f70
[ "MIT" ]
1
2021-12-17T09:12:49.000Z
2021-12-17T09:12:49.000Z
from unittest import TestCase from authentication.issue_jwt import AuthToken class TestAccessToRefresh(TestCase): auth_token = AuthToken() def test_access_token_as_refresh(self): tokens = self.auth_token.generate_key( payload={"user": "TestUser", "age": 10}, get_refresh=True, is_admin=Tr...
40
87
0.675
4c1b000bf7d9f2dc46d4e87ce1f53c9cc2b93508
461
py
Python
dueros/card/LinkAccountCard.py
Mryan2005/bot-sdk-python
f961aedf141e966badd5cd577ad8913dd9733998
[ "Apache-2.0" ]
70
2018-01-04T06:47:58.000Z
2021-07-28T03:08:48.000Z
dueros/card/LinkAccountCard.py
mlzboy/bot-sdk-python
664c90ec6d0abbb0844c030cd3114693a96b12ab
[ "Apache-2.0" ]
16
2018-01-02T15:25:23.000Z
2020-03-14T07:25:44.000Z
dueros/card/LinkAccountCard.py
mlzboy/bot-sdk-python
664c90ec6d0abbb0844c030cd3114693a96b12ab
[ "Apache-2.0" ]
32
2018-01-09T10:19:46.000Z
2021-05-06T08:35:52.000Z
#!/usr/bin/env python3 # -*- encoding=utf-8 -*- # description: # author:jack # create_time: 2018/8/18 from dueros.card.BaseCard import BaseCard import dueros.card.CardType as CardType class LinkAccountCard(BaseCard): """ 第三方账号授权 debug模式:要将回调地址域名替换下 https://xiaodu-dbp.baidu.com/xxxx """ def __i...
18.44
58
0.681128
2ed303150831a2c17fbed9011edadc60573438f0
7,316
py
Python
homeassistant/components/mill/sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/mill/sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/mill/sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Support for mill wifi-enabled home heaters.""" from __future__ import annotations import mill from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const imp...
32.515556
85
0.688218
aba79612a9931a2b9ff859972f110f09d3fdd8ff
13,460
py
Python
lib/python2.7/site-packages/pysaml2-4.0.5-py2.7.egg/saml2/attributemaps/saml_uri.py
crav7/ProjectDjango
10dc03919b1fcfc34d2ddc93b85989638399e3e9
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pysaml2-4.0.5-py2.7.egg/saml2/attributemaps/saml_uri.py
crav7/ProjectDjango
10dc03919b1fcfc34d2ddc93b85989638399e3e9
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pysaml2-4.0.5-py2.7.egg/saml2/attributemaps/saml_uri.py
crav7/ProjectDjango
10dc03919b1fcfc34d2ddc93b85989638399e3e9
[ "MIT" ]
null
null
null
EDUCOURSE_OID = 'urn:oid:1.3.6.1.4.1.5923.1.6.1.' EDUPERSON_OID = 'urn:oid:1.3.6.1.4.1.5923.1.1.1.' LDAPGVAT_OID = 'urn:oid:1.2.40.0.10.2.1.1.' # ldap.gv.at definitions as specified in http://www.ref.gv.at/AG-IZ-PVP2-Version-2-1-0-2.2754.0.html UCL_DIR_PILOT = 'urn:oid:0.9.2342.19200300.100.1.' X500ATTR_OID = 'urn:oid:...
45.016722
144
0.623328
c0ca1e4dd1d248cc6fb8faf3993d88c8d62ad378
7,429
py
Python
test/fuzz/test_runner.py
satcoin-dev/satcoin
a68f5965a8c28cfcaf8855a661ea3f15de9ae7d5
[ "MIT" ]
4
2021-02-28T04:34:58.000Z
2021-09-14T15:25:31.000Z
test/fuzz/test_runner.py
satcoin-dev/satcoin
a68f5965a8c28cfcaf8855a661ea3f15de9ae7d5
[ "MIT" ]
null
null
null
test/fuzz/test_runner.py
satcoin-dev/satcoin
a68f5965a8c28cfcaf8855a661ea3f15de9ae7d5
[ "MIT" ]
1
2021-06-18T13:13:17.000Z
2021-06-18T13:13:17.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run fuzz test targets. """ import argparse import configparser import os import sys import subprocess impor...
36.063107
180
0.615964
921f719f5701e3ac447b555cce4710e299259fc2
38,037
py
Python
python/ccxt/async_support/theocean.py
GimmerBot/ccxt
36982385305506697d57e995a9ac0e2eb04dc9b4
[ "MIT" ]
3
2020-05-10T12:51:24.000Z
2021-04-20T21:36:43.000Z
python/ccxt/async_support/theocean.py
XiaoBinNumberOne/ccxt
b8aea97b018ef633df9866f44bf61565f44d8e6d
[ "MIT" ]
null
null
null
python/ccxt/async_support/theocean.py
XiaoBinNumberOne/ccxt
b8aea97b018ef633df9866f44bf61565f44d8e6d
[ "MIT" ]
2
2019-04-17T02:49:29.000Z
2019-06-01T06:45:50.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import hashlib import math from ccxt.base.errors import ExchangeError from ccxt.base....
45.120996
738
0.552383
1ec9010913ec1a55e6d755e7be3c367a3b55fa9e
4,576
py
Python
export.py
onecatcn/MedicalSeg
ba490c5c4541ac5bad0aefad6453ce0a48241ec7
[ "Apache-2.0" ]
null
null
null
export.py
onecatcn/MedicalSeg
ba490c5c4541ac5bad0aefad6453ce0a48241ec7
[ "Apache-2.0" ]
null
null
null
export.py
onecatcn/MedicalSeg
ba490c5c4541ac5bad0aefad6453ce0a48241ec7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
31.777778
79
0.580638
c563f37aa78b4ba0da1cac35d56971c44f826db3
16,973
py
Python
controller.py
dexterfichuk/neural-architecture-search
d1fe391d7ab48df36eb2a1fc1efeaf4ae87d58c5
[ "MIT" ]
1
2022-03-16T06:04:14.000Z
2022-03-16T06:04:14.000Z
controller.py
DanielLSM/neural-architecture-search
87da6fe0a3e1599f6ee3192a22cfbb5b0b317698
[ "MIT" ]
null
null
null
controller.py
DanielLSM/neural-architecture-search
87da6fe0a3e1599f6ee3192a22cfbb5b0b317698
[ "MIT" ]
null
null
null
import numpy as np import pprint from collections import OrderedDict from keras import backend as K import tensorflow as tf import os if not os.path.exists('weights/'): os.makedirs('weights/') class StateSpace: ''' State Space manager Provides utilit functions for holding "states" / "actions" that ...
37.467991
119
0.564013
fb7e63a6b251dbc47fe7df5f154a3e724232bdd1
9,967
py
Python
arjuna-samples/arjex/test/pkg/rules/check_rules_06_tags.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna-samples/arjex/test/pkg/rules/check_rules_06_tags.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna-samples/arjex/test/pkg/rules/check_rules_06_tags.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
# This file is a part of Arjuna # Copyright 2015-2020 Rahul Verma # Website: www.RahulVerma.net # 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...
33.558923
74
0.643624
631e995958db992d536f4bb7679f0b0cef558f77
525
py
Python
vut/lib/python3.8/site-packages/pipenv/vendor/tomlkit/toml_file.py
dan-mutua/djangowk1
1e5dcb6443ef21451e21845ec639198719e11b10
[ "MIT" ]
6,263
2017-01-20T17:41:36.000Z
2022-02-15T20:48:57.000Z
vut/lib/python3.8/site-packages/pipenv/vendor/tomlkit/toml_file.py
dan-mutua/djangowk1
1e5dcb6443ef21451e21845ec639198719e11b10
[ "MIT" ]
1,100
2017-01-20T19:41:52.000Z
2017-12-06T09:15:13.000Z
vut/lib/python3.8/site-packages/pipenv/vendor/tomlkit/toml_file.py
dan-mutua/djangowk1
1e5dcb6443ef21451e21845ec639198719e11b10
[ "MIT" ]
366
2017-01-21T10:06:52.000Z
2021-11-25T17:09:19.000Z
import io from .api import loads from .toml_document import TOMLDocument class TOMLFile(object): """ Represents a TOML file. """ def __init__(self, path): # type: (str) -> None self._path = path def read(self): # type: () -> TOMLDocument with io.open(self._path, encoding="utf-...
23.863636
61
0.588571
f3d2d8bb7176bf227731f7faf543cba5f9e31935
936
py
Python
settings_example.py
alanmitchell/solar-summary
60647d50645ec1464e91b8b7d974be86c26c70de
[ "MIT" ]
null
null
null
settings_example.py
alanmitchell/solar-summary
60647d50645ec1464e91b8b7d974be86c26c70de
[ "MIT" ]
null
null
null
settings_example.py
alanmitchell/solar-summary
60647d50645ec1464e91b8b7d974be86c26c70de
[ "MIT" ]
null
null
null
"""This is a sample settings.py file. A 'settings.py' needs to be included in the directory where the script runs. It needs to include the following attributes. """ # This is the API Key your receive from Enphase when you sign for an API Account. # See the Enphase API documentation for more details. API_KEY = '6d3222...
34.666667
81
0.766026
ba9148a0e92a5b8b375d31e60aa4ebe7485e4cbe
14,876
py
Python
tests/contrib/urllib3/test_urllib3.py
twosigmajab/dd-trace-py
6c582ae7d606a7c102a14731dff05560ebed7831
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/urllib3/test_urllib3.py
twosigmajab/dd-trace-py
6c582ae7d606a7c102a14731dff05560ebed7831
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/urllib3/test_urllib3.py
twosigmajab/dd-trace-py
6c582ae7d606a7c102a14731dff05560ebed7831
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import mock import pytest import urllib3 from ddtrace import config from ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY from ddtrace.contrib.urllib3 import patch from ddtrace.contrib.urllib3 import unpatch from ddtrace.ext import errors from ddtrace.ext import http from ddtrace.pin import Pin from tests.opentracer...
38.439276
119
0.606816
6962cf4215d8017950f35e451ef56952d710955b
368
py
Python
test/test_junosdev.py
jeffmca/ginpy
221651d9032e3ca5caee59ad821ec54fa21cf825
[ "Apache-2.0" ]
4
2018-01-04T00:52:07.000Z
2021-03-18T15:13:23.000Z
test/test_junosdev.py
jeffmca/jcfg
221651d9032e3ca5caee59ad821ec54fa21cf825
[ "Apache-2.0" ]
2
2018-01-15T18:21:13.000Z
2018-01-15T19:53:13.000Z
test/test_junosdev.py
jeffmca/ginpy
221651d9032e3ca5caee59ad821ec54fa21cf825
[ "Apache-2.0" ]
null
null
null
import unittest import ginpy from lxml import etree class Test_JunosDev(unittest.TestCase): def setUp(self): self.jdev = ginpy.JunosDev("3a-4.appriss.net", "sysjeff") def test_name(self): self.assertEqual( self.jdev.name, "3a-4.appriss.net") def test_get_config(self): self.assertI...
26.285714
67
0.703804
026c945fdb41df36cada9ef40e8acfd85d048ee3
1,369
py
Python
optical flow/optical_flow.py
magnusoy/OpenCV-Python-Applications
b6e41564d6b8007194c57c99469759a334959a76
[ "MIT" ]
4
2019-09-24T10:20:12.000Z
2022-03-10T20:21:40.000Z
optical flow/optical_flow.py
magnusoy/OpenCV-Python-Applications
b6e41564d6b8007194c57c99469759a334959a76
[ "MIT" ]
null
null
null
optical flow/optical_flow.py
magnusoy/OpenCV-Python-Applications
b6e41564d6b8007194c57c99469759a334959a76
[ "MIT" ]
null
null
null
import cv2 import numpy as np cap = cv2.VideoCapture(0) # Create old frame _, frame = cap.read() old_gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) # Lucas kanade params lk_params = dict(winSize = (15, 15), maxLevel = 4, criteria = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CR...
26.326923
114
0.608473
94b7c557c253161fe97d6101b944cc2db3a16be5
1,666
py
Python
usecase-4/usecase-4-step-8.py
ItWillBeBetter/data-protection
6db0f4c7089fe110af8065583959d7dc13dba45e
[ "MIT-0" ]
93
2019-01-02T16:51:45.000Z
2022-02-13T07:29:36.000Z
usecase-4/usecase-4-step-8.py
mukhendra/data-protection
6a4629855b181a4e5fbfb690b9b22203ff7e1b2e
[ "MIT-0" ]
2
2019-10-16T07:37:23.000Z
2021-06-07T10:38:37.000Z
usecase-4/usecase-4-step-8.py
mukhendra/data-protection
6a4629855b181a4e5fbfb690b9b22203ff7e1b2e
[ "MIT-0" ]
54
2019-01-06T21:39:57.000Z
2022-02-25T09:01:05.000Z
""" ##################################################################################### # # # Using curl command to succesfully authenticate webserver over a TLS connection # # This is a very simple web app that prints hello world ...
43.842105
90
0.37395
6cd759620c3667b7d810a39e31a7abecca523ede
1,130
py
Python
src/demo_hic_et_nunc/models.py
arrijabba/dipdup-py
fa90bfd889c473966e0d5aed98cec90a575fcb90
[ "MIT" ]
null
null
null
src/demo_hic_et_nunc/models.py
arrijabba/dipdup-py
fa90bfd889c473966e0d5aed98cec90a575fcb90
[ "MIT" ]
null
null
null
src/demo_hic_et_nunc/models.py
arrijabba/dipdup-py
fa90bfd889c473966e0d5aed98cec90a575fcb90
[ "MIT" ]
null
null
null
from enum import IntEnum from tortoise import Model, fields class SwapStatus(IntEnum): ACTIVE = 0 FINISHED = 1 CANCELED = 2 class Holder(Model): address = fields.CharField(36, pk=True) class Token(Model): id = fields.BigIntField(pk=True) creator = fields.ForeignKeyField('models.Holder', '...
26.27907
64
0.697345
b5e19a2466e28af5ad29d9aa063db81c928d0cac
61
py
Python
python1.py
hir09/moonwalk
bd641693e5dbbce986f5fc6ae752b12010b76aa2
[ "Apache-2.0" ]
6
2021-09-25T12:37:29.000Z
2022-01-14T15:29:10.000Z
python1.py
hir09/moonwalk
bd641693e5dbbce986f5fc6ae752b12010b76aa2
[ "Apache-2.0" ]
1
2021-12-13T17:50:18.000Z
2021-12-13T17:50:18.000Z
python1.py
hir09/moonwalk
bd641693e5dbbce986f5fc6ae752b12010b76aa2
[ "Apache-2.0" ]
7
2021-12-01T17:08:22.000Z
2022-02-26T17:47:50.000Z
print("successfully binding the python-script with Jenkins")
30.5
60
0.819672
49b56b5102c6a3d07b8ef06dee768989f04a8fbc
4,239
py
Python
cogs/help_command.py
RTa-technology/Satsuki
4e867a1b78552a616834503f0c3b7b977c053a0a
[ "MIT" ]
null
null
null
cogs/help_command.py
RTa-technology/Satsuki
4e867a1b78552a616834503f0c3b7b977c053a0a
[ "MIT" ]
null
null
null
cogs/help_command.py
RTa-technology/Satsuki
4e867a1b78552a616834503f0c3b7b977c053a0a
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*- coding: utf-8 -*- from typing import Optional from discord import Embed import discord from discord.ext import commands from discord.ext.commands.core import Group from discord.ext.commands import Cog, command from discord.ext.menus import ListPageSource, MenuPages from discord.utils imp...
33.117188
101
0.567115
e9e8090e3c5aab85920c783762c46293cb932237
10,964
py
Python
Configs/explore_configs/S13_explore_BT_No_A1c.py
yochaiedlitz/T2DM_UKB_predictions
1e6b22e3d51d515eb065d7d5f46408f86f33d0b8
[ "MIT" ]
1
2022-01-17T13:13:02.000Z
2022-01-17T13:13:02.000Z
Configs/explore_configs/S13_explore_BT_No_A1c.py
yochaiedlitz/T2DM_UKB_predictions
1e6b22e3d51d515eb065d7d5f46408f86f33d0b8
[ "MIT" ]
null
null
null
Configs/explore_configs/S13_explore_BT_No_A1c.py
yochaiedlitz/T2DM_UKB_predictions
1e6b22e3d51d515eb065d7d5f46408f86f33d0b8
[ "MIT" ]
null
null
null
import collections # Used for ordered dictionary from PRS import PRS_sumstats from UKBB_Functions import PROBA_FOLDER import sys Top_Gen_Dict = PRS_sumstats.Get_Top_Gen_Dict() Hyp_Param_Dict_A = collections.OrderedDict() Hyp_Param_Dict_R = collections.OrderedDict() # TRAIN_PATH = '/net/mraid08/export/jafar/UKBioBank/D...
59.912568
301
0.705764
667ee1028ad4f21a2d52a2c78280cd9fba1ce378
5,561
py
Python
tests/cephfs/cephfs_basic_tests.py
anrao19/cephci
0ec20acc108750f44a66dcf1c512922a91570f3e
[ "MIT" ]
null
null
null
tests/cephfs/cephfs_basic_tests.py
anrao19/cephci
0ec20acc108750f44a66dcf1c512922a91570f3e
[ "MIT" ]
null
null
null
tests/cephfs/cephfs_basic_tests.py
anrao19/cephci
0ec20acc108750f44a66dcf1c512922a91570f3e
[ "MIT" ]
null
null
null
import logging import random import string import traceback from ceph.ceph import CommandFailed from tests.cephfs.cephfs_utilsV1 import FsUtils logger = logging.getLogger(__name__) log = logger def run(ceph_cluster, **kw): try: fs_util = FsUtils(ceph_cluster) config = kw.get("config") b...
37.073333
119
0.539112
2d436b32d3291a9d37cd3e9e0331141e1f1ecb9d
550
py
Python
src/utsc/core/yaml/anchor.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
src/utsc/core/yaml/anchor.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
src/utsc/core/yaml/anchor.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
# coding: utf-8 from typing import TYPE_CHECKING if TYPE_CHECKING: # MYPY from typing import Any, Dict, Optional, List, Union, Optional, Iterator # NOQA anchor_attrib = "_yaml_anchor" class Anchor: __slots__ = "value", "always_dump" attrib = anchor_attrib def __init__(self): # type: () ->...
23.913043
83
0.616364
49919c123ec4a48a5d0308e1b6b05e748ddd3922
5,048
py
Python
tests/unit/beacons/test_telegram_bot_msg.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
tests/unit/beacons/test_telegram_bot_msg.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
tests/unit/beacons/test_telegram_bot_msg.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Python libs from __future__ import absolute_import import datetime import logging # Salt libs from salt.beacons import telegram_bot_msg # Salt testing libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMock, patch from tests.support.unit import TestCase...
35.801418
88
0.614501
ca4cf5fd6332c1c06019b69b9bd9719a6357539e
22,796
py
Python
tests/Hydro/KeplerDisk/TwoMatDisk.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
1
2020-10-21T01:56:55.000Z
2020-10-21T01:56:55.000Z
tests/Hydro/KeplerDisk/TwoMatDisk.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
tests/Hydro/KeplerDisk/TwoMatDisk.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
#ATS:test(SELF, "--CRKSPH=False --n=50 --cfl=0.25 --Cl=1.0 --Cq=2.0 --filter=0 --nPerh=1.01 --balsaraCorrection=True --fractionPressureSupport=0.25 --serialDump=True --compatibleEnergy=False --goalTime=50", label="Kepler SPH balsara no-compat, nPerh=1.5 fp=0.05", np=20) #ATS:test(SELF, "--CRKSPH=False --n=50 --cfl=0.25...
40.346903
270
0.518731
4884eebe759d91ddc832318d6faffdc2f8aa8339
18,469
py
Python
xarray/tests/test_indexing.py
kaipak/xarray
9ae7bce99ce33555d2e40e24e9c0ef5047eeef8f
[ "Apache-2.0" ]
null
null
null
xarray/tests/test_indexing.py
kaipak/xarray
9ae7bce99ce33555d2e40e24e9c0ef5047eeef8f
[ "Apache-2.0" ]
null
null
null
xarray/tests/test_indexing.py
kaipak/xarray
9ae7bce99ce33555d2e40e24e9c0ef5047eeef8f
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function import itertools import numpy as np import pandas as pd import pytest from xarray import DataArray, Dataset, Variable from xarray.core import indexing, nputils from xarray.core.pycompat import native_int_types from . import ( IndexerMaker, ReturnI...
39.71828
79
0.585468
7d743f6338afc9f7ba729e953bf8883f55bb8359
1,227
py
Python
pyranges/methods/call.py
iamjli/pyranges
52a0979db99c8b4d88e3e8a63558356e8baec70b
[ "MIT" ]
299
2019-03-22T18:28:01.000Z
2022-03-11T16:14:19.000Z
pyranges/methods/call.py
iamjli/pyranges
52a0979db99c8b4d88e3e8a63558356e8baec70b
[ "MIT" ]
157
2019-04-06T18:05:27.000Z
2022-03-07T14:50:10.000Z
pyranges/methods/call.py
iamjli/pyranges
52a0979db99c8b4d88e3e8a63558356e8baec70b
[ "MIT" ]
33
2019-04-12T14:44:53.000Z
2022-03-16T16:58:06.000Z
import pandas as pd import pyranges as pr def _handle_eval_return(self, result, col, as_pyranges, subset): """Handle return from eval. If col is set, add/update cols. If subset is True, use return series to subset PyRanges. Otherwise return PyRanges or dict of data.""" if as_pyranges: if not...
27.266667
99
0.607987
2a68170dcf2f846d4c5aba948b54702bb079da8c
15,503
py
Python
python/cuml/datasets/classification.py
Nicholas-7/cuml
324d4490dc5254e1188d1678e704622eb69678cb
[ "Apache-2.0" ]
2,743
2018-10-11T17:28:58.000Z
2022-03-31T19:20:50.000Z
python/cuml/datasets/classification.py
Nicholas-7/cuml
324d4490dc5254e1188d1678e704622eb69678cb
[ "Apache-2.0" ]
4,280
2018-10-11T22:29:57.000Z
2022-03-31T22:02:44.000Z
python/cuml/datasets/classification.py
Nicholas-7/cuml
324d4490dc5254e1188d1678e704622eb69678cb
[ "Apache-2.0" ]
454
2018-10-11T17:40:56.000Z
2022-03-25T17:07:09.000Z
# Copyright (c) 2020-2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
43.793785
79
0.629427
793b7ffea4bda20a637723fa1e85f66911d38c92
8,695
py
Python
google-cloud-sdk/lib/googlecloudsdk/api_lib/app/api/appengine_domains_api_client.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/googlecloudsdk/api_lib/app/api/appengine_domains_api_client.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/googlecloudsdk/api_lib/app/api/appengine_domains_api_client.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# 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...
35.929752
80
0.704888
d3cb5a84f2b68cf8e5ad3c57c0b0491ab6937c33
5,899
py
Python
src/miscellaneous scripts/Final File to Run/cnn_with_classWeights.py
Tirth27/Detecting-diabetic-retinopathy
86ba4fe616e15f72f509f1ed17a5b2dae8c84b88
[ "MIT" ]
22
2020-01-22T09:44:48.000Z
2022-03-12T19:02:46.000Z
src/miscellaneous scripts/Final File to Run/cnn_with_classWeights.py
Tirth27/Detecting-diabetic-retinopathy
86ba4fe616e15f72f509f1ed17a5b2dae8c84b88
[ "MIT" ]
3
2022-01-11T07:09:48.000Z
2022-02-18T21:45:45.000Z
src/miscellaneous scripts/Final File to Run/cnn_with_classWeights.py
Tirth27/Detecting-diabetic-retinopathy
86ba4fe616e15f72f509f1ed17a5b2dae8c84b88
[ "MIT" ]
15
2020-12-20T06:56:36.000Z
2022-02-22T03:22:08.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, BatchNormalization, MaxPooling2D from keras.layers.convolutional import Conv2D from keras.utils import normalize, np_utils, multi_gpu_model from keras.callbacks im...
37.573248
122
0.662994
2859439f3e87bfe1af4fd27cb032d192315fbdf5
650
py
Python
book_center/tests/utils/validators/test_validate_bot_catcher_empty.py
geodimitrov/Python-Web-Framework-SoftUni
06b7e11aee0024a564d1b266d5ed6271351ac116
[ "MIT" ]
null
null
null
book_center/tests/utils/validators/test_validate_bot_catcher_empty.py
geodimitrov/Python-Web-Framework-SoftUni
06b7e11aee0024a564d1b266d5ed6271351ac116
[ "MIT" ]
null
null
null
book_center/tests/utils/validators/test_validate_bot_catcher_empty.py
geodimitrov/Python-Web-Framework-SoftUni
06b7e11aee0024a564d1b266d5ed6271351ac116
[ "MIT" ]
null
null
null
from book_center.utils.validators import validate_bot_catcher_empty from django.core.exceptions import ValidationError from django.test import TestCase class ValidateBotCatcherTests(TestCase): def test_when_bot_detected__expect_exception(self): value = 'bot' expected_validation_error_message = 'Bo...
32.5
87
0.773846
14627cebad78eaf70a5fdf1c7c661dbc0832e71c
498
py
Python
test_tracker.py
dyboyce/capstone1
d6c2bb1246e346f3b03907bd0df44fe53d6082ea
[ "MIT" ]
null
null
null
test_tracker.py
dyboyce/capstone1
d6c2bb1246e346f3b03907bd0df44fe53d6082ea
[ "MIT" ]
null
null
null
test_tracker.py
dyboyce/capstone1
d6c2bb1246e346f3b03907bd0df44fe53d6082ea
[ "MIT" ]
null
null
null
import unittest import object_tracker from yolov3.utils import Load_Yolo_model import pandas as pd class MyTestCase(unittest.TestCase): def test_objecttracker(self): yolo = Load_Yolo_model() result = object_tracker.Object_tracking(yolo, "./IMAGES/test.mp4", "detection.avi", input_size=416, show=Tr...
29.294118
190
0.732932
fe4a74e1d3479297058af73e1866f22c92bae111
7,731
py
Python
distrib/refresh_branch.py
jakuta-tech/Labtainers
f674204022ad5d13ad6bccaf02a14a283470d23f
[ "Apache-2.0" ]
null
null
null
distrib/refresh_branch.py
jakuta-tech/Labtainers
f674204022ad5d13ad6bccaf02a14a283470d23f
[ "Apache-2.0" ]
null
null
null
distrib/refresh_branch.py
jakuta-tech/Labtainers
f674204022ad5d13ad6bccaf02a14a283470d23f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ''' This software was created by United States Government employees at The Center for Cybersecurity and Cyber Operations (C3O) at the Naval Postgraduate School NPS. Please note that within the United States, copyright protection is not available for any works created by United States Govern...
46.572289
147
0.676885
4bd523da3eb7ce7e5673411d45997ba29f30ce5d
2,590
py
Python
harness/determined/keras/_tf_keras_multi_gpu.py
ybt195/determined
913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2
[ "Apache-2.0" ]
1
2020-09-23T12:02:32.000Z
2020-09-23T12:02:32.000Z
harness/determined/keras/_tf_keras_multi_gpu.py
ybt195/determined
913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2
[ "Apache-2.0" ]
null
null
null
harness/determined/keras/_tf_keras_multi_gpu.py
ybt195/determined
913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2
[ "Apache-2.0" ]
null
null
null
import json import os from typing import Any, Dict, List, Optional, Tuple import tensorflow as tf import determined as det from determined import horovod from determined.horovod import hvd def get_horovod_config( exp_config: Dict[str, Any], hvd_config: horovod.HorovodContext, profile_frequency: Optional...
37
94
0.702317
4c6e0b4b577636128c9e984af1bcff892f0c842e
182
py
Python
pyAudioAnalysis/data/Greenway/create_wav_file.py
asherif844/diarization
ee9c9a7d88def5110bed2a3696cc484d29def646
[ "Unlicense" ]
null
null
null
pyAudioAnalysis/data/Greenway/create_wav_file.py
asherif844/diarization
ee9c9a7d88def5110bed2a3696cc484d29def646
[ "Unlicense" ]
null
null
null
pyAudioAnalysis/data/Greenway/create_wav_file.py
asherif844/diarization
ee9c9a7d88def5110bed2a3696cc484d29def646
[ "Unlicense" ]
null
null
null
from os import path from pydub import AudioSegment #source file src="DrGCWConversation.mp3" tgt="Conversation.wav" sound = AudioSegment.from_mp3(src) sound.export(tgt,format="wav")
20.222222
34
0.796703
1becdc5a7460719376e71261cca5190d16a439ba
36
py
Python
plusseg/modeling/backbone/__init__.py
tonysy/SegmentationToolbox.PyTorch
4d487dd81d0101bc5cdb7b2337776fdf1b5546ff
[ "MIT" ]
465
2020-03-03T09:25:16.000Z
2022-03-30T09:34:34.000Z
plusseg/modeling/backbone/__init__.py
tonysy/SegmentationToolbox.PyTorch
4d487dd81d0101bc5cdb7b2337776fdf1b5546ff
[ "MIT" ]
65
2020-03-13T12:45:29.000Z
2022-03-28T08:09:21.000Z
plusseg/modeling/backbone/__init__.py
tonysy/SegmentationToolbox.PyTorch
4d487dd81d0101bc5cdb7b2337776fdf1b5546ff
[ "MIT" ]
160
2020-03-04T06:09:17.000Z
2022-03-30T02:31:38.000Z
from .backbone import build_backbone
36
36
0.888889
3821946a4ecc13719b3e45ff6312d8a13be30123
4,910
py
Python
transient/scan.py
ALSchwalm/transient
e3471a8c1b7e65bf29b2d1ee80c4634bc07b2088
[ "MIT" ]
81
2020-05-16T15:42:41.000Z
2022-03-22T14:53:38.000Z
transient/scan.py
ALSchwalm/transient
e3471a8c1b7e65bf29b2d1ee80c4634bc07b2088
[ "MIT" ]
146
2020-05-15T21:56:19.000Z
2022-01-14T02:29:49.000Z
transient/scan.py
ALSchwalm/transient
e3471a8c1b7e65bf29b2d1ee80c4634bc07b2088
[ "MIT" ]
18
2020-05-16T16:43:01.000Z
2021-06-10T20:44:42.000Z
import base64 import datetime import json import logging import os import time from typing import ( Optional, List, Dict, Any, ) from . import ssh from . import utils _PID_ROOT = "/proc" SCAN_DATA_FD = "__TRANSIENT_DATA_FD" SCAN_ENVIRON_SENTINEL = "__TRANSIENT_PROCESS" class TransientInstance: q...
35.071429
107
0.613238
7f36fd509a15b1b80c1420e66f303d8fa24774e2
11,140
py
Python
homeassistant/generated/dhcp.py
MirkoLenz/hass-core
bda1f02371a70289c62576dcc7f18108c95cceb7
[ "Apache-2.0" ]
1
2022-02-12T08:45:37.000Z
2022-02-12T08:45:37.000Z
homeassistant/generated/dhcp.py
MirkoLenz/hass-core
bda1f02371a70289c62576dcc7f18108c95cceb7
[ "Apache-2.0" ]
83
2020-07-31T21:32:45.000Z
2022-03-31T10:00:54.000Z
homeassistant/generated/dhcp.py
MirkoLenz/hass-core
bda1f02371a70289c62576dcc7f18108c95cceb7
[ "Apache-2.0" ]
4
2020-10-29T22:56:04.000Z
2020-12-12T21:51:40.000Z
"""Automatically generated by hassfest. To update, run python3 -m script.hassfest """ # fmt: off DHCP = [ { "domain": "august", "hostname": "connect", "macaddress": "D86162*" }, { "domain": "august", "hostname": "connect", "macaddress": "B8B7F1*" }, ...
20.181159
47
0.402334
7d07eddcfbea1125404caf60a5f3e550775972bb
7,419
py
Python
reproducer/reproducer/pipeline/setup_repo.py
kingdido999/bugswarm
8ff2b3e71ca2598c354e8481c6b887cd5988816a
[ "BSD-3-Clause" ]
null
null
null
reproducer/reproducer/pipeline/setup_repo.py
kingdido999/bugswarm
8ff2b3e71ca2598c354e8481c6b887cd5988816a
[ "BSD-3-Clause" ]
null
null
null
reproducer/reproducer/pipeline/setup_repo.py
kingdido999/bugswarm
8ff2b3e71ca2598c354e8481c6b887cd5988816a
[ "BSD-3-Clause" ]
null
null
null
import distutils.dir_util import git import os import tarfile import time import urllib.request import zipfile from bugswarm.common import log from reproducer.reproduce_exception import ReproduceError def setup_repo(job, utils, job_dispatcher): to_setup_repo = False clone_repo = False wait_for_repo_clon...
42.637931
120
0.701307
131e18a8d3c3feea90a79cd51d913551193f3196
3,044
py
Python
Spark/4.py
bcspragu/Machine-Learning-Projects
b6832cbb9bb27d7e8253300f97a3ab84b1a555dc
[ "MIT" ]
null
null
null
Spark/4.py
bcspragu/Machine-Learning-Projects
b6832cbb9bb27d7e8253300f97a3ab84b1a555dc
[ "MIT" ]
null
null
null
Spark/4.py
bcspragu/Machine-Learning-Projects
b6832cbb9bb27d7e8253300f97a3ab84b1a555dc
[ "MIT" ]
1
2018-09-26T13:13:03.000Z
2018-09-26T13:13:03.000Z
import numpy as np import time from pyspark.conf import SparkConf from pyspark.context import SparkContext from operator import add from math import sqrt conf = SparkConf() sc = SparkContext(conf=conf) # Map the data to a tuple of (hour, (project code, page name), page views) # We combine project code and page name...
25.579832
79
0.648489
c903d375c56a960e6bfabd3231b47178f8431142
410
py
Python
complete/01 - 10/Problem7/main.py
this-jacob/project-euler
8f9e700e2875e84d081eade44fd2107db0a0ae12
[ "MIT" ]
null
null
null
complete/01 - 10/Problem7/main.py
this-jacob/project-euler
8f9e700e2875e84d081eade44fd2107db0a0ae12
[ "MIT" ]
null
null
null
complete/01 - 10/Problem7/main.py
this-jacob/project-euler
8f9e700e2875e84d081eade44fd2107db0a0ae12
[ "MIT" ]
null
null
null
import math def main(): primes = 1 it = 2 while primes < 10001: flag = True for i in range(2, int(math.ceil( it ** 0.5)) + 1): if it % i == 0: flag = False if it ** 0.5 == math.ceil(it ** 0.5): flag = False if flag: p...
14.642857
58
0.404878
eaebbd05ca117bed5eef83bec2c032f4b3d8f2f6
15,752
py
Python
Model&Data/CVAE/main.py
LiangjunFeng/Generative-Any-Shot-Learning
693c4ab92f2eb04cc453c870782710a982f98e80
[ "Apache-2.0" ]
null
null
null
Model&Data/CVAE/main.py
LiangjunFeng/Generative-Any-Shot-Learning
693c4ab92f2eb04cc453c870782710a982f98e80
[ "Apache-2.0" ]
null
null
null
Model&Data/CVAE/main.py
LiangjunFeng/Generative-Any-Shot-Learning
693c4ab92f2eb04cc453c870782710a982f98e80
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import argparse from cvae import run # python main.py --dataset AWA1 --few_train False --generalized True --num_shots 0 # generalized ZSL # CUDA_VISIBLE_DEVICES=0 nohup python -u main.py --dataset AWA1 --few_train False --num_shots 0 --generalized True > awa1.log 2>&1 & # CUDA_...
86.076503
195
0.733875
a73570e78e3eab20acb36b54877978e396f033de
15,907
py
Python
test/cbapi/psc/test_devicev6_api.py
mtmcgrew/cbapi-python
6e81507ff30a57eb1f13ae829c28e6ee339d2ad1
[ "MIT" ]
null
null
null
test/cbapi/psc/test_devicev6_api.py
mtmcgrew/cbapi-python
6e81507ff30a57eb1f13ae829c28e6ee339d2ad1
[ "MIT" ]
1
2021-03-31T19:51:07.000Z
2021-03-31T19:51:07.000Z
test/cbapi/psc/test_devicev6_api.py
deepakmishraapi/cbresponse
420fa05d0f7b9d61e5682d7a69a4098f6c32e61c
[ "MIT" ]
null
null
null
import pytest from cbapi.errors import ApiError from cbapi.psc.models import Device from cbapi.psc.rest_api import CbPSCBaseAPI from test.cbtest import StubResponse, patch_cbapi def test_get_device(monkeypatch): _was_called = False def _get_device(url): nonlocal _was_called assert url == "/ap...
41.424479
118
0.649337