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 |
|---|---|---|---|---|---|---|---|---|---|---|
hack4sec/ws-cli | classes/jobs/MongoJob.py | 1 | 5376 | # -*- coding: utf-8 -*-
"""
This is part of WebScout software
Docs EN: http://hack4sec.pro/wiki/index.php/WebScout_en
Docs RU: http://hack4sec.pro/wiki/index.php/WebScout
License: MIT
Copyright (c) Anton Kuzmin <http://anton-kuzmin.ru> (ru) <http://anton-kuzmin.pro> (en)
Common class for jobs works with MongoDB
"""
i... | mit | 5,420,918,640,989,109,000 | 28.594444 | 116 | 0.523372 | false |
gannetson/django | django/contrib/flatpages/forms.py | 357 | 2024 | from django import forms
from django.conf import settings
from django.contrib.flatpages.models import FlatPage
from django.utils.translation import ugettext, ugettext_lazy as _
class FlatpageForm(forms.ModelForm):
url = forms.RegexField(label=_("URL"), max_length=100, regex=r'^[-\w/\.~]+$',
help_text=_("E... | bsd-3-clause | -8,797,956,800,796,315,000 | 36.481481 | 94 | 0.554348 | false |
fenginx/django | tests/admin_inlines/models.py | 14 | 6885 | """
Testing of admin inline formsets.
"""
import random
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
class Parent(models.Model):
name = models.CharField(max_length=50)
def __str__(self):
retur... | bsd-3-clause | -1,111,888,167,839,457,700 | 24.21978 | 93 | 0.717357 | false |
boompig/passzero | passzero/main_routes.py | 1 | 12491 | from functools import wraps
from flask import (Blueprint, abort, current_app, escape, flash, make_response,
redirect, render_template, request, session, url_for)
from sqlalchemy.orm.exc import NoResultFound
from passzero.api_utils import check_auth
from passzero.backend import (activate_account, de... | gpl-3.0 | -8,464,349,113,962,936,000 | 32.942935 | 119 | 0.647987 | false |
LoHChina/nova | nova/api/openstack/compute/contrib/extended_virtual_interfaces_net.py | 39 | 2104 | # Copyright 2013 IBM Corp.
#
# 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 t... | apache-2.0 | 8,469,629,465,449,983,000 | 38.698113 | 79 | 0.639259 | false |
aferr/LatticeMemCtl | src/python/m5/util/attrdict.py | 84 | 3421 | # Copyright (c) 2006 The Regents of The University of Michigan
# 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 ... | bsd-3-clause | 3,028,026,996,137,915,000 | 33.21 | 75 | 0.666179 | false |
hynnet/openwrt-mt7620 | staging_dir/host/lib/python2.7/distutils/dep_util.py | 177 | 3509 | """distutils.dep_util
Utility functions for simple, timestamp-based dependency of files
and groups of files; also, function based entirely on such
timestamp dependency analysis."""
__revision__ = "$Id$"
import os
from stat import ST_MTIME
from distutils.errors import DistutilsFileError
def newer(source, target):
... | gpl-2.0 | 8,281,611,961,159,469,000 | 38.426966 | 78 | 0.655172 | false |
shakamunyi/docker-registry | depends/docker-registry-core/docker_registry/testing/driver.py | 30 | 13434 | # -*- coding: utf-8 -*-
# Copyright (c) 2014 Docker.
#
# 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... | apache-2.0 | -834,524,187,108,370,700 | 35.674863 | 78 | 0.617746 | false |
rastaman/ansible-modules-core | cloud/amazon/ec2_metric_alarm.py | 61 | 10684 | #!/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 distributed... | gpl-3.0 | 115,073,352,208,283,900 | 36.487719 | 435 | 0.632815 | false |
wolverineav/neutron | neutron/db/common_db_mixin.py | 3 | 14029 | # Copyright (c) 2014 OpenStack Foundation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | apache-2.0 | 6,460,679,173,305,752,000 | 43.536508 | 79 | 0.569463 | false |
cgstudiomap/cgstudiomap | main/eggs/reportlab-3.2.0-py2.7-linux-x86_64.egg/reportlab/graphics/barcode/qrencoder.py | 36 | 34126 | # QRCode for Python
#
# Support for Kanji, Hanzi, ECI, FNC1 and Structurded append,
# and optimizations by Anders Hammarquist <iko@openend.se>
#
# Copyright (c) 2014 Open End AB http://www.openend.se/
#
# Ported from the Javascript library by Sam Curren
#
# QRCode for Javascript
# http://d-project.googlecode.com/svn/tr... | agpl-3.0 | -6,790,555,099,693,506,000 | 29.2 | 80 | 0.475063 | false |
ashwyn/eden-message_parser | private/templates/default/menus.py | 8 | 4154 | # -*- coding: utf-8 -*-
from gluon import *
from s3 import *
from eden.layouts import *
try:
from .layouts import *
except ImportError:
pass
import eden.menus as default
# Below is an example which you can base your own template's menus.py on
# - there are also other examples in the other templates folders
#... | mit | -1,046,064,666,999,466,600 | 34.810345 | 80 | 0.505296 | false |
kampanita/pelisalacarta | python/main-classic/platformcode/xbmc_info_window.py | 1 | 21922 | # -*- coding: utf-8 -*-
# ------------------------------------------------------------
# pelisalacarta 4
# Copyright 2015 tvalacarta@gmail.com
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#
# Distributed under the terms of GNU General Public License v3 (GPLv3)
# http://www.gnu.org/licenses/gpl-3.0.html
# --... | gpl-3.0 | 7,880,560,362,160,596,000 | 46.503254 | 116 | 0.557834 | false |
luzheqi1987/nova-annotation | nova/tests/unit/test_hooks.py | 22 | 6320 | # Copyright (c) 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | apache-2.0 | 5,709,721,052,965,497,000 | 29.829268 | 78 | 0.631329 | false |
dario61081/koalixcrm | koalixcrm/crm/migrations/0045_auto_20180805_2047.py | 2 | 1557 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-08-05 20:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('crm', '0044_reportingperiod_status'),
]
operations... | bsd-3-clause | 7,300,502,120,805,449,000 | 32.847826 | 148 | 0.5851 | false |
odicraig/kodi2odi | addons/plugin.radio.disney/common.py | 2 | 7722 | #############################################################################
#############################################################################
import os,xbmc,xbmcgui,xbmcaddon,sys,logging,re,urllib,urllib2
#############################################################################
#################... | gpl-3.0 | 1,457,990,216,350,937,000 | 43.423529 | 237 | 0.596348 | false |
rgabo/awsh | awsh/repl.py | 1 | 3713 | from __future__ import unicode_literals, print_function
import shlex
import sys
import traceback
from codeop import compile_command
from pathlib import Path
from shutil import which
from awsh.commands import *
from awsh.providers import Provider, PosixProvider
from awsh.util import lazy_property
from prompt_toolkit i... | bsd-3-clause | 2,869,738,789,390,848,500 | 24.784722 | 82 | 0.58174 | false |
partofthething/home-assistant | tests/components/nest/test_events.py | 3 | 9106 | """Test for Nest binary sensor platform for the Smart Device Management API.
These tests fake out the subscriber/devicemanager, and are not using a real
pubsub subscriber.
"""
from google_nest_sdm.device import Device
from google_nest_sdm.event import EventMessage
from homeassistant.util.dt import utcnow
from .comm... | mit | -7,789,226,528,352,010,000 | 30.078498 | 87 | 0.631562 | false |
RefugeeMatchmaking/HackZurich | GAE_Playground/libs/networkx/algorithms/bipartite/tests/test_cluster.py | 85 | 2709 | import networkx as nx
from nose.tools import *
from networkx.algorithms.bipartite.cluster import cc_dot,cc_min,cc_max
import networkx.algorithms.bipartite as bipartite
def test_pairwise_bipartite_cc_functions():
# Test functions for different kinds of bipartite clustering coefficients
# between pairs of nodes ... | mit | -8,219,858,428,909,908,000 | 37.7 | 80 | 0.640827 | false |
devekko/ansible-role-manager | arm/commands/install.py | 1 | 5123 | import os, shutil, re
from . import Command, CommandException
from arm.conf import settings
from arm.odict import odict
from arm.util import retrieve_role, retrieve_all_roles, get_playbook_root
from arm import Role, Module
class install(Command):
help = "install playbook role"
def __init__(self... | apache-2.0 | -8,093,591,074,921,309,000 | 34.576389 | 125 | 0.553191 | false |
ianyh/heroku-buildpack-python-nodejs | vendor/distribute-0.6.36/setuptools/tests/test_markerlib.py | 71 | 2237 | import os
import unittest
from setuptools.tests.py26compat import skipIf
try:
import ast
except ImportError:
pass
class TestMarkerlib(unittest.TestCase):
@skipIf('ast' not in globals(),
"ast not available (Python < 2.6?)")
def test_markers(self):
from _markerlib import interpret, defa... | mit | 2,657,379,931,597,587,000 | 33.953125 | 89 | 0.563701 | false |
houzhenggang/hiwifi-openwrt-HC5661-HC5761 | staging_dir/host/lib/python2.7/ctypes/test/test_prototypes.py | 81 | 6738 | from ctypes import *
import unittest
# IMPORTANT INFO:
#
# Consider this call:
# func.restype = c_char_p
# func(c_char_p("123"))
# It returns
# "123"
#
# WHY IS THIS SO?
#
# argument tuple (c_char_p("123"), ) is destroyed after the function
# func is called, but NOT before the result is actually built.
#
# If... | gpl-2.0 | -3,905,336,734,486,215,000 | 29.488688 | 81 | 0.570347 | false |
FireWRT/OpenWrt-Firefly-Libraries | staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/usr/lib/python2.7/ConfigParser.py | 186 | 27746 | """Configuration file parser.
A setup file consists of sections, lead by a "[section]" header,
and followed by "name: value" entries, with continuations and such in
the style of RFC 822.
The option values can contain format strings which refer to other values in
the same section, or values in a special [DEFAULT] sect... | gpl-2.0 | -8,483,117,190,821,577,000 | 35.847278 | 80 | 0.54534 | false |
huntxu/fuel-web | nailgun/manage.py | 2 | 11684 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2013 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | apache-2.0 | 2,955,147,169,767,911,400 | 29.348052 | 80 | 0.653115 | false |
petewarden/tensorflow | tensorflow/python/data/kernel_tests/as_numpy_iterator_test.py | 9 | 3745 | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -3,758,278,383,399,535,600 | 35.715686 | 80 | 0.676903 | false |
gmnamra/python-image-utils | Tools/guimaker.py | 1 | 6773 | """
###############################################################################
An extended Frame that makes window menus and toolbars automatically.
Use GuiMakerFrameMenu for embedded components (makes frame-based menus).
Use GuiMakerWindowMenu for top-level windows (makes Tk8.0 window menus).
See the self-te... | mit | -6,838,384,200,539,205,000 | 39.808642 | 80 | 0.490034 | false |
int19h/PTVS | Python/Product/Miniconda/Miniconda3-x64/Lib/site-packages/win32comext/shell/demos/explorer_browser.py | 10 | 4758 | # A sample of using Vista's IExplorerBrowser interfaces...
# Currently doesn't quite work:
# * CPU sits at 100% while running.
import sys
import pythoncom
from win32com.shell import shell, shellcon
import win32gui, win32con, win32api
from win32com.server.util import wrap, unwrap
# event handler for the browser.
IExpl... | apache-2.0 | -393,237,709,399,099,460 | 39.666667 | 127 | 0.627785 | false |
synopat/pyload | module/lib/thrift/transport/TTransport.py | 74 | 8384 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | gpl-3.0 | 2,303,665,774,153,999,600 | 24.329305 | 78 | 0.674499 | false |
wwj718/edx-platform | common/djangoapps/track/views/tests/test_views.py | 81 | 10225 | # pylint: disable=missing-docstring,maybe-no-member
from mock import patch, sentinel
from django.contrib.auth.models import User
from django.test.client import RequestFactory
from django.test.utils import override_settings
from track import views
from track.middleware import TrackMiddleware
from track.tests import E... | agpl-3.0 | 2,877,390,146,717,725,000 | 33.197324 | 106 | 0.506993 | false |
crichardson17/starburst_atlas | Low_resolution_sims/DustFree_LowRes/Padova_cont/padova_cont_4/Optical1.py | 33 | 7366 | import csv
import matplotlib.pyplot as plt
from numpy import *
import scipy.interpolate
import math
from pylab import *
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
import matplotlib.patches as patches
from matplotlib.path import Path
import os
# --------------------------------------------------... | gpl-2.0 | 6,015,122,248,314,438,000 | 29.188525 | 203 | 0.594217 | false |
matthiask/django-chet | chet/views.py | 1 | 1373 | from django.shortcuts import get_object_or_404, render
from django.views import generic
from chet.models import Album, Photo
def visible_albums(user):
if user.is_staff:
return Album.objects.active()
else:
return Album.objects.public()
def visible_photos(user):
if user.is_staff:
... | bsd-3-clause | -7,310,885,411,515,405,000 | 21.145161 | 67 | 0.625637 | false |
nerzhul/ansible | lib/ansible/modules/files/acl.py | 25 | 11472 | #!/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 | 3,480,645,721,317,277,700 | 29.505319 | 341 | 0.603749 | false |
ybellavance/python-for-android | python3-alpha/extra_modules/atom/mock_service.py | 48 | 10344 | #!/usr/bin/python
#
# Copyright (C) 2008 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 ... | apache-2.0 | -1,612,177,898,058,422,500 | 41.567901 | 89 | 0.701663 | false |
niteoweb/libcloud | libcloud/container/drivers/dummy.py | 24 | 1589 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | 9,029,930,833,809,508,000 | 33.543478 | 74 | 0.687854 | false |
tedelhourani/ansible | lib/ansible/modules/cloud/amazon/ec2_vol.py | 10 | 20561 | #!/usr/bin/python
# Copyright: Ansible Project
# 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': ['stableinterf... | gpl-3.0 | -8,842,771,345,494,299,000 | 31.277865 | 158 | 0.621322 | false |
HaydenFaulkner/phd | keras_code/cnns/model_defs/faulkner/c3d.py | 1 | 3008 | '''
C3D CNN architecture
Webpage for original:
http://vlg.cs.dartmouth.edu/c3d/
Paper for original:
D. Tran, L. Bourdev, R. Fergus, L. Torresani, and M. Paluri
Learning Spatiotemporal Features with 3D Convolutional Networks
ICCV 2015
http://vlg.cs.dartmouth.edu/c3d/c3d_video.pdf
Designed for Sports-1M Dataset
'''
f... | mit | -3,190,853,827,328,618,000 | 41.366197 | 140 | 0.589761 | false |
mbernasocchi/QGIS | tests/src/python/test_qgsziputils.py | 45 | 3763 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for zip functions.
.. note:: 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 2 of the License, or
(at your option) any later version.
"""
__a... | gpl-2.0 | 3,736,205,845,756,684,300 | 29.104 | 78 | 0.618124 | false |
krez13/scikit-learn | sklearn/externals/joblib/_memory_helpers.py | 303 | 3605 | try:
# Available in Python 3
from tokenize import open as open_py_source
except ImportError:
# Copied from python3 tokenize
from codecs import lookup, BOM_UTF8
import re
from io import TextIOWrapper, open
cookie_re = re.compile("coding[:=]\s*([-\w.]+)")
def _get_normal_name(orig_enc):
... | bsd-3-clause | 3,441,545,788,849,177,000 | 33.342857 | 79 | 0.560333 | false |
prarthitm/edxplatform | openedx/core/lib/block_structure/factory.py | 7 | 3851 | """
Module for factory class for BlockStructure objects.
"""
from .block_structure import BlockStructureModulestoreData, BlockStructureBlockData
class BlockStructureFactory(object):
"""
Factory class for BlockStructure objects.
"""
@classmethod
def create_from_modulestore(cls, root_block_usage_key... | agpl-3.0 | 1,256,899,184,124,275,700 | 39.536842 | 114 | 0.64321 | false |
tal-nino/ansible | lib/ansible/plugins/lookup/ini.py | 82 | 3304 | # (c) 2015, Yannig Perre <yannig.perre(at)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 late... | gpl-3.0 | 4,063,612,942,060,546,600 | 34.526882 | 107 | 0.586562 | false |
davidsoncolin/IMS | UI/QActorWidget.py | 1 | 2542 | #!/usr/bin/env python
from PySide import QtCore, QtGui
class QActorWidget(QtGui.QWidget):
def __init__(self, cb, parent=None):
self.cb = cb
self.parent = parent
QtGui.QWidget.__init__(self, parent)
self.groupLayout = QtGui.QVBoxLayout(self)
self.groupTabs = QtGui.QTabWidget()
self.groupLayout.addWidget(s... | mit | 345,725,258,588,368,300 | 30.775 | 97 | 0.739182 | false |
fbossy/SickRage | lib/hachoir_parser/common/win32.py | 74 | 6210 | from hachoir_core.field import (FieldSet,
UInt16, UInt32, Enum, String, Bytes, Bits, TimestampUUID60)
from hachoir_parser.video.fourcc import video_fourcc_name
from hachoir_core.bits import str2hex
from hachoir_core.text_handler import textHandler, hexadecimal
from hachoir_parser.network.common import MAC48_Address... | gpl-3.0 | -2,656,384,322,158,293,500 | 34.689655 | 97 | 0.583414 | false |
p4datasystems/CarnotKEdist | dist/Lib/types.py | 30 | 2149 | """Define names for all type symbols known in the standard interpreter.
Types that are part of optional modules (e.g. array) are not listed.
"""
import sys
# Iterators in Python aren't a matter of type but of protocol. A large
# and changing number of builtin types implement *some* flavor of
# iterator. Don't check... | apache-2.0 | 801,455,557,047,614,700 | 23.701149 | 71 | 0.705444 | false |
rahuldhote/odoo | openerp/cli/start.py | 240 | 2748 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import glob
import os
import sys
from . import Command
from .server import main
from openerp.modules.module import get_module_root, MANIFEST
from openerp.service.db import _create_empty_database, DatabaseExists
class Start(Command):
"""Quick start the... | agpl-3.0 | 1,866,656,568,638,254,000 | 35.64 | 104 | 0.59607 | false |
onitake/ansible | test/units/mock/yaml_helper.py | 209 | 5267 | import io
import yaml
from ansible.module_utils.six import PY3
from ansible.parsing.yaml.loader import AnsibleLoader
from ansible.parsing.yaml.dumper import AnsibleDumper
class YamlTestUtils(object):
"""Mixin class to combine with a unittest.TestCase subclass."""
def _loader(self, stream):
"""Vault r... | gpl-3.0 | -2,129,113,732,131,423,700 | 42.528926 | 130 | 0.639453 | false |
jclakkis/discus-inferno | flaskenv/lib/python2.7/site-packages/psycopg2/tests/test_bug_gc.py | 62 | 1719 | #!/usr/bin/env python
# bug_gc.py - test for refcounting/GC bug
#
# Copyright (C) 2010-2011 Federico Di Gregorio <fog@debian.org>
#
# psycopg2 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 ve... | mit | 501,774,426,823,963,650 | 34.8125 | 75 | 0.727749 | false |
wolfv/uberwriter | uberwriter/plugins/bibtex/fuzzywuzzy/process.py | 11 | 8790 | #!/usr/bin/env python
# encoding: utf-8
"""
process.py
Copyright (c) 2011 Adam Cohen
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 t... | gpl-3.0 | -1,416,555,686,416,905,700 | 37.722467 | 122 | 0.663481 | false |
thopiekar/Cura | cura/Machines/Models/MultiBuildPlateModel.py | 2 | 2526 | # Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from PyQt5.QtCore import QTimer, pyqtSignal, pyqtProperty
from UM.Application import Application
from UM.Scene.Camera import Camera
from UM.Scene.Selection import Selection
from UM.Qt.ListModel import ListModel
#
# This ... | lgpl-3.0 | 3,507,922,057,515,765,000 | 35.608696 | 125 | 0.70388 | false |
adhoc-dev/odoo-addons | product_pack/models/pack.py | 5 | 3149 | # -*- encoding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
from openerp import fields, models, api
class product_p... | agpl-3.0 | 1,675,045,906,619,023,600 | 31.802083 | 78 | 0.49476 | false |
guiquanz/Dato-Core | src/unity/python/graphlab_util/lambda_closure_capture.py | 13 | 9429 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright (C) 2015 Dato, Inc.
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the DATO-PYTHON-LICENSE file for details.
'''
import sys
import parser
import symbol
import token
import ast
import inspect
import ... | agpl-3.0 | -2,257,631,989,928,932,900 | 31.622837 | 119 | 0.592384 | false |
visualputty/Landing-Lights | django/utils/datastructures.py | 239 | 15522 | from types import GeneratorType
from django.utils.copycompat import copy, deepcopy
class MergeDict(object):
"""
A simple class for creating new "virtual" dictionaries that actually look
up values in more than one dictionary, passed in the constructor.
If a key appears in more than one of the given d... | bsd-3-clause | -4,056,238,526,838,558,000 | 30.294355 | 131 | 0.547417 | false |
nachandr/cfme_tests | cfme/tests/containers/test_static_custom_attributes.py | 3 | 10129 | import re
from copy import deepcopy
from os import path
from random import choice
from string import ascii_letters
from string import digits
import pytest
from manageiq_client.api import APIException
from cfme import test_requirements
from cfme.containers.provider import ContainersProvider
from cfme.containers.provid... | gpl-2.0 | -5,497,219,186,626,041,000 | 34.292683 | 94 | 0.669563 | false |
MaxTyutyunnikov/lino | lino/modlib/vocbook/base.py | 1 | 33978 | # -*- coding: UTF-8 -*-
## Copyright 2011-2013 Luc Saffre
## This file is part of the Lino project.
## Lino 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 y... | gpl-3.0 | 8,913,107,689,133,865,000 | 33.64638 | 99 | 0.500368 | false |
tempbottle/Nuitka | nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/rpcgen.py | 4 | 2827 | """SCons.Tool.rpcgen
Tool-specific initialization for RPCGEN tools.
Three 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 - 2014 The SCons Foundation
#
# Permission is hereby granted, free of... | apache-2.0 | 1,978,389,670,858,955,800 | 39.385714 | 91 | 0.694729 | false |
jendap/tensorflow | tensorflow/contrib/tpu/python/tpu/datasets.py | 5 | 7480 | # 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,726,582,858,502,975,000 | 38.162304 | 80 | 0.706417 | false |
gnachman/iTerm2 | tools/ply/ply-3.4/test/yacc_badprec2.py | 174 | 1501 | # -----------------------------------------------------------------------------
# yacc_badprec2.py
#
# Bad precedence
# -----------------------------------------------------------------------------
import sys
if ".." not in sys.path: sys.path.insert(0,"..")
import ply.yacc as yacc
from calclex import tokens
# Parsin... | gpl-2.0 | -5,641,118,034,247,557,000 | 21.073529 | 79 | 0.494337 | false |
wayoda/Arduino | arduino-core/src/processing/app/i18n/python/requests/packages/charade/charsetgroupprober.py | 2929 | 3791 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights ... | lgpl-2.1 | -5,177,969,393,237,023,000 | 34.764151 | 69 | 0.56766 | false |
GeographicaGS/moocng | moocng/media_contents/handlers/prezi.py | 1 | 1737 | import re
from django.template.loader import get_template
from django.template import Context
from django.templatetags.static import static
from .base import MediaContentHandlerBase
class PreziMediaContentHandler(MediaContentHandlerBase):
def get_iframe_template(self, content_id, **kwargs):
template = g... | apache-2.0 | -4,423,932,717,042,717,700 | 33.058824 | 78 | 0.593552 | false |
zero-ui/miniblink49 | v8_7_5/tools/unittests/run_tests_test.py | 3 | 23853 | #!/usr/bin/env python
# Copyright 2017 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Global system tests for V8 test runners and fuzzers.
This hooks up the framework under tools/testrunner testing high-level scena... | gpl-3.0 | 4,105,457,174,386,922,500 | 34.495536 | 91 | 0.627049 | false |
TE-ToshiakiTanaka/alize | alize/library/slack/module.py | 1 | 1735 | import os
import sys
from alize.log import Log
from alize.exception import *
try :
from slacker import Slacker
except Exception as e:
print(str(e))
L = Log("Slack.Library.ALIZE")
class Slack(object):
def __init__(self, token):
try:
self.slack = Slacker(token)
except Exception... | mit | 3,606,521,463,389,347,000 | 27.916667 | 60 | 0.511816 | false |
ua-snap/downscale | snap_scripts/epscor_sc/downscale_cmip5_epscor_sc.py | 1 | 6401 | # downscale the prepped cmip5 data downloaded using SYNDA for EPSCoR SC project
# author: Michael Lindgren -- June 09, 2016 (UPDATED: September 21, 2016 -- [ML])
if __name__ == '__main__':
import glob, os, rasterio, itertools
from functools import partial
import downscale
from downscale import preprocess, Mask, uti... | mit | 3,454,023,624,196,908,500 | 39.00625 | 151 | 0.673176 | false |
kmspriyatham/symath | scipy/scipy/interpolate/benchmarks/bench_memusage.py | 3 | 3412 | # Posix-only benchmark
from __future__ import division, absolute_import, print_function
import os
import sys
import re
import subprocess
import time
import textwrap
from numpy.testing import dec
from scipy.stats import spearmanr
import numpy as np
@dec.skipif(not sys.platform.startswith('linux'), "Memory benchmark... | apache-2.0 | -7,070,426,059,619,381,000 | 24.654135 | 89 | 0.578546 | false |
dand-oss/yaml-cpp | test/gtest-1.10.0/googlemock/scripts/generator/cpp/ast.py | 69 | 62925 | #!/usr/bin/env python
#
# Copyright 2007 Neal Norwitz
# Portions Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | mit | 7,997,252,435,162,168,000 | 35.24712 | 82 | 0.541613 | false |
SCSSoftware/BlenderTools | addon/io_scs_tools/utils/info.py | 1 | 4434 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distributed ... | gpl-2.0 | 8,198,539,691,296,012,000 | 33.107692 | 111 | 0.651105 | false |
ameuret/mongrel2 | examples/zcov/zcov/GCovGroup.py | 96 | 6378 | #!/usr/bin/python
from __future__ import division
from pprint import pprint
import cPickle
import os
import warnings
from zcov import GCovParser
class GCovGroup:
@staticmethod
def fromfile(path):
f = open(path)
try:
res = cPickle.load(f)
header,version = res[0],res[1... | bsd-3-clause | 1,305,681,132,966,070,500 | 32.746032 | 79 | 0.499216 | false |
yongshengwang/builthue | desktop/core/ext-py/PyYAML-3.09/tests/lib3/test_constructor.py | 57 | 8744 |
import yaml
import pprint
import datetime
import yaml.tokens
def execute(code):
global value
exec(code)
return value
def _make_objects():
global MyLoader, MyDumper, MyTestClass1, MyTestClass2, MyTestClass3, YAMLObject1, YAMLObject2, \
AnObject, AnInstance, AState, ACustomState, InitArgs... | apache-2.0 | -7,207,332,789,654,987,000 | 32.630769 | 101 | 0.543573 | false |
a-doumoulakis/tensorflow | tensorflow/contrib/slim/python/slim/data/dataset.py | 163 | 2444 | # 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 | 3,396,705,484,659,443,000 | 39.733333 | 80 | 0.703764 | false |
jianglu/mojo | tools/clang/scripts/run_tool.py | 34 | 11858 | #!/usr/bin/env python
# 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.
"""Wrapper script to help run clang tools across Chromium code.
How to use this tool:
If you want to run the tool across all Chrom... | bsd-3-clause | -343,072,775,630,543,700 | 33.979351 | 80 | 0.675831 | false |
DVegaCapital/zipline | zipline/utils/control_flow.py | 25 | 1295 | """
Control flow utilities.
"""
from warnings import (
catch_warnings,
filterwarnings,
)
class nullctx(object):
"""
Null context manager. Useful for conditionally adding a contextmanager in
a single line, e.g.:
with SomeContextManager() if some_expr else nullctx():
do_stuff()
"""... | apache-2.0 | -291,267,422,713,577,200 | 22.125 | 78 | 0.589189 | false |
pdellaert/ansible | lib/ansible/modules/cloud/amazon/aws_batch_compute_environment.py | 9 | 16634 | #!/usr/bin/python
# Copyright (c) 2017 Jon Meran <jonathan.meran@sonos.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTAT... | gpl-3.0 | 723,079,245,279,754,100 | 32.268 | 126 | 0.608212 | false |
vsajip/django | tests/regressiontests/localflavor/generic/tests.py | 57 | 4361 | from __future__ import unicode_literals
import datetime
from django.contrib.localflavor.generic.forms import DateField, DateTimeField
from django.test import SimpleTestCase
class GenericLocalFlavorTests(SimpleTestCase):
def test_GenericDateField(self):
error_invalid = ['Enter a valid date.']
va... | bsd-3-clause | -2,639,744,777,833,078,000 | 47.455556 | 111 | 0.562486 | false |
Andreasdahlberg/sillycat | scripts/check_style.py | 1 | 1234 | #!/usr/bin/env python3
# -*- coding: utf-8 -*
#
# 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 dist... | gpl-3.0 | 7,128,739,670,354,792,000 | 28.380952 | 71 | 0.707455 | false |
ukgovdatascience/classifyintentsapp | app/auth/forms.py | 1 | 5291 | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import DataRequired, Length, Email, Regexp, EqualTo
from wtforms.widgets import PasswordInput
from wtforms import ValidationError
import safe
from ..models import User
class PasswordWidget... | mit | 1,401,283,324,015,495,700 | 35.239726 | 84 | 0.596863 | false |
mrnamingo/vix4-34-enigma2-bcm | lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/plugin.py | 20 | 26382 | from xml.etree.cElementTree import parse as ci_parse
from boxbranding import getMachineBrand, getMachineName
from os import path as os_path
from enigma import eDVBCI_UI, eDVBCIInterfaces
from Screens.ChannelSelection import *
from Components.ActionMap import ActionMap
from Components.Sources.StaticText import StaticT... | gpl-2.0 | 6,294,768,001,270,203,000 | 39.216463 | 224 | 0.679251 | false |
YanyangChen/OpenNI2 | Wrappers/java/OpenNI.jni/CreateMethods.py | 32 | 2398 | #/****************************************************************************
#* *
#* OpenNI 1.x Alpha *
#* Copyright (C) 2012 PrimeSense Ltd. *
#* ... | apache-2.0 | 13,528,437,951,845,220 | 46.019608 | 95 | 0.382819 | false |
chitr/neutron | neutron/db/quota/models.py | 22 | 2526 | # Copyright (c) 2015 OpenStack Foundation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | apache-2.0 | 5,400,663,112,791,167,000 | 37.861538 | 78 | 0.623515 | false |
richardcs/ansible | lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py | 6 | 7683 | #!/usr/bin/python
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'status': ['preview'],
'supported_by': 'community',
'metadata_version': '1.1'}
DOCUMENTATION = '''
---
modul... | gpl-3.0 | 6,917,926,273,472,367,000 | 29.011719 | 126 | 0.645451 | false |
bswartz/cinder | cinder/volume/drivers/solidfire.py | 1 | 86895 | # All Rights Reserved.
# Copyright 2013 SolidFire 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... | apache-2.0 | -3,546,503,090,121,789,000 | 41.805419 | 79 | 0.53804 | false |
josschne/BabyWomp | cocos2d/tools/cocos2d-console/console/cocos2d_jscompile.py | 17 | 11265 | #!/usr/bin/python
# ----------------------------------------------------------------------------
# cocos2d "jscompile" plugin
#
# Copyright 2013 (C) Intel
#
# License: MIT
# ----------------------------------------------------------------------------
'''
"jscompile" plugin for cocos2d command line tool
'''
__docformat... | mit | 2,244,671,237,458,321,000 | 34.424528 | 131 | 0.528362 | false |
Manexware/medical | oemedical_data/__openerp__.py | 1 | 1120 | {
'name': 'OeMedical : Module Data',
'version': '1.0',
'author': "OeMEdical Team",
'category': 'Generic Modules/Others',
'depends': ['oemedical'],
'application': True,
'description': """
About OeMedical Data
---------------------
Core Data for oemedical, is kept as a separate module to ov... | gpl-2.0 | -2,622,202,775,317,327,400 | 20.132075 | 73 | 0.533036 | false |
CiscoSystems/tempest | tempest/stress/driver.py | 3 | 8594 | # Copyright 2013 Quanta Research Cambridge, 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 appli... | apache-2.0 | -1,070,183,983,445,930,800 | 34.221311 | 78 | 0.56586 | false |
vipulroxx/sympy | sympy/plotting/experimental_lambdify.py | 22 | 25077 | """ rewrite of lambdify - This stuff is not stable at all.
It is for internal use in the new plotting module.
It may (will! see the Q'n'A in the source) be rewritten.
It's completely self contained. Especially it does not use lambdarepr.
It does not aim to replace the current lambdify. Most importantly it will never... | bsd-3-clause | -6,618,289,287,147,524,000 | 37.639445 | 91 | 0.551023 | false |
glwu/python-for-android | python3-alpha/extra_modules/pyxmpp2/utils.py | 46 | 3459 | #
# (C) Copyright 2003-2011 Jacek Konieczny <jajcus@jajcus.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License Version
# 2.1 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be u... | apache-2.0 | -2,787,798,304,812,369,000 | 29.883929 | 79 | 0.646719 | false |
Lambdanaut/crits | crits/raw_data/api.py | 21 | 4479 | from django.core.urlresolvers import reverse
from tastypie import authorization
from tastypie.authentication import MultiAuthentication
from crits.raw_data.raw_data import RawData
from crits.raw_data.handlers import handle_raw_data_file
from crits.core.api import CRITsApiKeyAuthentication, CRITsSessionAuthentication
f... | mit | -6,177,120,377,050,833,000 | 38.289474 | 82 | 0.558607 | false |
jmhsi/justin_tinker | data_science/courses/learning_dl_packages/models/research/attention_ocr/python/utils.py | 16 | 2879 | # 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 applicab... | apache-2.0 | -5,329,140,344,653,455,000 | 34.9875 | 80 | 0.69538 | false |
madphysicist/numpy | numpy/core/_add_newdocs.py | 2 | 184288 | """
This is only meant to add docs to objects defined in C-extension modules.
The purpose is to allow easier editing of the docstrings without
requiring a re-compile.
NOTE: Many of the methods of ndarray have corresponding functions.
If you update these docstrings, please keep also the ones in
core/fromnum... | bsd-3-clause | 8,496,472,388,934,332,000 | 28.326544 | 128 | 0.582252 | false |
agry/NGECore2 | scripts/mobiles/corellia/corsec_special_ops_inspector.py | 2 | 2171 | import sys
from services.spawn import MobileTemplate
from services.spawn import WeaponTemplate
from resources.datatables import WeaponType
from resources.datatables import Difficulty
from resources.datatables import Options
from java.util import Vector
def addTemplate(core):
mobileTemplate = MobileTemplate... | lgpl-3.0 | 7,402,483,569,024,474,000 | 39.788462 | 127 | 0.803316 | false |
darren-wang/gl | glance/tests/unit/test_cached_images.py | 20 | 4719 | # Copyright (C) 2013 Yahoo! 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 ... | apache-2.0 | -934,260,007,954,881,900 | 31.544828 | 78 | 0.632973 | false |
azunite/gyp_20150930 | test/actions-multiple-outputs-with-dependencies/gyptest-action.py | 34 | 1172 | #!/usr/bin/env python
# Copyright (c) 2015 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 actions with multiple outputs & dependncies will correctly rebuild.
This is a regression test for crrev.com/1177163002.
"""
i... | bsd-3-clause | -1,888,932,165,144,181,000 | 26.255814 | 76 | 0.733788 | false |
vikatory/kbengine | kbe/res/scripts/common/Lib/test/test_codecencodings_jp.py | 88 | 4981 | #
# test_codecencodings_jp.py
# Codec encoding tests for Japanese encodings.
#
from test import support
from test import multibytecodec_support
import unittest
class Test_CP932(multibytecodec_support.TestBase, unittest.TestCase):
encoding = 'cp932'
tstring = multibytecodec_support.load_teststring('shift_jis... | lgpl-3.0 | -3,785,268,423,428,863,500 | 37.315385 | 79 | 0.593857 | false |
flavoi/diventi | diventi/ebooks/views.py | 1 | 3556 | from django.shortcuts import get_object_or_404
from django.views.generic.detail import DetailView
from django.views import View
from django.utils.translation import (
get_language,
gettext_lazy as _
)
from django.contrib.auth.mixins import (
LoginRequiredMixin,
UserPassesTestMixin
)
from django.http im... | apache-2.0 | -4,396,833,859,665,564,000 | 34.929293 | 129 | 0.665917 | false |
GitHublong/hue | desktop/core/ext-py/django-extensions-1.5.0/django_extensions/tests/uuid_field.py | 42 | 2384 | import re
import uuid
import six
from django_extensions.db.fields import PostgreSQLUUIDField
from django_extensions.tests.fields import FieldTestCase
from django_extensions.tests.testapp.models import UUIDTestModel_field, UUIDTestModel_pk, UUIDTestAgregateModel, UUIDTestManyToManyModel
class UUIDFieldTest(FieldTest... | apache-2.0 | -5,227,417,608,219,450,000 | 49.723404 | 136 | 0.687919 | false |
40023256/2015cdag1man | static/Brython3.1.0-20150301-090019/Lib/unittest/test/support.py | 770 | 3379 | import unittest
class TestEquality(object):
"""Used as a mixin for TestCase"""
# Check for a valid __eq__ implementation
def test_eq(self):
for obj_1, obj_2 in self.eq_pairs:
self.assertEqual(obj_1, obj_2)
self.assertEqual(obj_2, obj_1)
# Check for a valid __ne__ impl... | gpl-3.0 | 8,713,266,870,411,440,000 | 27.635593 | 78 | 0.576206 | false |
mahak/cinder | cinder/volume/drivers/datera/datera_common.py | 2 | 11881 | # Copyright 2020 Datera
# 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 applic... | apache-2.0 | -4,897,800,041,688,824,000 | 31.911357 | 79 | 0.595404 | false |
mgax/aleph | aleph/model/selector.py | 3 | 1189 | import logging
from datetime import datetime
from sqlalchemy.ext.hybrid import hybrid_property
from normality import normalize
from aleph.core import db
log = logging.getLogger(__name__)
class Selector(db.Model):
id = db.Column(db.Integer, primary_key=True)
_text = db.Column('text', db.Unicode, index=True)... | mit | -7,067,419,229,274,877,000 | 27.309524 | 82 | 0.640034 | false |
edc-ecuador/edc | qa/rpc-tests/test_framework/netutil.py | 328 | 4562 | #!/usr/bin/env python2
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Linux network utilities
import sys
import socket
import fcntl
import struct
import array
import os
import bi... | mit | -2,936,193,231,578,985,500 | 31.820144 | 113 | 0.583735 | false |
AthinaB/synnefo | snf-admin-app/synnefo_admin/admin/resources/networks/actions.py | 7 | 3433 | # Copyright (C) 2010-2014 GRNET S.A.
#
# 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 i... | gpl-3.0 | 1,157,283,897,701,558,000 | 35.521277 | 79 | 0.618118 | false |
xapi-project/sm | drivers/LVHDoISCSISR.py | 1 | 28450 | #!/usr/bin/python
#
# Copyright (C) Citrix Systems Inc.
#
# This program 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; version 2.1 only.
#
# This program is distributed in the hope that it will be use... | lgpl-2.1 | 489,732,788,315,582,140 | 45.486928 | 157 | 0.492865 | false |
porduna/weblabdeusto | server/src/test/unit/weblab/core/test_data_retriever.py | 3 | 14161 | #!/usr/bin/env python
#-*-*- encoding: utf-8 -*-*-
#
# Copyright (C) 2005 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individual... | bsd-2-clause | -2,806,713,701,249,388,500 | 42.839009 | 195 | 0.671257 | false |
switchboardOp/ansible | lib/ansible/modules/network/avi/avi_cloud.py | 46 | 9205 | #!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the te... | gpl-3.0 | 3,615,036,202,447,534,000 | 36.880658 | 159 | 0.641065 | 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.