hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
4d719b12fbc11cdefd9e7e1b54d2c22cf2764b32
16,262
py
Python
picwriter/components/electrical.py
DerekK88/picwriter
d30548ea111593452f055074f8e62a0e6181146b
[ "MIT" ]
26
2018-07-13T19:10:04.000Z
2022-03-31T12:52:34.000Z
picwriter/components/electrical.py
DerekK88/picwriter
d30548ea111593452f055074f8e62a0e6181146b
[ "MIT" ]
28
2018-10-29T02:32:36.000Z
2021-03-04T22:32:27.000Z
picwriter/components/electrical.py
DerekK88/picwriter
d30548ea111593452f055074f8e62a0e6181146b
[ "MIT" ]
14
2018-02-12T02:36:30.000Z
2022-01-19T10:34:22.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np import gdspy import picwriter.toolkit as tk class MetalTemplate: """Template for electrical wires that contains some standard information about the fabrication process and metal wire. ...
40.252475
231
0.499631
fb99c62242736125cd038ea5900e2d60ad6eb065
11,473
py
Python
tests/simulations/general/test_systems.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
null
null
null
tests/simulations/general/test_systems.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
1
2021-02-03T01:56:56.000Z
2021-02-03T01:56:56.000Z
tests/simulations/general/test_systems.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
1
2022-01-11T18:31:05.000Z
2022-01-11T18:31:05.000Z
import copy from pathlib import Path from tests.simulations import BaseSimulationTest from src.epjson_handler import EPJSON from src.hvac_template import HVACTemplate mock_thermostat_template = { "HVACTemplate:Thermostat": { "All Zones Dual": { "cooling_setpoint_schedule_name": "Clg-SetP-Sch",...
48.004184
108
0.620936
3b8ae8fbaea21466a79cb5634201b0a7ea487a97
501
py
Python
Exercices/Secao04/exercicio41.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao04/exercicio41.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao04/exercicio41.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
print('Digite o valor da hora de trabalho (em reais) e o número de horas trabalhadas por mês, ' 'irá fazer o valor o cálculo do salário do funcionário com um acréscimo de 10%' ) hora_de_trabalho = float(input('Preço da hora de trabalho: ')) horas_trabalhadas = float(input('Horas de trabalho: ')) salario = horas_t...
62.625
95
0.746507
217e2a5399c1ef1d4defc6617ff71a6885551db0
754
py
Python
rate/migrations/0014_warnings.py
Harsh14901/ProfCourse_review_portal
9cb2c332aa090e4aa54865ba66c6eda42cc0de89
[ "MIT" ]
null
null
null
rate/migrations/0014_warnings.py
Harsh14901/ProfCourse_review_portal
9cb2c332aa090e4aa54865ba66c6eda42cc0de89
[ "MIT" ]
1
2020-03-28T19:48:55.000Z
2020-03-29T09:34:33.000Z
rate/migrations/0014_warnings.py
Harsh14901/ProfCourse_review_portal
9cb2c332aa090e4aa54865ba66c6eda42cc0de89
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-22 11:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('rate', '0013_auto_202003...
30.16
118
0.635279
4a7df9dbf3d92960113ddcde96986874fe363538
197
py
Python
FlaskServer/main.py
guopeiming/toy-crawling
df103ab3302de4bd81ceb04144f222bf4fc37966
[ "Apache-2.0" ]
null
null
null
FlaskServer/main.py
guopeiming/toy-crawling
df103ab3302de4bd81ceb04144f222bf4fc37966
[ "Apache-2.0" ]
null
null
null
FlaskServer/main.py
guopeiming/toy-crawling
df103ab3302de4bd81ceb04144f222bf4fc37966
[ "Apache-2.0" ]
null
null
null
from gevent.pywsgi import WSGIServer from flaskr import create_app if __name__ == '__main__': app = create_app() http_server = WSGIServer(('', 5000), app) http_server.serve_forever()
21.888889
45
0.715736
388f0fdbd1b8420667ee8cc07378998bc8d68164
772
py
Python
cohesity_management_sdk/models/vm_backup_status_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/vm_backup_status_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/vm_backup_status_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 VmBackupStatusEnum(object): """Implementation of the 'VmBackupStatus' enum. Specifies the status of the VM for backup purpose. overrideDescription: true Specifies the backup status of a HyperV Virtual Machine object. 'kSupported' indica...
27.571429
72
0.704663
4d4bb0dc60fa6d37cba4b9aed89e4089bbbdc486
5,874
py
Python
Products/CMFCore/DynamicType.py
MatthewWilkes/Products.CMFCore
22cba1e66040053762e57ac3597409038898a65f
[ "ZPL-2.1" ]
null
null
null
Products/CMFCore/DynamicType.py
MatthewWilkes/Products.CMFCore
22cba1e66040053762e57ac3597409038898a65f
[ "ZPL-2.1" ]
null
null
null
Products/CMFCore/DynamicType.py
MatthewWilkes/Products.CMFCore
22cba1e66040053762e57ac3597409038898a65f
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2001 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
33.758621
79
0.610146
1c0dd591456553fb2831ffd274f1dbb9a68dabc5
8,506
py
Python
selfdrive/car/fw_versions.py
godzqh/openpilot
1747bf9f2ee6194d61e1242be7a35a5aa70f4e42
[ "MIT" ]
null
null
null
selfdrive/car/fw_versions.py
godzqh/openpilot
1747bf9f2ee6194d61e1242be7a35a5aa70f4e42
[ "MIT" ]
null
null
null
selfdrive/car/fw_versions.py
godzqh/openpilot
1747bf9f2ee6194d61e1242be7a35a5aa70f4e42
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import struct import traceback from typing import Any from tqdm import tqdm import panda.python.uds as uds from cereal import car from selfdrive.car.fingerprints import FW_VERSIONS, get_attr_from_cars from selfdrive.car.isotp_parallel_query import IsoTpParallelQuery from selfdrive.car.toyota.va...
31.387454
126
0.699036
4b1be86dbd78fa399f3ebf003869a2ee500d9e0b
8,890
py
Python
scripts/inversion.py
lelechen63/CIPS-3D
49e34ecab7410ac357a3d467e347cd39ee442bd5
[ "MIT" ]
1
2022-03-20T08:10:29.000Z
2022-03-20T08:10:29.000Z
scripts/inversion.py
lelechen63/CIPS-3D
49e34ecab7410ac357a3d467e347cd39ee442bd5
[ "MIT" ]
1
2022-03-21T04:54:10.000Z
2022-03-21T04:54:10.000Z
scripts/inversion.py
lelechen63/CIPS-3D
49e34ecab7410ac357a3d467e347cd39ee442bd5
[ "MIT" ]
1
2022-02-25T01:28:10.000Z
2022-02-25T01:28:10.000Z
import copy from pathlib import Path import math import numpy as np import os from tqdm import tqdm import streamlit as st import torch import sys sys.path.insert(0, os.getcwd()) from tl2.proj.fvcore import TLCfgNode, global_cfg from tl2.proj.fvcore import build_model from tl2.proj.argparser import argparser_utils fr...
37.196653
148
0.638133
10b8a3cd7040aac1c819d1e5024fe151f04dcc19
319
py
Python
test/test_form.py
dom-nie/puppetboard
233494365f6e12fe58b9e9669ab71c95a2247f65
[ "Apache-2.0" ]
null
null
null
test/test_form.py
dom-nie/puppetboard
233494365f6e12fe58b9e9669ab71c95a2247f65
[ "Apache-2.0" ]
null
null
null
test/test_form.py
dom-nie/puppetboard
233494365f6e12fe58b9e9669ab71c95a2247f65
[ "Apache-2.0" ]
1
2020-09-29T07:14:03.000Z
2020-09-29T07:14:03.000Z
import pytest from puppetboard import app, forms def test_form_valid(capsys): for form in [forms.QueryForm]: with app.app.test_request_context(): qf = form() out, err = capsys.readouterr() assert qf is not None assert err == "" assert out == ""
24.538462
44
0.567398
79a4d4bef3a3877b8b1ed96f6c36b9287dad3f37
4,595
py
Python
research/object_detection/predictors/heads/keypoint_head.py
gujralsanyam22/models
d96f8f043dbe2b5ca8ea1785f57df8faf68d8875
[ "Apache-2.0" ]
82,518
2016-02-05T12:07:23.000Z
2022-03-31T23:09:47.000Z
research/object_detection/predictors/heads/keypoint_head.py
yangxl-2014-fe/models
11ea5237818e791a5717716d5413977f4c4db1e3
[ "Apache-2.0" ]
9,021
2016-03-08T01:02:05.000Z
2022-03-31T08:06:35.000Z
research/object_detection/predictors/heads/keypoint_head.py
yangxl-2014-fe/models
11ea5237818e791a5717716d5413977f4c4db1e3
[ "Apache-2.0" ]
54,341
2016-02-06T17:19:55.000Z
2022-03-31T10:27:44.000Z
# Lint as: python2, python3 # 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 # ...
39.612069
80
0.708814
0b87773bee06feccaec4c41a3ebef098013b5405
7,374
py
Python
jsanctions/un.py
kajala/django-jsanctions
c34d9b430160911b455499385d774060b9f1772d
[ "MIT" ]
3
2019-10-15T10:31:51.000Z
2021-01-25T12:01:34.000Z
jsanctions/un.py
kajala/django-jsanctions
c34d9b430160911b455499385d774060b9f1772d
[ "MIT" ]
null
null
null
jsanctions/un.py
kajala/django-jsanctions
c34d9b430160911b455499385d774060b9f1772d
[ "MIT" ]
null
null
null
import logging from typing import Any, Dict, List, Optional from django.core.exceptions import ValidationError from django.db import transaction from django.utils.dateparse import parse_date from django.utils.timezone import now from django.utils.translation import gettext as _ from jutil.admin import admin_log from ju...
34.457944
158
0.673583
db3474a9cdbd1b5b65277f405a45e2165c2b6a54
554
py
Python
checkout/migrations/0015_auto_20201231_1145.py
sctlcd/pearl-v2
631d07378b618d11288a78b9eebc17f12919b835
[ "W3C" ]
1
2021-01-05T16:01:07.000Z
2021-01-05T16:01:07.000Z
checkout/migrations/0015_auto_20201231_1145.py
sctlcd/pearl-v2
631d07378b618d11288a78b9eebc17f12919b835
[ "W3C" ]
null
null
null
checkout/migrations/0015_auto_20201231_1145.py
sctlcd/pearl-v2
631d07378b618d11288a78b9eebc17f12919b835
[ "W3C" ]
null
null
null
# Generated by Django 3.1.3 on 2020-12-31 11:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('checkout', '0014_auto_20201231_1120'), ] operations = [ migrations.AddField( model_name='order', name='original_bag'...
23.083333
63
0.572202
fa60453212d3882e9ed1fc18172875c09bb9726a
606
py
Python
alarmer/throttling.py
long2ice/alert
2d2864c55e790ed6e44ce7f1b8921772e330544c
[ "Apache-2.0" ]
16
2021-09-30T14:34:41.000Z
2021-11-06T20:40:07.000Z
alarmer/throttling.py
long2ice/alert
2d2864c55e790ed6e44ce7f1b8921772e330544c
[ "Apache-2.0" ]
null
null
null
alarmer/throttling.py
long2ice/alert
2d2864c55e790ed6e44ce7f1b8921772e330544c
[ "Apache-2.0" ]
null
null
null
import threading import time import typing if typing.TYPE_CHECKING: from alarmer import Provider class Throttling: def __init__(self): self.last_time = 0 self.lock = threading.Lock() def __call__( self, provider: "typing.Union[Provider,typing.Callable]", message: ...
23.307692
59
0.592409
d6f027b4e332af2b41b5b150f4f1dab7734aa6d1
1,436
py
Python
add_to_get_target.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
add_to_get_target.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
add_to_get_target.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
""" Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice. Given nums = [2, 7, 11, 15], target = 9, Because nums[0] + nums[1] = 2 + 7 = 9, return [0, 1]. fro...
34.190476
123
0.604457
4585301eca5d733c5d8e68b7c935889aa849555b
2,025
py
Python
stack.py
kylebgorman/SOTA-taggers
6dd32640c08b5dbbbb86a6b80f01639260c77629
[ "Apache-2.0" ]
8
2019-06-16T18:53:28.000Z
2021-12-15T16:02:10.000Z
stack.py
kylebgorman/SOTA-taggers
6dd32640c08b5dbbbb86a6b80f01639260c77629
[ "Apache-2.0" ]
null
null
null
stack.py
kylebgorman/SOTA-taggers
6dd32640c08b5dbbbb86a6b80f01639260c77629
[ "Apache-2.0" ]
null
null
null
"""Stacking ensemble for tagging.""" import pickle import sklearn.externals.joblib import sklearn.feature_extraction import sklearn.linear_model from typing import Iterable, Iterator, List import tagdata_pb2 # Helpers. def tags(sentences: tagdata_pb2.Sentences) -> Iterator[str]: for sentence in sentences.se...
29.779412
79
0.678025
d05d41383b125afbb50052f35c44435bef892d04
76
py
Python
twitter_oath_settings.py
kaavehh/twitter_crawler
d3266777548a6ae3d137ba2328ebd6245e92257b
[ "MIT" ]
1
2019-07-16T02:20:00.000Z
2019-07-16T02:20:00.000Z
twitter_oath_settings.py
kaavehh/twitter-crawler
d3266777548a6ae3d137ba2328ebd6245e92257b
[ "MIT" ]
null
null
null
twitter_oath_settings.py
kaavehh/twitter-crawler
d3266777548a6ae3d137ba2328ebd6245e92257b
[ "MIT" ]
null
null
null
consumer_key = "" consumer_secret = "" access_token = "" access_secret = ""
15.2
20
0.684211
7cb0f176cc194421e7054d75aa376a93c3f975dd
16
py
Python
leaf/payments/alipay/__init__.py
guiqiqi/leaf
79e34f4b8fba8c6fd208b5a3049103dca2064ab5
[ "Apache-2.0" ]
119
2020-01-30T04:25:03.000Z
2022-03-27T07:15:45.000Z
leaf/payments/alipay/__init__.py
guiqiqi/leaf
79e34f4b8fba8c6fd208b5a3049103dca2064ab5
[ "Apache-2.0" ]
8
2020-02-02T05:49:47.000Z
2021-01-25T03:31:09.000Z
leaf/payments/alipay/__init__.py
guiqiqi/leaf
79e34f4b8fba8c6fd208b5a3049103dca2064ab5
[ "Apache-2.0" ]
11
2020-01-31T15:07:11.000Z
2021-03-24T03:47:48.000Z
""" 支付宝支付模块 """
4
7
0.4375
41c600a3f193f52650147738da7db27fb0cb4ca6
3,357
py
Python
habitat_sim/registry.py
xjwang-cs/habitat-sim
bb984fe8d2b8c9844bcfc1f121dd83fcb377aeda
[ "MIT" ]
null
null
null
habitat_sim/registry.py
xjwang-cs/habitat-sim
bb984fe8d2b8c9844bcfc1f121dd83fcb377aeda
[ "MIT" ]
null
null
null
habitat_sim/registry.py
xjwang-cs/habitat-sim
bb984fe8d2b8c9844bcfc1f121dd83fcb377aeda
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import collections import re from typing import Optional, Type from habitat_sim.agent.controls import SceneNodeControl ...
34.96875
111
0.65922
8602e2249a37f583cb2f3e62efb61bc7b5cd62a4
4,192
py
Python
src/speedtest_reader/util.py
CatrielD/speedtest_reader
1f3d4505246ea7405260799057d45c057e3df848
[ "MIT" ]
1
2020-04-02T02:33:00.000Z
2020-04-02T02:33:00.000Z
src/speedtest_reader/util.py
CatrielD/speedtest_reader
1f3d4505246ea7405260799057d45c057e3df848
[ "MIT" ]
null
null
null
src/speedtest_reader/util.py
CatrielD/speedtest_reader
1f3d4505246ea7405260799057d45c057e3df848
[ "MIT" ]
2
2020-03-27T12:31:56.000Z
2020-04-02T02:33:02.000Z
# -*- coding: utf-8 -*- """ Utility functions, classes and API decorators """ import functools import time from datetime import datetime from matplotlib import dates as mdates from pytz import timezone import dateparser import tzlocal __author__ = "Tobias Frei" __copyright__ = "Tobias Frei" __license__ = "mit" d...
25.253012
76
0.566794
b47dd95d360c9bc68f71514a6bf23ca9c6a09beb
8,673
py
Python
Stopping_distances/SD_Graphs.py
ChairOfStructuralMechanicsTUM/Mechanics_Apps
b064a42d4df3fa9bde62a5cff9cb27ca61b0127c
[ "MIT" ]
11
2017-05-06T17:05:29.000Z
2020-11-12T09:26:47.000Z
Stopping_distances/SD_Graphs.py
ChairOfStructuralMechanicsTUM/Mechanics_Apps
b064a42d4df3fa9bde62a5cff9cb27ca61b0127c
[ "MIT" ]
49
2017-04-20T11:26:11.000Z
2020-05-29T13:18:06.000Z
Stopping_distances/SD_Graphs.py
ChairOfStructuralMechanicsTUM/Mechanics_Apps
b064a42d4df3fa9bde62a5cff9cb27ca61b0127c
[ "MIT" ]
4
2017-02-14T12:55:34.000Z
2022-01-12T15:07:07.000Z
# general imports from math import sqrt, isnan from numpy import linspace # bokeh imports from bokeh.plotting import figure from bokeh.layouts import gridplot from bokeh.models import ColumnDataSource # internal imports from SD_TestSolutions import eval_fct # latex integration #---------------------------------...
41.104265
132
0.582843
c39b9e2937c8553a819c2445e82667d20e05e284
52,361
py
Python
django_simple_forum/views.py
veshitala/DatadiscussForum
8ebe56db680b084093bf9b5bf1d5cff737aa3e3a
[ "MIT" ]
76
2016-09-30T09:13:40.000Z
2021-09-26T13:36:05.000Z
django_simple_forum/views.py
veshitala/DatadiscussForum
8ebe56db680b084093bf9b5bf1d5cff737aa3e3a
[ "MIT" ]
38
2019-04-15T13:08:33.000Z
2021-08-23T01:10:19.000Z
django_simple_forum/views.py
veshitala/DatadiscussForum
8ebe56db680b084093bf9b5bf1d5cff737aa3e3a
[ "MIT" ]
49
2016-08-30T12:38:16.000Z
2022-01-08T03:52:29.000Z
import urllib import requests try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse from datetime import datetime from django.contrib.auth import logout, login, load_backend from django.core.urlresolvers import reverse, reverse_lazy from django.core.files import File from dja...
37.724063
210
0.627452
c2e7e3abc82ef778b14844bb88e02039117fae7e
449
py
Python
user/migrations/0009_auto_20201204_0053.py
simonprast/wopi-engine
b3f59782659c8be42f4064bce5281afd391833be
[ "BSD-Source-Code" ]
null
null
null
user/migrations/0009_auto_20201204_0053.py
simonprast/wopi-engine
b3f59782659c8be42f4064bce5281afd391833be
[ "BSD-Source-Code" ]
null
null
null
user/migrations/0009_auto_20201204_0053.py
simonprast/wopi-engine
b3f59782659c8be42f4064bce5281afd391833be
[ "BSD-Source-Code" ]
null
null
null
# Generated by Django 3.1.2 on 2020-12-03 23:53 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('user', '0008_remove_user_insurances'), ] operations = [ migrations.AlterField( model_name='user', name='...
22.45
106
0.628062
147f5864849e5fa4a6065c57c0248f38e0d53d8d
1,427
py
Python
qatrack/faults/urls.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
qatrack/faults/urls.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
qatrack/faults/urls.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
from django.conf.urls import url from qatrack.faults import views urlpatterns = [ url(r'^$', views.FaultList.as_view(), name='fault_list'), url(r'^unreviewed/$', views.UnreviewedFaultList.as_view(), name='fault_list_unreviewed'), url(r'^choose-unit/$', views.ChooseUnitForViewFaults.as_view(), name="fault_...
54.884615
101
0.66363
995b938e91d8b9c1ec7c4550eedbfbd66d8bcdb9
769
py
Python
app/worker.py
grow/buildbot
31e2bbb2cafb9b472b3c4b98b29b9595b90ba9ee
[ "MIT" ]
null
null
null
app/worker.py
grow/buildbot
31e2bbb2cafb9b472b3c4b98b29b9595b90ba9ee
[ "MIT" ]
null
null
null
app/worker.py
grow/buildbot
31e2bbb2cafb9b472b3c4b98b29b9595b90ba9ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time import os import signal import jobs_service heard_interrupt = False def main(): print 'Waiting for builds...' while not heard_interrupt: build = jobs_service.pop_next_build() if not build: time.sleep(2) continue print 'Running build: %s %s %s %s' % (buil...
23.30303
95
0.69961
69015a3678202c35c8a40652b185709192a2c965
3,161
py
Python
app.py
nkrumm/s3proxy
de08c9e1da782572381ffaf62665c9d4258f7959
[ "MIT" ]
11
2015-07-19T18:47:46.000Z
2022-02-02T10:34:52.000Z
app.py
nkrumm/s3proxy
de08c9e1da782572381ffaf62665c9d4258f7959
[ "MIT" ]
null
null
null
app.py
nkrumm/s3proxy
de08c9e1da782572381ffaf62665c9d4258f7959
[ "MIT" ]
2
2015-03-02T16:39:02.000Z
2015-03-03T12:43:20.000Z
from flask import Flask from flask import Response from flask import request from flask import stream_with_context from werkzeug.datastructures import Headers from werkzeug.contrib.cache import SimpleCache from boto.s3.connection import S3Connection from boto.s3.key import Key import argparse import yaml import os impo...
32.587629
117
0.649162
ef300115cce5b2088dd4d04e48ce14f945d1b60b
71
py
Python
mmcv_custom/__init__.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
314
2020-06-26T20:41:19.000Z
2022-03-30T06:05:47.000Z
mmcv_custom/__init__.py
Smasher-z/UniverseNet
794e7d3d2c7a8f2f6601a60b67366d93a3f30a1f
[ "Apache-2.0" ]
33
2020-07-26T12:39:06.000Z
2022-01-28T09:15:45.000Z
mmcv_custom/__init__.py
Smasher-z/UniverseNet
794e7d3d2c7a8f2f6601a60b67366d93a3f30a1f
[ "Apache-2.0" ]
39
2020-07-17T12:10:05.000Z
2022-03-21T19:42:22.000Z
from .checkpoint import load_checkpoint __all__ = ['load_checkpoint']
17.75
39
0.802817
b17202d93b32c6c2884f93a91bbbf1ae1b131241
378
py
Python
tests/transcript/test_codon_counts.py
gagneurlab/gfeat
a5ddb081567253ee2d6046485f81941bebb1f0f9
[ "MIT" ]
2
2018-09-28T21:30:07.000Z
2020-06-09T15:54:24.000Z
tests/transcript/test_codon_counts.py
gagneurlab/gfeat
a5ddb081567253ee2d6046485f81941bebb1f0f9
[ "MIT" ]
1
2021-11-15T17:47:48.000Z
2021-11-15T17:47:48.000Z
tests/transcript/test_codon_counts.py
gagneurlab/gfeat
a5ddb081567253ee2d6046485f81941bebb1f0f9
[ "MIT" ]
null
null
null
""" Test codon_counts """ from tests.transcript.config import transcript # import os # os.system("pyensembl install --reference-name hg38_test --annotation-name hg38_chr22_test --gtf \"./tests/data/gencode.v24.annotation_chr22.gtf\" --transcript-fasta \"./tests/data/hg38_chr22.fa\"") def test_codon_counts(transcript)...
31.5
199
0.746032
3476f11b7431beceeb2ef7d4edf371b8692769a8
5,615
py
Python
tests/bench.py
nerzhul/django-cacheops
d9ef8c9b57afbfffb33e0b3200d0072d71b300d0
[ "BSD-3-Clause" ]
4
2021-05-16T01:19:46.000Z
2021-11-18T05:51:28.000Z
tests/bench.py
nerzhul/django-cacheops
d9ef8c9b57afbfffb33e0b3200d0072d71b300d0
[ "BSD-3-Clause" ]
1
2020-05-01T11:13:39.000Z
2020-05-01T11:13:39.000Z
tests/bench.py
nerzhul/django-cacheops
d9ef8c9b57afbfffb33e0b3200d0072d71b300d0
[ "BSD-3-Clause" ]
4
2021-05-16T01:19:47.000Z
2022-01-21T09:51:29.000Z
import pickle from cacheops import invalidate_obj, invalidate_model from cacheops.redis import redis_client from cacheops.tree import dnfs from .models import Category, Post, Extra posts = list(Post.objects.cache().all()) posts_pickle = pickle.dumps(posts, -1) def do_pickle(): pickle.dumps(posts, -1) def do_u...
28.075
99
0.64862
5d6eb9ba097c2d9b1179a90bd6f1be8babcd78db
1,870
py
Python
share/qt/extract_strings_qt.py
lycancoin/lycancoin-release
0962adfcd5edd086582449ce2bdd82608d458684
[ "MIT" ]
3
2015-11-26T13:25:03.000Z
2018-02-05T08:54:27.000Z
share/qt/extract_strings_qt.py
lycancoin/lycancoin-release
0962adfcd5edd086582449ce2bdd82608d458684
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
lycancoin/lycancoin-release
0962adfcd5edd086582449ce2bdd82608d458684
[ "MIT" ]
1
2018-02-06T19:16:01.000Z
2018-02-06T19:16:01.000Z
#!/usr/bin/python ''' Extract _("...") strings for translation and convert to Qt4 stringdefs so that they can be picked up by Qt linguist. ''' from subprocess import Popen, PIPE import glob import operator import os import sys OUT_CPP="qt/bitcoinstrings.cpp" EMPTY=['""'] def parse_po(text): """ Parse 'po' for...
24.605263
80
0.594652
471991c9e91e7cd804f97b5c23b56149bf20b7d1
8,103
py
Python
tests/test_database/test_serializer.py
FCG-LLC/aucote
bb21ff02965ed0cca5a55ee559eae77856d9866c
[ "Apache-2.0" ]
1
2019-11-12T09:19:26.000Z
2019-11-12T09:19:26.000Z
tests/test_database/test_serializer.py
FCG-LLC/aucote
bb21ff02965ed0cca5a55ee559eae77856d9866c
[ "Apache-2.0" ]
13
2019-12-05T10:34:41.000Z
2019-12-05T10:49:27.000Z
tests/test_database/test_serializer.py
Wolodija/aucote
bb21ff02965ed0cca5a55ee559eae77856d9866c
[ "Apache-2.0" ]
4
2019-11-09T17:37:07.000Z
2019-12-16T09:50:02.000Z
import datetime import ipaddress from unittest import TestCase from unittest.mock import PropertyMock, patch, MagicMock from database.serializer import Serializer from fixtures.exploits import Exploit, RiskLevel, ExploitMetric, ExploitCategory, ExploitTag from scans.tcp_scanner import TCPScanner from structs import Vu...
56.270833
120
0.664569
74cfc798865825f425acc2e4349da44437137504
252
py
Python
tuesday.py
G00364756/PythonExamples
3db5ba6fd333552cc924bfc779381354b6239ae3
[ "Apache-2.0" ]
null
null
null
tuesday.py
G00364756/PythonExamples
3db5ba6fd333552cc924bfc779381354b6239ae3
[ "Apache-2.0" ]
null
null
null
tuesday.py
G00364756/PythonExamples
3db5ba6fd333552cc924bfc779381354b6239ae3
[ "Apache-2.0" ]
null
null
null
#Test for Tuesday app - 06/02/2018 #To try to emmulate the code given by Dr. McGloughlin in week 3 of course import datetime if datetime.datetime.today().weekday() == 1: print("Yay it is Tuesday!") else: print("Boo, it's not Tuesday")
28
74
0.678571
405c0e30754e18d9d9e252e37ab4231c8a8a0b2d
618
py
Python
old_scripts/2021-09-22-diagnostic.py
TheodoreEhrenborg/phutball
9abcb5869addbf5877cae1dfe8af2f5d861fba19
[ "MIT" ]
null
null
null
old_scripts/2021-09-22-diagnostic.py
TheodoreEhrenborg/phutball
9abcb5869addbf5877cae1dfe8af2f5d861fba19
[ "MIT" ]
null
null
null
old_scripts/2021-09-22-diagnostic.py
TheodoreEhrenborg/phutball
9abcb5869addbf5877cae1dfe8af2f5d861fba19
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import main import random import time import pickle player = main.MCTSPlayer3( num_evals=100000, curiosity=0.001, quiet=True, name="saved_model/2021-08-23-v3-model", pickle_in="2021-09-18-mcts-v3-boards13-random.pickle", ) b = main.Board() count = 0 while True: count...
19.3125
58
0.627832
37bc6aa741e62bd06c1b7f9ff10e9157071b80f7
11,070
py
Python
sdk/python/pulumi_azure_native/network/v20160901/get_express_route_circuit.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20160901/get_express_route_circuit.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20160901/get_express_route_circuit.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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 from ... import _utilities, _tables from...
40.254545
380
0.677055
505426bfe2704f88c1c2cd04c015e01545ef1ee1
8,567
py
Python
venv/Lib/site-packages/nipype/interfaces/meshfix.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
585
2015-01-12T16:06:47.000Z
2022-03-26T14:51:08.000Z
nipype/interfaces/meshfix.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
2,329
2015-01-01T09:56:41.000Z
2022-03-30T14:24:49.000Z
nipype/interfaces/meshfix.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
487
2015-01-20T01:04:52.000Z
2022-03-21T21:22:47.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """MeshFix corrects topological errors in polygonal meshes.""" import os.path as op from ..utils.filemanip import split_filename from .base import ( CommandLine, CommandLine...
36.455319
173
0.634178
0ec4ec39b50f6a80e4380a3304610d7a13a6944d
7,419
py
Python
django/contrib/auth/management/commands/createsuperuser.py
PirosB3/django
9b729ddd8f2040722971ccfb3b12f7d8162633d1
[ "BSD-3-Clause" ]
2
2016-09-27T09:30:19.000Z
2016-10-17T01:47:43.000Z
env/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py
luiscarlosgph/nas
e5acee61e8bbf12c34785fe971ce7df8dee775d4
[ "MIT" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
env/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py
luiscarlosgph/nas
e5acee61e8bbf12c34785fe971ce7df8dee775d4
[ "MIT" ]
1
2015-02-21T07:59:08.000Z
2015-02-21T07:59:08.000Z
""" Management utility to create superusers. """ from __future__ import unicode_literals import getpass import sys from optparse import make_option from django.contrib.auth import get_user_model from django.contrib.auth.management import get_default_username from django.core import exceptions from django.core.managem...
45.515337
113
0.560588
6a83c6008272fffaaeb34a427458662975084cbd
13,025
py
Python
V_1_4/SOM.py
rambo1309/SOM_for_Atomistic_Samples_GeneralRepo
9c751605c450b84c76639619d5d2647b8f62622a
[ "Apache-2.0" ]
null
null
null
V_1_4/SOM.py
rambo1309/SOM_for_Atomistic_Samples_GeneralRepo
9c751605c450b84c76639619d5d2647b8f62622a
[ "Apache-2.0" ]
null
null
null
V_1_4/SOM.py
rambo1309/SOM_for_Atomistic_Samples_GeneralRepo
9c751605c450b84c76639619d5d2647b8f62622a
[ "Apache-2.0" ]
null
null
null
""" Copyright 2021 Franco Aquistapace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
35.202703
89
0.577965
474e6af59928dd97c2a60c8109ad437a993e2539
11,289
py
Python
implementations/srgan/srgan.py
jasonlai777/Pytorch_GAN
b2fc44a38400b58c2efd359afb5ec74960881263
[ "MIT" ]
null
null
null
implementations/srgan/srgan.py
jasonlai777/Pytorch_GAN
b2fc44a38400b58c2efd359afb5ec74960881263
[ "MIT" ]
null
null
null
implementations/srgan/srgan.py
jasonlai777/Pytorch_GAN
b2fc44a38400b58c2efd359afb5ec74960881263
[ "MIT" ]
null
null
null
""" Super-resolution of CelebA using Generative Adversarial Networks. The dataset can be downloaded from: https://www.dropbox.com/sh/8oqt9vytwxb3s4r/AADIKlz8PR9zr6Y20qbkunrba/Img/img_align_celeba.zip?dl=0 (if not available there see if options are listed at http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html) Instrustion ...
37.63
134
0.643281
eef4a904f8171f22b04bacc7ccf352179ab16916
13,028
py
Python
src/final/create_tables.py
simonjheiler/demographic_change_olg
cd920989bdc7461efab533ea993ba3990bd46b8d
[ "MIT" ]
null
null
null
src/final/create_tables.py
simonjheiler/demographic_change_olg
cd920989bdc7461efab533ea993ba3990bd46b8d
[ "MIT" ]
null
null
null
src/final/create_tables.py
simonjheiler/demographic_change_olg
cd920989bdc7461efab533ea993ba3990bd46b8d
[ "MIT" ]
1
2021-09-16T01:37:35.000Z
2021-09-16T01:37:35.000Z
"""Create tables for the term paper.""" import json import pickle import numpy as np import pandas as pd from bld.project_paths import project_paths_join as ppj from src.model_code.auxiliary import get_income # noqa:F401 from src.model_code.auxiliary import gini # noqa:F401 from src.model_code.auxiliary import resh...
34.015666
88
0.614906
a24c2ce42e4948a4fd47f1f00b1746dd0d679867
678
py
Python
gallant_grasshoppers/render/utils/check_window_size.py
StackedQueries/gallant-grasshoppers
4d527f575b3483f9f5036a14ab6a24a5654dfbd7
[ "MIT" ]
null
null
null
gallant_grasshoppers/render/utils/check_window_size.py
StackedQueries/gallant-grasshoppers
4d527f575b3483f9f5036a14ab6a24a5654dfbd7
[ "MIT" ]
14
2021-07-09T23:16:02.000Z
2021-07-17T16:36:22.000Z
gallant_grasshoppers/render/utils/check_window_size.py
StackedQueries/gallant-grasshoppers
4d527f575b3483f9f5036a14ab6a24a5654dfbd7
[ "MIT" ]
2
2021-07-09T22:44:17.000Z
2021-07-13T22:26:39.000Z
from .terminal import get_term as terminal term = terminal() def check_window_size() -> None: """Checks that window size meets or exceeds minimum""" if term.height < 20 or term.width < 80: while True: with term.fullscreen(), term.cbreak(), term.hidden_cursor(), term.location( ...
32.285714
87
0.507375
83511263aec2cc746db51886a0455a0f1ae38c59
10,537
py
Python
Code/utils.py
secureIT-project/CVEfixes
126e3fa863511c5f57d53c69c3ecc1ef130192a3
[ "MIT" ]
37
2021-07-20T14:12:07.000Z
2022-03-30T14:04:17.000Z
Code/utils.py
YangWenhao3906/CVEfixes
64cbdc613dc6b143e023ba6b985d644638495efe
[ "MIT" ]
2
2022-01-05T07:09:55.000Z
2022-01-11T11:55:28.000Z
Code/utils.py
YangWenhao3906/CVEfixes
64cbdc613dc6b143e023ba6b985d644638495efe
[ "MIT" ]
15
2021-07-26T23:10:58.000Z
2022-02-20T15:32:01.000Z
import glob import os import json from shutil import copyfile from datetime import date from pathlib import Path import pandas as pd import configuration as cf import database as db output_dir = 'Output' # path to save all the compressed output files def make_timestamp(json_path): """ generates timestamp ...
47.251121
137
0.691563
7d1000cfc65939197e427cd302dce60dbc2baa59
7,680
py
Python
ceilometer/tests/api/__init__.py
orbitfp7/ceilometer
9905da14bbdf06f95e1e056c9ca0e18087214d0f
[ "Apache-2.0" ]
2
2015-09-07T09:15:26.000Z
2015-09-30T02:13:23.000Z
ceilometer/tests/api/__init__.py
orbitfp7/ceilometer
9905da14bbdf06f95e1e056c9ca0e18087214d0f
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/api/__init__.py
orbitfp7/ceilometer
9905da14bbdf06f95e1e056c9ca0e18087214d0f
[ "Apache-2.0" ]
1
2019-09-16T02:11:41.000Z
2019-09-16T02:11:41.000Z
# # Copyright 2012 New Dream Network, LLC (DreamHost) # # Author: Doug Hellmann <doug.hellmann@dreamhost.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/li...
41.290323
78
0.58763
32d36960f8aafc682c8e7242bc6bd4c507a353ba
22,846
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/_paged_models.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/v2018_04_01/models/_paged_models.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/v2018_04_01/models/_paged_models.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.495208
191
0.652324
0de18665de504d5d4543225aa57fd5d1a07ee393
4,080
py
Python
server/fta/utils/continuation.py
mycyzs/fta
a50a3c498c39b14e7df4a0a960c2a1499b1ec6bb
[ "Apache-2.0" ]
null
null
null
server/fta/utils/continuation.py
mycyzs/fta
a50a3c498c39b14e7df4a0a960c2a1499b1ec6bb
[ "Apache-2.0" ]
null
null
null
server/fta/utils/continuation.py
mycyzs/fta
a50a3c498c39b14e7df4a0a960c2a1499b1ec6bb
[ "Apache-2.0" ]
2
2020-02-12T03:59:28.000Z
2021-05-27T05:34:01.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
35.478261
305
0.655882
63d06f37e05406a65dfbfa47f5bd3411ccfb89b8
3,387
py
Python
model-optimizer/mo/middle/passes/leaky_relu.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
3
2020-02-09T23:25:37.000Z
2021-01-19T09:44:12.000Z
model-optimizer/mo/middle/passes/leaky_relu.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/middle/passes/leaky_relu.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
2
2020-04-18T16:24:39.000Z
2021-01-19T09:42:19.000Z
""" Copyright (c) 2018-2019 Intel 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 agreed to i...
35.28125
118
0.645704
7e81321302e5134a12f816dcc11378bac8234b30
4,592
py
Python
lib/python/treadmill/cli/logs.py
vrautela/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
133
2016-09-15T13:36:12.000Z
2021-01-18T06:29:13.000Z
lib/python/treadmill/cli/logs.py
vrautela/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
108
2016-12-28T23:41:27.000Z
2020-03-05T21:20:37.000Z
lib/python/treadmill/cli/logs.py
evreng/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
69
2016-09-23T20:38:58.000Z
2020-11-11T02:31:21.000Z
"""Show Treadmill instance logs. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import click from six.moves import urllib_parse from treadmill import cli from treadmill import context from tread...
30.818792
78
0.574042
9e6c0a1105bf88f329428aaef4f2e4480ca755db
2,879
py
Python
eprun/_old/eperr.py
stevenkfirth/eprun
2a580f8ac0b5976cb1bc84328ffb821bd31731e6
[ "MIT" ]
5
2021-05-22T19:13:13.000Z
2022-03-07T04:54:08.000Z
eprun/_old/eperr.py
stevenkfirth/eprun
2a580f8ac0b5976cb1bc84328ffb821bd31731e6
[ "MIT" ]
null
null
null
eprun/_old/eperr.py
stevenkfirth/eprun
2a580f8ac0b5976cb1bc84328ffb821bd31731e6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class EPErr(): """A class for an EnergyPlus .err file. :param fp: The filepath for the .err file. :type fp: str .. rubric:: Code Example .. code-block:: python >>> from eprun import EPErr >>> err=EPErr(r'simulation_files\eplusout....
24.606838
103
0.458145
0f97fded585c57779fa98d50fda8aaa8aff55942
1,524
py
Python
lab3/run.py
ediewilson/cs60-networks
b4d83e4b75ee53b0c8c629a6f8ca81aa2ee0d7a9
[ "MIT" ]
null
null
null
lab3/run.py
ediewilson/cs60-networks
b4d83e4b75ee53b0c8c629a6f8ca81aa2ee0d7a9
[ "MIT" ]
null
null
null
lab3/run.py
ediewilson/cs60-networks
b4d83e4b75ee53b0c8c629a6f8ca81aa2ee0d7a9
[ "MIT" ]
null
null
null
# Some functions shared between sender and reciever kept in a common module import socket import struct HEADER_FORMAT = "" HEADER_SIZE = 5 def getChecksum (data): i = len(data) if (i & 1): i -= 1 sum = ord(data[i]) else: sum = 0 while i > 0: i -= 2 sum += (o...
27.214286
170
0.645013
1b860a29bcaeac87b93503170c844d5934905975
25,011
py
Python
Lib/objc/Contacts.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
701
2018-10-22T11:54:09.000Z
2022-03-31T14:39:30.000Z
Lib/objc/Contacts.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
229
2018-10-24T09:15:31.000Z
2021-12-24T16:51:37.000Z
Lib/objc/Contacts.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
131
2018-11-25T18:33:03.000Z
2022-03-24T03:18:07.000Z
""" Classes from the 'Contacts' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None CNContainerDiffCalculator = _Class("CNContainerDiffCalculat...
53.787097
87
0.869058
cdd3a2952c56c1a8cdfa341e5ec1b2b2cc196d06
10,612
py
Python
tempest/api/network/test_ports.py
queria/my-tempest
a9cdee0201bb956c7502fd372dab467b056ba67f
[ "Apache-2.0" ]
null
null
null
tempest/api/network/test_ports.py
queria/my-tempest
a9cdee0201bb956c7502fd372dab467b056ba67f
[ "Apache-2.0" ]
null
null
null
tempest/api/network/test_ports.py
queria/my-tempest
a9cdee0201bb956c7502fd372dab467b056ba67f
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
39.158672
78
0.647286
08d5dcf207e6dad656f957c647dbcdb0c2d01749
2,911
py
Python
setup.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
null
null
null
setup.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
null
null
null
setup.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
1
2018-03-27T00:52:25.000Z
2018-03-27T00:52:25.000Z
# Copyright (c) 2016-2017 Adobe Inc. All rights reserved. # # 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, modif...
37.805195
111
0.642391
89edb67720af6bd0df742582e5a6768781029e95
3,849
py
Python
pgcrypto_expressions/fields.py
orcasgit/django-pgcrypto-expressions
1f27c8d0beeba7193f220458c33573ba77e9f9b1
[ "BSD-3-Clause" ]
12
2015-05-25T19:16:48.000Z
2018-06-25T02:47:59.000Z
pgcrypto_expressions/fields.py
orcasgit/django-pgcrypto-expressions
1f27c8d0beeba7193f220458c33573ba77e9f9b1
[ "BSD-3-Clause" ]
6
2015-12-29T18:44:58.000Z
2021-09-13T19:17:17.000Z
pgcrypto_expressions/fields.py
orcasgit/django-pgcrypto-expressions
1f27c8d0beeba7193f220458c33573ba77e9f9b1
[ "BSD-3-Clause" ]
2
2015-12-29T16:51:29.000Z
2020-12-09T16:33:49.000Z
from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db import models from django.db.models.expressions import Col from django.utils.functional import cached_property class ByteArrayField(models.Field): """A simple field type for the Postgres bytea type. Repres...
31.809917
79
0.669265
b3ca0c963f4f08dec29084b7ca4c16f078713e59
5,766
py
Python
src/eval/pose_net_evaluation_scores_lin_NTU.py
wlin0511/Posenet_training
6fe9ef2e3b18c8e99502b85635049069d5e05700
[ "Apache-2.0" ]
null
null
null
src/eval/pose_net_evaluation_scores_lin_NTU.py
wlin0511/Posenet_training
6fe9ef2e3b18c8e99502b85635049069d5e05700
[ "Apache-2.0" ]
null
null
null
src/eval/pose_net_evaluation_scores_lin_NTU.py
wlin0511/Posenet_training
6fe9ef2e3b18c8e99502b85635049069d5e05700
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os, sys os.environ["CUDA_VISIBLE_DEVICES"]="7" sys.path.append('/home/kha4hi/codes/Keras_projects/utils') import fileinput from sklearn.metrics import confusion_matrix from sklearn.metrics import accuracy_score import keras from keras.models import load_model,Model from kera...
45.046875
192
0.805758
46da682acca38d3d19b42f9f2061495d25cc970b
348
py
Python
parts/k40_lid_liner.py
daniel-thompson/laser-lab
2b78cd8d1ec4c2a3a18749750ad38916d524e62c
[ "CC-BY-4.0" ]
7
2017-04-14T07:03:30.000Z
2020-12-26T13:38:30.000Z
parts/k40_lid_liner.py
daniel-thompson/laser-lab
2b78cd8d1ec4c2a3a18749750ad38916d524e62c
[ "CC-BY-4.0" ]
null
null
null
parts/k40_lid_liner.py
daniel-thompson/laser-lab
2b78cd8d1ec4c2a3a18749750ad38916d524e62c
[ "CC-BY-4.0" ]
null
null
null
from laser.util import * r = 2 d = panel('k40_lid_liner.svg', 290, 19) # Outline p = d.turtle(('M', 0, 17), **cut) p.forward(17-r) # left side p.arc(90, r) p.forward(290-2*r) # top p.arc(90, r) p.forward(19-r) # right side d.add(p.close()) # Screw holes d.add(d.circle((6, 5.5), 2.0, **cut)) d.add(d.circle((6+258, 5...
16.571429
41
0.58908
664fb6329de4c2f027921b22d9494784bb9d5523
998
py
Python
bancho/constants/privileges.py
yo-ru/ohasekai
d445071336c9e60687ce76733c352b7f8145a7ad
[ "MIT" ]
2
2022-03-10T06:44:22.000Z
2022-03-13T01:39:18.000Z
bancho/constants/privileges.py
yo-ru/ohasekai
d445071336c9e60687ce76733c352b7f8145a7ad
[ "MIT" ]
null
null
null
bancho/constants/privileges.py
yo-ru/ohasekai
d445071336c9e60687ce76733c352b7f8145a7ad
[ "MIT" ]
null
null
null
from __future__ import annotations from enum import unique from enum import IntFlag @unique class Privileges(IntFlag): # privileges intended for all normal players NORMAL = 1 << 0 # is an unbanned player VERIFIED = 1 << 1 # has logged in to the server in-game # supporter tier, receives some extra b...
32.193548
76
0.665331
4f1e6f28daf418246688ad5e83277d9b909a0a5d
953
py
Python
MDM_Server/venv/bin/rst2xetex.py
AstonZ/iOS_MDM_Guide
b3da4fb959485e964802ff18ab5f44abf3d4a4da
[ "MIT" ]
9
2019-01-30T08:54:17.000Z
2022-02-02T05:38:28.000Z
MDM_Server/venv/bin/rst2xetex.py
AstonZ/iOS_MDM_Guide
b3da4fb959485e964802ff18ab5f44abf3d4a4da
[ "MIT" ]
null
null
null
MDM_Server/venv/bin/rst2xetex.py
AstonZ/iOS_MDM_Guide
b3da4fb959485e964802ff18ab5f44abf3d4a4da
[ "MIT" ]
null
null
null
#!/Users/AstonWorkMac/Desktop/PAFiles/tech_requirements/MDM/iOS_MDM_Guide/MDM_Server/venv/bin/python # $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ # Author: Guenter Milde # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX cod...
34.035714
100
0.689402
0ca7775018d019f6efd1ca0782b093335e33cf84
1,363
py
Python
mesos_slave/tests/test_integration_e2e.py
jstoja/integrations-core
704fa31f7db642c6df9e0969b3b2778fc6144fa7
[ "BSD-3-Clause" ]
null
null
null
mesos_slave/tests/test_integration_e2e.py
jstoja/integrations-core
704fa31f7db642c6df9e0969b3b2778fc6144fa7
[ "BSD-3-Clause" ]
null
null
null
mesos_slave/tests/test_integration_e2e.py
jstoja/integrations-core
704fa31f7db642c6df9e0969b3b2778fc6144fa7
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2019 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from six import iteritems from datadog_checks.base import AgentCheck from datadog_checks.mesos_slave import MesosSlave from .common import CHECK_NAME, not_windows_ci pytestmark = not_windows_ci ...
28.395833
93
0.74248
0cb4b9f946604606efbf8732daebeddc2317cc5f
2,453
py
Python
example/Transformer_vision/2dpose/vit/single_branch/network.py
ddddwee1/TorchSUL
775832049564d8ee7c43e510b57bd716e0a746dd
[ "WTFPL" ]
7
2019-12-14T12:23:36.000Z
2021-11-16T00:25:13.000Z
example/Transformer_vision/2dpose/vit/single_branch/network.py
ddddwee1/TorchSUL
775832049564d8ee7c43e510b57bd716e0a746dd
[ "WTFPL" ]
1
2020-10-20T06:33:53.000Z
2020-10-26T19:01:21.000Z
example/Transformer_vision/2dpose/vit/single_branch/network.py
ddddwee1/TorchSUL
775832049564d8ee7c43e510b57bd716e0a746dd
[ "WTFPL" ]
1
2021-08-24T09:09:36.000Z
2021-08-24T09:09:36.000Z
import torch import vision_transformer from TorchSUL import Model as M import torch.nn as nn import config class DepthToSpace(M.Model): def initialize(self, block_size): self.block_size = block_size def forward(self, x): bsize, chn, h, w = x.shape[0], x.shape[1], x.shape[2], x.shape[3] assert chn%(self.bl...
32.276316
116
0.70852
c43427d9b0a5c148a037698fa1c7f19c3e7c9326
296
py
Python
examples/basic.py
kipe/ruuvitag
0ff82b8bdfd2a3dd64f872db05dbb1ccbcaaa673
[ "MIT" ]
5
2019-03-10T11:35:11.000Z
2020-05-04T08:15:56.000Z
examples/basic.py
kipe/ruuvitag
0ff82b8bdfd2a3dd64f872db05dbb1ccbcaaa673
[ "MIT" ]
1
2019-02-08T15:48:39.000Z
2019-02-08T15:57:46.000Z
examples/basic.py
kipe/ruuvitag
0ff82b8bdfd2a3dd64f872db05dbb1ccbcaaa673
[ "MIT" ]
2
2019-05-16T10:41:55.000Z
2019-08-31T07:27:19.000Z
from ruuvitag import RuuviTag # Run in a continuous loop while True: # Run scan for available RuuviTags for tag in RuuviTag.scan(): # Print information about each RuuviTag found print(tag) # Example output: # <RuuviTag V5 f7:bf:87:46:6f:ee 24.27c 21.59%>
26.909091
55
0.652027
a024dfb1ca64aa271228072b8dd3b553efd04225
3,727
py
Python
setup.py
robmoggach/python-moshion
75a5bb67ab12950adaed9049ce296f6488585477
[ "MIT" ]
25
2015-03-14T22:50:33.000Z
2020-12-30T16:08:56.000Z
setup.py
rjmoggach/python-moshion
75a5bb67ab12950adaed9049ce296f6488585477
[ "MIT" ]
1
2015-09-18T13:35:03.000Z
2016-02-13T03:59:53.000Z
setup.py
robmoggach/python-moshion
75a5bb67ab12950adaed9049ce296f6488585477
[ "MIT" ]
8
2015-07-23T20:02:37.000Z
2021-01-02T03:13:20.000Z
from distutils.core import setup from distutils.command.install_data import install_data from distutils.command.install import INSTALL_SCHEMES import os import sys from setup_commands import TestCommand, CleanCommand def return_version(): return __import__('moshion').get_version() class osx_install_data(install_da...
32.408696
104
0.731688
0692a70cf49a22b7254ac0ebd73d2f00370f6fd2
126,468
py
Python
neutron/plugins/ml2/plugin.py
longbayzhang/neutron
68f89c79c803a3c9420e2a8df7a56499e88091ad
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/plugin.py
longbayzhang/neutron
68f89c79c803a3c9420e2a8df7a56499e88091ad
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/plugin.py
longbayzhang/neutron
68f89c79c803a3c9420e2a8df7a56499e88091ad
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 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 ...
49.171073
79
0.604572
65cb4dfcf0544888d6e161b7d78ffd96bc41f13a
303
py
Python
vcf2vcf.py
andrewkern/vcf2vcf
d7384cf909b29ba467a19edc22592a85840750d9
[ "MIT" ]
null
null
null
vcf2vcf.py
andrewkern/vcf2vcf
d7384cf909b29ba467a19edc22592a85840750d9
[ "MIT" ]
null
null
null
vcf2vcf.py
andrewkern/vcf2vcf
d7384cf909b29ba467a19edc22592a85840750d9
[ "MIT" ]
null
null
null
import os import argparse import time parser = argparse.ArgumentParser(description='vcf2vcf.py-- very fast') parser.add_argument('filename') args = parser.parse_args() os.rename(args.filename, args.filename+".vcf") print(f"converting {args.filename}... this is fast...") time.sleep(10) print(f"done!")
25.25
70
0.752475
ba2abf21a2c5856b1c2e786f909ce1a8e43adff3
901
py
Python
Code/Components/swc-utils/current/mkplotamp.py
rtobar/askapsoft
6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
1
2020-06-18T08:37:43.000Z
2020-06-18T08:37:43.000Z
Code/Components/swc-utils/current/mkplotamp.py
ATNF/askapsoft
d839c052d5c62ad8a511e58cd4b6548491a6006f
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
Code/Components/swc-utils/current/mkplotamp.py
ATNF/askapsoft
d839c052d5c62ad8a511e58cd4b6548491a6006f
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
import numpy import matplotlib import matplotlib.pyplot as plt data = numpy.loadtxt('visplot.dat').transpose() x=data[0] ylabelx = -0.2 plt.rc('legend',fontsize=10) ax1 = plt.subplot(1,2,1) plt.title("Quiet morning") ax1.yaxis.set_label_coords(ylabelx,0.5) plt.setp(ax1.get_xticklabels(),visible=False) plt.plot(x,d...
23.102564
47
0.715871
f20706daf8548f56a8f14c3b3d7003a19d9ffb59
7,708
py
Python
sockjs/routing.py
iTraceur/sockjs-channels
eaff5affaaf22f696a17697d4b323cb9dc6bb07d
[ "MIT" ]
1
2022-03-24T16:13:04.000Z
2022-03-24T16:13:04.000Z
sockjs/routing.py
iTraceur/sockjs-channels
eaff5affaaf22f696a17697d4b323cb9dc6bb07d
[ "MIT" ]
null
null
null
sockjs/routing.py
iTraceur/sockjs-channels
eaff5affaaf22f696a17697d4b323cb9dc6bb07d
[ "MIT" ]
null
null
null
import asyncio import inspect import logging import random from collections import namedtuple from asgiref.sync import sync_to_async, async_to_sync from channels.exceptions import StopConsumer from django.urls import re_path try: from threading import _register_atexit as register_atexit except: from atexit im...
34.877828
107
0.616373
b0e1a0d50174224b9f8f5ba1a099e13a8e5f11ee
552
py
Python
stashboard/settings.py
isabella232/stashboard
0f2ece1e1aa6f1b30628765e234558380efffc18
[ "MIT" ]
1
2019-10-23T16:23:18.000Z
2019-10-23T16:23:18.000Z
stashboard/settings.py
DataDog/stashboard
0f2ece1e1aa6f1b30628765e234558380efffc18
[ "MIT" ]
1
2021-02-24T14:47:25.000Z
2021-02-24T19:52:18.000Z
stashboard/settings.py
isabella232/stashboard
0f2ece1e1aa6f1b30628765e234558380efffc18
[ "MIT" ]
2
2019-10-23T16:23:22.000Z
2021-02-24T11:44:10.000Z
import os DEBUG = False SITE_NAME = "Datadog Status" SITE_AUTHOR = "Datadog" SITE_URL = "http://status.datadoghq.com" REPORT_URL = "mailto:help@datadoghq.com" # Twitter update settings TWITTER_CONSUMER_KEY = '' TWITTER_CONSUMER_SECRET = '' TWITTER_ACCESS_TOKEN = '' TWITTER_ACCESS_TOKEN_SECRET = '' TWITTER_HANDLE = '...
20.444444
57
0.755435
2feda0b702b79242a90fc1fd167c2cff85f697b9
5,703
py
Python
pax/InterpolatingMap.py
jacr20/pax
d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940
[ "BSD-3-Clause" ]
17
2016-04-24T12:02:03.000Z
2021-07-19T19:39:47.000Z
pax/InterpolatingMap.py
jacr20/pax
d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940
[ "BSD-3-Clause" ]
300
2016-04-01T15:29:57.000Z
2021-01-03T23:59:45.000Z
pax/InterpolatingMap.py
jacr20/pax
d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940
[ "BSD-3-Clause" ]
20
2016-04-14T15:11:26.000Z
2021-09-18T06:39:09.000Z
import logging import gzip import json import re import numpy as np from scipy.spatial import cKDTree ## # Interpolating map class ## class InterpolateAndExtrapolate(object): """Linearly interpolate- or extrapolate between nearest N points Needed to roll our own because scipy's linear Nd interpolator refuse...
41.028777
116
0.603191
b060ed7994ad313ef51d919f8dee2abbfac9bda5
8,840
py
Python
brownie/project/sources.py
nopslip/brownie
2c27ea0a07d86296bf93e432819e00a274210ca2
[ "MIT" ]
1
2020-10-09T17:23:03.000Z
2020-10-09T17:23:03.000Z
brownie/project/sources.py
hassoon1986/brownie
8036ef80512251e2d4a55fbbb7ad7ecdf388acb2
[ "MIT" ]
null
null
null
brownie/project/sources.py
hassoon1986/brownie
8036ef80512251e2d4a55fbbb7ad7ecdf388acb2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import re import textwrap from hashlib import sha1 from pathlib import Path from typing import Dict, List, Optional, Tuple from semantic_version import NpmSpec from vvm.utils.convert import to_vyper_version from brownie.exceptions import NamespaceCollision, PragmaError from brownie.utils import co...
35.502008
172
0.613122
58b47abe5982c3dd880d6a86548898b2fb936dd0
2,895
py
Python
modules/implant/gather/user_hunter.py
killvxk/entypreter
9498d942e369c0ec5b3c2bc7bc814114523a1ea5
[ "Apache-2.0" ]
7
2019-08-14T10:47:34.000Z
2022-01-17T01:31:08.000Z
modules/implant/gather/user_hunter.py
killvxk/entypreter
9498d942e369c0ec5b3c2bc7bc814114523a1ea5
[ "Apache-2.0" ]
null
null
null
modules/implant/gather/user_hunter.py
killvxk/entypreter
9498d942e369c0ec5b3c2bc7bc814114523a1ea5
[ "Apache-2.0" ]
2
2021-11-04T11:19:36.000Z
2022-02-22T17:13:08.000Z
import core.implant import core.job import string class UserHunterJob(core.job.Job): def create(self): self.fork32Bit = True def report(self, handler, data, sanitize = False): data = data.decode('latin-1') task = handler.get_header(self.options.get("UUIDHEADER"), False) if tas...
33.662791
147
0.594819
a1cfe9dfff51b405cb2508be1ae5fcfc30877ee9
429
py
Python
Tests/Bluetooth.py
arlanschouwstra/Robotica-Groep-11
17cac9527c3cc3f94f5a8ab11741cb5e546c85c1
[ "BSD-2-Clause" ]
null
null
null
Tests/Bluetooth.py
arlanschouwstra/Robotica-Groep-11
17cac9527c3cc3f94f5a8ab11741cb5e546c85c1
[ "BSD-2-Clause" ]
null
null
null
Tests/Bluetooth.py
arlanschouwstra/Robotica-Groep-11
17cac9527c3cc3f94f5a8ab11741cb5e546c85c1
[ "BSD-2-Clause" ]
null
null
null
''' Date: 03-08-2018 Creator: Thijs Zijlstra Version: 3.2 Description: Unit tests bluetooth ''' from Models import Bluetooth import unittest class TestBluetooth(unittest.TestCase): @staticmethod def test_connect(self): connect = getattr(Bluetooth, 'connect') sock = ...
20.428571
47
0.657343
862b07f7651fd823d58e9e86199ef7e49bb6ae10
686
py
Python
pyhs3ng/const.py
jrhubott/pyhs3
a3e63c5228e941821c2b75ad9ad6ee2a24d5ac25
[ "MIT" ]
null
null
null
pyhs3ng/const.py
jrhubott/pyhs3
a3e63c5228e941821c2b75ad9ad6ee2a24d5ac25
[ "MIT" ]
null
null
null
pyhs3ng/const.py
jrhubott/pyhs3
a3e63c5228e941821c2b75ad9ad6ee2a24d5ac25
[ "MIT" ]
null
null
null
"""Constants used in pyhs3.""" import logging _LOGGER = logging.getLogger(__name__) DEFAULT_ASCII_PORT = 11000 DEFAULT_HTTP_PORT = 80 DEFAULT_PASSWORD = "default" DEFAULT_USERNAME = "default" REASON_DISCONNECTED = "disconnected" REASON_RECONNECTED = "reconnected" STATE_CLOSED = "closed" STATE_CLOSING = "closing" S...
20.787879
37
0.765306
9751ebcb4c88f93d00544bf9f0ccd5784847d6cf
8,648
py
Python
venv/lib/python3.6/site-packages/ansible_collections/cisco/ucs/plugins/modules/ucs_wwn_pool.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
10
2020-05-19T01:51:28.000Z
2021-11-16T11:36:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/ucs/plugins/modules/ucs_wwn_pool.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
19
2020-03-04T15:35:26.000Z
2022-03-31T04:35:19.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/ucs/plugins/modules/ucs_wwn_pool.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
9
2019-12-03T15:20:02.000Z
2021-06-18T18:08:39.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
36.033333
139
0.588228
1a0c67984a2eed5c51b8d3258291221ad652175f
1,836
py
Python
share/qt/extract_strings_qt.py
sats0k/Testcoin
15f9955e2ed8e489bf9da48aa0085b3aedaa49fc
[ "MIT" ]
2
2021-05-16T07:37:40.000Z
2022-02-04T14:00:49.000Z
share/qt/extract_strings_qt.py
sats0k/Testcoin
15f9955e2ed8e489bf9da48aa0085b3aedaa49fc
[ "MIT" ]
8
2019-02-28T01:41:01.000Z
2019-11-11T17:30:39.000Z
share/qt/extract_strings_qt.py
sats0k/Testcoin
15f9955e2ed8e489bf9da48aa0085b3aedaa49fc
[ "MIT" ]
6
2019-02-18T19:09:23.000Z
2019-11-11T20:56:04.000Z
#!/usr/bin/python ''' Extract _("...") strings for translation and convert to Qt4 stringdefs so that they can be picked up by Qt linguist. ''' from subprocess import Popen, PIPE import glob import operator OUT_CPP="../../src/qt/strings.cpp" EMPTY=['""'] def parse_po(text): """ Parse 'po' format produced by xg...
25.5
80
0.581155
924f2d96133808df71fd7d18c57b291cd97373d1
1,017
py
Python
test/mitmproxy/test_version.py
Ineededausernamehere/pleasedontworryaboutititsfinedontworrymyfriends
04da36cac89dead7a30f37c635480ba357523653
[ "MIT" ]
74
2016-03-20T17:39:26.000Z
2020-05-12T13:53:23.000Z
test/mitmproxy/test_version.py
Ineededausernamehere/pleasedontworryaboutititsfinedontworrymyfriends
04da36cac89dead7a30f37c635480ba357523653
[ "MIT" ]
2
2021-09-02T02:29:12.000Z
2021-12-08T08:49:45.000Z
test/mitmproxy/test_version.py
Ineededausernamehere/pleasedontworryaboutititsfinedontworrymyfriends
04da36cac89dead7a30f37c635480ba357523653
[ "MIT" ]
5
2016-12-14T14:56:57.000Z
2020-03-08T20:58:31.000Z
import pathlib import runpy import subprocess import sys from unittest import mock from mitmproxy import version def test_version(capsys): here = pathlib.Path(__file__).absolute().parent version_file = here / ".." / ".." / "mitmproxy" / "version.py" runpy.run_path(str(version_file), run_name='__main__') ...
29.057143
80
0.6647
855340e6652a9a197070520a12ffb2c732979af4
666
py
Python
perma_web/perma/migrations/0051_auto_20200220_2058.py
rachelaus/perma
36c05080520ea3ffce465dbc383795c060fa4112
[ "MIT", "Unlicense" ]
317
2015-02-12T16:53:34.000Z
2022-03-14T23:38:04.000Z
perma_web/perma/migrations/0051_auto_20200220_2058.py
rachelaus/perma
36c05080520ea3ffce465dbc383795c060fa4112
[ "MIT", "Unlicense" ]
2,069
2015-01-06T20:09:24.000Z
2022-03-31T15:44:36.000Z
perma_web/perma/migrations/0051_auto_20200220_2058.py
rachelaus/perma
36c05080520ea3ffce465dbc383795c060fa4112
[ "MIT", "Unlicense" ]
69
2015-01-12T18:56:07.000Z
2022-02-22T19:57:10.000Z
# Generated by Django 2.2.10 on 2020-02-20 20:58 from django.db import migrations import logging logger = logging.getLogger(__name__) def ignore_failed_ia_uploads(apps, schema_editor): Link = apps.get_model('perma', 'Link') updated = Link.objects.filter( internet_archive_upload_status='failed_permane...
25.615385
82
0.711712
3eacff0b9d0113a3c451937fc77bbf51b2390e65
14,216
py
Python
frappe/integrations/doctype/paypal_settings/paypal_settings.py
yered1/frappe
3c154d14680784291656461de242178cca409612
[ "MIT" ]
1
2019-06-19T07:56:26.000Z
2019-06-19T07:56:26.000Z
frappe/integrations/doctype/paypal_settings/paypal_settings.py
alexbow2008/frappe
ce592a40b4c5e80a9c6cbdc541105218bf98c966
[ "MIT" ]
null
null
null
frappe/integrations/doctype/paypal_settings/paypal_settings.py
alexbow2008/frappe
ce592a40b4c5e80a9c6cbdc541105218bf98c966
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and contributors # For license information, please see license.txt """ # Integrating PayPal ### 1. Validate Currency Support Example: from frappe.integrations.utils import get_payment_gateway_controller controller = get_payment_gateway_controller(...
33.29274
280
0.738182
ea8dbd51b1d4f9973f9c5f164bcc7c0e53f9a8d1
4,804
py
Python
vnpy/trader/vtGateway.py
CjoneL/vnpy
5081dbe2cb929bdf9a0e512c2e480d9be22fe887
[ "MIT" ]
null
null
null
vnpy/trader/vtGateway.py
CjoneL/vnpy
5081dbe2cb929bdf9a0e512c2e480d9be22fe887
[ "MIT" ]
null
null
null
vnpy/trader/vtGateway.py
CjoneL/vnpy
5081dbe2cb929bdf9a0e512c2e480d9be22fe887
[ "MIT" ]
null
null
null
# encoding: UTF-8 import time from datetime import datetime from vnpy.trader.vtEvent import * from vnpy.trader.vtConstant import * from vnpy.trader.vtObject import * import logging ######################################################################## class VtGateway(object): """交易接口""" # ---------------...
28.939759
90
0.398418
c23749403b73a6d71d7f9952d9392b89fcc82f78
429
py
Python
services/spider/worker/library/helper.py
huang-zp/crawloop
3411bfaac3b0a6a534cf6518f5132883477e7442
[ "Apache-2.0" ]
19
2021-03-10T03:51:31.000Z
2022-03-14T01:05:46.000Z
services/spider/worker/library/helper.py
c89758971/crawloop
b9fcc21f7ec712a74cb5952686c1f4cce896207e
[ "Apache-2.0" ]
1
2021-03-12T02:14:17.000Z
2021-03-12T02:14:17.000Z
services/spider/worker/library/helper.py
c89758971/crawloop
b9fcc21f7ec712a74cb5952686c1f4cce896207e
[ "Apache-2.0" ]
5
2021-03-23T09:51:23.000Z
2022-01-14T08:16:09.000Z
# -*- coding: utf-8 -*- import sys from typing import Optional if sys.version_info >= (3, 8): from typing import TypedDict # pylint: disable=no-name-in-module else: from typing_extensions import TypedDict class ProxyServer(TypedDict): server: str bypass: Optional[str] username: Optional[str] ...
19.5
69
0.706294
d553411014856a02a61023970d028d8b61b04bc1
13,961
py
Python
manimlib/mobject/svg/tex_mobject.py
eulertour/manim
31a57300731587a7bdcff15d1143c5b13a02d163
[ "MIT" ]
15
2018-10-16T18:04:25.000Z
2021-05-02T12:14:23.000Z
manimlib/mobject/svg/tex_mobject.py
eulertour/manim-3b1b
31a57300731587a7bdcff15d1143c5b13a02d163
[ "MIT" ]
4
2018-09-12T02:10:01.000Z
2019-06-08T03:16:59.000Z
manimlib/mobject/svg/tex_mobject.py
eulertour/manim-3b1b
31a57300731587a7bdcff15d1143c5b13a02d163
[ "MIT" ]
19
2018-10-16T06:52:45.000Z
2020-11-10T04:52:53.000Z
from manimlib.web.utils import serialize_args, serialize_config from functools import reduce import operator as op from manimlib.constants import * from manimlib.mobject.geometry import Line, Circle, Rectangle from manimlib.mobject.svg.svg_mobject import SVGMobject from manimlib.mobject.svg.svg_mobject import VMobject...
34.815461
110
0.58778
387a814be0098a094fefdbdc2245844df5932d47
721
py
Python
src/application/forms.py
mpdavis/ap-alerts
e36879b2fc71f56fcb8d8aecb8967ebb7fd9d3a6
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
src/application/forms.py
mpdavis/ap-alerts
e36879b2fc71f56fcb8d8aecb8967ebb7fd9d3a6
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
src/application/forms.py
mpdavis/ap-alerts
e36879b2fc71f56fcb8d8aecb8967ebb7fd9d3a6
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" forms.py Web forms based on Flask-WTForms See: http://flask.pocoo.org/docs/patterns/wtforms/ http://wtforms.simplecodes.com/ """ import wtforms from wtforms import validators class RegisterForm(wtforms.Form): email = wtforms.TextField('Email', validators=[validators.Email(), validators.Required()]) ...
30.041667
106
0.740638
0893d7935c5a45604e25b185de8e53b8797f7f71
4,046
py
Python
-Human-Activity-Recognition-with-Smartphones_SVM/code.py
treasuregem/ga-learner-dsmp-repo
5caa4896511f7122d12a86bbf16d409587d77482
[ "MIT" ]
null
null
null
-Human-Activity-Recognition-with-Smartphones_SVM/code.py
treasuregem/ga-learner-dsmp-repo
5caa4896511f7122d12a86bbf16d409587d77482
[ "MIT" ]
null
null
null
-Human-Activity-Recognition-with-Smartphones_SVM/code.py
treasuregem/ga-learner-dsmp-repo
5caa4896511f7122d12a86bbf16d409587d77482
[ "MIT" ]
null
null
null
# -------------- import pandas as pd from collections import Counter # Load dataset data=pd.read_csv(path) print(data.info()) print((data.isnull().sum())) print(data.describe()) # -------------- import seaborn as sns from matplotlib import pyplot as plt sns.set_style(style='darkgrid') # Store the label values label...
30.421053
134
0.784478
5ed18c0ce6c9f847f25501cefcee4359ab7dc2ae
3,917
py
Python
src/client_libraries/python/dynamics/customerinsights/api/models/instances_instance_id_manage_measures_measure_name_put_request1.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
null
null
null
src/client_libraries/python/dynamics/customerinsights/api/models/instances_instance_id_manage_measures_measure_name_put_request1.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
null
null
null
src/client_libraries/python/dynamics/customerinsights/api/models/instances_instance_id_manage_measures_measure_name_put_request1.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
7
2021-02-11T19:48:57.000Z
2021-12-17T08:00:15.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
46.082353
95
0.654838
283132630253fc0be6379eed1d87cfd847513f8f
1,909
py
Python
desktop/core/ext-py/pyexcelerator/examples/merged1.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
desktop/core/ext-py/pyexcelerator/examples/merged1.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
desktop/core/ext-py/pyexcelerator/examples/merged1.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
#!/usr/bin/env python # -*- coding: windows-1251 -*- # Copyright (C) 2005 Kiseliov Roman __rev_id__ = """$Id: merged1.py,v 1.1 2005/07/22 08:22:26 rvk Exp $""" from pyExcelerator import * wb = Workbook() ws0 = wb.add_sheet('sheet0') fnt1 = Font() fnt1.name = 'Verdana' fnt1.bold = True fnt1.height = 18*0x14 pat1 = ...
18.180952
70
0.718177
3cf43ed569336a7e4ad0a3dddede8a5fd78a40df
12,940
py
Python
beetsplug/web/__init__.py
bxnyintuc/beets
f8a92d4c7075cd4f7b381845a48e8001c7d16e7c
[ "MIT" ]
2
2020-01-29T15:20:12.000Z
2020-02-24T05:46:26.000Z
beetsplug/web/__init__.py
bxnyintuc/beets
f8a92d4c7075cd4f7b381845a48e8001c7d16e7c
[ "MIT" ]
null
null
null
beetsplug/web/__init__.py
bxnyintuc/beets
f8a92d4c7075cd4f7b381845a48e8001c7d16e7c
[ "MIT" ]
1
2019-09-26T16:20:19.000Z
2019-09-26T16:20:19.000Z
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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 t...
29.144144
78
0.612519
21ed026881899472e6629100f395136c7fa96bcd
1,810
py
Python
src/programy/extensions/banking/balance.py
cdoebler1/AIML2
ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a
[ "MIT" ]
345
2016-11-23T22:37:04.000Z
2022-03-30T20:44:44.000Z
src/programy/extensions/banking/balance.py
MikeyBeez/program-y
00d7a0c7d50062f18f0ab6f4a041068e119ef7f0
[ "MIT" ]
275
2016-12-07T10:30:28.000Z
2022-02-08T21:28:33.000Z
src/programy/extensions/banking/balance.py
VProgramMist/modified-program-y
f32efcafafd773683b3fe30054d5485fe9002b7d
[ "MIT" ]
159
2016-11-28T18:59:30.000Z
2022-03-20T18:02:44.000Z
""" Copyright (c) 2016-2020 Keith Sterling http://www.keithsterling.com 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, m...
50.277778
120
0.772928
efd0f794e69692dd8fa1cb120f2665f230298ec1
2,521
py
Python
model_zoo/research/cv/FaceQualityAssessment/export.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
55
2020-12-17T10:26:06.000Z
2022-03-28T07:18:26.000Z
model_zoo/research/cv/FaceQualityAssessment/export.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
model_zoo/research/cv/FaceQualityAssessment/export.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
14
2021-01-29T02:39:47.000Z
2022-03-23T05:00:26.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.784615
115
0.623165
7b7b0e45a05cf341fd09190e6c5ad2a57cc6e776
1,358
py
Python
build/pan_tilt_bringup/catkin_generated/generate_cached_setup.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/pan_tilt_bringup/catkin_generated/generate_cached_setup.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/pan_tilt_bringup/catkin_generated/generate_cached_setup.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import argparse import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys....
43.806452
103
0.741532
8bcecb8b283f90d0ee3e06ed88bff99b02fabc5d
4,814
py
Python
coworks/blueprint/google_sheets.py
gdoumenc/coworks
97bb3babfd9c652315b5cf830d170cd20485b1d1
[ "MIT" ]
23
2019-12-26T16:28:40.000Z
2022-02-22T14:05:47.000Z
coworks/blueprint/google_sheets.py
gdoumenc/coworks
97bb3babfd9c652315b5cf830d170cd20485b1d1
[ "MIT" ]
15
2019-12-24T13:29:29.000Z
2021-12-28T10:16:36.000Z
coworks/blueprint/google_sheets.py
gdoumenc/coworks
97bb3babfd9c652315b5cf830d170cd20485b1d1
[ "MIT" ]
4
2021-07-10T17:59:51.000Z
2022-02-14T18:53:00.000Z
import json import os from coworks import Blueprint from pygsheets import Worksheet, DataRange from pygsheets import authorize, WorksheetNotFound class GoogleSheets(Blueprint): def __init__(self, client_id_var_name, private_key_var_name, private_key_id_var_name, **kwargs): super().__init__(**kwargs) ...
48.14
165
0.648941
1fb26e701a392d5ef3bc40d5772d4541fa38f773
5,970
py
Python
tensorflow/contrib/tpu/python/tpu/topology.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
8
2017-03-20T12:04:21.000Z
2021-06-24T20:34:30.000Z
tensorflow/contrib/tpu/python/tpu/topology.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
4
2019-08-14T22:32:51.000Z
2020-03-09T14:59:18.000Z
tensorflow/contrib/tpu/python/tpu/topology.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
4
2019-11-11T13:46:27.000Z
2020-03-14T05:36:53.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...
42.94964
80
0.676382
bebcae494752ee68d208fd171392f3f7f9167b80
14,963
py
Python
transistor/scrapers/splash_scraper_abc.py
awesome-archive/transistor
d164438474f91dd38bae693af426a0ac4187511f
[ "MIT" ]
null
null
null
transistor/scrapers/splash_scraper_abc.py
awesome-archive/transistor
d164438474f91dd38bae693af426a0ac4187511f
[ "MIT" ]
null
null
null
transistor/scrapers/splash_scraper_abc.py
awesome-archive/transistor
d164438474f91dd38bae693af426a0ac4187511f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ transistor.scrapers.splash_scraper_abc ~~~~~~~~~~~~ This module implements an abstract base class for a scraper which assumes the use of a Splash headless browswer/javascript rendering service. It also supports the optional use of using Crawlera smart proxy service from scrapinghub.com. Thi...
43.751462
102
0.642652
e3a3e54e41aca888fc838323fa27bc28792b3a71
15,992
py
Python
loguru/_better_exceptions.py
joshgordon/loguru
9777f4bec8b03ef074635269224baa3fd263fd09
[ "MIT" ]
1
2019-10-21T01:59:35.000Z
2019-10-21T01:59:35.000Z
loguru/_better_exceptions.py
joshgordon/loguru
9777f4bec8b03ef074635269224baa3fd263fd09
[ "MIT" ]
null
null
null
loguru/_better_exceptions.py
joshgordon/loguru
9777f4bec8b03ef074635269224baa3fd263fd09
[ "MIT" ]
null
null
null
import builtins import inspect import io import keyword import linecache import os import re import site import sys import sysconfig import tokenize import traceback class SyntaxHighlighter: _default_style = { "comment": "\x1b[30m\x1b[1m{}\x1b[0m", "keyword": "\x1b[35m\x1b[1m{}\x1b[0m", "...
35.616927
100
0.539332
15214cd568eb3a45a9697922f1a5e6b8f9a28ae4
386
py
Python
Desafios/desafio015.py
RodrigoMSCruz/CursoEmVideo.com-Python
65203612de677dffa52119e7c06b928a6b5edcb3
[ "MIT" ]
null
null
null
Desafios/desafio015.py
RodrigoMSCruz/CursoEmVideo.com-Python
65203612de677dffa52119e7c06b928a6b5edcb3
[ "MIT" ]
null
null
null
Desafios/desafio015.py
RodrigoMSCruz/CursoEmVideo.com-Python
65203612de677dffa52119e7c06b928a6b5edcb3
[ "MIT" ]
null
null
null
# Calcula o valor de um aluguel de carro com base no tempo em dias e na distância em km percorridos em km. # O valor é R$ 60 por dia e R$ 0,15 por km rodado. qkm = float(input('Qual a quilometragem rodada pelo veículo? ')) qdia = int(input('Qual o tempo em dias que o carro foi alugado? (Inteiro) ')) valor = (qkm * 0.15...
55.142857
106
0.683938
4b44d61b8c0782d6ea3b771c511fdc97628dfde2
6,437
py
Python
ice_validator/tests/utils/network_roles.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
1
2018-08-29T19:33:22.000Z
2018-08-29T19:33:22.000Z
ice_validator/tests/utils/network_roles.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
ice_validator/tests/utils/network_roles.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
2
2019-07-23T15:47:43.000Z
2021-07-02T15:04:19.000Z
# -*- coding: utf8 -*- # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # ========================================...
33.701571
82
0.633525
2bdf07873ea8f50675bfb1e11d852fd92069df30
14,993
py
Python
examples/domain_adaptation/classification/mcd.py
wuaodi/Transfer-Learning-Library
29a946143e63b66a1da9ffa685bfe95f5640028a
[ "MIT" ]
1
2021-04-08T00:13:13.000Z
2021-04-08T00:13:13.000Z
examples/domain_adaptation/classification/mcd.py
wuaodi/Transfer-Learning-Library
29a946143e63b66a1da9ffa685bfe95f5640028a
[ "MIT" ]
null
null
null
examples/domain_adaptation/classification/mcd.py
wuaodi/Transfer-Learning-Library
29a946143e63b66a1da9ffa685bfe95f5640028a
[ "MIT" ]
null
null
null
import random import time import warnings import sys import argparse import shutil import os.path as osp from typing import Tuple import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.optim import SGD import torch.utils.data from torch.utils.data import DataLoader import torchvision.transf...
39.664021
118
0.620623
29d2075fe7b8a627ad4167879ff04e4a2b252cff
2,437
py
Python
website/local.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
19
2015-11-10T17:36:20.000Z
2021-04-12T07:36:00.000Z
website/local.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
1
2021-06-09T03:45:34.000Z
2021-06-09T03:45:34.000Z
website/local.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
6
2015-11-11T00:38:38.000Z
2020-07-25T20:10:08.000Z
#!/usr/bin/env python import os import signal import subprocess import time from nginx import read_pid from optparse import OptionParser parser = OptionParser() parser.add_option('--project', dest='project', default='canvas') options, args = parser.parse_args() def run(command, cwd='/var/canvas/website', **kwargs): ...
30.4625
116
0.627
443f353745440960145a16f86fdeb38e6675d6dd
399
py
Python
djangousers/djangousers/asgi.py
dzbrozek/django-users
39fdc14722af7fb90ff629e4666b6d69bb603643
[ "MIT" ]
null
null
null
djangousers/djangousers/asgi.py
dzbrozek/django-users
39fdc14722af7fb90ff629e4666b6d69bb603643
[ "MIT" ]
4
2021-11-16T08:36:33.000Z
2021-11-16T11:28:18.000Z
djangousers/djangousers/asgi.py
dzbrozek/django-users
39fdc14722af7fb90ff629e4666b6d69bb603643
[ "MIT" ]
null
null
null
""" ASGI config for djangousers project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
9b515daf2916cb2c69794187e53cba8b9e8f1dbb
4,995
py
Python
cloudbaseinit/metadata/services/packet.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
160
2015-01-09T14:45:59.000Z
2022-03-15T09:15:12.000Z
cloudbaseinit/metadata/services/packet.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
95
2015-01-25T15:22:05.000Z
2022-03-16T10:40:27.000Z
cloudbaseinit/metadata/services/packet.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
86
2015-01-19T17:19:35.000Z
2022-03-24T09:21:55.000Z
# Copyright 2016 Cloudbase Solutions Srl # # 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 l...
37
78
0.664865
52bcc063cbff0ad3b3a14fd9def3958d608a03d5
8,682
py
Python
tests/decomposition/test_grouppca.py
jameschapman19/mvlearn
a9161ce35053d2a38da2256932054e9d3beab57d
[ "MIT" ]
92
2020-08-26T04:55:46.000Z
2022-03-31T08:32:01.000Z
tests/decomposition/test_grouppca.py
zaza0209/mvlearn
56a84e073bf8e5e9b0c4c0d9ad72019af1f8cf29
[ "MIT" ]
110
2020-02-04T22:53:53.000Z
2020-08-20T22:41:22.000Z
tests/decomposition/test_grouppca.py
NeuroDataDesign/mvlearn
003dccea563926fca5d957f5bbf39c1494acfe94
[ "Apache-2.0" ]
16
2020-08-31T17:50:49.000Z
2022-03-23T19:46:40.000Z
# MIT License # Copyright (c) [2020] [Pierre Ablin and Hugo Richard] # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, c...
34.452381
79
0.660217
9a1765819b1aa48685978f33ece31cbd264afc3b
1,334
py
Python
venv/lib/python2.7/site-packages/sklearn/ensemble/tests/test_base.py
bopopescu/fbserver
e812dbc4dc0cbf2fda19473015a3d7e253718a19
[ "Apache-2.0" ]
null
null
null
venv/lib/python2.7/site-packages/sklearn/ensemble/tests/test_base.py
bopopescu/fbserver
e812dbc4dc0cbf2fda19473015a3d7e253718a19
[ "Apache-2.0" ]
null
null
null
venv/lib/python2.7/site-packages/sklearn/ensemble/tests/test_base.py
bopopescu/fbserver
e812dbc4dc0cbf2fda19473015a3d7e253718a19
[ "Apache-2.0" ]
1
2020-07-23T19:26:19.000Z
2020-07-23T19:26:19.000Z
""" Testing for the base module (sklearn.ensemble.base). """ # Authors: Gilles Louppe # License: BSD 3 clause from numpy.testing import assert_equal from nose.tools import assert_true from sklearn.utils.testing import assert_raise_message from sklearn.datasets import load_iris from sklearn.ensemble import BaggingCla...
30.318182
78
0.731634
bf47e6499cd2f93a82092b11709c38c0719f1e24
2,334
py
Python
llvm/utils/lit/tests/shtest-run-at-line.py
acidburn0zzz/llvm-project
7ca7a2547f00e34f5ec91be776a1d0bbca74b7a9
[ "Apache-2.0" ]
61
2019-04-12T18:49:57.000Z
2022-03-19T22:23:16.000Z
llvm/utils/lit/tests/shtest-run-at-line.py
acidburn0zzz/llvm-project
7ca7a2547f00e34f5ec91be776a1d0bbca74b7a9
[ "Apache-2.0" ]
127
2019-04-09T00:55:50.000Z
2022-03-21T15:35:41.000Z
llvm/utils/lit/tests/shtest-run-at-line.py
acidburn0zzz/llvm-project
7ca7a2547f00e34f5ec91be776a1d0bbca74b7a9
[ "Apache-2.0" ]
11
2020-03-26T11:36:41.000Z
2022-01-06T13:21:43.000Z
# Check that -vv makes the line number of the failing RUN command clear. # (-v is actually sufficient in the case of the internal shell.) # FIXME: this test depends on order of tests # RUN: rm -f %{inputs}/shtest-run-at-line/.lit_test_times.txt # RUN: not %{lit} -j 1 -vv %{inputs}/shtest-run-at-line > %t.out # RUN: F...
31.540541
79
0.611397
0dd6ed3c6e48fff40eeca2b3f288c4a96cd1e5af
1,508
py
Python
mylib/file_utils.py
slchenchn/mylib
c0fdbcec4735a259fdf9091c1147b7a0e96523f0
[ "Apache-2.0" ]
null
null
null
mylib/file_utils.py
slchenchn/mylib
c0fdbcec4735a259fdf9091c1147b7a0e96523f0
[ "Apache-2.0" ]
null
null
null
mylib/file_utils.py
slchenchn/mylib
c0fdbcec4735a259fdf9091c1147b7a0e96523f0
[ "Apache-2.0" ]
null
null
null
''' Author: Shuailin Chen Created Date: 2020-11-17 Last Modified: 2021-11-25 content: to manipulate file and folde ''' import os import os.path as osp def mkdir_if_not_exist(path): """Make a directory if it does not exist.""" if not isinstance(path, str): path = os.path.join(*path) ...
30.77551
107
0.613395