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 |
|---|---|---|---|---|---|---|---|---|---|---|
midonet/python-neutron-plugin-midonet | midonet/neutron/extensions/system.py | 2 | 3293 | # Copyright (C) 2014 Midokura SARL
# 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 | 8,964,172,566,843,315,000 | 29.490741 | 78 | 0.586395 | false |
gsnbng/erpnext | erpnext/accounts/doctype/bank_guarantee/bank_guarantee.py | 2 | 1173 | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe, json
from frappe.model.document import Document
from frappe import _
from frappe.desk.search import sanitize_searchfield
... | agpl-3.0 | 2,494,470,119,605,458,400 | 38.1 | 94 | 0.73913 | false |
p4datasystems/CarnotKEdist | dist/Lib/unittest/case.py | 28 | 42629 | """Test case implementation"""
import collections
import sys
import functools
import difflib
import pprint
import re
import types
import warnings
from . import result
from .util import (
strclass, safe_repr, unorderable_list_difference,
_count_diff_all_purpose, _count_diff_hashable
)
__unittest = True
DIF... | apache-2.0 | -3,606,336,387,248,588,000 | 38.581244 | 109 | 0.570738 | false |
Uh-huh-Philip/ShadowDNS | test.py | 79 | 1492 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
sys.path.insert(0, 'shadowsocks')
import os
import signal
import select
import time
from subprocess import Popen, PIPE
p1 = Popen(['sudo', sys.executable, 'shadowdns/dnsrelay.py', '-c', sys.argv[-1]],
shell=False, bufsize=0, stdin=PIPE, stdout=PIPE, stde... | mit | -6,254,856,534,722,235,000 | 26.62963 | 88 | 0.531501 | false |
PublicaMundi/pycsw | pycsw/formats/__init__.py | 4 | 1317 | # -*- coding: ISO-8859-15 -*-
# =================================================================
#
# Authors: Tom Kralidis <tomkralidis@gmail.com>
#
# Copyright (c) 2012 Tom Kralidis
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files... | mit | -6,931,090,790,133,195,000 | 44.413793 | 67 | 0.685649 | false |
sferik/rubinius | vendor/libffi/generate-darwin-source-and-headers.py | 87 | 6613 | #!/usr/bin/env python
import subprocess
import os
import errno
import collections
import glob
import argparse
class Platform(object):
pass
class simulator_platform(Platform):
directory = 'darwin_ios'
sdk = 'iphonesimulator'
arch = 'i386'
triple = 'i386-apple-darwin11'
version_min = '-miphoneos... | bsd-3-clause | -6,263,151,811,561,156,000 | 30.641148 | 136 | 0.622864 | false |
sumedh123/debatify | venv/lib/python2.7/site-packages/click/_termui_impl.py | 64 | 16377 | """
click._termui_impl
~~~~~~~~~~~~~~~~~~
This module contains implementations for the termui module. To keep the
import time of Click down, some infrequently used functionality is placed
in this module and only imported as needed.
:copyright: (c) 2014 by Armin Ronacher.
:license: BSD, se... | mit | -3,156,146,741,443,816,000 | 28.939671 | 80 | 0.522806 | false |
petr-tichy/thefuck | setup.py | 1 | 1212 | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
if sys.version_info < (2, 7):
print('thefuck requires Python version 2.7 or later' +
' ({}.{} detected).'.format(*sys.version_info[:2]))
sys.exit(-1)
elif (3, 0) < sys.version_info < (3, 3):
print('thefuck requires Pytho... | mit | 1,349,284,024,046,627,300 | 34.647059 | 81 | 0.610561 | false |
shakamunyi/tensorflow | tensorflow/contrib/learn/python/learn/tests/test_regression.py | 8 | 1610 | # Copyright 2015-present The Scikit Flow 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 require... | apache-2.0 | -7,636,759,112,183,710,000 | 34 | 78 | 0.718012 | false |
jhayworth/config | .emacs.d/elpy/rpc-venv/local/lib/python2.7/site-packages/wheel/macosx_libfile.py | 6 | 11858 | """
This module contains function to analyse dynamic library
headers to extract system information
Currently only for MacOSX
Library file on macosx system starts with Mach-O or Fat field.
This can be distinguish by first 32 bites and it is called magic number.
Proper value of magic number is with suffix _MAGIC. Suffi... | gpl-3.0 | 1,243,277,407,881,065,500 | 33.774194 | 95 | 0.625148 | false |
turbomanage/training-data-analyst | courses/machine_learning/deepdive2/structured/solutions/serving/application/lib/itsdangerous/timed.py | 11 | 5635 | import time
from datetime import datetime
from ._compat import text_type
from .encoding import base64_decode
from .encoding import base64_encode
from .encoding import bytes_to_int
from .encoding import int_to_bytes
from .encoding import want_bytes
from .exc import BadSignature
from .exc import BadTimeSignature
from .e... | apache-2.0 | 2,730,719,426,607,097,000 | 37.333333 | 85 | 0.619166 | false |
eeshangarg/oh-mainline | vendor/packages/twisted/twisted/persisted/journal/base.py | 19 | 6454 | # -*- test-case-name: twisted.test.test_journal -*-
#
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
#
"""Basic classes and interfaces for journal."""
from __future__ import nested_scopes
# system imports
import os, time
try:
import cPickle as pickle
except ImportError:
import pi... | agpl-3.0 | 8,677,767,639,720,970,000 | 27.557522 | 96 | 0.628293 | false |
twilio/calworkshop | twilio/twiml.py | 2 | 14038 | """
Make sure to check out the TwiML overview and tutorial
"""
import xml.etree.ElementTree as ET
class TwimlException(Exception):
pass
class Verb(object):
"""Twilio basic verb object.
"""
GET = "GET"
POST = "POST"
nestables = None
def __init__(self, **kwargs):
self.name = self... | mit | -857,049,181,320,866,800 | 28.678647 | 79 | 0.586978 | false |
Vagab0nd/SiCKRAGE | sickchill/oldbeard/databases/movie.py | 1 | 6379 | import datetime
import logging
import guessit
from slugify import slugify
from sqlalchemy import Boolean, Column, Date, DateTime, ForeignKey, Integer, Interval, JSON, SmallInteger, String
from sqlalchemy.event import listen
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship... | gpl-3.0 | 4,810,570,724,278,374,000 | 27.995455 | 113 | 0.609343 | false |
tchernomax/ansible | lib/ansible/modules/cloud/openstack/os_keystone_service.py | 34 | 5676 | #!/usr/bin/python
# Copyright 2016 Sam Yaple
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | 7,614,245,637,455,980,000 | 28.257732 | 125 | 0.594609 | false |
LittleBun/apm_planner | sik_uploader/sik_uploader.py | 13 | 9201 | #!/usr/bin/env python
#
# Serial firmware uploader for the SiK bootloader
#
import sys, argparse, binascii, serial, glob
class firmware(object):
'''Loads a firmware file'''
# parse a single IntelHex line and obtain the byte array and address
def __parseline(self, line):
# ignore lines not beginni... | agpl-3.0 | -6,885,518,787,509,258,000 | 31.512367 | 103 | 0.560591 | false |
proffalken/cobbler | cobbler/action_hardlink.py | 10 | 1914 | """
Hard links cobbler content together to save space.
Copyright 2009, Red Hat, Inc
Michael DeHaan <mdehaan@redhat.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the Licens... | gpl-2.0 | 1,431,612,479,210,648,800 | 30.9 | 141 | 0.685475 | false |
open-synergy/stock-logistics-warehouse | partner_location_auto_create/models/res_partner.py | 2 | 5187 | # coding: utf-8
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2015 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and/or modify
# ... | agpl-3.0 | -137,698,906,894,151,180 | 32.464516 | 78 | 0.558704 | false |
yigitguler/django | django/contrib/messages/tests/base.py | 14 | 14035 | from unittest import skipUnless
from django import http
from django.apps import apps
from django.conf import global_settings
from django.contrib.messages import constants, utils, get_level, set_level
from django.contrib.messages.api import MessageFailure
from django.contrib.messages.constants import DEFAULT_LEVELS
fro... | bsd-3-clause | -4,501,689,273,401,153,000 | 36.728495 | 102 | 0.620591 | false |
CI-WATER/portal | src/ckanext-uebpackage/ckanext/uebpackage/controllers/packagecreate.py | 1 | 127106 | import ckan.lib.base as base
import logging
import ckan.plugins as p
from ckan.lib.helpers import json
import ckan.lib.uploader as uploader
import ckan.lib.munge as munge
from datetime import datetime
import os
import shutil
import httplib
from .. import helpers as uebhelper
tk = p.toolkit
_ = tk._ # translator fu... | bsd-3-clause | -1,875,879,040,512,927,000 | 44.105039 | 142 | 0.614416 | false |
adamchainz/ansible | test/runner/lib/util.py | 27 | 14358 | """Miscellaneous utility functions and classes."""
from __future__ import absolute_import, print_function
import errno
import os
import pipes
import pkgutil
import shutil
import subprocess
import re
import sys
import time
def is_shippable():
"""
:rtype: bool
"""
return os.environ.get('SHIPPABLE') ==... | gpl-3.0 | 6,719,176,836,513,402,000 | 25.058076 | 118 | 0.577378 | false |
Lektorium-LLC/edx-platform | lms/djangoapps/commerce/api/v1/views.py | 5 | 3413 | import logging
from django.contrib.auth.models import User
from django.http import Http404
from edx_rest_api_client import exceptions
from edx_rest_framework_extensions.authentication import JwtAuthentication
from rest_framework.authentication import SessionAuthentication
from rest_framework.generics import ListAPIVie... | agpl-3.0 | 4,308,618,946,052,956,000 | 39.630952 | 102 | 0.739525 | false |
christabor/flask_extras | tests/test_config.py | 2 | 1670 | """Test configuration utilities."""
from flask import Flask
from flask_extras.filters import config
class TestGetFuncs:
"""All tests for get funcs function."""
def test_get_module_funcs(self, client):
"""Test the return value."""
assert isinstance(config._get_funcs(config), dict)
def t... | mit | -9,105,483,346,499,822,000 | 29.925926 | 66 | 0.628743 | false |
nttks/edx-platform | openedx/core/djangoapps/content/course_overviews/management/commands/generate_course_overview.py | 7 | 1699 | """
Command to load course overviews.
"""
import logging
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey
from xmodule.modulestore.django import modulestore
from openedx.core.djangoapps... | agpl-3.0 | 4,692,733,215,362,471,000 | 29.890909 | 94 | 0.620365 | false |
stelligent/ansible-modules-extras | cloud/amazon/ec2_eni.py | 24 | 14258 | #!/usr/bin/python
#
# This is a 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 Ansible library is distributed in the hope that i... | gpl-3.0 | -4,778,841,043,912,399,000 | 34.292079 | 237 | 0.617338 | false |
ostree/plaso | plaso/lib/lexer.py | 2 | 15495 | # -*- coding: utf-8 -*-
"""An LL(1) lexer. This lexer is very tolerant of errors and can resync.
This lexer is originally copied from the GRR project:
https://code.google.com/p/grr
"""
import logging
import re
from plaso.lib import errors
class Token(object):
"""A token action."""
def __init__(self, state_reg... | apache-2.0 | 4,399,798,198,538,963,000 | 28.913127 | 79 | 0.627299 | false |
mostaphaRoudsari/Honeybee | src/Honeybee_Constant Schedule.py | 1 | 9723 | #
# Honeybee: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari
#
# This file is part of Honeybee.
#
# Copyright (c) 2013-2020, Antonello Di Nunzio <antonellodinunzio@gmail.com> and Chris Mackey <Chris@MackeyArchitecture.com>
# Honeybee is free software; you can redistribute it and/o... | gpl-3.0 | -6,384,863,222,595,552,000 | 48.35533 | 392 | 0.663684 | false |
cherez/youtube-dl | youtube_dl/extractor/vimeo.py | 5 | 28337 | # encoding: utf-8
from __future__ import unicode_literals
import json
import re
import itertools
from .common import InfoExtractor
from ..compat import (
compat_HTTPError,
compat_urlparse,
)
from ..utils import (
encode_dict,
ExtractorError,
InAdvancePagedList,
int_or_none,
RegexNotFoundEr... | unlicense | -7,069,323,820,222,224,000 | 39.130312 | 177 | 0.531837 | false |
jorik041/dfvfs | tests/vfs/tsk_file_entry.py | 2 | 5833 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the file entry implementation using the SleuthKit (TSK)."""
import os
import unittest
from dfvfs.path import os_path_spec
from dfvfs.path import tsk_path_spec
from dfvfs.resolver import context
from dfvfs.vfs import tsk_file_entry
from dfvfs.vfs import tsk_file_s... | apache-2.0 | -8,804,518,250,873,014,000 | 33.922156 | 78 | 0.700617 | false |
jeanlinux/calibre | src/calibre/ebooks/metadata/epub.py | 13 | 12254 | #!/usr/bin/env python2
from __future__ import with_statement
__license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
'''Read meta information from epub files'''
import os, re, posixpath
from cStringIO import StringIO
from contextlib import closing
from future_builtins import map
from c... | gpl-3.0 | -4,362,953,728,901,849,000 | 35.147493 | 96 | 0.584462 | false |
lehinevych/cfme_tests | artifactor/plugins/video.py | 8 | 2973 | """ Video plugin for Artifactor
Add a stanza to the artifactor config like this,
artifactor:
log_dir: /home/username/outdir
per_run: test #test, run, None
overwrite: True
plugins:
video:
enabled: True
plugin: video
quality: 10
display: ":99"
"""
... | gpl-2.0 | -1,090,375,929,942,029,800 | 34.392857 | 91 | 0.586613 | false |
nilmini20s/gem5-2016-08-13 | ext/ply/example/calcdebug/calc.py | 165 | 2306 | # -----------------------------------------------------------------------------
# calc.py
#
# This example shows how to run the parser in a debugging mode
# with output routed to a logging object.
# -----------------------------------------------------------------------------
import sys
sys.path.insert(0,"../..")
if ... | bsd-3-clause | 2,600,465,121,614,112,000 | 19.40708 | 79 | 0.493062 | false |
mushtaqak/edx-platform | lms/djangoapps/shoppingcart/migrations/0027_add_invoice_history.py | 102 | 22387 | # -*- 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 model 'InvoiceHistory'
db.create_table('shoppingcart_invoicehistory', (
('id', self.gf(... | agpl-3.0 | -5,583,439,052,215,182,000 | 84.446565 | 182 | 0.563497 | false |
sebrandon1/nova | nova/tests/unit/api/openstack/compute/test_cloudpipe.py | 3 | 7072 | # Copyright 2011 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 requ... | apache-2.0 | -5,463,479,490,223,035,000 | 37.644809 | 78 | 0.613264 | false |
Changaco/oh-mainline | vendor/packages/Django/django/utils/archive.py | 229 | 6935 | """
Based on "python-archive" -- http://pypi.python.org/pypi/python-archive/
Copyright (c) 2010 Gary Wilson Jr. <gary.wilson@gmail.com> and contributors.
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 So... | agpl-3.0 | 6,332,178,742,368,894,000 | 31.255814 | 79 | 0.584571 | false |
styxit/CouchPotatoServer | libs/sqlalchemy/util/topological.py | 18 | 2603 | # util/topological.py
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Topological sorting algorithms."""
from sqlalchemy.exc import CircularDependen... | gpl-3.0 | -6,087,619,976,821,668,000 | 27.293478 | 84 | 0.569727 | false |
bmcage/stickproject | stick/utils/expmeas_201104.py | 1 | 12888 | #
# Copyright (C) 2011 Benny Malengier <bm@cage.ugent.be>
#
# 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.
#
# Th... | gpl-2.0 | -2,444,230,589,990,174,700 | 40.983713 | 87 | 0.526148 | false |
XENON1T/cax | docs/conf.py | 1 | 8427 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# cax documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogen... | isc | -164,968,228,091,935,520 | 29.643636 | 76 | 0.704521 | false |
luowei/InputMethodWords | wubi_words2sqlite.py | 1 | 1386 | #!/usr/bin/python
# coding=utf-8
__author__ = 'luowei'
import sqlite3
import re
import codecs
conn = sqlite3.connect('test.db')
print "Opened database successfully"
conn.execute("DROP TABLE IF EXISTS wubi_words")
conn.execute('''CREATE TABLE wubi_words (id INTEGER PRIMARY KEY NOT NULL ,
code VARCH... | apache-2.0 | -8,488,249,229,694,857,000 | 25.62 | 102 | 0.581955 | false |
pyblish/pyblish-win | lib/Python27/Lib/idlelib/idle_test/test_textview.py | 28 | 2848 | '''Test the functions and main class method of textView.py.'''
import unittest
import os
from test.test_support import requires
from Tkinter import Tk
from idlelib import textView as tv
from idlelib.idle_test.mock_idle import Func
from idlelib.idle_test.mock_tk import Mbox
orig_mbox = tv.tkMessageBox
class textviewC... | lgpl-3.0 | 6,887,607,624,630,348,000 | 28.666667 | 79 | 0.613764 | false |
wqshi/test | scipy_central/comments/admin.py | 5 | 1212 | from django.utils.translation import ugettext_lazy as _
from django.contrib.comments.models import CommentFlag
from django.contrib.comments.admin import CommentsAdmin
from django.contrib import admin
from scipy_central.comments.models import SpcComment
class SpcCommentAdmin(CommentsAdmin):
"""
Custom admin in... | bsd-3-clause | 7,391,997,109,305,891,000 | 32.666667 | 98 | 0.644389 | false |
anselme333/NCFCC | NFD/docs/conf.py | 11 | 9075 | # -*- coding: utf-8 -*-
#
# NFD - Named Data Networking Forwarding Daemon documentation build configuration file, created by
# sphinx-quickstart on Sun Apr 6 19:58:22 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are prese... | gpl-3.0 | 7,852,904,116,025,981,000 | 32.611111 | 98 | 0.701267 | false |
gklyne/annalist | src/annalist_root/annalist/models/recordfield.py | 1 | 10166 | """
Annalist record field description
"""
from __future__ import unicode_literals
from __future__ import absolute_import, division, print_function
__author__ = "Graham Klyne (GK@ACM.ORG)"
__copyright__ = "Copyright 2014, G. Klyne"
__license__ = "MIT (http://opensource.org/licenses/MIT)"
import logging
log... | mit | -7,061,170,846,918,181,000 | 42.259574 | 104 | 0.59217 | false |
njwilson23/rasterio | tests/test_vfs.py | 1 | 2816 | import logging
import sys
import pytest
import rasterio
from rasterio.profiles import default_gtiff_profile
from rasterio.vfs import parse_path, vsi_path
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
def test_parse_path_with_vfs():
"""Correctly parse path with legacy vfs parameter"""
assert ... | bsd-3-clause | -6,030,467,575,825,578,000 | 26.881188 | 91 | 0.608665 | false |
kastnerkyle/pylearn2 | pylearn2/config/yaml_parse.py | 1 | 19376 | """Support code for YAML parsing of experiment descriptions."""
import yaml
from pylearn2.utils import serial
from pylearn2.utils.exc import reraise_as
from pylearn2.utils.string_utils import preprocess
from pylearn2.utils.call_check import checked_call
from pylearn2.utils.string_utils import match
from collections imp... | bsd-3-clause | 3,785,230,925,685,320,700 | 31.401338 | 79 | 0.591195 | false |
MountainWei/nova | nova/network/api.py | 41 | 23187 | # Copyright (c) 2011 X.commerce, a business unit of eBay Inc.
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2013 IBM Corp.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you... | apache-2.0 | 1,625,009,660,747,692,000 | 41.005435 | 79 | 0.608703 | false |
mvaled/sentry | src/sentry/south_migrations/0083_migrate_dupe_groups.py | 5 | 39056 | # -*- coding: utf-8 -*-
from __future__ import print_function
import six
from south.v2 import DataMigration
class Migration(DataMigration):
def forwards(self, orm):
from django.db.models import F
from collections import defaultdict
from sentry.db.models import create_or_update
fr... | bsd-3-clause | 860,557,235,063,072,800 | 35.263695 | 93 | 0.391156 | false |
whaleygeek/mb_sdcard | src/microbit/auto_serial/serial/tools/list_ports_osx.py | 141 | 6489 | #!/usr/bin/env python
# portable serial port access with python
#
# This is a module that gathers a list of serial ports including details on OSX
#
# code originally from https://github.com/makerbot/pyserial/tree/master/serial/tools
# with contributions from cibomahto, dgs3, FarMcKon, tedbrandston
# and modifications ... | mit | 1,527,808,365,091,677,400 | 30.197115 | 174 | 0.691786 | false |
qtekfun/htcDesire820Kernel | external/qemu/offset_layout.py | 102 | 3163 | #!/usr/bin/python
import re
import sys
import getopt
DX = DY = PX = PY = KX = KY = 0
_RE_LINE = re.compile("^\s*(?P<keyword>[\w-]+)\s+{\s*$")
_RE_XY = re.compile("^(?P<start>\s*)(?P<xy>[x|y]\s+)(?P<num>\d+)(?P<end>\s*)$")
def main():
ParseArgs()
ParseInput()
def Usage():
print >>sys.stderr, """
Usage: %s -... | gpl-2.0 | 1,614,167,535,919,623,400 | 27.495495 | 177 | 0.507746 | false |
99cloud/keystone_register | horizon/test/urls.py | 9 | 1458 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | apache-2.0 | -1,316,819,726,900,738,800 | 32.906977 | 78 | 0.720165 | false |
trunca/enigma2 | lib/python/Components/Renderer/ODChannelNumber.py | 4 | 1385 | from Components.VariableText import VariableText
from enigma import eLabel, iServiceInformation, eServiceReference, eServiceCenter
from Renderer import Renderer
#
# from vali, adapted for openpli, adapted for dmm
#
class ODChannelNumber(Renderer, VariableText):
def __init__(self):
Renderer.__init__(self)
Variable... | gpl-2.0 | 3,527,801,211,868,871,000 | 31.97619 | 179 | 0.679422 | false |
gaeun/open-event-orga-server | app/api/notifications.py | 1 | 1798 | from flask.ext.restplus import Namespace
from app.helpers.data import DataManager
from app.helpers.data_getter import DataGetter
from app.models.notifications import Notification as NotificationModel
from .helpers import custom_fields as fields
from .helpers.helpers import (
can_create,
requires_auth
)
from .h... | gpl-3.0 | 1,015,320,073,613,694,800 | 30 | 109 | 0.715795 | false |
e-mission/e-mission-server | emission/analysis/plotting/geojson/geojson_feature_converter.py | 2 | 15279 | from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import map
from builtins import str
from builtins import *
import logging
import geojs... | bsd-3-clause | 972,962,659,945,942,900 | 44.338279 | 141 | 0.678055 | false |
nikste/tensorflow | tensorflow/contrib/learn/python/learn/learn_io/dask_io.py | 138 | 3844 | # 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 | -2,691,793,688,912,050,000 | 32.719298 | 80 | 0.705775 | false |
wikimedia/operations-debs-python-diamond | src/collectors/kvm/test/testkvm.py | 8 | 3172 | #!/usr/bin/python
# coding=utf-8
################################################################################
import os
from test import CollectorTestCase
from test import get_collector_config
from test import unittest
from mock import Mock
from mock import patch
try:
from cStringIO import StringIO
Strin... | mit | -292,957,612,791,247,100 | 32.389474 | 80 | 0.531841 | false |
hgrecco/pyvisa-sim | pyvisa-sim/gpib.py | 1 | 1937 | # -*- coding: utf-8 -*-
"""
pyvisa-sim.gpib
~~~~~~~~~~~~~~~
GPIB simulated session.
:copyright: 2014 by PyVISA-sim Authors, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
from __future__ import division, unicode_literals, print_function, absolute_import
try:
i... | mit | 8,497,827,211,104,424,000 | 26.671429 | 94 | 0.608673 | false |
EvanK/ansible-modules-core | cloud/openstack/_glance_image.py | 23 | 9278 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Benno Joy <benno@ansible.com>
#
# This module 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 l... | gpl-3.0 | 9,075,401,047,540,732,000 | 32.017794 | 112 | 0.618021 | false |
amitjamadagni/sympy | sympy/printing/ccode.py | 2 | 9629 | """
C code printer
The CCodePrinter converts single sympy expressions into single C expressions,
using the functions defined in math.h where possible.
A complete code generator, which uses ccode extensively, can be found in
sympy.utilities.codegen. The codegen module can be used to generate complete
source code files... | bsd-3-clause | -2,709,758,842,920,740,400 | 34.795539 | 82 | 0.551563 | false |
furf/pledge_service | testlib/waitress/tests/test_adjustments.py | 32 | 5260 | import sys
if sys.version_info[:2] == (2, 6): # pragma: no cover
import unittest2 as unittest
else: # pragma: no cover
import unittest
class Test_asbool(unittest.TestCase):
def _callFUT(self, s):
from waitress.adjustments import asbool
return asbool(s)
def test_s_is_None(self):
... | apache-2.0 | 8,488,096,108,833,262,000 | 32.717949 | 75 | 0.596008 | false |
mesocentrefc/easybuild-framework | test/framework/sandbox/easybuild/easyblocks/foo.py | 3 | 1875 | ##
# Copyright 2009-2014 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (htt... | gpl-2.0 | -2,006,526,614,492,467,700 | 38.0625 | 99 | 0.72 | false |
dsolimando/Hot | hot-jython-modules/src/main/resources/distutils/command/install_headers.py | 85 | 1449 | """distutils.command.install_headers
Implements the Distutils 'install_headers' command, to install C/C++ header
files to the Python include directory."""
# This module should be kept compatible with Python 2.1.
__revision__ = "$Id: install_headers.py 37828 2004-11-10 22:23:15Z loewis $"
import os
from distutils.co... | gpl-3.0 | -4,358,222,743,052,932,600 | 26.339623 | 76 | 0.57764 | false |
gatita/django-imager | imagersite/imager_profile/views.py | 1 | 1811 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.views.generic import TemplateView
from .forms import UserEditForm, ProfileEditForm
class ProfileView(TemplateView):
... | mit | -1,558,011,534,640,946,000 | 27.746032 | 70 | 0.57979 | false |
aliasav/Bugman | bugman/bug/models.py | 1 | 2317 | from django.db import models
from django_extensions.db.fields import UUIDField
from developer.models import Developer
from reporter.models import Reporter
import datetime
# Create your models here.
class Bug(models.Model):
guid = UUIDField(db_index=True)
title = models.CharField(max_length=100, null=False, blank=Fal... | gpl-2.0 | -1,312,503,266,483,880,700 | 28.329114 | 128 | 0.684937 | false |
Mj258/weiboapi | srapyDemo/envs/Lib/site-packages/win32/lib/win32cryptcon.py | 8 | 73834 | # Generated by h2py from WinCrypt.h
def GET_ALG_CLASS(x): return (x & (7 << 13))
def GET_ALG_TYPE(x): return (x & (15 << 9))
def GET_ALG_SID(x): return (x & (511))
ALG_CLASS_ANY = (0)
ALG_CLASS_SIGNATURE = (1 << 13)
ALG_CLASS_MSG_ENCRYPT = (2 << 13)
ALG_CLASS_DATA_ENCRYPT = (3 << 13)
ALG_CLASS_HASH = (4 << 13)
ALG_C... | mit | 5,298,050,937,044,725,000 | 37.86 | 123 | 0.734431 | false |
dot-bob/Marlin-Duplicator-6 | buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py | 10 | 1915 | import os
Import("env")
# Relocate firmware from 0x08000000 to 0x0800A000
env['CPPDEFINES'].remove(("VECT_TAB_ADDR", "0x8000000"))
#alternatively, for STSTM <=5.1.0 use line below
#env['CPPDEFINES'].remove(("VECT_TAB_ADDR", 134217728))
env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x0800A000"))
custom_ld_script = os.pa... | gpl-3.0 | -7,594,424,137,956,277,000 | 38.895833 | 99 | 0.728982 | false |
tttthemanCorp/CardmeleonAppEngine | django/contrib/flatpages/tests/middleware.py | 152 | 3308 | import os
from django.conf import settings
from django.contrib.auth.models import User
from django.test import TestCase
class FlatpageMiddlewareTests(TestCase):
fixtures = ['sample_flatpages']
urls = 'django.contrib.flatpages.tests.urls'
def setUp(self):
self.old_MIDDLEWARE_CLASSES = settings.MIDD... | bsd-3-clause | -2,326,390,057,050,646,500 | 46.257143 | 107 | 0.674426 | false |
jim-easterbrook/pywws | src/pywws/service/__init__.py | 1 | 19094 | # pywws - Python software for USB Wireless Weather Stations
# http://github.com/jim-easterbrook/pywws
# Copyright (C) 2018-20 pywws contributors
# 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;... | gpl-2.0 | -4,363,333,377,440,953,300 | 36.292969 | 81 | 0.597046 | false |
tedelhourani/ansible | lib/ansible/modules/network/avi/avi_certificatemanagementprofile.py | 27 | 3642 | #!/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 | 4,252,808,810,046,108,000 | 29.864407 | 87 | 0.658155 | false |
noahbenson/pimms | pimms/table.py | 1 | 19575 | ####################################################################################################
# pimms/table.py
# Classes for storing immutable data tables.
# By Noah C. Benson
import copy, types, sys, pint, six
import numpy as np
import pyrsistent as ps
from functo... | gpl-2.0 | 7,915,985,297,703,518,000 | 42.596882 | 100 | 0.558927 | false |
scrollback/kuma | vendor/packages/sqlalchemy/test/perf/objselectspeed.py | 8 | 4213 | import time, resource
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.test.util import gc_collect
from sqlalchemy.test import profiling
db = create_engine('sqlite://')
metadata = MetaData(db)
Person_table = Table('Person', metadata,
Column('id', Integer, primary_key=True),
... | mpl-2.0 | -607,560,115,103,230,600 | 27.856164 | 83 | 0.563494 | false |
UFOCoins/ufo | test/functional/disconnect_ban.py | 13 | 5318 | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test node disconnect and ban behavior"""
import time
from test_framework.test_framework import Bitcoin... | mit | 210,946,557,029,922,300 | 48.700935 | 155 | 0.652877 | false |
Dfelker/ansible | lib/ansible/cli/pull.py | 30 | 9393 | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | gpl-3.0 | -4,936,848,618,501,524,000 | 40.017467 | 150 | 0.592356 | false |
RuseGame/RuseBackend | game.py | 1 | 7680 | from random import shuffle
NUM_PLAYERS = 5
ALIASES = ("Pink", "Green", "Blue", "White", "Orange")
MOVE_TYPES = ("send", "spoof", "wiretap", "ambush")
class Game:
"""
An object to contain an entire game of Ruse.
"""
def __init__(self, game_id, emitter):
self.game_id = game_id
self.emi... | gpl-2.0 | -1,606,506,252,518,866,000 | 33.594595 | 79 | 0.525911 | false |
SlimRoms/android_external_chromium | chrome/common/extensions/docs/examples/apps/hello-python/main.py | 70 | 5222 | #!/usr/bin/python
# Copyright (c) 2010 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.
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.api import users
from google... | bsd-3-clause | -6,450,533,935,564,273,000 | 34.04698 | 79 | 0.674071 | false |
tomquas/mongrel2 | examples/chat/chat.py | 94 | 1233 | import simplejson as json
from mongrel2 import handler
sender_id = "82209006-86FF-4982-B5EA-D1E29E55D481"
conn = handler.Connection(sender_id, "tcp://127.0.0.1:9999",
"tcp://127.0.0.1:9998")
users = {}
user_list = []
while True:
try:
req = conn.recv_json()
except:
p... | bsd-3-clause | -3,050,737,444,410,934,300 | 25.234043 | 70 | 0.564477 | false |
youdonghai/intellij-community | python/lib/Lib/distutils/command/sdist.py | 98 | 18046 | """distutils.command.sdist
Implements the Distutils 'sdist' command (create a source distribution)."""
# This module should be kept compatible with Python 2.1.
__revision__ = "$Id: sdist.py 61268 2008-03-06 07:14:26Z martin.v.loewis $"
import sys, os, string
from types import *
from glob import glob
from distutils.... | apache-2.0 | 8,716,062,475,021,395,000 | 37.477612 | 101 | 0.569212 | false |
ojengwa/odoo | openerp/tools/cache.py | 226 | 6865 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 OpenERP (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... | agpl-3.0 | 9,080,612,821,500,749,000 | 32.985149 | 99 | 0.579024 | false |
rahuldan/sympy | sympy/logic/inference.py | 76 | 7641 | """Inference in propositional logic"""
from __future__ import print_function, division
from sympy.logic.boolalg import And, Not, conjuncts, to_cnf
from sympy.core.compatibility import ordered
from sympy.core.sympify import sympify
def literal_symbol(literal):
"""
The symbol in this literal (without the negat... | bsd-3-clause | 2,349,866,317,923,881,000 | 24.555184 | 71 | 0.561707 | false |
Kiiv/CouchPotatoServer | libs/xmpp/commands.py | 200 | 16116 | ## $Id: commands.py,v 1.17 2007/08/28 09:54:15 normanr Exp $
## Ad-Hoc Command manager
## Mike Albon (c) 5th January 2005
## 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 versio... | gpl-3.0 | 5,865,356,076,757,790,000 | 48.134146 | 394 | 0.63409 | false |
CentroGeo/geonode | geonode/geoserver/tasks.py | 2 | 24675 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2017 OSGeo
#
# 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 ... | gpl-3.0 | -1,775,921,168,270,166,300 | 37.554688 | 121 | 0.545127 | false |
NervanaSystems/neon | neon/data/dataloader_transformers.py | 1 | 7276 | from __future__ import division
import numpy as np
from neon import NervanaObject
class DataLoaderTransformer(NervanaObject):
"""
DataLoaderTransformers are used to transform the output of a DataLoader.
DataLoader doesn't have easy access to the device or graph, so any
computation that should happen t... | apache-2.0 | 6,934,829,905,406,853,000 | 31.627803 | 87 | 0.566383 | false |
mapr/hue | desktop/core/ext-py/tablib-0.10.0/tablib/packages/odf3/table.py | 56 | 9408 | # -*- coding: utf-8 -*-
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency
#
# 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 the License, or (at you... | apache-2.0 | -8,717,493,891,151,036,000 | 29.641694 | 80 | 0.684384 | false |
michael-ball/sublime-text | sublime-text-3/Packages/Python PEP8 Autoformat/libs/py33/lib2to3/main.py | 22 | 11624 | """
Main program for 2to3.
"""
from __future__ import with_statement
import sys
import os
import difflib
import logging
import shutil
import optparse
from . import refactor
def diff_texts(a, b, filename):
"""Return a unified diff of two strings."""
a = a.splitlines()
b = b.splitlines()
return diffl... | unlicense | 5,540,573,015,742,639,000 | 42.373134 | 83 | 0.578114 | false |
bees4ever/spotpy | spotpy/database/__init__.py | 2 | 1050 | from importlib import import_module
def __dir__():
"""
Using the __dir__ and __getattr__ functions allows
to inspect the availability of modules without loading them
:return:
"""
import pkgutil
names = [
name for importer, name, ispkg
in pkgutil.iter_modules(__path__)
... | mit | -4,751,993,308,250,325,000 | 26.631579 | 76 | 0.591429 | false |
mmadsen/HerokuCondaFlaskAlembic | web.py | 1 | 2277 | from flask import Flask, render_template, request
from flask.ext.sqlalchemy import SQLAlchemy
import os
import sys
import requests
import operator
import re
import nltk
from collections import Counter
from bs4 import BeautifulSoup
import stop_words
app = Flask(__name__)
app.config.from_object(os.environ['APP_SETTINGS... | apache-2.0 | 893,276,757,361,965,000 | 26.780488 | 93 | 0.712341 | false |
jemandez/creaturas-magicas | Configuraciones básicas/scripts/addons/blendertools-1.0.0/makewalk/io_json.py | 1 | 3120 | # ##### 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 distrib... | gpl-3.0 | 8,926,933,975,576,058,000 | 29.891089 | 96 | 0.564744 | false |
cantino/newspaper | tests/useless_junk.py | 1 | 7171 | # -*- coding: utf-8 -*-
"""
import os
import glob
from copy import deepcopy
from goose.article import Article
from goose.utils import URLHelper, RawHelper
from goose.extractors import StandardContentExtractor
from goose.cleaners import StandardDocumentCleaner
from goose.outputformatters import StandardOutputFormatter
... | mit | 2,565,270,794,328,726,000 | 30.871111 | 101 | 0.616232 | false |
BMJHayward/django | tests/utils_tests/test_dateparse.py | 293 | 5308 | from __future__ import unicode_literals
import unittest
from datetime import date, datetime, time, timedelta
from django.utils.dateparse import (
parse_date, parse_datetime, parse_duration, parse_time,
)
from django.utils.timezone import get_fixed_timezone
class DateParseTests(unittest.TestCase):
def test_... | bsd-3-clause | -1,461,377,774,524,612,400 | 50.038462 | 107 | 0.656556 | false |
johne53/MB3Glib | win32/replace.py | 6 | 4090 | #!/usr/bin/python
#
# Simple utility script to manipulate
# certain types of strings in a file
# This can be used in various projects where
# there is the need to replace strings in files,
# and is copied from GLib's $(srcroot)/win32
# Author: Fan, Chun-wei
# Date: September 03, 2014
import os
import sys
import re
i... | lgpl-2.1 | 1,719,819,035,704,996,400 | 34.565217 | 88 | 0.591687 | false |
nirzari18/Query-Analysis-Application-on-Google-App-Engine | lib/oauth2client/crypt.py | 36 | 13165 | # -*- coding: utf-8 -*-
#
# Copyright 2014 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 requ... | apache-2.0 | -1,120,981,605,320,459,800 | 27.557484 | 80 | 0.649297 | false |
whitepyro/debian_server_setup | lib/shove/tests/test_redis_store.py | 3 | 3517 | # -*- coding: utf-8 -*-
import unittest
class TestRedisStore(unittest.TestCase):
def setUp(self):
from shove import Shove
self.store = Shove('redis://localhost:6379/0')
def tearDown(self):
self.store.clear()
self.store.close()
def test__getitem__(self):
self.sto... | gpl-3.0 | -3,491,295,730,707,099,000 | 26.476563 | 60 | 0.533125 | false |
FrankBian/kuma | vendor/packages/sqlalchemy/test/orm/test_generative.py | 7 | 10297 | from sqlalchemy.test.testing import eq_
import sqlalchemy as sa
from sqlalchemy.test import testing
from sqlalchemy import Integer, String, ForeignKey, MetaData, func
from sqlalchemy.test.schema import Table
from sqlalchemy.test.schema import Column
from sqlalchemy.orm import mapper, relationship, create_session
from s... | mpl-2.0 | 6,203,846,761,272,585,000 | 32.983498 | 95 | 0.553171 | false |
guijomatos/SickRage | lib/feedcache/example.py | 28 | 1661 | #!/usr/bin/env python
#
# Copyright 2007 Doug Hellmann.
#
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and tha... | gpl-3.0 | 1,031,351,991,299,429,500 | 25.365079 | 70 | 0.69416 | false |
pixicoin/pixicoin | contrib/pyminer/pyminer.py | 766 | 6434 | #!/usr/bin/python
#
# Copyright (c) 2011 The Bitcoin developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
import time
import json
import pprint
import hashlib
import struct
import re
import base64
import httplib
import... | mit | 3,037,204,301,013,297,000 | 24.531746 | 84 | 0.648896 | false |
EarthmanT/moto | tests/test_sts/test_sts.py | 19 | 3007 | from __future__ import unicode_literals
import json
import boto
from freezegun import freeze_time
import sure # noqa
from moto import mock_sts
@freeze_time("2012-01-01 12:00:00")
@mock_sts
def test_get_session_token():
conn = boto.connect_sts()
token = conn.get_session_token(duration=123)
token.expira... | apache-2.0 | 3,873,865,239,639,730,700 | 44.560606 | 388 | 0.745926 | false |
CyanogenMod/tools_repo | subcmds/rebase.py | 56 | 4362 | #
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | apache-2.0 | 3,584,315,390,509,339,000 | 31.796992 | 78 | 0.599954 | false |
vilorious/pyload | module/lib/beaker/cache.py | 45 | 15814 | """Cache object
The Cache object is used to manage a set of cache files and their
associated backend. The backends can be rotated on the fly by
specifying an alternate type when used.
Advanced users can add new backends in beaker.backends
"""
import warnings
import beaker.container as container
import beaker.u... | gpl-3.0 | 6,521,427,628,269,811,000 | 33.453159 | 85 | 0.572214 | false |
ocaisa/easybuild-easyblocks | easybuild/easyblocks/n/nemo.py | 2 | 4557 | ##
# Copyright 2015-2016 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | gpl-2.0 | 1,676,823,533,841,658,000 | 37.294118 | 108 | 0.619487 | false |
FlorentChamault/My_sickbeard | lib/subliminal/services/tvsubtitles.py | 30 | 7310 | # -*- coding: utf-8 -*-
# Copyright 2012 Nicolas Wack <wackou@gmail.com>
#
# This file is part of subliminal.
#
# subliminal 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 3 of the Licen... | gpl-3.0 | -35,450,667,642,855,944 | 45.858974 | 182 | 0.605609 | false |
Tokyo-Buffalo/tokyosouth | env/lib/python3.6/site-packages/twisted/test/test_text.py | 13 | 6456 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.python.text}.
"""
from twisted.python.compat import NativeStringIO as StringIO
from twisted.trial import unittest
from twisted.python import text
sampleText = \
"""Every attempt to employ mathematical methods in the stu... | mit | 7,235,210,266,660,015,000 | 25.243902 | 78 | 0.577602 | 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.