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 |
|---|---|---|---|---|---|---|---|---|---|---|
tcpcloud/python-heatclient | heatclient/tests/unit/test_shell.py | 1 | 152649 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | apache-2.0 | 5,590,502,954,060,754,000 | 34.74081 | 79 | 0.509031 | false |
Champs-Libres/QgisGeoJSONExportPlugin | protocol.py | 1 | 1046 | """
QGISGeoJSONExportPlugin is QGIS plugin that helps users to convert
vectorial layer into a GeoJSON file and sends it to a remote server via
ftp, sftp or ftps.
Copyright (C) 2015 Champs-Libres Cooperative <info@Champs-libres.coop>
This file is part of QGISGeoJSONExportPlugin.
QGISGeoJSONExp... | gpl-2.0 | 8,226,735,984,570,058,000 | 37.740741 | 79 | 0.74283 | false |
foobarbazblarg/stayclean | stayclean-2016/display-during-signup.py | 1 | 7417 | #!/usr/bin/python
from participantCollection import ParticipantCollection
import string
import re
import datetime
import pyperclip
# EDIT ME!
# Remember, this is during signup, so current month is not January, it's December.
currentMonthTotalDays = 31
year = 2016
currentMonthIndex = datetime.date.today().month
curren... | mit | 672,789,374,416,088,000 | 64.061404 | 569 | 0.700013 | false |
RaumZeit/gdesklets-core | shell2/control/Assembly.py | 2 | 11061 | import os, logging, tempfile, threading
import Settings
import remote
import local
from Desklet import Desklet
from Control import Control
class Assembly():
''' Fetches the local and remote widgets and creates the
list of all widgets. This is the main interface to the
library through which deskle... | gpl-2.0 | 8,735,029,120,597,045,000 | 33.141975 | 107 | 0.532954 | false |
open-switch/ops-cli | ops-tests/component/test_vtysh_ct_sub_intf_cli.py | 1 | 3908 | # -*- coding: utf-8 -*-
#
# (c) Copyright 2016 Hewlett Packard Enterprise Development LP
#
# GNU Zebra is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any
# later version.... | gpl-2.0 | 8,777,762,350,504,627,000 | 29.53125 | 78 | 0.662487 | false |
alanjw/GreenOpenERP-Win-X86 | python/Lib/test/test_sundry.py | 10 | 3189 | """Do a minimal test of all the modules that aren't otherwise tested."""
from test import test_support
import sys
import unittest
class TestUntestedModules(unittest.TestCase):
def test_at_least_import_untested_modules(self):
with test_support.check_warnings(quiet=True):
import CGIHT... | agpl-3.0 | 119,170,010,981,644,400 | 31.21875 | 82 | 0.556914 | false |
voidshard/pywysteria | wysteria/__init__.py | 1 | 1862 | """The wysteria module provides a python interface for talking to a wysteria asset management
server.
Files:
------
- client.py
high level class that wraps a middleware connection & adds some helpful functions.
- constants.py
various constants used
- errors.py
contains various exceptions that can be rais... | bsd-3-clause | 1,797,359,629,854,592,800 | 24.861111 | 95 | 0.748657 | false |
fake-name/ReadableWebProxy | WebMirror/management/rss_parser_funcs/feed_parse_extractLiliesareflowersBlogspotCom.py | 1 | 1171 | def extractLiliesareflowersBlogspotCom(item):
'''
Parser for 'liliesareflowers.blogspot.com'
'''
if 'Case' in item['title'] and 'Chapter' in item['title'] and 'sci mystery files' in item['tags']:
item['title'] = item['title'].replace("Case", "Volume")
vol, chp, frag, postfix = extractVolChapterFragmentPostfix... | bsd-3-clause | 5,085,246,033,204,230,000 | 42.407407 | 110 | 0.585824 | false |
WarmongeR1/django-categories | categories/south_migration.py | 10 | 5317 | from django.db import models, DatabaseError
from django.core.exceptions import ImproperlyConfigured
from django.utils.translation import ugettext_lazy as _
def migrate_app(sender, app, created_models=None, verbosity=False, *args, **kwargs):
"""
Migrate all models of this app registered
"""
from .field... | apache-2.0 | -3,610,927,945,329,636,400 | 43.308333 | 114 | 0.56893 | false |
nabsboss/CouchPotatoServer | couchpotato/core/downloaders/nzbget/main.py | 4 | 7482 | from base64 import standard_b64encode
from couchpotato.core.downloaders.base import Downloader, StatusList
from couchpotato.core.helpers.encoding import ss
from couchpotato.core.helpers.variable import tryInt, md5
from couchpotato.core.logger import CPLog
from datetime import timedelta
import re
import shutil
import so... | gpl-3.0 | -3,725,303,285,944,774,700 | 41.754286 | 215 | 0.569634 | false |
Jonekee/chromium.src | tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py | 9 | 3164 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from telemetry import decorators
from telemetry.core.platform import android_device
from telemetry.core.platform import android_platform_bac... | bsd-3-clause | -5,556,391,595,541,248,000 | 36.223529 | 79 | 0.702592 | false |
comiconomenclaturist/libretime | python_apps/media-monitor/mm2/media/monitor/eventcontractor.py | 10 | 1222 | from log import Loggable
from events import DeleteFile
class EventContractor(Loggable):
def __init__(self):
self.store = {}
def event_registered(self, evt):
"""
returns true if the event is registered which means that there is
another "unpacked" event somewhere out there with... | agpl-3.0 | -5,578,894,222,356,091,000 | 29.55 | 73 | 0.560556 | false |
comsaint/ccbc | CCBC_Library/ccbclib/migrations/0009_auto_20150320_2149.py | 1 | 1221 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('ccbclib', '0008_auto_20150319_1735'),
]
operations = [
migrations.RemoveField(
model_name='book',
na... | mit | -4,314,308,437,518,122,000 | 26.75 | 81 | 0.54136 | false |
av8ramit/tensorflow | tensorflow/python/training/adam.py | 5 | 9761 | # 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 | -3,974,438,685,185,149,400 | 42.968468 | 80 | 0.648909 | false |
QingkaiLu/RAMCloud | ft/transport.py | 20 | 52602 | # Copyright (c) 2010 Stanford University
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(S) DISCLAIM ... | isc | -1,264,102,854,866,553,900 | 36.979783 | 93 | 0.59762 | false |
pferreir/indico | indico/core/signals/rh.py | 3 | 1547 | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from blinker import Namespace
_signals = Namespace()
process_args = _signals.signal('process-args', ""... | mit | 9,065,240,600,571,018,000 | 36.731707 | 75 | 0.733032 | false |
alexforencich/xfcp | lib/eth/tb/arp_eth_rx/test_arp_eth_rx.py | 2 | 6499 | #!/usr/bin/env python
"""
Copyright (c) 2020 Alex Forencich
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 | 2,344,352,185,801,569,300 | 31.823232 | 116 | 0.664872 | false |
prrvchr/GContactOOo | CloudContactOOo/OAuth2OOo/python/pycparser/c_parser.py | 9 | 69746 | #------------------------------------------------------------------------------
# pycparser: c_parser.py
#
# CParser class: Parser and AST builder for the C language
#
# Eli Bendersky [https://eli.thegreenplace.net/]
# License: BSD
#------------------------------------------------------------------------------
import r... | gpl-3.0 | 2,491,521,810,331,065,300 | 36.437466 | 134 | 0.52446 | false |
zqzhang/crosswalk-test-suite | apptools/apptools-windows-tests/apptools/check_d3dcompiler_47.py | 14 | 2672 | #!/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 | -7,016,055,141,416,421,000 | 44.288136 | 169 | 0.704716 | false |
vmora/QGIS | python/plugins/processing/algs/qgis/NearestNeighbourAnalysis.py | 12 | 6324 | # -*- coding: utf-8 -*-
"""
***************************************************************************
NearestNeighbourAnalysis.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
**************... | gpl-2.0 | 3,995,083,986,963,012,600 | 38.037037 | 161 | 0.548071 | false |
python-thumbnails/python-thumbnails | thumbnails/engines/pillow_engine.py | 2 | 1949 | # -*- coding: utf-8 -*-
from io import BytesIO
from thumbnails.errors import ThumbnailError
from .base import BaseThumbnailEngine
class PillowEngine(BaseThumbnailEngine):
"""
Thumbnail engine for Pillow
"""
def __init__(self):
super(PillowEngine, self).__init__()
from PIL import Ima... | mit | 1,300,380,296,833,913,300 | 28.984615 | 100 | 0.591072 | false |
fgschwan/bgp-agent | vendor/github.com/osrg/gobgp/test/scenario_test/bgp_zebra_test.py | 5 | 11415 | # Copyright (C) 2015 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | apache-2.0 | -6,022,300,984,305,863,000 | 35.822581 | 96 | 0.56233 | false |
2013Commons/hue | desktop/libs/libopenid/src/libopenid/urls.py | 2 | 1026 | #!/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 | -1,580,842,266,935,819,300 | 41.75 | 74 | 0.741715 | false |
jhajek/euca2ools | euca2ools/commands/ec2/describetags.py | 5 | 1965 | # Copyright 2009-2013 Eucalyptus Systems, Inc.
#
# Redistribution and use of this software in source and binary forms,
# with or without modification, are permitted provided that the following
# conditions are met:
#
# Redistributions of source code must retain the above copyright notice,
# this list of conditions ... | bsd-2-clause | -654,426,396,738,239,200 | 44.697674 | 74 | 0.715013 | false |
Jajcus/pyxmpp2 | pyxmpp2/sasl/xfacebookplatform.py | 1 | 2510 | #
# (C) Copyright 2012 Ramnath Krishnamurthy <k.ramnath@gmail.com>
# (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.
#... | lgpl-2.1 | -431,710,253,335,816,300 | 34.352113 | 77 | 0.688048 | false |
flavour/ifrc_qa | controllers/climate.py | 32 | 15488 | # -*- coding: utf-8 -*-
module = request.controller
resourcename = request.function
if not settings.has_module(module):
raise HTTP(404, body="Module disabled: %s" % module)
ClimateDataPortal = local_import("ClimateDataPortal")
SampleTable = ClimateDataPortal.SampleTable
DSL = local_import("ClimateDataPortal.DSL... | mit | -8,543,228,337,034,546,000 | 31.948936 | 126 | 0.475203 | false |
zero-rp/miniblink49 | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py | 27 | 14685 | # Copyright (C) 2010 Google Inc. All rights reserved.
# Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Szeged
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of so... | apache-2.0 | -2,891,372,534,256,081,400 | 42.318584 | 190 | 0.645761 | false |
Wuteyan/VTK | Examples/Modelling/Python/SpherePuzzle.py | 9 | 3832 | #!/usr/bin/env python
# A game with VTK and Tkinter. :)
import Tkinter
import vtk
from vtk.tk.vtkTkRenderWindowInteractor import vtkTkRenderWindowInteractor
# Create the pipeline
puzzle = vtk.vtkSpherePuzzle()
mapper = vtk.vtkPolyDataMapper()
mapper.SetInputConnection(puzzle.GetOutputPort())
actor = vtk.vtkActor()
a... | bsd-3-clause | -7,118,863,025,131,720,000 | 22.509202 | 74 | 0.697547 | false |
dhermes/google-cloud-python | trace/google/cloud/trace_v1/proto/trace_pb2_grpc.py | 4 | 4755 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.cloud.trace_v1.proto import (
trace_pb2 as google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2,
)
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
class TraceServiceStub(object):
... | apache-2.0 | -3,623,177,526,772,744,000 | 48.53125 | 133 | 0.712513 | false |
subailong/ns3-wireless-planning.ns-3 | bindings/python/apidefs/gcc-LP64/ns3_module_topology_read.py | 4 | 11718 | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
def register_types(module):
root_module = module.get_root()
## topology-reader.h: ns3::TopologyReader [class]
module.add_class('TopologyReader', parent=root_module['ns3::Object'])
## topology-reader.h: ns3::TopologyR... | gpl-2.0 | -6,560,379,367,311,051,000 | 43.725191 | 280 | 0.634409 | false |
hpsbranco/subliminal | subliminal/video.py | 5 | 10062 | # -*- coding: utf-8 -*-
from __future__ import division
from datetime import datetime, timedelta
import logging
import os
from guessit import guessit
from rebulk.loose import ensure_list
from subliminal.utils import matches_title
logger = logging.getLogger(__name__)
#: Video extensions
VIDEO_EXTENSIONS = ('.3g2', '... | mit | -5,305,478,294,441,291,000 | 36.827068 | 120 | 0.597297 | false |
jvdm/AutobahnPython | examples/twisted/websocket/multiproto/server2.py | 14 | 2958 | ###############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
#
# 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 with... | mit | 6,989,686,495,693,573,000 | 34.638554 | 108 | 0.691684 | false |
setphen/Donsol | game/models.py | 1 | 12356 | # Donsol game
import random
import sys
from time import time
import logging
HEART = 1
DIAMOND = 2
SPADE = 3
CLUB = 4
JOKER = 5
SUIT_NAMES = {HEART: "Hearts",
SPADE: "Spades",
DIAMOND: "Diamonds",
CLUB: "Clubs",
JOKER: "Joker"}
SUIT_TYPES = {HEART: "Potion",
... | mit | -3,435,443,545,452,855,000 | 27.5338 | 103 | 0.520709 | false |
endolith/scipy | scipy/linalg/tests/test_solve_toeplitz.py | 21 | 4039 | """Test functions for linalg._solve_toeplitz module
"""
import numpy as np
from scipy.linalg._solve_toeplitz import levinson
from scipy.linalg import solve, toeplitz, solve_toeplitz
from numpy.testing import assert_equal, assert_allclose
import pytest
from pytest import raises as assert_raises
def test_solve_equival... | bsd-3-clause | -2,502,177,935,318,085,000 | 32.380165 | 79 | 0.619955 | false |
VoIP-co-uk/sftf | UserAgentBasicTestSuite/case225reuse.py | 2 | 3045 | #
# Copyright (C) 2004 SIPfoundry Inc.
# Licensed by SIPfoundry under the GPL license.
#
# Copyright (C) 2004 SIP Forum
# Licensed to SIPfoundry under a Contributor Agreement.
#
#
# This file is part of SIP Forum User Agent Basic Test Suite which
# belongs to the SIP Forum Test Framework.
#
# SIP Forum User Agent Basic... | gpl-2.0 | -9,148,152,086,702,735,000 | 33.602273 | 95 | 0.728079 | false |
nortikin/sverchok | utils/adaptive_surface.py | 2 | 10965 | # This file is part of project Sverchok. It's copyrighted by the contributors
# recorded in the version control history of the file, available from
# its original location https://github.com/nortikin/sverchok/commit/master
#
# SPDX-License-Identifier: GPL3
# License-Filename: LICENSE
import numpy as np
import numpy.... | gpl-3.0 | 2,903,432,861,380,853,000 | 40.534091 | 255 | 0.605837 | false |
vmg/hg-stable | tests/test-url.py | 5 | 7622 | import os
def check(a, b):
if a != b:
print (a, b)
def cert(cn):
return dict(subject=((('commonName', cn),),))
from mercurial.sslutil import _verifycert
# Test non-wildcard certificates
check(_verifycert(cert('example.com'), 'example.com'),
None)
check(_verifycert(cert('example.com'), 'www.exa... | gpl-2.0 | -711,497,034,683,469,600 | 29.98374 | 78 | 0.54159 | false |
MontrealCorpusTools/MFA-reorganization-scripts | Switchboard/check_data_amount.py | 1 | 8436 | import xml.etree.ElementTree as ET
import textgrid as tg
import re
import sys
import os
from pathlib import Path
from collections import defaultdict
"""
check to see how much data would be lost if we ignored segments that cause problems
(very small percentage)
"""
class Word(object):
"""word object to keep track o... | mit | 1,702,822,675,310,561,800 | 33.720165 | 158 | 0.589497 | false |
jbaginski/androguard | androguard/core/bytecodes/apk.py | 2 | 59154 | # This file is part of Androguard.
#
# Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr>
# 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... | apache-2.0 | -4,689,714,615,746,958,000 | 31.430921 | 283 | 0.531967 | false |
emergence/suds-philpem | suds/builder.py | 3 | 4170 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the (LGPL) GNU Lesser General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will b... | lgpl-3.0 | 8,217,623,370,033,668,000 | 33.75 | 85 | 0.574101 | false |
parrt/msan692 | hw/code/search/test_berlitz.py | 1 | 7673 | import sys
from linear_search import linear_search
from index_search import index_search, create_index
from myhtable_search import myhtable_index_search, myhtable_create_index
from words import filelist, words, filenames
"""
Run with
$ python -m pytest -v test_berlitz.py berlitz1rootdir
...
test_berlitz.py::test_li... | mit | -6,438,389,018,327,157,000 | 36.79803 | 88 | 0.579825 | false |
pchauncey/ansible | test/units/modules/packaging/utils.py | 26 | 1379 | import json
from ansible.compat.tests.mock import patch
from ansible.module_utils import basic
from ansible.module_utils.six.moves import xmlrpc_client
from ansible.module_utils._text import to_bytes
def set_module_args(args):
args = json.dumps({'ANSIBLE_MODULE_ARGS': args})
basic._ANSIBLE_ARGS = to_bytes(ar... | gpl-3.0 | -3,394,479,603,932,681,700 | 26.039216 | 96 | 0.671501 | false |
jrha/artemis | plugins/snmp_pdu_apc.py | 2 | 2431 | #!/usr/bin/python
# coding=utf8
#
# Copyright Science and Technology Facilities Council, 2009-2012.
#
# This file is part of ARTEMIS.
#
# ARTEMIS 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 ve... | gpl-3.0 | 3,909,045,947,955,725,300 | 30.571429 | 108 | 0.583299 | false |
mzhaom/grpc | src/python/src/grpc/framework/foundation/_later_test.py | 12 | 5091 | # Copyright 2015, Google 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 retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | 4,641,562,692,902,223,000 | 32.715232 | 80 | 0.698488 | false |
AddonScriptorDE/script.screensaver.apple_itunes_trailer | default.py | 1 | 1154 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib
import urllib2
import re
import xbmcplugin
import xbmcgui
import xbmcaddon
addon = xbmcaddon.Addon()
pluginhandle = int(sys.argv[1])
quality = addon.getSetting("quality")
quality = ["480p", "720p", "1080p"][int(quality)]
opener = urllib2.build_opener()
opener.add... | gpl-2.0 | -8,231,395,208,080,196,000 | 29.368421 | 87 | 0.659445 | false |
yceruto/django | django/contrib/gis/tests/relatedapp/models.py | 5 | 1836 | from django.contrib.gis.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Location(models.Model):
point = models.PointField()
objects = models.GeoManager()
def __str__(self):
return self.point.wkt
@python_2_unicode_compatible
class... | bsd-3-clause | -97,544,384,636,205,310 | 26.402985 | 71 | 0.70915 | false |
haginara/csvkit | csvkit/table.py | 21 | 8862 | #!/usr/bin/env python
import datetime
import itertools
import six
from csvkit import CSVKitReader, CSVKitWriter
from csvkit import sniffer
from csvkit import typeinference
from csvkit.cli import parse_column_identifiers
from csvkit.headers import make_default_headers
class InvalidType(object):
"""
Dummy obj... | mit | -8,504,247,958,784,129,000 | 29.453608 | 171 | 0.558565 | false |
ijzer/cwbot-ndy | cwbot/kolextra/request/UneffectRequest.py | 1 | 1674 | from kol.request.GenericRequest import GenericRequest
from kol.manager import PatternManager
from cwbot.locks import InventoryLock
class UneffectRequest(GenericRequest):
"""Uses a soft green echo eyedrop antidote to remove any effect.
Modified to use InventoryLock and does not throw. """
def __init__(sel... | bsd-3-clause | -6,187,343,198,100,638,000 | 43.052632 | 122 | 0.691159 | false |
t3dev/odoo | addons/hr_recruitment/__manifest__.py | 1 | 1120 | # -*- encoding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Recruitment',
'version': '1.0',
'category': 'Human Resources/Recruitment',
'sequence': 90,
'summary': 'Track your recruitment pipeline',
'description': "",
'website': 'https://www... | gpl-3.0 | 825,510,586,245,327,700 | 27 | 74 | 0.563393 | false |
jcoady9/python-for-android | python3-alpha/python3-src/Lib/sqlite3/test/factory.py | 46 | 7816 | #-*- coding: ISO-8859-1 -*-
# pysqlite2/test/factory.py: tests for the various factories in pysqlite
#
# 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 liab... | apache-2.0 | 2,283,545,267,391,743,700 | 37.126829 | 104 | 0.621162 | false |
exaile/exaile | plugins/previewdevice/previewprefs.py | 1 | 4133 | # Copyright (C) 2012 Dustin Spicuzza
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that... | gpl-2.0 | 6,819,725,019,048,494,000 | 34.025424 | 85 | 0.744012 | false |
cLupus/neighborhood_classifier | src/Classifier/finding_parameters.py | 1 | 2619 | # -*- coding: utf-8 -*-
"""
A collection of methods that can search for good parameters for the neural network
"""
__author__ = 'Sindre Nistad'
from Classifier.neural_network import ClassificationNet
from RegionOfInterest.regions_of_interest import RegionsOfInterest
folder = '../ASCII roi/'
normalized = 'normalizing/... | gpl-3.0 | -1,569,314,974,323,603,500 | 50.352941 | 120 | 0.657503 | false |
moyogo/fontbakery | Lib/fontbakery/profiles/universal.py | 1 | 42459 | import os
from fontbakery.checkrunner import Section, PASS, FAIL, WARN, ERROR, INFO, SKIP
from fontbakery.callable import condition, check, disable
from fontbakery.message import Message
from fontbakery.fonts_profile import profile_factory
from fontbakery.profiles.opentype import OPENTYPE_PROFILE_CHECKS
from fontbaker... | apache-2.0 | -1,169,679,279,730,819,000 | 39.006598 | 479 | 0.588334 | false |
Dioptas/pymatgen | pymatgen/io/qchemio.py | 3 | 78861 | # coding: utf-8
from __future__ import unicode_literals
import textwrap
"""
This module implements input and output processing from QChem.
"""
import copy
import re
import numpy as np
from string import Template
import six
from monty.io import zopen
from pymatgen.core.operations import SymmOp
from pymatgen.core.st... | mit | 2,257,378,943,983,588,400 | 43.19843 | 111 | 0.484908 | false |
matthaywardwebdesign/rethinkdb | test/interface/net_corruption.py | 29 | 2053 | #!/usr/bin/env python
# Copyright 2012-2014 RethinkDB, all rights reserved.
from __future__ import print_function
import os, random, socket, sys, time
startTime = time.time()
try:
xrange
except NameError:
xrange = range
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir,... | agpl-3.0 | 2,676,680,616,462,617,000 | 35.017544 | 145 | 0.667316 | false |
sobomax/virtualbox_64bit_edd | src/VBox/HostServices/SharedOpenGL/crserverlib/server_simpleget.py | 12 | 5362 | # Copyright (c) 2001, Stanford University
# All rights reserved.
#
# See the file LICENSE.txt for information on redistributing this software.
import sys
import apiutil
apiutil.CopyrightC()
print """#include "cr_spu.h"
#include "chromium.h"
#include "cr_error.h"
#include "cr_mem.h"
#include "cr_net.h"
#include "se... | gpl-2.0 | 2,396,630,689,099,636,700 | 34.509934 | 206 | 0.603693 | false |
pllim/astropy | astropy/io/fits/tests/test_table.py | 2 | 140608 | # Licensed under a 3-clause BSD style license - see PYFITS.rst
import contextlib
import copy
import gc
import pickle
import re
import pytest
import numpy as np
from numpy import char as chararray
try:
import objgraph
HAVE_OBJGRAPH = True
except ImportError:
HAVE_OBJGRAPH = False
from astropy.io import f... | bsd-3-clause | 879,478,423,674,977,200 | 39.173714 | 96 | 0.554926 | false |
YSTV/PiVTDesktop | pivtcontrol.py | 1 | 5462 | import asyncore
import asynchat2
import socket
import shlex
import wx
import threading
from time import sleep
import re
class PiVTControl(asynchat2.async_chat):
"""Sends messages to a VT servers and handles status update responses
"""
playing = ""
loaded = ""
automode = False
connected = False
filelist = No... | gpl-3.0 | -1,270,691,405,110,780,700 | 21.481481 | 71 | 0.621201 | false |
tornadozou/tensorflow | tensorflow/python/util/tf_inspect.py | 18 | 5073 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -4,280,213,996,948,963,300 | 33.986207 | 80 | 0.73014 | false |
aakashsinha19/Aspectus | Image Classification/models/street/python/shapes.py | 17 | 8837 | # 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 | -1,594,961,012,872,693,200 | 39.912037 | 80 | 0.664026 | false |
gzsombor/ranger | security-admin/scripts/rolebasedusersearchutil.py | 1 | 6480 | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | apache-2.0 | -2,513,963,787,155,781,000 | 39.754717 | 297 | 0.58966 | false |
tcmoore3/mdtraj | mdtraj/tests/test_binpos.py | 8 | 5236 | ##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2013 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors:
#
# MDTraj is free software: y... | lgpl-2.1 | -7,953,703,465,647,516,000 | 28.75 | 81 | 0.617074 | false |
CydarLtd/ansible | lib/ansible/plugins/lookup/dig.py | 22 | 8732 | # (c) 2015, Jan-Piet Mens <jpmens(at)gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | gpl-3.0 | -5,020,420,545,118,961,000 | 38.511312 | 114 | 0.487403 | false |
jravesloot/sift_app | sift/concerts/management/commands/update_live.py | 2 | 1420 | """
concerts/management/commands/live_update.py
Regular job to refresh the site (Heroku deployment).
Deletes existing concert matches, then runs scrape_shows and make_matches
commmands to populate ConcertMatch table.
"""
from datetime import datetime
import logging
import sys
from django.core.management.base import... | mit | 5,039,632,714,278,715,000 | 26.843137 | 76 | 0.674648 | false |
Nick-Hall/gramps | gramps/plugins/webreport/person.py | 4 | 95909 | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com>
# Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk>
# Copyright (C) 2007-2009 Stephane Charet... | gpl-2.0 | 2,479,885,510,231,818,000 | 43.381768 | 80 | 0.45538 | false |
amplifylitco/asiaq | bin/disco_ssh.py | 1 | 5817 | #!/usr/bin/env python
"""
Asiaq SSH utility. Starts an ssh session to a host by automatically determining whether to use its
private ip, public ip, or to tunnel through a jump host.
Usage:
disco_ssh.py [options] <host>
Variables:
<host> A hostname/hostclass/instance substring
Options:
-... | bsd-2-clause | 3,494,704,666,929,477 | 35.816456 | 108 | 0.6022 | false |
google/grr | grr/server/grr_response_server/flows/general/discovery_test.py | 1 | 18221 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""Tests for Interrogate."""
import platform
import socket
from typing import Iterable
from typing import Iterator
from unittest import mock
from absl import app
from grr_response_client.client_actions import admin
from grr_response_core import config
from grr_response... | apache-2.0 | 1,657,469,768,317,814,000 | 37.850746 | 80 | 0.671697 | false |
ValFadeev/ansible-modules-core | cloud/amazon/_ec2_ami_search.py | 20 | 6424 | #!/usr/bin/python
#
# (c) 2013, Nimbis Services
#
# 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 ver... | gpl-3.0 | 160,485,585,073,174,560 | 30.80198 | 142 | 0.621575 | false |
bastianh/django-eve-auth | eve_auth/models.py | 1 | 3736 | from django.db import models
from django.conf import settings
from django.db.models.signals import post_save
from django.dispatch import receiver
from model_utils import Choices
from model_utils.fields import StatusField, MonitorField, AutoCreatedField
from eve_auth.tasks import update_character_info
class Alliance(... | bsd-2-clause | 8,971,547,347,831,411,000 | 32.061947 | 88 | 0.704497 | false |
hoheinzollern/tracker | tests/functional-tests/200-backup-restore.py | 4 | 12132 | #!/usr/bin/python
#
# Copyright (C) 2010, Nokia <ivan.frade@nokia.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.... | lgpl-2.1 | 4,435,889,542,415,546,400 | 36.444444 | 107 | 0.572041 | false |
lowtalker/marionette | marionette_tg/dsl_tests.py | 3 | 22135 | import sys
import unittest
sys.path.append('.')
import marionette_tg.dsl
class Tests(unittest.TestCase):
def test1(self):
mar_format = """connection(tcp, 80):
start downstream NULL 1.0
downstream upstream http_get 1.0
upstream end http_ok 1.0
... | apache-2.0 | -7,121,425,066,730,274,000 | 39.245455 | 88 | 0.578993 | false |
jbzdak/edx-platform | openedx/core/djangoapps/profile_images/views.py | 21 | 8487 | """
This module implements the upload and remove endpoints of the profile image api.
"""
from contextlib import closing
import datetime
import itertools
import logging
from django.utils.translation import ugettext as _
from django.utils.timezone import utc
from rest_framework import permissions, status
from rest_frame... | agpl-3.0 | -5,105,594,736,676,393,000 | 36.387665 | 114 | 0.672087 | false |
ifduyue/sentry | src/sentry/south_migrations/0080_auto__chg_field_affecteduserbygroup_ident.py | 5 | 32234 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'AffectedUserByGroup.ident'
db.alter_column(
'sentry_affecteduserbygroup', 'ide... | bsd-3-clause | 8,805,969,128,078,291,000 | 34.61768 | 107 | 0.380778 | false |
xyyangkun/git-repo | subcmds/start.py | 10 | 3728 | #
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | apache-2.0 | 4,856,362,094,421,579,000 | 32.585586 | 79 | 0.638948 | false |
Inspq/ansible | lib/ansible/plugins/connection/chroot.py | 46 | 7597 | # Based on local.py (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2013, Maykel Moya <mmoya@speedyrails.com>
# (c) 2015, Toshio Kuratomi <tkuratomi@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 ... | gpl-3.0 | -181,259,512,652,783,650 | 42.411429 | 121 | 0.634461 | false |
Max77T/plantmap-plugin | mapgenerator.py | 1 | 10979 | # coding: utf8
import json
from metadata_writer import MetadataWriter
from datetime import datetime
import os
from logger import *
from handlers import *
import csv
from IplantMapThread import PlantMapThreadInterface
from qgis_utils import QgisUtils
from plantmap_engine import ObjectJSON
class GenerateException(Excep... | gpl-3.0 | -6,020,674,939,871,731,000 | 44.820084 | 161 | 0.586065 | false |
muxi/grpc | src/python/grpcio/grpc/experimental/aio/_channel.py | 1 | 10314 | # Copyright 2019 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... | apache-2.0 | -5,584,916,159,920,146,000 | 36.505455 | 90 | 0.622843 | false |
Kongsea/tensorflow | tensorflow/python/kernel_tests/pool_test.py | 15 | 14370 | # 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 | 2,249,809,903,311,584,500 | 36.421875 | 80 | 0.524287 | false |
imsparsh/python-for-android | python3-alpha/extra_modules/gdata/gauth.py | 46 | 58779 | #!/usr/bin/env python
#
# Copyright (C) 2009 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 ... | apache-2.0 | -2,152,558,149,766,664,400 | 36.391221 | 91 | 0.684853 | false |
handspring/bite-project | deps/mrtaskman/server/third_party/prodeagle/auth.py | 16 | 2985 | #!/usr/bin/env python
#
# Copyright 2011 MiuMeet AG.
#
# 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 | 1,342,527,057,681,083,400 | 31.096774 | 77 | 0.646901 | false |
sendencoin/sendencoin | contrib/pyminer/pyminer.py | 1 | 6435 | #!/usr/bin/python
#
# Copyright (c) 2011 The Bitcoin developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
import time
import json
import pprint
import hashlib
import struct
import re
import base64
import httplib
import... | mit | 8,884,353,500,144,447,000 | 24.535714 | 84 | 0.648951 | false |
AndreaMordenti/spotydowny | appJar/lib/TkDND_wrapper.py | 4 | 3589 | # http://stackoverflow.com/questions/14267900/python-drag-and-drop-explorer-files-to-tkinter-entry-widget/
import os
try: import tkinter
except: import Tkinter as tkinter
def _load_tkdnd(master):
tkdndlib = os.environ.get('TKDND_LIBRARY')
if tkdndlib:
master.tk.eval('global auto_path; lappend auto_path... | mit | -5,267,202,155,328,851,000 | 36.778947 | 106 | 0.590694 | false |
umbrellaTech/pyaboleto-django-templates | boleto/views.py | 1 | 1865 | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright 2015 Umbrella Tech.
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... | mit | 9,083,610,337,161,908,000 | 46.769231 | 115 | 0.745035 | false |
ctruchi/deluge-webui2 | deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py | 5 | 4232 | #
# gtkui.py
#
# Copyright (C) 2009 Damien Churchill <damoxc@gmail.com>
#
# Basic plugin template created by:
# Copyright (C) 2008 Martijn Voncken <mvoncken@gmail.com>
# Copyright (C) 2007-2009 Andrew Resch <andrewresch@gmail.com>
#
# Deluge is free software.
#
# You may redistribute it and/or modify it under the terms... | gpl-3.0 | -1,281,889,486,396,738,600 | 38.185185 | 93 | 0.683129 | false |
glue-viz/glue-qt | glue/qt/widgets/image_widget.py | 1 | 11658 | from functools import partial
from ...external.qt.QtGui import (QWidget, QAction,
QToolButton, QIcon, QMessageBox)
from ...external.qt.QtCore import Qt
import matplotlib.cm as cm
from .data_viewer import DataViewer
from ... import core
from ...clients.image_client import ImageClien... | bsd-3-clause | -2,915,125,001,636,152,300 | 33.8 | 76 | 0.597958 | false |
wkritzinger/asuswrt-merlin | release/src/router/samba36/lib/dnspython/tests/namedict.py | 21 | 3460 | # Copyright (C) 2003-2007, 2009, 2010 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED ... | gpl-2.0 | -3,509,093,107,185,907,000 | 32.921569 | 72 | 0.627168 | false |
bootleg/ret-sync | ext_ida/retsync/rsconfig.py | 1 | 7538 | #
# Copyright (C) 2019-2021, Alexandre Gazet.
#
# This file is part of ret-sync.
#
# ret-sync 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 ve... | gpl-3.0 | -88,467,151,343,100,370 | 27.55303 | 107 | 0.612231 | false |
sprockets/sprockets-dynamodb | examples/create-table.py | 1 | 2321 | """
Create the table described in `CreateTable`_.
This example creates a table if it does not exist using chained
callbacks.
.. _CreateTable: http://docs.aws.amazon.com/amazondynamodb/latest/
APIReference/API_CreateTable.html
"""
import logging
import sys
import sprockets_dynamodb as dynamodb
from tornado import... | bsd-3-clause | -7,338,743,718,523,412,000 | 28.0125 | 74 | 0.589832 | false |
alexander0205/js-v2-samples | elections/2008/primary/states/mi/shaper.py | 6 | 9739 | #!/usr/bin/env python
iconBaseUrl = 'http://googlemaps.github.io/js-v2-samples/elections/2008/images/icons/'
import private
import os
import reader
import elementtree.ElementTree as ET
import simplejson as sj
import random
#def str( text ):
# strings = {
# 'county': 'town',
# 'counties': 'towns'
# }
# return strin... | apache-2.0 | 5,752,688,350,060,150,000 | 28.246246 | 136 | 0.638053 | false |
rjpower/fastnet | setup.py | 1 | 1156 | #!/usr/bin/env python
import os
import sys
from distutils.spawn import find_executable
from distutils import sysconfig
from setuptools import setup
os.environ['CXX'] = 'nvcc'
os.environ['CC'] = 'nvcc'
def log(str):
print >>sys.stderr, str
if find_executable('nvcc') is None:
log('nvcc not in path; aborting')
... | gpl-3.0 | -8,889,378,923,867,697,000 | 20.811321 | 77 | 0.632353 | false |
pdellaert/ansible | lib/ansible/module_utils/aws/s3.py | 13 | 1495 | # Copyright (c) 2018 Red Hat, Inc.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
try:
from botocore.exceptions import BotoCoreError, ClientError
except ImportError:
pass # Handled by the calling module
HAS_MD5 = True
try:
from hashlib import md5
except Imp... | gpl-3.0 | -914,991,165,080,734,300 | 30.808511 | 92 | 0.57592 | false |
ita1024/samba | third_party/waf/wafadmin/Build.py | 20 | 28499 | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005 (ita)
"""
Dependency tree holder
The class Build holds all the info related to a build:
* file system representation (tree of Node instances)
* various cached objects (task signatures, file scan results, ..)
There is only one Build object at a time (bld sin... | gpl-3.0 | 8,162,687,046,539,370,000 | 26.508687 | 114 | 0.653742 | false |
naresh21/synergetics-edx-platform | lms/djangoapps/certificates/tests/test_cert_management.py | 14 | 10636 | """Tests for the resubmit_error_certificates management command. """
import ddt
from django.core.management.base import CommandError
from nose.plugins.attrib import attr
from django.test.utils import override_settings
from mock import patch
from course_modes.models import CourseMode
from opaque_keys.edx.locator import... | agpl-3.0 | 3,928,374,687,545,027,000 | 40.065637 | 108 | 0.678451 | false |
Yannig/ansible | lib/ansible/plugins/connection/accelerate.py | 4 | 14471 | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | gpl-3.0 | -6,255,139,847,968,315,000 | 43.253823 | 154 | 0.595536 | false |
Beit-Hatfutsot/dbs-back | docker/pipelines/load_from_es.py | 1 | 4457 | from datapackage_pipelines.wrapper import ingest, spew
from datapackage_pipelines.utilities.resources import PROP_STREAMING
import elasticsearch.helpers
from elasticsearch import Elasticsearch
from temp_loglevel import temp_loglevel
import settings
parameters, datapackage, resource_iterator = ingest()
stats = {"total... | agpl-3.0 | 176,313,904,452,270,460 | 56.141026 | 140 | 0.417545 | false |
fffonion/MAClient | plugins/reward_box_card_helper.py | 1 | 1892 | # coding:utf-8
from _prototype import plugin_prototype
from cross_platform import *
# start meta
__plugin_name__ = '领礼物盒里x星以上卡片'
__author = 'fffonion'
__version__ = 0.3
__tip__ = '如输入 rb !5 领取5星及以上卡片'
hooks = {'ENTER_reward_box':1}
extra_cmd = {}
# end meta
class plugin(plugin_prototype):
def ENTER_rewa... | gpl-3.0 | 5,617,105,634,653,615,000 | 33.708333 | 92 | 0.474299 | false |
luyishisi/tensorflow | 4.Object_Detection/object_detection/core/balanced_positive_negative_sampler.py | 23 | 3877 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | bsd-2-clause | 1,978,476,676,876,121,900 | 41.141304 | 80 | 0.688419 | false |
vakaras/db-utils | docs/conf.py | 1 | 3707 | # -*- coding: utf-8 -*-
# -- General configuration ------------------------------------------------
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'rst2pdf.pdfbuilder',
]
templates_path = []
source_suffix = '.... | lgpl-3.0 | -2,252,533,510,216,870,100 | 25.105634 | 79 | 0.643108 | false |
cloudwatt/contrail-controller | src/config/svc-monitor/svc_monitor/tests/test_init.py | 2 | 4204 | import contextlib
import logging
import mock
import unittest
from mock import patch
from svc_monitor.svc_monitor import SvcMonitor
from svc_monitor.db import ServiceMonitorDB
from pysandesh.sandesh_base import Sandesh
from vnc_api.vnc_api import IdPermsType
from vnc_api.vnc_api import ServiceInstance, ServiceInstanc... | apache-2.0 | -9,123,373,095,901,109,000 | 39.423077 | 88 | 0.59491 | false |
flyingfish007/tempest | tempest/tests/common/test_waiters.py | 7 | 2958 | # Copyright 2014 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | apache-2.0 | -1,377,563,227,233,649,000 | 42.5 | 78 | 0.642664 | 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.