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 |
|---|---|---|---|---|---|---|---|---|---|---|
deKupini/erp | addons/website_rating_project_issue/controllers/main.py | 1 | 1805 | # -*- coding: utf-8 -*-
from openerp import _
from openerp.addons.web import http
from openerp.addons.web.http import request
import datetime
class WebsiteRatingProject(http.Controller):
@http.route(['/project/rating/'], type='http', auth="public", website=True)
def index(self, **kw):
projects = requ... | agpl-3.0 | -267,837,108,506,870,270 | 46.5 | 158 | 0.591136 | false |
ParrotPrediction/pyalcs | tests/lcs/agents/racs/test_Classifier.py | 2 | 8657 | import random
import numpy as np
import pytest
from lcs import Perception
from lcs.agents.racs import Configuration, Condition, Effect, Classifier
from lcs.representations import UBR
from lcs.representations.RealValueEncoder import RealValueEncoder
class TestClassifier:
@pytest.fixture
def cfg(self):
... | mit | 560,871,791,525,741,400 | 33.217391 | 78 | 0.531477 | false |
aquavitae/rst2pdf | rst2pdf/utils.py | 2 | 9151 | # -*- coding: utf-8 -*-
# See LICENSE.txt for licensing terms
# $URL$
# $Date$
# $Revision$
import shlex
from xml.dom import Node
from reportlab.lib.colors import (
Color,
toColor,
)
from rst2pdf.flowables import ( # our own reportlab flowables
MyPageBreak,
MySpacer,
PageCounter,
Transition,... | mit | 3,137,561,933,947,809,300 | 21.65099 | 95 | 0.513496 | false |
Ballz0fSteel/Umeko | lib/youtube_dl/extractor/beeg.py | 2 | 4431 | from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import (
compat_chr,
compat_ord,
compat_urllib_parse_unquote,
)
from ..utils import (
int_or_none,
parse_iso8601,
urljoin,
)
class BeegIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?beeg\.com/(?P... | gpl-3.0 | 8,365,291,144,038,526,000 | 32.315789 | 108 | 0.484315 | false |
ertugerata/iso-work | pisiman/gui/ui/packages.py | 2 | 5247 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui/ui/packages.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_PackagesDialog(object):
def setupUi(self, PackagesDialog):
... | gpl-2.0 | 6,210,971,207,699,104,000 | 54.819149 | 106 | 0.721746 | false |
googlecreativelab/tiny-motion-trainer | backend/main.py | 1 | 9751 | #!/usr/bin/env python
# Copyright 2021 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 6,851,766,444,271,058,000 | 31.075658 | 121 | 0.616142 | false |
davido/buck | scripts/stampede/diff_machine_log_rule_keys.py | 6 | 10315 | #! /usr/bin/python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import collections
import json
import os
import re
class BuildRuleDiffResult(object):
def __init__(self, build_rule_name, build_... | apache-2.0 | 8,100,069,607,123,406,000 | 33.966102 | 79 | 0.61396 | false |
boblannon/congress | test/test_amendment_actions.py | 4 | 2195 | import unittest
from amendment_info import parse_amendment_actions
import datetime
# parsing various kinds of action text to extract metadata and establish state
class AmendmentActions(unittest.TestCase):
def test_amendment_action_uses_amendments_plural(self):
action = {
'text': 'On agreein... | cc0-1.0 | 7,978,608,747,012,620,000 | 32.84127 | 161 | 0.659681 | false |
sujithvm/red-alert | src/Calculate/calculate_self_cites_author.py | 3 | 3738 |
import re
import unicodedata
import ast
def strip_accents(text):
try:
text = unicode(text, 'utf-8')
except Exception:
pass
text = unicodedata.normalize('NFD', text)
text = text.encode('ascii', 'ignore')
text = text.decode("utf-8")
return str(text)
def text_to_id(text):
te... | mit | 689,246,519,180,724,700 | 30.15 | 139 | 0.563403 | false |
hieukypc/ERP | openerp/addons/resource/tests/common.py | 41 | 4344 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import datetime
from openerp.tests import common
class TestResourceCommon(common.TransactionCase):
def setUp(self):
super(TestResourceCommon, self).setUp()
cr, uid = self.cr, self.ui... | gpl-3.0 | 8,356,307,888,346,565,000 | 39.981132 | 129 | 0.518186 | false |
operasoftware/django-feeds | djangofeeds/feedutil.py | 1 | 5954 | import time
import urllib
import urllib2
import re
import pytz
from base64 import b64encode
from datetime import datetime, timedelta
from django.utils.text import truncate_html_words
from django.utils.hashcompat import md5_constructor
from djangofeeds import conf
from djangofeeds.optimization import PostContentOptim... | bsd-2-clause | -5,516,832,100,848,019,000 | 28.77 | 77 | 0.593886 | false |
emory-libraries/readux | readux/books/consumers.py | 1 | 11436 | from os.path import basename
from django.conf import settings
from django.contrib.auth import get_user_model
from django.template.defaultfilters import filesizeformat
from channels import Group
import json
import logging
import os
from eulfedora.server import Repository
from boto.s3.connection import S3Connection
from... | apache-2.0 | -3,922,732,203,597,565,000 | 41.671642 | 100 | 0.641046 | false |
kalbasit/offlineimap | offlineimap/ui/Noninteractive.py | 10 | 1823 | # Noninteractive UI
# Copyright (C) 2002 John Goerzen
# <jgoerzen@complete.org>
#
# 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 optio... | gpl-2.0 | -4,183,709,602,558,941,000 | 34.745098 | 102 | 0.66045 | false |
txl518/redditclone | docs/conf.py | 1 | 7772 | # -*- coding: utf-8 -*-
#
# Reddit Clone documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values h... | bsd-3-clause | -4,785,450,327,711,425,000 | 30.722449 | 80 | 0.695574 | false |
rlr/fjord | vendor/packages/translate-toolkit/translate/misc/contextlib.py | 4 | 5500 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2002-2006 Zuza Software Foundation
#
# This file is part of translate.
# The file was copied from the Python 2.5 source.
#
# translate is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published b... | bsd-3-clause | 5,875,765,772,767,867,000 | 26.638191 | 78 | 0.576182 | false |
facoy/facoy | FrontEnd/Server_IJaData.py | 1 | 9698 | #!/usr/local/bin/jython
#-*- coding: utf-8 -*-
import time, codecs, sys, traceback, cgi, re, os
sys.setrecursionlimit(50000)
from flask import Flask, render_template, send_from_directory, request
from operator import attrgetter
from pygments import highlight
from pygments.lexers.jvm import JavaLexer
from pygments.form... | apache-2.0 | -1,948,172,386,259,074,600 | 36.630952 | 159 | 0.637207 | false |
lijunxyz/leetcode_practice | convert_sorted_list_to_binary_search_tree_medium/Solution1.py | 1 | 2474 |
# https://oj.leetcode.com/problems/convert-sorted-list-to-binary-search-tree/
# Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# # Definition for singly-linked list.
# class ListNode:
# def __init__(s... | mit | -8,898,131,455,767,990,000 | 33.361111 | 85 | 0.59135 | false |
DHSDevelopersClub/learning-to-code | lesson2/lesson2step1.py | 1 | 2969 | '''Lesson 2 - step 1.
Getting started with moving objects.
TASKS:
- Change the starting position and velocity of the ball
- Change the update rate to 30, then 15 times per second. Find a
framerate that looks good.
- The statement `x = x + y` can be rewritten to `x += y`. It is
easier to read... | gpl-2.0 | -1,016,903,272,475,534,800 | 30.585106 | 69 | 0.681711 | false |
e0ne/cinder | cinder/api/openstack/volume/versions.py | 6 | 1066 | # Copyright (c) 2013 OpenStack Foundation
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | apache-2.0 | 5,099,530,403,493,287,000 | 34.533333 | 78 | 0.694184 | false |
DmitryADP/diff_qc750 | external/webkit/Tools/Scripts/webkitpy/tool/steps/updatechromiumdeps.py | 15 | 3263 | # Copyright (C) 2011 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | gpl-2.0 | -93,016,553,243,035,700 | 49.984375 | 123 | 0.734907 | false |
kelvinhammond/beets | test/test_art.py | 2 | 16180 | # -*- coding: utf-8 -*-
# This file is part of beets.
# Copyright 2015, Adrian Sampson.
#
# 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 t... | mit | 3,295,358,691,290,887,000 | 36.195402 | 78 | 0.635909 | false |
timj/scons | test/Deprecated/SourceCode/SCCS/explicit.py | 5 | 4193 | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
... | mit | 5,558,834,684,860,728,000 | 29.830882 | 89 | 0.649416 | false |
itohnobue/domanager | build_pkg_win.py | 1 | 2391 | import os, shutil, logging
from distutils.dir_util import copy_tree
from cx_Freeze import setup, Executable
distDir = "dist"
# Remove the build folder
shutil.rmtree("build", ignore_errors=True)
shutil.rmtree("dist", ignore_errors=True)
try:
os.mkdir(os.path.abspath(distDir))
except:
logging.exception('')
f... | gpl-2.0 | -4,623,088,495,189,869,000 | 33.171429 | 104 | 0.542869 | false |
dimagol/trex-core | scripts/external_libs/scapy-2.3.1/python3/scapy/contrib/wpa_eapol.py | 26 | 1241 |
# http://trac.secdev.org/scapy/ticket/104
# scapy.contrib.description = WPA EAPOL dissector
# scapy.contrib.status = loads
from scapy.packet import *
from scapy.fields import *
from scapy.layers.l2 import *
class WPA_key(Packet):
name = "WPA_key"
fields_desc = [ ByteField("descriptor_type", 1),
... | apache-2.0 | 4,151,908,096,765,660,000 | 34.457143 | 91 | 0.5278 | false |
n-west/gnuradio-volk | grc/gui/Colors.py | 8 | 1776 | """
Copyright 2008,2013 Free Software Foundation, Inc.
This file is part of GNU Radio
GNU Radio Companion 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 l... | gpl-3.0 | 7,021,310,168,793,214,000 | 38.466667 | 83 | 0.730293 | false |
embecosm/avr-gdb | gdb/testsuite/gdb.python/py-section-script.py | 34 | 1961 | # Copyright (C) 2010-2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This progr... | gpl-2.0 | 689,211,960,287,928,300 | 30.126984 | 78 | 0.678735 | false |
Tatsh/youtube-dl | youtube_dl/extractor/sky.py | 4 | 5418 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
extract_attributes,
smuggle_url,
strip_or_none,
urljoin,
)
class SkyBaseIE(InfoExtractor):
BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/%s/%s_default/index.html?v... | unlicense | -6,166,721,064,447,166,000 | 40.358779 | 160 | 0.562569 | false |
mvidalgarcia/indico | indico/modules/auth/controllers.py | 2 | 27385 | # This file is part of Indico.
# Copyright (C) 2002 - 2019 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
from flask import flash, jsonify, redirect, render_template, requ... | mit | -8,295,627,477,634,016,000 | 43.456169 | 119 | 0.638415 | false |
christianurich/VIBe2UrbanSim | 3rdparty/opus/src/psrc/large_area/avg_val_per_unit_SSS.py | 2 | 2883 | # Opus/UrbanSim urban simulation software.
# Copyright (C) 2005-2009 University of Washington
# See opus_core/LICENSE
from opus_core.variables.variable import Variable
from opus_core.misc import safe_array_divide
class avg_val_per_unit_SSS(Variable):
"""average value per unit of the given type"""
... | gpl-2.0 | -290,399,041,434,283,200 | 33.617284 | 126 | 0.554977 | false |
wengyanqing/incubator-hawq | tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals_on_standby.py | 12 | 6069 | #!/usr/bin/env python
# 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
# "Li... | apache-2.0 | 2,841,241,553,121,347,000 | 38.154839 | 139 | 0.625474 | false |
anryko/ansible | lib/ansible/modules/web_infrastructure/sophos_utm/utm_proxy_location.py | 16 | 6447 | #!/usr/bin/python
# Copyright: (c) 2018, Johannes Brunswicker <johannes.brunswicker@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata_version... | gpl-3.0 | -2,526,623,134,515,977,700 | 29.84689 | 118 | 0.596712 | false |
Winterflower/ibis | ibis/tests/test_impala_e2e.py | 5 | 33145 | # Copyright 2014 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | apache-2.0 | 4,840,718,640,996,543,000 | 30.717703 | 79 | 0.521587 | false |
ESOedX/edx-platform | openedx/core/djangoapps/content/block_structure/tests/test_transformer_registry.py | 1 | 2550 | """
Tests for transformer_registry.py
"""
from __future__ import absolute_import
from unittest import TestCase
import ddt
from ..transformer_registry import TransformerRegistry
from .helpers import MockTransformer, clear_registered_transformers_cache, mock_registered_transformers
class TestTransformer1(MockTransf... | agpl-3.0 | -9,018,037,466,076,870,000 | 29.357143 | 103 | 0.678824 | false |
ruschelp/cortex-vfx | test/IECore/ImagePremultiplyOpTest.py | 12 | 2458 | ##########################################################################
#
# Copyright (c) 2008, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistribu... | bsd-3-clause | 552,788,101,389,805,200 | 36.242424 | 90 | 0.687144 | false |
klen/graphite-beacon | graphite_beacon/handlers/cli.py | 1 | 1770 | import subprocess
from graphite_beacon.handlers import LOGGER, AbstractHandler
class CliHandler(AbstractHandler):
name = 'cli'
# Default options
defaults = {
'command': None,
'alerts_whitelist': [],
}
def init_handler(self):
self.command_template = self.options.get('com... | mit | 476,823,175,654,362,600 | 30.052632 | 89 | 0.575141 | false |
GeoscienceAustralia/GeodesyMLConverter | setup.py | 1 | 1119 | "Setup.py for GeodesyML Converter"
#pylint: disable=line-too-long
from distutils.command.build import build
from subprocess import check_call
from setuptools import setup
class GenerateBindings(build):
"Generate GeodesyML bindings."
def run(self):
check_call(['cd GeodesyMLToSiteLog && ./generate-bin... | apache-2.0 | -1,261,733,672,753,364,000 | 26.975 | 106 | 0.654155 | false |
aforalee/rally | tests/unit/plugins/openstack/scenarios/designate/test_basic.py | 9 | 6342 | # Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# Author: Endre Karlson <endre.karlson@hp.com>
#
# 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/lice... | apache-2.0 | -586,279,893,479,042,000 | 39.394904 | 79 | 0.655314 | false |
Lekensteyn/buildbot | master/buildbot/test/unit/test_revlinks.py | 10 | 5379 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | 8,865,388,476,505,867,000 | 41.354331 | 131 | 0.69288 | false |
PHOTOX/fuase | ase/ase/ga/offspring_creator.py | 2 | 2549 | """Base module for all operators that create offspring."""
import numpy as np
from random import random
from ase import Atoms
from ase.ga.atoms_attach import enable_raw_score_methods
class OffspringCreator(object):
"""Base class for all procreation operators
Parameters:
verbose: Be verbose and print so... | gpl-2.0 | -6,635,935,778,739,981,000 | 30.085366 | 73 | 0.635151 | false |
bswartz/python-manilaclient | manilaclient/v1/contrib/list_extensions.py | 2 | 1436 | # Copyright 2013 OpenStack LLC.
# 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 b... | apache-2.0 | -8,783,473,137,461,238,000 | 29.553191 | 78 | 0.664345 | false |
drnextgis/QGIS | tests/src/python/test_provider_db2.py | 5 | 2426 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for the MS SQL provider.
.. 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.
"... | gpl-2.0 | -6,044,100,150,394,421,000 | 28.950617 | 137 | 0.669415 | false |
mancoast/CPythonPyc_test | fail/334_pickletester.py | 3 | 61754 | import io
import unittest
import pickle
import pickletools
import sys
import copyreg
import weakref
from http.cookies import SimpleCookie
from test.support import (
TestFailed, TESTFN, run_with_locale, no_tracing,
_2G, _4G, bigmemtest,
)
from pickle import bytes_types
# Tests that try a number of pickle ... | gpl-3.0 | 4,793,282,979,787,313,000 | 31.743372 | 81 | 0.530508 | false |
paulsmith/geodjango | django/templatetags/i18n.py | 31 | 9015 | import re
from django.template import Node, Variable, VariableNode
from django.template import TemplateSyntaxError, TokenParser, Library
from django.template import TOKEN_TEXT, TOKEN_VAR
from django.utils import translation
from django.utils.encoding import force_unicode
register = Library()
class GetAvailableLangua... | bsd-3-clause | -6,951,864,225,178,968,000 | 33.80695 | 124 | 0.613533 | false |
arangodb/velocypack | tests/googletest/googletest/test/gtest_xml_outfiles_test.py | 4 | 5255 | #!/usr/bin/env python
#
# Copyright 2008, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | apache-2.0 | -5,365,110,076,403,936,000 | 37.925926 | 98 | 0.689629 | false |
kcl-ddh/chopin-online | catalogue/management/commands/pdf_import_utils.py | 1 | 6412 | import logging
import os
import re
from django.core.files import File
from django.db import transaction
from django.utils.text import slugify
from wagtail.wagtaildocs.models import Document
from catalogue.models import Advert, City, Country, Library, STP
from catalogue.pdf_parser import PDFParser
from catalogue.work... | gpl-3.0 | -4,792,966,470,741,424,000 | 35.022472 | 103 | 0.607767 | false |
lepture/vino | setup.py | 1 | 1345 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
kwargs = {}
major, minor = sys.version_info[:2]
if major >= 3:
kwargs['use_2to3'] = True
from setuptools import setup
kwargs['packages'] = ['vino', 'vino.engines']
import vino
from email.utils import parseaddr
author, author_email = parseaddr(vino.__author... | bsd-3-clause | 259,500,127,986,332,930 | 28.888889 | 70 | 0.6 | false |
fiee/fiee-temporale | setup.py | 1 | 1574 | # -*- coding:utf-8 -*-
# from __future__ import unicode_literals
from setuptools import setup, find_packages
import os
setup(name='fiee-temporale',
version='0.0.9',
description='Generic events for your django models',
keywords='event date calendar generic attachment',
author='Henning Hraban Ram... | bsd-3-clause | 4,470,251,130,180,935,000 | 45.294118 | 108 | 0.571792 | false |
googleapis/python-tasks | samples/snippets/list_queues_test.py | 1 | 1626 | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -4,910,680,046,785,230,000 | 29.111111 | 83 | 0.716482 | false |
rs/petl | src/petl/test/transform/test_fills.py | 1 | 2652 | from __future__ import absolute_import, print_function, division
__author__ = 'Alistair Miles <alimanfoo@googlemail.com>'
from petl.testutils import ieq
from petl.transform.fills import filldown, fillleft, fillright
def test_filldown():
table = (('foo', 'bar', 'baz'),
(1, 'a', None),
... | mit | -2,247,662,793,681,365,500 | 24.018868 | 64 | 0.343137 | false |
pokerregion/poker | tests/handhistory/stars_hands.py | 2 | 8428 | HAND1 = """
PokerStars Hand #105024000105: Tournament #797469411, $3.19+$0.31 USD Hold'em No Limit - Level I (10/20) - 2013/10/04 19:53:27 CET [2013/10/04 13:53:27 ET]
Table '797469411 15' 9-max Seat #1 is the button
Seat 1: flettl2 (1500 in chips)
Seat 2: santy312 (3000 in chips)
Seat 3: flavio766 (3000 in chips)
Seat... | mit | -5,167,432,144,409,478,000 | 32.05098 | 165 | 0.733151 | false |
DaniilLeksin/theblog | env/lib/python2.7/site-packages/django/conf/__init__.py | 57 | 6710 | """
Settings and configuration for Django.
Values will be read from the module specified by the DJANGO_SETTINGS_MODULE environment
variable, and then from django.conf.global_settings; see the global settings file for
a list of all possible variables.
"""
import importlib
import os
import time # Needed for Windows... | gpl-2.0 | 8,918,977,333,916,755,000 | 38.011628 | 120 | 0.628912 | false |
nicolasmartinelli/oomusic | models/oomusic_transcoder.py | 2 | 3419 | # -*- coding: utf-8 -*-
import datetime
import os
import subprocess
from odoo import fields, models
from odoo.tools import OrderedSet
class MusicTranscoder(models.Model):
_name = "oomusic.transcoder"
_description = "Music Transcoder"
_order = "sequence"
name = fields.Char("Transcoder Name", require... | mit | -1,979,762,888,055,008,800 | 37.41573 | 100 | 0.618894 | false |
Bforartists/scons | scons-local/SCons/Tool/fortran.py | 6 | 1997 | """SCons.Tool.fortran
Tool-specific initialization for a generic Posix f77/f90 Fortran compiler.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001 - 2014 The SCons Foundation
#
# Permiss... | mit | -4,349,399,319,608,415,000 | 31.209677 | 76 | 0.75313 | false |
gilbert-yuan/gooderp_addons | ir_sequence_autoreset/__openerp__.py | 6 | 1510 | # -*- coding: utf-8 -*-
##############################################################################
#
# Auto reset sequence by year,month,day
# Copyright 2017 开阖软件 <www.osbzr.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Genera... | agpl-3.0 | 7,961,695,743,206,990,000 | 29.043478 | 78 | 0.567927 | false |
wgrose/leanto | appengine_django/auth/models.py | 4 | 5392 | # Copyright 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 or agreed to in writing, ... | apache-2.0 | -7,449,235,011,136,160,000 | 29.292135 | 80 | 0.705119 | false |
DavidLP/home-assistant | homeassistant/components/smhi/config_flow.py | 12 | 4028 | """Config flow to configure SMHI component."""
import voluptuous as vol
from homeassistant import config_entries, data_entry_flow
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers import aiohttp_client
import homea... | apache-2.0 | 6,672,335,142,659,936,000 | 37 | 77 | 0.606504 | false |
natetrue/ReplicatorG | skein_engines/skeinforge-40/fabmetheus_utilities/geometry/manipulation_shapes/mirror.py | 2 | 1900 | """
Add material to support overhang or remove material at the overhang angle.
"""
from __future__ import absolute_import
#Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
import __init__
from fabmetheus_utili... | gpl-2.0 | -2,698,989,661,977,283,000 | 40.304348 | 157 | 0.804737 | false |
behavior3/behavior3py | tests/test_limiter.py | 2 | 1032 | import b3
import unittest
from common import *
class TestLimiter(unittest.TestCase):
def test_category(self):
self.assertEqual(b3.Limiter.category, b3.DECORATOR)
def test_limit(self):
node = NodeStub()
limiter = b3.Limiter(node, max_loop=10)
tick = TickStub()
t... | mit | 4,112,770,178,409,667,000 | 28.514286 | 85 | 0.622093 | false |
cschenck/blender_sim | fluid_sim_deps/imageio/plugins/swf.py | 4 | 12751 | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.
""" SWF plugin. Most of the actual work is done in _swf.py.
"""
from __future__ import absolute_import, print_function, division
import os
import zlib
from io import BytesIO
import n... | gpl-3.0 | -1,731,417,424,311,690,200 | 36.174927 | 79 | 0.494471 | false |
imsuwj/noambox | api/doubanfm_tornado.py | 1 | 8489 | # -*- coding: utf-8 -*-
from tornado import httpclient
from random import choice
from handler.config import Config, db_history as userinfo
from urllib import urlencode
BASE_URL = 'http://douban.com/'
FM_BASE_URL = 'http://douban.fm/'
class FM:
def __repr__(self):
return "<DoubanAPI FM>"
def __init... | mit | 5,255,958,877,314,347,000 | 26.301639 | 83 | 0.481326 | false |
inforichland/PyCast | src/daemonize.py | 1 | 3241 | # File: daemonize.py
# Description: 'Daemonizes' a process,
# so it can run as a standard Unix daemon.
# Simply subclass Daemon and implement the run method
# License: Modified from code in the public domain.
# Originally by Sander Marechal (www.jejik.com)
import sys, os, time, atexist
from signal import SIGTE... | bsd-3-clause | 7,859,273,497,545,699,000 | 27.182609 | 91 | 0.512805 | false |
yonglehou/grpc | tools/distrib/python/submit.py | 5 | 3183 | #!/usr/bin/env python
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list o... | bsd-3-clause | -123,559,601,507,618,020 | 37.817073 | 80 | 0.722589 | false |
mdesco/dipy | dipy/core/tests/test_sphere.py | 6 | 11994 | from __future__ import division, print_function, absolute_import
import numpy as np
import numpy.testing as nt
import warnings
from ...utils.six.moves import xrange
from dipy.core.sphere import (Sphere, HemiSphere, unique_edges, unique_sets,
faces_from_sphere_vertices, HemiSphere,
... | bsd-3-clause | 4,837,061,702,323,286,000 | 30.730159 | 80 | 0.580874 | false |
rabimba/p2pScrapper | BitTorrent-5.2.2/BitTorrent/InternetWatcher.py | 6 | 1450 | # by Greg Hazel
import random
from twisted.internet import task
from BTL.obsoletepythonsupport import set
class InternetSubscriber(object):
def internet_active(self):
pass
def try_one_connection(self):
pass
class InternetWatcher(object):
def __init__(self, rawserver):
self... | mit | 5,354,199,548,621,143,000 | 24.892857 | 70 | 0.632414 | false |
bsipocz/statsmodels | statsmodels/sandbox/examples/ex_kaplan_meier.py | 33 | 2838 | #An example for the Kaplan-Meier estimator
from __future__ import print_function
from statsmodels.compat.python import lrange
import statsmodels.api as sm
import matplotlib.pyplot as plt
import numpy as np
from statsmodels.sandbox.survival2 import KaplanMeier
#Getting the strike data as an array
dta = sm.datasets.stri... | bsd-3-clause | 1,557,644,463,796,147,700 | 21.887097 | 79 | 0.704369 | false |
jerli/sympy | bin/mailmap_update.py | 5 | 3332 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
A tool to help keep .mailmap and AUTHORS up-to-date.
"""
# TODO:
# - Check doc/src/aboutus.rst
# - Make it easier to update .mailmap or AUTHORS with the correct entries.
from __future__ import unicode_literals
from __future__ import print_function
import os
import sys... | bsd-3-clause | 1,712,747,794,603,340,000 | 28.723214 | 105 | 0.699009 | false |
rmfitzpatrick/ansible | lib/ansible/modules/cloud/amazon/lambda_facts.py | 21 | 13167 | #!/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 | 1,355,543,212,398,963,200 | 31.511111 | 134 | 0.647224 | false |
wmayner/pyphi | pyphi/models/cmp.py | 1 | 4432 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# models/cmp.py
"""
Utilities for comparing phi-objects.
"""
import functools
from collections import Iterable
import numpy as np
from .. import utils
# Rich comparison (ordering) helpers
# =============================================================================
... | gpl-3.0 | -5,870,661,888,863,652,000 | 30.211268 | 79 | 0.589576 | false |
bbc/kamaelia | Code/Python/Kamaelia/Kamaelia/Internet/Multicast_receiver.py | 3 | 4357 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License, Ve... | apache-2.0 | -6,612,075,641,002,791,000 | 30.345324 | 97 | 0.616938 | false |
wangyou/XX-Net | code/default/gae_proxy/server/lib/google/appengine/_internal/antlr3/dfa.py | 28 | 7542 | """ANTLR3 runtime package"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code ... | bsd-2-clause | 1,375,684,260,450,512,100 | 34.408451 | 97 | 0.567489 | false |
fbessho/python-sybase | examples/bulkcopy.py | 1 | 8098 | #!/usr/bin/python
#
# From bulkcopy.c - sybase example program
#
# Description:
# This program uses bulk library calls to bulk copy data into a
# copy of the publishers table row by row. We will treat all data
# as character strings, except for the first field to demonstrate
# bulk binding with other data ... | bsd-3-clause | -9,007,205,436,284,476,000 | 33.755365 | 71 | 0.611509 | false |
alanjw/GreenOpenERP-Win-X86 | python/Lib/site-packages/mako/util.py | 6 | 12880 | # mako/util.py
# Copyright (C) 2006-2012 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import imp
import sys
py3k = getattr(sys, 'py3kwarning', False) or sys.version_info >= (3, 0)
py26 ... | agpl-3.0 | 525,016,333,905,926,140 | 28.406393 | 79 | 0.559161 | false |
ivanvza/api-wow-python | wow_api.py | 1 | 17489 | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import requests
import sys
import datetime
import optparse
import urllib2
from BeautifulSoup import BeautifulSoup
import textwrap
options = optparse.OptionParser(usage='%prog -r <Realm> -c <Character Name> --cs <options>', description='WoW API functions (https://github.com/bli... | mit | 4,502,594,035,306,280,400 | 42.827068 | 183 | 0.583919 | false |
2ndQuadrant/ansible | lib/ansible/modules/cloud/amazon/cloudfront_invalidation.py | 8 | 10351 | #!/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 = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = '''
---
module... | gpl-3.0 | -7,995,550,945,048,660,000 | 36.64 | 143 | 0.666506 | false |
Applied-GeoSolutions/gips | gips/test/unit/t_core.py | 1 | 12373 | """Unit tests for core functions found in gips.core and gips.data.core."""
import sys
import os
import pkgutil
import imp
import datetime
from datetime import datetime as dt
import pytest
import gips
from gips import core
from gips.data import core as data_core
from gips.inventory import dbinv
# the tests use certa... | gpl-3.0 | 5,965,927,037,173,301,000 | 41.085034 | 99 | 0.649721 | false |
benschmaus/catapult | telemetry/telemetry/testing/decorators_unittest.py | 14 | 1522 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from telemetry import decorators
_counter = 0
class Foo(object):
@decorators.Cache
def GetCountCached(self, _):
global _counter
... | bsd-3-clause | 5,285,399,541,442,910,000 | 25.241379 | 78 | 0.745729 | false |
vdods/heisenberg | attic/library/kepler.py | 1 | 19291 | # NOTE: This changes a/b to produce a floating point approximation of that
# ratio, not the integer quotient. For integer quotient, use a//b instead.
from __future__ import division
import fourier_parameterization
import numpy as np
import multiindex
import symbolic
import sympy
import tensor
# TODO: look at and use... | mit | 606,408,769,934,170,400 | 49.5 | 220 | 0.659427 | false |
Xeralux/tensorflow | tensorflow/contrib/quantize/python/quantize_graph_test.py | 1 | 8586 | # 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 | -5,783,307,158,289,243,000 | 34.188525 | 80 | 0.679012 | false |
opennode/nodeconductor-assembly-waldur | src/waldur_mastermind/packages/views.py | 1 | 3254 | from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import response, status
from rest_framework.decorators import action
from waldur_core.core import views as core_views
from waldur_core.structure imp... | mit | -3,667,902,256,139,797,500 | 39.17284 | 88 | 0.685925 | false |
pythonpro-dev/pp-web-base | pp/web/base/util.py | 1 | 1644 | # -*- coding: utf-8 -*-
"""
Web helper functions.
"""
import logging
#import pprint
from pyramid.httpexceptions import HTTPFound, HTTPUnauthorized
from repoze.what import predicates
def get_log(extra=None):
m = "{}.{}".format(__name__, extra) if extra else __name__
return logging.getLogger(m)
def redirect... | bsd-3-clause | -6,951,154,157,376,921,000 | 23.176471 | 65 | 0.610097 | false |
sara-02/fabric8-analytics-stack-analysis | analytics_platform/kronos/pgm/src/offline_training.py | 1 | 6130 | """Functions to perform offline training for Kronos PGM."""
import sys
import time
import os
from analytics_platform.kronos.src import config
import analytics_platform.kronos.pgm.src.pgm_constants as pgm_constants
from analytics_platform.kronos.pgm.src.pgm_pomegranate import PGMPomegranate
from util.analytics_platform... | gpl-3.0 | 8,431,684,436,627,830,000 | 51.844828 | 98 | 0.650082 | false |
vdel/CoMFoRT | src/templates/test.py | 2 | 2975 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# CoMFoRT: a COntent Management system FOr Researchers and Teachers!
#
# Copyright (C) 2008 Projet2-L3IF ENS Lyon.
#
# Contributors:
# * Jean-Alexandre Angles d'Auriac
# * Gabriel Beaulieu
# * Valentin Blot
# * Pierre Boutillier
# * Nicolas Brunie
# * Aloï... | gpl-3.0 | -7,358,395,024,684,219,000 | 30.606383 | 83 | 0.691686 | false |
y4n9squared/HEtest | hetest/python/circuit_generation/stealth/stealth_gate_and_test.py | 1 | 8438 | # *****************************************************************
# Copyright (c) 2013 Massachusetts Institute of Technology
#
# Developed exclusively at US Government expense under US Air Force contract
# FA8721-05-C-002. The rights of the United States Government to use, modify,
# reproduce, release, perform, displ... | bsd-2-clause | -3,120,939,536,026,227,700 | 43.410526 | 79 | 0.510429 | false |
microcom/clouder | clouder_template_shinken/__openerp__.py | 2 | 1409 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Yannick Buron
# Copyright 2015, TODAY Clouder SASU
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License with Attribution
# ... | gpl-3.0 | -1,006,637,327,215,163,100 | 36.078947 | 79 | 0.619588 | false |
jinankjain/zamboni | mkt/submit/tests/test_views.py | 1 | 38619 | # -*- coding: utf-8 -*-
import datetime
import json
import os
import shutil
from django.conf import settings
from django.core.files.storage import default_storage as storage
from django.core.urlresolvers import reverse
import mock
from nose.tools import eq_, ok_
from pyquery import PyQuery as pq
import amo
import am... | bsd-3-clause | -7,418,454,186,039,408,000 | 36.928291 | 79 | 0.59755 | false |
kamcpp/tensorflow | tensorflow/contrib/distributions/python/kernel_tests/inverse_gamma_test.py | 12 | 13570 | # 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 | 1,073,453,541,121,474,300 | 42.079365 | 80 | 0.593294 | false |
mkrupcale/ansible | lib/ansible/modules/network/f5/bigip_monitor_http.py | 32 | 14516 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2013, serge van Ginderachter <serge@vanginderachter.be>
# based on Matt Hite's bigip_pool module
# (c) 2013, Matt Hite <mhite@hotmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GN... | gpl-3.0 | -6,942,865,594,513,564,000 | 31.474273 | 121 | 0.601061 | false |
frappe/erpnext | erpnext/buying/doctype/purchase_order/test_purchase_order.py | 2 | 37504 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import unittest
import frappe
import json
import frappe.defaults
from erpnext.accounts.doctype.payment_entry.payment_entry import get_payment_entry
from... | gpl-3.0 | -6,588,670,651,675,236,000 | 33.407339 | 129 | 0.68606 | false |
hmpf/nav | python/nav/colors.py | 2 | 3084 | #
# Copyright (C) 2013, 2019 Uninett AS
#
# This file is part of Network Administration Visualized (NAV).
#
# NAV is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 3 as published by
# the Free Software Foundation.
#
# This program is distributed in th... | gpl-3.0 | 809,446,371,041,384,300 | 27.82243 | 79 | 0.645266 | false |
JioCloud/python-openstackclient | openstackclient/compute/v2/floatingippool.py | 2 | 1286 | # Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | apache-2.0 | 539,724,636,693,234,940 | 29.619048 | 77 | 0.667185 | false |
ensiform/ETe | src/curl-7.58.0/tests/curl_test_data.py | 11 | 1944 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
# Copyright (C) 2017, Daniel Stenberg, <daniel@haxx.se>, et al.... | gpl-3.0 | -4,513,934,201,302,798,300 | 30.868852 | 81 | 0.57356 | false |
linkcheck/linkchecker | tests/checker/test_content_allows_robots.py | 1 | 3110 | # Copyright (C) 2020 Chris Mayo
#
# 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 in the... | gpl-2.0 | 4,885,223,298,325,190,000 | 35.162791 | 83 | 0.654341 | false |
jkonecny12/anaconda | pyanaconda/modules/storage/partitioning/blivet/blivet_handler.py | 6 | 2734 | #
# Handlers for the Blivet partitioning module.
#
# Copyright (C) 2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This pr... | gpl-2.0 | 6,219,008,151,886,623,000 | 34.506494 | 81 | 0.680322 | false |
tensorflow/examples | tensorflow_examples/lite/model_maker/demo/audio_classification_demo.py | 1 | 6869 | # Copyright 2020 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 | -8,667,436,786,742,816,000 | 34.225641 | 93 | 0.676809 | false |
kgilmo/penning_artiq | artiq/frontend/novatech409b_controller.py | 2 | 1306 | #!/usr/bin/env python3
# Written by Joe Britton, 2015
import argparse
import logging
import sys
from artiq.devices.novatech409b.driver import Novatech409B
from artiq.protocols.pc_rpc import simple_server_loop
from artiq.tools import verbosity_args, simple_network_args, init_logger
logger = logging.getLogger(__name... | gpl-3.0 | -2,953,919,564,819,372,000 | 26.208333 | 79 | 0.658499 | false |
maxolasersquad/ninja-ide | ninja_ide/__init__.py | 6 | 2591 | # -*- coding: utf-8 -*-
#
# This file is part of NINJA-IDE (http://ninja-ide.org).
#
# NINJA-IDE 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
# any later version.
#
# NIN... | gpl-3.0 | -516,224,943,705,565,100 | 34.986111 | 79 | 0.533385 | false |
kynikos/lib.py.plural | src/plural/__init__.py | 1 | 10082 | # Return a dictionary with the needed variation of a word.
# Copyright (C) 2011-2014 Dario Giovannetti <dev@dariogiovannetti.net>
#
# 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... | gpl-3.0 | 2,811,645,608,276,724,000 | 37.926641 | 79 | 0.551478 | false |
lbjay/cds-invenio | modules/webbasket/lib/webbasket_templates.py | 1 | 180058 | ## This file is part of CDS Invenio.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 CERN.
##
## CDS Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (... | gpl-2.0 | -1,998,667,505,554,306,300 | 44.480677 | 307 | 0.435332 | false |
wizkid057/eloipool | httpserver.py | 7 | 8704 | # Eloipool - Python Bitcoin pool server
# Copyright (C) 2011-2013 Luke Dashjr <luke-jr+eloipool@utopios.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# L... | agpl-3.0 | -4,368,055,062,285,143,600 | 30.536232 | 174 | 0.659697 | false |
lakshayg/tensorflow | tensorflow/contrib/estimator/python/estimator/replicate_model_fn_test.py | 3 | 52881 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,191,601,908,762,129,000 | 37.543003 | 80 | 0.633819 | 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.