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 |
|---|---|---|---|---|---|---|---|---|---|---|
maas/maas | src/metadataserver/builtin_scripts/tests/test_builtin_scripts.py | 1 | 7811 | # Copyright 2017 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
import copy
from datetime import timedelta
import random
from testtools.matchers import ContainsAll
from maasserver.models import ControllerInfo, VersionedTextFile
from maasserv... | agpl-3.0 | 4,398,223,400,142,624,300 | 38.852041 | 79 | 0.656894 | false |
runt18/nupic | src/nupic/support/configuration_base.py | 1 | 13853 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | agpl-3.0 | 9,052,683,665,392,102,000 | 31.141531 | 88 | 0.591208 | false |
MayuPuter/pimouse_ros | test/travis_test_buzzer.py | 1 | 2076 | #!/usr/bin/env python
#encoding: utf8
import rospy, unittest, rostest, actionlib
from pimouse_ros.msg import MusicAction, MusicResult, MusicFeedback, MusicGoal
import rosnode
import time
from std_msgs.msg import UInt16
class BuzzerTest(unittest.TestCase):
def setUp(self):
self.client = actionlib.SimpleActionClient... | gpl-3.0 | -2,155,820,610,549,270,000 | 29.985075 | 120 | 0.694123 | false |
misterwindupbird/IBO | ego/gaussianprocess/__init__.py | 1 | 18612 | #!/usr/bin/python
# Copyright (C) 2010, 2011 by Eric Brochu
#
# 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, mo... | mit | -5,203,679,369,636,270,000 | 34.183365 | 125 | 0.481356 | false |
Robbie1977/AlignmentPipe | warp.py | 1 | 4075 | import datetime
import gc
import time
import cmtk
from cmtk import cur, tempfolder, active, run_stage, template, checkDir, host, templatedir
def warpRec(record, template=template, bgfile='image_Ch1.nrrd',
warpSet='--grid-spacing 80 --exploration 30 --coarsest 4 --accuracy 0.2 --refine 4 --energy-weight 1... | mit | 6,924,095,669,354,803,000 | 47.511905 | 486 | 0.605644 | false |
ashgan-dev/mailthon | docs/conf.py | 2 | 9934 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Mailthon documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 5 17:52:58 2015.
#
# 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
# a... | mit | -1,864,183,566,260,073,200 | 31.148867 | 79 | 0.701228 | false |
thekingofkings/urban-flow-analysis | python/featureCorrelations.py | 2 | 9774 | # -*- coding: utf-8 -*-
"""
Feature correlation analysis
Created on Sun Jan 31 21:09:18 2016
@author: kok
"""
import numpy as np
from FeatureUtils import *
from Crime import Tract
from foursquarePOI import getFourSquarePOIDistribution, getFourSquarePOIDistributionHeader
from scipy.stats import pearsonr
import ma... | mit | -3,759,780,219,904,268,300 | 27.086207 | 90 | 0.56108 | false |
msbeta/apollo | modules/tools/mapshow/mapshow.py | 1 | 3418 | #!/usr/bin/env python
###############################################################################
# Copyright 2018 The Apollo 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 ... | apache-2.0 | 1,469,060,692,143,007,500 | 34.237113 | 79 | 0.61732 | false |
yingyun001/ovirt-engine | packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/system/image_upload.py | 8 | 5681 | #
# image_upload plugin -- ovirt engine setup
#
# Copyright (C) 2014-2015 Red Hat, 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
#
# ... | apache-2.0 | 4,499,539,830,241,498,000 | 30.38674 | 78 | 0.51593 | false |
cloudera/hue | desktop/libs/notebook/src/notebook/api.py | 2 | 37207 | #!/usr/bin/env python
# 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 (the
# "License"); you ma... | apache-2.0 | -3,048,649,456,593,295,000 | 34.435238 | 135 | 0.676781 | false |
Rogentos/legacy-anaconda | cmdline.py | 3 | 6311 | #
# cmdline.py - non-interactive, very very simple frontend to anaconda
#
# Copyright (C) 2003, 2004, 2005, 2006, 2007 Red Hat, Inc.
# All rights reserved.
#
# 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... | gpl-2.0 | -6,505,053,441,133,871,000 | 27.556561 | 113 | 0.601965 | false |
bparzella/secsgem | secsgem/hsms/connectionstatemachine.py | 1 | 3401 | #####################################################################
# connectionstatemachine.py
#
# (c) Copyright 2013-2016, Benjamin Parzella. All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by ... | lgpl-2.1 | 1,699,473,985,043,087,000 | 43.168831 | 119 | 0.609821 | false |
sbc100/native_client | pynacl/download_utils.py | 9 | 6570 | #!/usr/bin/python
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A library to assist automatically downloading files.
This library is used by scripts that download tarballs, zipfiles, etc. as... | bsd-3-clause | 8,852,930,381,967,876,000 | 25.491935 | 80 | 0.675342 | false |
PaloAltoNetworks-BD/SplunkforPaloAltoNetworks | Splunk_TA_paloalto/bin/splunk_ta_paloalto/aob_py2/urllib3/contrib/securetransport.py | 20 | 32275 | """
SecureTranport support for urllib3 via ctypes.
This makes platform-native TLS available to urllib3 users on macOS without the
use of a compiler. This is an important feature because the Python Package
Index is moving to become a TLSv1.2-or-higher server, and the default OpenSSL
that ships with macOS is not capable... | isc | -2,987,171,502,642,009,000 | 36.572759 | 86 | 0.636654 | false |
daxiaodou/opendcp | octans/octans/worker/pool.py | 5 | 1115 | #!/usr/bin/env python
#
# Copyright (C) 2016 Weibo Inc.
#
# This file is part of Opendcp.
#
# Opendcp is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# Opendcp is ... | gpl-2.0 | 8,095,804,657,252,306,000 | 26.195122 | 78 | 0.697758 | false |
supergis/QGIS | python/plugins/processing/algs/qgis/QGISAlgorithmProvider.py | 2 | 10103 | # -*- coding: utf-8 -*-
"""
***************************************************************************
QGISAlgorithmProvider.py
---------------------
Date : December 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
***************... | gpl-2.0 | 5,348,616,441,299,567,000 | 43.117904 | 82 | 0.698505 | false |
saschwarz/django-gcse | gcse/urls.py | 1 | 3699 | from django.conf.urls import patterns, url
from django.views.generic import TemplateView
from .views import (AnnotationList, AnnotationSearchList, AnnotationDetail,
CSEAnnotations, CSEAnnotationList,
CustomSearchEngineList, CustomSearchEngineResults,
CustomSea... | bsd-3-clause | 6,814,967,945,531,935,000 | 44.666667 | 124 | 0.403893 | false |
ktnyt/chainer | tests/chainer_tests/utils_tests/test_utils.py | 21 | 1830 | import unittest
import numpy
from chainer import testing
from chainer import utils
@testing.parameterize(*testing.product({
'dtype': [None, numpy.float16, numpy.float32, numpy.float64],
}))
class TestForceArray(unittest.TestCase):
def test_scalar(self):
x = utils.force_array(numpy.float32(1), dtype... | mit | -290,197,506,361,485,700 | 30.551724 | 78 | 0.63388 | false |
morenice/learn-algorithms | algorithms/sorting/merge.py | 2 | 1606 | # -*- coding: utf-8 -*-
import cProfile
import pstats
import sys
def read_data_to_list(input_list, input_count):
for n in range(input_count):
input_list.append(int(input()))
def merge_sort(alist):
if len(alist) <= 1:
return
mid = len(alist)//2
left_half = alist[:mid]
right_half ... | mit | 199,561,442,479,758,560 | 22.970149 | 70 | 0.587796 | false |
dagwieers/ansible | test/units/modules/network/cnos/test_cnos_linkagg.py | 32 | 4430 | #
# (c) 2018 Red Hat Inc.
# Copyright (C) 2017 Lenovo.
#
# 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 la... | gpl-3.0 | 2,301,726,556,821,494,000 | 29.136054 | 70 | 0.52912 | false |
samedder/azure-cli | scripts/scrub_vcr_auth.py | 8 | 2271 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | mit | -4,512,198,097,377,098,000 | 43.529412 | 97 | 0.502422 | false |
Ultimaker/Cura | plugins/Toolbox/src/CloudSync/SyncOrchestrator.py | 1 | 5714 | # Copyright (c) 2021 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import os
from typing import List, Dict, Any, cast
from UM import i18n_catalog
from UM.Extension import Extension
from UM.Logger import Logger
from UM.Message import Message
from UM.PluginRegistry import PluginRegistry
fro... | lgpl-3.0 | -1,155,425,382,791,225,000 | 49.122807 | 121 | 0.712636 | false |
wevoice/wesub | apps/api/tests/test_activity.py | 1 | 16762 | # Amara, universalsubtitles.org
#
# Copyright (C) 2015 Participatory Culture Foundation
#
# 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 opti... | agpl-3.0 | -1,855,790,577,383,451,600 | 45.049451 | 80 | 0.622658 | false |
krzyzacy/test-infra | testgrid/conformance/upload_e2e.py | 1 | 10899 | #!/usr/bin/env python3
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | apache-2.0 | -2,350,796,836,719,295,500 | 32.228659 | 91 | 0.645747 | false |
santisiri/popego | envs/ALPHA-POPEGO/lib/python2.5/site-packages/twisted/test/test_epoll.py | 1 | 4295 | # Copyright (c) 2001-2006 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for epoll wrapper.
"""
import socket, errno, time
from twisted.trial import unittest
try:
from twisted.python import _epoll
except ImportError:
_epoll = None
class EPoll(unittest.TestCase):
"""
Tests for th... | bsd-3-clause | 782,778,448,928,796,300 | 26.183544 | 79 | 0.554133 | false |
fkolacek/FIT-VUT | bp-revok/python/lib/python2.7/site-packages/tornado-4.1-py2.7-linux-x86_64.egg/tornado/test/httpclient_test.py | 19 | 23320 | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function, with_statement
import base64
import binascii
from contextlib import closing
import functools
import sys
import threading
import datetime
from io import BytesIO
from tornado.escape import utf8
from tornado.httpclient import HTTPRe... | apache-2.0 | 2,329,953,434,612,613,600 | 38.325464 | 94 | 0.613679 | false |
lifeinoppo/littlefishlet-scode | RES/REF/python_sourcecode/ipython-master/IPython/core/tests/test_iplib.py | 33 | 6393 | """Tests for the key interactiveshell module, where the main ipython class is defined.
"""
#-----------------------------------------------------------------------------
# Module imports
#-----------------------------------------------------------------------------
# third party
import nose.tools as nt
# our own pack... | gpl-2.0 | -3,174,732,701,778,824,000 | 24.169291 | 87 | 0.497419 | false |
wangwei7175878/tutorials | matplotlibTUT/plt17_plot_in_plot.py | 3 | 1094 | # View more python tutorials on my Youtube and Youku channel!!!
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
# Youku video tutorial: http://i.youku.com/pythontutorial
# 17 - plot in plot
"""
Please note, this script is for python3+.
If you are using python2+, please modify it acc... | mit | 1,359,926,738,106,568,200 | 24.44186 | 82 | 0.647166 | false |
sparkslabs/kamaelia_ | Sketches/MPS/BugReports/FixTests/Axon/Axon/AdaptiveCommsComponent.py | 6 | 11417 | #
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not u... | apache-2.0 | 6,633,554,421,765,679,000 | 35.592949 | 119 | 0.695454 | false |
ukanga/SickRage | tests/pp_tests.py | 11 | 6594 | # coding=UTF-8
# Author: Dennis Lutter <lad1337@gmail.com>
# URL: https://sickrage.github.io
#
# This file is part of SickRage.
#
# SickRage 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 ... | gpl-3.0 | 172,151,293,531,098,000 | 36.044944 | 176 | 0.639066 | false |
rmhyman/DataScience | Lesson2/pandasql_and_weather_data1.py | 1 | 1526 | import pandas
import pandasql
def num_rainy_days(filename):
'''
This function should run a SQL query on a dataframe of
weather data. The SQL query should return one column and
one row - a count of the number of days in the dataframe where
the rain column is equal to 1 (i.e., the number o... | mit | -1,318,662,145,173,624,000 | 36.15 | 93 | 0.675623 | false |
percyfal/luigi | luigi/contrib/scalding.py | 22 | 10381 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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 | -291,991,431,541,930,430 | 33.036066 | 100 | 0.590984 | false |
borkit/scriptdump | AWS/more-aws-scripts/s3-mongodump.py | 1 | 3965 | #!/usr/bin/env python
import boto3
import sys
import argparse
import subprocess
import shutil
import os
from datetime import datetime
import operator
def dump(host, database, username, password, out):
if username and password:
auth_str= "--username %s --password %s" % (username, password)
else:
... | mit | 922,675,742,225,475,800 | 34.720721 | 97 | 0.618411 | false |
polojacky/ehfpi | ehf/analysis/views.py | 1 | 128002 | import csv
from collections import defaultdict
import json
from django.shortcuts import render_to_response
from django.http import HttpResponse
from django.db.models import Q
from django.template import RequestContext
from django.shortcuts import HttpResponseRedirect
from django.utils.encoding import smart_str, smart_... | apache-2.0 | 2,985,895,231,448,524,000 | 39.37918 | 149 | 0.50943 | false |
AfonsoFGarcia/swift | swift/common/splice.py | 13 | 5458 | # Copyright (c) 2014 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | apache-2.0 | -7,913,026,739,531,388,000 | 26.019802 | 79 | 0.56376 | false |
noironetworks/nova | nova/api/openstack/compute/server_metadata.py | 17 | 7880 | # Copyright 2011 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | 1,516,575,754,828,251,400 | 39.829016 | 78 | 0.578173 | false |
chrisfilda/edx_platform | lms/djangoapps/certificates/management/commands/regenerate_user.py | 10 | 3455 | """Django management command to force certificate regeneration for one user"""
from optparse import make_option
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand, CommandError
from certificates.queue import XQueueCertInterface
from xmodule.course_module import CourseDesc... | agpl-3.0 | 5,911,720,304,419,070,000 | 43.87013 | 117 | 0.566425 | false |
rupran/ansible | lib/ansible/modules/network/nxos/nxos_vrf_af.py | 21 | 9307 | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | gpl-3.0 | -2,546,682,287,198,624,000 | 30.3367 | 97 | 0.590523 | false |
seibert-media/Highton | highton/models/user.py | 1 | 1872 | from highton import call_mixins
from highton.models import HightonModel
from highton.highton_constants import HightonConstants
from highton import fields
class User(
HightonModel,
call_mixins.ListCallMixin,
call_mixins.DetailCallMixin,
):
"""
:ivar id: fields.IntegerField(name=HightonConstants.ID)... | apache-2.0 | 8,132,271,359,187,268,000 | 38 | 84 | 0.707799 | false |
baroquebobcat/pants | tests/python/pants_test/backend/jvm/tasks/test_jvm_run.py | 16 | 2540 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
import re
... | apache-2.0 | 903,758,622,422,303,500 | 38.076923 | 95 | 0.689764 | false |
facebookincubator/prophet | python/prophet/tests/test_utilities.py | 2 | 1331 | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_lit... | bsd-3-clause | 2,474,465,620,953,051,600 | 31.463415 | 89 | 0.671675 | false |
cdd1969/pygwa | lib/flowchart/nodes/n09_selectdates/node_pickequaldates.py | 1 | 5605 | #!/usr/bin python
# -*- coding: utf-8 -*-
import gc
from lib.functions.general import isNumpyDatetime
from lib.flowchart.nodes.generalNode import NodeWithCtrlWidget, NodeCtrlWidget
import numpy as np
import pandas as pd
class pickEqualDatesNode(NodeWithCtrlWidget):
"""Select values in dataframe based on passed da... | gpl-2.0 | 2,589,416,075,492,528,000 | 52.380952 | 336 | 0.604639 | false |
ptrendx/mxnet | tests/python/unittest/test_autograd.py | 3 | 13814 | # 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 | 665,376,381,904,392,400 | 29.561947 | 84 | 0.568119 | false |
apendleton/djmicro | djmicro.py | 1 | 3148 | import os, sys, types
_base_module = None
_app_name = None
def _extend_opts(initial, to_add):
if type(to_add) is dict:
initial.update(to_add)
elif type(to_add) is types.ModuleType:
module_opts = {k: v for k, v in to_add.__dict__.iteritems() if not k.startswith('__')}
initial.update(mod... | bsd-3-clause | 8,589,437,361,519,496,000 | 31.132653 | 104 | 0.60864 | false |
nskrypnik/kivy3 | kivy3/renderer.py | 1 | 4050 |
"""
The MIT License (MIT)
Copyright (c) 2013 Niko Skrypnik
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... | mit | -260,763,505,390,716,480 | 32.471074 | 77 | 0.668889 | false |
holinnn/lupin | lupin/fields/field.py | 1 | 4514 | import warnings
from functools import reduce
from lupin import ValidatorsAndCombination, ValidatorsNullCombination
from ..validators import IsNone
from ..processors import null_processor
def _make_processor(processors):
"""Returns a callable for executing the processors
Args:
processors (list): a lis... | mit | -4,351,825,536,594,507,000 | 35.112 | 111 | 0.621622 | false |
sayak-brm/struixLang | struixPrimitives.py | 1 | 19513 | ## Copyright 2016-17 Sayak Brahmachari
##
## 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... | apache-2.0 | -3,881,928,785,915,033,000 | 37.639604 | 81 | 0.484651 | false |
JioCloud/oslo-incubator | tests/unit/test_context.py | 1 | 1036 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack Foundation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apac... | apache-2.0 | -9,115,042,374,442,809,000 | 33.533333 | 78 | 0.723938 | false |
tseaver/google-cloud-python | spanner/pylint.config.py | 8 | 1197 | # Copyright 2017 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | apache-2.0 | 2,929,610,537,561,989,000 | 35.272727 | 76 | 0.767753 | false |
tempbottle/ironpython3 | Tests/test_builtinfunc.py | 2 | 21492 | #####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Apache License, Version 2.0. A
# copy of the license can be found in the License.html file at the root of th... | apache-2.0 | 4,978,919,575,645,806,000 | 28.726141 | 156 | 0.520659 | false |
direvus/ansible | lib/ansible/modules/network/aci/aci_tenant_span_src_group.py | 10 | 7001 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# 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': ['preview'],
... | gpl-3.0 | 3,400,795,473,265,557,000 | 27.229839 | 141 | 0.59163 | false |
jniediek/mne-python | mne/tests/test_dipole.py | 3 | 15060 | import os
import os.path as op
import sys
import warnings
import numpy as np
from nose.tools import assert_true, assert_equal, assert_raises
from numpy.testing import assert_allclose
from mne import (read_dipole, read_forward_solution,
convert_forward_solution, read_evokeds, read_cov,
... | bsd-3-clause | 2,882,449,139,367,200,000 | 40.487603 | 79 | 0.615007 | false |
photoninger/ansible | lib/ansible/modules/cloud/azure/azure_rm_deployment.py | 16 | 27257 | #!/usr/bin/python
#
# Copyright (c) Ansible Project
# 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': ['preview... | gpl-3.0 | -1,002,993,342,971,820,200 | 40.049699 | 157 | 0.60091 | false |
rfhk/awo-custom | account_financial_report_webkit/report/print_journal.py | 2 | 7650 | # -*- coding: utf-8 -*-
##############################################################################
#
# account_financial_report_webkit module for OpenERP, Webkit based
# extended report financial report
# Copyright (C) 2012 SYLEAM Info Services (<http://www.syleam.fr/>)
# Sebastien LANGE <seba... | lgpl-3.0 | -6,254,074,307,570,243,000 | 44.266272 | 79 | 0.533333 | false |
beeftornado/sentry | tests/sentry/mail/activity/test_release.py | 1 | 11594 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from django.core import mail
from django.utils import timezone
from sentry.models import (
Activity,
Commit,
CommitAuthor,
Deploy,
Environment,
GroupSubscriptionReason,
Release,
ReleaseCommit,
Repository,
UserEmail... | bsd-3-clause | 3,656,528,274,749,774,300 | 34.347561 | 99 | 0.599103 | false |
endlessm/chromium-browser | third_party/grpc/src/src/python/grpcio_tests/tests/_loader.py | 24 | 3776 | # Copyright 2015 gRPC authors.
#
# 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... | bsd-3-clause | 6,738,726,140,154,157,000 | 34.622642 | 79 | 0.671345 | false |
99cloud/keystone_register | openstack_dashboard/dashboards/project/instances/forms.py | 2 | 1792 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# 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
# no... | apache-2.0 | 4,758,281,869,034,314,000 | 34.137255 | 79 | 0.685268 | false |
walidsa3d/dupee | dupee/dupee.py | 1 | 2910 |
import argparse
import re
from collections import defaultdict
from os import listdir
from os.path import abspath
from os.path import isfile
from os.path import join
from PIL import Image
import os
from . import __version__
from filehash import FileHash
from imagehash import dhash
from termcolor import colored
cla... | mit | -1,783,298,262,710,570,200 | 30.630435 | 104 | 0.582818 | false |
bmazin/ARCONS-pipeline | util/MKIDStd.py | 1 | 14531 | import os
import glob
import matplotlib.pyplot as plt
import numpy
import types
import string
import pyfits
from util import smooth
import sys
from scipy.constants import *
import math
class MKIDStd:
"""
This class contains the spectra of several standard stars and other
objects. These spectra may be plotte... | gpl-2.0 | -110,834,826,776,027,860 | 35.049628 | 107 | 0.537059 | false |
TeachAtTUM/edx-platform | lms/djangoapps/commerce/api/v1/views.py | 5 | 3363 | import logging
from django.contrib.auth.models import User
from django.http import Http404
from edx_rest_api_client import exceptions
from edx_rest_framework_extensions.authentication import JwtAuthentication
from rest_framework.authentication import SessionAuthentication
from rest_framework.generics import ListAPIVie... | agpl-3.0 | -4,316,431,131,490,350,600 | 38.564706 | 99 | 0.736545 | false |
luotao1/Paddle | python/paddle/fluid/tests/unittests/dygraph_to_static/simnet_dygraph_model_v2.py | 1 | 14960 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | apache-2.0 | -226,043,994,514,461,600 | 29.283401 | 106 | 0.536832 | false |
hjanime/VisTrails | vistrails/core/vistrail/module_control_param.py | 1 | 5714 | ###############################################################################
##
## Copyright (C) 2014-2015, New York University.
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## ... | bsd-3-clause | 6,569,205,747,210,331,000 | 37.608108 | 95 | 0.60763 | false |
Cosiroc/bleau-database | FlaskWebApplication/Statistics.py | 2 | 6608 | ####################################################################################################
#
# Bleau Database - A database of the bouldering area of Fontainebleau
# Copyright (C) 2015 Fabrice Salvaire
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affe... | agpl-3.0 | -5,466,395,071,295,208,000 | 33.596859 | 127 | 0.491525 | false |
jobscore/sync-engine | migrations/versions/141_remote_remote_contacts.py | 9 | 1035 | """Remove notion of 'remote' contact and drop contact 'source' column
Revision ID: 3ab34bc85c8d
Revises: 3f01a3f1b4cc
Create Date: 2015-02-16 16:03:45.288539
"""
# revision identifiers, used by Alembic.
revision = '3ab34bc85c8d'
down_revision = '3f01a3f1b4cc'
from alembic import op
from sqlalchemy.ext.declarative i... | agpl-3.0 | -5,701,361,687,046,856,000 | 27.75 | 77 | 0.718841 | false |
D4wN/brickv | src/build_data/windows/OpenGL/GL/NV/pixel_data_range.py | 4 | 3489 | '''OpenGL extension NV.pixel_data_range
This module customises the behaviour of the
OpenGL.raw.GL.NV.pixel_data_range to provide a more
Python-friendly API
Overview (from the spec)
The vertex array range extension is intended to improve the
efficiency of OpenGL vertex arrays. OpenGL vertex arrays' coherency
m... | gpl-2.0 | -2,130,507,304,883,985,700 | 46.162162 | 70 | 0.799083 | false |
mbox/django | django/db/backends/sqlite3/schema.py | 2 | 8410 | from django.utils import six
from django.apps.registry import Apps
from django.db.backends.schema import BaseDatabaseSchemaEditor
from django.db.models.fields.related import ManyToManyField
class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
sql_delete_table = "DROP TABLE %(table)s"
sql_create_inline_fk = ... | bsd-3-clause | -3,977,547,470,791,322,000 | 43.497354 | 193 | 0.592271 | false |
kr41/ggrc-core | src/ggrc/models/person.py | 4 | 5073 | # Copyright (C) 2016 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
import re
from sqlalchemy.orm import validates
from ggrc import db
from ggrc import settings
from ggrc.models.computed_property import computed_property
from ggrc.models.context import HasOwnContext
from gg... | apache-2.0 | -1,039,642,043,098,073,700 | 28.666667 | 78 | 0.634339 | false |
paboldin/rally | tests/unit/plugins/openstack/context/test_fuel.py | 6 | 4160 | # 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 agreed to in... | apache-2.0 | 6,241,995,310,826,314,000 | 37.518519 | 78 | 0.589183 | false |
h4wkmoon/shinken | test/test_missing_cariarereturn.py | 1 | 1610 | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken 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 F... | agpl-3.0 | -3,284,252,839,235,817,500 | 32.541667 | 86 | 0.690683 | false |
cajt/sandbox-loa | sets/nexys2_spw/src_py/spw.py | 1 | 1846 |
#!/usr/bin/env python
class spw(object):
def __init__(self, fpga, baseaddr):
self.fpga = fpga
self.baseaddr = baseaddr
def sendEOP(self):
fpga.write(self.baseaddr, 0x100 | 0x00)
def sendEEP(self):
fpga.write(self.baseaddr, 0x100 | 0x01)
def send(self, s):
fp... | bsd-2-clause | -3,531,568,334,557,404,000 | 22.974026 | 85 | 0.588299 | false |
elsigh/browserscope | third_party/appengine_tools/devappserver2/http_runtime_constants.py | 8 | 1679 | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | apache-2.0 | -6,128,353,990,506,186,000 | 31.921569 | 80 | 0.726027 | false |
jakirkham/lazyflow | lazyflow/request/request.py | 1 | 54502 | ###############################################################################
# lazyflow: data flow based lazy parallel computation framework
#
# Copyright (C) 2011-2014, the ilastik developers
# <team@ilastik.org>
#
# This program is free software; you can redistribute it and/o... | lgpl-3.0 | 858,078,878,068,856,300 | 40.636364 | 159 | 0.600015 | false |
sharmaeklavya2/zulip | zerver/management/commands/realm_filters.py | 10 | 2955 | from __future__ import absolute_import
from __future__ import print_function
from typing import Any
from argparse import ArgumentParser
from optparse import make_option
from django.core.management.base import BaseCommand
from zerver.models import RealmFilter, all_realm_filters, get_realm
from zerver.lib.actions impo... | apache-2.0 | 3,601,913,119,088,627,700 | 41.826087 | 121 | 0.580034 | false |
googleapis/python-compute | google/cloud/compute_v1/__init__.py | 1 | 109327 | # -*- 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 | 5,650,959,683,691,489,000 | 43.769451 | 88 | 0.842628 | false |
jbalogh/zamboni | apps/translations/tests/test_helpers.py | 2 | 2481 | from django.conf import settings
from django.utils import translation
import jingo
from mock import Mock
from nose.tools import eq_
from translations import helpers
from translations.models import PurifiedTranslation
def super():
jingo.load_helpers()
def test_locale_html():
"""Test HTML attributes for lan... | bsd-3-clause | -8,254,684,108,146,613,000 | 29.62963 | 79 | 0.644901 | false |
petabi/sniffles | src/sniffles/feature.py | 1 | 19126 | import random
import sys
from sniffles.regex_generator import generate_regex
class AmbiguousNotation:
def __init__(self, notation=None):
self.notation = notation
def __str__(self):
return self.notation
class SetNotation(AmbiguousNotation):
# Set notation should be expressed as {x1,x2,... | apache-2.0 | -4,676,584,201,139,202,000 | 35.018832 | 79 | 0.509411 | false |
felliott/osf.io | website/views.py | 6 | 15898 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import itertools
from rest_framework import status as http_status
import logging
import math
import os
import requests
from future.moves.urllib.parse import unquote
from django.apps import apps
from flask import request, send_from_directory, Response, str... | apache-2.0 | -6,856,778,931,455,924,000 | 38.449132 | 149 | 0.645616 | false |
doismellburning/django | tests/expressions_case/tests.py | 3 | 43248 | from __future__ import unicode_literals
from datetime import date, datetime, time, timedelta
from decimal import Decimal
from operator import attrgetter, itemgetter
import unittest
from uuid import UUID
from django.core.exceptions import FieldError
from django.db import connection, models
from django.db.models import... | bsd-3-clause | -861,671,593,887,562,100 | 39.007401 | 120 | 0.493873 | false |
afaheem88/rally | tests/unit/plugins/openstack/context/murano/test_murano_packages.py | 11 | 4025 | # Copyright 2015: Mirantis 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 ... | apache-2.0 | -6,694,020,186,566,969,000 | 35.261261 | 79 | 0.550311 | false |
jabesq/home-assistant | homeassistant/components/gitlab_ci/sensor.py | 2 | 5889 | """Sensor for retrieving latest GitLab CI job information."""
from datetime import timedelta
import logging
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
ATTR_ATTRIBUTION, CONF_NAME, CONF_SCAN_INTERVAL, CONF_TOKEN, CONF_URL)
import homeassis... | apache-2.0 | 7,485,731,597,661,238,000 | 32.651429 | 74 | 0.625064 | false |
falgore88/grafana-metrics | grafana_metrics/metrics/base.py | 1 | 1754 | # coding: utf-8
from __future__ import unicode_literals
from six import python_2_unicode_compatible
@python_2_unicode_compatible
class MetricData(object):
def __init__(self, name, fields, tags=None, *args, **kwargs):
"""
:param name: string
:param value: any
:param tags: list
... | apache-2.0 | -1,528,444,064,236,114,200 | 25.984615 | 101 | 0.534208 | false |
pgroth/independence-indicators | Temporal-Coauthor-Networks/vincent/build/lib/vincent/visualization.py | 2 | 9694 | # -*- coding: utf-8 -*-
"""
Visualization: Top level class for Vega Grammar
"""
from __future__ import (print_function, division)
import random
from .core import (_assert_is_type, ValidationError,
KeyedList, grammar, GrammarClass)
from .data import Data
from .scales import Scale
from .marks import ... | gpl-2.0 | 238,045,456,765,235,070 | 32.659722 | 78 | 0.569321 | false |
koyuawsmbrtn/eclock | windows/Python27/Lib/site-packages/pygame/tests/color_test.py | 3 | 28147 | #################################### IMPORTS ###################################
from __future__ import generators
if __name__ == '__main__':
import sys
import os
pkg_dir = os.path.split(os.path.abspath(__file__))[0]
parent_dir, pkg_name = os.path.split(pkg_dir)
is_pygame_pkg = (pkg_name == 'tests... | gpl-2.0 | 7,961,630,428,869,945,000 | 34.719543 | 83 | 0.540413 | false |
s6530085/FundSpider | Fund/analysis.py | 1 | 8303 | # -*- coding: utf-8 -*-
__author__ = 'study_sun'
from entity import FundInfo
from spider_base.analysis import *
from spider_base.convenient import *
reload(sys)
sys.setdefaultencoding('utf-8')
from collector import FundCollector
import os
#数据库的分析器,前提是数据库已经下载好了,所以先要运行main
class FundAnalysis(SBAnalysis):
def __init... | mit | -8,651,986,051,856,601,000 | 40.252809 | 216 | 0.584094 | false |
uranusjr/pycontw2016 | src/core/models.py | 1 | 1196 | from django.apps import apps
from django.db import models
from .validators import EAWMaxLengthValidator
class BigForeignKey(models.ForeignKey):
def db_type(self, connection):
""" Adds support for foreign keys to big integers as primary keys.
Django's AutoField is actually an IntegerField (SQL in... | mit | -364,286,368,662,972,740 | 35.242424 | 75 | 0.675585 | false |
winhamwr/django-xls-fixtures | setup.py | 1 | 1281 | import os
from distutils.core import setup
f = open('README.rst')
readme = f.read()
f.close()
def find_packages(root):
# so we don't depend on setuptools; from the Storm ORM setup.py
packages = []
for directory, subdirectories, files in os.walk(root):
if '__init__.py' in files:
package... | bsd-3-clause | -8,427,714,608,080,681,000 | 32.710526 | 119 | 0.625293 | false |
dancingdan/tensorflow | tensorflow/python/saved_model/signature_def_utils_impl.py | 2 | 12452 | # 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,941,086,029,780,913,000 | 36.619335 | 80 | 0.730244 | false |
armab/st2contrib | packs/opsgenie/actions/get_heartbeat.py | 4 | 1262 | # Licensed to the StackStorm, Inc ('StackStorm') 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 use th... | apache-2.0 | 9,021,944,181,910,755,000 | 33.108108 | 74 | 0.667195 | false |
lycying/seeking | sklib/ui/uiplugin.py | 1 | 7976 | # coding:utf-8
#
# Copyright (c) 2010, guo.li <lycying@gmail.com>
# Site < http://code.google.com/p/seeking/ >
# All rights reserved.
# vim: set ft=python sw=2 ts=2 et:
#
import tempfile
import zipfile
import sys
from PyQt5.QtGui import QDialog
from PyQt5.QtGui import QTreeWidgetItem
from PyQt5.QtGui import QMenu
from... | gpl-2.0 | 572,074,812,808,509,600 | 36.800948 | 156 | 0.571464 | false |
anastasia-tarasova/indy-sdk | docs/how-tos/send-secure-msg/python/template.py | 2 | 1108 | import asyncio
import time
import re
# Step 5 code goes here, replacing the prep() stub.
async def prep(wallet_handle, my_vk, their_vk, msg):
print('prepping %s' % msg)
# Step 3 code goes here, replacing the init() stub.
async def init():
return None, None, None, None, None
# Step 6 code goes here, replacing... | apache-2.0 | 3,446,480,104,081,199,600 | 27.410256 | 68 | 0.58213 | false |
keen99/SickRage | sickbeard/metadata/generic.py | 1 | 41241 | # Author: Nic Wolfe <nic@wolfeden.ca>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of SickRage.
#
# SickRage 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,... | gpl-3.0 | -6,739,465,871,409,190,000 | 38.807915 | 165 | 0.597609 | false |
DzinVision/adventofcode-2016 | day_10.py | 1 | 2554 | from collections import defaultdict
import re
commands = []
while True:
try:
commands.append(input())
except:
break
bots = {}
outputs = {}
class Bot:
number = ''
value_1 = -1
value_2 = -1
low_to = ''
low_to_output = False
high_to = ''
high_to_outupt = False
... | gpl-3.0 | -971,003,580,447,135,500 | 26.462366 | 119 | 0.542678 | false |
GoogleCloudPlatform/professional-services | examples/dataflow-data-generator/data-generator-pipeline/tests/test_fix_record_for_avro.py | 2 | 6031 | # Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 | 3,888,950,075,616,894,000 | 32.882022 | 74 | 0.368596 | false |
dzolnierz/mysql-utilities | scripts/mysqluc.py | 2 | 6927 | #!/usr/bin/env python
#
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This progra... | gpl-2.0 | 4,047,960,684,611,629,000 | 34.523077 | 79 | 0.59795 | false |
erikvolz/idepi-ev0 | idepi/scripts/_sto2fa.py | 4 | 1544 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# sto2fa.py :: converts a stockholm multiple sequence alignment file to fasta
# format.
#
# Copyright (C) 2011 N Lance Hepler <nlhepler@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public Lice... | gpl-3.0 | 53,738,623,089,066,160 | 28.692308 | 77 | 0.71956 | false |
zhujzhuo/openstack-trove | trove/common/remote.py | 3 | 7115 | # Copyright 2010-2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | apache-2.0 | 4,594,386,218,518,423,000 | 35.675258 | 79 | 0.628672 | false |
cartersgenes/shinysdr | shinysdr/blocks.py | 4 | 15963 | # Copyright 2013, 2014 Kevin Reid <kpreid@switchb.org>
#
# This file is part of ShinySDR.
#
# ShinySDR 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 | 8,295,159,403,019,445,000 | 35.115385 | 319 | 0.608407 | false |
brownharryb/erpnext | erpnext/hr/doctype/loan/loan.py | 7 | 8460 | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe, math, json
import erpnext
from frappe import _
from frappe.utils import flt, rounded, add_months, nowdate
from erpnext.co... | gpl-3.0 | -408,841,644,022,723,100 | 36.604444 | 151 | 0.724232 | false |
daniilidis-group/spherical-cnn | spherical_cnn/spherical.py | 1 | 10142 | """ Spherical harmonics transforms/inverses and spherical convolution. """
import functools
import tensorflow as tf
import numpy as np
from scipy.special import sph_harm
from .util import safe_cast
from . import util
from . import tfnp_compatibility as tfnp
from .tfnp_compatibility import istf
# cache outputs; 2... | mit | -3,424,267,444,063,836,000 | 29.548193 | 109 | 0.540722 | false |
openstack/murano | murano/policy/model_policy_enforcer.py | 1 | 6097 | # Copyright (c) 2014 OpenStack Foundation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | apache-2.0 | 7,315,240,430,330,293,000 | 33.84 | 79 | 0.607512 | 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.