hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f751c1566761a27e37478d2321cad3ff73d714d9
3,147
py
Python
rhea-pkg/rhea/broker.py
panoszvg/NTUA-Analysis-and-Design-of-Information-Systems
dcb6f8d39e375d3075eeee3a12f5f6a6500629ad
[ "MIT" ]
null
null
null
rhea-pkg/rhea/broker.py
panoszvg/NTUA-Analysis-and-Design-of-Information-Systems
dcb6f8d39e375d3075eeee3a12f5f6a6500629ad
[ "MIT" ]
null
null
null
rhea-pkg/rhea/broker.py
panoszvg/NTUA-Analysis-and-Design-of-Information-Systems
dcb6f8d39e375d3075eeee3a12f5f6a6500629ad
[ "MIT" ]
null
null
null
import pika class Broker: def __init__(self, area): # Validate broker attributes if area not in ["A", "B", "C", "D"]: raise ValueError( "Please provide a valid sender area. [A, B, C, D]" ) self.area = area self.connection = None ...
31.787879
88
0.563394
import pika class Broker: def __init__(self, area): if area not in ["A", "B", "C", "D"]: raise ValueError( "Please provide a valid sender area. [A, B, C, D]" ) self.area = area self.connection = None self.channel = None ...
true
true
f751c1a7b8557d111ece974fe0337ad5501315ca
34
py
Python
test/__init__.py
JugalBoro/trip-based-routing-
66fd2095d6c072d16fe8d5a7ef0912ee72b22c08
[ "WTFPL" ]
43
2016-10-10T18:31:35.000Z
2022-03-14T06:25:28.000Z
test/__init__.py
JugalBoro/trip-based-routing-
66fd2095d6c072d16fe8d5a7ef0912ee72b22c08
[ "WTFPL" ]
null
null
null
test/__init__.py
JugalBoro/trip-based-routing-
66fd2095d6c072d16fe8d5a7ef0912ee72b22c08
[ "WTFPL" ]
8
2017-09-27T10:55:27.000Z
2020-08-09T04:14:00.000Z
from . import _common c = _common
11.333333
21
0.735294
from . import _common c = _common
true
true
f751c1f6c5fb0e20584bd0d7e26e7844ebb7692c
1,709
py
Python
stubs/3.2/posixpath.py
TimSimpsonR/mypy
5e6fd6335e0662b0477e1d678269f33e6f4194ba
[ "PSF-2.0" ]
1
2019-06-16T07:05:32.000Z
2019-06-16T07:05:32.000Z
stubs/3.2/posixpath.py
zyga/mypy
5b7e222568cd20c31cde4e02adc9fd77d949197a
[ "PSF-2.0" ]
null
null
null
stubs/3.2/posixpath.py
zyga/mypy
5b7e222568cd20c31cde4e02adc9fd77d949197a
[ "PSF-2.0" ]
null
null
null
# Stubs for os.path # Ron Murawski <ron@horizonchess.com> # based on http://docs.python.org/3.2/library/os.path.html from typing import Any, List, Tuple, IO, overload # ----- os.path variables ----- supports_unicode_filenames = False # ----- os.path function stubs ----- def abspath(path: str) -> str: pass def basen...
36.361702
78
0.6811
from typing import Any, List, Tuple, IO, overload supports_unicode_filenames = False def abspath(path: str) -> str: pass def basename(path) -> str: pass def commonprefix(list: List[str]) -> str: pass def dirname(path: str) -> str: pass def exists(path: str) -> bool: pass def lexists(path: str) -> bool: pass de...
true
true
f751c3e6171e5dd6de2f88177f415d072de31d10
55,607
py
Python
SPC-MGR.py
Kali-Hac/SPC-MGR
3eccceeba97e0dca62132187c6645b98620f3bd1
[ "MIT" ]
null
null
null
SPC-MGR.py
Kali-Hac/SPC-MGR
3eccceeba97e0dca62132187c6645b98620f3bd1
[ "MIT" ]
null
null
null
SPC-MGR.py
Kali-Hac/SPC-MGR
3eccceeba97e0dca62132187c6645b98620f3bd1
[ "MIT" ]
1
2021-12-30T09:17:49.000Z
2021-12-30T09:17:49.000Z
""" The SPC-MGR is built based in part on graph attention mechanism (https://arxiv.org/abs/1710.10903), part on MG-SCR (https://www.ijcai.org/proceedings/2021/0135), and includes open-source codes provided by the project of Graph Attention Network (GAT) at https://github.com/PetarV-/GAT, and the project of MG-SCR ...
44.916801
174
0.594493
import time import numpy as np import tensorflow as tf import os, sys from models import GAT as MSRL from utils import process_L3 as process from utils.faiss_rerank import compute_jaccard_distance from tensorflow.python.layers.core import Dense from sklearn.preprocessing import label_binarize from sklearn.c...
true
true
f751c478e6a9dbe80f2cf47f74c63d8192f192df
1,377
py
Python
otp/launcher/DownloadWatcher.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
null
null
null
otp/launcher/DownloadWatcher.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
1
2021-06-08T17:16:48.000Z
2021-06-08T17:16:48.000Z
otp/launcher/DownloadWatcher.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
3
2021-06-03T05:36:36.000Z
2021-06-22T15:07:31.000Z
from direct.task import Task from otp.otpbase import OTPLocalizer from direct.gui.DirectGui import * from panda3d.core import * from direct.showbase.DirectObject import DirectObject class DownloadWatcher(DirectObject): def __init__(self, phaseNames): self.phaseNames = phaseNames self.text = Direct...
47.482759
241
0.668845
from direct.task import Task from otp.otpbase import OTPLocalizer from direct.gui.DirectGui import * from panda3d.core import * from direct.showbase.DirectObject import DirectObject class DownloadWatcher(DirectObject): def __init__(self, phaseNames): self.phaseNames = phaseNames self.text = Direct...
true
true
f751c602572c9caa28cc7aa44badb480c8d08b85
123,187
py
Python
kivy/uix/textinput.py
tamo/kivy
f1a4b002b2150e466c4908a27cc1977dd083d19a
[ "MIT" ]
null
null
null
kivy/uix/textinput.py
tamo/kivy
f1a4b002b2150e466c4908a27cc1977dd083d19a
[ "MIT" ]
null
null
null
kivy/uix/textinput.py
tamo/kivy
f1a4b002b2150e466c4908a27cc1977dd083d19a
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' Text Input ========== .. versionadded:: 1.0.4 .. image:: images/textinput-mono.jpg .. image:: images/textinput-multi.jpg The :class:`TextInput` widget provides a box for editable plain text. Unicode, multiline, cursor navigation, selection and clipboard features are supported. The :cl...
35.8623
79
0.576944
__all__ = ('TextInput', ) import re import sys from os import environ from weakref import ref from kivy.animation import Animation from kivy.base import EventLoop from kivy.cache import Cache from kivy.clock import Clock from kivy.config import Config from kivy.metrics import inch from kivy.utils import boundary,...
true
true
f751c634a9d50106d1954cacfe7e08c5dfe5bb74
2,489
py
Python
client/team08/prueba.py
mr8ug/tytus
a09abe4095e49d333a8ed9ca81cb3d88f90872ba
[ "MIT" ]
1
2021-01-09T05:32:35.000Z
2021-01-09T05:32:35.000Z
client/team08/prueba.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
client/team08/prueba.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
from tkinter import ttk import tkinter as tk from tkinter import * import tkinter.scrolledtext as tkscrolled # pip install pillow from PIL import ImageTk, Image class base: #esto es un constructor def __init__(self, window): self.wind = window #guarda la ventana que tiene como parametro self....
35.557143
92
0.625954
from tkinter import ttk import tkinter as tk from tkinter import * import tkinter.scrolledtext as tkscrolled from PIL import ImageTk, Image class base: def __init__(self, window): self.wind = window self.wind.title('TytusDB') load = Image.open("icondb.jpg") self.wind.iconphot...
true
true
f751c83f615cc58d491aa3bb04a7f6e2b6303b9f
922
py
Python
setup.py
AuthenticExecution/reactive-uart2ip
abd39c945051a9a79bcc19287c44b92ddbd891c3
[ "MIT" ]
null
null
null
setup.py
AuthenticExecution/reactive-uart2ip
abd39c945051a9a79bcc19287c44b92ddbd891c3
[ "MIT" ]
null
null
null
setup.py
AuthenticExecution/reactive-uart2ip
abd39c945051a9a79bcc19287c44b92ddbd891c3
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() with open("requirements.txt", "r") as f: requirements = f.readlines() setup( name='reactive-uart2ip', version='0.2', author="Gianluca Scopelliti", author_email="gianlu...
30.733333
69
0.672451
from setuptools import setup, find_packages with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() with open("requirements.txt", "r") as f: requirements = f.readlines() setup( name='reactive-uart2ip', version='0.2', author="Gianluca Scopelliti", author_email="gianlu...
true
true
f751c8d75588a12408982a63580db10ce0512b19
14,518
py
Python
src/patteRNA/arglib.py
AviranLab/patteRNA
88b900844016717a71b6ec8e4f2d10d8888600ce
[ "BSD-2-Clause" ]
12
2018-03-02T21:48:46.000Z
2022-01-31T02:58:59.000Z
src/patteRNA/arglib.py
AviranLab/patteRNA
88b900844016717a71b6ec8e4f2d10d8888600ce
[ "BSD-2-Clause" ]
2
2018-07-19T01:11:11.000Z
2019-04-08T23:54:08.000Z
src/patteRNA/arglib.py
AviranLab/patteRNA
88b900844016717a71b6ec8e4f2d10d8888600ce
[ "BSD-2-Clause" ]
5
2018-03-06T18:13:36.000Z
2021-01-08T20:54:28.000Z
"""Parse and handle input arguments""" import argparse import logging import multiprocessing from patteRNA import version logger = logging.getLogger(__name__) def parse_cl_args(inputargs): """ Parse command line arguments. Args: inputargs (list): List of input arguments. Returns: in...
45.798107
120
0.543601
import argparse import logging import multiprocessing from patteRNA import version logger = logging.getLogger(__name__) def parse_cl_args(inputargs): parser = argparse.ArgumentParser(prog="patteRNA", description="Rapid mining of RNA secondary structure motifs from profiling ...
true
true
f751ca1c2c494573277faa6b0bb58a51c90d3852
8,819
py
Python
sdk/python/pulumi_azure_native/authorization/v20190101/policy_definition.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/authorization/v20190101/policy_definition.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/authorization/v20190101/policy_definition.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...
47.929348
1,824
0.671391
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from ._enums import * __all__ = ['PolicyDefinition'] class PolicyDefinition(pulumi.CustomResource): def __init__(__self__, resource_name: str, ...
true
true
f751cb8f1fd4d700d8c238e70a78c5f09a78ce3e
90
py
Python
cdhweb/blog/apps.py
bwhicks/cdh-web
d6002dc1933a4d6e97f5459aafc9ab92cb1f8050
[ "Apache-2.0" ]
1
2017-11-21T16:02:33.000Z
2017-11-21T16:02:33.000Z
cdhweb/blog/apps.py
bwhicks/cdh-web
d6002dc1933a4d6e97f5459aafc9ab92cb1f8050
[ "Apache-2.0" ]
367
2017-08-14T16:05:41.000Z
2021-11-03T15:29:18.000Z
cdhweb/blog/apps.py
bwhicks/cdh-web
d6002dc1933a4d6e97f5459aafc9ab92cb1f8050
[ "Apache-2.0" ]
5
2017-09-08T21:08:49.000Z
2020-10-02T04:39:37.000Z
from django.apps import AppConfig class BlogConfig(AppConfig): name = "cdhweb.blog"
15
33
0.744444
from django.apps import AppConfig class BlogConfig(AppConfig): name = "cdhweb.blog"
true
true
f751cb92608e963cc8e127bca967eb7b673ec879
3,037
py
Python
chainer/functions/pooling/pooling_2d.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
chainer/functions/pooling/pooling_2d.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
chainer/functions/pooling/pooling_2d.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
import collections import numpy from chainer import cuda from chainer import function from chainer.utils import conv from chainer.utils import type_check if cuda.cudnn_enabled: cudnn = cuda.cudnn libcudnn = cudnn.cudnn _cudnn_version = libcudnn.getVersion() def _check_cudnn_acceptable_type(x_dtype): ...
30.37
69
0.618703
import collections import numpy from chainer import cuda from chainer import function from chainer.utils import conv from chainer.utils import type_check if cuda.cudnn_enabled: cudnn = cuda.cudnn libcudnn = cudnn.cudnn _cudnn_version = libcudnn.getVersion() def _check_cudnn_acceptable_type(x_dtype): ...
true
true
f751cbd0cb72e74c3c5456265f821d05ece6a6f9
543
py
Python
src/deepnox/utils/oop.py
deepnox-io/python-wipbox
cd919ddb551b0b80f0c162c2d5e99a0ba6c81bba
[ "MIT" ]
2
2022-01-19T11:31:35.000Z
2022-01-19T11:50:07.000Z
src/deepnox/utils/oop.py
deepnox-io/python-wipbox
cd919ddb551b0b80f0c162c2d5e99a0ba6c81bba
[ "MIT" ]
3
2022-01-20T04:26:44.000Z
2022-03-22T02:03:49.000Z
src/deepnox/utils/oop.py
deepnox-io/python-wipbox
cd919ddb551b0b80f0c162c2d5e99a0ba6c81bba
[ "MIT" ]
null
null
null
class SingletonMeta(type): """ A metaclass to use other classes as singleton. :see: https://www.datacamp.com/community/tutorials/python-metaclasses """ _instances = {} """ A {dict} containing classes which must be a singleton. """ def __call__(cls, *args, **kwargs): """ ...
24.681818
84
0.589319
class SingletonMeta(type): _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(SingletonMeta,cls).__call__(*args, **kwargs) return cls._instances[cls]
true
true
f751cc169ec6fea1a69745da415a1890521e847d
132
py
Python
day06(python)/test.py
DreamLose/python-
865249d7dba1fb1452189bde59c378aab8c99c9b
[ "MIT" ]
1
2020-11-12T01:37:20.000Z
2020-11-12T01:37:20.000Z
day06(python)/test.py
DreamLose/python-
865249d7dba1fb1452189bde59c378aab8c99c9b
[ "MIT" ]
null
null
null
day06(python)/test.py
DreamLose/python-
865249d7dba1fb1452189bde59c378aab8c99c9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf8 -*- //Python2中 只要有中文头部就需要添加 n = input('请输入用户名: ') n2 = input('请输入密码: ') print(n) print(n2)
22
47
0.621212
n = input('请输入用户名: ') n2 = input('请输入密码: ') print(n) print(n2)
true
true
f751cd1b36db612b80b3fcc4f0b2f250a04bfad4
96,833
py
Python
test/functional/p2p_segwit.py
mrheat/doichain-core-rebase
975aa7d438dbdb0baf352299afb3daf70318d37b
[ "MIT" ]
null
null
null
test/functional/p2p_segwit.py
mrheat/doichain-core-rebase
975aa7d438dbdb0baf352299afb3daf70318d37b
[ "MIT" ]
null
null
null
test/functional/p2p_segwit.py
mrheat/doichain-core-rebase
975aa7d438dbdb0baf352299afb3daf70318d37b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test segwit transactions and blocks on P2P network.""" from decimal import Decimal import random import...
46.464971
187
0.653362
from decimal import Decimal import random import struct import time from test_framework.blocktools import ( WITNESS_COMMITMENT_HEADER, add_witness_commitment, create_block, create_coinbase, ) from test_framework.key import ECKey from test_framework.messages import ( BIP125_SEQUENCE_NUMBER, ...
true
true
f751cdb7037a725701d6b350f3c0667cba5ccd6c
1,296
py
Python
airbyte-integrations/connectors/source-iterable/main.py
luizgribeiro/airbyte
71a96f5417b678c39b34e2e92234d8a51529e086
[ "MIT" ]
2
2021-03-02T09:17:41.000Z
2021-03-02T11:02:23.000Z
airbyte-integrations/connectors/source-iterable/main.py
luizgribeiro/airbyte
71a96f5417b678c39b34e2e92234d8a51529e086
[ "MIT" ]
52
2021-06-11T12:39:05.000Z
2022-03-30T04:59:35.000Z
airbyte-integrations/connectors/source-iterable/main.py
luizgribeiro/airbyte
71a96f5417b678c39b34e2e92234d8a51529e086
[ "MIT" ]
2
2021-12-14T17:15:40.000Z
2021-12-14T17:18:03.000Z
# # MIT License # # Copyright (c) 2020 Airbyte # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
38.117647
80
0.771605
import sys from airbyte_cdk.entrypoint import launch from source_iterable import SourceIterable if __name__ == "__main__": source = SourceIterable() launch(source, sys.argv[1:])
true
true
f751cf6b8c455e5b542f809f64aac37a76b0b5de
4,098
py
Python
scanpy/preprocessing/_normalization.py
dhb2128/scanpy
78649a991197af4685a8fe2f7a0d24064e3056bd
[ "BSD-3-Clause" ]
null
null
null
scanpy/preprocessing/_normalization.py
dhb2128/scanpy
78649a991197af4685a8fe2f7a0d24064e3056bd
[ "BSD-3-Clause" ]
null
null
null
scanpy/preprocessing/_normalization.py
dhb2128/scanpy
78649a991197af4685a8fe2f7a0d24064e3056bd
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy.sparse import issparse from sklearn.utils import sparsefuncs from .. import logging as logg from ..utils import doc_params from ._docs import doc_norm_descr, doc_quant_descr, doc_params_bulk, doc_norm_quant, doc_norm_return, doc_ex_quant, doc_ex_total def _normalize_data(X, counts, after=...
33.590164
128
0.638848
import numpy as np from scipy.sparse import issparse from sklearn.utils import sparsefuncs from .. import logging as logg from ..utils import doc_params from ._docs import doc_norm_descr, doc_quant_descr, doc_params_bulk, doc_norm_quant, doc_norm_return, doc_ex_quant, doc_ex_total def _normalize_data(X, counts, after=...
true
true
f751cf93baf60ffd406b9540688f6edcc64fb6d9
6,615
py
Python
src/run.py
D3v01dZA/sawnee-reader
5ae459c4b834b4faf9f8b46162ef9cb6cd7bd7ba
[ "MIT" ]
null
null
null
src/run.py
D3v01dZA/sawnee-reader
5ae459c4b834b4faf9f8b46162ef9cb6cd7bd7ba
[ "MIT" ]
null
null
null
src/run.py
D3v01dZA/sawnee-reader
5ae459c4b834b4faf9f8b46162ef9cb6cd7bd7ba
[ "MIT" ]
null
null
null
import logging import mqtt import argparse import yaml import sawnee import repeat import datetime import json from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions logging.basicConfi...
42.954545
156
0.687377
import logging import mqtt import argparse import yaml import sawnee import repeat import datetime import json from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions logging.basicConfi...
true
true
f751cfbababba19cb05c08ea0435751daadb987c
541
py
Python
tfc_web/transport/migrations/0015_vehiclejourney_timetable.py
SmartCambridge/tfc_web
ac16b3c2aa5200320e9ffa9d270fb409b98ed55d
[ "MIT" ]
2
2018-10-28T20:15:23.000Z
2019-03-29T09:06:09.000Z
tfc_web/transport/migrations/0015_vehiclejourney_timetable.py
SmartCambridge/tfc_web
ac16b3c2aa5200320e9ffa9d270fb409b98ed55d
[ "MIT" ]
107
2018-10-22T06:57:07.000Z
2020-09-15T14:43:03.000Z
tfc_web/transport/migrations/0015_vehiclejourney_timetable.py
SmartCambridge/tfc_web
ac16b3c2aa5200320e9ffa9d270fb409b98ed55d
[ "MIT" ]
1
2020-03-20T19:49:29.000Z
2020-03-20T19:49:29.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-04 19:53 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('transport', '0014_line_rendered_timetable'), ] ...
24.590909
88
0.659889
from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('transport', '0014_line_rendered_timetable'), ] operations = [ migrations.AddField( model_name='veh...
true
true
f751d0d18b480e1e35b78ba298741039bf953b4d
18,363
py
Python
models_all_solvable2/smallinvDAXr3b100-110.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
7
2019-05-08T19:14:34.000Z
2021-12-24T00:00:40.000Z
models_all_solvable2/smallinvDAXr3b100-110.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
models_all_solvable2/smallinvDAXr3b100-110.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
2
2020-05-21T22:15:51.000Z
2020-06-02T23:02:08.000Z
# MINLP written by GAMS Convert at 05/15/20 00:51:19 # # Equation counts # Total E G L N X C B # 4 0 2 2 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
94.169231
120
0.541687
from pyomo.environ import * model = m = ConcreteModel() m.i1 = Var(within=Integers,bounds=(0,100),initialize=0) m.i2 = Var(within=Integers,bounds=(0,100),initialize=0) m.i3 = Var(within=Integers,bounds=(0,100),initialize=0) m.i4 = Var(within=Integers,bounds=(0,100),initialize=0) m.i5 = Var(within=In...
true
true
f751d33f1b2fbc5857f24c93d7939bb044b5c83a
83
py
Python
scaelum/runner/__init__.py
fedorados/SkyComputing
a626a62de9505db7397a2c5096010089dba1d0d5
[ "Apache-2.0" ]
53
2022-02-25T03:11:03.000Z
2022-03-23T01:01:24.000Z
scaelum/runner/__init__.py
fedorados/SkyComputing
a626a62de9505db7397a2c5096010089dba1d0d5
[ "Apache-2.0" ]
1
2022-02-28T16:53:01.000Z
2022-02-28T16:53:01.000Z
scaelum/runner/__init__.py
fedorados/SkyComputing
a626a62de9505db7397a2c5096010089dba1d0d5
[ "Apache-2.0" ]
15
2022-02-25T03:07:21.000Z
2022-03-03T02:55:59.000Z
from .hooks import Hook from .hooks_collection import * from .runner import Runner
20.75
31
0.807229
from .hooks import Hook from .hooks_collection import * from .runner import Runner
true
true
f751d38c14f43d992b87902fd68a9970867e86a9
342
py
Python
portalocker_tests/conftest.py
lkindrat-xmos/portalocker
0e5da0568bdeb9efeffed1c66d167d83aa06735e
[ "PSF-2.0" ]
172
2015-02-26T07:32:30.000Z
2022-03-07T15:49:43.000Z
portalocker_tests/conftest.py
lkindrat-xmos/portalocker
0e5da0568bdeb9efeffed1c66d167d83aa06735e
[ "PSF-2.0" ]
71
2015-09-19T09:25:03.000Z
2022-03-11T07:41:48.000Z
portalocker_tests/conftest.py
lkindrat-xmos/portalocker
0e5da0568bdeb9efeffed1c66d167d83aa06735e
[ "PSF-2.0" ]
33
2015-05-06T23:41:44.000Z
2022-02-16T18:37:02.000Z
import py import logging import pytest logger = logging.getLogger(__name__) @pytest.fixture def tmpfile(tmpdir_factory): tmpdir = tmpdir_factory.mktemp('temp') filename = tmpdir.join('tmpfile') yield str(filename) try: filename.remove(ignore_errors=True) except (py.error.EBUSY, py.error....
19
45
0.701754
import py import logging import pytest logger = logging.getLogger(__name__) @pytest.fixture def tmpfile(tmpdir_factory): tmpdir = tmpdir_factory.mktemp('temp') filename = tmpdir.join('tmpfile') yield str(filename) try: filename.remove(ignore_errors=True) except (py.error.EBUSY, py.error....
true
true
f751d3a60b39dcea92107666186702d866c42654
33,690
py
Python
plag.py
reachwire/antiplagiarism
0ce16cca515262822e7621c4f5554cc354dd2874
[ "MIT" ]
null
null
null
plag.py
reachwire/antiplagiarism
0ce16cca515262822e7621c4f5554cc354dd2874
[ "MIT" ]
null
null
null
plag.py
reachwire/antiplagiarism
0ce16cca515262822e7621c4f5554cc354dd2874
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import fnmatch import fulltext import os from flask import Flask, request, render_template, redirect, url_for, send_from_directory, jsonify from werkzeug.utils import secure_filename from werkzeug import SharedDataMiddleware import re import math import time import json import shinglmethods imp...
52.640625
192
0.552657
import fnmatch import fulltext import os from flask import Flask, request, render_template, redirect, url_for, send_from_directory, jsonify from werkzeug.utils import secure_filename from werkzeug import SharedDataMiddleware import re import math import time import json import shinglmethods import shinglmethods_sorte...
true
true
f751d43a816ec601bc5fa84c7b9472b3a4d90154
54,301
py
Python
test/orm/test_merge.py
balabit-deps/balabit-os-7-sqlalchemy
3b20b55f46f258a11811bd8f3af8958393ee21a2
[ "MIT" ]
1
2018-04-02T18:41:52.000Z
2018-04-02T18:41:52.000Z
test/orm/test_merge.py
balabit-deps/balabit-os-7-sqlalchemy
3b20b55f46f258a11811bd8f3af8958393ee21a2
[ "MIT" ]
null
null
null
test/orm/test_merge.py
balabit-deps/balabit-os-7-sqlalchemy
3b20b55f46f258a11811bd8f3af8958393ee21a2
[ "MIT" ]
3
2017-09-26T13:59:24.000Z
2020-12-04T17:51:54.000Z
from sqlalchemy.testing import assert_raises_message import sqlalchemy as sa from sqlalchemy import Integer, PickleType, String, ForeignKey, Text import operator from sqlalchemy import testing from sqlalchemy.util import OrderedSet from sqlalchemy.orm import mapper, relationship, create_session, \ PropComparator, s...
32.989672
79
0.534392
from sqlalchemy.testing import assert_raises_message import sqlalchemy as sa from sqlalchemy import Integer, PickleType, String, ForeignKey, Text import operator from sqlalchemy import testing from sqlalchemy.util import OrderedSet from sqlalchemy.orm import mapper, relationship, create_session, \ PropComparator, s...
true
true
f751d520739a6801304f3bf5319e2f644e5758e1
4,251
py
Python
slider-agent/src/main/python/resource_management/core/resources/system.py
turningme/incubator-retired-slider
1d4f519d763210f46e327338be72efa99e65cb5d
[ "Apache-2.0" ]
60
2015-01-05T10:51:11.000Z
2018-12-15T03:48:09.000Z
slider-agent/src/main/python/resource_management/core/resources/system.py
turningme/incubator-retired-slider
1d4f519d763210f46e327338be72efa99e65cb5d
[ "Apache-2.0" ]
null
null
null
slider-agent/src/main/python/resource_management/core/resources/system.py
turningme/incubator-retired-slider
1d4f519d763210f46e327338be72efa99e65cb5d
[ "Apache-2.0" ]
87
2015-01-14T05:14:15.000Z
2018-12-25T14:14:56.000Z
#!/usr/bin/env python """ 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 "License");...
31.488889
105
0.733945
__all__ = ["File", "Directory", "Link", "Execute", "ExecuteScript", "Mount"] from resource_management.core.base import Resource, ForcedListArgument, ResourceArgument, BooleanArgument class File(Resource): action = ForcedListArgument(default="create") path = ResourceArgument(default=lambda obj: obj.name) back...
true
true
f751d75998209208bfac94e6c11e7a3bc2cbb330
2,403
py
Python
pymtl3/passes/backends/yosys/test/TranslationImport_closed_loop_component_test.py
kevinyuan/pymtl3
5949e6a4acc625c0ccbbb25be3af1d0db683df3c
[ "BSD-3-Clause" ]
152
2020-06-03T02:34:11.000Z
2022-03-30T04:16:45.000Z
pymtl3/passes/backends/yosys/test/TranslationImport_closed_loop_component_test.py
kevinyuan/pymtl3
5949e6a4acc625c0ccbbb25be3af1d0db683df3c
[ "BSD-3-Clause" ]
139
2019-05-29T00:37:09.000Z
2020-05-17T16:49:26.000Z
pymtl3/passes/backends/yosys/test/TranslationImport_closed_loop_component_test.py
kevinyuan/pymtl3
5949e6a4acc625c0ccbbb25be3af1d0db683df3c
[ "BSD-3-Clause" ]
22
2020-05-18T13:42:05.000Z
2022-03-11T08:37:51.000Z
#========================================================================= # TranslationImport_closed_loop_component_test.py #========================================================================= # Author : Peitian Pan # Date : June 6, 2019 """Closed-loop test cases for translation-import with component.""" impor...
37.546875
87
0.717437
import pytest from hypothesis import HealthCheck, given, reproduce_failure, settings from hypothesis import strategies as st from pymtl3.datatypes import Bits1, Bits16, Bits32, bitstruct, clog2, mk_bits from pymtl3.dsl import Component, InPort, Interface, OutPort, Wire, connect from pymtl3.passes.backends.verilog...
true
true
f751d76698e8ae306b996a273dc94e8ba599b637
260
py
Python
dunm_sandbox/myapp/migrations/0004_merge_20200502_0148.py
lorinkoz/django-unmigrate
8b5d887e4dbcaadf84b1e0d6899e57ee437ad794
[ "MIT" ]
65
2020-04-29T05:54:43.000Z
2021-11-03T15:13:50.000Z
dunm_sandbox/myapp/migrations/0004_merge_20200502_0148.py
lorinkoz/django-unmigrate
8b5d887e4dbcaadf84b1e0d6899e57ee437ad794
[ "MIT" ]
14
2020-04-29T05:55:49.000Z
2021-04-28T19:34:26.000Z
dunm_sandbox/myapp/migrations/0004_merge_20200502_0148.py
lorinkoz/django-unmigrate
8b5d887e4dbcaadf84b1e0d6899e57ee437ad794
[ "MIT" ]
4
2020-05-06T16:47:49.000Z
2020-09-04T08:23:40.000Z
# Generated by Django 3.0.5 on 2020-05-02 01:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("myapp", "0003_mymodel_is_paid"), ("myapp", "0003_mymodel_is_active"), ] operations = []
18.571429
47
0.65
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("myapp", "0003_mymodel_is_paid"), ("myapp", "0003_mymodel_is_active"), ] operations = []
true
true
f751d7d4d8375796799929aec1089f141c3457a1
864
py
Python
tests/test_calculations/base_test.py
vahndi/probability
6ddf88e6f3d947c96b879e426030f60eb5cb2d59
[ "MIT" ]
2
2020-02-21T00:47:03.000Z
2020-09-22T19:00:48.000Z
tests/test_calculations/base_test.py
vahndi/probability
6ddf88e6f3d947c96b879e426030f60eb5cb2d59
[ "MIT" ]
52
2020-01-16T16:05:08.000Z
2022-02-24T15:10:10.000Z
tests/test_calculations/base_test.py
vahndi/probability
6ddf88e6f3d947c96b879e426030f60eb5cb2d59
[ "MIT" ]
null
null
null
from unittest.case import TestCase from pandas import Series, DataFrame from probability.distributions import Beta, Dirichlet class BaseTest(TestCase): def setUp(self) -> None: self.b1 = Beta(700, 300) self.b2 = Beta(600, 400) self.b3 = Beta(500, 500) self.d1 = Dirichlet([500, ...
30.857143
62
0.555556
from unittest.case import TestCase from pandas import Series, DataFrame from probability.distributions import Beta, Dirichlet class BaseTest(TestCase): def setUp(self) -> None: self.b1 = Beta(700, 300) self.b2 = Beta(600, 400) self.b3 = Beta(500, 500) self.d1 = Dirichlet([500, ...
true
true
f751d7ed198ba4587c0b3d54ff3e284c87c58537
7,979
py
Python
tensorflow_probability/python/bijectors/affine_scalar_test.py
trainorpj/probability
944272707d352b12b91c419082fb3ec34b83b494
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/affine_scalar_test.py
trainorpj/probability
944272707d352b12b91c419082fb3ec34b83b494
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/affine_scalar_test.py
trainorpj/probability
944272707d352b12b91c419082fb3ec34b83b494
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37.995238
95
0.676651
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf from tensorflow_probability.python import bijectors as tfb from tensorflow_probability.python.bijectors i...
true
true
f751d8127d7906b59e82cc5649a3736e76034c2c
19,905
py
Python
opensfm/exif.py
ixonos/OpenSfM
f20519f770db8161fefca6f40ac9198daa7b832e
[ "BSD-2-Clause" ]
null
null
null
opensfm/exif.py
ixonos/OpenSfM
f20519f770db8161fefca6f40ac9198daa7b832e
[ "BSD-2-Clause" ]
null
null
null
opensfm/exif.py
ixonos/OpenSfM
f20519f770db8161fefca6f40ac9198daa7b832e
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division import datetime import exifread import logging import xmltodict as x2d from codecs import encode, decode from six import string_types from opensfm.sensors import sensor_data from opensfm import types from opensfm import pygeometry logger = logging.getLogger(__name__) inch_in_mm = 2...
35.418149
98
0.555991
from __future__ import division import datetime import exifread import logging import xmltodict as x2d from codecs import encode, decode from six import string_types from opensfm.sensors import sensor_data from opensfm import types from opensfm import pygeometry logger = logging.getLogger(__name__) inch_in_mm = 2...
true
true
f751d87eaf1462ff619bf215f5c8932254aa6828
1,224
py
Python
rl_safety_algorithms/algs/cpo/defaults.py
liuzuxin/RL-Safety-Algorithms
2575225b1ea8ce12e1e13f7a81f8dda7b4189708
[ "MIT" ]
4
2021-09-05T17:49:02.000Z
2021-12-22T03:13:39.000Z
rl_safety_algorithms/algs/cpo/defaults.py
liuzuxin/RL-Safety-Algorithms
2575225b1ea8ce12e1e13f7a81f8dda7b4189708
[ "MIT" ]
null
null
null
rl_safety_algorithms/algs/cpo/defaults.py
liuzuxin/RL-Safety-Algorithms
2575225b1ea8ce12e1e13f7a81f8dda7b4189708
[ "MIT" ]
2
2021-09-05T17:49:07.000Z
2021-11-30T17:36:30.000Z
def defaults(): return dict( actor='mlp', ac_kwargs={ 'pi': {'hidden_sizes': (64, 64), 'activation': 'tanh'}, 'val': {'hidden_sizes': (64, 64), 'activation': 'tanh'} }, adv_estimation_method='gae', epochs=300, # ...
27.818182
74
0.594771
def defaults(): return dict( actor='mlp', ac_kwargs={ 'pi': {'hidden_sizes': (64, 64), 'activation': 'tanh'}, 'val': {'hidden_sizes': (64, 64), 'activation': 'tanh'} }, adv_estimation_method='gae', epochs=300, ...
true
true
f751d8f243599cf76fac7c704ca7bde9d32f412f
5,138
py
Python
src/command_modules/azure-cli-cdn/azure/cli/command_modules/cdn/custom.py
diberry/azure-cli
302999245cbb13b890b0a74f03443c577bd4bfae
[ "MIT" ]
1
2019-03-30T20:49:32.000Z
2019-03-30T20:49:32.000Z
src/command_modules/azure-cli-cdn/azure/cli/command_modules/cdn/custom.py
diberry/azure-cli
302999245cbb13b890b0a74f03443c577bd4bfae
[ "MIT" ]
4
2018-08-08T20:01:17.000Z
2018-09-17T15:20:06.000Z
src/command_modules/azure-cli-cdn/azure/cli/command_modules/cdn/custom.py
diberry/azure-cli
302999245cbb13b890b0a74f03443c577bd4bfae
[ "MIT" ]
1
2018-04-14T01:46:00.000Z
2018-04-14T01:46:00.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
41.435484
107
0.637602
from azure.mgmt.cdn.models import (Endpoint, SkuName, EndpointUpdateParameters, ProfileUpdateParameters) def default_content_types(): return ["text/plain", "text/html", "text/css", "text/javascript", "application/x-javascript"...
true
true
f751d94b52d94298573612d75675d0c143c5e330
1,744
py
Python
run_qplib_problems.py
BerkeleyAutomation/rlqp_benchmarks
5c79e870c4bd697383f66f5dff26aea29dc1ebfa
[ "Apache-2.0" ]
49
2017-11-18T11:16:44.000Z
2021-05-05T12:48:33.000Z
run_qplib_problems.py
leiyubiao/osqp_benchmarks
5c79e870c4bd697383f66f5dff26aea29dc1ebfa
[ "Apache-2.0" ]
5
2017-11-18T20:10:25.000Z
2020-09-27T09:06:58.000Z
run_qplib_problems.py
leiyubiao/osqp_benchmarks
5c79e870c4bd697383f66f5dff26aea29dc1ebfa
[ "Apache-2.0" ]
19
2017-11-18T20:13:31.000Z
2021-05-06T01:27:31.000Z
''' Run QPLIB problems for the OSQP paper This code tests the solvers: - OSQP - GUROBI - MOSEK ''' from qplib_problems.qplib_problem import QPLIBRunner import solvers.solvers as s from utils.benchmark import compute_stats_info import os import argparse parser = argparse.ArgumentParser(description='QPLIB...
28.590164
85
0.696674
from qplib_problems.qplib_problem import QPLIBRunner import solvers.solvers as s from utils.benchmark import compute_stats_info import os import argparse parser = argparse.ArgumentParser(description='QPLIB Runner') parser.add_argument('--high_accuracy', help='Test with high accuracy', default=False, ...
true
true
f751d98d4ead7e46380170ae61425dc65e319559
545
py
Python
simple-backend/manage.py
mylibrar/stave
43145015253d0577dfc757419ad8b4fa06a04042
[ "Apache-2.0" ]
35
2020-01-29T04:21:10.000Z
2021-12-13T01:44:28.000Z
simple-backend/manage.py
mylibrar/stave
43145015253d0577dfc757419ad8b4fa06a04042
[ "Apache-2.0" ]
86
2020-04-17T16:36:13.000Z
2022-03-25T22:51:34.000Z
simple-backend/manage.py
mylibrar/stave
43145015253d0577dfc757419ad8b4fa06a04042
[ "Apache-2.0" ]
18
2020-02-04T17:40:02.000Z
2021-06-17T07:11:42.000Z
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'stave_backend.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django...
34.0625
77
0.689908
import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'stave_backend.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's i...
true
true
f751da9345be83cf17dc3c849a90118321dc9cf1
29,336
py
Python
tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_feature_filter.py
yuanqingsunny/recommenders-addons
7fe0e213ff59fe3528e7c1877a3885cc7ca355d4
[ "Apache-2.0" ]
null
null
null
tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_feature_filter.py
yuanqingsunny/recommenders-addons
7fe0e213ff59fe3528e7c1877a3885cc7ca355d4
[ "Apache-2.0" ]
null
null
null
tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_feature_filter.py
yuanqingsunny/recommenders-addons
7fe0e213ff59fe3528e7c1877a3885cc7ca355d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.900629
98
0.668496
from tensorflow_recommenders_addons import dynamic_embedding from tensorflow_recommenders_addons.dynamic_embedding.python.ops import dynamic_embedding_variable from tensorflow.python.framework import constant_op from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops f...
true
true
f751dac6f896b9252d4175de0a968fb629b7091b
14,849
py
Python
UnityEngine/UI/Scrollbar/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/UI/Scrollbar/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/UI/Scrollbar/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from typing import overload from UdonPie import System from UdonPie import UnityEngine from UdonPie.Undefined import * class Scrollbar: def __new__(cls, arg1=None): ''' :returns: Scrollbar :rtype: UnityEngine.UI.Scrollbar ''' pass @staticmethod def op_Implicit(arg...
20.120596
77
0.530675
from typing import overload from UdonPie import System from UdonPie import UnityEngine from UdonPie.Undefined import * class Scrollbar: def __new__(cls, arg1=None): pass @staticmethod def op_Implicit(arg1): pass @staticmethod def op_Equality(arg1, arg2): pass @stati...
true
true
f751daddc82403380c8fcd3586e4812f41cf7acd
5,888
py
Python
global_vars.py
danielbi-ETHZ/THM-Econ
1b668a523efbd7f18f0d833d0708540e4fe66602
[ "MIT" ]
null
null
null
global_vars.py
danielbi-ETHZ/THM-Econ
1b668a523efbd7f18f0d833d0708540e4fe66602
[ "MIT" ]
null
null
null
global_vars.py
danielbi-ETHZ/THM-Econ
1b668a523efbd7f18f0d833d0708540e4fe66602
[ "MIT" ]
null
null
null
################################################################################ ######### © 2020 ETH Zurich, Institute of Geophysics, Daniel T. Birdsell ####### ################################################################################ ### Define global parameters using units of J, kg, C, s, m ### The notation ...
60.081633
80
0.579314
true
true
f751dcb9183dbc67ca493b16cd04003589c2ef3b
17,161
py
Python
virtual/bin/lib/bcc_chef_databags.py
ajaytikoo/chef-bcpc
dee00d3f96eddcb4972b151e6c31d6ecdb819796
[ "Apache-2.0" ]
null
null
null
virtual/bin/lib/bcc_chef_databags.py
ajaytikoo/chef-bcpc
dee00d3f96eddcb4972b151e6c31d6ecdb819796
[ "Apache-2.0" ]
null
null
null
virtual/bin/lib/bcc_chef_databags.py
ajaytikoo/chef-bcpc
dee00d3f96eddcb4972b151e6c31d6ecdb819796
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, Bloomberg Finance L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in wri...
34.59879
93
0.460404
import base64 import os import random import secrets import string import struct import subprocess import time import uuid import yaml from builtins import FileExistsError from Crypto.PublicKey import RSA from OpenSSL import crypto class APISSL: def __init__(self): self.__key = cr...
true
true
f751dd848e989d79b177f4d0af80bb5294fa2165
31,580
py
Python
neutron/tests/functional/agent/l3/framework.py
stackhpc/neutron
df94641b43964834ba14c69eb4fb17cc45349117
[ "Apache-2.0" ]
null
null
null
neutron/tests/functional/agent/l3/framework.py
stackhpc/neutron
df94641b43964834ba14c69eb4fb17cc45349117
[ "Apache-2.0" ]
null
null
null
neutron/tests/functional/agent/l3/framework.py
stackhpc/neutron
df94641b43964834ba14c69eb4fb17cc45349117
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
43.379121
79
0.632806
import copy import functools import os from unittest import mock import netaddr from neutron_lib import constants from oslo_config import cfg from oslo_log import log as logging from oslo_utils import uuidutils import testtools from neutron.agent.common import ovs_lib from neutron.agent.l3 import agent...
true
true
f751ddcec2c25022e7d861d883d733774c8b1642
7,422
py
Python
concrete/cfg/anchors/cm_rcnn_10164_a10.py
forestriveral/mmdetection-for-concrete
9e6573947b3541003e796190bad207f6d9f002de
[ "Apache-2.0" ]
null
null
null
concrete/cfg/anchors/cm_rcnn_10164_a10.py
forestriveral/mmdetection-for-concrete
9e6573947b3541003e796190bad207f6d9f002de
[ "Apache-2.0" ]
null
null
null
concrete/cfg/anchors/cm_rcnn_10164_a10.py
forestriveral/mmdetection-for-concrete
9e6573947b3541003e796190bad207f6d9f002de
[ "Apache-2.0" ]
1
2021-08-10T09:07:01.000Z
2021-08-10T09:07:01.000Z
# model settings model = dict( type='CascadeRCNN', num_stages=3, pretrained='open-mmlab://resnext101_64x4d', backbone=dict( type='ResNeXt', depth=101, groups=64, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='...
30.418033
95
0.540151
model = dict( type='CascadeRCNN', num_stages=3, pretrained='open-mmlab://resnext101_64x4d', backbone=dict( type='ResNeXt', depth=101, groups=64, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='pytorch'), n...
true
true
f751de300191f6d628ecfc3c50bcb798423005c1
386
py
Python
ch_09/task6.py
berchev/python_learning
5b99065cade53c64b4ede3d0e583c58573ca654c
[ "MIT" ]
null
null
null
ch_09/task6.py
berchev/python_learning
5b99065cade53c64b4ede3d0e583c58573ca654c
[ "MIT" ]
null
null
null
ch_09/task6.py
berchev/python_learning
5b99065cade53c64b4ede3d0e583c58573ca654c
[ "MIT" ]
null
null
null
#!/usr/bin/env python text = "" while text.lower() != "quit": text = input("Please enter a chemical formula (or 'quit' to exit): ") if text == "quit": print("...exiting program") elif text == "H2O": print("Water") elif text == "NH3": print("Ammonia") elif text == "CH4": ...
22.705882
73
0.531088
text = "" while text.lower() != "quit": text = input("Please enter a chemical formula (or 'quit' to exit): ") if text == "quit": print("...exiting program") elif text == "H2O": print("Water") elif text == "NH3": print("Ammonia") elif text == "CH4": print("Methane"...
true
true
f751e201cba3594c0c7fdc422f477b223d6e3fa1
3,087
py
Python
leo/plugins/chapter_hoist.py
thomasbuttler/leo-editor
c1bddc31313b7788f0d6583dcb4ab75db73e9a09
[ "MIT" ]
1,550
2015-01-14T16:30:37.000Z
2022-03-31T08:55:58.000Z
leo/plugins/chapter_hoist.py
thomasbuttler/leo-editor
c1bddc31313b7788f0d6583dcb4ab75db73e9a09
[ "MIT" ]
2,009
2015-01-13T16:28:52.000Z
2022-03-31T18:21:48.000Z
leo/plugins/chapter_hoist.py
thomasbuttler/leo-editor
c1bddc31313b7788f0d6583dcb4ab75db73e9a09
[ "MIT" ]
200
2015-01-05T15:07:41.000Z
2022-03-07T17:05:01.000Z
#@+leo-ver=5-thin #@+node:ekr.20060328125925: * @file ../plugins/chapter_hoist.py #@+<< docstring >> #@+node:ekr.20060328125925.1: ** << docstring >> """ Creates hoist buttons. This plugin puts two buttons in the icon area: a button called 'Save Hoist' and a button called 'Dehoist'. The 'Save Hoist' button hoists the ...
31.181818
80
0.634597
from leo.core import leoGlobals as g from leo.plugins.mod_scripting import scriptingController def init (): g.registerHandler(('new','open2'),onCreate) g.plugin_signon(__name__) return True def onCreate (tag, keys): c = keys.get('c') if c: sc = scriptingController(c) ...
true
true
f751e2936b69634ba0d3f39b81e6cd56b4294d47
8,550
py
Python
tests/modeling/test_optimizer.py
sstsai-adl/d2go
6cff773797b14698043589afe57ea67cd76286f9
[ "Apache-2.0" ]
687
2021-03-03T07:50:15.000Z
2022-03-25T19:31:57.000Z
tests/modeling/test_optimizer.py
sstsai-adl/d2go
6cff773797b14698043589afe57ea67cd76286f9
[ "Apache-2.0" ]
193
2021-03-03T17:15:57.000Z
2022-03-31T03:13:47.000Z
tests/modeling/test_optimizer.py
sstsai-adl/d2go
6cff773797b14698043589afe57ea67cd76286f9
[ "Apache-2.0" ]
90
2021-03-03T16:08:36.000Z
2022-03-30T23:42:19.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import random import unittest import d2go.runner.default_runner as default_runner import torch from d2go.optimizer import ( build_optimizer_mapper, ) from d2go.utils.testing import helper class TestArch(torch.nn.Modul...
33.139535
84
0.586199
import random import unittest import d2go.runner.default_runner as default_runner import torch from d2go.optimizer import ( build_optimizer_mapper, ) from d2go.utils.testing import helper class TestArch(torch.nn.Module): def __init__(self): super().__init__() self.conv = torch.nn.Conv2d(3...
true
true
f751e32877d0f32614921bd827efa45ac594f0f9
1,514
py
Python
setup.py
tomkcook/erlang_py
ecce9fffbd050b47aa0db65293a7671c1ef49370
[ "MIT" ]
30
2016-02-07T02:27:50.000Z
2022-01-01T22:59:39.000Z
setup.py
tomkcook/erlang_py
ecce9fffbd050b47aa0db65293a7671c1ef49370
[ "MIT" ]
7
2016-07-26T17:50:55.000Z
2022-02-20T03:39:21.000Z
setup.py
tomkcook/erlang_py
ecce9fffbd050b47aa0db65293a7671c1ef49370
[ "MIT" ]
10
2016-07-26T08:09:51.000Z
2022-02-10T16:37:41.000Z
#-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*- # ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et: try: from setuptools import setup, Command except ImportError: from distutils.core import setup, Command class PyTest(Command): user_options = [] def initialize_options(s...
32.212766
80
0.647292
try: from setuptools import setup, Command except ImportError: from distutils.core import setup, Command class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import tests.erlang_tests impor...
true
true
f751e387b54f8926ee5c189503302bf77f699d40
1,223
py
Python
app/firmware_analysis/views.py
dnr6419/iot_project
7385eb3262a97b33faf5523fbafc0c27bb641be6
[ "MIT" ]
null
null
null
app/firmware_analysis/views.py
dnr6419/iot_project
7385eb3262a97b33faf5523fbafc0c27bb641be6
[ "MIT" ]
null
null
null
app/firmware_analysis/views.py
dnr6419/iot_project
7385eb3262a97b33faf5523fbafc0c27bb641be6
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse from django.views.generic import ListView, TemplateView, View from django.views.generic.edit import FormView from django.core.files.storage import FileSystemStorage from .forms import UploadFirmwareForm from .utils import * # / , main ...
33.054054
64
0.717907
from django.shortcuts import render, redirect from django.http import HttpResponse from django.views.generic import ListView, TemplateView, View from django.views.generic.edit import FormView from django.core.files.storage import FileSystemStorage from .forms import UploadFirmwareForm from .utils import * class Main...
true
true
f751e6818a0d116a67bb8066a9e265820d31b99a
226
py
Python
lang/Python/integer-comparison-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/integer-comparison-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/integer-comparison-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
#!/usr/bin/env python a = eval(input('Enter value of a: ')) b = eval(input('Enter value of b: ')) if a < b: print('a is less than b') elif a > b: print('a is greater than b') elif a == b: print('a is equal to b')
20.545455
37
0.575221
a = eval(input('Enter value of a: ')) b = eval(input('Enter value of b: ')) if a < b: print('a is less than b') elif a > b: print('a is greater than b') elif a == b: print('a is equal to b')
true
true
f751e6bbd8e3099b2c4ff11957323f232285b06b
77,931
py
Python
lib/endpoints-1.0/endpoints/api_config.py
airamrguez/appengine-1.8.0-golang-1.4.3-os-x-64bit
c2034c8ed4d218e1f85831df9bc986285ebf8661
[ "Apache-2.0" ]
null
null
null
lib/endpoints-1.0/endpoints/api_config.py
airamrguez/appengine-1.8.0-golang-1.4.3-os-x-64bit
c2034c8ed4d218e1f85831df9bc986285ebf8661
[ "Apache-2.0" ]
null
null
null
lib/endpoints-1.0/endpoints/api_config.py
airamrguez/appengine-1.8.0-golang-1.4.3-os-x-64bit
c2034c8ed4d218e1f85831df9bc986285ebf8661
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
35.536252
80
0.695731
try: import json except ImportError: import simplejson as json import logging import re from endpoints import message_parser from endpoints import users_id_token from protorpc import message_types from protorpc import messages from protorpc import remote from protorpc import util try: from...
true
true
f751e7669d04a5b020b2241ac1ba9c9a020113f8
11,511
py
Python
core.py
schreddies/DumpsterDiver
80424bbe47ecb904e0fbd26acc013234e6eb7f97
[ "MIT" ]
null
null
null
core.py
schreddies/DumpsterDiver
80424bbe47ecb904e0fbd26acc013234e6eb7f97
[ "MIT" ]
null
null
null
core.py
schreddies/DumpsterDiver
80424bbe47ecb904e0fbd26acc013234e6eb7f97
[ "MIT" ]
null
null
null
#!/bin/env python import advancedSearch import fnmatch import json import logging import math import mmap import multiprocessing import os import passwordmeter import re import tarfile import time import yaml import zipfile import zlib from termcolor import colored CONFIG = yaml.safe_load(open('config.yaml')) BASE64_...
30.292105
112
0.567197
import advancedSearch import fnmatch import json import logging import math import mmap import multiprocessing import os import passwordmeter import re import tarfile import time import yaml import zipfile import zlib from termcolor import colored CONFIG = yaml.safe_load(open('config.yaml')) BASE64_CHARS = CONFIG['b...
true
true
f751e820a3f6a0fb6c34b9a4f5f4ca9f80fb1508
1,888
py
Python
aiida/backends/tests/cmdline/commands/test_status.py
lekah/aiida_core
54b22a221657b47044483dc9d4f51788ce8ab6b2
[ "BSD-2-Clause" ]
1
2019-07-31T04:08:13.000Z
2019-07-31T04:08:13.000Z
aiida/backends/tests/cmdline/commands/test_status.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/tests/cmdline/commands/test_status.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
44.952381
102
0.608051
true
true
f751e9e08d91c623738ab4692cac812e079f14c6
1,743
py
Python
salt/pillar/cobbler.py
bruce-one/salt
0715f6c29a8e19c3cf7a67ad41aff84801c9f5ae
[ "Apache-2.0" ]
1
2016-04-20T08:18:07.000Z
2016-04-20T08:18:07.000Z
salt/pillar/cobbler.py
quantonganh/salt
8f1df678573153970c08b33978fe185d9ed1b71c
[ "Apache-2.0" ]
null
null
null
salt/pillar/cobbler.py
quantonganh/salt
8f1df678573153970c08b33978fe185d9ed1b71c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' A module to pull data from Cobbler via its API into the Pillar dictionary Configuring the Cobbler ext_pillar ================================== The same cobbler.* parameters are used for both the Cobbler tops and Cobbler pillar modules. .. code-block:: yaml ext_pillar: - cobbler: ...
25.26087
87
0.635112
import logging import xmlrpclib __opts__ = {'cobbler.url': 'http://localhost/cobbler_api', 'cobbler.user': None, 'cobbler.password': None } log = logging.getLogger(__name__) def ext_pillar(minion_id, pillar, key=None, only=()): url = __opts__['cobbler.url'] user = __...
true
true
f751ea5bf2bf774b28cadf668164dbc19f084b66
1,109
py
Python
run_FFT_analyzer.py
cerkut/Realtime_PyAudio_FFT
f0da7e65cd64b2667b4135bffd4886b2902c34b8
[ "MIT" ]
null
null
null
run_FFT_analyzer.py
cerkut/Realtime_PyAudio_FFT
f0da7e65cd64b2667b4135bffd4886b2902c34b8
[ "MIT" ]
null
null
null
run_FFT_analyzer.py
cerkut/Realtime_PyAudio_FFT
f0da7e65cd64b2667b4135bffd4886b2902c34b8
[ "MIT" ]
null
null
null
import time from src.stream_analyzer import Stream_Analyzer ear = Stream_Analyzer( device = None, # Manually play with this (int) if you don't see anything rate = None, # Audio samplerate, None uses the default source settings FFT_window_siz...
52.809524
102
0.596934
import time from src.stream_analyzer import Stream_Analyzer ear = Stream_Analyzer( device = None, rate = None, # Audio samplerate, None uses the default source settings FFT_window_size_ms = 40, # Window size used for the FFT transform ...
true
true
f751eb314feb83c9cc28878f0af8192a32d0e2ac
828
py
Python
docs/Advanced_development/zh/QuecPythonSub/code/i2c_base.py
quecpython/Community-document
64e3c0c76df8c8a44dcfdbc2a813fbd5578c8740
[ "MIT" ]
3
2021-04-03T05:08:32.000Z
2021-07-20T08:54:38.000Z
docs/Advanced_development/zh/QuecPythonSub/code/i2c_base.py
quecpython/Community-document
64e3c0c76df8c8a44dcfdbc2a813fbd5578c8740
[ "MIT" ]
1
2021-03-09T06:36:49.000Z
2021-03-09T06:36:49.000Z
docs/Advanced_development/zh/QuecPythonSub/code/i2c_base.py
quecpython/Community-document
64e3c0c76df8c8a44dcfdbc2a813fbd5578c8740
[ "MIT" ]
10
2021-03-09T03:02:24.000Z
2021-07-16T02:53:05.000Z
from machine import I2C def test_i2c(): i2c_dev = I2C(I2C.I2C1, I2C.STANDARD_MODE) addres = 0x19 LIS2DH12_WHO_AM_I = 0x0F # 板载三轴加速度传感器 身份寄存器 r_data = bytearray([0x00]) # 存储数据 i2c_dev.read(addres, bytearray(LIS2DH12_WHO_AM_I), 1, r_data, 1, 1) print("read data lis2dh12 who_am_i reg 0x{0:02x}"...
31.846154
78
0.660628
from machine import I2C def test_i2c(): i2c_dev = I2C(I2C.I2C1, I2C.STANDARD_MODE) addres = 0x19 LIS2DH12_WHO_AM_I = 0x0F r_data = bytearray([0x00]) i2c_dev.read(addres, bytearray(LIS2DH12_WHO_AM_I), 1, r_data, 1, 1) print("read data lis2dh12 who_am_i reg 0x{0:02x}".format(list(r_data)[0])...
true
true
f751ebb6373c9df986163fbe6ccc575c9d1be5ab
4,322
py
Python
scripts/python/exposure.py
oliviernocent/AEROLAB
4fd1077c5799b6c6a6b885e7baccf16925d3a36e
[ "MIT" ]
null
null
null
scripts/python/exposure.py
oliviernocent/AEROLAB
4fd1077c5799b6c6a6b885e7baccf16925d3a36e
[ "MIT" ]
null
null
null
scripts/python/exposure.py
oliviernocent/AEROLAB
4fd1077c5799b6c6a6b885e7baccf16925d3a36e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' This script computes the max mean mass concentration of several pollutants from a CSV file containing the following columns: - 'DateTime' : ISO 8601 date and time - 'Timestamp': seconds elapsed since 01/01/1970 - 'PM10 (µg/m3)' (optional) - 'PM2.5 (µg/...
33.503876
125
0.589079
__author__ = "Olivier Nocent and Quentin Martinet" __copyright__ = "Copyright 2021, Université de Reims Champagne Ardenne" __license__ = "MIT" __version__ = "0.0.1" __maintainer__ = "Olivier Nocent" __email__ = "olivier.nocent@univ-reims.fr" __status__ = "Experimental" from os import path import...
true
true
f751ebeed7aa81709ab8605a0b0a5dd92814f4f5
4,002
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Aerodynamics/Common/Fidelity_Zero/Lift/generate_wing_wake_grid.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Aerodynamics/Common/Fidelity_Zero/Lift/generate_wing_wake_grid.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Aerodynamics/Common/Fidelity_Zero/Lift/generate_wing_wake_grid.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Methods-Aerodynamics-Common-Fidelity_Zero-Lift # generate_wing_wake_grid.py # # Created: April 2021, R. Erhard # Modified: # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- import numpy as np impo...
36.381818
98
0.57996
E.Core import Data def generate_wing_wake_grid(geometry, H, L, hf, x_plane, Nzo=20, Nzf=35, Nyo=20, plot_grid=False): span = geometry.wings.main_wing.spans.projected half_span = span/2 VD = geometry.vortex_distribution breaks = VD.chordwise_breaks z_bot = -H*half_...
true
true
f751eda8e8231eaaae0b2737447f638a670e2a66
27
py
Python
vc/service/helper/midas/__init__.py
very-meanly/vc
41f63e8a8b159f3a49430bbee6872162de060901
[ "MIT" ]
null
null
null
vc/service/helper/midas/__init__.py
very-meanly/vc
41f63e8a8b159f3a49430bbee6872162de060901
[ "MIT" ]
null
null
null
vc/service/helper/midas/__init__.py
very-meanly/vc
41f63e8a8b159f3a49430bbee6872162de060901
[ "MIT" ]
null
null
null
from .run import run_depth
13.5
26
0.814815
from .run import run_depth
true
true
f751edb3d34fd7c836f5d4166ba01bf8b7ff0aad
841
py
Python
tests/integration/test_row.py
opus49/py3odb
79a4abceacd124cd0c63441f65c40b41afb3216b
[ "MIT" ]
1
2019-12-12T04:42:06.000Z
2019-12-12T04:42:06.000Z
tests/integration/test_row.py
opus49/py3odb
79a4abceacd124cd0c63441f65c40b41afb3216b
[ "MIT" ]
6
2019-09-26T20:48:10.000Z
2020-11-20T02:52:07.000Z
tests/integration/test_row.py
opus49/py3odb
79a4abceacd124cd0c63441f65c40b41afb3216b
[ "MIT" ]
1
2019-10-09T20:19:13.000Z
2019-10-09T20:19:13.000Z
"""Integration test for Row object.""" from ..context import py3odb def test_row(sample_odb): """Test the iteration capability of the Row object on real data.""" with py3odb.Reader(sample_odb, "SELECT varno,lat,lon,obsvalue FROM <odb>") as odb_reader: for row in odb_reader: assert len(row)...
36.565217
93
0.49346
from ..context import py3odb def test_row(sample_odb): with py3odb.Reader(sample_odb, "SELECT varno,lat,lon,obsvalue FROM <odb>") as odb_reader: for row in odb_reader: assert len(row) == 4 assert repr(row) == \ "Row({'varno@body': 162, 'lat@hdr': -74.678, " \ ...
true
true
f751eee745f9cf040ff0cab3a77037f01cdbd921
88
py
Python
common_helper_encoder/__init__.py
mass-project/common_helper_encoder
ff3e6aeebe0d161b88f363a3afeb2d5b748a5ecc
[ "MIT" ]
null
null
null
common_helper_encoder/__init__.py
mass-project/common_helper_encoder
ff3e6aeebe0d161b88f363a3afeb2d5b748a5ecc
[ "MIT" ]
null
null
null
common_helper_encoder/__init__.py
mass-project/common_helper_encoder
ff3e6aeebe0d161b88f363a3afeb2d5b748a5ecc
[ "MIT" ]
null
null
null
from .json_encoder import ReportEncoder __all__ = [ 'ReportEncoder', ]
14.666667
39
0.625
from .json_encoder import ReportEncoder __all__ = [ 'ReportEncoder', ]
true
true
f751ef25899a8aab7d53a2a17eaf49ecd7be72c7
19,427
py
Python
API/gerrit_api.py
pitchdarkdata/InfluxDays2021_Demo
d5625566cefd983203983e158f3325cfb2c16029
[ "MIT" ]
null
null
null
API/gerrit_api.py
pitchdarkdata/InfluxDays2021_Demo
d5625566cefd983203983e158f3325cfb2c16029
[ "MIT" ]
null
null
null
API/gerrit_api.py
pitchdarkdata/InfluxDays2021_Demo
d5625566cefd983203983e158f3325cfb2c16029
[ "MIT" ]
null
null
null
""" This Module interacts with Gerrit and retrieves Data from Gerrit """ import os import json import logging import argparse import pandas as pd from datetime import datetime, timedelta from json.decoder import JSONDecodeError from urllib.parse import urlunsplit, urlencode from typing import Tuple, Union try: fro...
50.723238
127
0.646111
import os import json import logging import argparse import pandas as pd from datetime import datetime, timedelta from json.decoder import JSONDecodeError from urllib.parse import urlunsplit, urlencode from typing import Tuple, Union try: from requests import __version__, Session, adapters, exceptions, urllib3, st...
true
true
f751efd93b05321928c63c22bf25e81d1477b804
3,101
py
Python
daemon/process/settings/merge_settings.py
jignatius/Dobby
1de36b7e4442b3c10bccb881907fd07368dd463f
[ "Apache-2.0" ]
9
2020-07-17T15:45:29.000Z
2022-01-17T11:17:22.000Z
daemon/process/settings/merge_settings.py
jignatius/Dobby
1de36b7e4442b3c10bccb881907fd07368dd463f
[ "Apache-2.0" ]
63
2020-06-18T07:57:45.000Z
2022-03-25T12:52:50.000Z
daemon/process/settings/merge_settings.py
jignatius/Dobby
1de36b7e4442b3c10bccb881907fd07368dd463f
[ "Apache-2.0" ]
20
2020-07-20T09:51:15.000Z
2022-03-24T09:19:45.000Z
# If not stated otherwise in this file or this component's LICENSE file the # following copyright and licenses apply: # # Copyright 2021 Sky UK # # 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...
29.254717
83
0.653338
# following copyright and licenses apply: # # Copyright 2021 Sky UK # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
true
true
f751f1381128f231a7e81314c30a877333ddd412
590
py
Python
returnpath/__init__.py
trondhindenes/docker-catchallapi
fec41c7a7648d12678c522bc3feb0879237bc278
[ "MIT" ]
null
null
null
returnpath/__init__.py
trondhindenes/docker-catchallapi
fec41c7a7648d12678c522bc3feb0879237bc278
[ "MIT" ]
null
null
null
returnpath/__init__.py
trondhindenes/docker-catchallapi
fec41c7a7648d12678c522bc3feb0879237bc278
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Api from flask_cors import CORS from returnpath.config_helper import ConfigHelper import sys import returnpath.log this_path = sys.path[0] app = Flask(__name__) app.url_map.strict_slashes = False CORS(app) config = ConfigHelper.get_config_path('config.yml') appconfi...
24.583333
101
0.801695
from flask import Flask from flask_restful import Api from flask_cors import CORS from returnpath.config_helper import ConfigHelper import sys import returnpath.log this_path = sys.path[0] app = Flask(__name__) app.url_map.strict_slashes = False CORS(app) config = ConfigHelper.get_config_path('config.yml') appconfi...
true
true
f751f3032aa60f735621120caa8aacc42125bdcd
19,240
py
Python
python/examples/snippets/__init__.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
1
2021-04-05T15:01:23.000Z
2021-04-05T15:01:23.000Z
python/examples/snippets/__init__.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
null
null
null
python/examples/snippets/__init__.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
1
2021-06-10T04:27:19.000Z
2021-06-10T04:27:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import re import codecs from PySide2.QtWidgets import (QLineEdit, QPushButton, QApplication, QTextEdit, QWidget, QVBoxLayout, QHBoxLayout, QDialog, QFileSystemModel, QTreeView, QLabel, QSplitter, QInputDialog, QMessageBox, QHeaderView, QMenu, ...
43.235955
149
0.659148
import sys import os import re import codecs from PySide2.QtWidgets import (QLineEdit, QPushButton, QApplication, QTextEdit, QWidget, QVBoxLayout, QHBoxLayout, QDialog, QFileSystemModel, QTreeView, QLabel, QSplitter, QInputDialog, QMessageBox, QHeaderView, QMenu, QAction, QKeySequenceEdit, QPlainTextEd...
true
true
f751f381137e53e40be0138d866c942bd38b56c9
10,098
py
Python
cogdl/models/nn/lightgcn.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
1,072
2019-08-02T05:46:21.000Z
2022-03-31T07:51:53.000Z
cogdl/models/nn/lightgcn.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
96
2019-08-05T17:27:22.000Z
2022-03-03T08:36:57.000Z
cogdl/models/nn/lightgcn.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
299
2019-08-08T07:33:10.000Z
2022-03-31T09:30:07.000Z
""" from from https://github.com/huangtinglin/MixGCF Created on October 1, 2020 @author: Tinglin Huang (huangtinglin@outlook.com) """ import torch import torch.nn as nn from cogdl.models import BaseModel, register_model class GraphConv(nn.Module): """ Graph Convolutional Network """ def __init__(s...
36.989011
120
0.610616
import torch import torch.nn as nn from cogdl.models import BaseModel, register_model class GraphConv(nn.Module): def __init__(self, n_hops, n_users, interact_mat, edge_dropout_rate=0.5, mess_dropout_rate=0.1): super(GraphConv, self).__init__() self.interact_mat = interact_mat self.n_us...
true
true
f751f48919645a89b624b006fd2227c19611e31e
2,583
py
Python
setup.py
maoxingda/dbt-core
d5d16f01f4d18619ec4200728860dc64f5ce70c9
[ "Apache-2.0" ]
null
null
null
setup.py
maoxingda/dbt-core
d5d16f01f4d18619ec4200728860dc64f5ce70c9
[ "Apache-2.0" ]
null
null
null
setup.py
maoxingda/dbt-core
d5d16f01f4d18619ec4200728860dc64f5ce70c9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if 'sdist' not in sys.argv: print('') print('As of v1.0.0, `pip install dbt` is no longer supported.') print('Instead, please use one of the following.') print('') print('**To use dbt with your specific database, platform, or query engine:**') print('...
30.388235
90
0.652729
import os import sys if 'sdist' not in sys.argv: print('') print('As of v1.0.0, `pip install dbt` is no longer supported.') print('Instead, please use one of the following.') print('') print('**To use dbt with your specific database, platform, or query engine:**') print('') print(' pip...
true
true
f751f549655353ec5d37344c1567c2eb88340d0c
28,933
py
Python
src/transformersX/models/promptbert/modeling_promptbert.py
stevezheng23/fewshot_nlp_pt
aaca4658aaa48a5a45dfd7d5ee7282d7f7c74be2
[ "Apache-2.0" ]
2
2021-08-06T05:43:55.000Z
2022-03-17T22:31:21.000Z
src/transformersX/models/promptbert/modeling_promptbert.py
stevezheng23/fewshot_nlp_pt
aaca4658aaa48a5a45dfd7d5ee7282d7f7c74be2
[ "Apache-2.0" ]
null
null
null
src/transformersX/models/promptbert/modeling_promptbert.py
stevezheng23/fewshot_nlp_pt
aaca4658aaa48a5a45dfd7d5ee7282d7f7c74be2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
43.904401
213
0.666263
import math import os import warnings import numpy as np from dataclasses import dataclass from typing import Optional, Tuple import torch import torch.utils.checkpoint import torch.nn.functional as F from packaging import version from torch import nn from torch.nn import BCEWithLogitsLoss, CrossEntro...
true
true
f751f57c6187dfd051621ea0b6a369e4b1353c71
6,125
py
Python
seisflows3/tests/test_modules.py
bch0w/seisflows3
5158020d4efc06dae65dc472b59f1f958609348a
[ "BSD-2-Clause" ]
null
null
null
seisflows3/tests/test_modules.py
bch0w/seisflows3
5158020d4efc06dae65dc472b59f1f958609348a
[ "BSD-2-Clause" ]
null
null
null
seisflows3/tests/test_modules.py
bch0w/seisflows3
5158020d4efc06dae65dc472b59f1f958609348a
[ "BSD-2-Clause" ]
null
null
null
""" General test suite for all SeisFlows3 modules. Defines required parameters and functions for each of the modules, tests importing each of the modules and that each of the required parameters and functions exist. A sort of first-pass test which makes sure the package is set up correctly. """ import os import sys imp...
34.60452
79
0.62302
import os import sys import shutil import pytest from unittest.mock import patch from seisflows3 import config from seisflows3.seisflows import SeisFlows, return_modules required_structure = { "system": { "parameters": [], "functions": ["required", "check", "setup", "submit", "run", ...
true
true
f751f5a15419c8625194f9b8363933a44b28df0a
5,139
py
Python
examples/cifar/train_cifar_custom_loop.py
Evanc123/chainer
929af7189b1271683200aa9b0ba6da2dd3dee110
[ "MIT" ]
90
2017-02-23T04:04:47.000Z
2020-04-09T12:06:50.000Z
examples/cifar/train_cifar_custom_loop.py
Evanc123/chainer
929af7189b1271683200aa9b0ba6da2dd3dee110
[ "MIT" ]
7
2017-07-23T13:38:06.000Z
2018-07-10T07:09:03.000Z
examples/cifar/train_cifar_custom_loop.py
Evanc123/chainer
929af7189b1271683200aa9b0ba6da2dd3dee110
[ "MIT" ]
32
2017-02-28T07:40:38.000Z
2021-02-17T11:33:09.000Z
#!/usr/bin/env python """Convnet example using CIFAR10 or CIFAR100 dataset This code is a custom loop version of train_cifar.py. That is, we train models without using the Trainer class in chainer and instead write a training loop that manually computes the loss of minibatches and applies an optimizer to update the mo...
38.639098
77
0.611987
import argparse import chainer from chainer import configuration from chainer.dataset import convert import chainer.links as L from chainer import serializers from chainer.datasets import get_cifar10 from chainer.datasets import get_cifar100 import models.VGG def main(): parser = argparse.ArgumentParser(descr...
true
true
f751f5c7d99eca9abafb3e7869fca5353ee78fd6
705
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/entitlements/migrations/0012_allow_blank_order_number_values.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/entitlements/migrations/0012_allow_blank_order_number_values.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/entitlements/migrations/0012_allow_blank_order_number_values.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
# Generated by Django 1.11.25 on 2019-10-23 15:47 from django.db import migrations, models class Migration(migrations.Migration): # lint-amnesty, pylint: disable=missing-class-docstring dependencies = [ ('entitlements', '0011_historicalcourseentitlement'), ] operations = [ migrations....
28.2
95
0.638298
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('entitlements', '0011_historicalcourseentitlement'), ] operations = [ migrations.AlterField( model_name='courseentitlement', name='order_number', fie...
true
true
f751f68a9de539bb48e0468f2a1c6d29a2031bd3
558
py
Python
venv/Lib/site-packages/IPython/testing/tests/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,318
2019-07-11T10:34:39.000Z
2022-03-29T15:05:19.000Z
venv/Lib/site-packages/IPython/testing/tests/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
387
2019-09-05T16:33:09.000Z
2022-03-31T10:43:39.000Z
venv/Lib/site-packages/IPython/testing/tests/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
66
2019-11-11T15:33:12.000Z
2022-03-01T07:55:55.000Z
# encoding: utf-8 __docformat__ = "restructuredtext en" #------------------------------------------------------------------------------- # Copyright (C) 2005 Fernando Perez <fperez@colorado.edu> # Brian E Granger <ellisonbg@gmail.com> # Benjamin Ragan-Kelley <b...
50.727273
80
0.458781
__docformat__ = "restructuredtext en"
true
true
f751f76b13dd35a26a8a81d19ffc32586e1a61cc
43,349
py
Python
raven/struct/dataframe/_dataframeutils.py
raven-computing/pydf
70b14ad11aa629da6d1abb993a2a4c567db73ca9
[ "Apache-2.0" ]
null
null
null
raven/struct/dataframe/_dataframeutils.py
raven-computing/pydf
70b14ad11aa629da6d1abb993a2a4c567db73ca9
[ "Apache-2.0" ]
null
null
null
raven/struct/dataframe/_dataframeutils.py
raven-computing/pydf
70b14ad11aa629da6d1abb993a2a4c567db73ca9
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2021 Raven Computing # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
40.513084
96
0.557383
import numpy as np import raven.struct.dataframe.core as dataframe import raven.struct.dataframe.column as column import raven.struct.dataframe.bytecolumn as bytecolumn import raven.struct.dataframe.shortcolumn as shortcolumn import raven.struct.dataframe.intcolumn as intcolumn import raven.struct.dataf...
true
true
f751f81eecb985f816885975e85d891cbc717f81
636
py
Python
notif/db/models.py
alexpeits/notif
2055d0eb05f362ebd97f69d5bfe2514bb9fc204f
[ "BSD-3-Clause" ]
null
null
null
notif/db/models.py
alexpeits/notif
2055d0eb05f362ebd97f69d5bfe2514bb9fc204f
[ "BSD-3-Clause" ]
null
null
null
notif/db/models.py
alexpeits/notif
2055d0eb05f362ebd97f69d5bfe2514bb9fc204f
[ "BSD-3-Clause" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, Text, Boolean from sqlalchemy_utils import ArrowType from notif.config import DB_URI Base = declarative_base() class Notification(Base): """Notification database table.""" __tablename__ = 'notifications' i...
26.5
62
0.740566
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, Text, Boolean from sqlalchemy_utils import ArrowType from notif.config import DB_URI Base = declarative_base() class Notification(Base): __tablename__ = 'notifications' if 'sqlite' in DB_URI: __table_a...
true
true
f751f84fcfbf38086a0434fac86394c6c6a79bec
2,418
py
Python
aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/AddVodDomainRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/AddVodDomainRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/AddVodDomainRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# 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 # "License"); you may not u...
32.675676
74
0.757651
from aliyunsdkcore.request import RpcRequest from aliyunsdkvod.endpoint import endpoint_data class AddVodDomainRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'vod', '2017-03-21', 'AddVodDomain','vod') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(s...
true
true
f751f8d8c76ff5cae88fd47e6714fd0343461bc8
4,336
py
Python
multichat/multichat/settings.py
engrost/channels-examples
050a5f3aa5f504fc56aaa4f93195e29a066780e0
[ "BSD-3-Clause" ]
null
null
null
multichat/multichat/settings.py
engrost/channels-examples
050a5f3aa5f504fc56aaa4f93195e29a066780e0
[ "BSD-3-Clause" ]
null
null
null
multichat/multichat/settings.py
engrost/channels-examples
050a5f3aa5f504fc56aaa4f93195e29a066780e0
[ "BSD-3-Clause" ]
null
null
null
""" Django settings for multichat project. Generated by 'django-admin startproject' using Django 1.10.dev20151126161447. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings...
26.439024
106
0.697648
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) END": "channels_redis.core.RedisChannelLayer", "CONFIG": { "hosts": [(redis_host, 6379)], }, }, } ASGI_APPLICATION = 'multichat.routing.application' MSG_TYPE_MUTED = 3 MSG_TYPE_ENTER = 4 # For ju...
true
true
f751f9143e6a1fe26658d5f32931ce92171c0d18
2,114
py
Python
tests/wallet/test_profitlisp.py
zcomputerwiz/profit-blockchain
d6d4337ea7c418c66f05f22a263e94190452aed6
[ "Apache-2.0" ]
7
2022-03-15T01:33:35.000Z
2022-03-26T21:29:45.000Z
tests/wallet/test_profitlisp.py
zcomputerwiz/profit-blockchain
d6d4337ea7c418c66f05f22a263e94190452aed6
[ "Apache-2.0" ]
3
2022-03-19T23:02:18.000Z
2022-03-19T23:02:19.000Z
tests/wallet/test_profitlisp.py
zcomputerwiz/profit-blockchain
d6d4337ea7c418c66f05f22a263e94190452aed6
[ "Apache-2.0" ]
null
null
null
import pytest from profit.wallet.chialisp import ( apply, args, cons, eval, fail, first, is_zero, make_if, make_list, nth, quote, rest, sexp, ) class TestChialisp: def test_sexp(self): assert sexp() == "()" assert sexp(1) == "(1)" assert...
25.46988
70
0.454588
import pytest from profit.wallet.chialisp import ( apply, args, cons, eval, fail, first, is_zero, make_if, make_list, nth, quote, rest, sexp, ) class TestChialisp: def test_sexp(self): assert sexp() == "()" assert sexp(1) == "(1)" assert...
true
true
f751f922895a5360a2a94b00c23590d364107b9c
2,657
py
Python
brainrender_gui/apputils/add_from_file_control.py
brainglobe/bg-brainrender-gui
4048f789fbdc1a5d4c5c652a4f37222446c8aa2f
[ "BSD-3-Clause" ]
7
2020-07-09T10:27:38.000Z
2020-10-13T13:16:20.000Z
brainrender_gui/apputils/add_from_file_control.py
brainglobe/bg-brainrender-gui
4048f789fbdc1a5d4c5c652a4f37222446c8aa2f
[ "BSD-3-Clause" ]
12
2020-07-31T15:03:49.000Z
2020-12-11T08:00:20.000Z
brainrender_gui/apputils/add_from_file_control.py
brainglobe/bg-brainrender-gui
4048f789fbdc1a5d4c5c652a4f37222446c8aa2f
[ "BSD-3-Clause" ]
null
null
null
from qtpy.QtWidgets import QFileDialog from pathlib import Path from brainrender_gui.widgets.add_from_file import AddFromFileWindow from brainrender_gui.utils import ( get_color_from_string, get_alpha_from_string, ) class AddFromFile: def __init__(self): """ Collection of functions to...
29.197802
100
0.561536
from qtpy.QtWidgets import QFileDialog from pathlib import Path from brainrender_gui.widgets.add_from_file import AddFromFileWindow from brainrender_gui.utils import ( get_color_from_string, get_alpha_from_string, ) class AddFromFile: def __init__(self): return def __add_from_file(self, fun,...
true
true
f751fad68dd31d6a3cb9f3485137658c11822310
31,737
py
Python
analytics/tests/test_views.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
1
2020-03-10T20:09:11.000Z
2020-03-10T20:09:11.000Z
analytics/tests/test_views.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
3
2020-06-06T00:25:00.000Z
2021-05-08T14:30:56.000Z
analytics/tests/test_views.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
1
2019-12-23T05:51:08.000Z
2019-12-23T05:51:08.000Z
from datetime import datetime, timedelta from typing import List, Optional import mock from django.utils.timezone import utc from django.http import HttpResponse import ujson from analytics.lib.counts import COUNT_STATS, CountStat from analytics.lib.time_utils import time_range from analytics.models import FillState,...
51.271405
135
0.590636
from datetime import datetime, timedelta from typing import List, Optional import mock from django.utils.timezone import utc from django.http import HttpResponse import ujson from analytics.lib.counts import COUNT_STATS, CountStat from analytics.lib.time_utils import time_range from analytics.models import FillState,...
true
true
f751fb575b369286a0e83105c634838c4a6c908d
2,608
py
Python
Functions/sensing_utils.py
amitsou/cloud_services
22a2381227ecab8d1626e3dfa961821954188327
[ "MIT" ]
null
null
null
Functions/sensing_utils.py
amitsou/cloud_services
22a2381227ecab8d1626e3dfa961821954188327
[ "MIT" ]
null
null
null
Functions/sensing_utils.py
amitsou/cloud_services
22a2381227ecab8d1626e3dfa961821954188327
[ "MIT" ]
null
null
null
import os import cv2 import sys import json import time import codecs import argparse import logging import numpy as np import warnings try: with warnings.catch_warnings(): warnings.filterwarnings("ignore",category=FutureWarning) from keras.models import load_model from keras.preprocessing ...
27.452632
110
0.682515
import os import cv2 import sys import json import time import codecs import argparse import logging import numpy as np import warnings try: with warnings.catch_warnings(): warnings.filterwarnings("ignore",category=FutureWarning) from keras.models import load_model from keras.preprocessing ...
true
true
f751fc4f34536ad4076528902a1fefdc11b338ca
51,118
py
Python
src/sage/combinat/sf/jack.py
defeo/sage
d8822036a9843bd4d75845024072515ede56bcb9
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/sf/jack.py
defeo/sage
d8822036a9843bd4d75845024072515ede56bcb9
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/sf/jack.py
defeo/sage
d8822036a9843bd4d75845024072515ede56bcb9
[ "BSL-1.0" ]
null
null
null
r""" Jack Symmetric Functions Jack's symmetric functions appear in [Ma1995]_ Chapter VI, section 10. Zonal polynomials are the subject of [Ma1995]_ Chapter VII. The parameter `\alpha` in that reference is the parameter `t` in this implementation in sage. REFERENCES: .. [Jack1970] \H. Jack, *A class of symmetric f...
36.228207
270
0.54202
from __future__ import absolute_import from sage.structure.unique_representation import UniqueRepresentation import sage.categories.all from sage.rings.all import Integer, QQ from sage.arith.all import gcd, lcm from sage.rings.fraction_field import is_FractionField from sage.misc.all import prod from sage.c...
true
true
f751fd3211e431d41ec7d722617ca8d982062dd7
8,421
py
Python
src/sage/repl/rich_output/pretty_print.py
sloebrich/sage
b8f53f72e817e78722ad1b40d70aa9071426700b
[ "BSL-1.0" ]
1
2020-05-19T22:34:03.000Z
2020-05-19T22:34:03.000Z
src/sage/repl/rich_output/pretty_print.py
sloebrich/sage
b8f53f72e817e78722ad1b40d70aa9071426700b
[ "BSL-1.0" ]
null
null
null
src/sage/repl/rich_output/pretty_print.py
sloebrich/sage
b8f53f72e817e78722ad1b40d70aa9071426700b
[ "BSL-1.0" ]
3
2020-03-29T17:13:36.000Z
2021-05-03T18:11:28.000Z
# -*- encoding: utf-8 -*- r""" The ``pretty_print`` command. Works similar to the ``print`` function, except that it always tries to use a rich output for an object. Only if that is not available it is falling back on the plain text. EXAMPLES:: sage: pretty_print(1, 2, 3) <html><script type="math/tex">\newco...
32.513514
139
0.612041
import types import collections from sage.structure.sage_object import SageObject from sage.repl.rich_output import get_display_manager class SequencePrettyPrinter(SageObject): def __init__(self, *args, **kwds): self.args = args assert len(self.args) >= 2 self.kwds = kwds ...
true
true
f751fef89025e3ed8f1f79bc706a14652149ca4d
3,407
py
Python
yt/frontends/exodus_ii/simulation_handling.py
mabruzzo/yt
7bf28a70077a52d75dc035c87b6a2ef7ac66b4c3
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/frontends/exodus_ii/simulation_handling.py
mabruzzo/yt
7bf28a70077a52d75dc035c87b6a2ef7ac66b4c3
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/frontends/exodus_ii/simulation_handling.py
mabruzzo/yt
7bf28a70077a52d75dc035c87b6a2ef7ac66b4c3
[ "BSD-3-Clause-Clear" ]
null
null
null
import glob from yt.data_objects.time_series import DatasetSeries from yt.funcs import only_on_root from yt.loaders import load from yt.utilities.exceptions import YTOutputNotIdentified from yt.utilities.logger import ytLogger as mylog from yt.utilities.parallel_tools.parallel_analysis_interface import parallel_object...
33.07767
84
0.638685
import glob from yt.data_objects.time_series import DatasetSeries from yt.funcs import only_on_root from yt.loaders import load from yt.utilities.exceptions import YTOutputNotIdentified from yt.utilities.logger import ytLogger as mylog from yt.utilities.parallel_tools.parallel_analysis_interface import parallel_object...
true
true
f751ff6ed6929d42d682b2db380ef2235bf58c82
6,324
py
Python
celery/execute/__init__.py
winhamwr/celery
249a270301ddb9b025cf8d00400bb442df9cae62
[ "BSD-3-Clause" ]
1
2017-12-26T06:29:37.000Z
2017-12-26T06:29:37.000Z
celery/execute/__init__.py
winhamwr/celery
249a270301ddb9b025cf8d00400bb442df9cae62
[ "BSD-3-Clause" ]
null
null
null
celery/execute/__init__.py
winhamwr/celery
249a270301ddb9b025cf8d00400bb442df9cae62
[ "BSD-3-Clause" ]
null
null
null
from celery import conf from celery.utils import gen_unique_id, fun_takes_kwargs, mattrgetter from celery.result import AsyncResult, EagerResult from celery.execute.trace import TaskTrace from celery.registry import tasks from celery.messaging import with_connection from celery.messaging import TaskPublisher extract_e...
38.327273
78
0.653384
from celery import conf from celery.utils import gen_unique_id, fun_takes_kwargs, mattrgetter from celery.result import AsyncResult, EagerResult from celery.execute.trace import TaskTrace from celery.registry import tasks from celery.messaging import with_connection from celery.messaging import TaskPublisher extract_e...
true
true
f751ffc9b2684bad6f9c764046c2f3754e318a56
4,177
py
Python
timgiasu/users/models.py
Hieucaohd/timgiasu
ed3bfad7612e5ac91c3b84455e2fe1a76a4748f9
[ "MIT" ]
null
null
null
timgiasu/users/models.py
Hieucaohd/timgiasu
ed3bfad7612e5ac91c3b84455e2fe1a76a4748f9
[ "MIT" ]
null
null
null
timgiasu/users/models.py
Hieucaohd/timgiasu
ed3bfad7612e5ac91c3b84455e2fe1a76a4748f9
[ "MIT" ]
null
null
null
from django.contrib.auth.models import ( AbstractBaseUser, BaseUserManager, PermissionsMixin, ) from django.db import models from django_countries.fields import CountryField from phonenumber_field.modelfields import PhoneNumberField from ..core.choices import AuthFromType, ProfessionType, SexType from ..co...
32.632813
84
0.665071
from django.contrib.auth.models import ( AbstractBaseUser, BaseUserManager, PermissionsMixin, ) from django.db import models from django_countries.fields import CountryField from phonenumber_field.modelfields import PhoneNumberField from ..core.choices import AuthFromType, ProfessionType, SexType from ..co...
true
true
f751ffd0ad0e7210acc08c55dbb61c3b449cd9d7
39,361
py
Python
azure-mgmt-resource/azure/mgmt/resource/resources/operations/resources_operations.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2018-11-09T06:16:34.000Z
2018-11-09T06:16:34.000Z
azure-mgmt-resource/azure/mgmt/resource/resources/operations/resources_operations.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
azure-mgmt-resource/azure/mgmt/resource/resources/operations/resources_operations.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2018-11-09T06:17:41.000Z
2018-11-09T06:17:41.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 ...
47.195444
197
0.665888
from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller import uuid from .. import models class ResourcesOperations(object): def __init__(self, client, config, serializer, deserializer): se...
true
true
f75200d87af23bcd230dbfd6b0e7f9dec272814a
1,392
py
Python
extraPackages/matplotlib-3.0.3/examples/subplots_axes_and_figures/zoom_inset_axes.py
dolboBobo/python3_ios
877f8c2c5890f26292ddd14909bea62a04fe2889
[ "BSD-3-Clause" ]
130
2018-02-03T10:25:54.000Z
2022-03-25T22:27:22.000Z
extraPackages/matplotlib-3.0.2/examples/subplots_axes_and_figures/zoom_inset_axes.py
spacetime314/python3_ios
e149f1bc2e50046c8810f83dae7739a8dea939ee
[ "BSD-3-Clause" ]
9
2018-12-14T07:31:42.000Z
2020-12-09T20:29:28.000Z
extraPackages/matplotlib-3.0.2/examples/subplots_axes_and_figures/zoom_inset_axes.py
spacetime314/python3_ios
e149f1bc2e50046c8810f83dae7739a8dea939ee
[ "BSD-3-Clause" ]
64
2018-04-25T08:51:57.000Z
2022-01-29T14:13:57.000Z
""" ====================== Zoom region inset axes ====================== Example of an inset axes and a rectangle showing where the zoom is located. """ import matplotlib.pyplot as plt import numpy as np def get_demo_image(): from matplotlib.cbook import get_sample_data import numpy as np f = get_sampl...
22.819672
77
0.618534
import matplotlib.pyplot as plt import numpy as np def get_demo_image(): from matplotlib.cbook import get_sample_data import numpy as np f = get_sample_data("axes_grid/bivariate_normal.npy", asfileobj=False) z = np.load(f) return z, (-3, 4, -4, 3) fig, ax = plt.subplots(figsize=[5, 4]) Z,...
true
true
f7520198dd272878b3450c7970a71cbadc22d399
2,236
py
Python
dojo/tools/spotbugs/parser.py
joebasirico/django-DefectDojo
da4ab0033329cee4108630e2b7e54a2d073932b6
[ "BSD-3-Clause" ]
2
2021-09-19T23:19:12.000Z
2022-03-26T10:20:49.000Z
dojo/tools/spotbugs/parser.py
joebasirico/django-DefectDojo
da4ab0033329cee4108630e2b7e54a2d073932b6
[ "BSD-3-Clause" ]
167
2021-03-15T13:49:54.000Z
2022-03-31T09:10:30.000Z
dojo/tools/spotbugs/parser.py
Security-Phoenix-demo/django-DefectDojo
645778824ed1db71405343f2d2a6e05a4156c899
[ "BSD-3-Clause" ]
4
2016-09-19T17:33:39.000Z
2018-12-10T07:55:45.000Z
__author__ = 'bakalor' __maintainer__ = "Igor Bakalo" __email__ = "bigorigor.ua@gmail.com" __status__ = "Development" import re from defusedxml import ElementTree as ET from dojo.models import Finding class SpotbugsParser(object): def get_scan_types(self): return ["SpotBugs Scan"] def get_label_f...
29.421053
136
0.528623
__author__ = 'bakalor' __maintainer__ = "Igor Bakalo" __email__ = "bigorigor.ua@gmail.com" __status__ = "Development" import re from defusedxml import ElementTree as ET from dojo.models import Finding class SpotbugsParser(object): def get_scan_types(self): return ["SpotBugs Scan"] def get_label_f...
true
true
f752023756199ff3be598884c7b26e27b6bf8b0f
204
py
Python
app/models/__init__.py
Hansybx/guohe3
53990b92f5d45bac1c2b903fd8df9cb97283697e
[ "Apache-2.0" ]
1
2019-08-18T13:16:14.000Z
2019-08-18T13:16:14.000Z
app/models/__init__.py
Hansybx/guohe3
53990b92f5d45bac1c2b903fd8df9cb97283697e
[ "Apache-2.0" ]
1
2019-08-19T02:05:32.000Z
2022-02-11T07:27:37.000Z
app/models/__init__.py
Hansybx/guohe3
53990b92f5d45bac1c2b903fd8df9cb97283697e
[ "Apache-2.0" ]
1
2019-08-18T09:08:25.000Z
2019-08-18T09:08:25.000Z
""" -*- coding: utf-8 -*- Time : 2019/7/12 14:25 Author : Hansybx """ from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() # from app.models import grade_point, student_info, teacher_class
14.571429
65
0.691176
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy()
true
true
f75202907cecad0d065ae0b2d43e62737b5c4cfa
33,407
py
Python
stcrestclient/tccsh.py
osgirl/py-stcrestclient
e36c2c36b7fa7ed45f0c1cf94c12742e8e19910a
[ "MIT" ]
null
null
null
stcrestclient/tccsh.py
osgirl/py-stcrestclient
e36c2c36b7fa7ed45f0c1cf94c12742e8e19910a
[ "MIT" ]
null
null
null
stcrestclient/tccsh.py
osgirl/py-stcrestclient
e36c2c36b7fa7ed45f0c1cf94c12742e8e19910a
[ "MIT" ]
null
null
null
""" Spirent TestCenter Command Shell Command shell that provides STC Automation API functionality using an interactive command line interface, or command file. This program accesses a TestCenter Server over its HTTP interface, so no local BLL installation is needed. Type help to see help info. Use <TAB> for command...
30.069307
79
0.542072
from __future__ import absolute_import from __future__ import print_function import os import sys import socket import cmd import shlex import time import getpass if sys.version_info < (2, 7): print("requires python2.7 or later", file=sys.stderr) sys.exit(1) if __name__ == '__main__' and __package__ is None:...
true
true
f75202de21653c31ef33d834f10d7c327c1b3000
6,547
py
Python
dglt/contrib/moses/moses/model/gvae/model_cvae.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
3
2022-02-06T09:13:51.000Z
2022-02-19T15:03:35.000Z
dglt/contrib/moses/moses/model/gvae/model_cvae.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
1
2022-02-14T23:16:27.000Z
2022-02-14T23:16:27.000Z
dglt/contrib/moses/moses/model/gvae/model_cvae.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.distributions.gumbel import Gumbel from dglt.contrib.moses.moses.model.gvae.utils import Flatten class CVAE(nn.Module): """Character Variational Autoencoder.""" def __init__(self, vocab, config): """Constructor function. Args: * vocab: mo...
31.936585
88
0.582404
import torch import torch.nn as nn from torch.distributions.gumbel import Gumbel from dglt.contrib.moses.moses.model.gvae.utils import Flatten class CVAE(nn.Module): def __init__(self, vocab, config): super().__init__() self.eos_symbol = '&' self.vocab = [self.eos_symbol] + v...
true
true
f75205b64358b62ec4a597bc9ecc92f5225a938f
3,905
py
Python
examples/plot_held_out_lasso.py
svaiter/sparse-ho
8c04ca533e44ecd128dc26b6830a556babf8416f
[ "BSD-3-Clause" ]
null
null
null
examples/plot_held_out_lasso.py
svaiter/sparse-ho
8c04ca533e44ecd128dc26b6830a556babf8416f
[ "BSD-3-Clause" ]
null
null
null
examples/plot_held_out_lasso.py
svaiter/sparse-ho
8c04ca533e44ecd128dc26b6830a556babf8416f
[ "BSD-3-Clause" ]
null
null
null
""" ============================ Lasso with held-out test set ============================ This example shows how to perform hyperparameter optimization for a Lasso using a held-out validation set. """ # Authors: Quentin Bertrand <quentin.bertrand@inria.fr> # Quentin Klopfenstein <quentin.klopfenstein@u-bou...
28.093525
79
0.671959
import time import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn import linear_model from sparse_ho.models import Lasso from sparse_ho.criterion import HeldOutMSE from sparse_ho.forward import Forward from sparse_ho.implicit_forward import ImplicitForward from sparse_ho.utils imp...
true
true
f752068fb99fe4df446bd8f230ab85b53ca2e216
156
py
Python
tests/skl_datasets/BreastCancer/skl_dataset_BreastCancer_BaggingClassifier_14_code_gen.py
antoinecarme/sklearn_model_explanation
feeeb75576931f4a05a786d936babc0a664eef46
[ "BSD-3-Clause" ]
13
2017-12-22T09:12:51.000Z
2021-07-26T06:31:54.000Z
tests/skl_datasets/BreastCancer/skl_dataset_BreastCancer_BaggingClassifier_14_code_gen.py
antoinecarme/sklearn_model_explanation
feeeb75576931f4a05a786d936babc0a664eef46
[ "BSD-3-Clause" ]
11
2017-09-19T20:00:35.000Z
2018-02-05T07:59:06.000Z
tests/skl_datasets/BreastCancer/skl_dataset_BreastCancer_BaggingClassifier_14_code_gen.py
antoinecarme/sklearn_model_explanation
feeeb75576931f4a05a786d936babc0a664eef46
[ "BSD-3-Clause" ]
4
2017-12-11T12:33:32.000Z
2020-02-09T15:08:56.000Z
from sklearn_explain.tests.skl_datasets import skl_datasets_test as skltest skltest.test_class_dataset_and_model("BreastCancer" , "BaggingClassifier_14")
31.2
77
0.865385
from sklearn_explain.tests.skl_datasets import skl_datasets_test as skltest skltest.test_class_dataset_and_model("BreastCancer" , "BaggingClassifier_14")
true
true
f752069233e3794c761a0c20c05e2ccbff1cf3dd
2,347
py
Python
mslib/msui/constants.py
withoutwaxaryan/MSS
8bc06755e592c61d1b418f9a0b582ba0025f3da8
[ "Apache-2.0" ]
null
null
null
mslib/msui/constants.py
withoutwaxaryan/MSS
8bc06755e592c61d1b418f9a0b582ba0025f3da8
[ "Apache-2.0" ]
1
2021-01-26T11:56:31.000Z
2021-02-15T07:34:58.000Z
mslib/msui/constants.py
withoutwaxaryan/MSS
8bc06755e592c61d1b418f9a0b582ba0025f3da8
[ "Apache-2.0" ]
7
2021-01-21T10:40:09.000Z
2021-05-18T15:04:15.000Z
# -*- coding: utf-8 -*- """ mslib.msui.constants ~~~~~~~~~~~~~~~~~~~~ This module provides constants This file is part of mss. :copyright: Copyright 2008-2014 Deutsches Zentrum fuer Luft- und Raumfahrt e.V. :copyright: Copyright 2011-2014 Marc Rautenhaus (mr), Tongxi Lou (tl) :copyright:...
32.150685
101
0.714103
import fs import os import logging HOME = os.path.expanduser(f"~{os.path.sep}") MSS_CONFIG_PATH = os.getenv("MSS_CONFIG_PATH", os.path.join(HOME, ".config", "mss")) if '://' in MSS_CONFIG_PATH: try: _fs = fs.open_fs(MSS_CONFIG_PATH) except fs.errors.CreateFailed: _fs.makedirs(MSS_CONFIG_PATH...
true
true
f75206c35d2b5070eaa00f5e8d63d5d6aeb16b70
2,370
py
Python
alipay/aop/api/domain/AlipayPayAppCarPayModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayPayAppCarPayModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayPayAppCarPayModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayPayAppCarPayModel(object): def __init__(self): self._out_trade_no = None self._qr_code = None self._subject = None self._total_amount = None @property ...
27.55814
75
0.583966
import json from alipay.aop.api.constant.ParamConstants import * class AlipayPayAppCarPayModel(object): def __init__(self): self._out_trade_no = None self._qr_code = None self._subject = None self._total_amount = None @property def out_trade_no(self): return se...
true
true
f752076a7a650357d49177bf467576dece9c2642
8,309
py
Python
tests/matrix_conv2d/matrix_conv2d.py
kindsenior/nngen
cba265b1a140f2aef7208926703782b6dac9e8be
[ "Apache-2.0" ]
7
2020-06-08T13:36:13.000Z
2021-12-24T06:55:30.000Z
tests/matrix_conv2d/matrix_conv2d.py
kindsenior/nngen
cba265b1a140f2aef7208926703782b6dac9e8be
[ "Apache-2.0" ]
null
null
null
tests/matrix_conv2d/matrix_conv2d.py
kindsenior/nngen
cba265b1a140f2aef7208926703782b6dac9e8be
[ "Apache-2.0" ]
1
2021-03-12T03:51:56.000Z
2021-03-12T03:51:56.000Z
from __future__ import absolute_import from __future__ import print_function import os import sys import functools import math import numpy as np # the next line can be removed after installation sys.path.insert(0, os.path.dirname(os.path.dirname( os.path.dirname(os.path.abspath(__file__))))) import nngen as ng ...
34.193416
102
0.55121
from __future__ import absolute_import from __future__ import print_function import os import sys import functools import math import numpy as np sys.path.insert(0, os.path.dirname(os.path.dirname( os.path.dirname(os.path.abspath(__file__))))) import nngen as ng from veriloggen import * import veriloggen.threa...
true
true
f75208b4d0b0285de4b0ac7292d40f1a2e4d058b
8,512
py
Python
shaker/engine/image_builder.py
performa-labs/shaker
870b20b34ff86c89a9bc25c30b044da023b7fccd
[ "Apache-2.0" ]
null
null
null
shaker/engine/image_builder.py
performa-labs/shaker
870b20b34ff86c89a9bc25c30b044da023b7fccd
[ "Apache-2.0" ]
null
null
null
shaker/engine/image_builder.py
performa-labs/shaker
870b20b34ff86c89a9bc25c30b044da023b7fccd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
34.461538
79
0.649906
import os import shlex import shutil import sys import tempfile import uuid from oslo_concurrency import processutils from oslo_config import cfg from oslo_log import log as logging from shaker.engine import config from shaker.engine import utils from shaker.openstack.clients import glance from shaker....
true
true
f7520a1554147ffd29a963eebfe0bf0cc0eb7f8f
988
py
Python
kubernetes/test/test_v1_iscsi_volume_source.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
1
2019-04-14T23:51:35.000Z
2019-04-14T23:51:35.000Z
kubernetes/test/test_v1_iscsi_volume_source.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_iscsi_volume_source.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
21.955556
105
0.716599
from __future__ import absolute_import import os import sys import unittest import kubernetes.client from kubernetes.client.rest import ApiException from kubernetes.client.models.v1_iscsi_volume_source import V1ISCSIVolumeSource class TestV1ISCSIVolumeSource(unittest.TestCase): def setUp(self): pas...
true
true
f7520adfc42b7151865e98f2c06252be3ea6e9d1
4,307
py
Python
Tax-Calculator-3.0.0/taxcalc/tests/test_data.py
grantseiter/Tax-Benefits-Of-Parenthood
5350e832e8b877b46c2a3cab070fc8262b914a52
[ "MIT" ]
null
null
null
Tax-Calculator-3.0.0/taxcalc/tests/test_data.py
grantseiter/Tax-Benefits-Of-Parenthood
5350e832e8b877b46c2a3cab070fc8262b914a52
[ "MIT" ]
null
null
null
Tax-Calculator-3.0.0/taxcalc/tests/test_data.py
grantseiter/Tax-Benefits-Of-Parenthood
5350e832e8b877b46c2a3cab070fc8262b914a52
[ "MIT" ]
null
null
null
# CODING-STYLE CHECKS: # pycodestyle test_data.py import os import tempfile import pytest import numpy as np import pandas as pd from taxcalc import Data, GrowFactors # Test specification and use of simple Data-derived class. # This derived class is called Recs and it contains aged data. # # The follow...
31.903704
79
0.63896
import os import tempfile import pytest import numpy as np import pandas as pd from taxcalc import Data, GrowFactors VARINFO_JSON = """ { "read": { "RECID": { "required": true, "type": "int", "desc": "Unique numeric identifier for record" }, "MARS": { ...
true
true
f7520b78ec604dc2c5f9b07f36c07a6c237ad623
3,158
py
Python
tests/test_nodeserver_api.py
sommersoft/RosiePi_Node_Server
2cb46ee8e7e9f1a42f76adc83ea9d17dc4f61335
[ "MIT" ]
null
null
null
tests/test_nodeserver_api.py
sommersoft/RosiePi_Node_Server
2cb46ee8e7e9f1a42f76adc83ea9d17dc4f61335
[ "MIT" ]
1
2020-06-06T16:03:37.000Z
2020-06-06T16:03:37.000Z
tests/test_nodeserver_api.py
sommersoft/RosiePi_Node_Server
2cb46ee8e7e9f1a42f76adc83ea9d17dc4f61335
[ "MIT" ]
1
2020-06-06T15:50:58.000Z
2020-06-06T15:50:58.000Z
# The MIT License (MIT) # # Copyright (c) 2019 Michael Schroeder # # 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,...
30.07619
122
0.714693
from datetime import datetime import json import pytest from flask import jsonify req_headers = { 'Authorization':'Signature key-id=test-key,algorithm="hmac-sha256",headers="(request-target) date",signature=foob4r=', 'Date': datetime.now().strftime('%Y-%m-%dT%H:%M:%S%Z') } def test_no...
true
true
f7520c303edeaafab584901db4be57895ee71486
5,605
py
Python
cloudroast/compute/instance_actions/admin_api/test_suspend_server.py
bhushan5/cloudroast
60e05df96fe50b3bc511ee1cf1c818329d4360a1
[ "Apache-2.0" ]
null
null
null
cloudroast/compute/instance_actions/admin_api/test_suspend_server.py
bhushan5/cloudroast
60e05df96fe50b3bc511ee1cf1c818329d4360a1
[ "Apache-2.0" ]
null
null
null
cloudroast/compute/instance_actions/admin_api/test_suspend_server.py
bhushan5/cloudroast
60e05df96fe50b3bc511ee1cf1c818329d4360a1
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
38.655172
79
0.705263
import unittest from cafe.drivers.unittest.decorators import tags from cloudcafe.compute.composites import ComputeAdminComposite from cloudcafe.compute.common.types import NovaServerRebootTypes from cloudcafe.compute.common.exceptions import Forbidden from cloudcafe.compute.common.types import NovaServerStatusTypes \...
true
true
f7520c8428b9b4e22ddf8d80e8323a5252a40b23
6,524
py
Python
ucscentralsdk/mometa/sw/SwSystemStats.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/mometa/sw/SwSystemStats.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/mometa/sw/SwSystemStats.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for SwSystemStats ManagedObject.""" from ...ucscentralmo import ManagedObject from ...ucscentralcoremeta import UcsCentralVersion, MoPropertyMeta, MoMeta from ...ucscentralmeta import VersionMeta class SwSystemStatsConsts(): SUSPECT_FALSE = "false" SUSPECT_NO =...
64.594059
273
0.651594
from ...ucscentralmo import ManagedObject from ...ucscentralcoremeta import UcsCentralVersion, MoPropertyMeta, MoMeta from ...ucscentralmeta import VersionMeta class SwSystemStatsConsts(): SUSPECT_FALSE = "false" SUSPECT_NO = "no" SUSPECT_TRUE = "true" SUSPECT_YES = "yes" class SwSystemStats(Manage...
true
true
f7520f5b27f784df8c909defe1aa62357a8b9557
2,816
py
Python
features/steps/api_social_auth.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
null
null
null
features/steps/api_social_auth.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
7
2020-06-05T23:36:01.000Z
2022-01-13T01:42:07.000Z
features/steps/api_social_auth.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
null
null
null
from behave import * from django.urls import reverse from features.steps import * from features.helpers import * use_step_matcher("re") @given("some google and facebook accounts") def step_impl(context): google_client_id = '230288808995-4c5f9sf26l43u1jpcgftv6uh8vcoipsq.apps.googleusercontent.com' google_secr...
44.698413
249
0.747159
from behave import * from django.urls import reverse from features.steps import * from features.helpers import * use_step_matcher("re") @given("some google and facebook accounts") def step_impl(context): google_client_id = '230288808995-4c5f9sf26l43u1jpcgftv6uh8vcoipsq.apps.googleusercontent.com' google_secr...
true
true
f7521030110a6a850d80d08ca3f6ad177f5543ca
1,118
py
Python
venv/lib/python3.8/site-packages/azureml/_restclient/models/batch_iteration_task.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_restclient/models/batch_iteration_task.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_restclient/models/batch_iteration_task.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.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 2.3.3...
33.878788
82
0.581395
from msrest.serialization import Model class BatchIterationTask(Model): _attribute_map = { 'iteration_tasks': {'key': 'iteration_tasks', 'type': '[IterationTask]'}, 'version': {'key': 'version', 'type': 'int'}, } def __init__(self, iteration_tasks=None, version=None...
true
true