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 |
|---|---|---|---|---|---|---|---|---|---|---|
Varriount/Colliberation | libs/twisted/web/script.py | 20 | 5272 | # -*- test-case-name: twisted.web.test.test_script -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
I contain PythonScript, which is a very simple python script resource.
"""
import os, traceback
try:
import cStringIO as StringIO
except ImportError:
import StringIO
from twiste... | mit | -5,841,385,579,758,247,000 | 30.195266 | 102 | 0.63676 | false |
xiaohaidao007/pandoraBox-SDK-mt7620 | staging_dir/host/lib/scons-2.5.0/SCons/Scanner/LaTeX.py | 3 | 16233 | """SCons.Scanner.LaTeX
This module implements the dependency scanner for LaTeX code.
"""
#
# Copyright (c) 2001 - 2016 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 Softwar... | gpl-2.0 | -5,932,492,853,959,748,000 | 40.623077 | 187 | 0.585228 | false |
luisza/dfva_client | src/client_fva/ui/validationinformationcertificate.py | 1 | 1999 | from PyQt5 import QtWidgets, QtGui
from PyQt5.QtWidgets import QTableWidgetItem
from .validationinformationcertificateui import Ui_Dialog
class ValidationInformationCertificate(QtWidgets.QDialog, Ui_Dialog):
def __init__(self, widget, main_app):
super().__init__(widget)
Ui_Dialog.__init__(self)
... | gpl-3.0 | -7,060,771,720,240,273,000 | 48.925 | 121 | 0.701904 | false |
BadSingleton/pyside2 | tests/QtCore/qrect_test.py | 3 | 3364 | #!/usr/bin/python
'''Test cases for QRect'''
import unittest
from PySide2.QtCore import QPoint, QRect, QRectF
class RectConstructor(unittest.TestCase):
def testDefault(self):
#QRect()
obj = QRect()
self.assert_(obj.isNull())
def testConstructorQPoint(self):
topLeft = QPoint... | lgpl-2.1 | -578,422,160,519,176,600 | 29.035714 | 72 | 0.588288 | false |
georgelegrand/first_gog | col.py | 1 | 4850 | import numpy as np
import random
'''
ОТКРЫТЫЙ ТЕКСТ: двойная перестановка
МАРШРУТ ВПИСЫВАНИЯ: слева - направо
МАРШРУТ ВЫПИСЫВАНИЯ: сверху - вниз
СТОЛБЦЫ: ( 3, 1, 4, 2) //сейчас рандом
СТРОКИ: ( 3, 2, 4, 1, 5) //сейчас рандом
'''
def setToCh(smt): #конвертирует строку из последовательности цифр, хранящей ... | mit | -6,127,168,930,026,081,000 | 29.992 | 110 | 0.65399 | false |
mattjmorrison/django-media-masher | src/settings.py | 1 | 1255 | from os import path
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROJECT_DIR = path.abspath(path.dirname(__file__))
ADMINS = (
('Matthew J. Morrison', 'mattj.morrison@gmail.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '.database',
}
}
USE_I... | mit | 5,681,423,153,971,184,000 | 19.241935 | 69 | 0.666135 | false |
Basvanstein/OWCK | build/lib.linux-x86_64-2.7/OWCK/utils.py | 1 | 2259 | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 12 16:19:28 2015
@author: wangronin
"""
import time, os
import numpy as np
from numpy import pi, log, atleast_2d, size, mod
from pyDOE import lhs
from ghalton import Halton
from sobol import i4_sobol
## SMSE measurement
# test_y is the target, pred_y the predicted targe... | gpl-2.0 | 761,808,325,784,908,200 | 29.945205 | 82 | 0.590969 | false |
ppiotr/Invenio | modules/bibexport/lib/bibexport_method_sitemap.py | 5 | 17343 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2008, 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 yo... | gpl-2.0 | -7,477,199,330,989,505,000 | 40.097156 | 116 | 0.617598 | false |
gangadhar-kadam/sapphire_app | selling/doctype/lead/test_lead.py | 2 | 1061 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
test_records = [
[{"doctype":"Lead", "lead_name": "_Test Lead", "status":"Open",
"email_id":"test_lead@example.com", "territory": "_Test Territory"}],
[{"doctyp... | agpl-3.0 | 4,780,978,341,459,978,000 | 34.4 | 72 | 0.673893 | false |
Natetempid/nearfield | GUI_Layout_1/GUI_Layout_1/usbswitch.py | 1 | 2285 | import serial
import threading
import Queue as q
import datetime
import numpy as np
import sys
import time
#reload(sys)
#sys.setdefaultencoding('utf8')
class usbswitch():
def __init__(self, name):
self.ctrl = serial.Serial()
portname = ""
for k in range(0,10):
if str(k) in n... | gpl-3.0 | 7,338,342,678,479,861,000 | 27.209877 | 100 | 0.563239 | false |
codrut3/tensorflow | tensorflow/contrib/receptive_field/python/util/receptive_field.py | 16 | 23376 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -2,473,689,287,112,896,500 | 38.287395 | 80 | 0.660806 | false |
ProfessorX/Config | .PyCharm30/system/python_stubs/-1247971765/PyKDE4/kdeui/KViewStateMaintainerBase.py | 1 | 1046 | # encoding: utf-8
# module PyKDE4.kdeui
# from /usr/lib/python3/dist-packages/PyKDE4/kdeui.cpython-34m-x86_64-linux-gnu.so
# by generator 1.135
# no doc
# imports
import PyKDE4.kdecore as __PyKDE4_kdecore
import PyQt4.QtCore as __PyQt4_QtCore
import PyQt4.QtGui as __PyQt4_QtGui
import PyQt4.QtSvg as __PyQt4_QtSvg
cl... | gpl-2.0 | 8,347,826,808,553,256,000 | 25.15 | 82 | 0.66826 | false |
okantekeli/aws-lambda | ImageFunctions/CreateImages.py | 1 | 2560 | import collections
import datetime
from datetime import timedelta
import boto3
def lambda_handler(event, context):
"""Main Handler for execute lambda function
Args:
event : Lambda Event
context : Lambda Event Context
"""
ec2 = boto3.client('ec2')
# This query searchs instances which... | gpl-3.0 | 5,648,038,826,633,173,000 | 25.122449 | 92 | 0.585938 | false |
mikemhenry/arcade | examples/shapes.py | 1 | 2831 | """
This simple animation example shows how to use classes to animate
multple objects on the screen at the same time.
Because this is redraws the shapes from scratch each frame, this is slow
and inefficient, but we'll show how to make it faster in the chapter on
performance.
"""
import arcade
import random
# Set up ... | mit | 9,209,995,178,170,576,000 | 25.707547 | 77 | 0.553515 | false |
eclee25/flu-SDI-exploratory-age | scripts/OR_allweeks.py | 1 | 3108 | #!/usr/bin/python
##############################################
###Python template
###Author: Elizabeth Lee
###Date: 9/2/13
###Function: draw OR by week for all weeks
###Import data:
###Command Line: python
##############################################
### notes ###
### packages/modules ###
import csv
import... | mit | 8,016,307,729,006,739,000 | 31.715789 | 127 | 0.649936 | false |
constKutsy/GeoWiki | .compit/lib/python3.6/site-packages/tornado/test/httputil_test.py | 14 | 17520 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from tornado.httputil import url_concat, parse_multipart_form_data, HTTPHeaders, format_timestamp, HTTPServerRequest, parse_request_start_line, parse_cookie
from tornado.escape import utf8, native_str
from t... | unlicense | -3,576,038,395,327,762,000 | 36.592275 | 156 | 0.565304 | false |
w1ndy/qtile | libqtile/layout/verticaltile.py | 6 | 10393 | # Copyright (c) 2014, Florian Scherf <fscherf@gmx.net>. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# t... | mit | -3,183,962,367,164,014,000 | 32.743506 | 79 | 0.488983 | false |
phsmit/iwclul2016-scripts | 01_dataprep/trn_to_phn.py | 1 | 1177 | #!/usr/bin/env python3
import os
import sys
def main(langdat_dir, trn_file, phn_dir):
phone_map = {v[0]: v[1].strip() for v in (l.split(None, 1) for l in open('{}/phones'.format(langdat_dir), encoding='utf-8'))}
for line in open(trn_file):
parts = line.split()
sentence = parts[:-1]
si... | bsd-3-clause | -4,783,353,102,058,689,000 | 24.608696 | 129 | 0.460493 | false |
PetrDlouhy/django | tests/queries/models.py | 36 | 16195 | """
Various complex queries that have been problematic in the past.
"""
from __future__ import unicode_literals
import threading
from django.db import models
from django.utils import six
from django.utils.encoding import python_2_unicode_compatible
class DumbCategory(models.Model):
pass
class ProxyCategory(Du... | bsd-3-clause | -2,722,055,568,291,930,600 | 21.65035 | 94 | 0.682495 | false |
Carreau/readthedocs.org | readthedocs/core/utils.py | 8 | 3694 | import getpass
import logging
import os
from urlparse import urlparse
from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
from builds.models import Build
log = logging.getLogger(__name__)
SYNC_USER ... | mit | 6,760,016,510,612,581,000 | 25.768116 | 123 | 0.622902 | false |
lancezlin/pyjs | pyjswidgets/pyjamas/ui/FlexCellFormatter.py | 8 | 1365 | # Copyright 2006 James Tauber and contributors
# Copyright (C) 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
#
# 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/... | apache-2.0 | -631,005,595,587,995,000 | 38 | 80 | 0.733333 | false |
junghans/espressopp | contrib/mpi4py/mpi4py-1.3/test/test_doc.py | 3 | 1559 | import types
from mpi4py import MPI
import mpiunittest as unittest
ModuleType = type(MPI)
ClassType = type(MPI.Comm)
FunctionType = type(MPI.Init)
MethodDescrType = type(MPI.Comm.Get_rank)
GetSetDescrType = type(MPI.Comm.rank)
def getdocstr(mc, docstrings, namespace=None):
name = getattr(mc, '__name__', None)
... | gpl-3.0 | -7,050,226,136,262,280,000 | 30.816327 | 70 | 0.530468 | false |
pydata/xarray | doc/gallery/plot_cartopy_facetgrid.py | 4 | 1285 | """
==================================
Multiple plots and map projections
==================================
Control the map projection parameters on multiple axes
This example illustrates how to plot multiple maps and control their extent
and aspect ratio.
For more details see `this discussion`_ on github.
.. _thi... | apache-2.0 | 1,738,798,561,084,066,600 | 27.555556 | 88 | 0.676265 | false |
leezu/mxnet | example/extensions/lib_custom_op/test_gemm.py | 6 | 2831 | #!/usr/bin/env python3
# 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 | -63,400,042,165,830,720 | 25.961905 | 63 | 0.630519 | false |
Shedino/SherpaHighLevel | catkin_ws/src/px-ros-pkg/mavlink/share/pyshared/pymavlink/examples/rotmat.py | 29 | 8769 | #!/usr/bin/env python
#
# vector3 and rotation matrix classes
# This follows the conventions in the ArduPilot code,
# and is essentially a python version of the AP_Math library
#
# Andrew Tridgell, March 2012
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser... | bsd-3-clause | 2,206,745,543,868,549,400 | 31.598513 | 91 | 0.475653 | false |
openstack/tooz | tooz/drivers/redis.py | 1 | 30171 | # -*- coding: utf-8 -*-
# Copyright (C) 2014 Yahoo! Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | apache-2.0 | 6,796,789,495,924,240,000 | 37.581841 | 79 | 0.580259 | false |
srblum/server | scripts/generate_fasta.py | 5 | 3505 | """
Generate a random FASTA file
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import hashlib
import json
import math
import os
import random
import utils
class FastaGenerator(object):
"""
Generates a random FASTA file and m... | apache-2.0 | 6,550,465,919,768,596,000 | 30.576577 | 78 | 0.573181 | false |
ioana-delaney/spark | python/pyspark/ml/param/__init__.py | 53 | 17172 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | 1,622,447,795,900,820,200 | 32.604697 | 99 | 0.585896 | false |
jtorrents/networkx | doc/source/conf.py | 2 | 5695 | # -*- coding: utf-8 -*-
#
# Sphinx documentation build configuration file, created by
# sphinx-quickstart.py on Sat Mar 8 21:47:50 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickl... | bsd-3-clause | -8,630,463,174,791,881,000 | 31.175141 | 88 | 0.676734 | false |
qedi-r/home-assistant | tests/components/sleepiq/test_init.py | 4 | 2776 | """The tests for the SleepIQ component."""
import unittest
from unittest.mock import MagicMock, patch
import requests_mock
from homeassistant import setup
import homeassistant.components.sleepiq as sleepiq
from tests.common import load_fixture, get_test_home_assistant
def mock_responses(mock, single=False):
""... | apache-2.0 | -2,349,374,305,424,731,000 | 33.271605 | 88 | 0.636527 | false |
lemonsong/lemonsong.github.io | blog/pelican-plugins/representative_image/test_representative_image.py | 63 | 2040 | #!/bin/sh
import unittest
from jinja2.utils import generate_lorem_ipsum
# Generate content with image
TEST_CONTENT_IMAGE_URL = 'https://testimage.com/test.jpg'
TEST_CONTENT = str(generate_lorem_ipsum(n=3, html=True)) + '<img src="' + TEST_CONTENT_IMAGE_URL + '"/>'+ str(generate_lorem_ipsum(n=2,html=True))
TEST_SUMM... | mit | 5,224,455,482,497,638,000 | 29 | 146 | 0.621078 | false |
tjlaboss/openmc | tests/regression_tests/source_parameterized_dlopen/test.py | 7 | 2162 | from pathlib import Path
import os
import shutil
import subprocess
import textwrap
import openmc
import pytest
from tests.testing_harness import PyAPITestHarness
@pytest.fixture
def compile_source(request):
"""Compile the external source"""
# Get build directory and write CMakeLists.txt file
openmc_dir... | mit | 4,885,972,692,589,280,000 | 27.826667 | 72 | 0.684089 | false |
cbitterfield/JobCard | example/code_blocks.py | 1 | 1238 | # Variables for standard use:
config = {}
jobcard = {}
noexec = True
command = {}
command_status = {}
command_name = "example"
CMD = ''
item_src = ''
# Standard Imports
import os
import job
import logging
import subprocess
logger = logging.getLogger(__name__)
# Code Block - Run a command an check results
#
com... | gpl-3.0 | 5,514,271,849,741,310,000 | 24.8125 | 116 | 0.693861 | false |
anilthanki/tgac-galaxytools | tools/Ensembl-REST/get_feature_info.py | 2 | 1637 | # A simple tool to connect to the Ensembl server and retrieve feature
# information using the Ensembl REST API.
from __future__ import print_function
import json
import optparse
from itertools import islice
import requests
from six.moves.urllib.parse import urljoin
parser = optparse.OptionParser()
parser.add_option(... | mit | -4,122,030,656,891,136,500 | 29.314815 | 175 | 0.618815 | false |
chemelnucfin/tensorflow | tensorflow/contrib/grid_rnn/python/ops/grid_rnn_cell.py | 19 | 23308 | # 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 | 5,037,187,476,360,267,000 | 33.892216 | 80 | 0.59988 | false |
bloyl/mne-python | mne/viz/topomap.py | 1 | 108149 | """Functions to plot M/EEG data e.g. topographies."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# Robert Luke <mail@robertluke.net>
#
#... | bsd-3-clause | 457,051,150,807,582,500 | 40.261351 | 84 | 0.587548 | false |
alexgleith/Quantum-GIS | python/plugins/sextante/algs/AddTableField.py | 2 | 4121 | # -*- coding: utf-8 -*-
"""
***************************************************************************
AddTableField.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
*************************... | gpl-2.0 | 4,025,250,056,043,229,700 | 42.378947 | 115 | 0.583111 | false |
DANCEcollaborative/forum-xblock | XBlock Integration Files/xdjangobb/xblock/lib/python2.7/site-packages/django/contrib/gis/geos/libgeos.py | 4 | 5646 | """
This module houses the ctypes initialization procedures, as well
as the notice and error handler function callbacks (get called
when an error occurs in GEOS).
This module also houses GEOS Pointer utilities, including
get_pointer_arr(), and GEOM_PTR.
"""
import os
import re
import sys
from ctypes import c_char... | mit | -2,832,675,149,344,871,000 | 37.148649 | 108 | 0.700496 | false |
tomchristie/django-rest-framework | tests/test_response.py | 3 | 10775 | from django.test import TestCase, override_settings
from django.urls import include, path, re_path
from rest_framework import generics, routers, serializers, status, viewsets
from rest_framework.parsers import JSONParser
from rest_framework.renderers import (
BaseRenderer, BrowsableAPIRenderer, JSONRenderer
)
from... | bsd-2-clause | 8,652,225,553,536,476,000 | 36.807018 | 110 | 0.684826 | false |
weolar/miniblink49 | v8_5_1/tools/testrunner/network/endpoint.py | 23 | 4536 | # Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | apache-2.0 | -4,016,352,023,141,227,000 | 35.288 | 76 | 0.690917 | false |
themad/xmenud | xmenud.py | 1 | 6727 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# xmenud - a small desktop menu
# This is
#
# for launching the app
import subprocess
# for drawing the stuff
import gtk
# for catching the error
import glib
# for reading that stuff
import xdg.Menu
import xdg.DesktopEntry
# for finding that stuff to draw
import xdg... | gpl-3.0 | 8,592,755,799,032,689,000 | 29.995392 | 166 | 0.592774 | false |
bitcraft/PURIKURA | pyrikura/smtp.py | 1 | 1435 | import smtplib
import threading
import pickle
import email
from .config import Config as pkConfig
class SenderThread(threading.Thread):
def __init__(self, address, filename):
threading.Thread.__init__(self)
self.address = address
self.filename = filename
def run(self):
sender ... | gpl-3.0 | -4,168,127,869,118,357,000 | 30.888889 | 80 | 0.599303 | false |
megmontero/tweevy | apps/oauth.py | 1 | 4757 | from flask import Flask, redirect, url_for, session, request, render_template
from flask_oauth import OAuth
import facebook as fb
from flask import Blueprint
from apps import app
app_oauth = Blueprint('app_oauth', __name__,template_folder='templates')
###https://github.com/mitsuhiko/flask-oauth/tree/master/example
SE... | bsd-3-clause | -6,090,719,618,717,257,000 | 28.918239 | 130 | 0.615094 | false |
qgis/QGIS-Django | qgis-app/models/migrations/0002_rename_Review_model_and_file_field.py | 1 | 1156 | # Custom migration, rename ModelReview to Review
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('models', '0001_initial'... | gpl-2.0 | 7,157,951,517,705,604,000 | 27.195122 | 118 | 0.564879 | false |
GenericStudent/home-assistant | tests/components/speedtestdotnet/test_config_flow.py | 6 | 4464 | """Tests for SpeedTest config flow."""
from datetime import timedelta
import pytest
from speedtest import NoMatchedServers
from homeassistant import data_entry_flow
from homeassistant.components import speedtestdotnet
from homeassistant.components.speedtestdotnet.const import (
CONF_MANUAL,
CONF_SERVER_ID,
... | apache-2.0 | 1,362,920,396,697,211,400 | 31.347826 | 77 | 0.617608 | false |
pschmitt/home-assistant | tests/components/arlo/test_sensor.py | 6 | 6961 | """The tests for the Netgear Arlo sensors."""
from collections import namedtuple
import pytest
from homeassistant.components.arlo import DATA_ARLO, sensor as arlo
from homeassistant.const import (
ATTR_ATTRIBUTION,
DEVICE_CLASS_HUMIDITY,
DEVICE_CLASS_TEMPERATURE,
UNIT_PERCENTAGE,
)
from tests.async_m... | apache-2.0 | -2,340,961,110,717,036,500 | 28.747863 | 85 | 0.666427 | false |
klenov/mashinka | main.py | 1 | 1340 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import serial
radio = serial.Serial('/dev/tty.usbserial') # TODO: change this to command line argument
pshyk_enabled = 0
def getch():
import sys, tty, termios
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
tty.setra... | gpl-2.0 | -3,078,600,315,873,372,000 | 21.928571 | 88 | 0.493284 | false |
wenxichen/tensorflow_yolo2 | src/slim_dir/preprocessing/preprocessing_factory.py | 14 | 2762 | # 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 applicable ... | mit | 2,041,764,836,220,496,600 | 35.826667 | 80 | 0.701665 | false |
abdhaleegit/avocado-misc-tests | memory/memhotplug.py | 4 | 8438 | #!/usr/bin/env python
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that i... | gpl-2.0 | 5,729,532,073,415,297,000 | 36.336283 | 130 | 0.580351 | false |
rebost/django | tests/regressiontests/utils/crypto.py | 41 | 4931 |
import math
import timeit
import hashlib
from django.utils import unittest
from django.utils.crypto import pbkdf2
class TestUtilsCryptoPBKDF2(unittest.TestCase):
# http://tools.ietf.org/html/draft-josefsson-pbkdf2-test-vectors-06
rfc_vectors = [
{
"args": {
"password": "... | bsd-3-clause | -2,955,672,078,975,782,400 | 31.873333 | 78 | 0.46887 | false |
drcapulet/sentry | src/sentry/tasks/email.py | 27 | 1947 | """
sentry.tasks.email
~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
import logging
from django.core.mail import get_connection
from sentry.tasks.base import inst... | bsd-3-clause | 8,166,124,854,748,269,000 | 26.814286 | 83 | 0.665639 | false |
raphaelm/python-sepadd | tests/debit/test_00800302.py | 1 | 5356 | import datetime
import pytest
from sepaxml import SepaDD
from tests.utils import clean_ids, validate_xml
@pytest.fixture
def sdd():
return SepaDD({
"name": "TestCreditor",
"IBAN": "NL50BANK1234567890",
"BIC": "BANKNL2A",
"batch": True,
"creditor_id": "DE26ZZZ00000000000",... | mit | 500,254,502,575,483,400 | 23.911628 | 119 | 0.50224 | false |
piotr-rusin/url-shortener | test/unit/test_views.py | 1 | 9267 | # -*- coding: utf-8 -*-
# pylint: disable=C0103
"""Tests for view classes and functions."""
import unittest
from unittest.mock import Mock, patch, MagicMock
from nose_parameterized import parameterized
from werkzeug.exceptions import HTTPException
from url_shortener.views import shorten_url, ShowURL
class BaseView... | mit | 6,918,351,025,694,210,000 | 33.578358 | 78 | 0.64843 | false |
SUSE/azure-sdk-for-python | azure-mgmt-compute/azure/mgmt/compute/compute/v2016_03_30/models/hardware_profile.py | 2 | 2068 | # 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 | 1,034,907,025,080,892,800 | 46 | 79 | 0.609284 | false |
danielballan/scikit-xray | skbeam/core/speckle.py | 7 | 12322 | # ######################################################################
# Copyright (c) 2014, Brookhaven Science Associates, Brookhaven #
# National Laboratory. All rights reserved. #
# #
# Developed at the NSLS-II, ... | bsd-3-clause | 4,274,667,901,027,297,000 | 39.4 | 79 | 0.581967 | false |
harymitchell/mscs-ml | MLWorker/worker.py | 1 | 9607 | import os
import pprint
import pandas
import numpy as np
from pymongo import MongoClient
import gridfs
from bson import ObjectId
import Queue
from keras_evaluator import KerasEvaluator
from keras.models import load_model
from sklearn.externals import joblib
from evaluation_service import evaluation_service... | mit | -6,986,750,958,680,871,000 | 41.089686 | 175 | 0.577183 | false |
rgardler/acs-cli | tests/commands/test_demo.py | 2 | 1547 | """Tests for `acs demo` subcommand."""
import pytest
import urllib.request
class TestDemo():
slow = pytest.mark.skipif(
not pytest.config.getoption("--runslow"),
reason="need --runslow option to run"
)
def test_lbweb(self, demo, service):
"""Tests the creation of the lbweb demo. T... | apache-2.0 | -8,817,229,131,061,007,000 | 32.630435 | 127 | 0.581125 | false |
prometheanfire/openstack-guest-agents-unix | install_modules.py | 4 | 5003 | #!/usr/bin/env python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (c) 2011 Openstack, LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
... | apache-2.0 | -6,336,809,742,655,173,000 | 29.882716 | 79 | 0.538277 | false |
gabstopper/smc-python | smc-monitoring/smc_monitoring/monitors/connections.py | 1 | 5154 | """
A connection query returns all currently connected sessions on the
given target.
Create a query to obtain all connections for a given engine::
query = ConnectionQuery('sg_vm')
Add a timezone to the query::
query.format.timezone('CST')
Add a filter to only get connections if the source address i... | apache-2.0 | -1,224,112,347,497,343,500 | 25.435897 | 92 | 0.574699 | false |
sposs/DIRAC | Core/scripts/dirac-stop-component.py | 10 | 1357 | #!/usr/bin/env python
# $HeadURL: svn+ssh://svn.cern.ch/reps/dirac/DIRAC/trunk/DIRAC/Core/scripts/dirac-install.py $
"""
Do the initial installation and configuration of the DIRAC MySQL server
"""
__RCSID__ = "$Id: dirac-install.py 26844 2010-07-16 08:44:22Z rgracian $"
#
from DIRAC.Core.Base import Script
Script.disab... | gpl-3.0 | 5,934,246,798,086,425,000 | 33.794872 | 110 | 0.596905 | false |
spring01/libPSI | lib/python/qmmm.py | 1 | 5432 | #
#@BEGIN LICENSE
#
# PSI4: an ab initio quantum chemistry software package
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later ver... | gpl-2.0 | 3,787,478,945,669,114,000 | 30.04 | 138 | 0.594993 | false |
BNUCNL/FreeROI | doc/conf.py | 5 | 8241 | # -*- coding: utf-8 -*-
#
# FreeROI documentation build configuration file, created by
# sphinx-quickstart on Tue Aug 6 09:54:19 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | bsd-3-clause | 8,521,173,106,514,029,000 | 31.573123 | 160 | 0.70756 | false |
MoritzS/django | django/core/management/utils.py | 44 | 3490 | import os
from subprocess import PIPE, Popen
from django.apps import apps as installed_apps
from django.utils.crypto import get_random_string
from django.utils.encoding import DEFAULT_LOCALE_ENCODING, force_text
from .base import CommandError
def popen_wrapper(args, os_err_exc_type=CommandError, stdout_encoding='ut... | bsd-3-clause | -892,076,316,083,853,700 | 31.314815 | 89 | 0.605444 | false |
popazerty/beyonwiz-sh4 | lib/python/Components/Harddisk.py | 1 | 31986 | import os
import time
from Tools.CList import CList
from SystemInfo import SystemInfo
from Components.Console import Console
import Task
from boxbranding import getMachineName
def readFile(filename):
file = open(filename)
data = file.read().strip()
file.close()
return data
def getPartitionNames():
partitions = [... | gpl-2.0 | 277,355,841,702,303,140 | 29.462857 | 160 | 0.664853 | false |
bswartz/manila | manila/policies/share_snapshot.py | 1 | 3967 | # 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 | 215,645,173,443,318,100 | 29.992188 | 78 | 0.522309 | false |
sujoykroy/motion-picture | editor/MotionPicture/shapes/curve_shape.py | 1 | 50789 | from ..commons import *
from .shape import Shape
from .shape_list import ShapeList
from .curves_form import CurvesForm
from .curve_point_group_shape import CurvePointGroupShape
from xml.etree.ElementTree import Element as XmlElement
from .mirror import *
REL_ABS_ANCHOR_AT = "rel_abs_anchor_at"
class CurveShape(Shape,... | gpl-3.0 | -5,911,548,169,782,067,000 | 42.595708 | 107 | 0.572151 | false |
0x00ach/zer0m0n | signatures/recon_systeminfo.py | 6 | 1252 | # Copyright (C) 2012 Claudio "nex" Guarnieri (@botherder)
#
# 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 pro... | gpl-3.0 | 1,236,607,287,380,904,400 | 36.939394 | 86 | 0.691693 | false |
FreekingDean/home-assistant | tests/components/test_configurator.py | 29 | 4435 | """The tests for the Configurator component."""
# pylint: disable=protected-access
import unittest
import homeassistant.components.configurator as configurator
from homeassistant.const import EVENT_TIME_CHANGED, ATTR_FRIENDLY_NAME
from tests.common import get_test_home_assistant
class TestConfigurator(unittest.Test... | mit | -5,437,386,868,304,473,000 | 37.565217 | 79 | 0.629989 | false |
PaloAltoNetworks-BD/SplunkforPaloAltoNetworks | Splunk_TA_paloalto/bin/splunk_ta_paloalto/aob_py2/solnlib/packages/schematics/contrib/enum_type.py | 3 | 2419 | """Type supporting native Python3 enum. It depends either on Py3.4+ or e.g. enum34.
"""
from __future__ import unicode_literals, absolute_import
try:
from enum import Enum
except ImportError:
pass
from ..exceptions import ConversionError
from ..translator import _
from ..types import BaseType
from ..compat im... | isc | -4,532,396,976,938,578,400 | 29.620253 | 99 | 0.57131 | false |
AndreasMadsen/tensorflow | tensorflow/contrib/learn/python/learn/utils/saved_model_export_utils.py | 4 | 11253 | # 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,599,987,610,211,274,000 | 40.371324 | 80 | 0.730916 | false |
salfab/CouchPotatoServer | couchpotato/core/providers/torrent/yify/__init__.py | 6 | 1482 | from main import Yify
def start():
return Yify()
config = [{
'name': 'yify',
'groups': [
{
'tab': 'searcher',
'list': 'torrent_providers',
'name': 'Yify',
'description': 'Free provider, less accurate. Small HD movies, encoded by <a href="https://yify... | gpl-3.0 | 3,132,631,932,905,831,000 | 31.217391 | 134 | 0.360999 | false |
SUSE/azure-sdk-for-python | azure-mgmt-compute/azure/mgmt/compute/compute/v2015_06_15/models/virtual_machine_scale_set_vm_extensions_summary.py | 2 | 1407 | # 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,594,863,412,857,004,000 | 34.175 | 98 | 0.616205 | false |
fintech-circle/edx-platform | common/djangoapps/third_party_auth/settings.py | 2 | 4345 | """Settings for the third-party auth module.
The flow for settings registration is:
The base settings file contains a boolean, ENABLE_THIRD_PARTY_AUTH, indicating
whether this module is enabled. startup.py probes the ENABLE_THIRD_PARTY_AUTH.
If true, it:
a) loads this module.
b) calls apply_settings(), passi... | agpl-3.0 | 6,532,993,894,143,038,000 | 46.228261 | 97 | 0.733257 | false |
jzaremba/sima | runtests.py | 3 | 13217 | #!/usr/bin/env python
"""
runtests.py [OPTIONS] [-- ARGS]
Run tests, building the project first.
Examples::
$ python runtests.py
$ python runtests.py -s {SAMPLE_SUBMODULE}
$ python runtests.py -t {SAMPLE_TEST}
$ python runtests.py --ipython
$ python runtests.py --python somescript.py
$ python... | gpl-2.0 | -3,302,051,674,599,771,600 | 30.544153 | 78 | 0.536355 | false |
WhittKinley/aima-python | submissions/Kinley/Actual Project/GUI.py | 2 | 6660 | from tkinter import *
import ConnectFour
from ConnectFour import C4Game
from random import randint
import games
g = C4Game
class GUI:
elementSize = 50
gridBorder = 3
gridColor = "#000000"
p1Color = "#FF0000"
p2Color = "#FFFF00"
backgroundColor = "#add8e6"
gameOn = False
def __init__(s... | mit | -5,327,300,413,814,643,000 | 34.057895 | 114 | 0.551201 | false |
naototty/pyflag | src/pyflag/Exgrep.py | 7 | 7228 | #!/usr/bin/env python
# ******************************************************
# Copyright 2004: Commonwealth of Australia.
#
# Developed by the Computer Network Vulnerability Team,
# Information Security Group.
# Department of Defence.
#
# Michael Cohen <scudette@users.sourceforge.net>
#
# ****************************... | gpl-2.0 | -3,298,805,256,687,948,000 | 29.242678 | 253 | 0.585916 | false |
KonradBreitsprecher/espresso | testsuite/observables.py | 1 | 5112 | #
# Copyright (C) 2013,2014,2015,2016 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo 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)... | gpl-3.0 | -8,551,781,302,959,550,000 | 37.43609 | 96 | 0.602504 | false |
DarthMaulware/EquationGroupLeaks | Leak #5 - Lost In Translation/windows/Resources/Ops/PyScripts/nsg.py | 1 | 3405 |
import dsz
import traceback, sys
import re
import ops.cmd
import os.path
from ops.pprint import pprint
def main():
connection_list = []
proc_list = []
ppid = ''
path = ''
user = ''
if (len(sys.argv) > 1):
pattern = (('.*' + sys.argv[1]) + '.*')
else:
pattern = '.*'
prin... | unlicense | -2,748,614,402,388,846,600 | 38.149425 | 177 | 0.56652 | false |
pfmoore/pip | src/pip/_internal/pyproject.py | 6 | 7061 | import os
from collections import namedtuple
from typing import Any, List, Optional
from pip._vendor import toml
from pip._vendor.packaging.requirements import InvalidRequirement, Requirement
from pip._internal.exceptions import InstallationError
def _is_list_of_str(obj):
# type: (Any) -> bool
return (
... | mit | 4,901,165,454,857,345,000 | 37.584699 | 79 | 0.62739 | false |
livoras/feifanote-server | test/test_db.py | 1 | 1192 | from models.user import User
from models.notebook import Notebook
from models.page import Page
from common import db
from app import app
session = db.session
def setup(self):
user = User(**dict(
email="iammfw@163.com",
username="jerry",
password="123456",
active_notebook_id=1
... | mit | -5,159,109,710,840,907,000 | 20.285714 | 63 | 0.580537 | false |
Kvoti/ditto | fabfile.py | 1 | 3400 | import os
import smtplib
from email.mime.text import MIMEText
from fabric.api import env, cd, run, shell_env, sudo, hosts, execute, settings, local
from fabric.colors import green
env.hosts = ['134.213.147.235']
env.user = 'root'
env.key_filename = '~/.ssh/id_di'
env.forward_agent = True
def deploy(js=False):
i... | bsd-3-clause | 8,849,704,638,203,996,000 | 39 | 135 | 0.626176 | false |
edmorley/django | tests/backends/postgresql/tests.py | 17 | 6011 | import unittest
import warnings
from unittest import mock
from django.db import DatabaseError, connection
from django.test import TestCase
@unittest.skipUnless(connection.vendor == 'postgresql', 'PostgreSQL tests')
class Tests(TestCase):
def test_nodb_connection(self):
"""
The _nodb_connection p... | bsd-3-clause | -883,465,429,207,508,400 | 39.877551 | 91 | 0.615244 | false |
apagac/robottelo | tests/foreman/ui/test_partitiontable.py | 2 | 6384 | # -*- encoding: utf-8 -*-
"""Test class for Partition Table UI"""
from ddt import ddt
from fauxfactory import gen_string
from robottelo.common.decorators import data, run_only_on, skip_if_bug_open
from robottelo.common.constants import PARTITION_SCRIPT_DATA_FILE
from robottelo.common.helpers import read_data_file, gene... | gpl-3.0 | -3,273,960,328,868,190,000 | 39.66242 | 79 | 0.605576 | false |
mlperf/training_results_v0.6 | Fujitsu/benchmarks/resnet/implementations/mxnet/python/mxnet/symbol/symbol.py | 1 | 107410 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | 3,714,805,258,863,992,000 | 35.164983 | 100 | 0.555302 | false |
Chippers255/nb_twitter | nb_twitter/bayes/multivariate.py | 1 | 3457 | # -*- coding: utf-8 -*-
# multivariate.py
# nb_twitter/nb_twitter/bayes
#
# Created by Thomas Nelson <tn90ca@gmail.com>
# Preston Engstrom <pe12nh@brocku.ca>
# Created..........................2015-06-23
# Modified.........................2015-06-30
#
# This script was developed for use as part of the nb_tw... | mit | 8,744,180,279,110,490,000 | 31.613208 | 79 | 0.632051 | false |
redhat-openstack/heat | heat/api/openstack/v1/software_configs.py | 3 | 2535 | #
# 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
# ... | apache-2.0 | 3,816,841,114,749,897,700 | 29.542169 | 78 | 0.634714 | false |
sotdjin/glibglab | venv/lib/python2.7/site-packages/sqlalchemy/engine/reflection.py | 13 | 30187 | # engine/reflection.py
# Copyright (C) 2005-2016 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
"""Provides an abstraction for obtaining database schema information.
Usage No... | mit | 8,901,063,157,590,984,000 | 35.238896 | 78 | 0.573558 | false |
Scarzy/LazyWorship | python_src/read_wav.py | 1 | 1312 | import wave, struct
import json
def getAmplitude(windowData):
accumulator = 0
for i in range(0, len(windowData)):
accumulator += abs(windowData[i])
amplitude = accumulator / len(windowData)
return amplitude
def readWaveData(waveFile):
# read wave data
length = waveFile.getnframes()
... | gpl-3.0 | -523,624,021,010,301,440 | 22.872727 | 96 | 0.692073 | false |
adrienbrault/home-assistant | homeassistant/components/alexa/const.py | 5 | 5980 | """Constants for the Alexa integration."""
from collections import OrderedDict
from homeassistant.components.climate import const as climate
from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT
DOMAIN = "alexa"
EVENT_ALEXA_SMART_HOME = "alexa_smart_home"
# Flash briefing constants
CONF_UID = "uid"
CONF_TITL... | mit | -140,176,370,243,246,670 | 28.170732 | 104 | 0.582107 | false |
niphlod/w2p_scheduler_tests | languages/ro.py | 1 | 16746 | # coding: utf8
{
'!=': '!=',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" (actualizează) este o expresie opțională precum "câmp1=\'valoare_nouă\'". Nu puteți actualiza sau șterge rezultatele unui JOIN',
'%(nrows)s records found': '%(nrows)... | lgpl-3.0 | 8,991,768,111,454,995,000 | 45.245763 | 294 | 0.709059 | false |
ElDeveloper/qiime | tests/test_make_2d_plots.py | 15 | 13517 | #!/usr/bin/env python
# file test_make_2d_plots.py
__author__ = "Jesse Stombaugh"
__copyright__ = "Copyright 2011, The QIIME Project" # consider project name
# remember to add yourself
__credits__ = ["Jesse Stombaugh", "Jose Antonio Navas Molina"]
__license__ = "GPL"
__version__ = "1.9.1-dev"
__maintainer__ = "Jesse ... | gpl-2.0 | 2,405,689,031,635,484,700 | 41.109034 | 147 | 0.570689 | false |
onceuponatimeforever/oh-mainline | vendor/packages/zope.interface/src/zope/interface/tests/test_document.py | 22 | 1450 | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | agpl-3.0 | 7,525,929,161,569,225,000 | 20.014493 | 78 | 0.59931 | false |
KiChjang/servo | tests/wpt/web-platform-tests/tools/manifest/manifest.py | 4 | 18236 | import io
import os
import sys
from atomicwrites import atomic_write
from copy import deepcopy
from multiprocessing import Pool, cpu_count
from six import ensure_text
from . import jsonlib
from . import vcs
from .item import (ConformanceCheckerTest,
CrashTest,
ManifestItem,
... | mpl-2.0 | 8,873,013,402,789,353,000 | 36.292434 | 117 | 0.556098 | false |
almlab/adaptml-angst-server | adaptmlprogram/wrapper/clusters/trunk/branch.py | 6 | 1502 | import copy;
class branch:
def __init__(self,length):
self.ends = [] # nodes connected to
self.length = float(length) # length (can change during rooting)
self.immutable_length = self.length # don't ever change this
self.visited = False # used for traver... | mit | 6,430,824,306,003,370,000 | 30.291667 | 74 | 0.604527 | false |
AdrianNunez/deeplearning-activity-recognition | temporalnet_working.py | 1 | 25255 | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 17 11:08:21 2017
@author: adrian
"""
from __future__ import print_function
import sys
import caffe
sys.path.insert(0, './keras-Spatial-Transformer-Layer/')
sys.path.insert(0, '/home/adrian/caffe/python')
import numpy as np
import matplotlib
matplotlib.use('Agg')
from mat... | mit | 5,728,998,120,165,741,000 | 40.199021 | 277 | 0.551455 | false |
bboe/reddit_irc | reddit_irc.py | 1 | 5933 | #!/usr/bin/env python
import asyncore
import re
import praw
import sys
import time
from ircutils import bot
from six import text_type
from six.moves import configparser
debug = True
__version__ = '0.1.3'
class RedditBot(bot.SimpleBot):
MSG_FORMAT = u'{shortlink} New post to /r/{subreddit} by {author}: {title}'
... | bsd-2-clause | -3,101,209,999,318,727,000 | 35.398773 | 79 | 0.537839 | false |
lucienfostier/gaffer | python/GafferTest/ArrayPlugTest.py | 7 | 17171 | ##########################################################################
#
# Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | bsd-3-clause | -2,321,613,042,768,154,600 | 31.3371 | 165 | 0.58558 | false |
mwmuni/LIGGGHTS_GUI | networkx/algorithms/connectivity/connectivity.py | 21 | 29325 | # -*- coding: utf-8 -*-
"""
Flow based connectivity algorithms
"""
from __future__ import division
import itertools
import networkx as nx
# Define the default maximum flow function to use in all flow based
# connectivity algorithms.
from networkx.algorithms.flow import edmonds_karp, shortest_augmenting_path
from netw... | gpl-3.0 | -6,581,907,839,444,734,000 | 36.073325 | 88 | 0.658721 | false |
hsarmiento/people_finder_chile | tests/test_main.py | 15 | 3414 | #!/usr/bin/python2.7
# encoding: utf-8
# Copyright 2010 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 ... | apache-2.0 | -3,671,082,563,253,596,000 | 38.241379 | 78 | 0.650557 | false |
debuti/checksystemcron | src/checks/dropboxCheck.py | 1 | 1281 | #!/usr/bin/env python
###############################################################################################
# Author:
_author = '<a href="mailto:debuti@gmail.com">Borja Garcia</a>'
# Program:
_name = 'dropboxCheck'
# Descrip:
_description = '''Check if there are errors or inconsistencies in dropbox'''
# V... | gpl-3.0 | 1,989,935,058,595,374,000 | 30.243902 | 101 | 0.583919 | 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.