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 |
|---|---|---|---|---|---|---|---|---|---|---|
ubc/edx-platform | lms/djangoapps/shoppingcart/migrations/0002_auto__add_field_paidcourseregistration_mode.py | 182 | 8687 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'PaidCourseRegistration.mode'
db.add_column('shoppingcart_paidcourseregistration', 'mode',
... | agpl-3.0 | -8,402,138,250,523,791,000 | 76.5625 | 182 | 0.555428 | false |
mglukhikh/intellij-community | python/helpers/py2only/docutils/transforms/__init__.py | 186 | 6505 | # $Id: __init__.py 6433 2010-09-28 08:21:25Z milde $
# Authors: David Goodger <goodger@python.org>; Ueli Schlaepfer
# Copyright: This module has been placed in the public domain.
"""
This package contains modules for standard tree transforms available
to Docutils components. Tree transforms serve a variety of purposes... | apache-2.0 | -719,012,436,074,697,700 | 36.819767 | 79 | 0.650576 | false |
vitaly-krugl/nupic | src/nupic/support/__init__.py | 10 | 15849 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | agpl-3.0 | 4,791,830,911,068,003,000 | 32.156904 | 82 | 0.66837 | false |
ipsosante/django-audit-log | audit_log/middleware.py | 1 | 3349 | from django.db.models import signals
from django.utils.functional import curry
from django.conf import settings
from audit_log import registration
from audit_log.models import fields
from audit_log.models.managers import AuditLogManager
def _disable_audit_log_managers(instance):
for attr in dir(instance):
... | bsd-3-clause | -1,040,187,168,851,749,900 | 37.056818 | 111 | 0.627949 | false |
edx/edx-platform | cms/djangoapps/contentstore/management/commands/tests/test_backfill_course_outlines.py | 4 | 4869 | """
Tests for `backfill_course_outlines` Studio (cms) management command.
"""
from django.core.management import call_command
from opaque_keys.edx.keys import CourseKey
from openedx.core.djangoapps.content.course_overviews.models import CourseOverview
from openedx.core.djangoapps.content.learning_sequences.api import ... | agpl-3.0 | -7,668,946,479,372,848,000 | 40.615385 | 96 | 0.602793 | false |
MobinRanjbar/hue | desktop/core/ext-py/pycrypto-2.6.1/lib/Crypto/SelfTest/Hash/test_SHA256.py | 116 | 3663 | # -*- coding: utf-8 -*-
#
# SelfTest/Hash/test_SHA256.py: Self-test for the SHA-256 hash function
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that... | apache-2.0 | 480,151,159,959,167,940 | 37.15625 | 117 | 0.66148 | false |
Romaingin/Antlia | antlia/blueprint/text.py | 1 | 1690 | from .primitive import *
from ..rect import Rect
from .unicode import NAME_TO_UNICODE
import re
import time as ti
class Text(Primitive):
def __init__(self, text, font_path, size, align="center"):
super(Text, self).__init__()
self.text = text
self.size = int(size)
self.align = align
# Test if icon
icon =... | mit | -7,211,373,433,225,058,000 | 25.825397 | 86 | 0.647337 | false |
CydarLtd/ansible | lib/ansible/modules/network/netconf/netconf_config.py | 38 | 10019 | #!/usr/bin/python
# (c) 2016, Leandro Lisboa Penz <lpenz at lpenz.org>
#
# 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 yo... | gpl-3.0 | 441,998,592,559,791,400 | 30.211838 | 157 | 0.600359 | false |
kevinkindom/chrome_depto_tools | third_party/boto/auth.py | 51 | 26228 | # Copyright 2010 Google Inc.
# Copyright (c) 2011 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2011, Eucalyptus Systems, Inc.
#
# 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 re... | bsd-3-clause | -4,436,352,854,170,597,400 | 37.457478 | 92 | 0.602829 | false |
lenovor/reweighted-ws | caltech/nade-nade.py | 6 | 1678 |
import numpy as np
from learning.dataset import CalTechSilhouettes
from learning.preproc import PermuteColumns
from learning.termination import LogLikelihoodIncrease, EarlyStopping
from learning.monitor import MonitorLL, DLogModelParams, SampleFromP
from learning.training import Trainer
from learning.models.rws imp... | agpl-3.0 | 6,421,016,247,683,292,000 | 24.424242 | 93 | 0.668653 | false |
chubbymaggie/miasm | test/utils/testset.py | 2 | 9436 | import os
import subprocess
import sys
import time
from multiprocessing import cpu_count, Queue, Process
from test import Test
class Message(object):
"Message exchanged in the TestSet message queue"
pass
class MessageTaskNew(Message):
"Stand for a new task"
def __init__(self, task):
self... | gpl-2.0 | 7,951,308,142,779,059,000 | 30.141914 | 117 | 0.52925 | false |
CloudWareChile/OpenChile | openerp/addons/hr_expense/__openerp__.py | 9 | 2716 | # -*- 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,837,222,038,707,928,000 | 35.213333 | 78 | 0.599043 | false |
jcoady9/python-for-android | python-modules/twisted/twisted/python/util.py | 56 | 29731 | # -*- test-case-name: twisted.python.test.test_util -*-
# Copyright (c) 2001-2010 Twisted Matrix Laboratories.
# See LICENSE for details.
import os, sys, hmac, errno, new, inspect, warnings
try:
import pwd, grp
except ImportError:
pwd = grp = None
try:
from os import setgroups, getgroups
except ImportError... | apache-2.0 | 8,501,801,437,884,871,000 | 29.46209 | 99 | 0.576503 | false |
elijah513/django | django/db/models/manager.py | 301 | 10722 | import copy
import inspect
from importlib import import_module
from django.db import router
from django.db.models.query import QuerySet
from django.utils import six
from django.utils.encoding import python_2_unicode_compatible
def ensure_default_manager(cls):
"""
Ensures that a Model subclass contains a defa... | bsd-3-clause | -1,184,809,575,489,687,800 | 36.229167 | 93 | 0.587111 | false |
ai-guild/ncm-adv | lib/twitter.py | 1 | 1203 | import data_utils
import numpy as np
PATH = '../data/twitter/'
class Twitter(object):
def __init__(self, path=PATH):
# data
metadata, idx_q, idx_a = data_utils.load_data('../data/')
# get dictionaries
i2w = metadata['idx2w']
w2i = metadata['w2idx']
... | gpl-3.0 | 6,580,865,347,099,599,000 | 27.642857 | 82 | 0.521197 | false |
garnaat/boto | tests/integration/datapipeline/test_cert_verification.py | 121 | 1524 | # Copyright (c) 2014 Amazon.com, Inc. or its affiliates.
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the right... | mit | 5,050,639,689,027,998,000 | 39.105263 | 87 | 0.771654 | false |
jbosboom/opentuner | examples/hpl/hpl.py | 5 | 4117 | import adddeps #fix sys.path
import argparse
import logging
import opentuner
from opentuner.search.manipulator import (ConfigurationManipulator,
IntegerParameter,
FloatParameter)
from opentuner.search.objective import MinimizeTime
fro... | mit | -1,531,380,216,904,522,800 | 41.020408 | 96 | 0.631528 | false |
gangadharkadam/smrterp | erpnext/config/desktop.py | 30 | 1190 | from frappe import _
def get_data():
return {
"Accounts": {
"color": "#3498db",
"icon": "icon-money",
"type": "module"
},
"Activity": {
"color": "#e67e22",
"icon": "icon-play",
"label": _("Activity"),
"link": "activity",
"type": "page"
},
"Buying": {
"color": "#c0392b",
"icon":... | agpl-3.0 | 5,558,414,362,880,316,000 | 16.761194 | 33 | 0.47395 | false |
efortuna/AndroidSDKClone | ndk_experimental/prebuilt/linux-x86_64/lib/python2.7/MimeWriter.py | 315 | 6482 | """Generic MIME writer.
This module defines the class MimeWriter. The MimeWriter class implements
a basic formatter for creating MIME multi-part files. It doesn't seek around
the output file nor does it use large amounts of buffer space. You must write
the parts out in the order that they should occur in the final f... | apache-2.0 | 5,166,133,295,836,272,000 | 33.849462 | 83 | 0.646868 | false |
andyh616/mne-python | mne/stats/regression.py | 3 | 14851 | # Authors: Tal Linzen <linzen@nyu.edu>
# Teon Brooks <teon.brooks@gmail.com>
# Denis A. Engemann <denis.engemann@gmail.com>
# Jona Sassenhagen <jona.sassenhagen@gmail.com>
# Marijn van Vliet <w.m.vanvliet@gmail.com>
#
# License: BSD (3-clause)
from collections import namedtuple
from... | bsd-3-clause | 4,067,791,521,317,958,000 | 43.199405 | 79 | 0.608781 | false |
MuhammadShuaib/mwmetrics | setup.py | 3 | 1293 | import os
from setuptools import find_packages, setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def requirements(fname):
return [line.strip()
for line in open(os.path.join(os.path.dirname(__file__), fname))]
setup(
name = "mwmetrics",
version = ... | mit | -1,787,887,227,909,059,800 | 30.536585 | 77 | 0.609435 | false |
kelseyoo14/Wander | venv_2_7/lib/python2.7/site-packages/Django-1.9-py2.7.egg/django/contrib/admin/filters.py | 188 | 16608 | """
This encapsulates the logic for displaying filters in the Django admin.
Filters are specified in models with the "list_filter" option.
Each filter subclass knows how to display a filter for a field that passes a
certain test -- e.g. being a DateField or ForeignKey.
"""
import datetime
from django.contrib.admin.op... | artistic-2.0 | -7,655,335,114,647,200,000 | 38.923077 | 112 | 0.590077 | false |
tboyce1/home-assistant | tests/components/scene/test_init.py | 20 | 4086 | """The tests for the Scene component."""
import io
import unittest
from homeassistant.setup import setup_component
from homeassistant import loader
from homeassistant.components import light, scene
from homeassistant.util import yaml
from tests.common import get_test_home_assistant
class TestScene(unittest.TestCase... | apache-2.0 | -5,246,235,818,310,855,000 | 31.428571 | 76 | 0.544298 | false |
Simran-B/arangodb | 3rdParty/V8-4.3.61/third_party/python_26/Lib/test/test_shelve.py | 55 | 4168 | import os
import unittest
import shelve
import glob
from test import test_support
class TestCase(unittest.TestCase):
fn = "shelftemp" + os.extsep + "db"
def test_close(self):
d1 = {}
s = shelve.Shelf(d1, protocol=2, writeback=False)
s['key1'] = [1,2,3,4]
self.assertEqual(s['ke... | apache-2.0 | 2,075,223,946,569,651,500 | 26.786667 | 74 | 0.528551 | false |
GheRivero/ansible | test/units/modules/network/f5/test_bigiq_regkey_license_assignment.py | 12 | 4419 | # -*- coding: utf-8 -*-
#
# Copyright: (c) 2017, F5 Networks Inc.
# 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
import os
import json
import pytest
import sys
from nose.plugins.skip i... | gpl-3.0 | -2,568,051,726,162,269,000 | 31.977612 | 95 | 0.650826 | false |
Wilee999/panda3d | contrib/src/sceneeditor/seMopathRecorder.py | 8 | 85754 | #################################################################
# seMopathRecorder.py
# Originally from MopathRecorder.py
# Altered by Yi-Hong Lin, yihhongl@andrew.cmu.edu, 2004
#
# We have to change something about data flow and UI
# so the curves data can be saved into our dataHolder.
# Other things we have changed... | bsd-3-clause | -512,069,500,852,204,800 | 40.367101 | 118 | 0.571519 | false |
matthiasplappert/keras-rl | tests/rl/test_util.py | 1 | 2969 | from __future__ import division
import pytest
import numpy as np
from numpy.testing import assert_allclose
from keras.models import Model, Sequential
from keras.layers import Input, Dense, Concatenate
from keras.optimizers import SGD
import keras.backend as K
from rl.util import clone_optimizer, clone_model, huber_lo... | mit | 7,418,749,016,099,441,000 | 32.359551 | 92 | 0.664534 | false |
broferek/ansible | test/units/modules/network/fortios/test_fortios_wireless_controller_hotspot20_anqp_ip_address_type.py | 21 | 9225 | # Copyright 2019 Fortinet, Inc.
#
# 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
# (at your option) any later version.
#
# This program is distributed in the... | gpl-3.0 | -994,382,429,382,500,500 | 41.123288 | 156 | 0.686179 | false |
RefugeeMatchmaking/HackZurich | GAE_Playground/libs/networkx/readwrite/tests/test_p2g.py | 91 | 1328 | from nose.tools import assert_equal, assert_raises, assert_not_equal
import networkx as nx
import io
import tempfile
import os
from networkx.readwrite.p2g import *
from networkx.testing import *
class TestP2G:
def setUp(self):
self.G=nx.Graph(name="test")
e=[('a','b'),('b','c'),('c','d'),('d','e'... | mit | -3,915,860,762,616,835,600 | 19.75 | 79 | 0.503765 | false |
formiano/enigma2 | lib/python/Components/Renderer/Watches.py | 7 | 3012 | #######################################################################
#
# Renderer for Dreambox-Enigma2
# Coded by shamann (c)2010
#
# 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 Foundati... | gpl-2.0 | 5,756,665,092,763,519,000 | 26.633028 | 71 | 0.605246 | false |
40223219/2015_midterm | static/Brython3.1.1-20150328-091302/Lib/unittest/test/testmock/testhelpers.py | 737 | 25793 | import unittest
from unittest.mock import (
call, _Call, create_autospec, MagicMock,
Mock, ANY, _CallList, patch, PropertyMock
)
from datetime import datetime
class SomeClass(object):
def one(self, a, b):
pass
def two(self):
pass
def three(self, a=None):
pass
class AnyT... | gpl-3.0 | -3,328,187,067,553,121,300 | 28.013498 | 80 | 0.536735 | false |
Yen-Chung-En/2015cdb_W12 | static/Brython3.1.1-20150328-091302/Lib/unittest/loader.py | 739 | 13883 | """Loading unittests."""
import os
import re
import sys
import traceback
import types
import functools
from fnmatch import fnmatch
from . import case, suite, util
__unittest = True
# what about .pyc or .pyo (etc)
# we would need to avoid loading the same tests multiple times
# from '.py', '.pyc' *and* '.pyo'
VALID... | agpl-3.0 | -9,052,355,658,118,396,000 | 41.716923 | 94 | 0.596197 | false |
anbangleo/NlsdeWeb | Python-3.6.0/Lib/test/test_abstract_numbers.py | 109 | 1528 | """Unit tests for numbers.py."""
import math
import operator
import unittest
from numbers import Complex, Real, Rational, Integral
class TestNumbers(unittest.TestCase):
def test_int(self):
self.assertTrue(issubclass(int, Integral))
self.assertTrue(issubclass(int, Complex))
self.assertEqua... | mit | -5,713,234,709,180,465,000 | 33.727273 | 70 | 0.647906 | false |
Lab603/PicEncyclopedias | jni-build/jni/include/tensorflow/python/ops/batch_norm_benchmark.py | 19 | 9591 | # 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... | mit | -5,138,250,734,962,634,000 | 39.987179 | 80 | 0.620373 | false |
nhippenmeyer/django | tests/middleware_exceptions/tests.py | 147 | 44086 | import sys
from django.conf import settings
from django.core.exceptions import MiddlewareNotUsed
from django.core.signals import got_request_exception
from django.http import HttpResponse
from django.template import engines
from django.template.response import TemplateResponse
from django.test import RequestFactory, S... | bsd-3-clause | -5,290,025,467,444,750,000 | 47.49945 | 132 | 0.699202 | false |
Serg09/socorro | socorro/external/hbase/connection_context.py | 11 | 8757 | # 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 threading
import contextlib
from socorro.external.hbase import hbase_client
from configman.config_manager import... | mpl-2.0 | -5,921,144,305,629,130,000 | 38.804545 | 79 | 0.538198 | false |
kenshay/ImageScript | ProgramData/SystemFiles/opencv/sources/samples/python2/hist.py | 9 | 3575 | #!/usr/bin/env python
''' This is a sample for histogram plotting for RGB images and grayscale images for better understanding of colour distribution
Benefit : Learn how to draw histogram of images
Get familier with cv2.calcHist, cv2.equalizeHist,cv2.normalize and some drawing functions
Level : Beginner or... | gpl-3.0 | 646,714,477,431,335,800 | 29.818966 | 127 | 0.579021 | false |
pauloschilling/sentry | tests/sentry/web/frontend/test_organization_home.py | 13 | 2199 | from __future__ import absolute_import
from django.core.urlresolvers import reverse
from sentry.models import AuthProvider
from sentry.testutils import TestCase, PermissionTestCase
class OrganizationHomePermissionTest(PermissionTestCase):
def setUp(self):
super(OrganizationHomePermissionTest, self).setU... | bsd-3-clause | -5,454,961,863,175,889,000 | 35.04918 | 86 | 0.691678 | false |
CoDEmanX/ArangoDB | 3rdParty/V8-4.3.61/third_party/python_26/Lib/uuid.py | 59 | 20331 | r"""UUID objects (universally unique identifiers) according to RFC 4122.
This module provides immutable UUID objects (class UUID) and the functions
uuid1(), uuid3(), uuid4(), uuid5() for generating version 1, 3, 4, and 5
UUIDs as specified in RFC 4122.
If all you want is a unique ID, you should probably call uuid1() ... | apache-2.0 | 3,962,485,220,144,192,000 | 36.373162 | 79 | 0.602135 | false |
guijomatos/SickRage | lib/pysrt/commands.py | 71 | 8471 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable-all
import os
import re
import sys
import codecs
import shutil
import argparse
from textwrap import dedent
from chardet import detect
from pysrt import SubRipFile, SubRipTime, VERSION_STRING
def underline(string):
return "\033[4m%s\033[0m" % string... | gpl-3.0 | -3,308,275,777,275,514,000 | 37.680365 | 178 | 0.624956 | false |
simplegeo/shapely | shapely/geometry/base.py | 1 | 17241 | """Base geometry class and utilities
"""
from functools import wraps
import sys
import warnings
from shapely.coords import CoordinateSequence
from shapely.geos import lgeos
from shapely.impl import DefaultImplementation
from shapely import wkb, wkt
GEOMETRY_TYPES = [
'Point',
'LineString',
'LinearRing',
'Poly... | bsd-3-clause | 8,404,101,278,869,442,000 | 28.725862 | 80 | 0.589815 | false |
betoesquivel/CIE | flask/lib/python2.7/site-packages/tornado/httpclient.py | 22 | 25772 | """Blocking and non-blocking HTTP client interfaces.
This module defines a common interface shared by two implementations,
``simple_httpclient`` and ``curl_httpclient``. Applications may either
instantiate their chosen implementation class directly or use the
`AsyncHTTPClient` class from this module, which selects an... | mit | -6,495,518,091,798,815,000 | 39.394984 | 83 | 0.636117 | false |
xxsergzzxx/python-for-android | python3-alpha/python3-src/Lib/importlib/test/test_util.py | 51 | 3794 | from importlib import util
from . import util as test_util
import imp
import sys
import types
import unittest
class ModuleForLoaderTests(unittest.TestCase):
"""Tests for importlib.util.module_for_loader."""
def return_module(self, name):
fxn = util.module_for_loader(lambda self, module: module)
... | apache-2.0 | 8,506,545,542,370,521,000 | 31.152542 | 78 | 0.599895 | false |
zhmcclient/zhmccli | zhmccli/_cmd_storagegroup.py | 1 | 24874 | # Copyright 2020 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 applicable law or agre... | apache-2.0 | -333,030,140,370,817,700 | 36.348348 | 80 | 0.656469 | false |
rzr/synapse | synapse/rest/client/v1/base.py | 4 | 1585 | # -*- coding: utf-8 -*-
# Copyright 2014, 2015 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -8,816,776,078,651,998,000 | 29.480769 | 78 | 0.705363 | false |
CantemoInternal/django-comments-xtd | django_comments_xtd/demos/simple/settings.py | 1 | 3973 | #-*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
PRJ_PATH = os.path.abspath(os.path.curdir)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Alice Bloggs', 'alice@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | bsd-2-clause | 7,437,918,550,825,912,000 | 29.79845 | 78 | 0.696703 | false |
tangyibin/goblin-core | riscv/llvm/3.5/cfe-3.5.0.src/bindings/python/examples/cindex/cindex-includes.py | 110 | 1644 | #!/usr/bin/env python
#===- cindex-includes.py - cindex/Python Inclusion Graph -----*- python -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===---------------------------------------... | bsd-3-clause | 2,247,156,081,526,484,500 | 27.344828 | 80 | 0.56691 | false |
gsnedders/presto-testo | core/standards/scripts/opjsunit/harness/winprocess.py | 14 | 9554 | # A module to expose various thread/process/job related structures and
# methods from kernel32
#
# The MIT License
#
# Copyright (c) 2006 the Mozilla Foundation <http://www.mozilla.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files... | bsd-3-clause | 7,231,792,852,900,774,000 | 35.465649 | 89 | 0.577559 | false |
Livit/Livit.Learn.EdX | pavelib/utils/envs.py | 9 | 7028 | """
Helper functions for loading environment settings.
"""
from __future__ import print_function
import os
import sys
import json
from lazy import lazy
from path import Path as path
import memcache
class Env(object):
"""
Load information about the execution environment.
"""
# Root of the git reposito... | agpl-3.0 | 6,975,273,061,332,436,000 | 31.841121 | 104 | 0.574132 | false |
szilveszter/django | django/utils/importlib.py | 98 | 1547 | # Taken from Python 2.7 with permission from/by the original author.
import warnings
import sys
from django.utils import six
from django.utils.deprecation import RemovedInDjango19Warning
warnings.warn("django.utils.importlib will be removed in Django 1.9.",
RemovedInDjango19Warning, stacklevel=2)
def _resolve_... | bsd-3-clause | -8,385,601,912,102,265,000 | 31.914894 | 82 | 0.624434 | false |
wimberosa/samba | buildtools/wafadmin/Tools/tex.py | 16 | 7234 | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006 (ita)
"TeX/LaTeX/PDFLaTeX support"
import os, re
import Utils, TaskGen, Task, Runner, Build
from TaskGen import feature, before
from Logs import error, warn, debug
re_tex = re.compile(r'\\(?P<type>include|input|import|bringin|lstinputlisting){(?P<file>[^{}]... | gpl-3.0 | -4,546,535,758,598,366,000 | 27.820717 | 133 | 0.653442 | false |
JustasB/MitralSuite | Models/Migliore2014/mkmitral.py | 1 | 1261 | from neuron import h
h.load_file('mitral.hoc')
from getmitral import getmitral
def mkmitral(gid):
nrn = getmitral(gid)
m = h.Mitral()
m.createsec(len(nrn.dend), len(nrn.tuft))
m.subsets()
m.topol(0) # need to connect secondary dendrites explicitly
for i, d in enumerate(nrn.dend):
# <<< check m... | mit | -4,632,984,938,742,957,000 | 21.927273 | 79 | 0.615385 | false |
pataquets/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/common/system/environment_unittest.py | 124 | 1853 | # Copyright (C) 2011 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 | 8,511,662,163,655,766,000 | 46.512821 | 72 | 0.769563 | false |
ryfeus/lambda-packs | LightGBM_sklearn_scipy_numpy/source/scipy/optimize/_lsq/bvls.py | 15 | 4994 | """Bounded-Variable Least-Squares algorithm."""
from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.linalg import norm, lstsq
from scipy.optimize import OptimizeResult
from .common import print_header_linear, print_iteration_linear
def compute_kkt_optimality(g, on_bound):
... | mit | 7,768,543,803,360,353,000 | 26.744444 | 79 | 0.537645 | false |
freedryk/cloudtracker | cloudtracker/generate_cloudlets.py | 1 | 6967 | #!/usr/bin/env python
"""
This program generates a pkl file containing a list of dictionaries.
Each dictionary in the list represents a condensedlet.
The dictionaries have the structure:
{'core': array of ints of core points,
'condensed': array of ints of condensed points,
'plume': array of ints of plume points,
'u_con... | bsd-2-clause | -4,839,644,044,927,059,000 | 31.863208 | 91 | 0.548156 | false |
Ahuge/ShortcutEditorNuke | keyboard/keys/base_key.py | 1 | 1369 | import weakref
from PySide import QtGui, QtCore
from resources import HEX_COLOUR_NONE, HEX_COLOUR_RED, HEX_COLOUR_GREEN, HEX_COLOUR_BLUE
class BaseKey(QtGui.QPushButton):
KEY_TYPE = "default"
KEY_CLICKED = QtCore.Signal(weakref.ReferenceType)
BG_COLOUR = HEX_COLOUR_NONE
def __init__(self, *args, **kw... | gpl-3.0 | -5,618,371,885,230,923,000 | 31.595238 | 105 | 0.563915 | false |
geraldinepascal/FROGS | assessment/bin/its_assessRealMock.py | 1 | 14370 | #!/usr/bin/env python2.7
#
# Copyright (C) 2016 INRA
#
# 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
# (at your option) any later version.
#
# This program ... | gpl-3.0 | 879,102,604,520,195,100 | 47.221477 | 207 | 0.589283 | false |
nttks/edx-platform | cms/djangoapps/contentstore/tests/test_libraries.py | 1 | 45755 | """
Content library unit tests that require the CMS runtime.
"""
from django.test.client import RequestFactory
from django.test.utils import override_settings
from contentstore.tests.utils import AjaxEnabledTestClient, parse_json, switch_ga_global_course_creator
from contentstore.utils import reverse_url, reverse_usage... | agpl-3.0 | -2,350,609,517,283,167,000 | 42.205855 | 122 | 0.642312 | false |
b-cube/OwsCapable | owscapable/map/wms130.py | 1 | 25313 | # -*- coding: iso-8859-15 -*-
# =============================================================================
# Copyright (c) 2004, 2006 Sean C. Gillies
# Copyright (c) 2005 Nuxeo SARL <http://nuxeo.com>
#
# Authors : Sean Gillies <sgillies@frii.com>
# Julien Anguenot <ja@nuxeo.com>
#
# Contact email: sgillie... | bsd-3-clause | -1,917,386,554,892,631,600 | 37.764165 | 157 | 0.572512 | false |
jakirkham/dask-distance | dask_distance/_utils.py | 1 | 1884 | import functools
import itertools
import numpy
import dask
import dask.array
from . import _compat
from . import _pycompat
def _broadcast_uv(u, v):
U = _compat._atleast_2d(u)
V = _compat._atleast_2d(v)
if U.ndim != 2:
raise ValueError("u must be a 1-D or 2-D array.")
if V.ndim != 2:
... | bsd-3-clause | 1,490,513,536,808,994,600 | 20.168539 | 79 | 0.555732 | false |
lrowe/rdflib | rdflib/plugins/parsers/pyRdfa/transform/OpenID.py | 26 | 2119 | # -*- coding: utf-8 -*-
"""
Simple transfomer: handle OpenID elements. Ie: an openid namespace is added and the usual
'link' elements for openid are exchanged against a namespaced version.
@summary: OpenID transformer module.
@requires: U{RDFLib package<http://rdflib.net>}
@organization: U{World Wide Web Consortium<ht... | bsd-3-clause | 9,085,826,903,380,907,000 | 32.09375 | 115 | 0.702077 | false |
zh021589/robotframework-restlibrary | RestLibrary.py | 2 | 7284 | # -*- coding: UTF-8 -*-
"""
This is a HTTP/REST client library, primarily designed for use as a
`Robot Framework <http://robotframework.org/>`_ test library. It provides
keywords for calling REST-style services and inspecting the response.
Copyright (c) 2008 Niklas Lindström <lindstream@gmail.com>, all rights
reserved... | apache-2.0 | 8,278,622,690,735,741,000 | 26.900383 | 80 | 0.613568 | false |
apache/incubator-allura | ForgeSVN/forgesvn/tests/test_tasks.py | 2 | 2803 | # -*- coding: utf-8 -*-
# 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 Apach... | apache-2.0 | -3,337,336,424,942,036,500 | 33.604938 | 76 | 0.633964 | false |
alimony/django | django/db/migrations/operations/fields.py | 18 | 12979 | from django.db.models.fields import NOT_PROVIDED
from django.utils.functional import cached_property
from .base import Operation
class FieldOperation(Operation):
def __init__(self, model_name, name):
self.model_name = model_name
self.name = name
@cached_property
def model_name_lower(self... | bsd-3-clause | 7,790,754,005,107,865,000 | 38.330303 | 98 | 0.587487 | false |
manics/openmicroscopy | components/tools/OmeroWeb/omeroweb/webclient/webclient_utils.py | 12 | 2113 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#
# Copyright (C) 2011 University of Dundee & Open Microscopy Environment.
# All rights reserved.
#
# 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 Fou... | gpl-2.0 | 4,135,506,054,747,389,400 | 31.015152 | 76 | 0.668244 | false |
KiChjang/servo | components/script/dom/bindings/codegen/parser/tests/test_method.py | 15 | 9920 | import WebIDL
def WebIDLTest(parser, harness):
parser.parse("""
interface TestMethods {
void basic();
static void basicStatic();
void basicWithSimpleArgs(boolean arg1, byte arg2, unsigned long arg3);
boolean basicBoolean();
static boolean basicStaticBoolean... | mpl-2.0 | 4,840,242,749,659,829,000 | 37.75 | 118 | 0.59496 | false |
alexlib/Qt-Python-Binding-Examples | style_and_theme/disable_highlight.py | 1 | 1096 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
disable highlight focused widget
Tested environment:
Mac OS X 10.6.8
http://stackoverflow.com/questions/1987546/qt4-stylesheets-and-focus-rect
"""
import sys
try:
from PySide import QtCore
from PySide import QtGui
except ImportError:
from PyQt4 import Q... | bsd-3-clause | 5,503,489,596,523,990,000 | 19.698113 | 73 | 0.614964 | false |
unseenlaser/machinekit | src/machinetalk/messagebus/python-mockup/commandsubmitter.py | 8 | 2327 | import os, time
import zmq
from message_pb2 import Container
from types_pb2 import *
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-c", "--cmd", dest="cmduri", default="tcp://127.0.0.1:5571",
help="command URI")
parser.add_option("-r", "--response", dest="responseuri"... | lgpl-2.1 | -1,674,353,475,495,149,600 | 27.728395 | 81 | 0.595617 | false |
tshrjn/courses | cs/udacity/cs101-intro-cs/code/lesson6/search_engine.py | 4 | 2795 | import subprocess, sys
# gets the first link on any webpage
def get_next_target(page):
copy = page
repl = ['= ', ' =', ' = ']
for i in range(0, len(repl)):
copy = copy.replace(repl[i], "=")
first_link_start = copy.find("<a")
if (first_link_start == -1):
return None
else:
... | mit | 2,929,851,390,881,660,000 | 27.824742 | 104 | 0.579606 | false |
alfonsodev/ansible-modules-extras | monitoring/stackdriver.py | 58 | 6848 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# 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.
... | gpl-3.0 | 2,559,251,659,706,533,000 | 31.595238 | 132 | 0.642513 | false |
Motaku/ansible | contrib/inventory/serf.py | 395 | 3032 | #!/usr/bin/env python
# (c) 2015, Marc Abramowitz <marca@surveymonkey.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
# (... | gpl-3.0 | -1,041,659,523,409,722,100 | 25.365217 | 94 | 0.683047 | false |
Schevo/kiwi | kiwi/desktopparser.py | 3 | 5236 | #
# Kiwi: a Framework and Enhanced Widgets for Python
#
# Copyright (C) 2006 Johan Dahlin <jdahlin@async.com.br>
#
# This library 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 ... | lgpl-2.1 | -7,612,517,336,931,457,000 | 27.928177 | 72 | 0.622422 | false |
cristianquaglio/odoo | addons/website_mail/controllers/main.py | 149 | 4279 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | apache-2.0 | 124,790,438,326,726,910 | 41.79 | 117 | 0.570227 | false |
chrishas35/django-travis-ci | django/db/models/sql/subqueries.py | 87 | 8259 | """
Query subclasses which provide extra functionality beyond simple data retrieval.
"""
from django.core.exceptions import FieldError
from django.db.models.fields import DateField, FieldDoesNotExist
from django.db.models.sql.constants import *
from django.db.models.sql.datastructures import Date
from django.db.models... | bsd-3-clause | 2,760,306,921,505,217,500 | 35.870536 | 121 | 0.600557 | false |
ragnarokkrr/rgn_vm_containers | rgn_k8s_kafka_python/snippets/avro_producer_plain.py | 1 | 1038 | from confluent_kafka import avro
from confluent_kafka.avro import AvroProducer
from lipsum import generate_words
import os
import random
SCHEMA_REGISTRY_URL = 'http://172.17.0.5:8081'
BOOTSTRAP_SERVERS = '172.17.0.4'
AVSC_DIR = os.path.dirname(os.path.realpath(__file__))
KEY_SCHEMA = avro.load(os.path.join(AVSC_DIR, ... | apache-2.0 | -5,640,259,133,732,794,000 | 28.685714 | 73 | 0.623314 | false |
abaditsegay/arangodb | 3rdParty/V8-4.3.61/build/gyp/test/subdirectory/gyptest-SYMROOT-default.py | 399 | 1260 | #!/usr/bin/env python
# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies building a target and a subsidiary dependent target from a
.gyp file in a subdirectory, without specifying an explicit output b... | apache-2.0 | -4,935,488,290,978,053,000 | 33.054054 | 73 | 0.66746 | false |
Changaco/oh-mainline | vendor/packages/celery/celery/tests/test_events/__init__.py | 18 | 6120 | from __future__ import absolute_import
from __future__ import with_statement
import socket
from celery import events
from celery.app import app_or_default
from celery.tests.utils import unittest
class MockProducer(object):
raise_on_publish = False
def __init__(self, *args, **kwargs):
self.sent = []... | agpl-3.0 | -1,245,011,628,243,464,700 | 31.041885 | 76 | 0.548856 | false |
joachimmetz/dfvfs | dfvfs/resolver_helpers/os_resolver_helper.py | 2 | 1201 | # -*- coding: utf-8 -*-
"""The operating system path specification resolver helper implementation."""
from dfvfs.file_io import os_file_io
from dfvfs.lib import definitions
from dfvfs.resolver_helpers import manager
from dfvfs.resolver_helpers import resolver_helper
from dfvfs.vfs import os_file_system
class OSResol... | apache-2.0 | -7,729,723,438,317,764,000 | 28.292683 | 77 | 0.726894 | false |
Nagriar/mongo-connector | tests/test_gridfs_file.py | 31 | 3939 | # Copyright 2013-2014 MongoDB, 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 writin... | apache-2.0 | -7,700,803,308,181,094,000 | 29.534884 | 74 | 0.582635 | false |
leki75/ansible | lib/ansible/module_utils/cloudstack.py | 30 | 23809 | # -*- coding: utf-8 -*-
#
# (c) 2015, René Moser <mail@renemoser.net>
#
# This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the aut... | gpl-3.0 | 120,649,363,691,010,220 | 37.031949 | 129 | 0.547631 | false |
duythanhphan/gumbo | python/gumbo/gumboc.py | 2 | 12639 | # Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 4,729,124,609,039,399,000 | 22.982922 | 80 | 0.57821 | false |
upgradeadvice/fofix-grisly-virtualenv | FoFiX/VFS.py | 1 | 14383 | #####################################################################
# -*- coding: iso-8859-1 -*- #
# #
# Frets on Fire X (FoFiX) #
# Copyright (C) 2009-2010 John Stumpo ... | gpl-2.0 | 706,728,560,240,195,200 | 32.526807 | 110 | 0.655496 | false |
openstack/horizon | openstack_dashboard/dashboards/project/volumes/forms.py | 1 | 38443 | # Copyright 2012 Nebula, Inc.
# All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | apache-2.0 | 4,732,912,771,363,505,000 | 43.136625 | 79 | 0.518118 | false |
pharos3d/tundra | tools/Converters/tundra2-txml-converter.py | 6 | 6763 | import sys
import os
"""
For this script to work you need the jack.mesh from /media/models in /data/assets
You will have to manually put your txml file name down in the __main__ func to:
--> fileName = "putFileNameHere.txml" <--
1. Run this script on your tundra 1.x txml
2. This will create a... | apache-2.0 | -4,567,485,209,581,447,000 | 33.156566 | 134 | 0.552713 | false |
zepheira/amara | demo/7days/day1.py | 1 | 1051 | import sys, datetime
from amara.writers.struct import *
from amara.namespaces import *
tags = [u"xml", u"python", u"atom"]
w = structwriter(indent=u"yes")
w.feed(
ROOT(
E((ATOM_NAMESPACE, u'feed'), {(XML_NAMESPACE, u'xml:lang'): u'en'},
E(u'id', u'urn:bogus:myfeed'),
E(u'title', u'MyFeed'),
... | apache-2.0 | 4,219,949,703,642,767,400 | 30.848485 | 71 | 0.492864 | false |
jmmv/markdown2social | markdown2social/__init__.py | 1 | 1225 | # Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | apache-2.0 | 6,441,120,845,658,393,000 | 28.878049 | 80 | 0.729796 | false |
manaschaturvedi/oscarbuddy | html5lib/treebuilders/_base.py | 715 | 13699 | from __future__ import absolute_import, division, unicode_literals
from six import text_type
from ..constants import scopingElements, tableInsertModeElements, namespaces
# The scope markers are inserted when entering object elements,
# marquees, table cells, and table captions, and are used to prevent formatting
# fr... | mit | 2,230,292,403,307,959,300 | 35.33687 | 90 | 0.598584 | false |
seeminglee/pyglet64 | contrib/toys/thrust.py | 29 | 5162 | '''
Code by Richard Jones, released into the public domain.
Beginnings of something like http://en.wikipedia.org/wiki/Thrust_(video_game)
'''
import sys
import math
import euclid
import primitives
import pyglet
from pyglet.window import key
from pyglet.gl import *
window = pyglet.window.Window(fullscreen='-fs' in ... | bsd-3-clause | -1,556,442,260,525,602,600 | 29.72619 | 101 | 0.537195 | false |
sssemil/cjdns | node_build/dependencies/libuv/build/gyp/test/msvs/missing_sources/gyptest-missing.py | 315 | 1413 | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that missing 'sources' files are treated as fatal errors when the
the generator flag 'msvs_error_on_missing_sources' is set.
""... | gpl-3.0 | -1,566,312,875,987,864,300 | 31.860465 | 80 | 0.69356 | false |
allenlavoie/tensorflow | tensorflow/python/data/kernel_tests/sequence_dataset_op_test.py | 18 | 7947 | # 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 | 4,478,306,677,661,902,300 | 37.023923 | 80 | 0.660249 | false |
nhicher/ansible | lib/ansible/modules/storage/netapp/_na_cdot_license.py | 8 | 9278 | #!/usr/bin/python
# (c) 2017, NetApp, Inc
# 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': ['deprecated'],
... | gpl-3.0 | 4,377,202,714,990,230,500 | 30.0301 | 92 | 0.577818 | false |
reviewboard/reviewboard | reviewboard/scmtools/tests/test_cvs.py | 2 | 34597 | # coding=utf-8
from __future__ import unicode_literals
import os
import nose
from django.core.exceptions import ValidationError
from djblets.testing.decorators import add_fixtures
from reviewboard.diffviewer.parser import DiffParserError
from reviewboard.scmtools.core import PRE_CREATION, Revision
from reviewboard.s... | mit | -6,814,650,041,892,453,000 | 41.597291 | 79 | 0.553586 | false |
jiangzhuo/kbengine | kbe/src/lib/python/Lib/test/test_posixpath.py | 68 | 23737 | import itertools
import os
import posixpath
import sys
import unittest
import warnings
from posixpath import realpath, abspath, dirname, basename
from test import support, test_genericpath
try:
import posix
except ImportError:
posix = None
# An absolute path to a temporary filename for testing. We can't rely ... | lgpl-3.0 | 6,324,452,116,080,138,000 | 42.634191 | 100 | 0.552387 | false |
jaysonsantos/servo | components/script/dom/bindings/codegen/parser/tests/test_arraybuffer.py | 158 | 4183 | import WebIDL
def WebIDLTest(parser, harness):
parser.parse("""
interface TestArrayBuffer {
attribute ArrayBuffer bufferAttr;
void bufferMethod(ArrayBuffer arg1, ArrayBuffer? arg2, ArrayBuffer[] arg3, sequence<ArrayBuffer> arg4);
attribute ArrayBufferView viewAttr;
... | mpl-2.0 | 6,412,165,016,249,583,000 | 48.797619 | 148 | 0.705235 | false |
GitAngel/django | django/contrib/auth/decorators.py | 356 | 3049 | from functools import wraps
from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.core.exceptions import PermissionDenied
from django.shortcuts import resolve_url
from django.utils import six
from django.utils.decorators import available_attrs
from django.utils.six.moves.urll... | bsd-3-clause | 1,720,121,370,879,008,300 | 39.653333 | 91 | 0.666776 | false |
EmreAtes/spack | var/spack/repos/builtin/packages/xorg-sgml-doctools/package.py | 5 | 1781 | ##############################################################################
# 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 | -4,319,839,202,952,190,500 | 44.666667 | 88 | 0.68557 | false |
v-zhongz/azure-linux-extensions | OSPatching/azure/http/__init__.py | 52 | 2502 | #-------------------------------------------------------------------------
# Copyright (c) Microsoft. 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.apac... | apache-2.0 | -8,716,937,709,333,986,000 | 33.273973 | 78 | 0.627098 | false |
rghe/ansible | lib/ansible/plugins/action/eos_config.py | 56 | 4248 | #
# Copyright 2015 Peter Sprygada <psprygada@ansible.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... | gpl-3.0 | 2,550,151,901,330,299,000 | 36.263158 | 85 | 0.617232 | false |
OpenSoccerManager/opensoccermanager-editor | uigtk/dialogs.py | 1 | 4445 | #!/usr/bin/env python3
# This file is part of OpenSoccerManager-Editor.
#
# OpenSoccerManager 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 la... | gpl-3.0 | -6,657,284,019,451,946,000 | 34.846774 | 107 | 0.651069 | false |
aequitas/home-assistant | homeassistant/components/discovery/__init__.py | 1 | 7474 | """
Starts a service to scan in intervals for new devices.
Will emit EVENT_PLATFORM_DISCOVERED whenever a new service has been discovered.
Knows which components handle certain types, will make sure they are
loaded before the EVENT_PLATFORM_DISCOVERED is fired.
"""
import json
from datetime import timedelta
import lo... | apache-2.0 | -3,685,166,191,541,003,000 | 30.804255 | 79 | 0.642895 | 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.