repo_name stringlengths 5 100 | path stringlengths 4 299 | copies stringclasses 990
values | size stringlengths 4 7 | content stringlengths 666 1.03M | license stringclasses 15
values | hash int64 -9,223,351,895,964,839,000 9,223,297,778B | line_mean float64 3.17 100 | line_max int64 7 1k | alpha_frac float64 0.25 0.98 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
ashleyholman/bitcoin | qa/rpc-tests/txn_clone.py | 80 | 8079 | #!/usr/bin/env python2
# Copyright (c) 2014 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 proper accounting with an equivalent malleability clone
#
from test_framework.test_framework import ... | mit | 8,288,038,926,523,926,000 | 46.804734 | 115 | 0.596608 | false |
crs4/ome_seadragon | ome_data/utils.py | 2 | 2287 | # Copyright (c) 2019, CRS4
#
# 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, publish, distribu... | mit | -6,791,084,387,814,346,000 | 35.887097 | 86 | 0.695234 | false |
jmargeta/scikit-learn | sklearn/svm/classes.py | 2 | 26517 | from .base import BaseLibLinear, BaseSVC, BaseLibSVM
from ..base import RegressorMixin
from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin
from ..feature_selection.selector_mixin import SelectorMixin
class LinearSVC(BaseLibLinear, LinearClassifierMixin, SelectorMixin,
SparseCoefMixi... | bsd-3-clause | -3,238,665,965,295,985,700 | 36.086713 | 79 | 0.641966 | false |
yahoo/TensorFlowOnSpark | doc/source/conf.py | 1 | 5262 | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | apache-2.0 | -3,839,136,365,204,922,000 | 29.952941 | 83 | 0.649183 | false |
gwdg/nova-docker | novadocker/tests/virt/docker/test_firewall.py | 14 | 5171 | # Copyright 2014 IBM Corp.
# 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 applicabl... | apache-2.0 | -709,178,775,706,649,600 | 45.585586 | 78 | 0.564301 | false |
Lilykos/invenio | invenio/ext/template/__init__.py | 8 | 7715 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2012, 2013, 2014, 2015 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your... | gpl-2.0 | -4,055,307,586,010,908,700 | 33.137168 | 79 | 0.643552 | false |
huangciyin/youtube-dl | youtube_dl/update.py | 19 | 7354 | import io
import json
import traceback
import hashlib
import os
import subprocess
import sys
from zipimport import zipimporter
from .utils import (
compat_str,
compat_urllib_request,
)
from .version import __version__
def rsa_verify(message, signature, key):
from struct import pack
from hashlib import... | unlicense | 7,776,189,574,265,000,000 | 36.712821 | 289 | 0.623606 | false |
AnthonyBriggs/Python-101 | hello_python_source_py3/chapter 07/getattr_setattr.py | 1 | 2040 |
"""
An example of using __getattr__ and __setattr__
"""
class TestGetAttr(object):
def __getattr__(self, name):
print("Attribute '%s' not found!" % name)
return 42
test_class = TestGetAttr()
print(test_class.something)
test_class.something = 43
print(test_class.something)
class TestSetAtt... | mit | 5,849,384,389,875,572,000 | 26.2 | 55 | 0.551471 | false |
scholer/py2cytoscape | py2cytoscape/data/style.py | 1 | 5675 | from . import BASE_URL, HEADERS
import requests
import json
import pandas as pd
class Style(object):
def __init__(self, name):
# Validate required argument
if name is None:
raise ValueError("Style name is required.")
else:
self.__name = name
self.__url = B... | mit | 5,545,519,130,868,006,000 | 30.703911 | 82 | 0.513304 | false |
wwf5067/statsmodels | statsmodels/examples/ex_kernel_regression3.py | 34 | 2380 | # -*- coding: utf-8 -*-
"""script to try out Censored kernel regression
Created on Wed Jan 02 13:43:44 2013
Author: Josef Perktold
"""
from __future__ import print_function
import numpy as np
import statsmodels.nonparametric.api as nparam
if __name__ == '__main__':
np.random.seed(500)
nobs = [250, 1000][0]... | bsd-3-clause | 2,633,622,360,178,091,000 | 29.909091 | 93 | 0.49958 | false |
CallaJun/hackprince | indico/tests/test_remote.py | 1 | 10335 | import unittest
import os
from requests import ConnectionError
import numpy as np
import skimage.io
from nose.plugins.skip import Skip, SkipTest
from indicoio import config
from indicoio import political, sentiment, fer, facial_features, language, image_features, text_tags
from indicoio import batch_political, batch_... | lgpl-3.0 | -6,256,368,081,751,042,000 | 34.153061 | 100 | 0.591776 | false |
zhiwliu/openshift-ansible | roles/openshift_sanitize_inventory/filter_plugins/openshift_sanitize_inventory.py | 9 | 1140 | '''
Openshift Sanitize inventory class that provides useful filters used in Logging.
'''
import re
# This should be removed after map_from_pairs is no longer used in __deprecations_logging.yml
def map_from_pairs(source, delim="="):
''' Returns a dict given the source and delim delimited '''
if source == ''... | apache-2.0 | 6,817,653,458,639,450,000 | 24.909091 | 93 | 0.637719 | false |
kylecarter/rest-django | tutorial/urls.py | 1 | 1389 | """tutorial URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | apache-2.0 | 4,002,521,200,153,434,600 | 41.090909 | 128 | 0.728582 | false |
amwelch/a10sdk-python | a10sdk/core/enable/enable_core.py | 2 | 1263 | from a10sdk.common.A10BaseClass import A10BaseClass
class EnableCore(A10BaseClass):
"""Class Description::
Enable system coredump switch.
Class enable-core supports CRUD Operations and inherits from `common/A10BaseClass`.
This class is the `"PARENT"` class for this module.`
:param uuid: {"d... | apache-2.0 | 4,154,146,131,813,860,400 | 33.135135 | 231 | 0.621536 | false |
Orochimarufan/youtube-dl | youtube_dl/extractor/imggaming.py | 12 | 5111 | # coding: utf-8
from __future__ import unicode_literals
import json
import re
from .common import InfoExtractor
from ..compat import compat_HTTPError
from ..utils import (
ExtractorError,
int_or_none,
str_or_none,
try_get,
)
class ImgGamingBaseIE(InfoExtractor):
_API_BASE = 'https://dce-frontoff... | unlicense | -6,512,006,905,178,425,000 | 37.428571 | 134 | 0.531207 | false |
garaden/flask | tests/test_helpers.py | 3 | 26555 | # -*- coding: utf-8 -*-
"""
tests.helpers
~~~~~~~~~~~~~~~~~~~~~~~
Various helpers.
:copyright: (c) 2015 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import pytest
import os
import datetime
import flask
from logging import StreamHandler
from werkzeug.exceptions import BadRe... | bsd-3-clause | -2,680,392,947,583,573,500 | 35.399177 | 105 | 0.508461 | false |
aromanovich/kozmic-ci | tests/__init__.py | 2 | 2864 | import os
import collections
import sqlalchemy
from alembic.config import Config
from alembic.command import upgrade as alembic_upgrade
from flask.ext.webtest import TestApp, get_scopefunc
from kozmic import create_app, db
from . import factories
class SQLAlchemyMixin(object):
@property
def db(self):
... | bsd-3-clause | -1,925,775,605,831,388,200 | 30.130435 | 79 | 0.599162 | false |
matthiasdiener/spack | var/spack/repos/builtin/packages/xcb-util-keysyms/package.py | 5 | 2044 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | 2,172,519,143,931,209,500 | 45.454545 | 79 | 0.691292 | false |
frouty/rt5100rs232 | parse_11.py | 1 | 1126 | # -*- coding: utf-8 -*-
import re
import sys
#constant
# i faut que j'arrive à récuperer dans un tuple les lignes entre deux @"
try:
#open the fil
file=open('/home/lof/rt5100rs232/tmp.log','r')
for line in file.readlines():
print 'raw line: {}'.format(line)
if line.startswith("2016"):
... | gpl-3.0 | -1,609,619,639,211,035,000 | 34.125 | 73 | 0.543594 | false |
vicenteneto/flask-ci | setup.py | 1 | 1475 | """
Flask-CI
--------
Provide Continuous Integration support operations for Flask apps.
Links
`````
* `documentation <https://pythonhosted.org/Flask-CI>`_
* `development version <http://github.com/vicenteneto/flask-ci/zipball/master#egg=Flask-CI-dev>`_
"""
from setuptools import setup
version = '1.2.9.1'
packages =... | mit | 2,279,425,250,348,792,800 | 31.777778 | 97 | 0.64 | false |
pydanny/dj-stripe | djstripe/middleware.py | 1 | 3290 | """
dj-stripe middleware
Refer to SubscriptionPaymentMiddleware docstring for more info.
"""
import fnmatch
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.shortcuts import redirect
from django.urls import resolve
from django.utils.deprecation import MiddlewareMixi... | bsd-3-clause | -1,938,763,304,425,209,300 | 32.917526 | 88 | 0.659271 | false |
dvalters/HAIL-CAESAR | test/basic_kga_tests.py | 1 | 2099 | import pytest
import json
import rasterio
import numpy.testing as ntest
from numpy import loadtxt
"""
Python testing framework for the HAIL-CAESAR model
Regression/functional tests for standard test cases
of HAIL-CAESAR, comparing to Known Good Answers (KGA's)
Based on Stuart Grieve's LSDTopoTools test framework.
""... | gpl-3.0 | -9,197,241,406,524,184,000 | 26.986667 | 75 | 0.642687 | false |
yokose-ks/edx-platform | common/lib/xmodule/xmodule/seq_module.py | 10 | 5710 | import json
import logging
from lxml import etree
from xblock.fields import Integer, Scope
from xblock.fragment import Fragment
from pkg_resources import resource_string
from .exceptions import NotFoundError
from .fields import Date
from .mako_module import MakoModuleDescriptor
from .progress import Progress
from .x... | agpl-3.0 | -297,502,745,468,057,500 | 36.565789 | 91 | 0.60683 | false |
yugangw-msft/autorest | src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/auto_rest_resource_flattening_test_service.py | 2 | 17142 | # 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 ... | mit | -4,734,232,642,262,146,000 | 41.74813 | 188 | 0.667017 | false |
manjunaths/tensorflow | tensorflow/contrib/factorization/python/ops/gmm.py | 18 | 5883 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 5,403,842,560,407,463,000 | 37.703947 | 85 | 0.666497 | false |
mahmoodkhan/ranewal | htdocs/epro/models.py | 1 | 29987 | from __future__ import unicode_literals
import datetime, time, logging
from decimal import Decimal
from django.core.urlresolvers import reverse_lazy
from django.core.validators import MinValueValidator, MaxValueValidator
from django.core.exceptions import ValidationError
from django.db.models import Q, Sum, Max, Min,... | gpl-3.0 | 2,488,555,275,411,284,000 | 47.210611 | 249 | 0.657618 | false |
brchiu/tensorflow | tensorflow/python/ops/dequantize_op_test.py | 15 | 2818 | # Copyright 2015 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... | apache-2.0 | -7,943,743,669,092,654,000 | 36.573333 | 80 | 0.661462 | false |
wardi/datacats | setup.py | 8 | 1293 | #!/usr/bin/env python
# Copyright 2014-2015 Boxkite Inc.
# This file is part of the DataCats package and is released under
# the terms of the GNU Affero General Public License version 3.0.
# See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html
from setuptools import setup
from os.path import realpa... | agpl-3.0 | 8,216,931,163,720,610,000 | 24.86 | 72 | 0.658933 | false |
CFSworks/ansible-routeros | library/routeros_command.py | 1 | 6318 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017 Sam Edwards
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = """
---
module: routeros_command
author: "S... | gpl-3.0 | -8,102,431,266,260,530,000 | 30.277228 | 92 | 0.646407 | false |
1905410/Misago | misago/threads/validators.py | 1 | 3561 | from django.core.exceptions import ValidationError
from django.utils.translation import ugettext as _, ungettext
from misago.categories.models import THREADS_ROOT_NAME, Category
from misago.categories.permissions import can_browse_category, can_see_category
from misago.conf import settings
from misago.core.validators ... | gpl-2.0 | -4,940,545,722,011,384,000 | 38.131868 | 105 | 0.651783 | false |
engla/kupfer | kupfer/plugin/firefox_keywords.py | 1 | 7697 | __kupfer_name__ = _("Firefox Keywords")
__kupfer_sources__ = ("KeywordsSource", )
__kupfer_text_sources__ = ("KeywordSearchSource", )
__kupfer_actions__ = ("SearchWithEngine", )
__description__ = _("Search the web with Firefox keywords")
__version__ = "2017.1"
__author__ = ""
from configparser import RawConfigParser
f... | gpl-3.0 | 5,112,285,602,855,265,000 | 27.507407 | 91 | 0.597376 | false |
andjey/status-tracker | src/python/status_tracker/db.py | 2 | 2963 | """This module contains functions for work with database."""
import time
from db_pool import DBPool
from config_parser import Config
conf_parser = Config()
CONFIGS = conf_parser.get_config()
DB_POOL = DBPool({'user': CONFIGS['db.user'],
'passwd': CONFIGS['db.passwd'],
'db_name': C... | mit | -7,399,160,648,368,389,000 | 29.864583 | 77 | 0.549781 | false |
pepsipepsi/nodebox_opengl_python3 | examples/Path/BitBop.py | 1 | 1858 | import os, sys
sys.path.insert(0, os.path.join("..",".."))
from nodebox.graphics.context import *
from nodebox.graphics import *
# BitBop -- a fun demonstration of path.contains.
#
# The textpath command returns a BezierPath of the text that can
# be manipulated or, as demonstrated here, queried using path.contains.
... | bsd-3-clause | -9,032,943,484,282,350,000 | 33.425926 | 72 | 0.636168 | false |
tomchristie/django | tests/auth_tests/test_auth_backends.py | 9 | 28001 | from datetime import date
from unittest import mock
from django.contrib.auth import (
BACKEND_SESSION_KEY, SESSION_KEY, authenticate, get_user, signals,
)
from django.contrib.auth.backends import ModelBackend
from django.contrib.auth.hashers import MD5PasswordHasher
from django.contrib.auth.models import Anonymous... | bsd-3-clause | 6,342,754,459,873,517,000 | 37.357534 | 110 | 0.664619 | false |
usc-isi-i2/etk | etk/extractor.py | 1 | 1848 | from enum import Enum, auto
from typing import List
from etk.extraction import Extraction
class InputType(Enum):
"""
TEXT: value must be a string
HTML: the value is HTML text
TOKENS: value must first be tokenized
OBJECT: value can be anything
"""
TEXT = auto()
HTML = auto()
TOKENS ... | mit | -9,128,917,080,397,884,000 | 26.176471 | 110 | 0.607684 | false |
shreyb/gracc-reporting | gracc_reporting/NiceNum.py | 1 | 2606 | """
Having written a bunch of scientific software, I am always amazed
at how few languages have built in routines for displaying numbers
nicely. I was doing a little programming in Python and got surprised
again. I couldn't find any routines for displaying numbers to
a significant number of digits and adding appropri... | apache-2.0 | -3,577,675,567,020,844,000 | 34.216216 | 69 | 0.589793 | false |
negrinho/deep_architect | dev/tutorials/mnist/dynet/mnist_dynet.py | 1 | 8297 | # Search Space for DyNet
# NOTE: No Batch_norm since DyNet has not supported batch norm
import dynet as dy
import numpy as np
from deep_architect.helpers.dynet_support import DyParameterCollection, siso_dynet_module
import deep_architect.modules as mo
import deep_architect.hyperparameters as hp
M = DyParameterCollec... | mit | -8,312,957,813,745,671,000 | 31.162791 | 89 | 0.546704 | false |
release-monitoring/anitya | anitya/sar.py | 1 | 2237 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2018 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2, or (at your option) any later
# version. This progra... | gpl-2.0 | 5,467,713,474,153,368,000 | 29.643836 | 76 | 0.707644 | false |
thyagostall/ikanos | ikanos.py | 1 | 3242 | import threading
import socket
import time
import os
HOST = ''
PORT = 8888
BASE_DIR = 'www/'
def log(type, message):
print(type + ": " + message)
class ClientThread(threading.Thread):
def bytes_from_file(self, filename, chunksize=8192):
result = []
try:
with open(filename, "rb") ... | mit | -5,922,869,094,040,249,000 | 27.438596 | 101 | 0.544725 | false |
apbard/scipy | scipy/_lib/_gcutils.py | 25 | 2465 | """
Module for testing automatic garbage collection of objects
.. autosummary::
:toctree: generated/
set_gc_state - enable or disable garbage collection
gc_state - context manager for given state of garbage collector
assert_deallocated - context manager to check for circular references on object
"""
impo... | bsd-3-clause | -5,201,049,081,509,237,000 | 24.677083 | 82 | 0.619473 | false |
xfouloux/Flexget | flexget/plugins/filter/exists_series.py | 5 | 5521 | from __future__ import unicode_literals, division, absolute_import
import copy
import logging
from path import Path
from flexget import plugin
from flexget.event import event
from flexget.config_schema import one_or_more
from flexget.utils.log import log_once
from flexget.utils.template import RenderError
from flexge... | mit | 3,885,300,402,778,404,400 | 43.524194 | 114 | 0.512588 | false |
tong-wang/PyRPLidar | rplidar_types.py | 1 | 5669 | """
RPLidar Types Definition
partly translated from <rptypes.h> of RPLidar SDK v1.4.5
by Tong Wang
* Copyright (c) 2014, RoboPeak
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. R... | mit | 6,806,688,784,455,480,000 | 30.670391 | 80 | 0.650908 | false |
mozilla/mwc | apps/mozorg/forms.py | 1 | 4634 | # coding: utf-8
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import re
from operator import itemgetter
from django import forms
from django.conf import settings
fr... | mpl-2.0 | 858,167,410,596,575,100 | 34.358779 | 78 | 0.593912 | false |
Thapelo-Tsotetsi/rapidpro | temba/api/migrations/0002_auto_20141126_2054.py | 7 | 1279 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('channels... | agpl-3.0 | 8,742,962,980,570,259,000 | 35.542857 | 167 | 0.627052 | false |
desihub/qlf | backend/framework/qlf/ui_channel/alerts.py | 2 | 1948 | import os
import math
import datetime
import json
from clients import get_ics_daemon
from channels import Group
disk_percent_warning = os.environ.get('DISK_SPACE_PERCENT_WARNING')
disk_percent_alert = os.environ.get('DISK_SPACE_PERCENT_ALERT')
class Alerts:
def qa_alert(self, camera, qa, status, exposure_id):
... | bsd-3-clause | 6,897,572,040,447,212,000 | 31.466667 | 77 | 0.542608 | false |
andersk/zulip | zerver/openapi/test_curl_examples.py | 3 | 5963 | # Zulip's OpenAPI-based API documentation system is documented at
# https://zulip.readthedocs.io/en/latest/documentation/api.html
#
# This file contains the top-level logic for testing the cURL examples
# in Zulip's API documentation; the details are in
# zerver.openapi.curl_param_value_generators.
import html
impor... | apache-2.0 | 1,421,830,716,775,949,000 | 40.699301 | 97 | 0.618481 | false |
onyxfish/nostaples | application.py | 1 | 10877 | #!/usr/bin/python
#~ This file is part of NoStaples.
#~ NoStaples is free software: you can redistribute it and/or modify
#~ it under the terms of the GNU General Public License as published by
#~ the Free Software Foundation, either version 3 of the License, or
#~ (at your option) any later version.
#~ NoStaples is... | gpl-3.0 | -7,031,260,171,684,142,000 | 31.565868 | 71 | 0.613496 | false |
Khurramjaved96/Dicta | Evaluation/corner_refinement.py | 1 | 20176 | import numpy as np
import cv2
import tensorflow as tf
class corner_finder():
def __init__(self, CHECKPOINT_DIR="../corner_full_data_shallow"):
config = tf.ConfigProto()
config.gpu_options.per_process_gpu_memory_fraction = 0.4
self.sess = tf.Session(config=config)
# In[ ]:
... | apache-2.0 | 5,846,053,030,291,351,000 | 36.020183 | 175 | 0.509814 | false |
emesene/emesene | emesene/e3/common/MessageFormatter.py | 2 | 5385 | # -*- coding: utf-8 -*-
# This file is part of emesene.
#
# emesene is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
#... | gpl-3.0 | 7,562,463,049,945,373,000 | 32.65625 | 94 | 0.592758 | false |
levelrf/level_basestation | spectrum_sense/add_client.py | 1 | 1069 | import os
#This script is used for adding a new client to the network. Once gnuradio sees a new client device request for bandwidth, it passes the data it got from that packet to this script which gives it a clientID, a frequency, and a bandwidth. It then waits for the client to reply with an ACK and a measurement of... | gpl-3.0 | 3,795,588,408,128,763,000 | 61.882353 | 463 | 0.76333 | false |
openstack/swift | test/unit/account/test_auditor.py | 1 | 5053 | # Copyright (c) 2010-2012 OpenStack Foundation
#
# 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 agree... | apache-2.0 | 563,742,927,070,474,900 | 36.42963 | 79 | 0.63111 | false |
RPi-Distro/python-gpiozero | gpiozero/pins/pigpio.py | 3 | 21491 | # GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins
# Copyright (c) 2016-2019 Dave Jones <dave@waveform.org.uk>
# Copyright (c) 2016 BuildTools <david.glaude@gmail.com>
# Copyright (c) 2016 Andrew Scheller <github@loowis.durge.org>
#
# Redistribution and use in source and binary forms, with or without
#... | bsd-3-clause | 8,622,872,391,645,558,000 | 35.926117 | 93 | 0.606626 | false |
rmkoesterer/uga | uga/__main__.py | 1 | 22945 | #!/usr/bin/env python
## Copyright (c) 2015 Ryan Koesterer GNU General Public License v3
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## ... | gpl-3.0 | -3,212,031,073,391,245,000 | 50.446188 | 305 | 0.576291 | false |
cigamit/boxeehack | hack/boxee/scripts/OpenSubtitles/resources/lib/plugins/Addic7ed.py | 3 | 6405 | # -*- coding: utf-8 -*-
# This file is part of periscope.
# Copyright (c) 2008-2011 Patrick Dessalle <patrick@dessalle.be>
#
# periscope is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; eit... | mit | 6,206,127,158,683,269,000 | 36.426901 | 129 | 0.645938 | false |
mgoffin/osquery | tools/codegen/gentargets.py | 3 | 2873 | #!/usr/bin/env python
import argparse
import json
import logging
import os
logging_format = '[%(levelname)s] %(message)s'
logging.basicConfig(level=logging.INFO, format=logging_format)
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
REPO_ROOT_DIR = os.path.realpath(os.path.join(SCRIPT_DIR, "../.."))
def g... | bsd-3-clause | -5,040,691,160,054,863,000 | 26.893204 | 76 | 0.590324 | false |
gt-ros-pkg/rcommander-core | nodebox_qt/src/nodebox/gui/qt/widgets/animationspinner.py | 1 | 2415 | from PyQt4.QtGui import QLabel, QPainter, QPainterPath, QBrush, QColor, QPalette
from PyQt4.QtCore import Qt, SIGNAL, QTimer
def coordinates(x0, y0, distance, angle):
from math import radians, sin, cos
x1 = x0 + cos(radians(angle)) * distance
y1 = y0 + sin(radians(angle)) * distance
return x1, y1
clas... | bsd-3-clause | -6,817,277,009,778,616,000 | 34 | 80 | 0.542443 | false |
thequbit/chatterstats | gettweets.py | 1 | 1147 | from twitter import *
from cfgfile import parseconfig
def getauth():
settings = parseconfig('twitterauth.ini')
return settings
def init():
settings = getauth()
t = Twitter(
auth=OAuth(settings['OAUTH_TOKEN'],settings['OAUTH_SECRET'],
settings['CONSUMER_KEY'],... | gpl-3.0 | -2,582,389,231,847,618,000 | 30 | 80 | 0.537053 | false |
aleneum/rsbhsm | tests/test_nesting.py | 1 | 13226 | # -*- coding: utf-8 -*-
try:
from builtins import object
except ImportError:
pass
import sys
from transitions.extensions import MachineFactory
from transitions.extensions.nesting import NestedState as State
from .test_core import TestTransitions as TestsCore
from .utils import Stuff
try:
from unittest.m... | mit | 7,386,253,963,974,170,000 | 37.721408 | 110 | 0.554756 | false |
erdewit/ib_insync | ib_insync/decoder.py | 1 | 38479 | """Deserialize and dispatch messages."""
import dataclasses
import logging
from datetime import datetime, timezone
from .contract import (
ComboLeg, Contract, ContractDescription, ContractDetails,
DeltaNeutralContract)
from .objects import (
BarData, CommissionReport, DepthMktDataDescription, Execution, F... | bsd-2-clause | -9,177,776,638,024,483,000 | 30.031452 | 78 | 0.487071 | false |
iwm911/plaso | plaso/parsers/winreg_plugins/ccleaner_test.py | 1 | 2650 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2013 The Plaso Project Authors.
# Please see the AUTHORS file for details on individual 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 L... | apache-2.0 | 3,662,207,639,177,871,000 | 34.333333 | 79 | 0.728302 | false |
wtolson/gnsq | tests/test_consumer.py | 1 | 6256 | from __future__ import division, with_statement
import os
import pytest
import gevent
from gnsq import NsqdHTTPClient, Consumer, states
from gnsq.errors import NSQSocketError
from integration_server import LookupdIntegrationServer, NsqdIntegrationServer
SLOW_TIMEOUT = int(os.environ.get('SLOW_TIMEOUT', '10'), 10)... | bsd-3-clause | -7,006,606,219,564,931,000 | 28.233645 | 78 | 0.597347 | false |
Bionetbook/bionetbook | bnbapp/config/updateVerbAttrib.py | 2 | 2390 | # updateVerbAttrib
# Author Oren Schaedel
# Date: 9/12/2012
# Version: 1.0
# this script updates the attributes and data structures that each verb recieves.
# The script makes 2 dictionaries, a verb-attribute and an attribute-datatype
# it calls the verbs from the verbs_attributes.txt file in the bionetbook/docs fold... | mit | -692,785,902,141,880,300 | 25.853933 | 129 | 0.705439 | false |
4doemaster/enigma2 | lib/python/Components/ConfigList.py | 2 | 7757 | from HTMLComponent import HTMLComponent
from GUIComponent import GUIComponent
from config import KEY_LEFT, KEY_RIGHT, KEY_HOME, KEY_END, KEY_0, KEY_DELETE, KEY_BACKSPACE, KEY_OK, KEY_TOGGLEOW, KEY_ASCII, KEY_TIMEOUT, KEY_NUMBERS, ConfigElement, ConfigText, ConfigPassword
from Components.ActionMap import NumberActionMap... | gpl-2.0 | -7,962,493,640,466,334,000 | 28.949807 | 193 | 0.709295 | false |
bjzhang/xen_arm | tools/python/xen/xend/XendBootloader.py | 35 | 7321 | #
# XendBootloader.py - Framework to run a boot loader for picking the kernel
#
# Copyright 2005-2006 Red Hat, Inc.
# Jeremy Katz <katzj@redhat.com>
#
# This software may be freely redistributed under the terms of the GNU
# general public license.
#
# You should have received a copy of the GNU General Public License
# ... | gpl-2.0 | -4,302,239,368,442,828,000 | 30.830435 | 77 | 0.586395 | false |
nopple/ctf | dosfun4u/pwn.py | 1 | 3301 | #!/usr/bin/env python
import socket, subprocess, sys
from struct import pack, unpack
global scenes
global officers
scenes = {}
officers = {}
remote = len(sys.argv) > 1
PORT = 8888
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if remote:
HOST = "dosfun4u_5d712652e1d06a362f7fc6d12d66755b.2014.shallweplayaga... | mit | 8,916,484,444,888,102,000 | 25.620968 | 131 | 0.668585 | false |
chainer/chainercv | examples/deeplab/demo.py | 3 | 2484 | import argparse
import matplotlib.pyplot as plt
import chainer
from chainercv.datasets import ade20k_semantic_segmentation_label_colors
from chainercv.datasets import ade20k_semantic_segmentation_label_names
from chainercv.datasets import cityscapes_semantic_segmentation_label_colors
from chainercv.datasets import c... | mit | -4,225,053,425,650,061,000 | 35 | 76 | 0.702093 | false |
Xeralux/tensorflow | tensorflow/python/keras/_impl/keras/datasets/fashion_mnist.py | 4 | 2141 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,402,314,261,342,004,000 | 33.532258 | 80 | 0.672583 | false |
sammyshj/stem | test/unit/tutorial_examples.py | 1 | 13989 | """
Tests for the examples given in stem's tutorial.
"""
import itertools
import os
import unittest
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
import stem.response
import stem.descriptor.remote
import stem.prereq
import test.runner
from stem import str_type
from stem.control... | lgpl-3.0 | 3,071,368,320,061,240,300 | 38.968571 | 142 | 0.70777 | false |
azogue/esiosdata | tests/test_pvpc_plots.py | 1 | 2211 | # -*- coding: utf-8 -*-
"""
Test Cases para datos de PVPC
"""
import os
from unittest import TestCase
class TestsPVPCPlots(TestCase):
"""Tests para el almacén local de datos de PVPC."""
def test_plots_matplotlib(self):
"""Test de plots de datos de PVPC."""
import matplotlib
matplotli... | mit | 5,550,065,073,658,788,000 | 39.181818 | 120 | 0.638009 | false |
jiwanlimbu/aura | keystone/tests/unit/utils.py | 4 | 3895 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 | 1,347,204,433,941,536,000 | 33.776786 | 78 | 0.550963 | false |
Fleurer/flask-oauthlib | example/google.py | 11 | 1905 | """
google example
~~~~~~~~~~~~~~
This example is contributed by Bruno Rocha
GitHub: https://github.com/rochacbruno
"""
from flask import Flask, redirect, url_for, session, request, jsonify
from flask_oauthlib.client import OAuth
app = Flask(__name__)
app.config['GOOGLE_ID'] = "cloud.google.com/cons... | bsd-3-clause | -5,106,320,304,414,557,000 | 25.09589 | 75 | 0.645669 | false |
matt-oak/euler | 35_circular_primes.py | 2 | 1061 | #Project Euler Problem #35
#Circular Primes
#Check if the number is prime
def is_prime(x):
prime = True
for i in range(2, x/2 + 1):
if x % i == 0:
prime = False
break
else:
continue
return prime
#Return rotation of list 'x'
def rotate(x, n):
return x[n:] + x[:n]
#Iterate through all odd numbers < 1... | mit | 1,540,910,615,525,741,800 | 19.803922 | 86 | 0.648445 | false |
lynxis/pkpgcounter | pkpgpdls/hbp.py | 1 | 2373 | # -*- coding: utf-8 -*-
#
# pkpgcounter: a generic Page Description Language parser
#
# (c) 2003-2009 Jerome Alet <alet@librelogiciel.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | gpl-3.0 | -8,211,449,209,254,833,000 | 31.067568 | 104 | 0.603877 | false |
jkstrick/samba | python/samba/dbchecker.py | 15 | 65845 | # Samba4 AD database checker
#
# Copyright (C) Andrew Tridgell 2011
# Copyright (C) Matthieu Patou <mat@matws.net> 2011
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the ... | gpl-3.0 | 9,082,774,087,875,641,000 | 44.853064 | 283 | 0.55778 | false |
CUFCTL/DLBD | face-detection-code/object_detection/core/standard_fields.py | 3 | 9329 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | mit | -876,625,569,367,002,400 | 42.593458 | 80 | 0.738557 | false |
hckiang/DBLite | boost_1_54_0/tools/build/v2/test/testing_support.py | 27 | 1970 | #!/usr/bin/python
# Copyright 2008 Jurko Gospodnetic
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
# Tests different aspects of Boost Builds automated testing support.
import BoostBuild
################################... | gpl-3.0 | 1,231,372,635,234,573,000 | 31.295082 | 83 | 0.559391 | false |
xen0l/ansible | lib/ansible/modules/cloud/azure/azure_rm_appserviceplan_facts.py | 4 | 7323 | #!/usr/bin/python
#
# Copyright (c) 2018 Yunge Zhu, <yungez@microsoft.com>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | gpl-3.0 | -2,816,926,059,863,115,300 | 29.640167 | 142 | 0.563977 | false |
blueburningcoder/pybrain | examples/rl/environments/cartpole/cart_fem.py | 30 | 1688 | #!/usr/bin/env python
#########################################################################
# Reinforcement Learning with FEM on the CartPoleEnvironment
#
# Requirements: pylab (for plotting only). If not available, comment the
# last 3 lines out
####################################################################... | bsd-3-clause | -2,547,020,447,445,384,700 | 36.511111 | 79 | 0.675948 | false |
gymnasium/edx-platform | common/djangoapps/third_party_auth/tests/test_middleware.py | 14 | 1586 | """
Tests for third party auth middleware
"""
import mock
from django.contrib.messages.middleware import MessageMiddleware
from django.http import HttpResponse
from django.test.client import RequestFactory
from requests.exceptions import HTTPError
from openedx.core.djangolib.testing.utils import skip_unless_lms
from t... | agpl-3.0 | -6,626,307,803,739,780,000 | 36.761905 | 111 | 0.722573 | false |
AdauriSilva/ifba-projeto2017.1 | main.py | 1 | 3201 | #-*-coding:utf8;-*- apenas no Qpython mobile
lista=""
produtos=[['NOME DO PRODUTO: ','VALIDADE: ','ESTADO: 1-SOLIDO 2-LIQUIDO 3-GASOSO','MASSA(Kg): ','PRECO (EM REAIS POR GRAMA): ']]
medicamentos=[['NOME DO MEDICAMENTO: ','PRINCIPIO ATIVO: ','CONCENTRACAO: ','VALIDADE: ','COMPOSICAO']]
funcionarios=[['NOME: ','SALARIO ... | gpl-3.0 | 4,984,166,948,084,962,000 | 32.925532 | 128 | 0.635936 | false |
tomkooij/sapphire | sapphire/tests/transformations/test_geographic.py | 1 | 1570 | import unittest
from sapphire.transformations import geographic
class GeographicTransformationTests(unittest.TestCase):
def setUp(self):
self.ref_lla = (52.35592417, 4.95114402, 56.10234594)
self.transform = geographic.FromWGS84ToENUTransformation(self.ref_lla)
def test_attributes(self):
... | gpl-3.0 | 6,101,746,015,349,972,000 | 35.511628 | 79 | 0.661146 | false |
SYHGroup/mau_mau_bot | internationalization.py | 2 | 4707 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Telegram bot to play UNO in group chats
# Copyright (c) 2016 Jannes Höke <uno@jhoeke.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundatio... | agpl-3.0 | 2,837,103,353,947,657,700 | 26.520468 | 74 | 0.580748 | false |
georgyberdyshev/ascend | pygtk/canvas/blocktype.py | 1 | 5395 | import pygtk
import re
pygtk.require('2.0')
import gtk
import ascpy
import os.path
import cairo
class BlockType():
"""
All data associated with the MODEL type that is represented by a block.
This includes the actual ASCEND TypeDescription as well as the NOTES that
are found to represent the inputs and outputs for... | gpl-2.0 | -6,843,942,618,406,928,000 | 29.480226 | 119 | 0.638369 | false |
kou/arrow | dev/archery/archery/utils/report.py | 6 | 1934 | # 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... | apache-2.0 | -4,725,650,479,019,826,000 | 29.21875 | 77 | 0.662875 | false |
Sumith1896/sympy | sympy/printing/tests/test_precedence.py | 77 | 2765 | from sympy.concrete.products import Product
from sympy.concrete.summations import Sum
from sympy.core.function import Derivative
from sympy.core.numbers import Integer, Rational, Float, oo
from sympy.core.relational import Rel
from sympy.core.symbol import symbols
from sympy.functions import sin
from sympy.integrals.in... | bsd-3-clause | -2,147,484,286,455,812,000 | 30.420455 | 70 | 0.671248 | false |
slzatz/esp8266 | conway_plus.py | 1 | 3401 | '''
This code implements Conways Game of Life using micropython on an ESP8266
It creates the color of a new life form based on the color of the three "parents"
Some code borrow from a video Lady Ada did
'''
from machine import Pin #freq
import neopixel
import utime
import uos
# at one point thought I had to increase... | mit | -4,634,686,732,048,949,000 | 29.918182 | 140 | 0.568362 | false |
nickweinberg/Python-Video-Poker-Sim | video_poker_sim/enumerations.py | 1 | 6955 | import numpy as np
import itertools
import numpy as np
import scipy.misc as sc
import cPickle as pickle
import itertools
from itertools import combinations
import sys
import os
import timeit
from hand_scoring import get_hand_type, payout
"""
1) Enumerate all the possibilties.
2) Save these data structures to disc.... | mit | 3,973,491,048,690,011,600 | 33.60199 | 86 | 0.598275 | false |
dharmabumstead/ansible | lib/ansible/module_utils/aws/waiters.py | 7 | 6747 | # Copyright: (c) 2018, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
try:
import botocore.waiter as core_waiter
except ImportError:
pass # caught by HAS_BOTO3
ec2_data = {
"version": 2,
"waiters": {
"RouteTableExists": {
... | gpl-3.0 | 6,202,891,225,532,822,000 | 30.528037 | 112 | 0.454572 | false |
claudelee/bilibili-api | GetVideoUrl/biliDownLoad.py | 2 | 2733 | #!/usr/bin/env python3
import sys
import gzip
import json
import hashlib
import re
import urllib.parse
import urllib.request
import xml.dom.minidom
import zlib
USER_AGENT = 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6'
APPKEY = '85eb6835b0a1034e'
APPSEC = '2ad42749773c4411... | mit | 8,379,472,834,232,661,000 | 34.16 | 232 | 0.633675 | false |
epigenomics/methylmaps | MethylAnalyzer/UtilityFuncs.py | 1 | 6046 | # Utility functions
"""
Utility functions
"""
import os
import re
import fnmatch
from types import IntType, LongType, FloatType, NoneType, StringType
from MethylAnalyzer.MethError import MethError
# Define epsilon
EPSILON = 0.0000001
def sortedDictValues(adict):
"Sort a dict"
keys = adict.keys()
keys.s... | gpl-3.0 | -3,655,132,230,393,646,600 | 26.607306 | 68 | 0.579226 | false |
priyaganti/rockstor-core | src/rockstor/smart_manager/views/base_service.py | 2 | 3648 | """
Copyright (c) 2012-2013 RockStor, Inc. <http://rockstor.com>
This file is part of RockStor.
RockStor is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any la... | gpl-3.0 | -4,754,179,663,635,151,000 | 34.764706 | 96 | 0.640899 | false |
michael-dev2rights/ansible | lib/ansible/modules/cloud/amazon/rds_snapshot_facts.py | 1 | 5139 | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | gpl-3.0 | 1,031,199,106,126,059,600 | 31.11875 | 104 | 0.658105 | false |
linkedin/indextank-service | backoffice/lib/flaptor_logging.py | 4 | 3368 | import logging as pylogging
from logging import config
import os
usingNativeLogger = True
__loggers = {}
def get_logger(name, force_new=False):
'''Get the Logger instance for a given name'''
global __loggers
if __loggers is None:
__loggers = {}
if force_new:
return pylogging.getLog... | apache-2.0 | -4,077,849,168,234,189,000 | 32.68 | 97 | 0.590558 | false |
makyo/honeycomb | administration/ban_views.py | 2 | 4290 | from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth import logout
from django.contrib.auth.decorators import (
login_required,
permission_required,
)
from django.contrib.auth.models import User
from django.contrib import messages
from django.db.models import Q
from d... | mit | 6,471,479,856,083,493,000 | 30.086957 | 74 | 0.638462 | false |
citrix-openstack-build/tempest | tempest/cli/simple_read_only/test_keystone.py | 6 | 5000 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apach... | apache-2.0 | -754,083,462,413,544,800 | 36.878788 | 79 | 0.6262 | false |
RPGOne/Skynet | pytorch-master/torch/nn/functional.py | 1 | 24489 | """Functional interface"""
import torch
from . import _functions
from .modules import utils
from ._functions.padding import ConstantPad2d
from .modules.utils import _single, _pair, _triple
# Convolutions
ConvNd = torch._C._functions.ConvNd
def conv2d(input, weight, bias=None, stride=1, padding=0, dilation=1,
... | bsd-3-clause | 8,468,179,904,864,877,000 | 36.502297 | 119 | 0.644003 | false |
igord-daynix/virt-test | shared/deps/serial/serial_host_send_receive.py | 9 | 6462 | #!/usr/bin/python
import os
import socket
import struct
import optparse
try:
import hashlib
except ImportError:
import md5
class Md5MissMatch(Exception):
def __init__(self, md5_pre, md5_post):
Exception.__init__(self, md5_pre, md5_post)
self.md5_pre = md5_pre
self.md5_post = md5... | gpl-2.0 | -81,704,808,578,228,690 | 29.771429 | 76 | 0.57459 | false |
raulanatol/awsebcli | ebcli/core/completer.py | 1 | 4631 | # Copyright 2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | apache-2.0 | 137,320,620,154,443,020 | 39.278261 | 83 | 0.581948 | false |
msmolens/VTK | Charts/Core/Testing/Python/TestLinePlot.py | 26 | 2094 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import vtk
import vtk.test.Testing
import math
class TestLinePlot(vtk.test.Testing.vtkTest):
def testLinePlot(self):
"Test if line plots can be built with python"
# Set up a 2D scene, add an XY chart to it
view = vtk.vtkContextView()... | bsd-3-clause | -7,446,298,674,415,161,000 | 27.684932 | 117 | 0.599331 | false |
aronparsons/spacewalk | client/tools/rhnpush/rhnpush_confmanager.py | 4 | 4950 | #
# Copyright (c) 2008--2015 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a c... | gpl-2.0 | -7,685,748,045,511,053,000 | 40.949153 | 116 | 0.640202 | false |
Subsets and Splits
Gradio Code Samples
Limits the results to entries containing the word 'gradio' in the repo_name, content, or path, providing a filtered subset of the dataset.