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 |
|---|---|---|---|---|---|---|---|---|---|---|
abhidrona/gn-osc-custom | oscar/apps/wishlists/abstract_models.py | 5 | 4545 | import hashlib
import random
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse
from oscar.core.compat import AUTH_USER_MODEL
class AbstractWishList(models.Model):
"""
Represents a user's wish lists of products.
A user can h... | bsd-3-clause | 1,156,368,756,368,309,200 | 34.787402 | 115 | 0.60374 | false |
stevehof/CouchPotatoServer | couchpotato/core/media/movie/searcher.py | 5 | 17381 | from datetime import date
import random
import re
import time
import traceback
from couchpotato import get_db
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEvent, fireEventAsync
from couchpotato.core.helpers.encoding import simplifyString
from couchpotato.core.helpers.variable... | gpl-3.0 | -3,676,888,153,977,547,300 | 38.773455 | 250 | 0.540936 | false |
sourabhdattawad/BuildingMachineLearningSystemsWithPython | ch10/threshold.py | 24 | 1187 | # This code is supporting material for the book
# Building Machine Learning Systems with Python
# by Willi Richert and Luis Pedro Coelho
# published by PACKT Publishing
#
# It is made available under the MIT License
import numpy as np
import mahotas as mh
# Load our example image:
image = mh.imread('../SimpleImageDat... | mit | 9,102,124,804,402,839,000 | 33.911765 | 86 | 0.759899 | false |
seung-lab/Julimaps | src/archive/review/neuroglancer/roi_select.py | 2 | 3001 | import sys
from os.path import expanduser, join, isfile
import threading
from tornado import web, ioloop, httpserver
from sockjs.tornado import SockJSConnection, SockJSRouter
import json
from collections import OrderedDict
import numpy as np
clients = set()
n_messages = 0
def read_points(fn):
if isfile(fn):
... | mit | -8,480,919,320,542,387,000 | 28.135922 | 90 | 0.648117 | false |
ondrejkajinek/pyGrim | pygrim/components/config/yaml_config.py | 1 | 2427 | # coding: utf8
from __future__ import print_function
from .abstract_config import AbstractConfig
try:
from uwsgi import log as uwsgi_log
except ImportError:
uwsgi_log = print
from yaml import load as yaml_load, parser as yaml_parser
from yaml import SafeLoader, MappingNode
from yaml.constructor import Constru... | mit | -1,123,103,988,856,537,000 | 28.962963 | 73 | 0.552122 | false |
fogleman/xy | xy/drawing.py | 2 | 5284 | from shapely import geometry, ops
import cPickle as pickle
import math
import planner
import util
def shapely_paths(shape):
if hasattr(shape, 'coords'):
return [list(shape.coords)]
elif hasattr(shape, 'exterior'):
paths = []
paths.append(list(shape.exterior.coords))
for interior... | mit | -3,669,883,366,242,197,500 | 29.900585 | 78 | 0.549016 | false |
terracoin/terracoin | qa/rpc-tests/blockchain.py | 1 | 3880 | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test RPC calls related to blockchain state. Tests correspond to code in
# rpc/blockchain.cpp.
#
from... | mit | 8,258,459,189,932,558,000 | 33.642857 | 102 | 0.650773 | false |
boumenot/azure-linux-extensions | OSPatching/azure/storage/queueservice.py | 52 | 19818 | #-------------------------------------------------------------------------
# Copyright (c) Microsoft. 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.apac... | apache-2.0 | -8,556,447,390,257,501,000 | 42.270742 | 79 | 0.615097 | false |
ThibaultReuille/graphiti | Scripts/standard.py | 1 | 11573 | from Scripts import graphiti
from Scripts import nx
import re
import fnmatch
import json
import random
def vec2_to_str(v):
return str(v[0]) + " " + str(v[1])
def vec3_to_str(v):
return str(v[0]) + " " + str(v[1]) + " " + str(v[2])
def vec4_to_str(v):
return str(v[0]) + " " + str(v[1]) + " " + str(v[2]) + ... | bsd-2-clause | 698,332,109,435,509,900 | 33.443452 | 115 | 0.491057 | false |
fantuanmianshi/Daily | LeetCode/binary_tree_zigzag_level_order_traversal.py | 1 | 1312 | """
Given a binary tree, return the zigzag level order traversal of its nodes'
values. (ie, from left to right, then right to left for the next level and
alternate between).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ \
9 20
/ \
15 7
return its zigzag level order traversal as:
[
[3],
... | mit | 6,709,004,252,778,821,000 | 22.854545 | 74 | 0.505335 | false |
Ziqi-Li/bknqgis | pandas/pandas/tests/indexing/test_datetime.py | 4 | 8827 | import numpy as np
import pandas as pd
from pandas import date_range, Index, DataFrame, Series, Timestamp
from pandas.util import testing as tm
class TestDatetimeIndex(object):
def test_setitem_with_datetime_tz(self):
# 16889
# support .loc with alignment and tz-aware DatetimeIndex
mask =... | gpl-2.0 | -7,010,948,482,511,775,000 | 34.027778 | 79 | 0.529738 | false |
jjhuff/fcc-comments | lib/nltk/tokenize/texttiling.py | 5 | 16782 | # Natural Language Toolkit: TextTiling
#
# Copyright (C) 2001-2012 NLTK Project
# Author: George Boutsioukis
#
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
import re
import math
import numpy
from nltk.tokenize.api import TokenizerI
BLOCK_COMPARISON, VOCABULARY_INTRODUCTION = range(2)
LC, ... | apache-2.0 | -4,244,034,159,465,340,400 | 35.802632 | 101 | 0.554821 | false |
wileeam/airflow | airflow/providers/email/operators/email.py | 4 | 2941 | #
# 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... | apache-2.0 | 2,045,310,632,522,141,700 | 36.705128 | 82 | 0.657599 | false |
s-gv/rnicu-webapp | stream-plot/src/galry/galrywidget.py | 2 | 35392 | import sys
import os
import re
import time
import timeit
import numpy as np
import numpy.random as rdn
from .qtools.qtpy import QtCore, QtGui
from .qtools.qtpy.QtCore import Qt, pyqtSignal
from galry import DEBUG, log_debug, log_info, log_warn
try:
from .qtools.qtpy.QtOpenGL import QGLWidget, QGLFormat
except Excep... | agpl-3.0 | -6,336,567,648,780,919,000 | 35.077472 | 89 | 0.567868 | false |
edmundgentle/schoolscript | SchoolScript/bin/Debug/pythonlib/Lib/lib2to3/fixes/fix_callable.py | 5 | 1188 | # Copyright 2007 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Fixer for callable().
This converts callable(obj) into isinstance(obj, collections.Callable), adding a
collections import if needed."""
# Local imports
from lib2to3 import fixer_base
from lib2to3.fixer_ut... | gpl-2.0 | -7,807,694,230,461,200,000 | 30.108108 | 80 | 0.594276 | false |
wradlib/wradlib | wradlib/classify.py | 1 | 6293 | #!/usr/bin/env python
# Copyright (c) 2011-2020, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.
"""
Hydrometeor Classification (HMC)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autosummary::
:nosignatures:
:toctree: generated/
{}
"""
__all__ = ["msf_index_indep", "trapezoid... | mit | -8,411,251,589,499,235,000 | 30 | 88 | 0.598919 | false |
tsdmgz/ansible | lib/ansible/modules/windows/win_mapped_drive.py | 32 | 2613 | #!/usr/bin/python
# This file is part of Ansible
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# this is a windows documentation stub, actual code lives in the .ps1
# file of the same name
ANSIBLE_METADATA = {'metadata_version': '1.1... | gpl-3.0 | -7,078,713,416,485,221,000 | 27.714286 | 92 | 0.688481 | false |
caperren/Archives | OSU Coursework/CS 325 - Analysis of Algorithms/Julie Schuffort - Passed/Homework 4/activity_selection.py | 1 | 1847 | INPUT_FILE = "act.txt"
def greedy_activity_selector(activity_set):
activity_num_index = 0
activity_start_index = 1
activity_finish_index = 2
activity_set.sort(key=lambda activity: activity[activity_start_index], reverse=True)
selections = [activity_set[0][activity_num_index]]
comparison_acti... | gpl-3.0 | 4,268,224,369,963,673,000 | 30.844828 | 115 | 0.628045 | false |
googleapis/googleapis-gen | google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/errors/types/resource_count_limit_exceeded_error.py | 1 | 1499 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 3,110,499,643,458,912,000 | 29.591837 | 74 | 0.676451 | false |
csparkresearch/ExpEYES17-Qt | SPARK17/expeyes/eyemath17.py | 1 | 5663 | # -*- coding: utf-8; mode: python; indent-tabs-mode: t; tab-width:4 -*-
'''
expEYES data analysis library using numpy and scipy
Author : Ajith Kumar B.P, bpajith@gmail.com
License : GNU GPL version 3
'''
import sys, time, math
from numpy import *
import numpy.fft
from scipy import optimize
from scipy.optimize import... | mit | -2,234,818,711,183,544,800 | 25.586854 | 91 | 0.53876 | false |
nmenon/openocd | contrib/loaders/flash/fpga/xilinx_bscan_spi.py | 13 | 20095 | #!/usr/bin/python3
#
# Copyright (C) 2015 Robert Jordens <jordens@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any lat... | gpl-2.0 | -105,511,294,715,871,400 | 40.777547 | 83 | 0.523762 | false |
bsmrstu-warriors/Moytri---The-Drone-Aider | Lib/site-packages/scipy/signal/signaltools.py | 55 | 41609 | # Author: Travis Oliphant
# 1999 -- 2002
import warnings
import sigtools
from scipy import linalg
from scipy.fftpack import fft, ifft, ifftshift, fft2, ifft2, fftn, \
ifftn, fftfreq
from numpy import polyadd, polymul, polydiv, polysub, roots, \
poly, polyval, polyder, cast, asarray, isscalar, atleast_... | gpl-3.0 | 3,102,251,955,034,431,000 | 29.527513 | 84 | 0.536615 | false |
pudo/extractors | extractors/tesseract.py | 1 | 2334 | import os
import logging
import subprocess
try:
from cStringIO import StringIO
except:
from StringIO import StringIO
from PIL import Image
from tesserwrap import Tesseract, PageSegMode
from extractors.constants import _get_languages
from extractors.cache import set_cache, get_cache
# https://tesserwrap.readt... | mit | -5,880,061,146,086,956,000 | 31.873239 | 78 | 0.680805 | false |
flavour/tldrmp | modules/savage/graph/base.py | 24 | 22588 | from axes import XAxis, YAxis
from ..graphics import Canvas, PrintableCanvas
from ..graphics.group import Group, Grouping
from ..graphics.shapes import Line, Rectangle, Text
from ..graphics.utils import ViewBox, Translate, Rotate, addAttr, blank, boolean
from ..graphics.color import hex_to_color, Color
from ..utils.s... | mit | 4,909,359,883,749,387,000 | 33.750769 | 120 | 0.552816 | false |
merbla/splunk-octopusdeploy-add-on | docs/conf.py | 1 | 10019 | # -*- coding: utf-8 -*-
#
# splunk-octopusdeploy-add-on documentation build configuration file, created by
# sphinx-quickstart on Mon Nov 14 15:37:49 2016.
#
# 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
# autog... | apache-2.0 | 5,700,241,391,731,847,000 | 28.642012 | 97 | 0.695279 | false |
fifengine/fifengine | engine/python/fife/extensions/pychan/widgets/curvegraph.py | 1 | 5769 | # -*- coding: utf-8 -*-
# ####################################################################
# Copyright (C) 2005-2013 by the FIFE team
# http://www.fifengine.net
# This file is part of FIFE.
#
# FIFE is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#... | lgpl-2.1 | -6,652,644,385,663,274,000 | 30.183784 | 94 | 0.659906 | false |
darkdarkfruit/adaptpath | adaptpath/__init__.py | 1 | 1147 | #!/usr/bin/env python
# coding: utf-8
#
""" module docstring: module description title
module description details.
"""
# -------------- import starts -------------------------
# import standard libs here. (eg: import sys)
# import 3rd libs here
# import app modules here
# -------------- import ends -------------... | mit | 8,048,216,411,866,563,000 | 18.440678 | 86 | 0.530078 | false |
Wuguanping/Server_Manage_Plugin | Openstack_Plugin/ironic-plugin-pike/ironic/tests/unit/conf/test_auth.py | 4 | 2394 | # Copyright 2016 Mirantis Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | apache-2.0 | 1,052,685,409,039,936,100 | 42.527273 | 78 | 0.646199 | false |
ramcn/demo3 | venv/lib/python3.4/site-packages/rest_framework/compat.py | 8 | 8476 | """
The `compat` module provides support for backwards compatibility with older
versions of django/python, and compatibility wrappers around optional packages.
"""
# flake8: noqa
from __future__ import unicode_literals
from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
from django... | mit | -3,585,844,919,021,832,700 | 32.634921 | 107 | 0.686409 | false |
GeorgiaTechMSSE/ReliableMD | tools/moltemplate/src/extract_lammps_data.py | 30 | 4357 | #!/usr/bin/env python
lammps_data_sections = set(['Atoms',
'Masses',
'Bonds',
'Bond Coeffs',
'Angles',
'Angle Coeffs',
'Dihedrals',
... | gpl-3.0 | -5,620,557,950,438,320,000 | 35.613445 | 80 | 0.471655 | false |
JoaquimPatriarca/senpy-for-gis | gasp/gdal/manage/sampling.py | 1 | 8280 | """
Sampling tools using OGR Library
"""
from osgeo import ogr
def create_fishnet(boundary, width, height, fishnet):
"""
Create a Fishnet
"""
import os
from math import ceil
from gasp.oss.info import get_filename
from gasp.gdal import get_driver_name
from gasp.gdal ... | gpl-3.0 | 6,152,986,095,810,671,000 | 29.666667 | 131 | 0.543599 | false |
molobrakos/home-assistant | homeassistant/components/automation/numeric_state.py | 9 | 3263 | """Offer numeric state listening automation rules."""
import logging
import voluptuous as vol
from homeassistant.core import callback
from homeassistant.const import (
CONF_VALUE_TEMPLATE, CONF_PLATFORM, CONF_ENTITY_ID,
CONF_BELOW, CONF_ABOVE, CONF_FOR)
from homeassistant.helpers.event import (
async_trac... | apache-2.0 | 1,879,342,320,696,157,000 | 32.295918 | 75 | 0.591174 | false |
codesparkle/youtube-dl | youtube_dl/extractor/openload.py | 3 | 3273 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_chr
from ..utils import (
determine_ext,
ExtractorError,
)
class OpenloadIE(InfoExtractor):
_VALID_URL = r'https?://(?:openload\.(?:co|io)|oload\.tv)/(?:f|embed)/(?P<id>[a-zA-Z0-9-_]+)'
... | unlicense | -2,906,746,810,198,169,000 | 32.397959 | 97 | 0.505041 | false |
citrix-openstack/build-trove | trove/openstack/common/rpc/common.py | 2 | 18526 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright 2011 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not... | apache-2.0 | -7,837,677,119,063,926,000 | 35.396857 | 79 | 0.645255 | false |
Ultimaker/Cura | plugins/GCodeReader/FlavorParser.py | 1 | 24193 | # Copyright (c) 2020 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import math
import re
from typing import Dict, List, NamedTuple, Optional, Union, Set
import numpy
from UM.Backend import Backend
from UM.Job import Job
from UM.Logger import Logger
from UM.Math.Vector import Vector
from ... | lgpl-3.0 | -5,826,409,045,949,713,000 | 46.437255 | 194 | 0.585872 | false |
oandrew/home-assistant | homeassistant/components/light/isy994.py | 5 | 2451 | """
Support for ISY994 lights.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/light.isy994/
"""
import logging
from typing import Callable
from homeassistant.components.light import (
Light, SUPPORT_BRIGHTNESS, ATTR_BRIGHTNESS)
import homeassistant.... | mit | 5,319,049,848,745,298,000 | 29.6375 | 78 | 0.640963 | false |
agileblaze/OpenStackTwoFactorAuthentication | horizon/openstack_dashboard/dashboards/project/access_and_security/keypairs/forms.py | 23 | 2663 | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the... | apache-2.0 | 6,443,140,659,908,157,000 | 37.042857 | 78 | 0.608336 | false |
birm/Elemental | examples/interface/DS.py | 1 | 2769 | #
# Copyright (c) 2009-2015, Jack Poulson
# All rights reserved.
#
# This file is part of Elemental and is under the BSD 2-Clause License,
# which can be found in the LICENSE file in the root directory, or at
# http://opensource.org/licenses/BSD-2-Clause
#
import El
n0 = 25
n1 = 25
numLambdas = 5
startLambda = ... | bsd-3-clause | 8,293,348,861,478,620,000 | 25.625 | 73 | 0.620802 | false |
koala-ai/tensorflow_nlp | nlp/textsum/predict.py | 1 | 2416 | # -*- coding:utf-8 -*-
import os
import codecs
import numpy as np
from six.moves import xrange
import tensorflow as tf
from nlp.textsum import model as seq2seq_model
from nlp.textsum.dataset import data_utils, dataset
def generate_summary(args):
sentences = []
summaries = []
input_file = codecs.open(... | apache-2.0 | -5,901,662,550,133,504,000 | 36.765625 | 115 | 0.598924 | false |
fedora-infra/pkgdb2 | pkgdb2/lib/model/__init__.py | 1 | 73190 | # -*- coding: utf-8 -*-
#
# Copyright © 2013-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 option) any later
# version. This program is distributed... | gpl-2.0 | -7,781,255,379,381,222,000 | 31.499556 | 82 | 0.57868 | false |
gdhungana/desispec | py/desispec/brick.py | 2 | 5057 | """
desispec.brick
==============
Code for calculating bricks, which are a tiling of the sky with the following
properties:
- bricks form rows in dec like a brick wall; edges are constant RA or dec
- they are rectangular with longest edge shorter or equal to bricksize
- circles at the poles with diameter=bricksize
- ... | bsd-3-clause | -6,347,747,486,980,550,000 | 32.713333 | 117 | 0.556456 | false |
jszopi/repESP | tests/test_calc_field.py | 1 | 5401 | from repESP.calc_fields import esp_from_charges, voronoi, calc_rms_error, calc_relative_rms_error
from repESP.charges import *
from repESP.esp_util import parse_gaussian_esp
from repESP.fields import *
from repESP.types import *
from repESP.gaussian_format import get_charges_from_log, MkChargeSectionParser
from my_uni... | gpl-3.0 | 1,535,987,271,763,700,700 | 29.514124 | 101 | 0.535827 | false |
borchert/metadata-tracking | scripts/decipher_arcgis_server_url_mgc.py | 1 | 1852 | <<<<<<< HEAD
import arcpy
path_to_lyr = ""
group_lyr = arcpy.mapping.Layer(path_to_lyr)
for index, i in enumerate(arcpy.mapping.ListLayers(group_lyr)):
if i.visible:
print index-1, i.longName
=======
print "importing arcpy"
import arcpy
print "done importing arcpy"
import os
import shutil
import zipfil... | gpl-2.0 | 1,741,071,960,235,151,000 | 38.404255 | 127 | 0.602052 | false |
Lujeni/ansible | lib/ansible/parsing/yaml/objects.py | 31 | 4272 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | gpl-3.0 | 5,833,911,417,925,662,000 | 30.182482 | 125 | 0.659878 | false |
SergeyMakarenko/fbthrift | thrift/test/py.asyncio/test_suite_asyncio.py | 2 | 8838 | #!/usr/bin/env python3
import asyncio
import functools
import logging
import time
import unittest
from ThriftTest import ThriftTest
from ThriftTest.ttypes import Xception, Xtruct
from thrift.server.TAsyncioServer import (
ThriftClientProtocolFactory,
ThriftAsyncServerFactory,
)
from thrift.transport.THeaderTr... | apache-2.0 | -2,144,875,494,225,995,000 | 26.880126 | 74 | 0.618126 | false |
prashantpawar/supybot-rothbot | plugins/Unix/test.py | 15 | 3038 | ###
# Copyright (c) 2002-2005, Jeremiah Fincher
# 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 co... | bsd-3-clause | 7,836,869,204,612,315,000 | 43.676471 | 79 | 0.678407 | false |
joelpx/reverse | plasma/lib/arch/arm/process_ast.py | 4 | 3981 | #!/usr/bin/env python3
#
# PLASMA : Generate an indented asm code (pseudo-C) with colored syntax.
# Copyright (C) 2015 Joel
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 ... | gpl-3.0 | 7,938,188,517,390,258,000 | 35.190909 | 73 | 0.56845 | false |
googledatalab/datalab | tools/cli/commands/delete.py | 2 | 3961 | # Copyright 2016 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 by applicable law or agre... | apache-2.0 | 5,583,663,357,053,489,000 | 31.467213 | 79 | 0.6718 | false |
bitmovin/bitmovin-python | examples/encoding/create_encoding_dash_cenc_hls_fairplay.py | 1 | 27209 | import datetime
from bitmovin import Bitmovin, Encoding, S3Output, H264CodecConfiguration, \
AACCodecConfiguration, H264Profile, StreamInput, SelectionMode, Stream, EncodingOutput, ACLEntry, ACLPermission, \
FMP4Muxing, MuxingStream, DashManifest, DRMFMP4Representation, FMP4RepresentationType, Period, \
Vid... | unlicense | -1,757,390,193,045,422,300 | 59.870246 | 119 | 0.482818 | false |
GiggleLiu/poorman_nn | poornn/spconv.py | 1 | 16879 | '''
Convolution using sparse matrix.
'''
from __future__ import division
import numpy as np
import pdb
import time
from scipy import sparse as sps
from .lib.spconv import lib as fspconv
from .lib.spconv_cc import lib as fspconv_cc
from .utils import scan2csc, tuple_prod, spscan2csc,\
masked_concatenate, dtype2tok... | mit | -5,701,644,049,804,180,000 | 38.99763 | 122 | 0.532792 | false |
endolith/scipy | scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py | 12 | 24893 | import time
import numpy as np
from scipy.sparse.linalg import LinearOperator
from .._differentiable_functions import VectorFunction
from .._constraints import (
NonlinearConstraint, LinearConstraint, PreparedConstraint, strict_bounds)
from .._hessian_update_strategy import BFGS
from ..optimize import OptimizeResul... | bsd-3-clause | -481,272,644,859,089,400 | 44.675229 | 86 | 0.59571 | false |
schenc3/InteractiveROSETTA | InteractiveROSETTA/scripts/biotools.py | 1 | 36895 | ### AUTHOR: Evan H. Baugh
### Affiliation: New York University
import wx
import wx.grid
import wx.lib.scrolledpanel
import os
import os.path
import time
import platform
import multiprocessing
import Bio.PDB
import webbrowser
import datetime
from threading import Thread
from tools import *
from io_tools import *
class... | gpl-2.0 | 8,341,332,279,122,857,000 | 51.935438 | 310 | 0.546958 | false |
cypsun/FreeCAD | src/Mod/Arch/ArchSectionPlane.py | 8 | 25673 | #***************************************************************************
#* *
#* Copyright (c) 2011 *
#* Yorik van Havre <yorik@uncreated.net> *
#* ... | lgpl-2.1 | 2,914,885,388,243,609,600 | 49.044834 | 200 | 0.496358 | false |
novapost/insight-reloaded | insight_reloaded/tests/test_api.py | 1 | 2660 | # -*- coding: utf-8 -*-
import json
import redis
from tornado.testing import AsyncHTTPTestCase
from insight_reloaded.api import application
from insight_reloaded import __version__ as VERSION
from insight_reloaded.insight_settings import (
REDIS_HOST, REDIS_PORT, REDIS_DB, DEFAULT_REDIS_QUEUE_KEY
)
from tornad... | bsd-3-clause | 2,022,860,773,039,093,500 | 33.545455 | 76 | 0.580075 | false |
orione7/Italorione | servers/filebox.py | 9 | 3689 | # -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Conector para filebox
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os
from core impo... | gpl-3.0 | 4,726,176,458,500,455,000 | 38.212766 | 200 | 0.614759 | false |
drmrd/ansible | test/units/modules/network/dellos10/test_dellos10_facts.py | 42 | 4746 | # (c) 2016 Red Hat Inc.
#
# (c) 2017 Dell EMC.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later vers... | gpl-3.0 | 5,236,351,527,136,101,000 | 42.145455 | 116 | 0.654657 | false |
hortonworks/hortonworks-sandbox | desktop/core/ext-py/Twisted/doc/core/examples/row_util.py | 20 | 3261 | from twisted.enterprise import row
##################################################
########## Definitions of Row Classes ############
##################################################
class KeyFactory:
"""This is a lame, but simple way to generate keys.
For real code, use the database instead."""
... | apache-2.0 | 4,142,719,729,510,860,000 | 30.660194 | 115 | 0.482981 | false |
wtanaka/google-app-engine-django-openid | src/openid/yadis/discover.py | 10 | 4423 | # -*- test-case-name: openid.test.test_yadis_discover -*-
__all__ = ['discover', 'DiscoveryResult', 'DiscoveryFailure']
from cStringIO import StringIO
from openid import fetchers
from openid.yadis.constants import \
YADIS_HEADER_NAME, YADIS_CONTENT_TYPE, YADIS_ACCEPT_HEADER
from openid.yadis.parsehtml import Me... | gpl-3.0 | 6,306,477,015,103,625,000 | 31.762963 | 78 | 0.647976 | false |
JeremyAgost/gemrb | gemrb/GUIScripts/bg2/ImportFile.py | 2 | 2502 | # GemRB - Infinity Engine Emulator
# Copyright (C) 2003 The GemRB Project
#
# 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 versi... | gpl-2.0 | -2,963,437,594,236,049,400 | 31.921053 | 81 | 0.776179 | false |
m-g-90/cpyjava | setup.py | 1 | 3689 | from distutils.core import setup, Extension
from distutils.spawn import find_executable
from distutils.util import get_platform
import os
try:
import pip
deps = ""
for dep in deps.split(' '):
try:
if len(dep)>0:
pip.main(['install', '--user', dep])
except:
... | lgpl-3.0 | -4,174,608,035,547,583,000 | 31.9375 | 195 | 0.568447 | false |
danny200309/anaconda | anaconda_lib/autopep/autopep8_lib/lib2to3/pgen2/tokenize.py | 67 | 19169 | # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation.
# All rights reserved.
"""Tokenization help for Python programs.
generate_tokens(readline) is a generator that breaks a stream of
text into Python tokens. It accepts a readline-like method which is called
repeatedly to get the next line o... | gpl-3.0 | -5,711,389,601,434,276,000 | 37.338 | 87 | 0.522771 | false |
koorukuroo/networkx_for_unicode | networkx/algorithms/operators/unary.py | 11 | 1748 | """Unary operations on graphs"""
# Copyright (C) 2004-2013 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import networkx as nx
__author__ = """\n""".join(['Aric Hagberg <aric.hagberg@gmail.com>',
... | bsd-3-clause | 4,400,587,694,061,278,000 | 24.705882 | 74 | 0.556636 | false |
pombredanne/cpe | cpe/comp/cpecomp.py | 2 | 10392 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of cpe package.
This module allows to store the value of the components of a CPE Name and
compare it with others.
Copyright (C) 2013 Alejandro Galindo García, Roberto Abdelkader Martínez Pérez
This program is free software: you can redistribute it... | lgpl-3.0 | -875,874,535,469,048,000 | 32.182109 | 79 | 0.59378 | false |
nagyistoce/koalacloud | boto/ec2/instanceinfo.py | 42 | 1912 | # Copyright (c) 2006-2008 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modi... | apache-2.0 | -6,542,789,492,319,992,000 | 36.490196 | 74 | 0.680439 | false |
splantefeve/systemd | src/test/test-systemd-tmpfiles.py | 21 | 5410 | #!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-2.1+
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
impor... | gpl-2.0 | 1,773,790,200,876,041,500 | 36.832168 | 92 | 0.569131 | false |
oliverlee/sympy | sympy/diffgeom/tests/test_hyperbolic_space.py | 32 | 2582 | '''
unit test describing the hyperbolic half-plane with the Poincare metric. This
is a basic model of hyperbolic geometry on the (positive) half-space
{(x,y) \in R^2 | y > 0}
with the Riemannian metric
ds^2 = (dx^2 + dy^2)/y^2
It has constant negative scalar curvature = -2
https://en.wikipedia.org/wiki/Poincare_ha... | bsd-3-clause | 4,924,178,747,862,059,000 | 27.373626 | 85 | 0.538342 | false |
lichengshuang/python | others/163music/config.py | 1 | 2295 | VERSION = "1.0.0"
SESSION_EN = True # 开启session回话请求模式
CELLPHONE_LOGIN_PARAM = {
"phone":"",
"password":"",
"rememberLogin":True
}
DISCOVER = ["playlist", "toplist", "artist", "album"]
DISCOVER_INFO = {
"playlist":{},
"toplist":{},
"artist":{
"top":{
"url... | apache-2.0 | -7,869,895,987,362,727,000 | 27.226667 | 135 | 0.53897 | false |
skirsdeda/cmsplugin-filer | cmsplugin_filer_file/migrations/0004_fix_table_names.py | 10 | 9724 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from cmsplugin_filer_utils.migration import rename_tables_new_to_old, rename_tables_old_to_new
class Migration(SchemaMigration):
cms_plugin_table_ma... | bsd-3-clause | 4,347,537,131,040,272,400 | 76.792 | 195 | 0.559955 | false |
q1ang/seaborn | seaborn/algorithms.py | 35 | 6889 | """Algorithms to support fitting routines in seaborn plotting functions."""
from __future__ import division
import numpy as np
from scipy import stats
from .external.six.moves import range
def bootstrap(*args, **kwargs):
"""Resample one or more arrays with replacement and store aggregate values.
Positional a... | bsd-3-clause | -4,729,349,026,308,521,000 | 32.769608 | 79 | 0.590361 | false |
ValentmSTEM/gps_v2 | tornado/test/import_test.py | 9 | 1720 | import unittest
class ImportTest(unittest.TestCase):
def test_import_everything(self):
# Some of our modules are not otherwise tested. Import them
# all (unless they have external dependencies) here to at
# least ensure that there are no syntax errors.
import tornado.auth
i... | mit | -7,956,158,265,615,655,000 | 29.175439 | 73 | 0.623256 | false |
ronaldahmed/robot-navigation | neural-navigation-with-lstm/MARCO/Sense.py | 2 | 26222 | #!/usr/bin/env python
import os, string
from nltk.probability import ConditionalFreqDist
from nltk.tagger import BackoffTagger,DefaultTagger,UnigramTagger,tagger_accuracy
#,TaggerI,SequentialTagger,NthOrderTagger,RegexpTagger
from nltk.tagger.brill import BrillTagger, FastBrillTaggerTrainer
from nltk.tagger.brill impo... | mit | 3,730,315,939,619,735,600 | 39.844237 | 115 | 0.590992 | false |
sajuptpm/murano | murano/api/v1/actions.py | 1 | 3059 | # Copyright (c) 2014 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | 5,078,734,744,131,354,000 | 35.416667 | 79 | 0.645636 | false |
ceakki/ddns-server | dns/mysql.py | 1 | 2003 | __author__ = 'cristian'
import MySQLdb
import MySQLdb.cursors
class MySql:
_host = ''
_user = ''
_password = ''
_database = ''
_con = None
error = ''
last_id = 0
num_rows = 0
def __init__(self, mysql_host, mysql_user, mysql_pass, mysql_db):
self._host = mysql_host
... | mit | 3,517,876,505,594,465,300 | 23.439024 | 89 | 0.458313 | false |
rlefevre1/hpp-rbprm-corba | script/tests/robot_jumpEasy_path.py | 2 | 2903 | from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from hpp.gepetto import Viewer
white=[1.0,1.0,1.0,1.0]
green=[0.23,0.75,0.2,0.5]
yellow=[0.85,0.75,0.15,1]
pink=[1,0.6,1,1]
orange=[1,0.42,0,1]
brown=[0.85,0.75,0.15,0.5]
blue = [0.0, 0.0, 0.8, 1.0]
grey = [0.7,0.7,0.7,1.0]
red = [0.8,0.0,0.0,1.0]
rootJointType = ... | lgpl-3.0 | -3,690,715,483,265,578,500 | 27.742574 | 140 | 0.720978 | false |
riverma/climate | ocw-ui/backend/tests/test_processing.py | 5 | 12972 | # 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 | 4,547,437,981,451,303,000 | 38.190332 | 91 | 0.562519 | false |
Microsoft/PTVS | Python/Product/Miniconda/Miniconda3-x64/Lib/site-packages/win32comext/axscript/test/testHost.py | 10 | 7524 | import sys
import pythoncom
from win32com.axscript.server.error import Exception
from win32com.axscript import axscript
from win32com.axscript.server import axsite
from win32com.server import util, connect
import win32com.server.policy
from win32com.client.dynamic import Dispatch
from win32com.server.exception import C... | apache-2.0 | -1,928,957,304,268,795,400 | 32.145374 | 109 | 0.683413 | false |
xodus7/tensorflow | tensorflow/contrib/gan/python/eval/python/sliced_wasserstein.py | 43 | 1211 | # 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 | 51,862,381,028,747,340 | 42.25 | 80 | 0.71924 | false |
wiki-ai/ores | tests/scoring_systems/tests/test_celery_queue.py | 2 | 3337 | import celery
from revscoring.extractors import OfflineExtractor
from ores.score_request import ScoreRequest
from ores.scoring.models import RevIdScorer
from ores.scoring_context import ScoringContext
from ores.scoring_systems.celery_queue import CeleryQueue
from ores.task_tracker import InMemoryTaskTracker
from .uti... | mit | 36,190,594,075,345,100 | 34.88172 | 106 | 0.64579 | false |
jounex/hue | apps/search/src/search/search_controller.py | 8 | 4390 | #!/usr/bin/env python
# -- coding: utf-8 --
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (th... | apache-2.0 | 51,740,912,046,425,190 | 31.043796 | 128 | 0.669248 | false |
strahlc/exaile | xlgui/widgets/playback.py | 2 | 49901 | # Copyright (C) 2008-2010 Adam Olsen
#
# 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, or (at your option)
# any later version.
#
# This program is distributed in the hope that... | gpl-2.0 | -8,296,390,029,054,638,000 | 31.679109 | 106 | 0.551933 | false |
cboling/SDNdbg | docs/old-stuff/pydzcvr/doc/neutronclient/neutron/v2_0/vpn/ipsec_site_connection.py | 1 | 7010 | # (c) Copyright 2013 Hewlett-Packard Development Company, L.P.
# 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... | apache-2.0 | -289,869,664,630,373,570 | 36.688172 | 79 | 0.59786 | false |
danbob123/ta | ta.py | 2 | 8802 | # -*- coding: utf-8 -*-
from __future__ import division
from functools import wraps
import numpy as np
from pandas import DataFrame, Series
from pandas.stats import moments
def series_indicator(col):
def inner_series_indicator(f):
@wraps(f)
def wrapper(s, *args, **kwargs):
if isinst... | mit | 5,374,225,152,968,924,000 | 24.365994 | 78 | 0.541241 | false |
TuSimple/mxnet | example/bi-lstm-sort/rnn_model.py | 19 | 2920 | # 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 | 6,278,898,827,945,955,000 | 39 | 114 | 0.594178 | false |
rosswhitfield/mantid | Framework/PythonInterface/test/python/plugins/algorithms/LoadWANDSCDTest.py | 3 | 2825 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
from... | gpl-3.0 | -1,543,049,708,522,734,000 | 40.544118 | 105 | 0.664425 | false |
lkundrak/scraperwiki | web/codewiki/migrations/0013_auto__add_codepermission.py | 1 | 13483 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'CodePermission'
db.create_table('codewiki_codepermission', (
('id', self.gf('d... | agpl-3.0 | -6,763,019,195,457,940,000 | 74.747191 | 182 | 0.552844 | false |
denizs/swampdragon | tests/test_model_serializer_deserialize.py | 3 | 2539 | from swampdragon.serializers.model_serializer import ModelSerializer
from swampdragon.testing.dragon_testcase import DragonTestCase
from .models import TextModel, SDModel
from datetime import datetime
from django.db import models
# to make sure none of the ModelSerializer variables are clobbering the data
MODEL_KEYWO... | bsd-3-clause | -6,294,718,001,304,070,000 | 30.7375 | 103 | 0.669949 | false |
highweb-project/highweb-webcl-html5spec | native_client_sdk/src/build_tools/test_projects.py | 37 | 12488 | #!/usr/bin/env python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import os
import subprocess
import sys
import time
import build_projects
import build_version
import buildbot_comm... | bsd-3-clause | 109,101,123,472,828,430 | 31.185567 | 80 | 0.664958 | false |
rleigh-dundee/openmicroscopy | components/tools/OmeroWeb/omeroweb/webclient/controller/basket.py | 4 | 1856 | #!/usr/bin/env python
#
#
#
# Copyright (c) 2008-2011 University of Dundee.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) an... | gpl-2.0 | 1,066,365,171,015,853,400 | 31.017241 | 85 | 0.678879 | false |
bixbydev/Bixby | google/gdata/marketplace/client.py | 48 | 6497 | #!/usr/bin/python
#
# Copyright 2009 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 by ... | gpl-3.0 | 581,474,232,804,723,500 | 39.60625 | 117 | 0.709866 | false |
jzbontar/orange-tree | Orange/widgets/visualize/owmosaic.py | 1 | 55141 | import os
import sys
from collections import defaultdict
from functools import reduce
from itertools import product
from math import sqrt
import numpy
from PyQt4.QtCore import QPoint, Qt, QRectF
from PyQt4.QtGui import (QGraphicsRectItem, QGraphicsView, QColor,
QGraphicsScene, QPainter, QIcon,... | gpl-3.0 | 4,299,228,967,826,711,600 | 44.049837 | 265 | 0.568615 | false |
nitzmahone/ansible | lib/ansible/modules/cloud/docker/docker_swarm.py | 5 | 18524 | #!/usr/bin/python
# Copyright 2016 Red Hat | Ansible
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['previe... | gpl-3.0 | -3,565,024,230,800,380,400 | 34.418738 | 138 | 0.60149 | false |
AlexMooney/pairsTournament | strategies/brianStrategies.py | 1 | 4218 | from __future__ import division
from math import ceil
from copy import copy
import numpy
class FoldLowWithHigh:
def __init__(self, fold, hand):
''' Strategy that folds when 'fold' is available if 'hand' or higher is in hand'''
self.fold = fold
self.hand = hand
def play(self, info):
... | mit | -3,768,044,802,287,331,300 | 31.198473 | 235 | 0.537459 | false |
ChristineLaMuse/mozillians | vendor-local/lib/python/rest_framework/utils/formatting.py | 18 | 1955 | """
Utility functions to return a formatted name and description for a given view.
"""
from __future__ import unicode_literals
from django.utils.html import escape
from django.utils.safestring import mark_safe
from rest_framework.compat import apply_markdown
from rest_framework.settings import api_settings
from textwr... | bsd-3-clause | -1,574,175,183,076,498,700 | 31.583333 | 83 | 0.672634 | false |
krvss/django-social-auth | social_auth/backends/amazon.py | 2 | 2835 | import base64
from urllib2 import Request, HTTPError
from urllib import urlencode
from django.utils import simplejson
from social_auth.backends import BaseOAuth2, OAuthBackend
from social_auth.utils import dsa_urlopen
from social_auth.exceptions import AuthTokenError
class AmazonBackend(OAuthBackend):
"""Amazon... | bsd-3-clause | -2,360,941,574,021,773,300 | 31.215909 | 78 | 0.573898 | false |
the-zebulan/CodeWars | tests/kyu_8_tests/test_is_your_period_late.py | 1 | 1475 | import unittest
from datetime import date
from katas.kyu_8.is_your_period_late import period_is_late
class PeriodIsLateTestCase(unittest.TestCase):
def test_true_1(self):
self.assertTrue(period_is_late(
date(2016, 6, 13), date(2016, 7, 16), 28
))
def test_true_2(self):
se... | mit | 3,006,762,715,689,809,000 | 25.339286 | 58 | 0.534915 | false |
tkcroat/Augerquant | Development/Auger_under_development.py | 1 | 20665 | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 6 10:16:40 2016
@author: tkc
"""
#%% Load modules
import matplotlib.pyplot as plt
import re, os, glob, sys, csv # already run with functions
import pandas as pd
import numpy as np
import scipy
import scipy.stats
from matplotlib.backends.backend_pdf import P... | mit | 6,603,829,211,800,989,000 | 52.381579 | 190 | 0.664312 | false |
ChristosChristofidis/h2o-3 | h2o-py/tests/testdir_algos/kmeans/pyunit_parametersKmeans.py | 1 | 1034 | import sys
sys.path.insert(1, "../../../")
import h2o
def parametersKmeans(ip,port):
# Connect to a pre-existing cluster
h2o.init(ip,port) # connect to localhost:54321
#Log.info("Getting data...")
iris = h2o.import_frame(path=h2o.locate("smalldata/iris/iris.csv"))
#Log.info("Create and and dupli... | apache-2.0 | -588,064,947,878,889,500 | 31.3125 | 74 | 0.636364 | false |
tripzero/snetcam | snetcam/imageresource.py | 1 | 3821 | import cv2
import numpy as np
import json
import base64
from collections import deque
import trollius as asyncio
import sys, os, traceback
from multiprocessing import Process, Queue, Pool
is_py2 = sys.version[0] == '2'
if is_py2:
from Queue import Empty
else:
from queue import Empty
def MINS(mins):
return m... | lgpl-2.1 | 8,368,115,691,261,882,000 | 23.183544 | 91 | 0.676786 | false |
trondhindenes/ansible | lib/ansible/modules/network/avi/avi_cloud.py | 20 | 10708 | #!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | gpl-3.0 | -7,858,649,419,432,722,000 | 37.65704 | 159 | 0.624113 | false |
robinparadise/videoquizmaker | public/external/html5-lint.orig/html5check.py | 1 | 5799 | #!/usr/bin/python
# Copyright (c) 2007-2008 Mozilla 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 limitation
# the rights to use, cop... | mit | 6,954,196,385,093,068,000 | 27.150485 | 95 | 0.6796 | 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.