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 |
|---|---|---|---|---|---|---|---|---|---|---|
justincely/cos_monitoring | docs/source/conf.py | 1 | 8446 | # -*- coding: utf-8 -*-
#
# smov_cos_redo documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 8 10:53:41 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
# autogenerated file.... | bsd-3-clause | -5,591,640,752,702,847,000 | 31.736434 | 90 | 0.70116 | false |
mattclay/ansible-modules-core | system/systemd.py | 15 | 15771 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2016, Brian Coca <bcoca@ansible.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... | gpl-3.0 | -4,656,371,552,319,565,000 | 37.372263 | 182 | 0.542578 | false |
alexbruy/QGIS | python/ext-libs/jinja2/testsuite/utils.py | 415 | 2235 | # -*- coding: utf-8 -*-
"""
jinja2.testsuite.utils
~~~~~~~~~~~~~~~~~~~~~~
Tests utilities jinja uses.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import gc
import unittest
import pickle
from jinja2.testsuite import JinjaTestCase
from jinja2.utils imp... | gpl-2.0 | -4,118,011,288,376,826,000 | 26.256098 | 74 | 0.581208 | false |
cburbridge/mongodb_store | mongodb_log/scripts/mongodb_log.py | 2 | 24463 | #!/usr/bin/python
###########################################################################
# mongodb_log.py - Python based ROS to MongoDB logger (multi-process)
#
# Created: Sun Dec 05 19:45:51 2010
# Copyright 2010-2012 Tim Niemueller [www.niemueller.de]
# 2010-2011 Carnegie Mellon University
# ... | bsd-3-clause | -7,292,343,432,224,369,000 | 37.045101 | 156 | 0.571598 | false |
matiasherranz/keyczar | cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/targz.py | 19 | 1792 | """SCons.Tool.Packaging.targz
The targz SRC packager.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in t... | apache-2.0 | 21,035,007,296,946,444 | 39.727273 | 89 | 0.751674 | false |
fogleman/pg | pg/font.py | 3 | 4056 | from OpenGL.GL import *
from itertools import product
from math import ceil, log
from PIL import Image, ImageDraw, ImageFont
from .core import Context, Texture, VertexBuffer, Scene
from .matrix import Matrix
from .programs import TextProgram
from .util import interleave
def float_to_byte_color(color):
return tuple... | mit | 958,170,074,244,850,600 | 35.214286 | 76 | 0.509615 | false |
Oliver2213/NVDAYoutube-dl | addon/globalPlugins/nvdaYoutubeDL/youtube_dl/extractor/mtv.py | 9 | 14408 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse,
compat_str,
)
from ..utils import (
ExtractorError,
find_xpath_attr,
fix_xml_ampersands,
HEADRequest,
sanitized_Request,
unescapeHTML,
url_basename,
R... | gpl-2.0 | 6,049,217,541,316,790,000 | 38.04607 | 170 | 0.547057 | false |
jhaus/pinax | pinax/apps/signup_codes/models.py | 2 | 3734 | import datetime
from django.conf import settings
from django.core.mail import send_mail
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.template.loader import render_to_string
from django.utils.hashcompat import sha_constructor
from django.c... | mit | 7,124,927,427,011,216,000 | 32.945455 | 93 | 0.619711 | false |
arnavd96/Cinemiezer | myvenv/lib/python3.4/site-packages/docutils/parsers/rst/languages/pl.py | 54 | 3362 | # $Id$
# Author: Robert Wojciechowicz <rw@smsnet.pl>
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
# read <http://docutils.sf.net/docs/howto/i18n.html>. Two files must be
# translated for each language: one in docutils/langu... | mit | 2,868,260,233,050,158,000 | 31.960784 | 77 | 0.609756 | false |
SteveXiSong/ECE757-SnoopingPredictions | src/mem/slicc/generate/dot.py | 92 | 2077 | # Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
# Copyright (c) 2009 The Hewlett-Packard Development Company
# 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 co... | bsd-3-clause | -6,261,375,465,026,353,000 | 48.452381 | 84 | 0.745787 | false |
pfnet/chainer | chainerx/testing/array.py | 8 | 6059 | import numpy.testing
import chainerx
# NumPy-like assertion functions that accept both NumPy and ChainerX arrays
def _as_numpy(x):
if isinstance(x, chainerx.ndarray):
return chainerx.to_numpy(x)
assert isinstance(x, numpy.ndarray) or numpy.isscalar(x)
return x
def _check_dtype_and_strides(x, y... | mit | -7,079,851,845,018,240,000 | 39.66443 | 79 | 0.634758 | false |
kenshay/ImageScript | ProgramData/SystemFiles/Python/Tools/Scripts/pdeps.py | 96 | 3937 | #! /usr/bin/env python
# pdeps
#
# Find dependencies between a bunch of Python modules.
#
# Usage:
# pdeps file1.py file2.py ...
#
# Output:
# Four tables separated by lines like '--- Closure ---':
# 1) Direct dependencies, listing which module imports which other modules
# 2) The inverse of (1)
# 3) Indirect de... | gpl-3.0 | -7,887,096,718,440,899,000 | 22.57485 | 74 | 0.547879 | false |
kaixinjxq/crosswalk-test-suite | cordova/cordova-lite-android-tests/lite/webapp_install.py | 14 | 1900 | #!/usr/bin/env python
#
# Copyright (c) 2016 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of conditions and t... | bsd-3-clause | -2,052,343,428,477,653,500 | 39.425532 | 80 | 0.751579 | false |
OptiPop/external_chromium_org | native_client_sdk/src/build_tools/tests/update_nacl_manifest_test.py | 43 | 25883 | #!/usr/bin/env python
# Copyright (c) 2012 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 copy
import datetime
import hashlib
import logging
import os
import posixpath
import subprocess
import sys
import tempfile
i... | bsd-3-clause | -2,024,138,134,299,889,000 | 34.553571 | 80 | 0.692964 | false |
alanljj/oca_hr | hr_department_sequence/tests/test_hr_department.py | 18 | 2682 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2010 - 2014 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it a... | agpl-3.0 | 2,724,877,773,221,831,700 | 42.258065 | 78 | 0.602535 | false |
rupakc/Kaggle-Compendium | Homesite Quote Conversion/home-baseline.py | 1 | 3586 | import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.ensemble import BaggingClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.neural_network import MLPClassifie... | mit | 4,027,491,212,252,005,400 | 39.761364 | 109 | 0.738985 | false |
rbreitenmoser/snapcraft | snapcraft/tests/test_plugin_catkin.py | 1 | 33334 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2015 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the h... | gpl-3.0 | 7,836,186,872,896,307,000 | 40.306072 | 79 | 0.579408 | false |
adaussy/eclipse-monkey-revival | plugins/python/org.eclipse.eclipsemonkey.lang.python/Lib/test/test_posix.py | 6 | 17908 | "Test posix functions"
from test import test_support
# Skip these tests if there is no posix module.
posix = test_support.import_module('posix')
import errno
import sys
import time
import os
import pwd
import shutil
import stat
import sys
import tempfile
import unittest
import warnings
_DUMMY_SYMLINK = os.path.join... | epl-1.0 | 1,593,909,475,429,325,800 | 37.183369 | 114 | 0.561202 | false |
GoogleCloudPlatform/mlops-on-gcp | workshops/kfp-caip-sklearn/lab-02-kfp-pipeline/pipeline/covertype_training_pipeline.py | 3 | 7714 | # Copyright 2019 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, ... | apache-2.0 | -2,550,113,302,302,601,000 | 33.591928 | 93 | 0.638579 | false |
gppezzi/easybuild-easyblocks | easybuild/easyblocks/x/xmipp.py | 2 | 7758 | ##
# Copyright 2015-2015 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (htt... | gpl-2.0 | 2,967,943,746,869,470,000 | 42.340782 | 116 | 0.613302 | false |
mensler/ansible | lib/ansible/modules/network/avi/avi_network.py | 49 | 4780 | #!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the te... | gpl-3.0 | -1,852,189,390,752,320,300 | 31.965517 | 126 | 0.639121 | false |
kevalds51/sympy | sympy/vector/point.py | 42 | 4853 | from sympy.core.compatibility import range
from sympy.core.basic import Basic
from sympy.vector.vector import Vector
from sympy.vector.coordsysrect import CoordSysCartesian
from sympy.vector.functions import _path
from sympy import Symbol
from sympy.core.cache import cacheit
class Point(Basic):
"""
Represents... | bsd-3-clause | -5,363,318,466,143,916,000 | 29.910828 | 70 | 0.561508 | false |
NathanYee/ThinkBayes2 | code/hockey.py | 2 | 7035 | """This file contains code for use with "Think Bayes",
by Allen B. Downey, available from greenteapress.com
Copyright 2012 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
from __future__ import print_function, division
import math
import columns
import thinkbayes2
import thinkbayes2
impo... | gpl-2.0 | 7,831,581,272,848,660,000 | 24.769231 | 73 | 0.608244 | false |
gavinfish/leetcode-share | python/056 Merge Intervals.py | 1 | 1138 | '''
Given a collection of intervals, merge all overlapping intervals.
For example,
Given [1,3],[2,6],[8,10],[15,18],
return [1,6],[8,10],[15,18].
'''
# Definition for an interval.
class Interval(object):
def __init__(self, s=0, e=0):
self.start = s
self.end = e
# To print the result
def _... | mit | -2,206,937,647,489,154,000 | 25.488372 | 101 | 0.544815 | false |
google-research/recsim | recsim/testing/test_environment.py | 1 | 12670 | # coding=utf-8
# coding=utf-8
# Copyright 2019 The RecSim 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 ap... | apache-2.0 | 8,079,051,048,841,026,000 | 32.877005 | 80 | 0.545777 | false |
jcderr/kubernetes | cluster/juju/charms/trusty/kubernetes/hooks/hooks.py | 93 | 8164 | #!/usr/bin/env python
# Copyright 2015 The Kubernetes 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
#
# Unle... | apache-2.0 | -5,227,253,204,910,386,000 | 32.875519 | 79 | 0.63829 | false |
xya/Spark | src/spark/gui/filelist.py | 1 | 9395 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2009, 2010 Pierre-André Saulais <pasaulais@free.fr>
#
# This file is part of the Spark File-transfer Tool.
#
# Spark 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; ei... | gpl-2.0 | -7,070,061,432,607,398,000 | 34.718631 | 87 | 0.62178 | false |
jaxxer/aivm | lib/IP.py | 1 | 1333 | #!/usr/bin/python
#-*- coding: utf-8 -*-
import random
from IPy import IP as ip
class DHCP:
def __hash__(self):
return hash(random.random())
def __eq__(self, other):
return hash(self) == hash(other)
def __str__(self):
return "<DHCP>"
class _IP:
def __init__(self, address, netmask, gateway):
self.add... | gpl-2.0 | 7,007,617,916,669,354,000 | 20.5 | 105 | 0.627907 | false |
Jordan-Zhu/RoboVision | unsorted/algo-NDT192139AAAD.py | 1 | 6993 | import cv2
import numpy as np
from matplotlib import pyplot as plt
from skimage import morphology
from drawlinefeature import DrawLineFeature,drawconvex#zc
from lineseg import lineseg
from drawedgelist import drawedgelist
from Lseg_to_Lfeat_v2 import Lseg_to_Lfeat_v2 #zc
from LabelLineCurveFeature_v2 import... | gpl-3.0 | -1,034,693,146,098,022,800 | 31.3 | 101 | 0.63821 | false |
KaranToor/MA450 | google-cloud-sdk/lib/third_party/dulwich/server.py | 7 | 40495 | # server.py -- Implementation of the server side git protocols
# Copyright (C) 2008 John Carr <john.carr@unrouted.co.uk>
# Coprygith (C) 2011-2012 Jelmer Vernooij <jelmer@samba.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as publi... | apache-2.0 | -7,874,999,032,539,544,000 | 35.22093 | 92 | 0.60731 | false |
CantemoInternal/django-comments-xtd | django_comments_xtd/tests/views.py | 1 | 9462 | from __future__ import unicode_literals
from datetime import datetime
import re
import threading
# from django.conf import settings
from django.contrib import comments
from django.contrib.comments.signals import comment_was_posted
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.mo... | bsd-2-clause | 3,913,878,965,645,909,500 | 46.31 | 97 | 0.567745 | false |
hbrunn/OCB | openerp/service/report.py | 324 | 5148 | # -*- coding: utf-8 -*-
import base64
import logging
import sys
import threading
import openerp
import openerp.report
from openerp import tools
import security
_logger = logging.getLogger(__name__)
# TODO: set a maximum report number per user to avoid DOS attacks
#
# Report state:
# False -> True
self_reports... | agpl-3.0 | 8,503,186,505,148,374,000 | 34.020408 | 167 | 0.604118 | false |
mozilla/bedrock | tests/pages/regions/send_to_device.py | 4 | 1547 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as expected
from... | mpl-2.0 | 4,172,358,768,426,085,400 | 37.675 | 93 | 0.689722 | false |
marcinzaremba/libcloud | libcloud/test/compute/test_ibm_sce.py | 29 | 14632 | # 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 use ... | apache-2.0 | 7,614,445,183,054,531,000 | 44.021538 | 111 | 0.621378 | false |
Inspq/ansible | lib/ansible/modules/network/nxos/nxos_install_os.py | 55 | 7774 | #!/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 | -3,493,076,016,084,934,700 | 32.364807 | 85 | 0.636866 | false |
Anaethelion/django-mapentity | mapentity/decorators.py | 1 | 6019 | from functools import wraps
from django.utils.decorators import available_attrs, method_decorator
from django.views.decorators.cache import never_cache
from django.views.decorators.http import last_modified as cache_last_modified
from django.utils.translation import ugettext_lazy as _
from django.core.exceptions impor... | bsd-3-clause | -4,544,863,074,061,369,000 | 37.583333 | 95 | 0.587307 | false |
wdv4758h/ZipPy | lib-python/3/sqlite3/test/transactions.py | 51 | 7338 | #-*- coding: ISO-8859-1 -*-
# pysqlite2/test/transactions.py: tests transactions
#
# Copyright (C) 2005-2007 Gerhard Häring <gh@ghaering.de>
#
# This file is part of pysqlite.
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any damages
#... | bsd-3-clause | 5,423,293,903,603,959,000 | 34.970588 | 76 | 0.627419 | false |
jhbradley/moose | framework/contrib/nsiqcppstyle/rules/RULE_3_2_H_do_not_use_underbars_for_cpp_filename.py | 43 | 1450 | """
Do not use unberbars for cpp filename.
Only alphabets, numbers can be used for a cpp filename.
== Vilolation ==
/testdir/test_1.cpp <== Violation. - is used.
/testdir1/_test1.cpp <== Violation. _ is used
== Good ==
testdir/test.cpp
testdir1/test_1.c <== Don't care. it's c file.
"""
from nsiqcp... | lgpl-2.1 | -7,573,951,048,047,108,000 | 25.851852 | 91 | 0.56069 | false |
dkillick/iris | lib/iris/tests/integration/test_pp.py | 5 | 31904 | # (C) British Crown Copyright 2013 - 2017, Met Office
#
# This file is part of Iris.
#
# Iris 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 3 of the License, or
# (at your option) any l... | lgpl-3.0 | -4,594,419,851,302,290,000 | 42.230352 | 79 | 0.572436 | false |
cmelange/ansible | lib/ansible/modules/cloud/openstack/os_nova_host_aggregate.py | 6 | 6737 | #!/usr/bin/python
# Copyright 2016 Jakub Jursa <jakub.jursa1@gmail.com>
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | gpl-3.0 | 61,198,593,458,338,790 | 32.351485 | 131 | 0.606947 | false |
twenty0ne/CocosBuilder-wxPython | cocos/test/test_camera_orbit_reuse.py | 6 | 1290 | from __future__ import division, print_function, unicode_literals
# This code is so you can run the samples without installing the package
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
#
# total time duration * action multiplier
testinfo = "s, t 2.0, s, t 4.0, s, t 6.1, s, q"
... | mit | 1,956,838,412,303,601,000 | 24.8 | 74 | 0.658915 | false |
ssvsergeyev/ZenPacks.zenoss.AWS | src/boto/boto/cloudsearch/domain.py | 153 | 15607 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
# All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without... | gpl-2.0 | 5,287,367,223,840,259,000 | 38.611675 | 82 | 0.639649 | false |
devs1991/test_edx_docmode | venv/lib/python2.7/site-packages/newrelic-2.46.0.37/newrelic/hooks/external_urllib.py | 2 | 2093 | try:
import urlparse
except ImportError:
import urllib.parse as urlparse
import newrelic.packages.six as six
from newrelic.agent import (current_transaction,
wrap_function_wrapper, ExternalTrace)
def _nr_wrapper_factory(bind_params_fn, library):
# Wrapper functions will be similar for monkeypatching ... | agpl-3.0 | -2,281,018,342,139,990,300 | 27.671233 | 78 | 0.649785 | false |
cihai/cihaidata-unihan | unihan_etl/util.py | 1 | 3111 | # -*- coding: utf8 -*-
"""Utility and helper methods for script.
util
~~~~
"""
from __future__ import absolute_import, unicode_literals
import re
import sys
from ._compat import Mapping, string_types, text_type, unichr
def ucn_to_unicode(ucn):
"""Return a python unicode value from a UCN.
Converts a Unico... | mit | 4,472,515,145,738,445,300 | 26.052174 | 83 | 0.581485 | false |
maferelo/saleor | saleor/graphql/decorators.py | 1 | 1429 | from enum import Enum
from functools import wraps
from typing import Iterable, Union
from graphql_jwt import exceptions
from graphql_jwt.decorators import context
def account_passes_test(test_func):
"""Determine if user/service_account has permission to access to content."""
def decorator(f):
@wraps... | bsd-3-clause | -3,726,121,088,799,556,000 | 25.962264 | 80 | 0.643807 | false |
wking/pycalendar | pycalendar/component/calendar.py | 1 | 1371 | # Copyright (C) 2013 W. Trevor King <wking@tremily.us>
#
# This file is part of pycalender.
#
# pycalender 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) a... | gpl-3.0 | -8,614,883,336,588,668,000 | 26.979592 | 79 | 0.620715 | false |
LamCiuLoeng/gap | gapproject/util/master_helper.py | 1 | 3918 | # -*- coding: utf-8 -*-
import traceback
from pylons import cache
from tg import config
from gapproject.model import *
__all__ = ['getOrsayCustomerList', 'getOrsayCustomerInfo', 'getOrsayWashingList', 'getOrsayWashingDetailInfo', 'populateTranslation', 'populateTranslation1']
def getOrsayCustomerList():
def _get... | mit | -2,018,556,223,986,691,600 | 44.034483 | 186 | 0.621235 | false |
TheTypoMaster/asuswrt | release/src/router/wget/testenv/Test-auth-basic.py | 23 | 1565 | #!/usr/bin/env python3
from sys import exit
from test.http_test import HTTPTest
from misc.wget_file import WgetFile
"""
This test ensures Wget's Basic Authorization Negotiation.
Also, we ensure that Wget saves the host after a successfull auth and
doesn't wait for a challenge the second time.
"""
TEST_NAME... | gpl-2.0 | -2,807,338,149,053,482,500 | 25.525424 | 78 | 0.561661 | false |
python-gitlab/python-gitlab | tests/unit/objects/test_hooks.py | 1 | 5269 | """
GitLab API: https://docs.gitlab.com/ce/api/system_hooks.html
GitLab API: https://docs.gitlab.com/ce/api/groups.html#hooks
GitLab API: https://docs.gitlab.com/ee/api/projects.html#hooks
"""
import re
import pytest
import responses
from gitlab.v4.objects import GroupHook, Hook, ProjectHook
hooks_content = [
{... | lgpl-3.0 | -2,260,871,482,216,416,800 | 24.210526 | 87 | 0.606377 | false |
yashodhank/erpnext | erpnext/manufacturing/doctype/production_planning_tool/production_planning_tool.py | 4 | 19282 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import cstr, flt, cint, nowdate, add_days, comma_and
from frappe import msgprint, _
from frappe.model.document import ... | agpl-3.0 | 1,079,114,734,757,953,900 | 37.333996 | 121 | 0.66378 | false |
TangHao1987/intellij-community | python/lib/Lib/site-packages/django/contrib/auth/tests/views.py | 71 | 14822 | import os
import re
import urllib
from django.conf import settings
from django.contrib.auth import SESSION_KEY, REDIRECT_FIELD_NAME
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.sites.models import Site
from django.contrib.auth.models import User
from django.test import TestCase
from dja... | apache-2.0 | 5,887,841,297,458,869,000 | 41.83815 | 131 | 0.609297 | false |
jn7163/django | tests/admin_views/customadmin.py | 379 | 2366 | """
A second, custom AdminSite -- see tests.CustomAdminSiteTests.
"""
from __future__ import unicode_literals
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from django.http import HttpResponse
from . import... | bsd-3-clause | -5,136,823,320,405,373,000 | 36.555556 | 110 | 0.737109 | false |
mintoo/NetDim | pyNMS/graph_generation/graph_generation_window.py | 2 | 3175 | # Copyright (C) 2017 Antoine Fourmy <antoine dot fourmy at gmail dot 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.
#
# This program is distributed in the hope that it will be useful,
# ... | gpl-3.0 | -7,814,158,815,146,191,000 | 40.789474 | 83 | 0.618898 | false |
a-e-m/psd-tools | src/psd_tools/decoder/image_resources.py | 7 | 5317 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals, division
import io
import warnings
import collections
from psd_tools.utils import (read_pascal_string, unpack, read_fmt,
read_unicode_string, be_array_from_bytes,
decode_fixed_poi... | mit | -5,750,031,510,895,654,000 | 37.810219 | 154 | 0.690615 | false |
rubennj/pvlib-python | pvlib/atmosphere.py | 1 | 7702 | """
The ``atmosphere`` module contains methods to calculate
relative and absolute airmass and to determine
pressure from altitude or vice versa.
"""
from __future__ import division
import logging
pvl_logger = logging.getLogger('pvlib')
import numpy as np
AIRMASS_MODELS = ['kastenyoung1989', 'kasten1966', 'simple',... | bsd-3-clause | -9,198,989,589,188,963,000 | 31.49789 | 207 | 0.590106 | false |
kurli/blink-crosswalk | Tools/Scripts/webkitpy/common/checkout/scm/svn.py | 24 | 8502 | # Copyright (c) 2009, 2010, 2011 Google Inc. All rights reserved.
# Copyright (c) 2009 Apple Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must reta... | bsd-3-clause | 7,162,186,972,274,096,000 | 40.271845 | 137 | 0.644201 | false |
mjs/juju | acceptancetests/repository/charms/statusstresser/tests/10-deploy-test.py | 8 | 2356 | #!/usr/bin/python3
# This Amulet based tests
# The goal is to ensure the Ubuntu charm
# sucessfully deploys and can be accessed.
# Note the Ubuntu charm does not have any
# relations or config options.
import amulet
#import os
#import requests
# Timeout value, in seconds to deploy the environment
seconds = 900
# S... | agpl-3.0 | -8,747,308,345,156,181,000 | 32.183099 | 99 | 0.722835 | false |
Spiderlover/Toontown | toontown/building/DistributedBankInterior.py | 3 | 8875 | from direct.distributed.ClockDelta import *
from direct.distributed.DistributedObject import DistributedObject
from direct.fsm import ClassicFSM, State
from direct.interval.IntervalGlobal import *
from pandac.PandaModules import *
import random
import ToonInteriorColors
from toontown.dna.DNAParser import DNADoor
from ... | mit | 519,834,034,805,032,300 | 36.133891 | 119 | 0.628056 | false |
cntnboys/410Lab6 | build/django/build/lib.linux-x86_64-2.7/django/db/backends/mysql/client.py | 84 | 1380 | import os
import sys
from django.db.backends import BaseDatabaseClient
class DatabaseClient(BaseDatabaseClient):
executable_name = 'mysql'
def runshell(self):
settings_dict = self.connection.settings_dict
args = [self.executable_name]
db = settings_dict['OPTIONS'].get('db', settings_... | apache-2.0 | -1,135,469,007,832,929,700 | 33.5 | 82 | 0.538406 | false |
adamlwgriffiths/Pyglet | tools/upload/upload.py | 28 | 2341 | #!/usr/bin/env python
'''Upload dist/ files to code.google.com. For Alex only :-)
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
import os
import re
import sys
base = os.path.dirname(__file__)
root = os.path.join(base, '../..')
dist = os.path.join(root, 'dist')
sys.path.insert(0, root)
import pyglet
... | bsd-3-clause | -4,789,705,067,085,224,000 | 29.012821 | 78 | 0.542503 | false |
miloharper/neural-network-animation | neural_network.py | 4 | 4978 | import matplotlib
matplotlib.use("Agg")
from matplotlib import pyplot
from math import fabs
from formulae import sigmoid, sigmoid_derivative, random_weight, get_synapse_colour, adjust_line_to_perimeter_of_circle, layer_left_margin
import parameters
class Synapse():
def __init__(self, input_neuron_index, x1, x2, y... | mit | -4,605,720,101,017,026,000 | 37.007634 | 176 | 0.597228 | false |
schleichdi2/OpenNfr_E2_Gui-6.0 | lib/python/Components/Converter/ValueToPixmap.py | 50 | 1197 | from Components.Converter.Converter import Converter
from Components.Element import cached, ElementError
from Tools.Directories import SCOPE_SKIN_IMAGE, SCOPE_ACTIVE_SKIN, resolveFilename
from Tools.LoadPixmap import LoadPixmap
class ValueToPixmap(Converter, object):
LANGUAGE_CODE = 0
PATH = 1
def __init__(self, ... | gpl-2.0 | 8,559,700,454,645,249,000 | 28.925 | 114 | 0.710109 | false |
texperience/wagtail-pythonanywhere-quickstart | home/migrations/0002_create_homepage.py | 1 | 1714 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def create_homepage(apps, schema_editor):
# Get models
ContentType = apps.get_model('contenttypes.ContentType')
Page = apps.get_model('wagtailcore.Page')
Site = apps.get_model('wagtailcore.Site')
Home... | isc | 3,990,151,218,487,845,400 | 27.566667 | 75 | 0.660443 | false |
thenewguy/wagtailplus | wagtailplus/wagtaillinks/tests/test_views.py | 2 | 7163 | """
Contains view unit tests.
"""
from django.core.urlresolvers import reverse
from wagtailplus.tests import views
from ..models import Link
class TestLinkIndexView(views.BaseTestIndexView):
url_namespace = 'wagtaillinks'
template_dir = 'wagtaillinks/links'
def _create_sequential_instance(self, ind... | bsd-2-clause | -4,470,771,193,949,023,000 | 28.721992 | 73 | 0.557308 | false |
bytor99999/vertx-web | src/test/sockjs-protocol/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/charade/langhebrewmodel.py | 2763 | 11318 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Simon Montagu
# Portions created by the Initial Developer are Copyright (C) 2005
# the Initial Developer. All Rights Reserved... | apache-2.0 | -1,731,753,068,348,946,400 | 55.308458 | 70 | 0.54029 | false |
mgit-at/ansible | lib/ansible/modules/cloud/amazon/lightsail.py | 40 | 15620 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: 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',
... | gpl-3.0 | 6,891,539,048,722,385,000 | 32.663793 | 157 | 0.631306 | false |
marcstreeter/ChatterBlog | app/shared/error.py | 1 | 1203 |
class Errors(Exception):
__status_code = 400
__error_cat = "General Error"
__default_message = "System Error Occurred"
def __init__(self, message=None, status_code=None, payload=None):
Exception.__init__(self)
self.category = self.__error_cat
self.message = message or self.__d... | apache-2.0 | 6,569,222,686,214,176,000 | 26.340909 | 96 | 0.650042 | false |
xaviercobain88/framework-python | build/lib.linux-i686-2.7/openerp/addons/account/project/wizard/account_analytic_cost_ledger_report.py | 56 | 2042 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 3,413,647,014,788,019,000 | 35.464286 | 78 | 0.578355 | false |
HireAnEsquire/django-rest-framework | rest_framework/versioning.py | 81 | 6651 | # coding: utf-8
from __future__ import unicode_literals
import re
from django.utils.translation import ugettext_lazy as _
from rest_framework import exceptions
from rest_framework.compat import unicode_http_header
from rest_framework.reverse import _reverse
from rest_framework.settings import api_settings
from rest_... | bsd-2-clause | -6,646,606,169,649,248,000 | 35.95 | 96 | 0.665464 | false |
MattsFleaMarket/python-for-android | python-modules/twisted/twisted/test/test_adbapi.py | 49 | 26501 | # Copyright (c) 2001-2010 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for twisted.enterprise.adbapi.
"""
from twisted.trial import unittest
import os, stat, new
from twisted.enterprise.adbapi import ConnectionPool, ConnectionLost, safe
from twisted.enterprise.adbapi import Connection, Transac... | apache-2.0 | -5,533,664,688,997,326,000 | 30.737725 | 87 | 0.602053 | false |
p4datasystems/CarnotKE | jyhton/lib-python/2.7/test/test_generators.py | 72 | 50768 | tutorial_tests = """
Let's try a simple generator:
>>> def f():
... yield 1
... yield 2
>>> for i in f():
... print i
1
2
>>> g = f()
>>> g.next()
1
>>> g.next()
2
"Falling off the end" stops the generator:
>>> g.next()
Traceback (most recent call la... | apache-2.0 | 6,091,504,729,735,094,000 | 25.621919 | 116 | 0.513788 | false |
lokeshjindal15/gem5_transform | tests/configs/pc-simple-timing.py | 52 | 2346 | # Copyright (c) 2012 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality ... | bsd-3-clause | -4,226,008,318,508,792,300 | 52.318182 | 76 | 0.771526 | false |
ruibarreira/linuxtrail | usr/lib/python2.7/encodings/cp500.py | 593 | 13377 | """ Python Character Mapping Codec cp500 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP500.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,input... | gpl-3.0 | -4,664,038,552,592,845,000 | 42.57329 | 116 | 0.528295 | false |
Senseg/Py4A | python3-alpha/extra_modules/pyxmpp2/mainloop/glib.py | 46 | 12001 | #
# (C) Copyright 2011 Jacek Konieczny <jajcus@jajcus.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License Version
# 2.1 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful... | apache-2.0 | 854,547,312,505,694,700 | 37.464744 | 80 | 0.547871 | false |
easycoin-core/Easycoin | qa/rpc-tests/p2p-segwit.py | 9 | 92403 | #!/usr/bin/env python3
# Copyright (c) 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.
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from test... | mit | 5,360,237,865,259,408,000 | 44.698813 | 143 | 0.634449 | false |
FrancescAlted/blaze | blaze/io/server/crossdomain.py | 6 | 1834 | from __future__ import absolute_import, division, print_function
from datetime import timedelta
from flask import make_response, request, current_app
from functools import update_wrapper
from ... import py2help
def crossdomain(origin=None, methods=None, headers=None,
automatic_headers=True,
... | bsd-3-clause | -2,363,745,160,118,387,700 | 38.021277 | 87 | 0.619956 | false |
eduNEXT/edx-platform | cms/djangoapps/contentstore/management/commands/sync_courses.py | 3 | 2362 | """
Sync courses from catalog service. This is used to setup a master's
integration environment.
"""
import logging
from textwrap import dedent
from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user
from django.core.management.base import BaseCommand, CommandError
from opaque_... | agpl-3.0 | 6,537,576,193,209,124,000 | 33.231884 | 108 | 0.607536 | false |
doordash/realms-wiki | realms/modules/github/views.py | 1 | 1935 | from flask import (
current_app, render_template, redirect, Blueprint, flash, url_for, g
)
from flask.ext.github import GitHubError
from flask.ext.login import login_user, logout_user
from realms import github
from realms.modules.github.models import User
blueprint = Blueprint('github', __name__)
@blueprint.rout... | gpl-2.0 | -8,270,663,169,707,043,000 | 25.148649 | 72 | 0.659948 | false |
gsehub/edx-platform | lms/djangoapps/discussion_api/tests/test_permissions.py | 9 | 5119 | """
Tests for discussion API permission logic
"""
import itertools
import ddt
from nose.plugins.attrib import attr
from discussion_api.permissions import (
can_delete,
get_editable_fields,
get_initializable_comment_fields,
get_initializable_thread_fields
)
from lms.lib.comment_client.comment import Co... | agpl-3.0 | 2,522,298,377,049,025,000 | 38.682171 | 111 | 0.637429 | false |
juharris/tensorflow | tensorflow/contrib/metrics/python/ops/confusion_matrix_ops.py | 5 | 4520 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -845,897,415,260,865,200 | 40.46789 | 80 | 0.686062 | false |
simonmikkelsen/facebook-downloader | fbdownload/groupdownloader.py | 1 | 2371 | from fbdownload.downloader import FacebookDownloader
class FacebookGroupDownloader(FacebookDownloader):
'''
Downloads data from a Facebook group, including events.
Images are not downloaded.
In this package of classes, that is done by the
FacebookHtmlExporter, even though a stand alone download
function wo... | mit | 581,755,201,948,528,100 | 31.930556 | 105 | 0.651202 | false |
mpeuster/estate | experiments/scaleability-fixed/pox/pox/info/switch_info.py | 46 | 2469 | # Copyright 2013 James McCauley
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | apache-2.0 | 4,735,640,419,694,486,000 | 28.047059 | 74 | 0.680842 | false |
liu602348184/django | docs/conf.py | 188 | 11919 | # -*- coding: utf-8 -*-
#
# Django documentation build configuration file, created by
# sphinx-quickstart on Thu Mar 27 09:06:53 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickleab... | bsd-3-clause | 1,786,826,272,328,977,400 | 32.108333 | 123 | 0.698381 | false |
EclecticIQ/OpenTAXII | opentaxii/taxii/services/collection_management.py | 2 | 2914 | from libtaxii.constants import (
SVC_COLLECTION_MANAGEMENT,
MSG_COLLECTION_INFORMATION_REQUEST, MSG_FEED_INFORMATION_REQUEST,
MSG_MANAGE_COLLECTION_SUBSCRIPTION_REQUEST,
MSG_MANAGE_FEED_SUBSCRIPTION_REQUEST,
)
from .abstract import TAXIIService
from .handlers import (
CollectionInformationRequestHa... | bsd-3-clause | -2,920,765,497,369,848,300 | 33.690476 | 78 | 0.703844 | false |
bmanojlovic/ansible | lib/ansible/modules/cloud/vmware/vmware_dvs_portgroup.py | 32 | 6998 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Joseph Callen <jcallen () csc.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 Li... | gpl-3.0 | -5,302,708,863,942,382,000 | 33.643564 | 126 | 0.629466 | false |
chand3040/cloud_that | lms/djangoapps/shoppingcart/models.py | 16 | 89388 | """ Models for the shopping cart and assorted purchase types """
from collections import namedtuple
from datetime import datetime
from datetime import timedelta
from decimal import Decimal
import json
import analytics
from io import BytesIO
from django.db.models import Q
import pytz
import logging
import smtplib
impor... | agpl-3.0 | 419,013,427,749,739,800 | 39.94732 | 166 | 0.630431 | false |
djeo94/CouchPotatoServer | couchpotato/core/notifications/nmj.py | 75 | 4379 | import re
import telnetlib
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
try:
import xml.etree.cElementTree as etr... | gpl-3.0 | -6,905,160,903,117,551,000 | 27.435065 | 109 | 0.511989 | false |
42cc/p2psafety | p2psafety_django/events/jabber/clients.py | 1 | 9829 | import logging
import traceback
import threading
from contextlib import contextmanager
from django.conf import settings
from django.contrib.auth.models import User
from django.core.exceptions import ImproperlyConfigured
from sleekxmpp import ClientXMPP
from sleekxmpp.exceptions import IqError, IqTimeout
from sleekxmp... | apache-2.0 | 4,201,279,434,441,434,600 | 31.87291 | 90 | 0.604843 | false |
maruen/yowsup.jlguardi | yowsup/layers/axolotl/store/sqlite/liteaxolotlstore.py | 17 | 3414 | from axolotl.state.axolotlstore import AxolotlStore
from .liteidentitykeystore import LiteIdentityKeyStore
from .liteprekeystore import LitePreKeyStore
from .litesessionstore import LiteSessionStore
from .litesignedprekeystore import LiteSignedPreKeyStore
from .litesenderkeystore import LiteSenderKeyStore
import sqlite... | gpl-3.0 | -5,867,887,704,892,853,000 | 39.164706 | 84 | 0.769479 | false |
keakon/gunicorn | setup.py | 12 | 2916 | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from gunicorn import __version__
CLASSIFIERS = [
'Development S... | mit | 1,915,068,344,806,989,600 | 27.871287 | 72 | 0.641289 | false |
QianBIG/odoo | addons/account_analytic_plans/account_analytic_plans.py | 143 | 23352 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -2,203,293,159,425,786,400 | 47.148454 | 217 | 0.581149 | false |
plaes/pelican-toc | test_toc.py | 1 | 3458 | from io import open
import unittest
import re
import toc
from pelican.readers import MarkdownReader
from pelican.contents import Article
from pelican.tests.support import get_settings
class TestToCGeneration(unittest.TestCase):
@classmethod
def setUpClass(cls):
toc.init_default_config(None)
... | gpl-2.0 | 8,299,889,745,973,936,000 | 35.4 | 83 | 0.639676 | false |
tastynoodle/django | tests/utils_tests/test_html.py | 5 | 8266 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import datetime
import os
from unittest import TestCase
from django.utils import html
from django.utils._os import upath
from django.utils.encoding import force_text
class TestUtilsHtml(TestCase):
def check_output(self, function, val... | bsd-3-clause | 3,189,181,165,986,022,000 | 41.541237 | 133 | 0.499939 | false |
ramitsurana/boto | tests/unit/cloudtrail/test_layer1.py | 91 | 2731 | #!/usr/bin/env python
import json
from boto.cloudtrail.layer1 import CloudTrailConnection
from tests.unit import AWSMockServiceTestCase
class TestDescribeTrails(AWSMockServiceTestCase):
connection_class = CloudTrailConnection
def default_body(self):
return b'''
{"trailList":
... | mit | -1,230,904,009,054,228,700 | 32.716049 | 79 | 0.58074 | false |
Scarygami/mirror-api-examples | colours-of-the-world/lib/oauth2client/tools.py | 46 | 6819 | # Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 | -8,428,741,695,513,054,000 | 32.263415 | 80 | 0.69277 | false |
Johnetordoff/osf.io | api_tests/registrations/views/test_registration_linked_nodes.py | 11 | 15618 | import pytest
from api.base.settings.defaults import API_BASE
from framework.auth.core import Auth
from api_tests.utils import disconnected_from_listeners
from website.project.signals import contributor_removed
from osf_tests.factories import (
NodeFactory,
AuthUserFactory,
RegistrationFactory
)
@pytest.... | apache-2.0 | 3,617,445,293,764,053,500 | 30.424547 | 106 | 0.589384 | false |
rameshthoomu/fabric | bddtests/peer/peer_pb2_grpc.py | 17 | 1504 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from grpc.framework.common import cardinality
from grpc.framework.interfaces.face import utilities as face_utilities
import peer.proposal_pb2 as peer_dot_proposal__pb2
import peer.proposal_response_pb2 as peer_dot_proposal__response__pb2... | apache-2.0 | 1,513,906,561,986,230,500 | 33.976744 | 98 | 0.739362 | false |
yuezh/azure-linux-extensions | OSPatching/azure/servicemanagement/__init__.py | 46 | 65202 | #-------------------------------------------------------------------------
# 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 | 4,840,583,979,030,230,000 | 30.529014 | 178 | 0.584982 | false |
GeographicaGS/Medinageoportal | data_tools/config.py | 1 | 34005 | # -*- coding: utf-8 -*-
import os
dataPath = "/Users/alasarr/dev/Medinageoportal/data_tools/data/nador"
config = {
"path_input": os.path.join(dataPath,"input"),
"path_output": os.path.join(dataPath,"output"),
"shapepath" : "data/nador",
"mapfile_output_prefix":"nador_",
"date":"01/01/2006",
"layers":
[
{
"... | gpl-3.0 | 2,335,596,505,113,288,000 | 24.18963 | 69 | 0.383826 | false |
home-assistant/home-assistant | tests/helpers/test_discovery.py | 6 | 6983 | """Test discovery helpers."""
from unittest.mock import patch
from homeassistant import setup
from homeassistant.core import callback
from homeassistant.helpers import discovery
from homeassistant.helpers.dispatcher import dispatcher_send
from homeassistant.util.async_ import run_callback_threadsafe
from tests.common... | apache-2.0 | -1,964,127,402,702,180,600 | 31.938679 | 88 | 0.59158 | 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.