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 |
|---|---|---|---|---|---|---|---|---|---|---|
openstack/senlin | senlin/tests/unit/objects/requests/test_nodes.py | 1 | 8333 | # 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
# distributed unde... | apache-2.0 | -119,337,664,729,296,670 | 32.332 | 76 | 0.610344 | false |
cbeighley/peregrine | peregrine/iqgen/bits/satellite_factory.py | 2 | 2905 | # Copyright (C) 2016 Swift Navigation Inc.
# Contact: Valeri Atamaniouk <valeri@swiftnav.com>
#
# This source is subject to the license found in the file 'LICENSE' which must
# be be distributed together with this source. All other rights reserved.
#
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF A... | gpl-3.0 | -6,576,944,578,196,463,000 | 34.864198 | 79 | 0.713941 | false |
kaiweifan/vse-lbaas-plugin-poc | quantum/plugins/nec/drivers/__init__.py | 7 | 1479 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2012 NEC Corporation. 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.or... | apache-2.0 | 6,007,911,006,154,109,000 | 38.972973 | 78 | 0.718053 | false |
lokeshjindal15/pd-gem5 | configs/common/CacheConfig.py | 1 | 11310 |
# Copyright (c) 2012-2013 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the function... | bsd-3-clause | -2,735,727,477,452,770,300 | 42.167939 | 135 | 0.601238 | false |
vlvkobal/netdata | collectors/python.d.plugin/python_modules/urllib3/packages/backports/makefile.py | 4 | 1492 | # -*- coding: utf-8 -*-
# SPDX-License-Identifier: MIT
"""
backports.makefile
~~~~~~~~~~~~~~~~~~
Backports the Python 3 ``socket.makefile`` method for use with anything that
wants to create a "fake" socket object.
"""
import io
from socket import SocketIO
def backport_makefile(self, mode="r", buffering=None, encodi... | gpl-3.0 | 1,888,776,068,204,492,800 | 26.62963 | 76 | 0.593164 | false |
birkbeckOLH/annotran | annotran/languages/schemas.py | 2 | 2276 | """
Copyright (c) 2013-2014 Hypothes.is Project and contributors
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 copyright notice, this
list of conditions and the ... | mit | 4,128,786,728,090,736,600 | 41.148148 | 79 | 0.75 | false |
kaldonis/ft-event-manager | src/lib/webob/exc.py | 3 | 36095 | """
HTTP Exception
--------------
This module processes Python exceptions that relate to HTTP exceptions
by defining a set of exceptions, all subclasses of HTTPException.
Each exception, in addition to being a Python exception that can be
raised and caught, is also a WSGI application and ``webob.Response``
object.
Thi... | gpl-2.0 | -6,672,500,066,994,011,000 | 30.170121 | 85 | 0.655548 | false |
aboutsajjad/Bridge | app_packages/youtube_dl/extractor/njpwworld.py | 8 | 3103 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import compat_urlparse
from ..utils import (
extract_attributes,
get_element_by_class,
urlencode_postdata,
)
class NJPWWorldIE(InfoExtractor):
_VALID_URL = r'https?://njpwworld\.com/p/(?... | mit | 7,352,635,283,471,513,000 | 31.967391 | 83 | 0.536433 | false |
PetePriority/home-assistant | homeassistant/components/sensor/london_air.py | 4 | 6395 | """
Sensor for checking the status of London air.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.london_air/
"""
from datetime import timedelta
import logging
import requests
import voluptuous as vol
from homeassistant.components.sensor import P... | apache-2.0 | -3,667,603,604,450,012,000 | 28.470046 | 74 | 0.593276 | false |
FedoraScientific/salome-smesh | src/SMESH_SWIG/ex14_cyl1holed.py | 1 | 3773 | # -*- coding: iso-8859-1 -*-
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesse... | lgpl-2.1 | -4,865,860,661,526,086,000 | 25.201389 | 121 | 0.636629 | false |
badlogicmanpreet/nupic | examples/opf/experiments/classification/category_TP_0/description.py | 6 | 1653 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | agpl-3.0 | 1,107,099,642,865,129,000 | 41.384615 | 76 | 0.61827 | false |
dighl/triples | triplesx.py | 1 | 9601 | #!/usr/bin/python2.6
import cgitb
cgitb.enable()
import cgi
import sqlite3
import datetime
print "Content-type: text/plain; charset=utf-8"
# get the args of the url, convert nasty field storage to plain dictionary,
# there is probably a better solution, but this works for the moment
tmp_args = cgi.FieldStorage()
args... | gpl-2.0 | -5,061,434,732,639,982,000 | 31.326599 | 140 | 0.540465 | false |
ajmorss/automatedAFManalysis | machine_learning/feature_creation.py | 1 | 6369 | # -*- coding: utf-8 -*-
from automatedAFManalysis.afm_sql_code.afmsqlcode import SQLConnection, SQLData
import numpy as np
import multiprocessing
import csv
class SQLDataForFeatures(SQLData):
'''
The SQLDataForFeatures class is a modified version of the SQLData class
that facilitates the creation and savi... | cc0-1.0 | -2,257,061,216,518,495,200 | 36.470588 | 87 | 0.574344 | false |
Noirello/bonsai | tests/test_ldapvaluelist.py | 2 | 3299 | import pytest
from bonsai.ldapvaluelist import LDAPValueList
def test_append():
""" Test LDAPValueList's append method. """
lvl = LDAPValueList()
lvl.append("test")
assert "test" in lvl
with pytest.raises(ValueError):
lvl.append("Test")
def test_insert():
""" Test LDAPValueList's in... | mit | -5,303,534,331,157,775,000 | 24.78125 | 64 | 0.56896 | false |
JackDanger/sentry | tests/sentry/models/test_organizationaccessrequest.py | 9 | 1952 | from __future__ import absolute_import
from django.core import mail
from sentry.models import (
OrganizationAccessRequest, OrganizationMember, OrganizationMemberTeam
)
from sentry.testutils import TestCase
class SendRequestEmailTest(TestCase):
def test_sends_email_to_everyone(self):
owner = self.cre... | bsd-3-clause | 8,699,312,299,698,234,000 | 27.705882 | 73 | 0.573258 | false |
chengduoZH/Paddle | python/paddle/fluid/tests/unittests/test_fuse_elewise_add_act_pass.py | 2 | 3026 | # Copyright (c) 2018 PaddlePaddle 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 appli... | apache-2.0 | -2,038,469,454,949,967,400 | 37.794872 | 87 | 0.644415 | false |
CptLemming/libsaas | libsaas/services/flurry/resource.py | 4 | 11177 | from libsaas.services import base
from libsaas import http, parsers
def to_camelcase(val):
words = val.split('_')
words = [words[0].lower()] + [x.capitalize() for x in words[1:]]
return ''.join(words)
class Metrics(base.HierarchicalResource):
path = 'appMetrics'
def get_url(self):
grand... | mit | -7,088,859,782,821,526,000 | 30.396067 | 79 | 0.619039 | false |
msrconsulting/atm-py | atmPy/radiation/solar.py | 6 | 4605 | __author__ = 'mrichardson, Hagen Telg'
from math import fmod, sin, cos, asin
import ephem
import numpy as np
import pandas as pd
from atmPy.atmos.constants import a2r, r2a
__julian = {"day": 0., "cent": 0.}
class solar(object):
def __init__(self, ltime):
julian = solar.juliandates(l... | mit | 2,767,169,806,084,939,000 | 29.979167 | 106 | 0.586102 | false |
dushmis/osquery | tools/tests/utils.py | 24 | 2940 | #!/usr/bin/env python
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from... | bsd-3-clause | -7,516,679,022,976,035,000 | 27.269231 | 79 | 0.602041 | false |
zonca/boinc | test/test_sanity.py | 4 | 3318 | #!/usr/bin/env python
## $Id: test_sanity.py 2246 2003-09-04 05:07:17Z quarl $
from testbase import *
import urllib, random
# Test makes sure that testing framework is sane:
#
# - executables compiled
# - cgi server works
# - test proxy works
# - mysql permissions and command-line client works
def read_url(url, qui... | gpl-3.0 | 1,932,945,434,980,375,800 | 31.851485 | 93 | 0.606088 | false |
DigFarmer/aircraft | bsp/stm32f0x/rtconfig.py | 17 | 3443 | import os
# toolchains options
ARCH='arm'
CPU='cortex-m0'
CROSS_TOOL='keil'
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
# cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc'
EXEC_PATH = '... | gpl-2.0 | -8,977,840,933,347,943,000 | 26.325397 | 130 | 0.542841 | false |
srkukarni/heron | heron/examples/src/python/spout/stateful_word_spout.py | 1 | 2069 | # Copyright 2016 Twitter. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | apache-2.0 | -8,585,869,515,021,551,000 | 36.618182 | 96 | 0.713388 | false |
antonpuz/phpbuildpack | cf_spec/fixtures/php_app_with_custom_extension/.extensions/phpmyadmin/extension.py | 5 | 1498 | """PHPMyAdmin Extension
Downloads, installs and configures PHPMyAdmin
"""
import os
import os.path
import logging
from build_pack_utils import utils
_log = logging.getLogger('phpmyadmin')
DEFAULTS = utils.FormattedDict({
'PHPMYADMIN_VERSION': '4.3.12',
'PHPMYADMIN_PACKAGE': 'phpMyAdmin-{PHPMYADMIN_VERSION}... | apache-2.0 | -3,218,559,545,929,199,000 | 23.557377 | 75 | 0.627503 | false |
atrosinenko/lecture-notes-compiler | lnc/plugins/djvu.py | 1 | 2155 | from __future__ import unicode_literals
import os.path
import glob
import errno
from lnc.plugins.base_plugin import BasePlugin
from lnc.lib.process import cmd_try_run, cmd_run, _COMMAND_NOT_FOUND_MSG
from lnc.lib.io import mkdir_p, filter_regexp, needs_update
from lnc.lib.exceptions import ProgramError
def handler(... | mit | 5,267,668,773,337,236,000 | 31.651515 | 78 | 0.5471 | false |
amisrs/angular-flask | angular_flask/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.py | 18 | 2169 | # postgresql/pypostgresql.py
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
.. dialect:: postgresql+pypostgresql
:name: py-postgresql
:dbap... | mit | 4,926,370,069,080,030,000 | 26.807692 | 101 | 0.672199 | false |
sigma-random/pyew | vtrace/platforms/base.py | 16 | 28413 | """
Tracer Platform Base
"""
# Copyright (C) 2007 Invisigoth - See LICENSE file for details
import os
import struct
import vtrace
import traceback
import platform
from Queue import Queue
from threading import Thread,currentThread,Lock
import envi
import envi.memory as e_mem
import envi.threads as e_threads
import env... | gpl-2.0 | 6,986,315,963,340,076,000 | 32.038372 | 98 | 0.595784 | false |
SavinaRoja/PyUserInput | pymouse/x11.py | 3 | 8098 | #Copyright 2013 Paul Barton
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope tha... | gpl-3.0 | 9,175,964,851,776,071,000 | 36.146789 | 107 | 0.567301 | false |
tensorflow/models | research/efficient-hrl/environments/point.py | 4 | 3150 | # Copyright 2018 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | apache-2.0 | 3,456,153,939,160,689,700 | 31.474227 | 80 | 0.647302 | false |
sajeeshcs/nested_quota | nova/tests/test_configdrive2.py | 11 | 3730 | # Copyright 2012 Michael Still and Canonical Inc
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | apache-2.0 | 704,895,353,789,243,900 | 34.865385 | 78 | 0.608311 | false |
oas89/iktomi | iktomi/unstable/db/sqla/replication.py | 2 | 8766 | '''
Functions for application-level replication.
Therminology:
reflect::
Find an object with the same identifier in the target database without
changing or creating it.
replicate::
Find or create new object with the same identifier in the target database
and update it with data of the current object. ... | mit | -4,490,608,244,913,130,500 | 37.447368 | 79 | 0.682067 | false |
michalskalski/puppet-eseries-old | acceptancetests/netapp_helper_class.py | 1 | 11229 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest2
from netapp_restlibs import generic_delete, generic_post, generic_get, array_controller
import os
import sh
import time
import re
import subprocess
import netapp_config as configuration
import datetime
import logging
import random
class MyTestSuite(unittest2.... | apache-2.0 | 5,870,457,747,295,706,000 | 37.72069 | 152 | 0.479295 | false |
zlorb/mitmproxy | test/mitmproxy/tools/web/test_app.py | 4 | 11558 | import json as _json
import logging
from unittest import mock
import os
import asyncio
import pytest
import tornado.testing
from tornado import httpclient
from tornado import websocket
from mitmproxy import options
from mitmproxy.test import tflow
from mitmproxy.tools.web import app
from mitmproxy.tools.web import ma... | mit | -1,755,250,077,574,908,200 | 33.495522 | 110 | 0.564296 | false |
arkro/vizures | ratproject/rat/models.py | 1 | 2390 | from django.db import models
# Create your models here.
class Student(models.Model):
reg_no = models.IntegerField(primary_key=True,default='20120000')
roll_no = models.CharField(max_length=10,default='')
name = models.CharField(max_length=100)
department = models.CharField(max_length=50,default= 'CSE'... | mit | -5,346,791,335,817,699,000 | 40.929825 | 114 | 0.663598 | false |
gugahoi/maraschino | modules/couchpotato.py | 2 | 14384 | from flask import render_template, request, jsonify, json, send_file
from jinja2.filters import FILTERS
from maraschino.tools import get_setting_value, requires_auth
from maraschino import logger, app, WEBROOT
import urllib2
import StringIO
import base64
import re
def couchpotato_http():
if get_setting_value('cou... | mit | 5,921,693,075,078,668,000 | 29.282105 | 138 | 0.596496 | false |
lidavidm/mathics-heroku | venv/lib/python2.7/site-packages/sympy/functions/special/tests/test_error_functions.py | 4 | 22621 | from sympy import (
symbols, expand, expand_func, nan, oo, Float, conjugate, diff,
re, im, Abs, O, factorial, exp_polar, polar_lift, gruntz, limit,
Symbol, I, integrate, S,
sqrt, sin, cos, sinh, cosh, exp, log, pi, EulerGamma,
erf, erfc, erfi, erf2, erfinv, erfcinv, erf2inv,
gamma, uppergamma, l... | gpl-3.0 | -2,145,602,947,358,987,500 | 34.180404 | 102 | 0.530878 | false |
DaveA50/lbry | lbrynet/reflector/client/client.py | 1 | 16353 | """
The reflector protocol (all dicts encoded in json):
Client Handshake (sent once per connection, at the start of the connection):
{
'version': 0,
}
Server Handshake (sent once per connection, after receiving the client handshake):
{
'version': 0,
}
Client Info Request:
{
'blob_hash': "<blob_hash>... | mit | -1,718,397,455,770,459,100 | 35.019824 | 106 | 0.624411 | false |
rsalmei/clearly | tests/unit/server/test_server.py | 1 | 4150 | from unittest import mock
import pytest
from clearly.protos.clearly_pb2 import CaptureRequest, FilterTasksRequest, FilterWorkersRequest, \
Null, PatternFilter, RealtimeMessage, TaskMessage, WorkerMessage
from clearly.server.server import RPCService
@pytest.fixture
def mocked_rpc():
with mock.patch('clearly.... | mit | 741,390,945,285,774,200 | 33.583333 | 98 | 0.682169 | false |
okajun35/python_for_android_doc_ja | pythonforandroid/bootstrap.py | 2 | 11512 | from os.path import (join, dirname, isdir, splitext, basename, realpath)
from os import listdir, mkdir
import sh
import glob
import json
import importlib
from pythonforandroid.logger import (warning, shprint, info, logger,
debug)
from pythonforandroid.util import (current_directory... | mit | 8,087,446,740,981,499,000 | 38.156463 | 93 | 0.552641 | false |
yunify/qingcloud-cli | qingcloud/cli/iaas_client/actions/alarm_policy/modify_alarm_policy_action_attributes.py | 1 | 2414 | # =========================================================================
# Copyright 2012-present Yunify, Inc.
# -------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this work except in compliance with the Licens... | apache-2.0 | -5,971,013,880,356,076,000 | 43.703704 | 103 | 0.57208 | false |
Tesora-Release/tesora-trove | trove/tests/scenario/runners/instance_delete_runners.py | 2 | 2036 | # Copyright 2015 Tesora Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | apache-2.0 | -5,106,288,940,637,070,000 | 41.416667 | 78 | 0.658153 | false |
openstack/manila | manila/tests/db/sqlalchemy/test_api.py | 1 | 194905 | # Copyright 2013 OpenStack Foundation
# Copyright (c) 2014 NetApp, Inc.
# Copyright (c) 2015 Rushil Chugh
# 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
#
# ... | apache-2.0 | 6,511,009,015,598,716,000 | 41.306273 | 79 | 0.566753 | false |
johnsonc/OTM2 | opentreemap/treemap/migrations/0038_auto__add_field_instance_itree_region_default.py | 3 | 19000 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Instance.itree_region_default'
db.add_column(u'treemap_instance', 'itree_region_default',
... | gpl-3.0 | -8,868,243,839,038,990,000 | 79.172996 | 208 | 0.550737 | false |
pjialin/py12306 | py12306/helpers/auth_code.py | 1 | 2835 | import random
import time
from requests.exceptions import SSLError
from py12306.config import Config
from py12306.helpers.OCR import OCR
from py12306.helpers.api import *
from py12306.helpers.request import Request
from py12306.helpers.func import *
from py12306.log.common_log import CommonLog
from py12306.log.user_l... | apache-2.0 | -3,871,019,704,660,593,700 | 31.458824 | 98 | 0.607829 | false |
abretaud/tools-iuc | data_managers/data_manager_mitos/data_manager/data_manager.py | 2 | 2748 | import argparse
import json
import os
import shutil
import tarfile
try:
# For Python 3.0 and later
from urllib.request import Request, urlopen
except ImportError:
# Fall back to Python 2 imports
from urllib2 import Request, urlopen
ZENODO = {
"mitos": "2683856",
"mitos2": "3685310"
}
NAMES = {
... | mit | 8,881,372,008,880,541,000 | 29.197802 | 127 | 0.621179 | false |
ProjexSoftware/projexui | projexui/widgets/xrolloutwidget.py | 2 | 8758 | #!/usr/bin/python
"""
The rollout widget allows for multiple collapsible views to be open at once.
"""
# define authorship information
__authors__ = ['Eric Hulser']
__author__ = ','.join(__authors__)
__credits__ = []
__copyright__ = 'Copyright (c) 2011, Projex Software'
__lice... | lgpl-3.0 | 2,328,493,244,918,064,600 | 28.183946 | 85 | 0.517698 | false |
caioserra/apiAdwords | examples/adspygoogle/dfp/v201302/get_users_by_statement.py | 3 | 1818 | #!/usr/bin/python
#
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | apache-2.0 | 9,092,832,380,309,353,000 | 32.666667 | 80 | 0.713971 | false |
bosmanoglu/adore-doris | lib/python/snaphu.py | 2 | 9223 | # snaphu.py
import _snaphu
import sys, re
import csv
import numpy as np
import adore
import insar
def dict2obj(d):
#Modified from
#Ygor Lemos: parand.com/say/index.php/2008/10/13/access-python-dictionary-keys-as-properties/
class DictObj:
def __init__(self, **entries):
for e in entries:... | gpl-2.0 | 4,273,140,494,309,871,600 | 32.296029 | 103 | 0.631031 | false |
gizmachi/planetlab_tracer | src/tracer2.py | 1 | 18433 | #!/usr/bin/python2.7
# This tool is written as a part of the course TDDD17
# at the Linkoping University, Sweden (2015).
# Support: josgu898@student.liu.se
# OS tools needed:
# openssl, whois, scamper
# scamper needs to run as root. (uses raw sockets)
import os
# import argparse
import cPickle as pickle
import nump... | gpl-3.0 | -1,131,774,174,693,077,900 | 30.295416 | 135 | 0.526935 | false |
philipz/PyCV-time | opencv-official-samples/earlier/drawing.py | 7 | 5490 | #! /usr/bin/env python
from random import Random
import colorsys
print "OpenCV Python version of drawing"
import cv2.cv as cv
def random_color(random):
"""
Return a random color
"""
icolor = random.randint(0, 0xFFFFFF)
return cv.Scalar(icolor & 0xff, (icolor >> 8) & 0xff, (icolor >> 16) & 0xff)
... | mit | 8,093,668,142,328,921,000 | 32.888889 | 80 | 0.510929 | false |
lukas-bednar/pytest | testing/test_runner.py | 2 | 19892 | from __future__ import with_statement
import _pytest._code
import os
import py
import pytest
import sys
from _pytest import runner, main
class TestSetupState:
def test_setup(self, testdir):
ss = runner.SetupState()
item = testdir.getitem("def test_func(): pass")
l = [1]
ss.prepare(... | mit | 2,071,119,078,804,903,400 | 31.503268 | 98 | 0.577921 | false |
klaricch/TransposonFigures | total_table.py | 1 | 2595 | #!/usr/bin/env python
import re
import sys
from collections import defaultdict
kin_mono="/Users/kristen/Documents/transposon_figure_data/tables/UT_with_monomorphic_kin_matrix_full.txt"
kin="/Users/kristen/Documents/transposon_figure_data/data/kin_matrix_full.txt"
ctcp="/Users/kristen/Documents/transposon_figure_d... | mit | -2,764,518,976,974,847,000 | 23.712871 | 105 | 0.667437 | false |
SKIRT/PTS | modeling/config/adapt_fit.py | 1 | 2495 | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
# ... | agpl-3.0 | -6,075,029,844,033,250,000 | 46.056604 | 126 | 0.543304 | false |
buntyke/GPy | GPy/util/datasets.py | 8 | 64882 | from __future__ import print_function
import csv
import os
import copy
import numpy as np
import GPy
import scipy.io
import zipfile
import tarfile
import datetime
import json
import re
import sys
from .config import *
ipython_available=True
try:
import IPython
except ImportError:
ipython_available=False
try:
... | mit | 6,114,379,051,450,374,000 | 42.750506 | 435 | 0.604482 | false |
armink/rt-thread | bsp/nrf5x/nrf51822/rtconfig.py | 5 | 2499 | import os
# toolchains options
ARCH='arm'
CPU='cortex-m0'
CROSS_TOOL='keil'
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
# cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc'
EX... | apache-2.0 | -5,450,535,595,100,505,000 | 26.163043 | 142 | 0.559424 | false |
AutorestCI/azure-sdk-for-python | azure-cognitiveservices-search-entitysearch/azure/cognitiveservices/search/entitysearch/models/error_response.py | 2 | 2492 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -8,826,176,483,032,432,000 | 35.115942 | 102 | 0.620385 | false |
PaulRumyantsev/python_QA | bdd/contacts_steps.py | 1 | 2764 | from pytest_bdd import given, when, then
from model.contacts import Contacts
import random
@given('a contact list')
def contact_list(db):
return db.get_contacts_list()
@given('a contact with <firstname>, <lastname>, <id> and <address>')
def new_contact(firstname, lastname, id, address):
return Contacts(firs... | apache-2.0 | 2,545,735,729,513,010,700 | 36.863014 | 103 | 0.680535 | false |
DedMemez/ODS-August-2017 | urllib2.py | 1 | 35969 | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: urllib2
import base64
import hashlib
import httplib
import mimetools
import os
import posixpath
import random
import re
import socket
import sys
import time
import urlparse
import bisect
import warnings
try:
from cStringIO import StringIO
e... | apache-2.0 | -4,667,808,227,987,845,000 | 30.940476 | 164 | 0.536962 | false |
MoyTW/AStar | AStar.py | 1 | 6397 | __author__ = 'Travis Moy'
# This is an implementation of the A* pathfinding algorithm.
#
# It is designed to be usable in as many different situations as possible, with as many different types of nodes as
# possible. Therefore, it does not directly manipulate any of the data, and may be used with any data format the u... | mit | -3,870,866,340,722,978,300 | 41.939597 | 120 | 0.643114 | false |
binhqnguyen/ln | nsc/scons-local-1.2.0.d20090223/SCons/Options/BoolOption.py | 19 | 1999 | #
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation
#
# 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-2.0 | -5,560,263,739,764,696,000 | 38.98 | 97 | 0.753377 | false |
mlperf/training_results_v0.7 | DellEMC/benchmarks/maskrcnn/implementation/pytorch/maskrcnn_benchmark/solver/lr_scheduler.py | 4 | 2161 | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# Copyright (c) 2018-2019 NVIDIA CORPORATION. All rights reserved.
from bisect import bisect_right
import torch
# FIXME ideally this would be achieved with a CombinedLRScheduler,
# separating MultiStepLR with WarmupLR
# but the current LRSchedul... | apache-2.0 | 1,659,410,019,060,927,500 | 35.016667 | 82 | 0.588154 | false |
dcristoloveanu/qpid-proton | examples/python/client.py | 4 | 2451 | #!/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
# "... | apache-2.0 | 4,088,218,082,006,021,000 | 37.296875 | 104 | 0.685027 | false |
gsmaxwell/phase_offset_rx | gr-blocks/python/qa_peak_detector.py | 1 | 2755 | #!/usr/bin/env python
#
# Copyright 2013 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)
# ... | gpl-3.0 | 3,528,498,798,045,172,000 | 27.112245 | 70 | 0.554265 | false |
yulia-baturina/python_training | test/test_add_and_remove_contact_from_group.py | 1 | 2243 | # -*- coding: utf-8 -*-
from model.contact import Contact
from model.group import Group
import random
def test_add_random_contact_to_random_group(app, orm):
if len(orm.get_group_list()) == 0:
app.group.create(Group(name="new", header="header", footer="footer"))
if len(orm.get_contact_list()) == 0:
... | apache-2.0 | 3,274,656,067,477,043,000 | 46.723404 | 119 | 0.690147 | false |
51reboot/homework-arch-4 | 7/caozhenqiang/agent/main.py | 1 | 2360 | #!/usr/bin/python
import Queue
import threading
import time
import json
import urllib2
import socket
import commands
from moniItems import mon
import sys, os
sys.path.insert(1, os.path.join(sys.path[0], '..'))
from simpleNet.nbNetFramework import sendData_mh
#trans_l = ['localhost:50000']
trans_l = ['localhost:60000'... | apache-2.0 | 4,533,556,743,450,234,000 | 28.5 | 77 | 0.514407 | false |
sciCloud/OLiMS | lims/upgrade/to3023.py | 2 | 1721 | from dependencies.dependency import aq_inner
from dependencies.dependency import aq_parent
from dependencies.dependency import getToolByName
from dependencies.dependency import REFERENCE_CATALOG
from lims.permissions import AddStorageLocation
def upgrade(tool):
""" Add Storage locacations to ARs and Samples.
"... | agpl-3.0 | 3,020,037,346,150,486,000 | 39.97619 | 85 | 0.741429 | false |
rsutormin/narrative | src/biokbase/narrative/common/log_proxy.py | 7 | 20442 | """
Code to proxy logs from the narrative, over a socket, to a DB.
The proxy will tend to have root permissions so it can read protected
configuration files.
"""
__author__ = 'Dan Gunter <dkgunter@lbl.gov>'
__date__ = '8/22/14'
import asyncore
from datetime import datetime
from dateutil.tz import tzlocal
import loggin... | mit | -8,789,387,670,317,029,000 | 34.80035 | 84 | 0.560366 | false |
openstack/manila | manila/tests/share/drivers/ibm/test_gpfs.py | 1 | 76153 | # Copyright (c) 2014 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 agre... | apache-2.0 | 3,697,016,132,036,704,000 | 45.548289 | 219 | 0.580463 | false |
dchud/sentinel | test/stats.py | 1 | 3210 | # $Id$
from unittest import TestCase
from canary.context import Context
from canary.stats import *
from canary.search import RecordSearcher
class StatsTests (TestCase):
context = Context()
def setUp (self):
# each test gets a new collector
self.collector = StatCollector(self.context)
... | mit | -5,261,885,974,166,921,000 | 34.666667 | 62 | 0.665732 | false |
balloob/home-assistant | tests/components/freebox/test_config_flow.py | 6 | 5212 | """Tests for the Freebox config flow."""
from aiofreepybox.exceptions import (
AuthorizationError,
HttpRequestError,
InvalidTokenError,
)
import pytest
from homeassistant import data_entry_flow
from homeassistant.components.freebox.const import DOMAIN
from homeassistant.config_entries import SOURCE_DISCOVE... | apache-2.0 | -3,516,609,556,182,169,600 | 33.746667 | 86 | 0.644474 | false |
kevinzhang1986/codezero | tools/cml2header.py | 6 | 3635 | #!/usr/bin/python
import os
import sys
import re
import StringIO
import getopt
class cml2header_translator:
'''
Translates a cml2 configuration file to a C header file
that can be included in source code.
'''
def __init__(self):
self.isnotset = re.compile("^# (.*) is not set")
def linetrans(self, instream, o... | gpl-3.0 | 6,780,618,843,396,138,000 | 24.243056 | 93 | 0.650894 | false |
liorvh/golismero | tools/sqlmap/thirdparty/multipart/multipartpost.py | 15 | 3866 | #!/usr/bin/env python
"""
02/2006 Will Holcomb <wholcomb@gmail.com>
Reference: http://odin.himinbi.org/MultipartPostHandler.py
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version ... | gpl-2.0 | 2,612,569,231,227,378,000 | 35.130841 | 129 | 0.612519 | false |
yala/introdeeplearning | lab1_utils.py | 1 | 7912 | import csv
import pandas as pd
import re
import special_tokens
import numpy as np
import random
import tensorflow as tf
import matplotlib.pyplot as plt
MIN_WORD_COUNT = 10
def flatten(nested):
return [x for sublist in nested for x in sublist]
def load_sentiment_data_bow():
sentences = []
data = pd.read... | mit | 4,097,584,472,053,008,000 | 35.127854 | 103 | 0.63132 | false |
mx3L/subssupport | test/test_processing.py | 1 | 2936 | import os
import sys
import unittest
test = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(test, '..', 'plugin'))
from process import SubsLoader, DecodeError, LoadError, \
ParseError, ParserNotFoundError
from parsers import SubRipParser, MicroDVDParser
PARSERS = [SubRipParser, MicroDVD... | gpl-2.0 | 6,163,755,777,991,773,000 | 38.146667 | 131 | 0.625 | false |
nugget/home-assistant | homeassistant/components/android_ip_webcam/sensor.py | 2 | 2272 | """Support for Android IP Webcam sensors."""
from homeassistant.components.android_ip_webcam import (
KEY_MAP, ICON_MAP, DATA_IP_WEBCAM, AndroidIPCamEntity, CONF_HOST,
CONF_NAME, CONF_SENSORS)
from homeassistant.helpers.icon import icon_for_battery_level
DEPENDENCIES = ['android_ip_webcam']
async def async_s... | apache-2.0 | 7,423,872,147,240,623,000 | 30.555556 | 77 | 0.618838 | false |
kojo1/wolfssl | wrapper/python/wolfcrypt/test/test_random.py | 2 | 1174 | # test_random.py
#
# Copyright (C) 2006-2020 wolfSSL Inc.
#
# This file is part of wolfSSL.
#
# wolfSSL 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) an... | gpl-2.0 | -5,940,509,680,656,191,000 | 29.102564 | 79 | 0.711244 | false |
AustinRoy7/Pomodoro-timer | main.py | 1 | 3039 | #!/usr/bin/env python
"""
This example uses docopt with the built in cmd module to demonstrate an
interactive command application.
Usage:
pomodoro start <task-title>
pomodoros time <duration-in-minutes>
pomodoro list <date>
pomodoro list_all
pomodoro clear
pomodoro (-i | --interactive)
pomo... | mit | 4,122,409,750,263,172,000 | 21.679104 | 83 | 0.602501 | false |
ChristosChristofidis/h2o-3 | h2o-py/tests/testdir_algos/deeplearning/pyunit_demoDeeplearning.py | 1 | 1337 | import sys
sys.path.insert(1,"../../../")
import h2o
def deepLearningDemo(ip, port):
h2o.init(ip, port)
# Training data
train_data = h2o.import_frame(path=h2o.locate("smalldata/gbm_test/ecology_model.csv"))
train_data = train_data.drop('Site')
train_data['Angaus'] = train_data['Angaus'].asfactor()
print... | apache-2.0 | 2,299,426,901,288,439,000 | 27.446809 | 88 | 0.529544 | false |
chrisseto/elasticsearch-py | elasticsearch/connection/thrift.py | 10 | 3872 | from __future__ import absolute_import
from socket import timeout as SocketTimeout
from socket import error as SocketError
import time
import logging
try:
from .esthrift import Rest
from .esthrift.ttypes import Method, RestRequest
from thrift.transport import TTransport, TSocket, TSSLSocket
from thrif... | apache-2.0 | -299,925,285,532,759,600 | 37.336634 | 101 | 0.639721 | false |
freeflightsim/ffs-app-engine | freeflightsim.appspot.com/distlib/werkzeug/contrib/jsrouting.py | 25 | 8282 | # -*- coding: utf-8 -*-
"""
werkzeug.contrib.jsrouting
~~~~~~~~~~~~~~~~~~~~~~~~~~
Addon module that allows to create a JavaScript function from a map
that generates rules.
:copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
... | gpl-2.0 | 744,973,487,823,528,100 | 31.100775 | 76 | 0.515938 | false |
nkcr/WebIndex | app/venv/lib/python3.5/site-packages/nltk/stem/lancaster.py | 7 | 11234 | # Natural Language Toolkit: Stemmers
#
# Copyright (C) 2001-2016 NLTK Project
# Author: Steven Tomcavage <stomcava@law.upenn.edu>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
A word stemmer based on the Lancaster stemming algorithm.
Paice, Chris D. "Another Stemmer." ACM SIGIR Forum 24.3 (1... | mit | -1,176,239,062,176,536,300 | 35.23871 | 98 | 0.422735 | false |
deKupini/erp | addons/account/report/account_general_ledger.py | 8 | 15349 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2005-2006 CamptoCamp
# Copyright (c) 2006-2010 OpenERP S.A
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all po... | agpl-3.0 | 8,732,506,112,579,240,000 | 47.882166 | 268 | 0.550459 | false |
leilihh/cinder | cinder/volume/drivers/netapp/common.py | 9 | 4451 | # Copyright (c) 2014 Navneet Singh. All rights reserved.
# Copyright (c) 2014 Clinton Knight. All rights reserved.
# Copyright (c) 2015 Alex Meade. 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... | apache-2.0 | -1,998,569,655,063,882,000 | 37.37069 | 79 | 0.649742 | false |
malcolmhutchinson/nztrips | trips/migrations/0001_initial.py | 1 | 19727 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-11 06:49
from __future__ import unicode_literals
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencie... | gpl-3.0 | -1,325,670,313,824,942,000 | 59.698462 | 197 | 0.564911 | false |
PDuckworth/strands_qsr_lib | qsr_prob_rep/src/qsrrep_pf/pf_model.py | 5 | 3043 | # -*- coding: utf-8 -*-
import numpy as np
from probability_density_functions import PredictionPdf, ObservationPdf
import json
class PfModel(object):
def __init__(self):
self._model = {}
def add_model(self, name, pred, obs):
"""Add a model to the particle filter model representation.
... | mit | 8,792,007,464,509,104,000 | 34.383721 | 116 | 0.600723 | false |
fabsx00/joern-old | sourceutils/pythonCFGs/CSVToCFG.py | 1 | 14333 | import pickle, os
from sourceutils.csvASTs.CSVProcessor import CSVProcessor
from sourceutils.csvASTs.CSVRowAccessors import getCSVRowType, getCSVRowLevel
from sourceutils.pythonCFGs.CFG import CFG, BasicBlock
labelNode = 'label'
returnNode = 'return'
breakNode = 'break'
continueNode = 'continue'
gotoNode = 'goto'
bre... | gpl-3.0 | -4,552,906,977,551,252,000 | 35.19697 | 116 | 0.612433 | false |
arbn/pysaml2 | src/saml2/mdstore.py | 1 | 23913 | import logging
import sys
import json
from hashlib import sha1
from saml2.httpbase import HTTPBase
from saml2.extension.idpdisc import BINDING_DISCO
from saml2.extension.idpdisc import DiscoveryResponse
from saml2.mdie import to_dict
from saml2 import md
from saml2 import samlp
from saml2 import SAMLError
from saml2... | bsd-2-clause | -8,767,561,212,267,403,000 | 31.802469 | 80 | 0.522603 | false |
AndiDog/git-cola | share/doc/git-cola/conf.py | 3 | 1507 | # -*- coding: utf-8 -*-
import os
import sys
# Add the cola source directory to sys.path
abspath = os.path.abspath(os.path.realpath(__file__))
docdir = os.path.dirname(os.path.dirname(abspath))
srcdir = os.path.dirname(os.path.dirname(docdir))
extrasdir = os.path.join(srcdir, 'extras')
sys.path.insert(1, extrasdir)
e... | gpl-2.0 | -3,992,718,401,411,175,000 | 25.910714 | 70 | 0.667551 | false |
killerwhile/polaris-gslb | polaris_health/state/pool.py | 1 | 14844 | # -*- coding: utf-8 -*-
import logging
import ipaddress
import random
from polaris_health import Error, config, monitors
from polaris_health.util import topology
__all__ = [ 'PoolMember', 'Pool' ]
LOG = logging.getLogger(__name__)
LOG.addHandler(logging.NullHandler())
MAX_POOL_MEMBER_NAME_LEN = 256
MAX_POOL_MEMBER... | bsd-3-clause | -8,665,529,963,169,246,000 | 32.967963 | 80 | 0.48464 | false |
vintasoftware/django-templated-email | tests/test_get_templated_mail.py | 2 | 2466 | from django.test import TestCase
from mock import patch
from templated_email import get_templated_mail
class GetTemplatedMailTestCase(TestCase):
TEST_ARGS = ['a_template_name', {'context': 'content'}]
TEST_KWARGS = {
'from_email': 'from@example.com',
'to': ['to@example.com'],
'cc': [... | mit | -1,729,526,627,829,810,200 | 37.53125 | 83 | 0.637064 | false |
ArcEye/MK-Qt5 | lib/python/gladevcp/hal_widgets.py | 17 | 13019 | # vim: sts=4 sw=4 et
# GladeVcp Widgets
#
# Copyright (c) 2010 Chris Morley, Pavel Shramov
#
# 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... | lgpl-2.1 | -8,120,444,566,619,983,000 | 35.365922 | 120 | 0.590214 | false |
itoed/anaconda | pyanaconda/simpleconfig.py | 8 | 6761 | #
# simpleconifg.py - representation of a simple configuration file (sh-like)
#
# Copyright (C) 1999-2014 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 op... | gpl-2.0 | 6,305,620,812,301,647,000 | 32.805 | 82 | 0.576838 | false |
vrv/tensorflow | tensorflow/contrib/distributions/python/ops/poisson.py | 25 | 5414 | # 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 | 7,096,861,138,893,395,000 | 33.484076 | 80 | 0.679165 | false |
brownshang/Flask-User | example_apps/multi_email_app.py | 10 | 4507 | import os
from flask import Flask, render_template_string
from flask_mail import Mail
from flask_sqlalchemy import SQLAlchemy
from flask_user import login_required, UserManager, UserMixin, SQLAlchemyAdapter
# Use a Class-based config to avoid needing a 2nd file
# os.getenv() enables configuration through OS environme... | bsd-2-clause | -4,549,811,117,221,769,700 | 38.884956 | 103 | 0.592856 | false |
noroutine/ansible | lib/ansible/modules/windows/win_ping.py | 34 | 1959 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>, and others
#
# 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 ... | gpl-3.0 | 5,661,858,080,797,863,000 | 28.238806 | 81 | 0.701889 | false |
osm-fr/osmose-backend | analysers/analyser_osmosis_highway_without_ref.py | 4 | 2575 | #!/usr/bin/env python
#-*- coding: utf-8 -*-
###########################################################################
## ##
## Copyrights Frédéric Rodrigo 2017 ##
## ... | gpl-3.0 | 6,272,077,371,413,751,000 | 44.140351 | 107 | 0.512243 | false |
kevin-intel/scikit-learn | examples/release_highlights/plot_release_highlights_0_22_0.py | 6 | 10115 | """
========================================
Release Highlights for scikit-learn 0.22
========================================
.. currentmodule:: sklearn
We are pleased to announce the release of scikit-learn 0.22, which comes
with many bug fixes and new features! We detail below a few of the major
features of this r... | bsd-3-clause | 421,730,285,637,798,300 | 36.462963 | 79 | 0.719525 | false |
Scarygami/mirror-api-examples | colours-of-the-world/tasks.py | 1 | 8959 | #!/usr/bin/python
# Copyright (C) 2013 Gerwin Sturm, FoldedSoft e.U.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by ... | apache-2.0 | 522,482,538,929,888,960 | 31.34296 | 118 | 0.511776 | false |
gordon-/yolo | learning/models.py | 1 | 10361 | from datetime import timedelta, date
from django.db import models
from django.contrib.auth.models import User, Group
from django.utils import timezone
from django.utils.text import slugify
from polymorphic import PolymorphicModel
from .validators import colorValidator
from .eventview import EventView
class Member(m... | agpl-3.0 | 1,879,368,670,769,459,500 | 34.376712 | 79 | 0.57425 | false |
unixhot/opencmdb | django_mongoengine/mongo_admin/templatetags/documenttags.py | 2 | 2214 | from django.template import Library
from django.contrib.admin.templatetags.admin_list import (result_hidden_fields, ResultList, items_for_result,
result_headers)
from django.db.models.fields import FieldDoesNotExist
from django_mongoengine.forms.utils import p... | apache-2.0 | -1,069,084,826,514,123,900 | 35.9 | 109 | 0.648148 | false |
twchoi/tmp-brunet-deetoo | tests/loganalysis/chronilog.py | 3 | 2226 | #!/usr/bin/env python
#
# This takes a Brunet connection log and parses it into a graph
# The current version takes the whole log.
#
import sys, time, copy, stats
from datetime import timedelta, datetime
infilename = sys.argv[1]
mapfilename = infilename + '.address_map'
ifile = open( infilename, 'r') # r for readi... | gpl-2.0 | 1,403,455,101,548,990,200 | 29.081081 | 105 | 0.636568 | 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.