hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1b2d3eb231f1084cbb9fe483ad06184b53119e
9,884
py
Python
tests/parameterized.py
QDucasse/PySOM
0b8801838a8902894dd606c0f84f1dcde79061d8
[ "MIT" ]
1
2020-10-06T13:57:43.000Z
2020-10-06T13:57:43.000Z
tests/parameterized.py
QDucasse/PySOM
0b8801838a8902894dd606c0f84f1dcde79061d8
[ "MIT" ]
null
null
null
tests/parameterized.py
QDucasse/PySOM
0b8801838a8902894dd606c0f84f1dcde79061d8
[ "MIT" ]
null
null
null
# Source: https://github.com/wolever/nose-parameterized # commit 0da3a2f0325c17858a5f5f1fdf1939520ce85e48, Aug 25, 2013 # Stefan: I removed the dependency on the six module, don't need the portability, now. # # tl;dr: all code code is licensed under simplified BSD, unless stated otherwise. # # Unless stated otherwise...
38.310078
86
0.600668
4a1b2e0eb2f9435bab1be938b7722f886c62447b
5,505
py
Python
3.7.0/lldb-3.7.0.src/test/lang/cpp/stl/TestSTL.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
3
2016-02-10T14:18:40.000Z
2018-02-05T03:15:56.000Z
3.7.0/lldb-3.7.0.src/test/lang/cpp/stl/TestSTL.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
1
2016-02-10T15:40:03.000Z
2016-02-10T15:40:03.000Z
3.7.0/lldb-3.7.0.src/test/lang/cpp/stl/TestSTL.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
null
null
null
""" Test some expressions involving STL data types. """ import os, time import unittest2 import lldb import lldbutil from lldbtest import * class STLTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) # rdar://problem/10400981 @unittest2.expectedFailure @skipUnlessDarwin @dsym_test ...
36.946309
119
0.64614
4a1b2f3cef995f9d33e0e9f7610186eaa6d67d4d
2,405
py
Python
azure/mgmt/sql/models/metric_definition.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
azure/mgmt/sql/models/metric_definition.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/sql/models/metric_definition.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
39.42623
97
0.633264
4a1b30dd7a5e6b92c805d76d767f7a3537160530
1,346
py
Python
samples/bottle/oauth_app.py
misscoded/bolt-python
ed26ea039c37cbd00551e25deac0fb1871c03aed
[ "MIT" ]
1
2020-11-11T19:19:20.000Z
2020-11-11T19:19:20.000Z
samples/bottle/oauth_app.py
misscoded/bolt-python
ed26ea039c37cbd00551e25deac0fb1871c03aed
[ "MIT" ]
null
null
null
samples/bottle/oauth_app.py
misscoded/bolt-python
ed26ea039c37cbd00551e25deac0fb1871c03aed
[ "MIT" ]
null
null
null
# ------------------------------------------------ # instead of slack_bolt in requirements.txt import sys sys.path.insert(1, "../../src") # ------------------------------------------------ import logging from slack_bolt import App from slack_bolt.adapter.bottle import SlackRequestHandler logging.basicConfig(level=lo...
22.065574
64
0.675334
4a1b31b37195c7991e5e0456dbabde351a90acfb
1,059
py
Python
qt_multiprocessing/close_app_helper.py
justengel/qt_multiprocessing
0cae9797a6ec21128313376222325ef40ec53d75
[ "MIT" ]
21
2018-08-14T03:46:03.000Z
2022-02-05T19:53:25.000Z
qt_multiprocessing/close_app_helper.py
justengel/qt_multiprocessing
0cae9797a6ec21128313376222325ef40ec53d75
[ "MIT" ]
null
null
null
qt_multiprocessing/close_app_helper.py
justengel/qt_multiprocessing
0cae9797a6ec21128313376222325ef40ec53d75
[ "MIT" ]
2
2018-08-14T03:39:24.000Z
2021-08-18T02:00:44.000Z
from qtpy import QtWidgets, QtCore __all__ = ['CloseAllFilter'] class CloseAllFilter(QtCore.QObject): """Event filter for closing all windows if the widget is closed.""" def eventFilter(self, receiver, event): results = super().eventFilter(receiver, event) if event.type() == QtCore.QEvent.Cl...
36.517241
85
0.558074
4a1b31bea58b5e05b920b01d391b5d9f6fe3e83b
2,957
py
Python
lib/mailer.py
5l1v3r1/PyMailPhisher
bfe4bf714c2cc8443dcc57c0f6c9fa5591ad1bd7
[ "Apache-2.0" ]
null
null
null
lib/mailer.py
5l1v3r1/PyMailPhisher
bfe4bf714c2cc8443dcc57c0f6c9fa5591ad1bd7
[ "Apache-2.0" ]
null
null
null
lib/mailer.py
5l1v3r1/PyMailPhisher
bfe4bf714c2cc8443dcc57c0f6c9fa5591ad1bd7
[ "Apache-2.0" ]
2
2020-07-01T08:39:42.000Z
2021-11-05T07:21:18.000Z
import json import sys import os import time import smtplib import getpass from lib.colors import style from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText # Sending email def send_mail(name, smtp_server, port): print(style.GREEN('[+]') + style.RESET(f'-- SMTP {name} Con...
39.959459
115
0.611769
4a1b324b001231c3e5d2ddc33c45ea57d244ed21
3,479
py
Python
sdk/lusid_asyncio/models/cds_seniority.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/cds_seniority.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/cds_seniority.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.3923 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
27.393701
98
0.568267
4a1b32594c3e7f9968a5ffe2779d0db2614fea08
451
py
Python
django_test/django_test/views.py
AraxnoAnarxo/neu_uni_py_20
65f8ed036fac0dc22771411933bc98362e88408c
[ "MIT" ]
null
null
null
django_test/django_test/views.py
AraxnoAnarxo/neu_uni_py_20
65f8ed036fac0dc22771411933bc98362e88408c
[ "MIT" ]
null
null
null
django_test/django_test/views.py
AraxnoAnarxo/neu_uni_py_20
65f8ed036fac0dc22771411933bc98362e88408c
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse import random from articles.models import Article, Tag # Create your views here. def home_page(request): random_idx = random.randint(0, Article.objects.count() -1) art_random = get_object_or_404(Article, id = random_id...
34.692308
74
0.760532
4a1b32b6800cb879fdb60ad8efd1a0d2901c316c
5,070
py
Python
xero_python/payrolluk/models/payment_line.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/payment_line.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/payment_line.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 OpenAPI spec version: 2.4.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel class PaymentLine(Base...
26.544503
86
0.603748
4a1b32f0931896f64137bc057705a82a7d66afbe
14,395
py
Python
tensorflow/python/keras/engine/training_eager_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/keras/engine/training_eager_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/keras/engine/training_eager_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.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...
40.209497
80
0.680861
4a1b332d1428bccf5fecf87d652dc2f443427f18
3,965
py
Python
train-theano.py
tim-pl-m/rnn-tutorial-rnnlm
6af6c8fe6a44c91a2eb73573b3f0a042b29614a6
[ "Apache-2.0" ]
32
2017-10-30T01:44:56.000Z
2021-12-23T06:40:47.000Z
train-theano.py
tim-pl-m/rnn-tutorial-rnnlm
6af6c8fe6a44c91a2eb73573b3f0a042b29614a6
[ "Apache-2.0" ]
1
2020-11-18T21:13:24.000Z
2020-11-18T21:13:24.000Z
train-theano.py
tim-pl-m/rnn-tutorial-rnnlm
6af6c8fe6a44c91a2eb73573b3f0a042b29614a6
[ "Apache-2.0" ]
19
2017-12-15T13:27:36.000Z
2020-08-18T00:16:38.000Z
#! /usr/bin/env python import csv import itertools import operator import numpy as np import nltk import sys import os import time from datetime import datetime from utils import * from rnn_theano import RNNTheano nltk.download("book") _VOCABULARY_SIZE = int(os.environ.get('VOCABULARY_SIZE', '8000')) _HIDDEN_DIM = i...
40.459184
124
0.706431
4a1b333e9ba5e6032c1f6e0ed1d6d3f11b07de48
3,953
py
Python
examples/tutorial/mandelbrot/saga_mandelbrot_osg.py
yutiansut/radical.saga
6b80c39223a04a4b240942dc1bd7834c9caffecd
[ "MIT" ]
null
null
null
examples/tutorial/mandelbrot/saga_mandelbrot_osg.py
yutiansut/radical.saga
6b80c39223a04a4b240942dc1bd7834c9caffecd
[ "MIT" ]
null
null
null
examples/tutorial/mandelbrot/saga_mandelbrot_osg.py
yutiansut/radical.saga
6b80c39223a04a4b240942dc1bd7834c9caffecd
[ "MIT" ]
null
null
null
__author__ = "Ole Weidner" __copyright__ = "Copyright 2012-2013, The SAGA Project" __license__ = "MIT" import sys import time from PIL import Image import radica.saga as rs REMOTE_JOB_ENDPOINT = "condor://localhost" # the dimension (in pixel) of the whole fractal IMGX = 2048 IMGY = 2048 # the number of ti...
39.53
93
0.512522
4a1b337e5ec72b38663df852fe545150a1a43392
83
py
Python
tonks/vision/models/__init__.py
vanderveld/tonks
e87afbd9614b276b443b4a7527fd1fda01a8be4c
[ "BSD-3-Clause" ]
null
null
null
tonks/vision/models/__init__.py
vanderveld/tonks
e87afbd9614b276b443b4a7527fd1fda01a8be4c
[ "BSD-3-Clause" ]
null
null
null
tonks/vision/models/__init__.py
vanderveld/tonks
e87afbd9614b276b443b4a7527fd1fda01a8be4c
[ "BSD-3-Clause" ]
null
null
null
from tonks.vision.models.multi_task_resnet import ResnetForMultiTaskClassification
41.5
82
0.915663
4a1b3458add597300d1c6d4a95125d3cfe559539
835
py
Python
parts/cluster_key_long/cluster_key_long.py
rutgervana/lalboard
4e3174a545aaef074abca677f9573e4fc0cdbc51
[ "Apache-2.0" ]
622
2019-02-14T23:56:28.000Z
2022-03-29T18:50:25.000Z
parts/cluster_key_long/cluster_key_long.py
rutgervana/lalboard
4e3174a545aaef074abca677f9573e4fc0cdbc51
[ "Apache-2.0" ]
13
2019-07-31T17:20:41.000Z
2022-01-19T12:55:25.000Z
parts/cluster_key_long/cluster_key_long.py
rutgervana/lalboard
4e3174a545aaef074abca677f9573e4fc0cdbc51
[ "Apache-2.0" ]
41
2019-04-23T13:05:47.000Z
2022-01-28T15:03:10.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
29.821429
74
0.764072
4a1b351ca6fd08f5b774d0edd4d6b8c9f8fdca47
3,294
py
Python
Main/route.py
SmartBinTUC2016/SmartBin-TUC2016
2ed093dbe29b4aa0ba7b46fa1d945acc9aa476c1
[ "PSF-2.0", "BSD-3-Clause", "MIT" ]
null
null
null
Main/route.py
SmartBinTUC2016/SmartBin-TUC2016
2ed093dbe29b4aa0ba7b46fa1d945acc9aa476c1
[ "PSF-2.0", "BSD-3-Clause", "MIT" ]
null
null
null
Main/route.py
SmartBinTUC2016/SmartBin-TUC2016
2ed093dbe29b4aa0ba7b46fa1d945acc9aa476c1
[ "PSF-2.0", "BSD-3-Clause", "MIT" ]
null
null
null
######################################################################### # The MIT License (MIT) # # Copyright (c) 2016 Patrick Lai, Josh Manogaran, # # Brendan Srinivasalu, Elias Tadros # # ...
37.431818
99
0.565574
4a1b35df2c99bf468cb029d94723f6c857ac939e
439
py
Python
tests/acceptance/steps/interactions.py
GrantHynd/hamiltontimeline
e5a11c5baa80523123b6d16d5cb4e52846b847db
[ "MIT" ]
null
null
null
tests/acceptance/steps/interactions.py
GrantHynd/hamiltontimeline
e5a11c5baa80523123b6d16d5cb4e52846b847db
[ "MIT" ]
null
null
null
tests/acceptance/steps/interactions.py
GrantHynd/hamiltontimeline
e5a11c5baa80523123b6d16d5cb4e52846b847db
[ "MIT" ]
null
null
null
from behave import * from tests.acceptance.page_model.create_event_page import CreateEventPage use_step_matcher('re') @when('I enter "(.*)" in the "(.*)" field') def step_impl(context, content, field_name): page = CreateEventPage(context.driver) page.form_field(field_name).send_keys(content) @when('I press...
25.823529
73
0.744875
4a1b37d6a2f20660b860c4de77bf3ce5a5eaa741
22,047
py
Python
src/python/pants/base/exception_sink.py
pierrechevalier83/pants
57500373dbc1ea6edf5e023197f0e71291537f09
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/exception_sink.py
pierrechevalier83/pants
57500373dbc1ea6edf5e023197f0e71291537f09
[ "Apache-2.0" ]
1
2019-07-29T16:58:21.000Z
2019-07-29T16:58:21.000Z
src/python/pants/base/exception_sink.py
pierrechevalier83/pants
57500373dbc1ea6edf5e023197f0e71291537f09
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import datetime import faulthandler import logging import os import signal import sys import threading import traceback from contextlib import contextmanager from typing import Callable i...
40.305302
102
0.733796
4a1b3a94b52bc276ac1b6b5cf2e3c2d0cdc87115
6,032
py
Python
setup.py
luohezhiming/chenyu
227d67a56bfacb85210ad07d6f44e84a8b0d2ea1
[ "BSD-3-Clause-LBNL" ]
null
null
null
setup.py
luohezhiming/chenyu
227d67a56bfacb85210ad07d6f44e84a8b0d2ea1
[ "BSD-3-Clause-LBNL" ]
null
null
null
setup.py
luohezhiming/chenyu
227d67a56bfacb85210ad07d6f44e84a8b0d2ea1
[ "BSD-3-Clause-LBNL" ]
null
null
null
############################################################################### # WaterTAP Copyright (c) 2021, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National # Laboratory, National Renewable Energy Laboratory, and National Energy # Technology Laboratory ...
43.085714
116
0.650696
4a1b3ab2797d6fc32be7292d94b56d5917aa3dd7
1,189
py
Python
utils/scripts_utils.py
assansanogo/TransformerTTS
58a3ec05a12184d55ce99e069b2307bb3279433b
[ "MIT" ]
894
2020-05-14T21:07:27.000Z
2022-03-30T10:19:27.000Z
utils/scripts_utils.py
assansanogo/TransformerTTS
58a3ec05a12184d55ce99e069b2307bb3279433b
[ "MIT" ]
89
2020-05-15T12:27:45.000Z
2022-02-26T07:23:38.000Z
utils/scripts_utils.py
assansanogo/TransformerTTS
58a3ec05a12184d55ce99e069b2307bb3279433b
[ "MIT" ]
184
2020-04-24T01:27:58.000Z
2022-03-31T07:54:22.000Z
import traceback import argparse import tensorflow as tf def dynamic_memory_allocation(): gpus = tf.config.experimental.list_physical_devices('GPU') if gpus: try: # Currently, memory growth needs to be the same across GPUs for gpu in gpus: tf.config.experimenta...
39.633333
85
0.651808
4a1b3b556c5846821f6be866c0b42121374e43e0
1,653
py
Python
insights/tests/client/test_displayname.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
121
2017-05-30T20:23:25.000Z
2022-03-23T12:52:15.000Z
insights/tests/client/test_displayname.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
1,977
2017-05-26T14:36:03.000Z
2022-03-31T10:38:53.000Z
insights/tests/client/test_displayname.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
244
2017-05-30T20:22:57.000Z
2022-03-26T10:09:39.000Z
import pytest from insights.client.config import InsightsConfig from insights.client.connection import InsightsConnection from mock.mock import patch class MockSession(object): def __init__(self): self.status_code = None self.text = None self.content = '{"display_name": "test"}' def g...
31.788462
73
0.725348
4a1b3c8fddfd4b54a3438cb7b47bd7c0f5a0007d
384
py
Python
sources/of97_489/__init__.py
kueda/underfoot
b9d1a05fced70c494e582280c577bf5e16b73f77
[ "MIT" ]
4
2018-10-12T18:48:55.000Z
2022-03-10T05:30:18.000Z
sources/of97_489/__init__.py
kueda/underfoot
b9d1a05fced70c494e582280c577bf5e16b73f77
[ "MIT" ]
4
2020-07-16T09:44:48.000Z
2020-11-21T08:09:53.000Z
sources/of97_489/__init__.py
kueda/underfoot
b9d1a05fced70c494e582280c577bf5e16b73f77
[ "MIT" ]
null
null
null
import util import os def run(): util.process_usgs_source( base_path=os.path.realpath(__file__), url="http://pubs.usgs.gov/of/1997/of97-489/sc-geol.e00.gz", e00_path="sc-geol.e00", srs=util.NAD27_UTM10_PROJ4, metadata_csv_path=os.path.join( os.path.dirname(os.pa...
24
67
0.601563
4a1b3d3f15e8ae4b46da9f6af68c3e431ec35c9f
24,915
py
Python
sdk/python/pulumi_azure_native/network/v20210201/private_link_service.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20210201/private_link_service.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20210201/private_link_service.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
50.846939
2,459
0.686334
4a1b3d73b1dc60069fe6570205380e364bfbe5cf
32,048
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/_virtual_network_gateway_connections_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/_virtual_network_gateway_connections_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/_virtual_network_gateway_connections_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.686822
203
0.696299
4a1b3de00bf36b7cd46bb49854d39be3a38125df
6,970
py
Python
src/dns_spoof.py
vsingh27/DNS_Spoofer
78a1251f0ed316ac70e55bccf2a81822b1000176
[ "MIT" ]
null
null
null
src/dns_spoof.py
vsingh27/DNS_Spoofer
78a1251f0ed316ac70e55bccf2a81822b1000176
[ "MIT" ]
null
null
null
src/dns_spoof.py
vsingh27/DNS_Spoofer
78a1251f0ed316ac70e55bccf2a81822b1000176
[ "MIT" ]
null
null
null
# dns_spoof.py # # Design and Program: Vishav Singh & Manuel Gonzales # # functions: # # def signal_handler(signum, frame) # def sniffer() # def get_address(interface, ip) # def start_mitm(interface, victim, gateway) # def parse(packet) # def redirectionRules(victim) # def getWebIP(website) # def main() # # Pro...
30.17316
155
0.673027
4a1b3e0ad8609509bca269fa79412623c27d5bd5
1,474
py
Python
main.py
ijcruic/IDS_final
37a88494bd2c28bd3f1364631da775b8057cc59c
[ "Apache-2.0" ]
null
null
null
main.py
ijcruic/IDS_final
37a88494bd2c28bd3f1364631da775b8057cc59c
[ "Apache-2.0" ]
null
null
null
main.py
ijcruic/IDS_final
37a88494bd2c28bd3f1364631da775b8057cc59c
[ "Apache-2.0" ]
null
null
null
"""`main` is the top level module for your Flask application.""" # Data Exploration Byte Version 3 # # Copyright 2/2018 John Stamper # # Licensed under GPL v3 (http://www.gnu.org/licenses/gpl.html) # # Imports import os import jinja2 import webapp2 import logging import json import urllib # this is used for constru...
24.983051
73
0.727273
4a1b3fa2c53ac0d80805d71f008fbd97e87725d7
135
py
Python
Util/main.py
Xiefan-Guo/Paper-PyTorch
5dbb68ba78f427b56e75ddbd95a68475951e1514
[ "MIT" ]
2
2021-12-29T03:02:15.000Z
2021-12-29T06:31:18.000Z
Util/main.py
Xiefan-Guo/Paper-PyTorch
5dbb68ba78f427b56e75ddbd95a68475951e1514
[ "MIT" ]
null
null
null
Util/main.py
Xiefan-Guo/Paper-PyTorch
5dbb68ba78f427b56e75ddbd95a68475951e1514
[ "MIT" ]
null
null
null
import torch w = torch.empty(3, 5) torch.nn.init.constant_(w, 8) x = torch.empty(3, 5) torch.nn.init.constant_(x, 2) print(w / x * 5)
16.875
29
0.659259
4a1b41652eff40c40785a96423a4bc47d9578808
581
py
Python
htp/aux/alembic/versions/4e9d98be262d_drop_get_id_column_from_signals_table.py
kirkjules/machine-learned-timeseries
7aedec0fe04807fef1cf5e79a929652101d467f7
[ "MIT" ]
1
2020-05-17T21:49:57.000Z
2020-05-17T21:49:57.000Z
htp/aux/alembic/versions/4e9d98be262d_drop_get_id_column_from_signals_table.py
kirkjules/machine-learned-timeseries
7aedec0fe04807fef1cf5e79a929652101d467f7
[ "MIT" ]
3
2020-08-15T01:11:45.000Z
2022-01-13T03:22:25.000Z
htp/aux/alembic/versions/4e9d98be262d_drop_get_id_column_from_signals_table.py
kirkjules/machine-learned-timeseries
7aedec0fe04807fef1cf5e79a929652101d467f7
[ "MIT" ]
null
null
null
"""drop get id column from signals table Revision ID: 4e9d98be262d Revises: 936cfe97ee13 Create Date: 2020-01-30 06:25:13.817984 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects.postgresql import UUID # revision identifiers, used by Alembic. revision = '4e9d98be262d' down_revision = '936c...
20.75
72
0.731497
4a1b4172b48f20def66dc65375ed79f27fde8129
126
py
Python
groupmenotifier/main.py
daconex/GroupMeNotifier
9e0ea6e46e171a65b188510d4a33bafc0a51d685
[ "MIT" ]
1
2015-11-26T05:58:45.000Z
2015-11-26T05:58:45.000Z
groupmenotifier/main.py
daconex/GroupMeNotifier
9e0ea6e46e171a65b188510d4a33bafc0a51d685
[ "MIT" ]
null
null
null
groupmenotifier/main.py
daconex/GroupMeNotifier
9e0ea6e46e171a65b188510d4a33bafc0a51d685
[ "MIT" ]
null
null
null
from groupme import GroupMe api = GroupMe() api.handshake() api.auth() api.user_details() api.user_subscribe() api.connect()
14
27
0.753968
4a1b4352ce0d90ce02b3c1f4c712bebd0d08fc9d
20,487
py
Python
wcf/dictionary.py
ringsaturn/python-wcfbin
7e9af1efd94ab30d149e7152d700d313f7896fb3
[ "BSD-3-Clause" ]
3
2020-03-29T13:28:41.000Z
2022-03-31T20:30:27.000Z
wcf/dictionary.py
ringsaturn/python-wcfbin
7e9af1efd94ab30d149e7152d700d313f7896fb3
[ "BSD-3-Clause" ]
1
2020-03-30T05:12:17.000Z
2020-03-30T05:12:17.000Z
wcf/dictionary.py
caiyunapp/python-wcfbin
7e9af1efd94ab30d149e7152d700d313f7896fb3
[ "BSD-3-Clause" ]
null
null
null
# vim: set ts=4 sw=4 tw=79 fileencoding=utf-8: # Copyright (c) 2011, Timo Schmid <tschmid@ernw.de> # 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...
39.398077
117
0.667496
4a1b44c80a7838e89c0d8a8043667dc1f424644b
149
py
Python
config.py
robk-dev/bunnies
6116f7ee8496c582422370a68f99707f46071ce7
[ "MIT" ]
null
null
null
config.py
robk-dev/bunnies
6116f7ee8496c582422370a68f99707f46071ce7
[ "MIT" ]
null
null
null
config.py
robk-dev/bunnies
6116f7ee8496c582422370a68f99707f46071ce7
[ "MIT" ]
null
null
null
import os class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'super-secret' MONGODB_SETTINGS = { 'db': 'bunnies' }
21.285714
63
0.637584
4a1b45b15c81e790ad41960a6fbc3d5459341b92
1,406
py
Python
examples/src/dbnd_examples/dbnd_airflow/scheduled_dbnd_check.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
examples/src/dbnd_examples/dbnd_airflow/scheduled_dbnd_check.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
examples/src/dbnd_examples/dbnd_airflow/scheduled_dbnd_check.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
""" Code that goes along with the Airflow tutorial located at: https://github.com/airbnb/airflow/blob/master/airflow/example_dags/tutorial.py """ from datetime import datetime, timedelta from airflow import DAG from airflow.operators.bash_operator import BashOperator from dbnd.tasks.basics import dbnd_sanity_check fr...
28.12
79
0.70128
4a1b468feda12882dbb000cd1f91567ff4924e26
8,290
py
Python
doc/conf.py
nwu63/pyhyp
d29715f509c7c460d6705183301eda14da217755
[ "Apache-2.0" ]
null
null
null
doc/conf.py
nwu63/pyhyp
d29715f509c7c460d6705183301eda14da217755
[ "Apache-2.0" ]
null
null
null
doc/conf.py
nwu63/pyhyp
d29715f509c7c460d6705183301eda14da217755
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # pyHyp documentation build configuration file, created by # sphinx-quickstart on Sun Oct 13 13:46:01 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
32.382813
80
0.710615
4a1b471e07d2e24dfc4c2f1555b8f4412fd44d90
731
py
Python
breathe.py
electric-blue-green/trinket
82e1e265934252c0cf3b2fa72f9bc1d60a35ac93
[ "Unlicense" ]
1
2021-06-05T03:12:36.000Z
2021-06-05T03:12:36.000Z
breathe.py
aejb/trinket
82e1e265934252c0cf3b2fa72f9bc1d60a35ac93
[ "Unlicense" ]
1
2018-02-26T11:22:50.000Z
2018-02-26T11:22:50.000Z
breathe.py
electric-blue-green/trinket
82e1e265934252c0cf3b2fa72f9bc1d60a35ac93
[ "Unlicense" ]
null
null
null
import board import busio import time dotstar = busio.SPI(board.APA102_SCK, board.APA102_MOSI) colors = [0, 0, 0] print("INIT") ## REPL def setPixel(red, green, blue): if not dotstar.try_lock(): return #print("setting pixel to: %d %d %d" % (red, green, blue)) dotstar.write(bytearray([0x00, 0x00, 0x0...
28.115385
102
0.597811
4a1b48853d3f335a9c96cdafd48519f4b31d2ac0
413
py
Python
src/sima/riflex/hydrodynamicinputcode.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/hydrodynamicinputcode.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/hydrodynamicinputcode.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# Generated with HydrodynamicInputCode # from enum import Enum from enum import auto class HydrodynamicInputCode(Enum): """""" DIMENSIONAL = auto() NONDIMENSIONAL = auto() def label(self): if self == HydrodynamicInputCode.DIMENSIONAL: return "Dimensional coefficients" if s...
27.533333
56
0.690073
4a1b489aa6a453aebba6d32349e866ec473d2d09
8,459
py
Python
src/socketclient/SocketPool.py
TKaxv-7S/jd-assistant
426940efa4254246e9eb85e32fc81f8b3728f323
[ "MIT" ]
16
2020-12-17T11:19:38.000Z
2022-02-17T06:03:34.000Z
src/socketclient/SocketPool.py
JackMa777/jd-assistant
426940efa4254246e9eb85e32fc81f8b3728f323
[ "MIT" ]
null
null
null
src/socketclient/SocketPool.py
JackMa777/jd-assistant
426940efa4254246e9eb85e32fc81f8b3728f323
[ "MIT" ]
4
2020-12-04T05:06:14.000Z
2021-12-28T09:03:24.000Z
# -*- coding: utf-8 - import time from socketclient.Connector import Connector from socketclient.log import logger class SocketPool(object): """Pool of socket connections""" def __init__(self, conn_factory, backend_mod=None, host=None, port=80, active_count=3, max_count=10): self.c...
37.264317
101
0.485991
4a1b4a654f7cc3e4a380891359c020f383d8dc57
18,855
py
Python
exe/portable-python/App/Lib/test/test_signal.py
jaredmusil/iawsc-data-toolbox
65b97d45e13813935017f8b3c5726784027b065f
[ "MIT" ]
null
null
null
exe/portable-python/App/Lib/test/test_signal.py
jaredmusil/iawsc-data-toolbox
65b97d45e13813935017f8b3c5726784027b065f
[ "MIT" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
exe/portable-python/App/Lib/test/test_signal.py
jaredmusil/iawsc-data-toolbox
65b97d45e13813935017f8b3c5726784027b065f
[ "MIT" ]
null
null
null
import errno import gc import os import pickle import select import signal import subprocess import sys import time import traceback import unittest from test import support from contextlib import closing from test.script_helper import assert_python_ok, spawn_python if sys.platform in ('os2', 'riscos'): raise unit...
35.914286
80
0.579528
4a1b4aea445a44bb0354406a59901ff6cd1f7daf
2,809
py
Python
src/fusedwind/plant_flow/test/test_asym.py
FUSED-Wind/fusedwind
5025b84f8bfb334b33bf172bf1a39e3abcadab15
[ "Apache-2.0" ]
15
2015-01-19T18:20:35.000Z
2021-12-21T05:50:38.000Z
src/fusedwind/plant_flow/test/test_asym.py
michaelXDzhang/fusedwind
5025b84f8bfb334b33bf172bf1a39e3abcadab15
[ "Apache-2.0" ]
61
2015-01-05T02:47:35.000Z
2019-10-09T02:18:13.000Z
src/fusedwind/plant_flow/test/test_asym.py
michaelXDzhang/fusedwind
5025b84f8bfb334b33bf172bf1a39e3abcadab15
[ "Apache-2.0" ]
11
2015-01-16T03:05:49.000Z
2021-02-16T13:57:59.000Z
# test_fused_plant_asym from random import random import unittest from fusedwind.plant_flow.asym import * from test_comp import TestWindFarm from test_vt import generate_random_GenericWindRoseVT from fusedwind.plant_flow.generate_fake_vt import generate_random_wt_layout import numpy as np def generate_inputs_AEPWindR...
36.012821
141
0.676753
4a1b4b766365303c8fcd0b127155f7cf38d14197
1,952
py
Python
a2c/async_coordinator.py
jondeaton/AgarAI
0c60896465a969ba6832a4b417cf6199715799a1
[ "MIT" ]
1
2022-01-12T06:27:43.000Z
2022-01-12T06:27:43.000Z
a2c/async_coordinator.py
jondeaton/AgarAI
0c60896465a969ba6832a4b417cf6199715799a1
[ "MIT" ]
null
null
null
a2c/async_coordinator.py
jondeaton/AgarAI
0c60896465a969ba6832a4b417cf6199715799a1
[ "MIT" ]
2
2020-01-24T20:07:09.000Z
2022-01-12T06:27:47.000Z
""" File: async_coordinator Date: 9/21/19 Author: Jon Deaton (jonpauldeaton@gmail.com) """ from multiprocessing import Process, Queue, Condition, Semaphore class AsyncCoordinator: """ manages a collection of worker processes that produce data to be consumed by the client of this class. """ def __ini...
29.134328
75
0.602459
4a1b4bccbe171878b7f9940e273e436875e773cd
10,304
py
Python
features/create.py
mei28/youtube_comp
cb8dee465a873436779e6fbb82224523805c6f6f
[ "MIT" ]
null
null
null
features/create.py
mei28/youtube_comp
cb8dee465a873436779e6fbb82224523805c6f6f
[ "MIT" ]
null
null
null
features/create.py
mei28/youtube_comp
cb8dee465a873436779e6fbb82224523805c6f6f
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import re as re from base import Feature, get_arguments, generate_features Feature.dir = 'features' # """sample usage # """ # class Pclass(Feature): # def create_features(self): # self.train['Pclass'] = train['Pclass'] # self.test['Pclass'] = test['Pclass']...
35.902439
79
0.614227
4a1b4bda7371138ebd2567b5a3db0257c9d1f574
13,760
py
Python
knowledge.py
EDTAKE/IA
2731e8ccb9d1b72f564c8c7a1c46a855760edfac
[ "MIT" ]
null
null
null
knowledge.py
EDTAKE/IA
2731e8ccb9d1b72f564c8c7a1c46a855760edfac
[ "MIT" ]
null
null
null
knowledge.py
EDTAKE/IA
2731e8ccb9d1b72f564c8c7a1c46a855760edfac
[ "MIT" ]
1
2019-10-26T22:33:40.000Z
2019-10-26T22:33:40.000Z
"""Knowledge in learning, Chapter 19""" from random import shuffle from math import log from utils import powerset from collections import defaultdict from itertools import combinations, product from logic import (FolKB, constant_symbols, predicate_symbols, standardize_variables, variables, ...
32.529551
124
0.58968
4a1b4bfe508e38bb42a685ab529e852e9f4c7512
639
py
Python
src/controller/HomeContoller.py
SubhasisDutta/NoteBook
986c73338cdbd8743ffb01c8b91decb0a7178d42
[ "MIT" ]
3
2015-05-04T13:52:11.000Z
2016-05-22T04:00:43.000Z
src/controller/HomeContoller.py
SubhasisDutta/ProfileApp
986c73338cdbd8743ffb01c8b91decb0a7178d42
[ "MIT" ]
4
2015-07-03T12:59:23.000Z
2015-07-03T13:35:44.000Z
src/controller/HomeContoller.py
SubhasisDutta/ProfileApp
986c73338cdbd8743ffb01c8b91decb0a7178d42
[ "MIT" ]
null
null
null
import webapp2 import os from google.appengine.ext.webapp import template from src.model.WorkModels import Work class HomePage(webapp2.RequestHandler): def get(self): self.response.headers["Content-Type"]="text/html" publishedWork=Work.gql("WHERE publish=True ORDER BY order ") template_valu...
37.588235
84
0.621283
4a1b4c9ac7eb1bf19248b7e29754906cca9ab59b
41
py
Python
min_to_sec.py
rfaria/misc
c68426d97b8ee635ffe0642f986e584367be68e5
[ "MIT" ]
null
null
null
min_to_sec.py
rfaria/misc
c68426d97b8ee635ffe0642f986e584367be68e5
[ "MIT" ]
null
null
null
min_to_sec.py
rfaria/misc
c68426d97b8ee635ffe0642f986e584367be68e5
[ "MIT" ]
null
null
null
def convert(minutes): return minutes*60
13.666667
21
0.780488
4a1b4d0b01d78c2a7b6f13a4c447bc568f9bd297
13,240
py
Python
utils/cbook.py
zhaotao1987/jcvi
748fcdbbd1db5eb8a4ccfe19eec6072006ffd501
[ "BSD-2-Clause" ]
2
2019-04-05T21:01:45.000Z
2021-02-13T11:38:10.000Z
utils/cbook.py
zhaotao1987/jcvi
748fcdbbd1db5eb8a4ccfe19eec6072006ffd501
[ "BSD-2-Clause" ]
null
null
null
utils/cbook.py
zhaotao1987/jcvi
748fcdbbd1db5eb8a4ccfe19eec6072006ffd501
[ "BSD-2-Clause" ]
1
2019-01-21T15:49:24.000Z
2019-01-21T15:49:24.000Z
""" Useful recipes from various internet sources (thanks) mostly decorator patterns """ import os.path as op import re import sys import logging import functools from collections import defaultdict class memoized(object): """ Decorator that caches a function's return value each time it is called. If cal...
27.525988
116
0.556647
4a1b4d8b2b8cdedf5e7b989a5c3e8d3256e7454b
6,278
py
Python
slack_sdk/socket_mode/async_client.py
jans-forks/python-slackclient
ff798cbe00ead477ce98efa8468cb2c1c99635f3
[ "MIT" ]
2
2021-09-11T06:18:24.000Z
2021-10-30T14:00:48.000Z
slack_sdk/socket_mode/async_client.py
QAtest-Inc/python-slack-sdk
61f098311adbd6d2904f51541cf5d8bf42c83168
[ "MIT" ]
1
2021-09-12T23:26:37.000Z
2021-09-12T23:26:37.000Z
slack_sdk/socket_mode/async_client.py
QAtest-Inc/python-slack-sdk
61f098311adbd6d2904f51541cf5d8bf42c83168
[ "MIT" ]
1
2021-09-13T10:07:14.000Z
2021-09-13T10:07:14.000Z
import asyncio import json import logging from asyncio import Queue, Lock from asyncio.futures import Future from logging import Logger from typing import Dict, Union, Any, Optional, List, Callable, Awaitable from slack_sdk.errors import SlackApiError from slack_sdk.socket_mode.async_listeners import ( AsyncWebSoc...
36.929412
94
0.590953
4a1b4da8befbf6356d11567d50a322599417d4bb
1,038
py
Python
pipedream/tests/async_test.py
tgecho/pipedream
2e619d0ff72ae0f5e01620611a09f47c52127200
[ "BSD-2-Clause" ]
1
2015-06-10T20:28:30.000Z
2015-06-10T20:28:30.000Z
pipedream/tests/async_test.py
tgecho/pipedream
2e619d0ff72ae0f5e01620611a09f47c52127200
[ "BSD-2-Clause" ]
null
null
null
pipedream/tests/async_test.py
tgecho/pipedream
2e619d0ff72ae0f5e01620611a09f47c52127200
[ "BSD-2-Clause" ]
null
null
null
def do_stuff(one=1, two=2): return one + two def test_call(pool): result = pool.do(do_stuff) assert result == 3 def test_call_with_args(pool): result = pool.do(do_stuff, 2, 3) assert result == 5 def test_call_with_kwargs(pool): result = pool.do(do_stuff, one=2, two=3) assert result == ...
18.872727
98
0.677264
4a1b4e60e8723e94544582c95db53b0eafc4501f
203
py
Python
joinstring/joinstring/__init__.py
RDIL/bluejay
7a2354b61c28b7b2a47b96b55a2908944a07edfb
[ "MIT" ]
3
2020-01-15T04:17:20.000Z
2022-03-05T17:49:51.000Z
joinstring/joinstring/__init__.py
RDIL/bluejay
7a2354b61c28b7b2a47b96b55a2908944a07edfb
[ "MIT" ]
null
null
null
joinstring/joinstring/__init__.py
RDIL/bluejay
7a2354b61c28b7b2a47b96b55a2908944a07edfb
[ "MIT" ]
null
null
null
"""Performance-friendly string combining utility.""" def joinstring(string1: str, string2: str) -> str: """Performance-friendly string combining function.""" return "".join([string1, string2])
29
57
0.704433
4a1b505050706b8467d301511276256aeb219803
2,592
py
Python
gibson/core/channels/archive/compare_img.py
rainprob/GibsonEnv
e0d0bc614713c676cb303bf9f11ca6a98713e0e0
[ "MIT" ]
731
2018-02-26T18:35:05.000Z
2022-03-23T04:00:09.000Z
gibson/core/channels/archive/compare_img.py
Shubodh/GibsonEnv
38274874d7c2c2a87efdb6ee529f2b366c5219de
[ "MIT" ]
111
2018-04-19T01:00:22.000Z
2022-03-18T17:43:50.000Z
gibson/core/channels/archive/compare_img.py
Shubodh/GibsonEnv
38274874d7c2c2a87efdb6ee529f2b366c5219de
[ "MIT" ]
153
2018-02-27T04:38:40.000Z
2022-03-28T08:10:39.000Z
from PIL import Image import numpy as np import matplotlib.mlab as mlab import matplotlib.pyplot as plt #opengl_path = "/home/jerry/Pictures/point_0_view_2_domain_fixatedpose.png" opengl_path = "/home/jerry/Pictures/point_0_view_2_domain_fixatedpose_mist.png" #blender_path = "/home/jerry/Desktop/Data/1CzjpjNF8qk/de...
30.857143
92
0.735725
4a1b517d55a8b6f0d887ef5f092defbbb5bb85b5
2,082
py
Python
wordle/human_input.py
bbayramoglu/repPython
e8f0bc0f492d10f77ee907fa976e3715600ed4a1
[ "MIT" ]
null
null
null
wordle/human_input.py
bbayramoglu/repPython
e8f0bc0f492d10f77ee907fa976e3715600ed4a1
[ "MIT" ]
null
null
null
wordle/human_input.py
bbayramoglu/repPython
e8f0bc0f492d10f77ee907fa976e3715600ed4a1
[ "MIT" ]
null
null
null
from pc_job import Listing, Split_word, Select_word from colorama import Fore, Style used_right=0 guess = [] right_p=["","","","",""] falses=[] main_w=Split_word.splittedWord #print(main_w) while True: false_p=["","","","",""] if main_w==right_p: print(f"{Fore.BLUE}Tebrikler kelimeyi buldun...
39.283019
128
0.540346
4a1b52304c3af41eda1b20101e29cc3b1c6541e5
3,081
py
Python
python/facebookads/specs.py
wangqi/facebookads
74cc2a78d870ba059472870fd20b3147b32bf1ce
[ "Apache-2.0" ]
4
2016-06-01T04:37:31.000Z
2018-02-15T06:47:01.000Z
python/facebookads/specs.py
wangqi/facebookads
74cc2a78d870ba059472870fd20b3147b32bf1ce
[ "Apache-2.0" ]
null
null
null
python/facebookads/specs.py
wangqi/facebookads
74cc2a78d870ba059472870fd20b3147b32bf1ce
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
32.09375
76
0.691659
4a1b528646e7d2139d7eabb0264b8d280f8da133
68,682
py
Python
tensorflow/contrib/boosted_trees/lib/learner/batch/ordinal_split_handler_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
36
2016-12-17T15:25:25.000Z
2022-01-29T21:50:53.000Z
tensorflow/contrib/boosted_trees/lib/learner/batch/ordinal_split_handler_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
59
2019-06-17T09:37:49.000Z
2022-01-19T01:21:34.000Z
tensorflow/contrib/boosted_trees/lib/learner/batch/ordinal_split_handler_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.000Z
# Copyright 2017 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...
39.792584
84
0.648088
4a1b546537429976973144cd5dd9fd191f2278b5
671
py
Python
src/fetchDistricts.py
syedhassaanahmed/legis-graph
8656102c53902added7def7cfe046182df086684
[ "MIT" ]
50
2015-09-21T15:49:26.000Z
2021-12-23T17:54:07.000Z
src/fetchDistricts.py
syedhassaanahmed/legis-graph
8656102c53902added7def7cfe046182df086684
[ "MIT" ]
15
2015-09-21T02:07:18.000Z
2019-04-15T01:30:53.000Z
src/fetchDistricts.py
syedhassaanahmed/legis-graph
8656102c53902added7def7cfe046182df086684
[ "MIT" ]
22
2015-10-01T06:53:01.000Z
2020-12-11T01:41:46.000Z
''' Fetch simplified WKT boundaries for 2014 congressional districts and save in CSV format: state,district,polygon ''' import requests import csv BASE_URL = "https://gis.govtrack.us" CD_2014_URL = "/boundaries/cd-2014/?limit=500" # get meta boundary r = requests.get(BASE_URL + CD_2014_URL) j = r.json() bounda...
22.366667
73
0.648286
4a1b556a1881de67b1c5f93b93fda4e81aa63bc1
3,530
py
Python
src/policy_gradient/PPO/ppo_highway.py
hougiebear/Deepdrive-Autonomous-Vehicles
6b952c9e5d01893dc4319bbd74b9fa951719fcf9
[ "MIT" ]
1
2021-12-27T02:22:27.000Z
2021-12-27T02:22:27.000Z
src/policy_gradient/PPO/ppo_highway.py
hougiebear/Deepdrive-Autonomous-Vehicles
6b952c9e5d01893dc4319bbd74b9fa951719fcf9
[ "MIT" ]
null
null
null
src/policy_gradient/PPO/ppo_highway.py
hougiebear/Deepdrive-Autonomous-Vehicles
6b952c9e5d01893dc4319bbd74b9fa951719fcf9
[ "MIT" ]
null
null
null
import gym import highway_env import numpy as np import argparse from stable_baselines3 import PPO from stable_baselines3.common.noise import NormalActionNoise from stable_baselines3.common.results_plotter import load_results, ts2xy import matplotlib.pyplot as plt from stable_baselines3.common import results_plotter fr...
28.699187
87
0.632578
4a1b567a6b0135d4fd100753f6f2fa1f745ad6fb
239,906
py
Python
src/sage/geometry/cone.py
abcijkxyz/sage
6ec717a56dcb0fd629ca850d9b9391ea8d96ccac
[ "BSL-1.0" ]
null
null
null
src/sage/geometry/cone.py
abcijkxyz/sage
6ec717a56dcb0fd629ca850d9b9391ea8d96ccac
[ "BSL-1.0" ]
null
null
null
src/sage/geometry/cone.py
abcijkxyz/sage
6ec717a56dcb0fd629ca850d9b9391ea8d96ccac
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" Convex rational polyhedral cones This module was designed as a part of framework for toric varieties (:mod:`~sage.schemes.toric.variety`, :mod:`~sage.schemes.toric.fano_variety`). While the emphasis is on strictly convex cones, non-strictly convex cones are supported as well. Work with dis...
34.819448
135
0.544155
4a1b57587f05c4ff9db916a44af54b319556d244
1,057
py
Python
prg/config.py
abultman/PiAutomator
2ad3aafdd6c94cf11fc2d60c9be489f76ac78277
[ "Apache-2.0" ]
5
2015-10-21T05:54:30.000Z
2021-01-13T01:10:36.000Z
prg/config.py
abultman/PiAutomator
2ad3aafdd6c94cf11fc2d60c9be489f76ac78277
[ "Apache-2.0" ]
null
null
null
prg/config.py
abultman/PiAutomator
2ad3aafdd6c94cf11fc2d60c9be489f76ac78277
[ "Apache-2.0" ]
5
2015-03-30T16:25:40.000Z
2016-07-29T09:10:03.000Z
#!/usr/bin/python import yaml class AutomationConfig(object): def __init__(self, basedir): self.basedir = basedir with open("%s/conf/config.yaml" % basedir) as f: self.yaml = yaml.load(f) def get_setting(self, mapList, default=None): try: return reduce(lambda d...
24.022727
64
0.578051
4a1b57ba17552fd713b33a98c51307b3f44c6ac2
492
py
Python
apps/agentcontroller/jumpscripts/extended/system/processmanager_heartbeat_to_osis.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
apps/agentcontroller/jumpscripts/extended/system/processmanager_heartbeat_to_osis.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
apps/agentcontroller/jumpscripts/extended/system/processmanager_heartbeat_to_osis.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
from JumpScale import j import JumpScale.grid.osis descr = """ heartbeat in process to osis """ organization = "jumpscale" author = "kristof@incubaid.com" license = "bsd" version = "1.0" category = "system.heartbeat" startatboot = True period = 60 #always in sec order = 1 enable = True async = False roles=["*"] def ...
18.923077
74
0.693089
4a1b5a61ebf1b07c8ca247341f074da362599019
326
py
Python
QandA/manage.py
rtbortolin/QandA
103dac34170e52ff35f36540477bb382efb4c27f
[ "MIT" ]
null
null
null
QandA/manage.py
rtbortolin/QandA
103dac34170e52ff35f36540477bb382efb4c27f
[ "MIT" ]
null
null
null
QandA/manage.py
rtbortolin/QandA
103dac34170e52ff35f36540477bb382efb4c27f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Command-line utility for administrative tasks. """ import os import sys if __name__ == "__main__": os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "QandA.settings" ) from django.core.management import execute_from_command_line execute_from_command_line(sys....
18.111111
64
0.708589
4a1b5a783333a86a445730e79f0ff256f03f16b2
17,082
py
Python
autofile/exiftool.py
RhetTbull/autofile
b61235b29f8047699654ea101312bda257835e7c
[ "MIT" ]
6
2021-11-18T17:33:04.000Z
2022-01-08T04:51:55.000Z
autofile/exiftool.py
RhetTbull/autofile
b61235b29f8047699654ea101312bda257835e7c
[ "MIT" ]
8
2021-10-30T16:04:56.000Z
2022-01-02T17:26:52.000Z
autofile/exiftool.py
RhetTbull/autofile
b61235b29f8047699654ea101312bda257835e7c
[ "MIT" ]
null
null
null
""" Yet another simple exiftool wrapper I rolled my own for following reasons: 1. I wanted something under MIT license (best alternative was licensed under GPL/BSD) 2. I wanted singleton behavior so only a single exiftool process was ever running 3. When used as a context manager, I wanted the operati...
35.962105
141
0.610233
4a1b5aa1903da83733372e7525fb4fab6b6df0cc
1,863
py
Python
intermol/forces/urey_bradley_angle_type.py
ctk3b/intermol
5224b0a01e6db02ecb9dc1e6996a6df5e9bf630d
[ "MIT" ]
null
null
null
intermol/forces/urey_bradley_angle_type.py
ctk3b/intermol
5224b0a01e6db02ecb9dc1e6996a6df5e9bf630d
[ "MIT" ]
5
2015-01-06T13:21:51.000Z
2015-01-20T21:39:11.000Z
intermol/forces/urey_bradley_angle_type.py
ctk3b/intermol
5224b0a01e6db02ecb9dc1e6996a6df5e9bf630d
[ "MIT" ]
null
null
null
import simtk.unit as units from intermol.decorators import accepts_compatible_units from intermol.forces.abstract_angle_type import AbstractAngleType class UreyBradleyAngleType(AbstractAngleType): __slots__ = ['theta', 'k', 'r', 'kUB', 'c'] @accepts_compatible_units(None, None, None, ...
39.638298
101
0.551798
4a1b5aea3fecd08b3b1abbd58240d24fb0cf0738
22,024
py
Python
apps/microtvm/reference-vm/base-box-tool.py
yangulei/tvm
d2cbdf381b68134951bfd7525c6a3a67838e5bdf
[ "Apache-2.0" ]
1
2021-12-13T22:07:00.000Z
2021-12-13T22:07:00.000Z
apps/microtvm/reference-vm/base-box-tool.py
driazati/tvm
b76c817986040dc070d215cf32523d9b2adc8e8b
[ "Apache-2.0" ]
7
2022-02-17T23:04:46.000Z
2022-03-31T22:22:55.000Z
apps/microtvm/reference-vm/base-box-tool.py
yelite/tvm
7ae919292d42f5858d4db04533bca67b4b5bb44f
[ "Apache-2.0" ]
1
2022-02-07T06:50:05.000Z
2022-02-07T06:50:05.000Z
#!/usr/bin/env python3 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "L...
34.092879
102
0.614284
4a1b5b17cf79629fd6bc929d42ec86f413ea0b87
1,364
py
Python
scripts/effect.py
jkurdys/ThinkBayes2
1ebab8c10f2fec5db420f8032b23ea3c7d0f1346
[ "MIT" ]
1,337
2015-01-06T06:23:55.000Z
2022-03-31T21:06:21.000Z
scripts/effect.py
jkurdys/ThinkBayes2
1ebab8c10f2fec5db420f8032b23ea3c7d0f1346
[ "MIT" ]
43
2015-04-23T13:14:15.000Z
2022-01-04T12:55:59.000Z
scripts/effect.py
jkurdys/ThinkBayes2
1ebab8c10f2fec5db420f8032b23ea3c7d0f1346
[ "MIT" ]
1,497
2015-01-13T22:05:32.000Z
2022-03-30T09:19:53.000Z
"""This file contains code used in "Think Bayes", by Allen B. Downey, available from greenteapress.com Copyright 2014 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ from __future__ import print_function, division from variability import * import thinkplot import thinkbayes2 def RunEst...
23.517241
78
0.667889
4a1b5b4c1c6f066f8916601bd8856b1004dea80b
1,575
py
Python
learning/dl-www-to-pdf.py
trib0r3/scripts
d584acd42ed616ac8aa79137de409b8cc0e81046
[ "BSD-2-Clause" ]
null
null
null
learning/dl-www-to-pdf.py
trib0r3/scripts
d584acd42ed616ac8aa79137de409b8cc0e81046
[ "BSD-2-Clause" ]
null
null
null
learning/dl-www-to-pdf.py
trib0r3/scripts
d584acd42ed616ac8aa79137de409b8cc0e81046
[ "BSD-2-Clause" ]
null
null
null
# # Download WWW pages & convert it into PDF pages # # File required: 'style.css' (or delete it from code) # Files are saved under path <DirectoryName>/interesting-article # (for url: http://somewebsite.com/somecategory/some/interesting-article) # __author__ = "sheadovas" import pdfkit import requests from bs4 import...
24.230769
73
0.606984
4a1b5b589d5f099cb09948efe25545e543719923
61,571
py
Python
photosync.py
luizoscar/photosync
cfdc577d203df71d709182bf375b294f53b6c866
[ "Apache-2.0" ]
null
null
null
photosync.py
luizoscar/photosync
cfdc577d203df71d709182bf375b294f53b6c866
[ "Apache-2.0" ]
null
null
null
photosync.py
luizoscar/photosync
cfdc577d203df71d709182bf375b294f53b6c866
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import gi import sys import re import os import datetime import time import getopt import logging import math import shutil import subprocess from lxml import etree as ET from glob import g...
38.100866
234
0.625392
4a1b5ba7038cada01ca5630ec897fd02f2afb5a3
233
py
Python
Module 2/Chapter 8/7853OS_08_Codes/remote_chunk.py
PacktPublishing/Natural-Language-Processing-Python-and-NLTK
bb7fd9a3071b4247d13accfbf0a48eefec76e925
[ "MIT" ]
50
2016-12-11T13:49:01.000Z
2022-03-20T19:47:55.000Z
Module 2/Chapter 8/7853OS_08_Codes/remote_chunk.py
PacktPublishing/Natural-Language-Processing-Python-and-NLTK
bb7fd9a3071b4247d13accfbf0a48eefec76e925
[ "MIT" ]
null
null
null
Module 2/Chapter 8/7853OS_08_Codes/remote_chunk.py
PacktPublishing/Natural-Language-Processing-Python-and-NLTK
bb7fd9a3071b4247d13accfbf0a48eefec76e925
[ "MIT" ]
40
2017-06-14T14:02:48.000Z
2021-10-14T06:25:00.000Z
import pickle if __name__ == '__channelexec__': tagger = pickle.loads(channel.receive()) chunker = pickle.loads(channel.receive()) for sent in channel: tree = chunker.parse(tagger.tag(sent)) channel.send(pickle.dumps(tree))
25.888889
42
0.733906
4a1b5d07bf6c0d2356b8046f15eac4953e561f64
5,938
py
Python
official/modeling/multitask/multitask.py
wnorris/models
a5e4965d1f4e4b02d51aa344336b6fff53af7c17
[ "Apache-2.0" ]
1
2020-09-14T10:46:07.000Z
2020-09-14T10:46:07.000Z
official/modeling/multitask/multitask.py
wnorris/models
a5e4965d1f4e4b02d51aa344336b6fff53af7c17
[ "Apache-2.0" ]
null
null
null
official/modeling/multitask/multitask.py
wnorris/models
a5e4965d1f4e4b02d51aa344336b6fff53af7c17
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 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...
39.586667
79
0.683563
4a1b5de0c045030eb3f74ad30b38cdfd4bc7a759
556
py
Python
create_linear_topo.py
kboutarel/DAMIT
dcf8350d2afc76c84831ff42bf95bd9992df35c5
[ "Apache-2.0" ]
5
2017-12-30T12:11:08.000Z
2021-01-16T01:28:12.000Z
create_linear_topo.py
kboutarel/DAMIT
dcf8350d2afc76c84831ff42bf95bd9992df35c5
[ "Apache-2.0" ]
4
2017-12-31T12:17:52.000Z
2018-04-23T16:28:50.000Z
create_linear_topo.py
kboutarel/DAMIT
dcf8350d2afc76c84831ff42bf95bd9992df35c5
[ "Apache-2.0" ]
5
2017-03-22T22:29:27.000Z
2018-12-15T15:12:38.000Z
#!/usr/bin/env python2 import sys def write_topo(num_switches): with open("topo.txt", "w") as t: t.write("switches %d\n" % num_switches) t.write("outer_hosts 1\n") t.write("inner_hosts 1\n") for i in xrange(1, num_switches+1): if i == 1: t.write("o1 s1\n"...
26.47619
47
0.510791
4a1b5e9b03d05d46da6e028167127b63cdb9b5d5
76,619
py
Python
src/sage/schemes/generic/algebraic_scheme.py
Ivo-Maffei/DistanceRegular
d4dedd5c3e7da73111168fcce60d1f180fe24019
[ "BSL-1.0" ]
1
2020-05-19T22:34:03.000Z
2020-05-19T22:34:03.000Z
src/sage/schemes/generic/algebraic_scheme.py
Ivo-Maffei/DistanceRegular
d4dedd5c3e7da73111168fcce60d1f180fe24019
[ "BSL-1.0" ]
null
null
null
src/sage/schemes/generic/algebraic_scheme.py
Ivo-Maffei/DistanceRegular
d4dedd5c3e7da73111168fcce60d1f180fe24019
[ "BSL-1.0" ]
3
2020-03-29T17:13:36.000Z
2021-05-03T18:11:28.000Z
r""" Algebraic schemes An algebraic scheme is defined by a set of polynomials in some suitable affine or projective coordinates. Possible ambient spaces are * Affine spaces (:class:`AffineSpace <sage.schemes.affine.affine_space.AffineSpace_generic>`), * Projective spaces (:class:`ProjectiveSpace <sage.sc...
37.067731
174
0.553205
4a1b5eba9d064981f56ad861ceea7e885d37d92f
8,276
py
Python
lib/whoosh/support/bitvector.py
ckolumbus/WikidPad.svn
8f03c1105a8144c9a82e392ab7f32e263c533775
[ "Apache-2.0" ]
2
2019-02-24T08:53:20.000Z
2019-09-25T02:11:17.000Z
lib/whoosh/support/bitvector.py
ckolumbus/WikidPad.svn
8f03c1105a8144c9a82e392ab7f32e263c533775
[ "Apache-2.0" ]
null
null
null
lib/whoosh/support/bitvector.py
ckolumbus/WikidPad.svn
8f03c1105a8144c9a82e392ab7f32e263c533775
[ "Apache-2.0" ]
null
null
null
""" An implementation of an object that acts like a collection of on/off bits. """ import operator from array import array #: Table of the number of '1' bits in each byte (0-255) BYTE_COUNTS = array('B', [ 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5...
30.538745
94
0.518246
4a1b5f57a8c99a13fea9173a4a9093d8cb6f5476
1,873
py
Python
examples/misc_examples/interpolate_example.py
SAFedorov/bfieldtools
7e64bc2033670f01d2b90df2210b60743731a948
[ "BSD-3-Clause" ]
17
2020-05-22T19:39:39.000Z
2022-03-15T19:03:09.000Z
examples/misc_examples/interpolate_example.py
SAFedorov/bfieldtools
7e64bc2033670f01d2b90df2210b60743731a948
[ "BSD-3-Clause" ]
27
2020-05-20T14:22:41.000Z
2022-01-10T18:30:12.000Z
examples/misc_examples/interpolate_example.py
SAFedorov/bfieldtools
7e64bc2033670f01d2b90df2210b60743731a948
[ "BSD-3-Clause" ]
8
2020-08-12T10:30:50.000Z
2022-03-22T12:21:33.000Z
""" Interpolate stream function =========================== Minimal example showing how to subdivide a mesh and interpolate a scalar function defined on that mesh to match. """ from tvtk.api import tvtk from mayavi import mlab import trimesh import numpy as np from scipy.linalg import eigh from bfieldtools.mesh_ca...
22.566265
95
0.735184
4a1b613195df3a16a647b846392ab647f1c2b0f5
951
py
Python
scanEngine/models.py
Suprita-25/rengine
d6aabb49f27f7ad6039477c16a96213b0d80f81f
[ "MIT" ]
null
null
null
scanEngine/models.py
Suprita-25/rengine
d6aabb49f27f7ad6039477c16a96213b0d80f81f
[ "MIT" ]
null
null
null
scanEngine/models.py
Suprita-25/rengine
d6aabb49f27f7ad6039477c16a96213b0d80f81f
[ "MIT" ]
null
null
null
from django.db import models class EngineType(models.Model): engine_name = models.CharField(max_length=200) subdomain_discovery = models.BooleanField() dir_file_search = models.BooleanField() subdomain_takeover = models.BooleanField() port_scan = models.BooleanField() fetch_url = models.Boolea...
27.970588
66
0.724501
4a1b63d761246f351ce1086a15165b3ddf3304a2
1,109
py
Python
Exercicios Estruturas Logicas e Condicionais/exercicio 25 - secao 05.py
cristinamais/exercicios_python
8a09b0b68ffaa62d13afb952998e890a79667c7e
[ "MIT" ]
null
null
null
Exercicios Estruturas Logicas e Condicionais/exercicio 25 - secao 05.py
cristinamais/exercicios_python
8a09b0b68ffaa62d13afb952998e890a79667c7e
[ "MIT" ]
null
null
null
Exercicios Estruturas Logicas e Condicionais/exercicio 25 - secao 05.py
cristinamais/exercicios_python
8a09b0b68ffaa62d13afb952998e890a79667c7e
[ "MIT" ]
null
null
null
""" 25 - Calcule as raizes da equação de 2º grau. lembrando que: x = -b, + ou - raiz de delta / 2a. Onde: raiz de delta = B² - 4ac. E ax² + bx + c = 0 representa uma equação de 2º grau. A variável de zero tem que ser diferente de zero. Caso seja igual, imprima a mensagem "Não é equação de segundo grau." Se Delta < 0,...
29.972973
76
0.625789
4a1b64773351b6a7ae40acf1eb8118c14f83366a
4,054
py
Python
src/testing/distance_measurement/object_size_example.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
src/testing/distance_measurement/object_size_example.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
src/testing/distance_measurement/object_size_example.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
#https://www.pyimagesearch.com/2016/03/28/measuring-size-of-objects-in-an-image-with-opencv/ # import the necessary packages from scipy.spatial import distance as dist from imutils import perspective from imutils import contours import numpy as np import argparse import imutils import cv2 def midpoint(ptA, ptB): ret...
34.355932
92
0.703749
4a1b64bdc55834f19c86767f5553910b801fe51d
885
py
Python
3.3.9/project/middlewares/spider_middlewares.py
feel-easy/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
1
2019-02-28T10:16:00.000Z
2019-02-28T10:16:00.000Z
3.3.9/project/middlewares/spider_middlewares.py
wasalen/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
null
null
null
3.3.9/project/middlewares/spider_middlewares.py
wasalen/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
null
null
null
# THE WINTER IS COMING! the old driver will be driving who was a man of the world! # -*- coding: utf-8 -*- python 3.6.7, create time is 18-12-1 下午4:10 GMT+8 class TestSpiderMiddleware1(object): def process_request(self, request, spider): '''处理请求头,添加默认的user-agent''' print("TestSpiderMiddleware1: pr...
32.777778
82
0.676836
4a1b64c0e86378ae2ae8e0c9f9d9cf0a6f17c89b
1,808
py
Python
src/cldfbench/commands/catinfo.py
johenglisch/cldfbench
59e868015beb0d86c5855f66d659866b322dcebc
[ "Apache-2.0" ]
4
2019-10-16T07:45:09.000Z
2021-12-27T22:10:07.000Z
src/cldfbench/commands/catinfo.py
johenglisch/cldfbench
59e868015beb0d86c5855f66d659866b322dcebc
[ "Apache-2.0" ]
63
2019-10-04T10:29:21.000Z
2022-03-25T09:08:57.000Z
src/cldfbench/commands/catinfo.py
johenglisch/cldfbench
59e868015beb0d86c5855f66d659866b322dcebc
[ "Apache-2.0" ]
4
2019-11-26T10:29:27.000Z
2021-02-10T08:34:49.000Z
""" Display information about catalogs in the system """ import termcolor from cldfcatalog import Config from cldfbench.cli_util import add_catalog_spec from cldfbench.catalogs import BUILTIN_CATALOGS from cldfbench.util import iter_aligned def register(parser): for cat in BUILTIN_CATALOGS: add_catalog_...
28.698413
84
0.591814
4a1b664710de9b25fcf4cdb3f20562b4a119a272
3,612
py
Python
voltoolbox/fit/average_spline.py
quintron/vol-toolbox
0bddb66c0160da1fb9393c60f6a99600311bbcf9
[ "MIT" ]
null
null
null
voltoolbox/fit/average_spline.py
quintron/vol-toolbox
0bddb66c0160da1fb9393c60f6a99600311bbcf9
[ "MIT" ]
null
null
null
voltoolbox/fit/average_spline.py
quintron/vol-toolbox
0bddb66c0160da1fb9393c60f6a99600311bbcf9
[ "MIT" ]
1
2020-08-18T17:56:09.000Z
2020-08-18T17:56:09.000Z
import numpy as np import scipy.integrate as integrate def avg(f, z): if abs(z) < 1.0e-15: return f(0.0) x, _ = integrate.quad(f, 0.0, z) return x / z class AverageSpline(object): def __init__(self, put_zs=None, call_zs=None): self.put_zs = tuple(put_zs) if put_zs else tuple() ...
34.730769
77
0.495293
4a1b66b5e34c4759f9d97bd84f874080504b6f5b
11,655
py
Python
backend/op/op_manager.py
sleepingAnt/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
645
2015-01-03T02:03:59.000Z
2021-12-03T08:43:16.000Z
backend/op/op_manager.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
null
null
null
backend/op/op_manager.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
222
2015-01-07T05:00:52.000Z
2021-12-06T09:54:26.000Z
# Copyright 2012 Viewfinder Inc. All Rights Reserved. """Viewfinder operation manager. The operation manager tracks and executes operations submitted by user devices. The key goals of the operation manager are: - Provide restart functionality for incomplete operations - Serialize operations coming from a single d...
45.705882
114
0.711111
4a1b67f2ccab7f6c325c67e849ab99eb03ffb635
8,146
py
Python
scripts/train.py
leezhp1994/TMHFS
4711c38aab7657313eea3697da5cb1e4122ae8c8
[ "Apache-2.0" ]
7
2020-05-20T02:22:25.000Z
2021-03-26T08:51:51.000Z
scripts/train.py
leezhp1994/TMHFS
4711c38aab7657313eea3697da5cb1e4122ae8c8
[ "Apache-2.0" ]
null
null
null
scripts/train.py
leezhp1994/TMHFS
4711c38aab7657313eea3697da5cb1e4122ae8c8
[ "Apache-2.0" ]
null
null
null
import os import sys sys.path.append('../') import argparse import numpy as np import torch from utils.generator.generators_train import miniImageNetGenerator as train_loader from utils.model import Runner from utils import configs def str2bool(v): if isinstance(v, bool): return v if v.lower() in ('ye...
41.350254
109
0.610115
4a1b69377cbe114d0ff86a93ac41f2645662116e
7,955
py
Python
src/scripts/retrive_sfd_data.py
seattlepublicrecords/revealseattle
727d6fcaed3abd3170f4941d249067c52e86bf96
[ "Apache-2.0" ]
null
null
null
src/scripts/retrive_sfd_data.py
seattlepublicrecords/revealseattle
727d6fcaed3abd3170f4941d249067c52e86bf96
[ "Apache-2.0" ]
5
2016-10-12T05:21:56.000Z
2016-10-12T10:26:10.000Z
src/scripts/retrive_sfd_data.py
seattlepublicrecords/revealseattle
727d6fcaed3abd3170f4941d249067c52e86bf96
[ "Apache-2.0" ]
null
null
null
import sys, traceback from bs4 import BeautifulSoup import rethinkdb as r import requests import time import geocoder import datetime from dateutil.parser import parse as dtparse from pytz import timezone r.connect( "localhost", 28015).repl() la = timezone('America/Los_Angeles') table = r.db("revealseattle").table("dis...
56.021127
215
0.63193
4a1b696566f3e9b6158ddef3d52f0b73d594152b
12,977
py
Python
kra.py
jangbi882/KraRaceCollector
7598639af7b299a3995ba41a598bec57478d3742
[ "Apache-2.0" ]
null
null
null
kra.py
jangbi882/KraRaceCollector
7598639af7b299a3995ba41a598bec57478d3742
[ "Apache-2.0" ]
null
null
null
kra.py
jangbi882/KraRaceCollector
7598639af7b299a3995ba41a598bec57478d3742
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import urllib import urllib2 from bs4 import BeautifulSoup import re import sys import locale import os.path import time os_encoding = locale.getpreferredencoding() file_base = os.path.basename(__file__) # 시간 파싱에 공통적으로 사용할 정규식. time_re = re.compile(r"^(\d+)\:(\d+).(\d+)$") opt...
33.619171
137
0.440009
4a1b6abc90f837cc055b7bd146d1b5643881a1e7
2,190
py
Python
git_gopher/StashPreview.py
derekhamilton/git-gud
7fd377a39796b0aa1268e7ecda6808e8e45173fe
[ "MIT" ]
15
2019-11-13T20:59:53.000Z
2020-12-15T05:21:21.000Z
git_gopher/StashPreview.py
derekhamilton/git-gud
7fd377a39796b0aa1268e7ecda6808e8e45173fe
[ "MIT" ]
50
2019-10-12T16:57:11.000Z
2019-10-27T21:03:22.000Z
git_gopher/StashPreview.py
derekhamilton/git-gud
7fd377a39796b0aa1268e7ecda6808e8e45173fe
[ "MIT" ]
1
2019-11-14T03:20:21.000Z
2019-11-14T03:20:21.000Z
from os.path import isfile from pathlib import Path from pygments import highlight from pygments.lexers import guess_lexer from pygments.formatters import TerminalFormatter from colorama import Fore, Style import shutil from git_gopher.GitDataGetter import GitDataGetter class StashPreview: def __init__(self, git_d...
37.118644
89
0.629224
4a1b6add88dfcab9de5ffbebaa6bb6ff1fcaa3fd
1,695
py
Python
lc/lc204_count_primes.py
totoro72/pt1
92cffb9b36ebe2023243446e560e54200b0bd6e9
[ "MIT" ]
null
null
null
lc/lc204_count_primes.py
totoro72/pt1
92cffb9b36ebe2023243446e560e54200b0bd6e9
[ "MIT" ]
17
2020-09-04T16:35:48.000Z
2022-03-02T03:21:39.000Z
lc/lc204_count_primes.py
totoro72/pt1
92cffb9b36ebe2023243446e560e54200b0bd6e9
[ "MIT" ]
null
null
null
import math class Solution(object): def countPrimes_slow(self, n): """Return the number of primes p where p < n and n >= 0""" if n <= 2: return 0 # if n == 2, 2 is a rpime. but not include that primes = [2] for k in range(3, n): # test if any of the p...
33.235294
121
0.487316
4a1b6c224f87f129c248e783915207f2bfc8cfdb
9,839
py
Python
rally/common/io/subunit_v2.py
tyzhnenko/rally
1d9c1e82f33686c80e49edd041fcd8d0253afdb1
[ "Apache-2.0" ]
263
2015-04-26T16:05:34.000Z
2022-02-28T11:17:07.000Z
rally/common/io/subunit_v2.py
tyzhnenko/rally
1d9c1e82f33686c80e49edd041fcd8d0253afdb1
[ "Apache-2.0" ]
19
2015-04-23T11:53:10.000Z
2019-02-20T11:23:09.000Z
rally/common/io/subunit_v2.py
tyzhnenko/rally
1d9c1e82f33686c80e49edd041fcd8d0253afdb1
[ "Apache-2.0" ]
287
2015-04-23T11:28:03.000Z
2021-09-16T13:05:53.000Z
# Copyright 2015: Mirantis 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 b...
39.356
79
0.565403
4a1b6c5f6abe2dea8b3a02740445a4d7002aa124
22,400
py
Python
venv/Lib/site-packages/gotrue/_async/client.py
KevinArellano94/Python-Supabase
98d2497419cd796e95555935239d1178e250f3ab
[ "MIT" ]
13
2021-10-06T08:50:55.000Z
2022-03-29T18:21:12.000Z
venv/Lib/site-packages/gotrue/_async/client.py
KevinArellano94/Python-Supabase
98d2497419cd796e95555935239d1178e250f3ab
[ "MIT" ]
82
2021-09-29T11:50:29.000Z
2022-03-24T07:27:33.000Z
venv/Lib/site-packages/gotrue/_async/client.py
KevinArellano94/Python-Supabase
98d2497419cd796e95555935239d1178e250f3ab
[ "MIT" ]
4
2021-09-15T07:33:22.000Z
2022-01-13T22:53:01.000Z
from __future__ import annotations from functools import partial from json import dumps, loads from threading import Timer from time import time from typing import Any, Callable, Dict, Optional, Tuple, Union, cast from urllib.parse import parse_qs, urlparse from uuid import uuid4 from ..constants import COOKIE_OPTION...
35
87
0.599598
4a1b6c748898149806d49f213bd08b5464c96407
146
py
Python
.history/AdvanceP/error_20200514081055.py
EvanthiosPapadopoulos/Python3
ab773fd458e365c1510f98ecac65965234c881e8
[ "MIT" ]
1
2020-05-18T17:50:00.000Z
2020-05-18T17:50:00.000Z
Udemy/Complete_Python_Bootcamp/AdvanceP/error.py
EvanthiosPapadopoulos/Python3
ab773fd458e365c1510f98ecac65965234c881e8
[ "MIT" ]
null
null
null
Udemy/Complete_Python_Bootcamp/AdvanceP/error.py
EvanthiosPapadopoulos/Python3
ab773fd458e365c1510f98ecac65965234c881e8
[ "MIT" ]
null
null
null
''' A very simple script ''' def myfunc(): ''' simple ''' first = 1 second = 2 print(first) print(second) myfunc()
9.125
20
0.493151
4a1b6d2b097bdda71e26cec231abed69fd5b61d7
1,415
py
Python
cohesity_management_sdk/models/status_dag_application_server_info_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/status_dag_application_server_info_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/status_dag_application_server_info_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class StatusDagApplicationServerInfoEnum(object): """Implementation of the 'Status_DagApplicationServerInfo' enum. Specifies the status of the registration of the Exchange Application Server. Specifies the status of registration of Exchange Appli...
32.159091
78
0.722968
4a1b6dc2125076b4a876ebbf12e8de51ab7a786c
430
py
Python
djspace/bin/export.py
carthagecollege/django-djspace
0fd26cccecdfd644255b323664e69b856ec90838
[ "MIT" ]
null
null
null
djspace/bin/export.py
carthagecollege/django-djspace
0fd26cccecdfd644255b323664e69b856ec90838
[ "MIT" ]
10
2020-10-06T15:39:29.000Z
2022-02-19T15:07:12.000Z
djspace/bin/export.py
carthagecollege/django-djspace
0fd26cccecdfd644255b323664e69b856ec90838
[ "MIT" ]
null
null
null
import django django.setup() from django.contrib.auth.models import User users = User.objects.all().order_by("last_name") for user in users: try: apps = user.profile.applications.all() except: apps = None if apps: for a in apps: #if str(a) == "First Nations Rocket Comp...
23.888889
66
0.609302
4a1b6e4921b56db8912fdc771a559b63e29f6772
14,147
py
Python
sdk/python/pulumi_azure_native/network/v20200601/virtual_hub_route_table_v2.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200601/virtual_hub_route_table_v2.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200601/virtual_hub_route_table_v2.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
49.465035
1,661
0.67456
4a1b6fb288e5039d358dc3cd2863b49de35ca387
199
py
Python
baekjoon/python/sum_of_numbers_11720.py
yskang/AlgorithmPracticeWithPython
f7129bd1924a7961489198f0ee052d2cd1e9cf40
[ "MIT" ]
null
null
null
baekjoon/python/sum_of_numbers_11720.py
yskang/AlgorithmPracticeWithPython
f7129bd1924a7961489198f0ee052d2cd1e9cf40
[ "MIT" ]
null
null
null
baekjoon/python/sum_of_numbers_11720.py
yskang/AlgorithmPracticeWithPython
f7129bd1924a7961489198f0ee052d2cd1e9cf40
[ "MIT" ]
null
null
null
# https://www.acmicpc.net/problem/11720 import sys from functools import reduce N = int(sys.stdin.readline()) print(reduce(lambda i, j: i + j, map(int, sys.stdin.readline().replace("\n", ""))))
33.166667
83
0.678392
4a1b6fbb10308cf4e8430336d2216a231a4ddc56
33,388
py
Python
converters/stylegan_official/training/networks_stylegan.py
ShenYujun/genforce
2ad04974cfaeba20b93c806531f987f06cc5c328
[ "MIT" ]
827
2020-09-25T04:10:30.000Z
2022-03-23T20:20:35.000Z
converters/stylegan_official/training/networks_stylegan.py
ShenYujun/genforce
2ad04974cfaeba20b93c806531f987f06cc5c328
[ "MIT" ]
31
2020-10-11T04:56:24.000Z
2022-02-23T15:51:30.000Z
converters/stylegan_official/training/networks_stylegan.py
ShenYujun/genforce
2ad04974cfaeba20b93c806531f987f06cc5c328
[ "MIT" ]
68
2020-09-30T08:23:33.000Z
2022-03-12T06:33:38.000Z
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # This work is licensed under the Creative Commons Attribution-NonCommercial # 4.0 International License. To view a copy of this license, visit # http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to # Creative Commons, PO Box 1866, Mountain ...
50.435045
191
0.591051
4a1b6fde85db573d81d907b69bd9ec34be3cf56a
6,525
py
Python
multimodal/graph/node-based/dataset.py
shubham-gupta-iitr/mmmlX
3485e6191e0e45bf1c8168e4e928a36ab9264d22
[ "Apache-2.0" ]
null
null
null
multimodal/graph/node-based/dataset.py
shubham-gupta-iitr/mmmlX
3485e6191e0e45bf1c8168e4e928a36ab9264d22
[ "Apache-2.0" ]
null
null
null
multimodal/graph/node-based/dataset.py
shubham-gupta-iitr/mmmlX
3485e6191e0e45bf1c8168e4e928a36ab9264d22
[ "Apache-2.0" ]
1
2022-02-12T23:38:10.000Z
2022-02-12T23:38:10.000Z
import os.path as osp import typing from numpy.lib.utils import source import torch # from torch_geometric.data import InMemoryDataset from torch_geometric.data import Data, Dataset from tqdm import tqdm import numpy as np from utils import get_ids, load_bert_feats, load_data, load_image_feats import torch_geometric.t...
42.096774
113
0.56613
4a1b6ff2ce476b0c8d5daef0e0670d8d2c8d16dc
128
py
Python
sharktopoda_client/localization/Preconditions.py
kevinsbarnard/sharktopoda-client-py
21130b19436f193bd76751613a529512d76d9e84
[ "MIT" ]
null
null
null
sharktopoda_client/localization/Preconditions.py
kevinsbarnard/sharktopoda-client-py
21130b19436f193bd76751613a529512d76d9e84
[ "MIT" ]
2
2021-11-19T23:25:39.000Z
2021-11-19T23:25:42.000Z
sharktopoda_client/localization/Preconditions.py
kevinsbarnard/sharktopoda-client-py
21130b19436f193bd76751613a529512d76d9e84
[ "MIT" ]
null
null
null
class Preconditions: @staticmethod def require(ok: bool, msg: str): if not ok: raise ValueError(msg)
25.6
36
0.601563
4a1b702476bd548ccfeaa8f47ea9faf4c0eadd4f
4,761
py
Python
tests/run_test.py
huypn12/Oclgrind
5c9a39f2f6a6c0d0ab3d09cc4da046d41e09c214
[ "BSD-3-Clause" ]
284
2015-01-20T19:21:39.000Z
2022-03-14T08:42:44.000Z
tests/run_test.py
huypn12/Oclgrind
5c9a39f2f6a6c0d0ab3d09cc4da046d41e09c214
[ "BSD-3-Clause" ]
133
2015-01-17T11:51:23.000Z
2022-03-03T11:54:21.000Z
tests/run_test.py
huypn12/Oclgrind
5c9a39f2f6a6c0d0ab3d09cc4da046d41e09c214
[ "BSD-3-Clause" ]
67
2015-03-24T18:02:38.000Z
2022-01-07T13:34:06.000Z
# run_test.py (Oclgrind) # Copyright (c) 2013-2019, James Price and Simon McIntosh-Smith, # University of Bristol. All rights reserved. # # This program is provided under a three-clause BSD license. For full # license terms please see the LICENSE file distributed with this # source code. import errno import os import ...
26.898305
80
0.611216
4a1b706b619d8318734189983a7e9c91579c5ce1
2,523
py
Python
boldigger/first_hit.py
lokalmatador123/BOLDigger
49888c4e01b32cbdfeff9dcaefe2734933100391
[ "MIT" ]
null
null
null
boldigger/first_hit.py
lokalmatador123/BOLDigger
49888c4e01b32cbdfeff9dcaefe2734933100391
[ "MIT" ]
null
null
null
boldigger/first_hit.py
lokalmatador123/BOLDigger
49888c4e01b32cbdfeff9dcaefe2734933100391
[ "MIT" ]
null
null
null
import openpyxl, datetime import pandas as pd import PySimpleGUI as sg def first_hit(xlsx_path): ## load data into a dataframe data = pd.read_excel(xlsx_path, header = 0, engine = 'openpyxl') data = data.rename(columns = {'You searched for': 'ID'}) ## open workbook for checking the type and...
32.766234
112
0.585811
4a1b70c39cb8fb6d879bad8e66cdef2eb21005b6
3,458
py
Python
tests/torchgan/test_trainer.py
shubhsherl/torchgan
3dd3757dfed7c1f95aa71a7cd71f199390eb5d6d
[ "MIT" ]
null
null
null
tests/torchgan/test_trainer.py
shubhsherl/torchgan
3dd3757dfed7c1f95aa71a7cd71f199390eb5d6d
[ "MIT" ]
null
null
null
tests/torchgan/test_trainer.py
shubhsherl/torchgan
3dd3757dfed7c1f95aa71a7cd71f199390eb5d6d
[ "MIT" ]
null
null
null
import unittest import torch import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) import torchvision from torch.optim import Adam import torch.utils.data as data import torchvision.datasets as dsets import torchvision.transforms as transforms from torchgan.metrics import * from torchga...
51.61194
105
0.565067
4a1b7115e1ef0bfeb3007ec018de8f9ac50a29ee
937
py
Python
src/properties/get_pc_non_productive.py
ngannguyen/aimseqtk
1ebaee3b927f7fb128de4a59b759c19fceeefb5b
[ "MIT" ]
2
2015-03-08T20:46:05.000Z
2020-03-14T12:06:11.000Z
src/properties/get_pc_non_productive.py
ngannguyen/aimseqtk
1ebaee3b927f7fb128de4a59b759c19fceeefb5b
[ "MIT" ]
1
2015-03-01T00:40:55.000Z
2015-03-01T00:40:55.000Z
src/properties/get_pc_non_productive.py
ngannguyen/aimseqtk
1ebaee3b927f7fb128de4a59b759c19fceeefb5b
[ "MIT" ]
null
null
null
import os import sys def read_clonesize(file): s2clones = {} f = open(file, 'r') f.readline() for line in f: items = line.strip().split('\t') sample = items[0] clones = int(float(items[1])) s2clones[sample] = clones f.close() return s2clones def get_np_pc(p_s2c...
24.025641
72
0.578442
4a1b7237674cf3c389b71652b1ce86b7f3051507
5,650
py
Python
athos/p4_mininet.py
Belthazaar/athos
f8b73666f272f4e2d84be090e6dd6bc2953c1c3e
[ "Apache-2.0" ]
null
null
null
athos/p4_mininet.py
Belthazaar/athos
f8b73666f272f4e2d84be090e6dd6bc2953c1c3e
[ "Apache-2.0" ]
null
null
null
athos/p4_mininet.py
Belthazaar/athos
f8b73666f272f4e2d84be090e6dd6bc2953c1c3e
[ "Apache-2.0" ]
1
2021-03-01T01:24:02.000Z
2021-03-01T01:24:02.000Z
# Copyright 2013-present Barefoot Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
35.093168
86
0.579292
4a1b72480f701b03aa9e487d3f899ec04fdb2184
4,405
py
Python
flo_core/src/simon_says.py
Rehab-Robotics-Lab/LilFloSystem
913ee95bd776331139bc741ca65dbc53eaa04c21
[ "BSD-4-Clause-UC" ]
10
2020-04-03T13:02:52.000Z
2021-12-22T23:24:00.000Z
flo_core/src/simon_says.py
Rehab-Robotics-Lab/LilFloSystem
913ee95bd776331139bc741ca65dbc53eaa04c21
[ "BSD-4-Clause-UC" ]
76
2020-04-04T00:25:29.000Z
2022-02-27T09:31:49.000Z
flo_core/src/simon_says.py
Rehab-Robotics-Lab/LilFloSystem
913ee95bd776331139bc741ca65dbc53eaa04c21
[ "BSD-4-Clause-UC" ]
6
2020-04-08T01:19:46.000Z
2021-07-09T01:57:16.000Z
#!/usr/bin/env python """A module for generating simon says type games""" import random from itertools import chain # ok to have too many args for a utility func # pylint: disable=too-many-arguments def sort_defs(new_def, left, right, process_step, check_side_seq, append_action): """Sort the definitions from a n...
37.330508
93
0.619296
4a1b729e64875f271f2998797c7395196ee2fbbb
9,203
py
Python
Vereniging/test_lijstverenigingen.py
RamonvdW/nhb-apps
5a9f840bfe066cd964174515c06b806a7b170c69
[ "BSD-3-Clause-Clear" ]
1
2021-12-22T13:11:12.000Z
2021-12-22T13:11:12.000Z
Vereniging/test_lijstverenigingen.py
RamonvdW/nhb-apps
5a9f840bfe066cd964174515c06b806a7b170c69
[ "BSD-3-Clause-Clear" ]
9
2020-10-28T07:07:05.000Z
2021-06-28T20:05:37.000Z
Vereniging/test_lijstverenigingen.py
RamonvdW/nhb-apps
5a9f840bfe066cd964174515c06b806a7b170c69
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019-2021 Ramon van der Winkel. # All rights reserved. # Licensed under BSD-3-Clause-Clear. See LICENSE file for details. from django.test import TestCase from Competitie.models import DeelCompetitie, LAAG_BK, LAAG_RK, LAAG_REGIO from Competitie.operations import competities...
38.831224
110
0.664457
4a1b73355d2e16f23c98ad5143b50f40b9d2e57e
242
py
Python
Chapter01/greenlet_demo.py
mtianyan/PythonMicroservicesDevelopment_Code
a99c6c18dfb40e790aa4a5e24ff5eba495e64743
[ "Apache-2.0" ]
7
2019-01-14T01:11:32.000Z
2022-01-17T16:28:56.000Z
Chapter01/greenlet_demo.py
mtianyan/PythonMicroservicesDevelopment_Code
a99c6c18dfb40e790aa4a5e24ff5eba495e64743
[ "Apache-2.0" ]
null
null
null
Chapter01/greenlet_demo.py
mtianyan/PythonMicroservicesDevelopment_Code
a99c6c18dfb40e790aa4a5e24ff5eba495e64743
[ "Apache-2.0" ]
2
2019-01-14T00:51:49.000Z
2020-08-13T03:18:27.000Z
from greenlet import greenlet # pip install greenlet def test1(x, y): z = gr2.switch(x+y) print(z) def test2(u): print (u) gr1.switch(42) gr1 = greenlet(test1) gr2 = greenlet(test2) gr1.switch("hello", " world") """ hello world 42 """
12.736842
29
0.665289
4a1b734895efe1b2bec278b565c214fc0ed38f92
12,667
py
Python
desktop/core/ext-py/Twisted/twisted/internet/task.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
desktop/core/ext-py/Twisted/twisted/internet/task.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
desktop/core/ext-py/Twisted/twisted/internet/task.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
# -*- test-case-name: twisted.test.test_task -*- # Copyright (c) 2001-2007 Twisted Matrix Laboratories. # See LICENSE for details. """ Scheduling utility methods and classes. @author: Jp Calderone """ __metaclass__ = type import time from zope.interface import implements from twisted.python import reflect from t...
30.087886
79
0.604642
4a1b73a828ab40ba69413776a541842602a275e0
765
py
Python
src/bot_modules/sleep_handler.py
mastershakej/Reddit-Alert-Bot
7da02afb718d22ded634670785b9ce5f03496925
[ "MIT" ]
null
null
null
src/bot_modules/sleep_handler.py
mastershakej/Reddit-Alert-Bot
7da02afb718d22ded634670785b9ce5f03496925
[ "MIT" ]
null
null
null
src/bot_modules/sleep_handler.py
mastershakej/Reddit-Alert-Bot
7da02afb718d22ded634670785b9ce5f03496925
[ "MIT" ]
null
null
null
from sys import stdout import time class SleepHandler: @staticmethod def sleep(seconds): digits = len(str(seconds)) seconds += 1 for i in range(1, seconds): stdout.write('\r') if i % 4 == 0: stdout.write('Sleeping (' + str(seconds - i).zfill(digit...
34.772727
81
0.477124