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 |
|---|---|---|---|---|---|---|---|---|---|---|
damahou/sagewui | sagewui_kernels/sage/interfaces.py | 1 | 19866 | # -*- coding: utf-8 -*
"""
sagewui_kernels.sage interfaces
AUTHORS:
- William Stein
- J Miguel Farto
"""
#############################################################################
#
# Copyright (C) 2009 William Stein <wstein@gmail.com>
# Copyright (C) 2015 J Miguel Farto <jmfarto@gmail.com>
# Di... | gpl-3.0 | -3,437,304,166,632,598,000 | 31.041935 | 79 | 0.550186 | false |
uclouvain/osis | base/models/enums/link_type.py | 2 | 1444 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | -8,624,387,534,798,143,000 | 44.09375 | 87 | 0.657658 | false |
Yellowen/Owrang | patches/june_2013/p03_buying_selling_for_price_list.py | 1 | 1032 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import webnotes
from webnotes.utils import cint
import MySQLdb
def execute():
webnotes.reload_doc("setup", "doctype", "price_list")
webnotes.reload_doc("setup", "d... | agpl-3.0 | 4,028,813,273,927,363,000 | 35.892857 | 92 | 0.696705 | false |
fumitoh/modelx | modelx/qtgui/modeltree.py | 1 | 13640 | # Copyright (c) 2017-2021 Fumito Hamamura <fumito.ham@gmail.com>
# 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 version 3.
#
# This library is distributed in the hope that it will be use... | gpl-3.0 | -8,648,158,871,068,630,000 | 28.846827 | 99 | 0.591569 | false |
Berserker66/FactorioManager | FactorioManager/paths.py | 1 | 1357 | __author__ = 'Fabian'
import sys
import appdirs
import os
import shutil
join = os.path.join
directories = appdirs.AppDirs("FactorioManager", "", roaming=True)
configpath = join(directories.user_config_dir, "config.cfg")
tempfolder = appdirs.user_cache_dir("FactorioManager", "", opinion=False)
log = join(tempfolder, ... | mit | -2,542,619,953,693,872,600 | 28.521739 | 93 | 0.651437 | false |
marrybird/flask-jwt | tests/test_jwt.py | 3 | 9177 | # -*- coding: utf-8 -*-
"""
tests.test_jwt
~~~~~~~~~~~~~~
Flask-JWT tests
"""
import time
from datetime import timedelta
from itsdangerous import TimedJSONWebSignatureSerializer
from flask import Flask, json, jsonify
import flask_jwt
def post_json(client, url, data):
resp = client.post(
ur... | mit | -697,690,219,955,197,300 | 27.768025 | 96 | 0.609894 | false |
nkhuyu/httpbin | setup.py | 15 | 1055 | from setuptools import setup, find_packages
import codecs
import os
import re
long_description = open(
os.path.join(os.path.dirname(__file__), 'README.rst')).read()
setup(
name="httpbin",
version="0.2.1",
description="HTTP Request and Response Service",
long_description=long_description,
# Th... | isc | 3,279,542,252,861,804,500 | 27.513514 | 77 | 0.638863 | false |
sfu-cl-lab/NHL_Markov | analysis/extable_penaltysum.py | 1 | 2153 | import MySQLdb
def transtime(timestr):
timestr=str(timestr)
timestr=timestr.split(":")
return int(timestr[1])*60+int(timestr[2])
hometeamid=0
awayteamid=0
timetick=-1
homeps=0
awayps=0
conn=MySQLdb.connect(host='localhost',
user='research',
passwd='asdfgh',
... | gpl-3.0 | 888,046,082,125,590,800 | 37.446429 | 207 | 0.665118 | false |
futurepr0n/Books-solutions | Python-For-Everyone-Horstmann/Chapter9-Objects-and-Classes/P9_23.py | 1 | 2102 | # Design and implement a class Country that stores the name of the country, its popula-
# tion, and its area. Then write a program that reads in a set of countries and prints
# • The country with the largest area.
# • The country with the largest population.
# • The country with the largest population density ... | mit | 5,971,390,250,335,701,000 | 33.933333 | 170 | 0.622137 | false |
hanicker/odoo | addons/product_visible_discount/__openerp__.py | 260 | 2082 | ##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public L... | agpl-3.0 | 1,236,829,056,916,771,300 | 44.26087 | 111 | 0.607109 | false |
snbuback/django-guardian | guardian/tests/shortcuts_test.py | 37 | 28550 | from __future__ import unicode_literals
import warnings
from django.contrib.contenttypes.models import ContentType
from django.db.models.query import QuerySet
from django.test import TestCase
from guardian.shortcuts import get_perms_for_model
from guardian.core import ObjectPermissionChecker
from guardian.compat imp... | bsd-2-clause | 1,145,506,062,219,790,800 | 40.079137 | 100 | 0.644518 | false |
mlperf/training_results_v0.7 | Google/benchmarks/bert/implementations/bert-cloud-TF2.0-tpu-v3-32/tf2_common/utils/testing/benchmark_wrappers.py | 2 | 2850 | # Lint as: python3
"""Utils to annotate and trace benchmarks."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import REDACTED
from absl import flags
from absl import logging
from absl.testing import flagsaver
FLAGS = flags.FLAGS
flags.DEFINE_multi_stri... | apache-2.0 | -5,952,147,794,218,448,000 | 32.928571 | 79 | 0.688421 | false |
zixiliuyue/pika | pika/compat.py | 2 | 3696 | import os
import sys as _sys
PY2 = _sys.version_info < (3,)
PY3 = not PY2
if not PY2:
# these were moved around for Python 3
from urllib.parse import (quote as url_quote, unquote as url_unquote,
urlencode)
# Python 3 does not have basestring anymore; we include
# *only*... | bsd-3-clause | -9,034,860,282,357,504,000 | 26.58209 | 76 | 0.610119 | false |
yfcydyf/pyspider | pyspider/libs/pprint.py | 81 | 12676 | # Author: Fred L. Drake, Jr.
# fdrake@...
#
# This is a simple little module I wrote to make life easier. I didn't
# see anything quite like it in the library, though I may have overlooked
# something. I wrote this when I was trying to read some heavily nested
# tuples with fairly non-descript... | apache-2.0 | 3,135,886,798,621,888,000 | 32.534392 | 86 | 0.517829 | false |
kiran/bart-sign | venv/lib/python2.7/site-packages/pip/__init__.py | 6 | 10273 | #!/usr/bin/env python
from __future__ import absolute_import
import logging
import os
import optparse
import warnings
import sys
import re
from pip.exceptions import InstallationError, CommandError, PipError
from pip.utils import get_installed_distributions, get_prog
from pip.utils import deprecation, dist_is_editab... | mit | 5,427,372,724,128,354,000 | 32.032154 | 79 | 0.566047 | false |
manojgudi/sandhi | modules/gr36/gr-wxgui/src/python/scopesink_gl.py | 17 | 7879 | #
# Copyright 2008,2010 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your option)
# any later version... | gpl-3.0 | -1,571,062,239,911,773,200 | 32.815451 | 116 | 0.637644 | false |
sinhrks/cesiumpy | cesiumpy/tests/test_datasource.py | 1 | 3634 | #!/usr/bin/env python
# coding: utf-8
import unittest
import nose
import cesiumpy
class TestDataSource(unittest.TestCase):
def test_czmldatasource(self):
ds = cesiumpy.CzmlDataSource('xxx.czml')
exp = 'Cesium.CzmlDataSource.load("xxx.czml")'
self.assertEqual(ds.script, exp)
ds =... | apache-2.0 | -1,164,485,463,155,172,000 | 42.261905 | 149 | 0.63814 | false |
J0s3f/twittbot-nd | getuserbyid.py | 1 | 1116 | # This file is part of twittbot-nd
# Copyright (C) 2013 nilsding
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later versio... | agpl-3.0 | -3,929,817,138,767,990,000 | 37.482759 | 75 | 0.764337 | false |
ismailsunni/geonode | geonode/services/forms.py | 30 | 1667 | from django import forms
import taggit
from geonode.services.models import Service, ServiceLayer
from geonode.services.enumerations import SERVICE_TYPES
from django.utils.translation import ugettext_lazy as _
class CreateServiceForm(forms.Form):
# name = forms.CharField(label=_("Service Name"), max_length=512,
... | gpl-3.0 | -8,315,902,593,670,745,000 | 39.658537 | 107 | 0.647271 | false |
euhmeuh/django-ponies | ponies/apps/main/views.py | 1 | 1088 | # -*- coding: utf-8 -*-
#
# django-ponies
# Sample Django project to get started
#
# Inspired by mibou
#
# Copyright (C) 2016 euhmeuh
#
# 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 ver... | gpl-3.0 | -5,467,355,688,688,719,000 | 29.222222 | 71 | 0.727941 | false |
south-coast-science/scs_core | tests/aqcsv/data/aqcsv_datetime_test.py | 1 | 2628 | #!/usr/bin/env python3
"""
Created on 5 Mar 2019
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
import pytz
from scs_core.aqcsv.data.aqcsv_datetime import AQCSVDatetime
from scs_core.data.datetime import LocalizedDatetime
from scs_core.data.json import JSONify
# ----------------------------------... | mit | 8,961,344,295,779,259,000 | 21.271186 | 118 | 0.656773 | false |
code-disaster/fips | tools/android-create-apk.py | 1 | 7461 | #-------------------------------------------------------------------------------
# android-create-apk.py
#
# Helper script to create an APK project directory and create
# an APK.
#
# The Android SDK is expected under "fips-sdks/android/"
#
# Arguments:
#
# --path the current cmake binary dir (where the... | mit | -6,159,755,743,207,981,000 | 32.164444 | 119 | 0.618282 | false |
whereismyjetpack/ansible | lib/ansible/modules/storage/netapp/na_cdot_user.py | 14 | 10605 | #!/usr/bin/python
# (c) 2017, NetApp, Inc
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | gpl-3.0 | -981,511,398,584,074,100 | 33.099678 | 112 | 0.564074 | false |
nucular/AutobahnPython | examples/twisted/wamp/rpc/timeservice/backend.py | 8 | 2290 | ###############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
#
# 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 with... | mit | -8,057,196,112,709,679,000 | 35.349206 | 79 | 0.654585 | false |
heromod/migrid | mig/server/grid_monitor.py | 1 | 28123 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# grid_monitor - Monitor page generator
# Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Licens... | gpl-2.0 | 1,175,695,187,908,649,700 | 39.004267 | 94 | 0.506632 | false |
mat128/netman | netman/api/switch_session_api.py | 2 | 3616 | # Copyright 2015 Internap.
#
# 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 | -275,613,478,134,712,930 | 32.481481 | 147 | 0.637998 | false |
psaavedra/matrix-bot | matrixbot/plugins/trac.py | 1 | 3472 | import xmlrpc.client
from datetime import datetime, timedelta
from matrixbot import utils
class TracPlugin:
def __init__(self, bot, settings):
self.logger = utils.get_logger()
self.name = "TracPlugin"
self.bot = bot
self.settings = settings
self.logger.info("TracPlugin loade... | mit | 4,125,769,086,937,190,400 | 36.73913 | 128 | 0.525922 | false |
wmvanvliet/mne-python | mne/beamformer/_dics.py | 3 | 32914 | """Dynamic Imaging of Coherent Sources (DICS)."""
# Authors: Marijn van Vliet <w.m.vanvliet@gmail.com>
# Britta Westner <britta.wstnr@gmail.com>
# Susanna Aro <susanna.aro@aalto.fi>
# Roman Goj <roman.goj@gmail.com>
#
# License: BSD (3-clause)
import numpy as np
from ..channels import equal... | bsd-3-clause | -2,202,401,246,241,658,400 | 39.634568 | 79 | 0.605305 | false |
GRArmstrong/invenio-inspire-ops | modules/bibedit/lib/bibedit_dblayer.py | 12 | 7628 | ## This file is part of Invenio.
## Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 CERN.
##
## 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 (at your option... | gpl-2.0 | -2,770,251,190,577,536,500 | 34.47907 | 90 | 0.60291 | false |
mpeuster/estate | experiments/scaleability-dynamic/pox/tests/unit/lib/ioworker/io_worker_test.py | 45 | 4338 | #!/usr/bin/env python
#
# Copyright 2011-2012 Andreas Wundsam
# Copyright 2011-2012 Colin Scott
# Copyright 2011-2013 James McCauley
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# h... | apache-2.0 | 5,585,328,789,393,121,000 | 30.897059 | 78 | 0.671738 | false |
isrohutamahopetechnik/MissionPlanner | Lib/site-packages/numpy/matrixlib/tests/test_regression.py | 54 | 1035 | from numpy.testing import *
import numpy as np
rlevel = 1
class TestRegression(TestCase):
def test_kron_matrix(self,level=rlevel):
"""Ticket #71"""
x = np.matrix('[1 0; 1 0]')
assert_equal(type(np.kron(x,x)),type(x))
def test_matrix_properties(self,level=rlevel):
"""Ticket #12... | gpl-3.0 | 587,080,037,476,263,200 | 26.972973 | 63 | 0.569082 | false |
Dunkas12/BeepBoopBot | lib/youtube_dl/extractor/abcnews.py | 14 | 5019 | # coding: utf-8
from __future__ import unicode_literals
import calendar
import re
import time
from .amp import AMPIE
from .common import InfoExtractor
from ..compat import compat_urlparse
class AbcNewsVideoIE(AMPIE):
IE_NAME = 'abcnews:video'
_VALID_URL = r'https?://abcnews\.go\.com/[^/]+/video/(?P<display_... | gpl-3.0 | -4,417,342,806,304,674,300 | 36.177778 | 127 | 0.540147 | false |
vmindru/ansible | lib/ansible/modules/packaging/language/composer.py | 86 | 9536 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2014, Dimitrios Tydeas Mengidis <tydeas.dr@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_versi... | gpl-3.0 | -5,995,861,134,892,665,000 | 34.184502 | 142 | 0.622758 | false |
pdeesawat/PSIT58_test_01 | Test_Python_code/final_code/Indonesia/Indo_Flood.py | 1 | 1312 | data = open('Real_Final_database_02.csv')
alldata = data.readlines()
listdata = []
for i in alldata:
listdata.append(i.strip().split(','))
#Seperate each list to display in graph
year = []
affect = []
damage = []
death =[]
for j in listdata:
if j[0] == 'Indonesia'and j[2] == 'Flood':
year.append(int(j[... | apache-2.0 | 3,313,005,542,558,953,500 | 20.177419 | 49 | 0.57622 | false |
TalShafir/ansible | lib/ansible/modules/database/influxdb/influxdb_write.py | 111 | 2493 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2017, René Moser <mail@renemoser.net>
# 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... | gpl-3.0 | -2,090,334,089,070,421,000 | 24.418367 | 92 | 0.625452 | false |
elventear/ansible-modules-core | cloud/openstack/os_subnet.py | 25 | 12768 | #!/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 later ... | gpl-3.0 | 8,378,282,555,241,592,000 | 33.980822 | 79 | 0.585526 | false |
andrew-furtak/chipsec | chipsec/utilcmd/mmcfg_cmd.py | 6 | 3307 | #!/usr/bin/python
#CHIPSEC: Platform Security Assessment Framework
#Copyright (c) 2010-2015, Intel Corporation
#
#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; Version 2.
#
#This program is distr... | gpl-2.0 | 1,649,499,822,144,316,200 | 33.092784 | 136 | 0.593892 | false |
gangadhar-kadam/helpdesk-frappe | frappe/config/docs.py | 3 | 1141 |
source_link = "https://github.com/frappe/frappe"
docs_base_url = "https://frappe.github.io/frappe"
headline = "Superhero Web Framework"
sub_heading = "Build extensions to ERPNext or make your own app"
hide_install = True
long_description = """Frappe is a full stack web application framework written in Python,
Javascri... | mit | -297,776,615,535,984,500 | 39.75 | 89 | 0.773006 | false |
midma101/AndIWasJustGoingToBed | .venv/lib/python2.7/site-packages/Crypto/Util/Counter.py | 132 | 5157 | # -*- coding: ascii -*-
#
# Util/Counter.py : Fast counter for use with CTR-mode ciphers
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedicati... | mit | 7,091,092,685,461,560,000 | 39.606299 | 141 | 0.684119 | false |
Nicop06/ansible | lib/ansible/plugins/connection/buildah.py | 84 | 6344 | # Based on the docker connection plugin
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# Connection plugin for building container images using buildah tool
# https://github.com/projectatomic/buildah
#
# Written by: Tomas Tomecek (htt... | gpl-3.0 | 2,587,704,273,048,413,000 | 37.216867 | 108 | 0.630359 | false |
WojtekReu/Politikon | events/views.py | 1 | 10125 | import json
import logging
from django.contrib.auth.decorators import login_required, user_passes_test
from django.core.exceptions import PermissionDenied
from django.db import transaction
from django.http import Http404, HttpResponseBadRequest
from django.shortcuts import get_object_or_404
from django.utils.decorator... | gpl-2.0 | -3,856,737,072,557,041,700 | 32.088235 | 100 | 0.609778 | false |
di0spyr0s/pants | tests/python/pants_test/testutils/compile_strategy_utils.py | 6 | 1461 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import sys
"""Help... | apache-2.0 | 8,833,908,614,957,417,000 | 33.785714 | 93 | 0.715948 | false |
ryancoleman/autodock-vina | boost_1_54_0/tools/build/v2/test/template.py | 64 | 1081 | #!/usr/bin/python
# Copyright (C) FILL SOMETHING HERE 2006.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# This file is template for Boost.Build tests. It creates a simple project that
# builds one exe from one... | apache-2.0 | 4,878,898,228,799,570,000 | 24.738095 | 79 | 0.725254 | false |
nikolas/lettuce | tests/integration/lib/Django-1.2.5/django/contrib/gis/db/backends/spatialite/introspection.py | 401 | 2112 | from django.contrib.gis.gdal import OGRGeomType
from django.db.backends.sqlite3.introspection import DatabaseIntrospection, FlexibleFieldLookupDict
class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict):
"""
Sublcass that includes updates the `base_data_types_reverse` dict
for geometry field types.
... | gpl-3.0 | -7,626,333,359,953,244,000 | 40.411765 | 99 | 0.591383 | false |
rdipietro/tensorflow | tensorflow/contrib/distributions/python/ops/normal.py | 15 | 8485 | # 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 | -8,281,567,770,857,456,000 | 33.076305 | 92 | 0.658574 | false |
hornn/interviews | tools/bin/gppylib/gp_dbid.py | 9 | 4596 | #!/usr/bin/env python
# Line too long - pylint: disable=C0301
# Invalid name - pylint: disable=C0103
"""
gp_dbid.py
Copyright (c) EMC/Greenplum Inc 2011. All Rights Reserved.
"""
import re
import os, stat
class DummyLogger:
def info(self, msg): pass
def debug(self, msg): pass
DBID_RE = re.com... | apache-2.0 | -3,720,813,618,969,865,000 | 27.90566 | 85 | 0.577023 | false |
pchaigno/grr | parsers/windows_registry_parser_test.py | 6 | 5285 | #!/usr/bin/env python
# -*- mode: python; encoding: utf-8 -*-
"""Tests for grr.parsers.windows_registry_parser."""
from grr.lib import flags
from grr.lib import test_lib
from grr.lib import utils
from grr.lib.rdfvalues import client as rdf_client
from grr.lib.rdfvalues import paths as rdf_paths
from grr.lib.rdfvalues ... | apache-2.0 | -3,726,602,903,444,395,000 | 42.280992 | 80 | 0.663548 | false |
terracoin/terracoin | qa/rpc-tests/prioritise_transaction.py | 1 | 6000 | #!/usr/bin/env python3
# Copyright (c) 2015-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 PrioritiseTransaction code
#
from test_framework.test_framework import BitcoinTestFramework
fr... | mit | 652,631,627,672,751,000 | 40.958042 | 128 | 0.631667 | false |
bkaradzic/SwiftShader | third_party/SPIRV-Tools/utils/generate_grammar_tables.py | 11 | 34927 | #!/usr/bin/env python
# Copyright (c) 2016 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | 3,681,175,261,911,176,700 | 38.962243 | 93 | 0.614253 | false |
assefay/inasafe | safe/engine/impact_functions_for_testing/padang_building_impact_model.py | 4 | 7222 |
"""Impact function based on Padang 2009 post earthquake survey
This impact function estimates percentual damage to buildings as a
function of ground shaking measured in MMI.
Buildings are assumed to fall the 9 classes below as described in
the Geoscience Australia/ITB 2009 Padang earthquake
survey (http://trove.nla.g... | gpl-3.0 | 4,032,478,822,788,492,000 | 41.733728 | 79 | 0.514124 | false |
andmos/ansible | test/units/modules/network/f5/test_bigip_ssl_key.py | 21 | 3292 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import json
import pytest
import sys
if sys.version_info < (2, ... | gpl-3.0 | 7,102,584,915,960,522,000 | 28.132743 | 91 | 0.646719 | false |
zbase/zbase-backup-tools | src/file_server.py | 1 | 10351 | #!/usr/bin/env python26
# Copyright 2013 Zynga 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 appl... | apache-2.0 | -570,653,639,186,685,400 | 27.593923 | 123 | 0.562554 | false |
mameneses/python-deployment | venv/lib/python2.7/site-packages/setuptools/svn_utils.py | 98 | 18879 | import os
import re
import sys
from distutils import log
import xml.dom.pulldom
import shlex
import locale
import codecs
import unicodedata
import warnings
from setuptools.compat import unicode
from setuptools.py31compat import TemporaryDirectory
from xml.sax.saxutils import unescape
try:
import url... | mit | -6,949,164,383,230,424,000 | 30.382504 | 79 | 0.558822 | false |
FengPu/TIBS | tibs/pos/test_root_dir2/publisher_3/topicF/acc_fun/email_certification.py | 9 | 23908 | #-*- coding: utf-8 -*-
from flask import Flask, url_for, redirect, render_template, request
from flask_sqlalchemy import SQLAlchemy
from wtforms import form, fields, validators
from flask.ext import admin, login
from flask_admin.contrib import sqla
from flask_admin import helpers, expose
from flask import jsonify
from ... | gpl-3.0 | 470,241,966,940,628,200 | 30.750332 | 128 | 0.591643 | false |
muntasirsyed/intellij-community | python/lib/Lib/site-packages/django/contrib/auth/forms.py | 71 | 8829 | from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.contrib.auth.tokens import default_token_generator
from django.contrib.sites.models import get_current_site
from django.template import Context, loader
from django import forms
from django.utils.translation import ugett... | apache-2.0 | 7,625,615,480,089,266,000 | 40.065116 | 138 | 0.629516 | false |
schwarz/youtube-dl | youtube_dl/extractor/golem.py | 186 | 2181 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import (
compat_urlparse,
)
from ..utils import (
determine_ext,
)
class GolemIE(InfoExtractor):
_VALID_URL = r'^https?://video\.golem\.de/.+?/(?P<id>.+?)/'
_TEST = {
'url': 'http://video.g... | unlicense | -5,139,415,448,138,922,000 | 29.71831 | 81 | 0.495644 | false |
ifcharming/original2.0 | tests/scripts/examples/sql_coverage/decimal-schema.py | 4 | 1792 | #!/usr/bin/env python
# This file is part of VoltDB.
# Copyright (C) 2008-2011 VoltDB Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitati... | gpl-3.0 | -636,220,657,132,320,800 | 41.666667 | 72 | 0.664063 | false |
caseyrollins/osf.io | scripts/embargo_registrations.py | 9 | 5063 | """Run nightly, this script will activate any pending embargoes that have
elapsed the pending approval time and make public and registrations whose
embargo end dates have been passed.
"""
import logging
import django
from django.utils import timezone
from django.db import transaction
django.setup()
from framework.ce... | apache-2.0 | -3,510,090,930,952,952,000 | 39.830645 | 113 | 0.528935 | false |
xfouloux/Flexget | tests/test_regex_extract.py | 9 | 2245 | from __future__ import unicode_literals, division, absolute_import
from tests import FlexGetBase
class TestRegexExtract(FlexGetBase):
__yaml__ = """
tasks:
test_1:
mock:
- {title: 'The.Event.New.York'}
regex_extract:
prefix: event_
... | mit | -7,920,740,912,409,338,000 | 29.753425 | 80 | 0.514031 | false |
jelugbo/hebs_repo | common/djangoapps/student/management/commands/transfer_students.py | 27 | 3394 | from optparse import make_option
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from student.models import CourseEnrollment
from shoppingcart.models import CertificateItem
from opaque_keys.edx.locations import SlashSeparatedCourseKey
class Command(BaseCommand):
hel... | agpl-3.0 | -917,577,609,295,811,200 | 40.901235 | 103 | 0.596641 | false |
jkthompson/nupic | examples/prediction/data/extra/generated/GenerateSampleData.py | 9 | 7259 | #! /usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions... | gpl-3.0 | 2,140,392,414,964,422,700 | 34.758621 | 79 | 0.51233 | false |
mugurrus/superdesk-core | superdesk/data_updates/00009_20180425-010702_vocabularies.py | 3 | 1112 | # -*- coding: utf-8; -*-
# This file is part of Superdesk.
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/superdesk/license
#
# Author : mugur
# Creation: 2018-04-25 01:07
from eve.utils import config... | agpl-3.0 | -8,142,540,445,592,094,000 | 36.066667 | 92 | 0.624101 | false |
alexandrebarachant/mne-python | examples/connectivity/plot_mne_inverse_connectivity_spectrum.py | 13 | 3458 | """
==============================================================
Compute full spectrum source space connectivity between labels
==============================================================
The connectivity is computed between 4 labels across the spectrum
between 5 and 40 Hz.
"""
# Authors: Alexandre Gramfort <alex... | bsd-3-clause | -930,788,084,281,673,900 | 35.020833 | 79 | 0.612782 | false |
Finntack/pootle | pootle/apps/pootle_terminology/forms.py | 9 | 1813 | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django import forms
from pootle.i18n.g... | gpl-3.0 | -3,871,166,093,897,494,500 | 33.207547 | 77 | 0.614451 | false |
markhoney/script.module.pyamf | lib/pyamf/tests/test_alias.py | 26 | 31404 | # Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Tests for L{ClassAlias} and L{register_class}. Both are the most
fundamental parts of PyAMF and the test suite for it is big so it makes sense
to have them in one file.
@since: 0.5
"""
import unittest
import pyamf
from pyamf import ClassAlias
fro... | mit | 3,689,437,929,260,209,000 | 26.499124 | 102 | 0.56945 | false |
dvoraka/pygl-prototype | tests/test_data.py | 1 | 1111 | # -*- encoding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
import unittest
import math
import data
class TestPoint(unittest.TestCase):
def setUp(self):
pass
def test_test(self):
self.assertEqual(True, True)
def test_chunk_distance(self):... | gpl-3.0 | -7,354,005,039,016,693,000 | 22.638298 | 75 | 0.576058 | false |
DataCanvasIO/example-modules | modules/modeling/CDH4/item2item/browsing_recommendation/specparser.py | 10 | 27353 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014, DataCanvasIO
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyri... | bsd-3-clause | 8,122,405,995,415,770,000 | 36.572802 | 189 | 0.593573 | false |
01000101/python-cloudforms | Cloudforms/managers/provision_request.py | 1 | 4005 | '''
Cloudforms.ProvisionRequestManager
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Provision Request Manager
:license: MIT, see LICENSE for more details.
'''
from time import sleep
from datetime import datetime, timedelta
from Cloudforms.utils import (
update_params,
normalize_object,
normalize_coll... | mit | 857,587,517,859,926,500 | 36.783019 | 79 | 0.612984 | false |
wemanuel/smry | smry/Crypto/SelfTest/Random/__init__.py | 105 | 1973 | # -*- coding: utf-8 -*-
#
# SelfTest/Random/__init__.py: Self-test for random number generation modules
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the exten... | apache-2.0 | 4,306,727,844,405,408,000 | 44.883721 | 117 | 0.675621 | false |
ninastempelj/paper_soccer | navodila.py | 1 | 3148 | import tkinter as tk
import os
class Navodila:
def __init__(self, master):
self.master = master
self.polje = tk.Canvas(master)
self.polje.pack(fill='both', expand='yes')
self.polje.config(bg="grey20")
# Vse slike:
master.slika_ozadje_id = tk.PhotoImage(
... | mit | -3,089,097,920,665,638,000 | 42.985915 | 81 | 0.554915 | false |
TeamTwisted/external_chromium_org | tools/memory_inspector/memory_inspector/backends/prebuilts_fetcher.py | 90 | 2102 | # 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.
"""This module fetches and syncs prebuilts from Google Cloud Storage (GCS).
See prebuilts/README for a description of the respository <> GCS sync mechanism.... | bsd-3-clause | -475,831,477,257,656,700 | 32.903226 | 80 | 0.706946 | false |
golden-tech-native/gd_facerecognize | facelib/openface/data.py | 11 | 2966 | # coding=utf8
#
# Copyright 2015-2016 Carnegie Mellon University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | mit | 1,726,605,761,475,065,600 | 24.701754 | 79 | 0.58157 | false |
cloudnull/ansible | lib/ansible/plugins/callback/context_demo.py | 144 | 1447 | # (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 | -7,479,253,956,505,432,000 | 37.078947 | 97 | 0.665515 | false |
luzheqi1987/nova-annotation | nova/tests/unit/virt/vmwareapi/test_volumeops.py | 1 | 4069 | # Copyright 2013 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | apache-2.0 | 3,064,022,763,591,640,000 | 41.831579 | 78 | 0.623986 | false |
IT-Department-Projects/OOAD-Project | Flask_App/oakcrest/lib/python2.7/site-packages/click/parser.py | 199 | 15510 | # -*- coding: utf-8 -*-
"""
click.parser
~~~~~~~~~~~~
This module started out as largely a copy paste from the stdlib's
optparse module with the features removed that we do not need from
optparse because we implement them in Click on a higher level (for
instance type handling, help formatting a... | mit | 530,728,244,359,200,500 | 35.408451 | 79 | 0.560542 | false |
abramovd/OdiZ | OdiZ/arithmetic/Zmax.py | 1 | 2394 | from __future__ import division
import numpy as np
import scipy as sp
from scipy.optimize import minimize
from .Rmax import Rmax
from .convmaxR import convmaxR
def Zmax(Z1A, Z1As, Z1B, Z1Bs, Z2A, Z2As, Z2B, Z2Bs):
m1 = len(Z1As)
m2 = len(Z2As)
n1 = len(Z1Bs)
n2 = len(Z2Bs)
e = 0.0... | apache-2.0 | -2,753,661,766,197,527,600 | 25.611111 | 126 | 0.479114 | false |
christophlsa/odoo | addons/hr_holidays/wizard/hr_holidays_summary_employees.py | 337 | 2152 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -7,712,149,817,999,079,000 | 38.851852 | 168 | 0.582714 | false |
MSusik/invenio | invenio/celery/tasks.py | 2 | 1202 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2013 CERN.
##
## 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 (at your option) a... | gpl-2.0 | 3,725,581,869,553,676,300 | 34.352941 | 75 | 0.725458 | false |
baojianzhou/DLReadingGroup | keras/keras/layers/wrappers.py | 3 | 12210 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import copy
import inspect
from ..engine import Layer
from ..engine import InputSpec
from .. import backend as K
class Wrapper(Layer):
"""Abstract wrapper base class.
Wrappers take another layer and augment it in various ways.
Do not use thi... | apache-2.0 | 8,955,955,039,671,673,000 | 34.494186 | 86 | 0.591974 | false |
pestefo/viz-youtube | paralell_coordinates/data_processer.py | 1 | 3038 | # Processes from:
# id, views, comments, related_video_1, ... , related_video_20
# to:
# views(id), comments(id), views(related_video_1), comments(related_video_1)
# ...
# views(id), comments(id), views(related_video_20), comments(related_video_20)
import csv
import copy
global dict1File
global dict2File
def ... | mit | -4,983,620,949,156,723,000 | 35.166667 | 410 | 0.592166 | false |
sethp-jive/mitmproxy | libmproxy/console/__init__.py | 15 | 21639 | from __future__ import absolute_import
import mailcap
import mimetypes
import tempfile
import os
import os.path
import shlex
import signal
import stat
import subprocess
import sys
import traceback
import urwid
import weakref
from .. import controller, flow, script, contentviews
from . import flowlist, flowview, help,... | mit | -8,592,591,877,391,201,000 | 28.521146 | 82 | 0.532511 | false |
luiseduardohdbackup/odoo | openerp/addons/base/ir/ir_needaction.py | 455 | 2704 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2009-Today OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | agpl-3.0 | -8,284,318,391,147,253,000 | 40.6 | 101 | 0.587278 | false |
ehashman/oh-mainline | vendor/packages/Django/tests/regressiontests/utils/functional.py | 93 | 1084 | from django.utils import unittest
from django.utils.functional import lazy, lazy_property
class FunctionalTestCase(unittest.TestCase):
def test_lazy(self):
t = lazy(lambda: tuple(range(3)), list, tuple)
for a, b in zip(t(), range(3)):
self.assertEqual(a, b)
def test_lazy_base_clas... | agpl-3.0 | -8,141,316,968,128,392,000 | 26.794872 | 78 | 0.560886 | false |
FNST-OpenStack/horizon | openstack_dashboard/test/integration_tests/tests/test_projects.py | 32 | 1209 | # 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, software
# d... | apache-2.0 | -6,400,090,558,320,890,000 | 42.178571 | 78 | 0.735318 | false |
TileHalo/servo | components/script/dom/bindings/codegen/parser/WebIDL.py | 28 | 249009 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
""" A WebIDL parser. """
from ply import lex, yacc
import re
import os
import traceback
import math
from collections im... | mpl-2.0 | 7,563,839,829,839,399,000 | 37.291404 | 158 | 0.56367 | false |
ovresko/erpnext | erpnext/patches/v8_0/set_sales_invoice_serial_number_from_delivery_note.py | 22 | 1393 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from erpnext.stock.stock_balance import update_bin_qty, get_reserved_qty
def execute():
""" Set the Serial Numbers in Sales Invoice I... | gpl-3.0 | -3,338,324,834,261,362,700 | 32.190476 | 94 | 0.694185 | false |
hsaputra/tensorflow | tensorflow/python/framework/errors.py | 141 | 2322 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 7,118,771,084,584,816,000 | 30.378378 | 80 | 0.692076 | false |
pwaldo2/AWPUG-Plone-Demo | src/awpug.content/Paste-1.7.5.1-py2.7.egg/paste/debug/watchthreads.py | 28 | 10863 | """
Watches the key ``paste.httpserver.thread_pool`` to see how many
threads there are and report on any wedged threads.
"""
import sys
import cgi
import time
import traceback
from cStringIO import StringIO
from thread import get_ident
from paste import httpexceptions
from paste.request import construct_url, parse_form... | gpl-2.0 | 7,680,958,107,200,432,000 | 30.305476 | 90 | 0.56872 | false |
citrusleaf/dd-agent | tests/checks/integration/test_mysql.py | 6 | 4221 | # stdlib
from nose.plugins.attrib import attr
# project
from checks import AgentCheck
from tests.checks.common import AgentCheckTest
@attr(requires='mysql')
class TestMySql(AgentCheckTest):
CHECK_NAME = 'mysql'
METRIC_TAGS = ['tag1', 'tag2']
SC_TAGS = ['host:localhost', 'port:0']
MYSQL_CONFIG = [{
... | bsd-3-clause | 8,715,579,978,876,276,000 | 30.266667 | 92 | 0.60199 | false |
tavendo/AutobahnTestSuite | autobahntestsuite/autobahntestsuite/case/case4_1_4.py | 2 | 1624 | ###############################################################################
##
## Copyright (c) Crossbar.io Technologies GmbH
##
## 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... | apache-2.0 | 2,491,762,862,671,955,000 | 44.4 | 162 | 0.618227 | false |
arnaudsj/pybrain | pybrain/tests/unittests/structure/networks/test_no_gravity_network.py | 31 | 1686 | """
The library should be able to handle networks without any weight:
>>> n1= buildNonGravityNet(False)
>>> n1.paramdim
0
>>> n1.activate([0.2,0.4])[0]
1.289...
>>> n1.activate([0.2,0.4])[0]
1.289...
Now let's verify the recurrent one as well:
>>> n2= buildNonGravityNet(True)
>>>... | bsd-3-clause | 714,333,423,579,185,900 | 28.578947 | 113 | 0.66726 | false |
binhqnguyen/ln | nsc/scons-local-1.2.0.d20090223/SCons/Tool/fortran.py | 19 | 2056 | """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, 2002, 2003, 2004, 2005, 2006, 2007, 20... | gpl-2.0 | 2,266,162,733,385,263,000 | 31.634921 | 89 | 0.752918 | false |
tkasp/osmose-backend | osmose_config.py | 1 | 103302 | #-*- coding: utf-8 -*-
###########################################################################
## ##
## Copyrights Etienne Chové <chove@crans.org> 2009 ##
## ... | gpl-3.0 | 4,560,978,624,697,203,700 | 57.725981 | 249 | 0.651671 | false |
sfrehse/googletest | test/gtest_xml_output_unittest.py | 1815 | 14580 | #!/usr/bin/env python
#
# Copyright 2006, 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... | bsd-3-clause | 5,423,313,725,861,346,000 | 46.491857 | 225 | 0.678395 | false |
jayceyxc/hue | desktop/core/ext-py/tablib-0.10.0/tablib/packages/openpyxl/shared/units.py | 118 | 2029 | # file openpyxl/shared/units.py
# Copyright (c) 2010 openpyxl
#
# 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, m... | apache-2.0 | -3,434,145,518,562,505,700 | 29.283582 | 79 | 0.700345 | false |
kytos/kyco | kytos/core/buffers.py | 2 | 5301 | """Kytos Buffer Classes, based on Python Queue."""
import logging
# from queue import Queue
from janus import Queue
from kytos.core.events import KytosEvent
__all__ = ('KytosBuffers', )
LOG = logging.getLogger(__name__)
class KytosEventBuffer:
"""KytosEventBuffer represents a queue to store a set of KytosEven... | mit | 154,890,517,535,869,470 | 31.521472 | 78 | 0.597434 | false |
israelbenatar/boto | boto/ec2/elb/securitygroup.py | 152 | 1576 | # Copyright (c) 2010 Reza Lotun http://reza.lotun.name
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, m... | mit | 7,324,877,085,444,865,000 | 40.473684 | 74 | 0.712563 | false |
IndraVikas/scikit-learn | examples/linear_model/plot_lasso_model_selection.py | 311 | 5431 | """
===================================================
Lasso model selection: Cross-Validation / AIC / BIC
===================================================
Use the Akaike information criterion (AIC), the Bayes Information
criterion (BIC) and cross-validation to select an optimal value
of the regularization paramet... | bsd-3-clause | -5,784,212,809,022,428,000 | 34.03871 | 78 | 0.681274 | false |
devunt/hydrocarbon | board/signals.py | 1 | 1269 | from django.contrib.sessions.models import Session
from django.dispatch import receiver
from django.utils.translation import ugettext as _
from account.models import EmailAddress
from account.signals import email_confirmation_sent, password_changed, user_signed_up
from board.models import Board, Notification
from boar... | mit | 7,693,989,590,360,665,000 | 35.257143 | 98 | 0.72892 | false |
SeldonIO/seldon-server | python/seldon/sklearn_estimator.py | 3 | 2924 | from sklearn.feature_extraction import DictVectorizer
from seldon.pipeline.pandas_pipelines import BasePandasEstimator
from collections import OrderedDict
import io
from sklearn.utils import check_X_y
from sklearn.utils import check_array
from sklearn.base import BaseEstimator,ClassifierMixin
import pandas as pd
clas... | apache-2.0 | 5,985,032,015,786,994,000 | 27.115385 | 131 | 0.599863 | 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.