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 |
|---|---|---|---|---|---|---|---|---|---|---|
vlvkobal/netdata | collectors/python.d.plugin/python_modules/urllib3/contrib/_securetransport/low_level.py | 4 | 12093 | # SPDX-License-Identifier: MIT
"""
Low-level helpers for the SecureTransport bindings.
These are Python functions that are not directly related to the high-level APIs
but are necessary to get them to work. They include a whole bunch of low-level
CoreFoundation messing about and memory management. The concerns in this ... | gpl-3.0 | 5,662,235,608,230,375,000 | 34.15407 | 79 | 0.657984 | false |
egoid/baytree | lib/python2.7/site-packages/environ/environ.py | 3 | 26771 | """
Django-environ allows you to utilize 12factor inspired environment
variables to configure your Django application.
"""
import json
import logging
import os
import re
import sys
import warnings
try:
from django.core.exceptions import ImproperlyConfigured
except ImportError:
class ImproperlyConfigured(Except... | mit | -4,690,802,273,061,514,000 | 33.543226 | 211 | 0.557095 | false |
TintypeMolly/Yuzuki | resource/board.py | 2 | 1155 | # -*- coding: utf-8 -*-
from config.config import ARTICLE_PER_PAGE
from exception import Unauthorized
from helper.model_control import get_board, get_article_page
from helper.permission import is_anybody, can_write
from helper.resource import YuzukiResource
from helper.template import render_template
class Board(Yuzu... | mit | 945,160,678,963,211,600 | 38.827586 | 67 | 0.638095 | false |
mschilli87/cdshelf | messages.py | 1 | 8350 | # cdshelf message definitions
# Copyright (C) 2017 Marcel Schilling
#
# 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 Foundation, either version 3 of the
# License, or (at your option) any later ver... | agpl-3.0 | 860,740,720,043,005,300 | 34.531915 | 97 | 0.655689 | false |
jswope00/griffinx | common/lib/xmodule/xmodule/tests/test_graders.py | 102 | 12238 | """Grading tests"""
import unittest
from xmodule import graders
from xmodule.graders import Score, aggregate_scores
class GradesheetTest(unittest.TestCase):
'''Tests the aggregate_scores method'''
def test_weighted_grading(self):
scores = []
Score.__sub__ = lambda me, other: (me.earned - oth... | agpl-3.0 | -8,024,349,287,573,235,000 | 50.420168 | 118 | 0.614234 | false |
olapaola/olapaola-android-scripting | python/src/Lib/test/test_epoll.py | 51 | 6269 | # Copyright (c) 2001-2006 Twisted Matrix Laboratories.
#
# 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, m... | apache-2.0 | -6,494,208,377,756,241,000 | 31.148718 | 77 | 0.618121 | false |
google-code-export/pyglet | tests/font/VALIGN.py | 19 | 1049 | #!/usr/bin/env python
'''Test that font.Text vertical alignment works.
Four labels will be aligned top, center, baseline and bottom.
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
import unittest
from pyglet import gl
from pyglet import font
from . import base_text
class TEST_VALIGN(base_text.Text... | bsd-3-clause | -501,370,001,351,313,860 | 21.804348 | 74 | 0.582459 | false |
FedoraScientific/salome-geom | doc/salome/examples/basic_operations_ex01.py | 1 | 1302 | # Partition
import salome
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New(salome.myStudy)
gg = salome.ImportComponentGUI("GEOM")
# create a vertex and a vector
p0 = geompy.MakeVertex( 0., 0., 0.)
p200 = geompy.MakeVertex(200., 200., 200.)
pz = geompy.MakeVertex( ... | lgpl-2.1 | -6,665,625,908,017,660,000 | 28.590909 | 65 | 0.760369 | false |
zhenv5/scikit-learn | sklearn/metrics/cluster/tests/test_unsupervised.py | 230 | 2823 | import numpy as np
from scipy.sparse import csr_matrix
from sklearn import datasets
from sklearn.metrics.cluster.unsupervised import silhouette_score
from sklearn.metrics import pairwise_distances
from sklearn.utils.testing import assert_false, assert_almost_equal
from sklearn.utils.testing import assert_raises_regexp... | bsd-3-clause | 4,424,511,523,184,648,000 | 39.328571 | 78 | 0.622388 | false |
ahu-odoo/odoo | addons/l10n_in/__init__.py | 702 | 1046 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 8,720,150,055,452,500,000 | 44.478261 | 78 | 0.610899 | false |
ksophocleous/grpc | src/python/grpcio/grpc/framework/foundation/abandonment.py | 63 | 1822 | # Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | 2,162,653,407,561,380,600 | 46.947368 | 73 | 0.782108 | false |
Poppin-Tech/mitro | mitro-core/tools/txnsim.py | 25 | 1305 | #!/usr/bin/env python
import sys
import random
import heapq
DISTRIBUTION = [
341,
444,
551,
656,
765,
906,
1130,
1588,
3313,
84399
]
EVENTS_PER_MS = 5754. / 431997259
# do a simulation
MAX_TIME = 60 * 60 * 24 * 1000
if __name__ == '__main__':
scale_factor = int(sys.argv[1])
exp_lambda = (EVENTS_PER_MS * sc... | gpl-3.0 | -1,092,630,133,494,850,000 | 24.096154 | 98 | 0.648276 | false |
crazcalm/PyTN_talk_proposal | recipies/recipe1/tests/test_fib.py | 1 | 1634 | import unittest
import fib
class Testing(unittest.TestCase):
def test_testing(self):
self.assertEqual(1,1, "Of course it does!")
class Fib_(unittest.TestCase):
def setUp(self):
self.fib = fib.fib2
def basecase_num_1(self):
self.assertEqual(self.fib(1), 0, "fib num 1 is not c... | mit | -1,901,700,942,460,183,000 | 23.029412 | 88 | 0.604039 | false |
edxnercel/edx-platform | common/djangoapps/status/status.py | 48 | 1463 | """
A tiny app that checks for a status message.
"""
from django.conf import settings
from django.core.cache import cache
import json
import logging
import os
log = logging.getLogger(__name__)
def get_site_status_msg(course_id):
"""
Look for a file settings.STATUS_MESSAGE_PATH. If found, read it,
parse... | agpl-3.0 | -22,664,892,767,983,550 | 27.686275 | 91 | 0.609706 | false |
jjscarafia/odoo | addons/website_forum/__openerp__.py | 321 | 1905 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | agpl-3.0 | -8,554,594,674,376,818,000 | 31.844828 | 78 | 0.560105 | false |
shakamunyi/tensorflow | tensorflow/python/kernel_tests/session_ops_test.py | 104 | 10517 | # 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 | 6,369,769,359,308,379,000 | 33.824503 | 80 | 0.612342 | false |
DongjunLee/kino-bot | kino/skills/weather.py | 1 | 3681 | # -*- coding: utf-8 -*-
import arrow
import forecastio
from geopy.geocoders import Nominatim
from hbconfig import Config
from urllib import parse
from ..open_api.airkoreaPy import AirKorea
from ..slack.resource import MsgResource
from ..slack.slackbot import SlackerAdapter
from ..slack.template import MsgTemplate
f... | mit | 3,431,506,967,756,160,000 | 33.650943 | 88 | 0.609039 | false |
DemocracyClub/EveryElection | every_election/apps/organisations/boundaries/osni.py | 1 | 1622 | import json
import urllib.request
from urllib.error import HTTPError
from retry import retry
from django.contrib.gis.geos import GEOSGeometry
from storage.shapefile import convert_geom_to_multipolygon
class OsniLayer:
@retry(HTTPError, tries=2, delay=30)
def get_data_from_url(self, url):
with urllib.r... | bsd-3-clause | 580,949,853,249,776,000 | 35.044444 | 83 | 0.555487 | false |
SachaMPS/django-cms | cms/utils/admin.py | 22 | 4578 | # -*- coding: utf-8 -*-
import json
from django.contrib.auth import get_permission_codename
from django.contrib.sites.models import Site
from django.http import HttpResponse
from django.shortcuts import render
from django.utils.encoding import smart_str
from cms.constants import PUBLISHER_STATE_PENDING, PUBLISHER_STA... | bsd-3-clause | -656,373,848,910,807,000 | 39.513274 | 114 | 0.659458 | false |
183amir/gahshomar | src/GahShomar/gs_main_window.py | 1 | 10779 | #!/usr/bin/env python3
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: s; tab-width: 4 -*-
#
# Copyright (C) 2014 Amir Mohammadi <183.amir@gmail.com>
#
# Gahshomar 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 Foun... | gpl-3.0 | 2,872,859,086,171,501,000 | 33.342949 | 102 | 0.608026 | false |
migueldiascosta/pymatgen-db | matgendb/vv/validate.py | 1 | 25272 | """
Collection validator
"""
__author__ = "Dan Gunter"
__copyright__ = "Copyright 2012-2013, The Materials Project"
__version__ = "1.0"
__maintainer__ = "Dan Gunter"
__email__ = "dkgunter@lbl.gov"
__status__ = "Development"
__date__ = "1/31/13"
import pymongo
import random
import re
import sys
import collections
from... | mit | 5,023,407,409,135,420,000 | 33.809917 | 113 | 0.578585 | false |
with-git/tensorflow | tensorflow/contrib/training/python/training/sampling_ops_threading_test.py | 129 | 2884 | # 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 | -4,586,889,531,062,937,600 | 36.454545 | 97 | 0.705617 | false |
nirmeshk/oh-mainline | vendor/packages/Django/django/views/generic/edit.py | 102 | 8569 | from django.forms import models as model_forms
from django.core.exceptions import ImproperlyConfigured
from django.http import HttpResponseRedirect
from django.utils.encoding import force_text
from django.views.generic.base import TemplateResponseMixin, ContextMixin, View
from django.views.generic.detail import (Single... | agpl-3.0 | -6,271,064,896,874,330,000 | 30.388278 | 79 | 0.609056 | false |
ctherien/pysptools | pysptools/skl/km.py | 1 | 4885 | #
#------------------------------------------------------------------------------
# Copyright (c) 2013-2014, Christian Therien
#
# 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
#
# h... | apache-2.0 | -3,360,168,922,327,206,000 | 38.371901 | 231 | 0.586899 | false |
yujikato/DIRAC | src/DIRAC/TransformationSystem/Agent/TransformationAgent.py | 1 | 30031 | """ TransformationAgent processes transformations found in the transformation database.
The following options can be set for the TransformationAgent.
.. literalinclude:: ../ConfigTemplate.cfg
:start-after: ##BEGIN TransformationAgent
:end-before: ##END
:dedent: 2
:caption: TransformationAgent options
"""
fro... | gpl-3.0 | -3,677,857,157,298,978,300 | 41.416667 | 114 | 0.655789 | false |
NeCTAR-RC/nova | nova/cells/weights/ram_by_instance_type.py | 22 | 1674 | # Copyright (c) 2012-2013 Rackspace Hosting
# 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
#
# Unles... | apache-2.0 | -1,626,902,760,517,339,100 | 35.391304 | 78 | 0.694146 | false |
svanschalkwyk/datafari | windows/python/Lib/curses/__init__.py | 108 | 1817 | """curses
The main package for curses support for Python. Normally used by importing
the package, and perhaps a particular module inside it.
import curses
from curses import textpad
curses.initscr()
...
"""
__revision__ = "$Id$"
from _curses import *
from curses.wrapper import wrapper
import os as _os... | apache-2.0 | -3,518,657,647,589,238,000 | 29.79661 | 77 | 0.682994 | false |
partofthething/home-assistant | homeassistant/helpers/device_registry.py | 1 | 29903 | """Provide a way to connect entities belonging to one device."""
from collections import OrderedDict
import logging
import time
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Tuple, Union, cast
import attr
from homeassistant.const import EVENT_HOMEASSISTANT_STARTED
from homeassistant.core import Ev... | mit | 3,375,203,705,800,347,000 | 36.332085 | 109 | 0.604622 | false |
Dhivyap/ansible | test/units/modules/network/netvisor/test_pn_role.py | 23 | 2994 | # Copyright: (c) 2018, Pluribus Networks
# 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
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_role
from un... | gpl-3.0 | 7,581,054,117,566,458,000 | 39.459459 | 106 | 0.599866 | false |
iotile/coretools | iotilecore/test/test_schema_verify/test_dict_verifier.py | 1 | 2701 | import pytest
from iotile.core.utilities.schema_verify import BytesVerifier, DictionaryVerifier, ListVerifier, StringVerifier, IntVerifier, BooleanVerifier, LiteralVerifier, OptionsVerifier
from iotile.core.exceptions import ValidationError
@pytest.fixture
def verifier1():
ver = DictionaryVerifier('test verifier'... | gpl-3.0 | 6,599,125,130,792,664,000 | 22.902655 | 175 | 0.639023 | false |
veger/ansible | test/units/modules/storage/netapp/test_netapp_e_auditlog.py | 68 | 10758 | # (c) 2018, NetApp Inc.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from ansible.modules.storage.netapp.netapp_e_auditlog import AuditLog
from units.modules.utils import AnsibleFailJson, ModuleTestCase, set_module_args
__metaclass__ = type
from units.compat import mock... | gpl-3.0 | -8,889,623,983,558,540,000 | 44.974359 | 120 | 0.545362 | false |
markYoungH/chromium.src | build/android/pylib/base/base_test_result.py | 9 | 5913 | # Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Module containing base test results classes."""
class ResultType(object):
"""Class enumerating test types."""
PASS = 'PASS'
SKIP = 'SKIP'
FAI... | bsd-3-clause | 1,142,975,556,149,728,300 | 27.565217 | 78 | 0.618637 | false |
ubc/edx-platform | lms/djangoapps/lti_provider/tests/test_signature_validator.py | 139 | 3804 | """
Tests for the SignatureValidator class.
"""
import ddt
from django.test import TestCase
from django.test.client import RequestFactory
from mock import patch
from lti_provider.models import LtiConsumer
from lti_provider.signature_validator import SignatureValidator
def get_lti_consumer():
"""
Helper meth... | agpl-3.0 | -6,367,143,311,554,669,000 | 31.512821 | 85 | 0.667192 | false |
wrcj12138aaa/WinObjC | deps/3rdparty/icu/icu/source/test/depstest/depstest.py | 189 | 7263 | #! /usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2011-2014, International Business Machines
# Corporation and others. All Rights Reserved.
#
# file name: depstest.py
#
# created on: 2011may24
"""ICU dependency tester.
This probably works only on Linux.
The exit code is 0 if everything is fine, 1 for erro... | mit | -3,970,972,555,912,293,400 | 36.056122 | 122 | 0.647391 | false |
ralphcallaway/MavensMate-SublimeText | lib/command_helper.py | 8 | 3236 | def get_message(params, operation):
message = 'Handling requested operation...'
if operation == 'new-metadata':
message = 'Opening New Metadata UI'
elif operation == 'compile-metadata':
if 'paths' in params and len(params['paths']) == 1:
what = params['paths'][0]
if '... | gpl-3.0 | -8,956,468,447,300,233,000 | 42.72973 | 89 | 0.578183 | false |
r0balo/pelisalacarta | python/main-classic/servers/thevideome.py | 2 | 2392 | # -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Conector para thevideo.me
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import re
from core import httptools
from core import l... | gpl-3.0 | -8,058,631,458,559,614,000 | 34.132353 | 119 | 0.585182 | false |
eduNEXT/edunext-platform | lms/djangoapps/instructor_task/tests/test_tasks.py | 2 | 29965 | """
Unit tests for LMS instructor-initiated background tasks.
Runs tasks on answers to course problems to validate that code
paths actually work.
"""
import json
from functools import partial
from uuid import uuid4
import ddt
from celery.states import FAILURE, SUCCESS
from django.utils.translation import ugettext_n... | agpl-3.0 | -41,217,207,585,190,660 | 42.680758 | 133 | 0.648123 | false |
ebewe/mangopay2-python-sdk | mangopaysdk/tools/authenticationHelper.py | 2 | 1347 | from requests.auth import HTTPBasicAuth
from requests_oauthlib import OAuth2
from mangopaysdk.tools import enums
from mangopaysdk.configuration import Configuration
class AuthenticationHelper:
# Root/parent MangoPayApi instance that holds the OAuthToken and Configuration instance
_root = None
def __init... | mit | 8,642,834,922,043,002,000 | 43.9 | 110 | 0.697105 | false |
ogenstad/ansible | lib/ansible/modules/network/aireos/aireos_command.py | 73 | 6929 | #!/usr/bin/python
#
# Copyright: Ansible Team
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | 5,772,420,983,546,892,000 | 31.078704 | 92 | 0.649589 | false |
cprogrammer1994/ModernGL | examples/ported/hello_program.py | 1 | 1088 | import numpy as np
import _example
class Example(_example.Example):
title = 'Hello Program'
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.prog = self.ctx.program(
vertex_shader='''
#version 330
in vec2 in_vert;
vo... | mit | -1,074,657,872,704,072,100 | 21.666667 | 72 | 0.430147 | false |
ronert/cf-predict | setup.py | 1 | 1175 | #!/usr/bin/env python
"""Setup script for cf-predict."""
import setuptools
from cf_predict import __project__, __version__
try:
README = open("README.rst").read()
CHANGES = open("CHANGES.rst").read()
except IOError:
DESCRIPTION = "<placeholder>"
else:
DESCRIPTION = README + '\n' + CHANGES
setuptool... | mit | -1,560,897,552,955,384,300 | 26.325581 | 115 | 0.644255 | false |
trenton3983/Fluent_Python | 09-pythonic-obj/vector2d_v2_fmt_snippet.py | 7 | 2700 | """
A 2-dimensional vector class
>>> v1 = Vector2d(3, 4)
>>> x, y = v1
>>> x, y
(3.0, 4.0)
>>> v1
Vector2d(3.0, 4.0)
>>> v1_clone = eval(repr(v1))
>>> v1 == v1_clone
True
>>> print(v1)
(3.0, 4.0)
>>> octets = bytes(v1)
>>> octets
b'\\x00\\x00\\x00\\x00\\x00\\x00\... | mit | 294,489,565,094,798,200 | 21.689076 | 79 | 0.500741 | false |
endolith/numpy | numpy/distutils/fcompiler/__init__.py | 6 | 39984 | """numpy.distutils.fcompiler
Contains FCompiler, an abstract base class that defines the interface
for the numpy.distutils Fortran compiler abstraction model.
Terminology:
To be consistent, where the term 'executable' is used, it means the single
file, like 'gcc', that is executed, and should be a string. In contras... | bsd-3-clause | 8,601,274,221,655,788,000 | 37.932814 | 112 | 0.568252 | false |
deepmind/open_spiel | open_spiel/python/algorithms/double_oracle_test.py | 1 | 2223 | # Copyright 2019 DeepMind Technologies Ltd. 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 appl... | apache-2.0 | 7,290,344,994,546,686,000 | 36.677966 | 79 | 0.723797 | false |
sankhesh/VTK | ThirdParty/Twisted/twisted/trial/runner.py | 28 | 26163 | # -*- test-case-name: twisted.trial.test.test_runner -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
A miscellany of code used to run Trial tests.
Maintainer: Jonathan Lange
"""
__all__ = [
'TestSuite',
'DestructiveTestSuite', 'DryRunVisitor', 'ErrorHolder', 'LoggedSuite',
... | bsd-3-clause | -1,549,286,309,801,883,100 | 31.909434 | 83 | 0.607384 | false |
fabrice-lecuyer/QuantLib-SWIG | Python/examples/bermudan-swaption.py | 2 | 7897 |
# Copyright (C) 2004, 2005, 2006, 2007 StatPro Italia srl
#
# This file is part of QuantLib, a free-software/open-source library
# for financial quantitative analysts and developers - http://quantlib.org/
#
# QuantLib is free software: you can redistribute it and/or modify it under the
# terms of the QuantLib license.... | bsd-3-clause | 4,506,369,153,523,742,700 | 34.572072 | 80 | 0.681525 | false |
jamespcole/home-assistant | homeassistant/components/cloud/__init__.py | 1 | 6414 | """Component to integrate the Home Assistant cloud."""
import logging
import voluptuous as vol
from homeassistant.auth.const import GROUP_ID_ADMIN
from homeassistant.components.alexa import smart_home as alexa_sh
from homeassistant.components.google_assistant import const as ga_c
from homeassistant.const import (
... | apache-2.0 | 3,204,028,627,698,593,300 | 31.393939 | 79 | 0.69551 | false |
ODM2/ODM2StreamingDataLoader | src/wizard/view/clsDataConfigPanel.py | 1 | 7327 | import sys
import wx
#import wx.lib.agw.ultimatelistctrl as ULC
from ObjectListView import ObjectListView, ColumnDefn
import wx.lib.mixins.gridlabelrenderer as glr
from src.wizard.controller.frmVirtualList import VirtualList
from src.wizard.controller.frmVirtualGrid import VirtualGrid, GridBase
#from lib.ObjectListView... | bsd-3-clause | 7,880,163,223,661,798,000 | 40.868571 | 166 | 0.621673 | false |
amosonn/distributed | distributed/bokeh/workers/main.py | 2 | 2796 | #!/usr/bin/env python
from __future__ import print_function, division, absolute_import
import json
import os
from bokeh.io import curdoc
from bokeh.layouts import column, row
from toolz import valmap
from tornado import gen
from distributed.core import rpc
from distributed.bokeh.worker_monitor import (worker_table... | bsd-3-clause | -744,990,268,573,397,600 | 27.824742 | 78 | 0.632332 | false |
tedi3231/openerp | build/lib/openerp/addons/google_base_account/wizard/__init__.py | 62 | 1076 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | -1,544,963,445,426,616,800 | 42.04 | 79 | 0.609665 | false |
saquiba2/numpytry | numpy/distutils/fcompiler/__init__.py | 152 | 38302 | """numpy.distutils.fcompiler
Contains FCompiler, an abstract base class that defines the interface
for the numpy.distutils Fortran compiler abstraction model.
Terminology:
To be consistent, where the term 'executable' is used, it means the single
file, like 'gcc', that is executed, and should be a string. In contras... | bsd-3-clause | -7,768,176,588,205,273,000 | 37.728008 | 112 | 0.566602 | false |
clemkoa/scikit-learn | sklearn/covariance/graph_lasso_.py | 7 | 27246 | """GraphLasso: sparse inverse covariance estimation with an l1-penalized
estimator.
"""
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# License: BSD 3 clause
# Copyright: INRIA
import warnings
import operator
import sys
import time
import numpy as np
from scipy import linalg
from .empirical_covariance_ im... | bsd-3-clause | -3,775,820,169,605,758,500 | 37.428773 | 80 | 0.588784 | false |
nicememory/pie | pyglet/tests/unit/media/test_riff.py | 1 | 2225 | """
Test the internal RIFF reader.
"""
import os
import unittest
from pyglet.media.sources.riff import WaveSource
test_data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'data', 'media'))
class RiffTest(unittest.TestCase):
def test_pcm_16_11025_1ch(self):
file_name = os.path... | apache-2.0 | 1,425,746,710,351,412,200 | 32.712121 | 101 | 0.637753 | false |
pemryan/DAKOTA | packages/plplot/examples/python/x08.py | 1 | 1883 | #!/usr/bin/env python
#
# x08c.c
#
# 3-d plot demo.
from Numeric import *
import math
#import pl
import sys
import os
module_dir = "@MODULE_DIR@"
if module_dir[0] == '@':
module_dir = os.getcwd ()
sys.path.insert (0, module_dir)
XPTS = 35 # Data points in x
YPTS = 46 # Data points in y
opt = [1, 2, 3, 3]
alt ... | lgpl-2.1 | -4,840,893,480,338,395,000 | 19.247312 | 65 | 0.528943 | false |
MaxMorgenstern/EmeraldAI | EmeraldAI/Pipelines/ScopeAnalyzer/AnalyzeScope.py | 1 | 4673 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from EmeraldAI.Logic.Singleton import Singleton
from EmeraldAI.Logic.NLP.SentenceResolver import SentenceResolver
from EmeraldAI.Entities.ContextParameter import ContextParameter
from EmeraldAI.Entities.User import User
from EmeraldAI.Config.Config import Config
from EmeraldAI.... | apache-2.0 | -2,745,273,011,189,876,000 | 52.102273 | 191 | 0.693773 | false |
google/llvm-propeller | lldb/third_party/Python/module/pexpect-4.6/pexpect/popen_spawn.py | 16 | 6161 | """Provides an interface like pexpect.spawn interface using subprocess.Popen
"""
import os
import threading
import subprocess
import sys
import time
import signal
import shlex
try:
from queue import Queue, Empty # Python 3
except ImportError:
from Queue import Queue, Empty # Python 2
from .spawnbase import ... | apache-2.0 | 5,665,028,527,261,328,000 | 31.771277 | 79 | 0.564194 | false |
apyrgio/ganeti | test/py/cmdlib/testsupport/utils_mock.py | 11 | 1826 | #
#
# Copyright (C) 2013 Google Inc.
# 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. Redistributions of source code must retain the above copyright notice,
# this list of conditions and ... | bsd-2-clause | 7,004,566,221,286,669,000 | 37.041667 | 76 | 0.770537 | false |
hperala/kontuwikibot | tests/upload_tests.py | 1 | 1395 | # -*- coding: utf-8 -*-
"""
Site upload test.
These tests write to the wiki.
"""
#
# (C) Pywikibot team, 2014
#
# Distributed under the terms of the MIT license.
#
from __future__ import unicode_literals
__version__ = '$Id: 4d1b1ea2f42aee542722240c9618cc72b4f1bcbb $'
import os
import pywikibot
from tests import _... | mit | -2,176,892,816,398,079,200 | 24.833333 | 73 | 0.61362 | false |
zlorb/mitmproxy | mitmproxy/net/http/url.py | 4 | 3398 | import urllib.parse
from typing import Sequence
from typing import Tuple
from mitmproxy.net import check
def parse(url):
"""
URL-parsing function that checks that
- port is an integer 0-65535
- host is a valid IDNA-encoded hostname with no null-bytes
- path is valid AS... | mit | 5,615,086,923,041,963,000 | 26.852459 | 102 | 0.602413 | false |
linjoahow/2015cdaa-w11 | static/Brython3.1.1-20150328-091302/Lib/sys.py | 408 | 4998 | # hack to return special attributes
from _sys import *
from javascript import JSObject
has_local_storage=__BRYTHON__.has_local_storage
has_session_storage = __BRYTHON__.has_session_storage
has_json=__BRYTHON__.has_json
brython_debug_mode = __BRYTHON__.debug
argv = ['__main__']
base_exec_prefix = __BRYTHON__.brython_... | gpl-3.0 | -5,711,144,831,318,998,000 | 27.237288 | 153 | 0.633653 | false |
krikru/tensorflow-opencl | tensorflow/python/framework/file_system_test.py | 18 | 2120 | # 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 | -470,137,944,719,005,440 | 36.192982 | 79 | 0.698585 | false |
NotLeet/n0tb0t | tests/unit_tests/test_commands.py | 2 | 6471 | from enum import Enum, auto
from inspect import getsourcefile
import os
import sys
from unittest.mock import Mock
import pytest
from collections import deque
current_path = os.path.abspath(getsourcefile(lambda: 0))
current_dir = os.path.dirname(current_path)
root_dir = os.path.join(current_dir, os.pardir, os.pardir)
... | gpl-3.0 | -8,735,629,660,847,394,000 | 43.627586 | 147 | 0.73698 | false |
seppius-xbmc-repo/ru | plugin.video.shura.tv/resources/lib/demjson.py | 1 | 90082 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
r""" A JSON data encoder and decoder.
This Python module implements the JSON (http://json.org/) data
encoding format; a subset of ECMAScript (aka JavaScript) for encoding
primitive data types (numbers, strings, booleans, lists, and
associative arrays) in a la... | gpl-2.0 | 3,754,910,389,588,038,700 | 40.134705 | 153 | 0.513221 | false |
bdrung/audacity | lib-src/lv2/sratom/waflib/extras/autowaf.py | 176 | 22430 | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
import glob
import os
import subprocess
import sys
from waflib import Configure,Context,Logs,Node,Options,Task,Utils
from waflib.TaskGen import feature,before,after
global g_i... | gpl-2.0 | -6,744,448,690,165,113,000 | 38.076655 | 337 | 0.682613 | false |
sneaker-rohit/PI2-ns-3 | src/lte/doc/source/conf.py | 93 | 7620 | # -*- coding: utf-8 -*-
#
# ns-3 documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 14 09:00:39 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All co... | gpl-2.0 | 7,584,140,077,739,495,000 | 33.165919 | 155 | 0.709804 | false |
hshindo/POS-Tagging-benchmark | Theano/layer.py | 1 | 1138 | __author__ = 'hiroki'
import theano
import theano.tensor as T
import numpy as np
from nn_utils import sigmoid
class Layer(object):
def __init__(self, rand, input=None, n_input=784, n_output=10, activation=None, W=None, b=None):
self.input = input
if W is None:
W_values = np.asarray(... | mit | 7,231,351,012,797,396,000 | 28.973684 | 100 | 0.531634 | false |
yize/grunt-tps | tasks/lib/python/Lib/python2.7/distutils/command/build.py | 250 | 5437 | """distutils.command.build
Implements the Distutils 'build' command."""
__revision__ = "$Id$"
import sys, os
from distutils.util import get_platform
from distutils.core import Command
from distutils.errors import DistutilsOptionError
def show_compilers():
from distutils.ccompiler import show_compilers
show... | mit | 4,710,222,961,085,303,000 | 35.986395 | 76 | 0.568696 | false |
sinhrks/numpy | numpy/polynomial/__init__.py | 123 | 1119 | """
A sub-package for efficiently dealing with polynomials.
Within the documentation for this sub-package, a "finite power series,"
i.e., a polynomial (also referred to simply as a "series") is represented
by a 1-D numpy array of the polynomial's coefficients, ordered from lowest
order term to highest. For example, a... | bsd-3-clause | 370,862,031,989,680,400 | 40.444444 | 76 | 0.774799 | false |
kursitet/edx-platform | lms/djangoapps/course_api/tests/test_permissions.py | 61 | 1738 | """
Test authorization functions
"""
from django.contrib.auth.models import AnonymousUser
from django.test import TestCase
from .mixins import CourseApiFactoryMixin
from ..permissions import can_view_courses_for_username
class ViewCoursesForUsernameTestCase(CourseApiFactoryMixin, TestCase):
"""
Verify func... | agpl-3.0 | 4,960,536,296,207,132,000 | 35.208333 | 105 | 0.720944 | false |
mlalic/servo | tests/wpt/web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/cors/support/cors-tester.py | 238 | 1454 | from wptserve.handlers import HTTPException
import urllib
def main(request, response):
if request.method != "GET":
raise HTTPException(400, message="Method was not GET")
if not "id" in request.GET:
raise HTTPException(400, message="No id")
id = request.GET['id']
if "read" in request.... | mpl-2.0 | -981,979,898,868,586,200 | 27.509804 | 82 | 0.611417 | false |
swjtuacmer/Ranker | Ranker/venv/lib/python2.7/site-packages/wheel/test/test_tagopt.py | 326 | 5927 | """
Tests for the bdist_wheel tag options (--python-tag, --universal, and
--plat-name)
"""
import sys
import shutil
import pytest
import py.path
import tempfile
import subprocess
SETUP_PY = """\
from setuptools import setup, Extension
setup(
name="Test",
version="1.0",
author_email="author@example.com",
... | mit | -7,179,192,441,138,223,000 | 32.676136 | 88 | 0.636578 | false |
cb1234/pynet-test | pynet/learnpy_ecourse/class7/ex2_ospf_parsing.py | 4 | 1353 | #!/usr/bin/env python
'''
Open the ./OSPF_DATA/ospf_single_interface.txt and extract the interface, IP
address, area, type, cost, hello timer, and dead timer. Use regular expressions
to accomplish your extraction.
Your output should look similar to the following:
Int: GigabitEthernet0/1
IP: 172.16.13.150/29
... | apache-2.0 | -577,842,852,420,709,600 | 24.055556 | 89 | 0.616408 | false |
Guts/Metadator | test/test_odf_genexample.py | 1 | 12252 | # -*- coding: UTF-8 -*-
#!/usr/bin/env python
from __future__ import unicode_literals
# odfpy_gen_example.py
# http://mashupguide.net/1.0/html/ch17s04.xhtml
"""
Description: This program used odfpy to generate a simple ODF text document
odfpy: http://opendocumentfellowship.com/projects/odfpy
documentation for o... | gpl-3.0 | 1,636,435,713,717,730,600 | 30.488432 | 139 | 0.721016 | false |
Dhivyap/ansible | lib/ansible/modules/cloud/google/gcp_mlengine_model_info.py | 3 | 6467 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... | gpl-3.0 | -6,587,426,723,762,699,000 | 30.546341 | 100 | 0.605072 | false |
writefaruq/lionface-app | django/core/serializers/json.py | 9 | 2118 | """
Serialize data to/from JSON
"""
import datetime
import decimal
from StringIO import StringIO
from django.core.serializers.python import Serializer as PythonSerializer
from django.core.serializers.python import Deserializer as PythonDeserializer
from django.utils import datetime_safe
from django.utils i... | bsd-3-clause | 4,765,623,778,677,964,000 | 30.584615 | 89 | 0.648725 | false |
jonashaag/ansible | lib/ansible/cli/pull.py | 81 | 9626 | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# 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 lat... | gpl-3.0 | 1,387,579,656,126,745,600 | 39.788136 | 150 | 0.587575 | false |
shepdelacreme/ansible | lib/ansible/modules/cloud/ovirt/ovirt_snapshot.py | 19 | 9982 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, Inc.
#
# 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
#... | gpl-3.0 | -7,834,740,446,693,938,000 | 30.789809 | 120 | 0.626227 | false |
WatanabeYasumasa/edx-platform | lms/djangoapps/instructor/tests/test_legacy_download_csv.py | 5 | 3022 | """
Unit tests for instructor dashboard
Based on (and depends on) unit tests for courseware.
Notes for running by hand:
./manage.py lms --settings test test lms/djangoapps/instructor
"""
from django.test.utils import override_settings
# Need access to internal func to put users in the right group
from django.contr... | agpl-3.0 | -4,427,744,438,140,282,400 | 40.972222 | 324 | 0.665122 | false |
TeslaProject/external_chromium_org | tools/json_schema_compiler/cpp_util_test.py | 96 | 2096 | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from cpp_util import (
Classname, CloseNamespace, GenerateIfndefName, OpenNamespace)
class CppUtilTest(unitte... | bsd-3-clause | 4,534,988,858,945,675,300 | 32.269841 | 79 | 0.616889 | false |
tmhm/scikit-learn | sklearn/base.py | 79 | 17441 | """Base classes for all estimators."""
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# License: BSD 3 clause
import copy
import inspect
import warnings
import numpy as np
from scipy import sparse
from .externals import six
class ChangedBehaviorWarning(UserWarning):
pass
############################... | bsd-3-clause | 8,501,669,262,707,821,000 | 35.717895 | 79 | 0.537641 | false |
jshufelt/privacyidea | privacyidea/api/machineresolver.py | 3 | 4810 | # -*- coding: utf-8 -*-
#
# http://www.privacyidea.org
# (c) Cornelius Kölbel, privacyidea.org
#
# 2015-02-26 Cornelius Kölbel, <cornelius@privacyidea.org>
# Initial writeup
#
# This code is free software; you can redistribute it and/or
# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# L... | agpl-3.0 | 7,615,636,578,231,372,000 | 32.388889 | 85 | 0.693636 | false |
marwoodandrew/superdesk-core | superdesk/media/video.py | 12 | 1271 | # -*- coding: utf-8; -*-
#
# This file is part of Superdesk.
#
# Copyright 2013, 2014 Sourcefabric z.u. and contributors.
#
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/superdesk/license
from hachoir... | agpl-3.0 | -5,449,042,498,947,452,000 | 27.886364 | 83 | 0.630999 | false |
edunham/servo | tests/wpt/web-platform-tests/tools/pytest/_pytest/main.py | 171 | 26357 | """ core implementation of testing process: init, session, runtest loop. """
import imp
import os
import re
import sys
import _pytest
import _pytest._code
import py
import pytest
try:
from collections import MutableMapping as MappingMixin
except ImportError:
from UserDict import DictMixin as MappingMixin
from... | mpl-2.0 | 1,942,440,276,235,150,300 | 34.426075 | 125 | 0.589862 | false |
topicusonderwijs/zxing-ios | cpp/scons/scons-local-2.0.0.final.0/SCons/Tool/gnulink.py | 34 | 2206 | """SCons.Tool.gnulink
Tool-specific initialization for the gnu linker.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons F... | apache-2.0 | 3,368,578,361,891,924,000 | 34.015873 | 95 | 0.726201 | false |
mlperf/training_results_v0.5 | v0.5.0/google/cloud_v100x8/code/resnet/benchmarks/scripts/tf_cnn_benchmarks/flags.py | 3 | 3679 | # Copyright 2018 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 | 4,773,280,903,781,065,000 | 38.55914 | 126 | 0.692308 | false |
devopservices/ansible | lib/ansible/runner/connection_plugins/fireball.py | 110 | 4841 | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# 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 lat... | gpl-3.0 | -3,002,699,804,863,996,000 | 30.640523 | 113 | 0.611031 | false |
open-homeautomation/home-assistant | homeassistant/components/sensor/zoneminder.py | 18 | 3357 | """
Support for ZoneMinder Sensors.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.zoneminder/
"""
import logging
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import STATE_UNKNOWN
... | apache-2.0 | 6,395,954,295,645,100,000 | 27.939655 | 75 | 0.618707 | false |
HumanDynamics/openPDS | openpds/accesscontrol/models.py | 3 | 2294 | from django.conf import settings
from django.db import models
from django.utils.translation import gettext as _
from openpds.core.models import Profile
class Context(models.Model):
datastore_owner = models.ForeignKey(Profile, blank = False, null = False, related_name="datastore_owner_context")
context_... | mit | 3,468,525,393,967,609,000 | 49.977778 | 122 | 0.70837 | false |
j0gurt/ggrc-core | test/unit/ggrc/test_utils.py | 7 | 3372 | # Copyright (C) 2016 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
from ggrc import utils
from unittest import TestCase
class TestUtilsFunctions(TestCase):
def test_mapping_rules(self):
""" Test that all mappings go both ways """
mappings = utils.get_mapping_ru... | apache-2.0 | 832,904,368,808,486,000 | 22.09589 | 78 | 0.36121 | false |
steebchen/youtube-dl | youtube_dl/extractor/sixplay.py | 4 | 4190 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_parse_qs,
compat_str,
compat_urllib_parse_urlparse,
)
from ..utils import (
determine_ext,
int_or_none,
try_get,
qualities,
)
class SixPlayIE(InfoExtractor):
... | unlicense | -6,898,023,423,767,477,000 | 37.045455 | 137 | 0.48865 | false |
zyq8709/DexHunter | art/tools/generate-operator-out.py | 35 | 5576 | #!/usr/bin/python
#
# Copyright (C) 2012 The Android Open Source Project
#
# 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... | apache-2.0 | -1,863,196,322,384,886,300 | 28.978495 | 88 | 0.609756 | false |
research-team/NEUCOGAR | NEST/appraisal/scripts/func.py | 1 | 10467 | import os
import sys
import time
import logging
import datetime
import numpy as np
from data import *
from time import clock
from parameters import *
from collections import defaultdict
spike_generators = {} # dict name_part : spikegenerator
spike_detectors = {} # dict name_part : spikedetector
multimeters = {} ... | gpl-2.0 | -8,123,547,755,202,530,000 | 41.722449 | 120 | 0.603898 | false |
lummyare/lummyare-lummy | py/test/selenium/test_i18n.py | 28 | 1767 | # DEPRECATED
"""
Copyright 2011 Software Freedom Conservancy.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | apache-2.0 | -7,963,373,301,510,078,000 | 33.647059 | 113 | 0.677419 | false |
wakatime/sublime-wakatime | packages/wakatime/packages/py26/pygments/lexers/dsls.py | 25 | 33336 | # -*- coding: utf-8 -*-
"""
pygments.lexers.dsls
~~~~~~~~~~~~~~~~~~~~
Lexers for various domain-specific languages.
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import ExtendedRegexLexer, RegexLexer, ... | bsd-3-clause | -3,029,783,479,893,053,000 | 36.968109 | 90 | 0.435085 | false |
CptLemming/paramiko | paramiko/dsskey.py | 36 | 6757 | # Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko 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; either version 2.1 of the License, or (a... | lgpl-2.1 | 418,878,282,473,107,100 | 33.126263 | 100 | 0.583395 | false |
gudcjfdldu/volatility | volatility/plugins/mac/dead_procs.py | 58 | 1515 | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
#
# This file is part of Volatility.
#
# Volatility 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 o... | gpl-2.0 | 5,284,715,162,963,726,000 | 31.934783 | 70 | 0.691749 | false |
pwnall/ansible-modules-core | network/nxos/nxos_interface.py | 9 | 22309 | #!/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 | -6,079,093,578,497,212,000 | 29.984722 | 132 | 0.595948 | false |
jakevdp/scipy | scipy/odr/__init__.py | 41 | 4303 | """
=================================================
Orthogonal distance regression (:mod:`scipy.odr`)
=================================================
.. currentmodule:: scipy.odr
Package Content
===============
.. autosummary::
:toctree: generated/
Data -- The data to fit.
RealData -- Dat... | bsd-3-clause | 4,112,968,495,108,131,300 | 29.302817 | 80 | 0.67511 | false |
jazzmes/ryu | ryu/tests/unit/app/test_ws_topology.py | 43 | 1517 | # Copyright (C) 2013 Stratosphere 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 ... | apache-2.0 | -3,483,916,031,316,420,600 | 27.092593 | 77 | 0.661173 | false |
overtherain/scriptfile | software/googleAppEngine/lib/jinja2/jinja2/testsuite/api.py | 90 | 9803 | # -*- coding: utf-8 -*-
"""
jinja2.testsuite.api
~~~~~~~~~~~~~~~~~~~~
Tests the public API and related stuff.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import unittest
from jinja2.testsuite import JinjaTestCase
from jinja2 import Environment, Undefi... | mit | -8,773,578,854,714,377,000 | 39.012245 | 95 | 0.563195 | 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.