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 |
|---|---|---|---|---|---|---|---|---|---|---|
apache/beam | sdks/python/apache_beam/runners/__init__.py | 5 | 1352 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | -6,924,085,677,973,655,000 | 44.066667 | 80 | 0.802515 | false |
not-raspberry/pytest_reorder | tests/test_pytest_reorder.py | 1 | 8644 | """Pytest-reorder test suite."""
import re
import pytest
import subprocess
from mock import Mock
from pytest_reorder import (
default_reordering_hook, unpack_test_ordering, make_reordering_hook,
DEFAULT_ORDER
)
from pytest_reorder.reorder import (
EmptyTestsOrderList, UndefinedUnmatchedTestsOrder
)
@pyte... | mit | -9,059,478,554,468,184,000 | 37.936937 | 100 | 0.632693 | false |
wkritzinger/asuswrt-merlin | release/src/router/samba36/lib/testtools/testtools/tests/test_run.py | 20 | 2429 | # Copyright (c) 2010 Testtools authors. See LICENSE for details.
"""Tests for the test runner logic."""
from testtools.helpers import try_import, try_imports
fixtures = try_import('fixtures')
StringIO = try_imports(['StringIO.StringIO', 'io.StringIO'])
import testtools
from testtools import TestCase, run
if fixtur... | gpl-2.0 | -5,781,118,297,902,162,000 | 30.960526 | 77 | 0.637711 | false |
openstack/senlin | senlin/engine/senlin_lock.py | 1 | 5991 | # 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 unde... | apache-2.0 | 2,965,878,022,649,935,400 | 36.917722 | 77 | 0.646804 | false |
patricklaw/pants | src/python/pants/testutil/option_util.py | 4 | 2568 | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from typing import Iterable, Mapping, Type, TypeVar, cast
from pants.engine.goal import GoalSubsystem
from pants.option.option_value_container import O... | apache-2.0 | -8,025,968,511,532,255,000 | 34.666667 | 97 | 0.71067 | false |
osu-cass/whats-fresh-api | whats_fresh/whats_fresh_api/tests/models/test_vendor_product_join_model.py | 2 | 1986 | from django.test import TestCase
from whats_fresh.whats_fresh_api.models import (VendorProduct,
ProductPreparation, Product,
Preparation, Vendor)
from django.contrib.gis.db import models
class VendorProductJoinTestCase(Te... | apache-2.0 | -5,035,918,078,256,444,000 | 35.777778 | 77 | 0.559416 | false |
hxue920/9001 | server/project/apps/core/migrations/0001_initial.py | 5 | 1956 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-01-16 06:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Favori... | mit | -5,541,745,379,833,490,000 | 34.563636 | 114 | 0.519427 | false |
theo-l/django | tests/defer/tests.py | 33 | 11474 | from django.core.exceptions import FieldError
from django.test import TestCase
from .models import (
BigChild, Child, ChildProxy, Primary, RefreshPrimaryProxy, Secondary,
)
class AssertionMixin:
def assert_delayed(self, obj, num):
"""
Instances with deferred fields look the same as normal ins... | bsd-3-clause | 8,002,776,743,093,707,000 | 41.183824 | 92 | 0.617396 | false |
wisechengyi/pants | src/python/pants/backend/jvm/tasks/coverage/cobertura.py | 2 | 15059 | # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import functools
import os
import shutil
from collections import defaultdict
from pants.backend.jvm.tasks.classpath_util import ClasspathUtil
from pants.backend.jvm.tasks.coverage.engine ... | apache-2.0 | -9,101,340,946,120,089,000 | 44.772036 | 106 | 0.593134 | false |
eddturtle/WeatherPi | web-api.py | 1 | 1517 | #!/usr/bin/python
import time
import datetime as dt
import sqlite3 as lite
from flask import Flask, jsonify, render_template
app = Flask(__name__)
def connectDB():
connection = lite.connect('weather.db')
connection.row_factory = dictFactory
return connection
def dictFactory(cursor, row):
d = {}
for idx, ... | mit | -3,343,943,770,565,058,600 | 23.467742 | 79 | 0.661173 | false |
kenmcc/mypywws | src/pywws/Logger.py | 2 | 1838 | #!/usr/bin/env python
# pywws - Python software for USB Wireless Weather Stations
# http://github.com/jim-easterbrook/pywws
# Copyright (C) 2008-14 Jim Easterbrook jim@jim-easterbrook.me.uk
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
... | gpl-2.0 | -4,124,203,621,850,422,000 | 35.76 | 81 | 0.708923 | false |
louisLouL/pair_trading | capstone_env/lib/python3.6/site-packages/sqlalchemy/sql/dml.py | 32 | 33439 | # sql/dml.py
# Copyright (C) 2009-2017 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
Provide :class:`.Insert`, :class:`.Update` and :class:`.Delete`.
"""
from .base impo... | mit | 4,854,731,903,291,692,000 | 38.293772 | 87 | 0.60555 | false |
rationalAgent/edx-platform-custom | lms/djangoapps/courseware/tests/test_videoalpha_mongo.py | 2 | 3512 | # -*- coding: utf-8 -*-
"""Video xmodule tests in mongo."""
from . import BaseTestXmodule
from .test_videoalpha_xml import SOURCE_XML
from django.conf import settings
class TestVideo(BaseTestXmodule):
"""Integration tests: web client + mongo."""
CATEGORY = "videoalpha"
DATA = SOURCE_XML
MODEL_DATA =... | agpl-3.0 | -8,064,464,991,645,807,000 | 34.836735 | 76 | 0.5709 | false |
qma/pants | src/python/pants/build_graph/build_file_address_mapper.py | 4 | 10487 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from pants.base.buil... | apache-2.0 | 4,005,731,635,918,745,000 | 44.995614 | 100 | 0.66654 | false |
ryanbhayward/games-puzzles-algorithms | old/lib/test/players/mcts/mcts_test.py | 1 | 8759 | from games_puzzles_algorithms.players.mcts.mcts_agent import MctsAgent
from games_puzzles_algorithms.players.mcts.mcts_agent import UctNode
from games_puzzles_algorithms.players.mcts.mcts_agent import BanditNode
from games_puzzles_algorithms.games.fake_game_state import FakeGameState
from games_puzzles_algorithms.debug... | mit | 6,192,658,067,794,371,000 | 28.591216 | 104 | 0.638315 | false |
ClearCorp-dev/odoo-clearcorp | TODO-9.0/account_distribution_line/__init__.py | 2 | 1088 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Addons modules by CLEARCORP S.A.
# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
#
# This program is free software: you can redistribute... | agpl-3.0 | 6,204,988,583,742,978,000 | 44.375 | 78 | 0.618566 | false |
Iwan-Zotow/runEGS | XcData/process_shot.py | 1 | 14376 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import conversion
import subprocess
import symdata
import hashlib
import struct
import numpy as np
import names_helper
import logging
EXT = "xz"
def check_archive_integrity(shot_name):
"""
Given the shot archive, check compression integrity
Par... | apache-2.0 | 4,597,714,065,421,494,300 | 25.281536 | 121 | 0.544866 | false |
sdispater/cleo | cleo/ui/table.py | 1 | 22947 | import itertools
import math
import re
from typing import Dict
from typing import Generator
from typing import List
from typing import Optional
from typing import Union
from cleo.formatters.formatter import Formatter
from cleo.io.io import IO
from cleo.io.outputs.output import Output
from .table_cell import TableCel... | mit | -3,334,421,641,350,958,000 | 31.15309 | 87 | 0.495566 | false |
google/report2bq | application/classes/sa360_report_validation/keyword.py | 1 | 3039 | """
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | apache-2.0 | -2,372,571,817,100,767,700 | 24.546218 | 80 | 0.618295 | false |
GehenHe/Recognize-Face-on-Android | tensorflow/contrib/bayesflow/python/ops/variational_inference.py | 16 | 12030 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -5,625,669,942,508,287,000 | 35.676829 | 80 | 0.670407 | false |
CasataliaLabs/biscuit_drishtiman | Pmw-2.0.0/Pmw/Pmw_1_3_3/lib/PmwTimeFuncs.py | 2 | 4441 | # Functions for dealing with dates and times.
import re
import string
def timestringtoseconds(text, separator = ':'):
inputList = string.split(string.strip(text), separator)
if len(inputList) != 3:
raise ValueError, 'invalid value: ' + text
sign = 1
if len(inputList[0]) > 0 and inputList[0][0]... | gpl-3.0 | -3,340,865,132,212,912,000 | 28.417808 | 78 | 0.56789 | false |
pnorman/mapnik | scons/scons-local-2.4.1/SCons/Tool/mslib.py | 6 | 2210 | """SCons.Tool.mslib
Tool-specific initialization for lib (MicroSoft library archiver).
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001 - 2015 The SCons Foundation
#
# Permission is her... | lgpl-2.1 | 3,082,534,838,143,315,500 | 33.53125 | 104 | 0.734389 | false |
epuzanov/ZenPacks.community.PgSQLMon | ZenPacks/community/PgSQLMon/PgSqlSrvInst.py | 1 | 1065 | ################################################################################
#
# This program is part of the PgSQLMon Zenpack for Zenoss.
# Copyright (C) 2009-2012 Egor Puzanov.
#
# This program can be used under the GNU General Public License version 2
# You can find full information here: http://www.zenoss.com/os... | gpl-2.0 | 508,947,185,697,748,900 | 24.357143 | 80 | 0.562441 | false |
youprofit/zato | code/zato-server/test/zato/server/test_message.py | 6 | 10198 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2013 Dariusz Suchojad <dsuch at zato.io>
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
# stdlib
from logging import getLogger
from unittest import TestCase
from uuid im... | gpl-3.0 | -4,351,046,926,534,961,700 | 27.971591 | 130 | 0.51265 | false |
hesseltuinhof/mxnet | tools/parse_log.py | 15 | 1545 | #!/usr/bin/env python
"""
parse mxnet output log into a markdown table
"""
import argparse
import sys
import re
parser = argparse.ArgumentParser(description='Parse mxnet output log')
parser.add_argument('logfile', nargs=1, type=str,
help = 'the log file for parsing')
parser.add_argument('--format',... | apache-2.0 | -8,872,981,783,342,119,000 | 28.150943 | 81 | 0.522977 | false |
zepheira/zenpub | thirdparty/geopy_export/geopy/util.py | 3 | 2501 | import re
import logging
import htmlentitydefs
import xml.dom.minidom
from xml.parsers.expat import ExpatError
try:
from decimal import Decimal
except ImportError:
NUMBER_TYPES = (int, long, float)
else:
NUMBER_TYPES = (int, long, float, Decimal)
class NullHandler(logging.Handler):
def emit(self, reco... | apache-2.0 | 8,204,440,484,568,202,000 | 25.326316 | 77 | 0.572571 | false |
elkingtonmcb/pattern | examples/04-search/01-search.py | 21 | 1721 | import os, sys; sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", ".."))
from pattern.search import search
from pattern.en import parsetree
# The pattern.search module contains a number of pattern matching tools
# to search a string syntactically (word function) or semantically (word meaning).
# If... | bsd-3-clause | -3,540,690,211,711,898,600 | 39.023256 | 87 | 0.740267 | false |
mantidproject/mantid | scripts/abins/powderdata.py | 3 | 4181 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
impo... | gpl-3.0 | -2,474,078,237,197,263,400 | 40.81 | 107 | 0.608706 | false |
Bysmyyr/chromium-crosswalk | third_party/WebKit/Source/bindings/scripts/aggregate_generated_bindings.py | 22 | 8191 | #!/usr/bin/python
#
# Copyright (C) 2009 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... | bsd-3-clause | 380,930,723,111,739,300 | 38.379808 | 165 | 0.69027 | false |
python-control/python-control | control/freqplot.py | 1 | 56813 | # freqplot.py - frequency domain plots for control systems
#
# Author: Richard M. Murray
# Date: 24 May 09
#
# This file contains some standard control system plots: Bode plots,
# Nyquist plots and pole-zero diagrams. The code for Nichols charts
# is in nichols.py.
#
# Copyright (c) 2010 by California Institute of Tec... | bsd-3-clause | 5,160,184,504,070,688,000 | 38.701607 | 98 | 0.555929 | false |
daniel-noland/MemoryOracle | memoryoracle/memoryoracle/tracked.py | 1 | 2431 | #!/usr/bin/env python
# -*- encoding UTF-8 -*-
"""
File containing the abstract Tracked class.
"""
# import gdb
import pymongo
import mongoengine
import execution
# NOTE: The read_preference should not be needed. This is a workaround for a
# bug in pymongo. (http://goo.gl/Somoeu)
mongoengine.connect('memoryoracl... | lgpl-3.0 | 6,284,965,725,703,786,000 | 21.509259 | 78 | 0.646236 | false |
ujvl/ray-ng | python/ray/experimental/streaming/communication.py | 2 | 15791 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import hashlib
import logging
import sys
from ray.experimental.streaming.operator import PStrategy
from ray.experimental.streaming.batched_queue import BatchedQueue
logger = logging.getLogger(__name__)
loggin... | apache-2.0 | -8,586,290,594,554,785,000 | 42.986072 | 79 | 0.592869 | false |
bitsabhi/vyked | examples/account_service.py | 5 | 1657 | from vyked import Host, TCPService, TCPServiceClient, api, publish, request, subscribe
import asyncio
REGISTRY_HOST = '127.0.0.1'
REGISTRY_PORT = 4500
REDIS_HOST = '127.0.0.1'
REDIS_PORT = 6379
ACCOUNTS_HOST = '127.0.0.1'
ACCOUNTS_PORT = 4503
class AccountService(TCPService):
def __init__(self, host, port):
... | mit | 6,056,624,559,673,627,000 | 24.492308 | 86 | 0.652384 | false |
divio/django | django/core/mail/message.py | 28 | 16149 | from __future__ import unicode_literals
import mimetypes
import os
import random
import time
from email import (
charset as Charset, encoders as Encoders, generator, message_from_string,
)
from email.header import Header
from email.message import Message
from email.mime.base import MIMEBase
from email.mime.message... | bsd-3-clause | 4,601,302,792,816,258,600 | 36.731308 | 107 | 0.613846 | false |
qsnake/numpy | numpy/f2py/auxfuncs.py | 8 | 19521 | #!/usr/bin/env python
"""
Auxiliary functions for f2py2e.
Copyright 1999,2000 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy (BSD style) LICENSE.
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RIS... | bsd-3-clause | -8,395,359,681,943,064,000 | 27.08777 | 182 | 0.562369 | false |
bjornlevi/5thpower | nefndaralit/env/lib/python3.6/site-packages/lxml/builder.py | 18 | 7907 | #
# Element generator factory by Fredrik Lundh.
#
# Source:
# http://online.effbot.org/2006_11_01_archive.htm#et-builder
# http://effbot.python-hosting.com/file/stuff/sandbox/elementlib/builder.py
#
# --------------------------------------------------------------------
# The ElementTree toolkit is
#
# Copyright (... | mit | -5,038,378,353,767,283,000 | 32.646809 | 108 | 0.549007 | false |
ddebrunner/streamsx.topology | test/python/spl/tk17/opt/.__splpy/packages/streamsx/topology/tester_runtime.py | 3 | 5369 | # coding=utf-8
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2017
"""
Contains test related code that is executed at runtime
in the context of the application under test.
"""
import streamsx.ec as ec
import streamsx.topology.context as stc
import os
import unittest
import logging
import collections
imp... | apache-2.0 | -6,090,504,589,488,551,000 | 28.827778 | 100 | 0.587074 | false |
drakuna/odoo | openerp/addons/base/res/res_lang.py | 3 | 13756 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import locale
from locale import localeconv
import logging
from operator import itemgetter
import re
from openerp import tools, SUPERUSER_ID
from openerp.osv import fields, osv
from openerp.tools.safe_eval import safe_e... | gpl-3.0 | 1,400,965,177,192,862,000 | 41.45679 | 360 | 0.585272 | false |
ee08b397/panda3d | direct/src/distributed/DistributedObjectBase.py | 6 | 3341 |
from direct.showbase.DirectObject import DirectObject
#from direct.directnotify.DirectNotifyGlobal import directNotify
class DistributedObjectBase(DirectObject):
"""
The Distributed Object class is the base class for all network based
(i.e. distributed) objects. These will usually (always?) have a
dc... | bsd-3-clause | -2,426,981,163,203,136,500 | 33.443299 | 78 | 0.59982 | false |
tousix/tousix-manager | tousix_manager/Log_Statistics/views.py | 1 | 2114 | # Copyright 2015 Rémy Lapeyrade <remy at lapeyrade dot net>
# Copyright 2015 LAAS-CNRS
#
#
# This file is part of TouSIX-Manager.
#
# TouSIX-Manager 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 Founda... | gpl-3.0 | 1,480,449,321,250,376,400 | 37.418182 | 78 | 0.679129 | false |
eyolfson/django-ssh | django_ssh/views.py | 1 | 2607 | # Copyright 2014 Jon Eyolfson
#
# This file is part of Django SSH.
#
# Django SSH 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.
#
# D... | gpl-3.0 | -4,214,255,497,998,668,000 | 34.712329 | 79 | 0.634446 | false |
corvorepack/REPOIVAN | plugin.video.movie.ultra.7k/resources/tools/scrape.py | 2 | 29534 | # -*- coding: utf-8 -*-
#--------------------------------------------------------
# Movie Ultra 7K
# (http://forum.rojadirecta.es/
# (http://xbmcspain.com/foro/
# Version 0.0.5 (04.11.2014)
#--------------------------------------------------------
# License: GPL (http://www.gnu.org/licenses/gpl-3.0.html)
#------------... | gpl-2.0 | 7,560,572,108,504,564,000 | 41.251788 | 256 | 0.652468 | false |
jamslevy/gsoc | app/django/db/backends/sqlite3/base.py | 1 | 7964 | """
SQLite3 backend for django.
Python 2.3 and 2.4 require pysqlite2 (http://pysqlite.org/).
Python 2.5 and later use the sqlite3 module in the standard library.
"""
from django.db.backends import *
from django.db.backends.sqlite3.client import DatabaseClient
from django.db.backends.sqlite3.creation import DatabaseC... | apache-2.0 | -8,789,656,336,015,074,000 | 37.84878 | 125 | 0.643395 | false |
aasiutin/electrum | gui/kivy/uix/qrcodewidget.py | 18 | 3411 | ''' Kivy Widget that accepts data and displays qrcode
'''
from threading import Thread
from functools import partial
import qrcode
from kivy.uix.floatlayout import FloatLayout
from kivy.graphics.texture import Texture
from kivy.properties import StringProperty
from kivy.properties import ObjectProperty, StringProper... | mit | 8,204,450,151,380,347,000 | 26.288 | 78 | 0.574318 | false |
jd28/pynwn-tools | tlkie/tlkie.py | 1 | 1935 | #!/usr/bin/env python
import argparse, os, sys
from pynwn.file.tlk import Tlk
from pynwn.file.tls import TLS
from pynwn.util.helper import get_encoding
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--version', action='version', version='0.1')
parser.add_argument('-o', '--output', help='Output TLK or ... | mit | -8,679,597,406,136,864,000 | 29.234375 | 72 | 0.567442 | false |
stevekuznetsov/Klampt | Python/utils/make_planar_rob.py | 4 | 1110 | import sys
n = int(sys.argv[1])
#scale = 1.0/n
scale = 1.0;
intro = """### A %dR planar robot ###
TParent 1 0 0 0 1 0 0 0 1 0 0 0 """ %(n,)
trans = """ \\\n1 0 0 0 1 0 0 0 1 %g 0 0"""%(scale,)
axis = "0 1 0"
jointtype = "r"
qMin = "0"
qMax = "6.28319"
q ="0"
geometry = ' "objects/thincube.tri"'
geomsca... | bsd-3-clause | -7,736,613,923,280,864,000 | 21.653061 | 60 | 0.577477 | false |
tacaswell/scikit-xray | skbeam/core/stats.py | 12 | 3985 | #! encoding: utf-8
# ######################################################################
# Copyright (c) 2014, Brookhaven Science Associates, Brookhaven #
# National Laboratory. All rights reserved. #
# #
# Redistr... | bsd-3-clause | 361,784,405,801,642,000 | 43.277778 | 77 | 0.561355 | false |
webuildcity/wbc | testing/settings.py | 1 | 1376 | from .local import *
INSTALLED_APPS = [
# django
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
# other dependencies
'rest_framework',
... | lgpl-3.0 | -3,804,258,089,250,883,000 | 24.962264 | 69 | 0.707849 | false |
davduran/thumbor | tests/handlers/test_base_handler.py | 1 | 42935 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/thumbor/thumbor/wiki
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com thumbor@googlegroups.com
from urllib import quote
import tempfile
import shutil
from os.path ... | mit | -8,804,031,900,127,129,000 | 37.076309 | 116 | 0.638609 | false |
karthikvadla16/spark-tk | python/sparktk/frame/ops/tally_percent.py | 14 | 2413 | # vim: set encoding=utf-8
# Copyright (c) 2016 Intel 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 require... | apache-2.0 | -2,300,180,724,566,109,000 | 31 | 93 | 0.578158 | false |
michael-lazar/praw3 | tests/test_decorators.py | 1 | 5974 | from __future__ import print_function, unicode_literals
from .helper import OAuthPRAWTest, betamax
from .mock_response import MockResponse
from praw import errors
from praw.decorator_helpers import _make_func_args
from praw.decorators import restrict_access
from praw.internal import _modify_relationship
from six impor... | gpl-3.0 | 8,041,067,499,241,472,000 | 47.177419 | 79 | 0.600268 | false |
tfroehlich82/EventGhost | eg/Classes/PluginItem.py | 2 | 6460 | # -*- coding: utf-8 -*-
#
# This file is part of EventGhost.
# Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
#
# EventGhost 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 versio... | gpl-2.0 | 343,042,178,201,736,000 | 29.757143 | 79 | 0.596068 | false |
rajendrant/ArduinoControl | python/ArduinoControlClient/simple_serial.py | 1 | 1053 | import serial
import sys
import base64
import ArduinoControlClient
import time
class SerialSocket(object):
def __init__(self, dev):
self.ser = serial.Serial(dev, 115200, timeout=1)
time.sleep(1)
def is_connected(self):
return self.ser.is_open
def send_msg(self, m):
... | gpl-3.0 | 7,608,013,402,955,939,000 | 24.071429 | 81 | 0.62868 | false |
askhl/ase | ase/calculators/aims.py | 1 | 24803 | """This module defines an ASE interface to FHI-aims.
Felix Hanke hanke@liverpool.ac.uk
Jonas Bjork j.bjork@liverpool.ac.uk
"""
import os
import numpy as np
from ase.units import Hartree
from ase.io.aims import write_aims, read_aims
from ase.data import atomic_numbers
from ase.calculators.calculator import FileIOCal... | gpl-2.0 | 8,393,126,757,321,245,000 | 35.208759 | 115 | 0.528041 | false |
gxxjjj/QuantEcon.py | quantecon/tests/test_lae.py | 7 | 1148 | """
Tests for lae.py
@author : Spencer Lyon
@date : 2014-08-02
TODO: write (economically) meaningful tests for this module
"""
from __future__ import division
from nose.tools import assert_equal
import numpy as np
from scipy.stats import lognorm
from quantecon import LAE
# copied from the lae lecture
s = 0.2
delta ... | bsd-3-clause | 4,004,986,228,655,874,600 | 19.872727 | 59 | 0.609756 | false |
shoopio/shoop | shuup/core/order_creator/_source_modifier.py | 2 | 1327 | # This file is part of Shuup.
#
# Copyright (c) 2012-2019, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from shuup.apps.provides import load_module_insta... | agpl-3.0 | 2,572,933,287,643,319,000 | 27.234043 | 78 | 0.677468 | false |
YingHsuan/termite_data_server | web2py/scripts/extract_oracle_models.py | 17 | 10618 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Create web2py model (python code) to represent Oracle 11g tables.
Features:
* Uses Oracle's metadata tables
* Detects legacy "keyed" tables (not having an "id" PK)
* Connects directly to running databases, no need to do a SQL dump
* Handles notnull, unique and referen... | bsd-3-clause | -4,626,304,678,129,125,000 | 33.032051 | 77 | 0.567621 | false |
tommy-u/enable | enable/gadgets/vu_meter.py | 1 | 10669 |
import math
from traits.api import Float, Property, List, Str, Range
from enable.api import Component
from kiva.trait_defs.kiva_font_trait import KivaFont
from kiva import affine
def percent_to_db(percent):
if percent == 0.0:
db = float('-inf')
else:
db = 20 * math.log10(percent / 100.0)
... | bsd-3-clause | -7,737,232,950,608,942,000 | 33.752443 | 81 | 0.489174 | false |
int19h/PTVS | Python/Product/Miniconda/Miniconda3-x64/Lib/ctypes/test/test_as_parameter.py | 14 | 6919 | import unittest
from ctypes import *
from ctypes.test import need_symbol
import _ctypes_test
dll = CDLL(_ctypes_test.__file__)
try:
CALLBACK_FUNCTYPE = WINFUNCTYPE
except NameError:
# fake to enable this test on Linux
CALLBACK_FUNCTYPE = CFUNCTYPE
class POINT(Structure):
_fields_ = [("x", c_int), ("y... | apache-2.0 | -6,932,741,810,779,203,000 | 29.082609 | 108 | 0.543142 | false |
chrisvans/roasttron | roasttron/config/common.py | 1 | 9425 | # -*- coding: utf-8 -*-
"""
Django settings for roasttron project.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
# Build paths inside the project like this: os.p... | mit | -6,516,160,724,629,399,000 | 32.303887 | 102 | 0.656658 | false |
googlearchive/big-rig | app/src/thirdparty/telemetry/web_perf/metrics/rendering_stats.py | 9 | 12851 | # Copyright 2014 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 itertools
from operator import attrgetter
from telemetry.web_perf.metrics import rendering_frame
# These are LatencyInfo component names indicating ... | apache-2.0 | 1,759,412,441,875,406,600 | 42.415541 | 80 | 0.714108 | false |
V155/qutebrowser | scripts/dev/cleanup.py | 5 | 2177 | #!/usr/bin/env python3
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2014-2018 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | gpl-3.0 | -5,943,098,083,641,704,000 | 30.550725 | 78 | 0.648599 | false |
navoj/ecell4 | ecell4/egfrd/legacy/test/freeFunctions_test.py | 3 | 4521 | #!/usr/bin/env python
__author__ = 'Koichi Takahashi <shafi@e-cell.org>'
__license__ = 'GPL'
__copyright__ = 'Copyright The Molecular Sciences Institute 2006-2007'
import unittest
import _greens_functions as mod
import math
import numpy
class FreeFunctionsTestCase(unittest.TestCase):
def setUp(self):
... | gpl-2.0 | 8,980,968,726,905,812,000 | 22.794737 | 73 | 0.463172 | false |
teltek/edx-platform | cms/djangoapps/contentstore/courseware_index.py | 2 | 27592 | """ Code to allow module store to interface with courseware index """
from __future__ import absolute_import
import logging
import re
from abc import ABCMeta, abstractmethod
from datetime import timedelta
from django.conf import settings
from django.urls import resolve
from django.utils.translation import ugettext as... | agpl-3.0 | -4,244,961,523,196,492,300 | 40.616893 | 120 | 0.629422 | false |
mgerhardy/fips | mod/log.py | 3 | 2092 | """logging functions"""
import sys
# log colors
RED = '\033[31m'
GREEN = '\033[32m'
YELLOW = '\033[33m'
BLUE = '\033[34m'
DEF = '\033[39m'
#-------------------------------------------------------------------------------
def error(msg, fatal=True) :
"""
Print error message and exit with error code 10
unle... | mit | -3,748,004,492,298,908,000 | 28.055556 | 80 | 0.425908 | false |
rcbops/nova-buildpackage | nova/api/openstack/wsgi.py | 1 | 37515 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | apache-2.0 | 7,713,902,429,385,710,000 | 33.385885 | 79 | 0.594962 | false |
vc3-project/vc3-info-service | vc3infoservice/infoservice.py | 1 | 29417 | #! /usr/bin/env python
__author__ = "John Hover, Jose Caballero"
__copyright__ = "2017 John Hover"
__credits__ = []
__license__ = "GPL"
__version__ = "0.9.1"
__maintainer__ = "John Hover"
__email__ = "jhover@bnl.gov"
__status__ = "Production"
import cherrypy
import logging
import logging.handlers
import os
import pla... | gpl-3.0 | 2,180,025,884,097,617,200 | 37.962914 | 183 | 0.526464 | false |
PhilipSkinner/PiR | hive/api.py | 1 | 4615 | import httplib
import urllib
import json
import devices.light
class API:
def __init__(self, username, password):
self.username = username
self.password = password
self.token = None
self.lights = []
self.login()
self.getLights()
def set... | mit | -1,310,094,038,668,729,900 | 29.195946 | 91 | 0.438787 | false |
adamcataldo/djscrooge | djscrooge/util/data_types.py | 1 | 5912 | """This module contains the utility data types of the DJ Scrooge Backtesting API.
Copyright (C) 2012 James Adam Cataldo
This file is part of DJ Scrooge.
DJ Scrooge 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 Sof... | gpl-3.0 | 6,722,678,776,473,595,000 | 31.489011 | 98 | 0.644621 | false |
robin900/sqlalchemy | lib/sqlalchemy/util/_collections.py | 26 | 27889 | # util/_collections.py
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Collection classes and helpers."""
from __future__ import absolute_import
i... | mit | -3,541,001,410,477,029,000 | 25.688038 | 79 | 0.570655 | false |
adaitche/luigi | test/contrib/_webhdfs_test.py | 6 | 2124 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | -6,699,413,453,768,513,000 | 31.181818 | 74 | 0.664783 | false |
mirageglobe/upp-tracker | tracer/ftraceadvance.py | 1 | 6390 | from ftracer_script import *
## note the capture details file is
## warnings is needed to suppress errors from mousehook tracker
## Function: This is the main script file which houses all the scripts
import sys
import pythoncom, pyHook
import win32con, win32com.client
import win32gui, win32api
import codecs
imp... | apache-2.0 | -7,871,875,556,618,615,000 | 29.869565 | 283 | 0.651174 | false |
praekelt/jmbo-foundry | foundry/feeds.py | 1 | 2132 | from collections import namedtuple
from PIL import Image
from django.contrib.syndication.views import Feed
from django.shortcuts import get_object_or_404
from django.utils import feedgenerator
from django.contrib.sites.models import get_current_site
from jmbo.models import ModelBase
from foundry.models import Listi... | bsd-3-clause | -8,969,731,339,729,982,000 | 27.052632 | 78 | 0.609756 | false |
abhishekgahlot/kivy | kivy/adapters/simplelistadapter.py | 3 | 2228 | '''
SimpleListAdapter
=================
.. versionadded:: 1.5
.. warning::
This code is still experimental, and its API is subject to change in a
future version.
The :class:`~kivy.adapters.simplelistadapter.SimpleListAdapter` is used for
basic lists. For example, it can be used for displaying a list of read... | mit | 5,756,030,449,973,285,000 | 29.520548 | 79 | 0.65395 | false |
roim/PyTranscribe | plotting/hps.py | 1 | 3155 | # Copyright 2015 Rodrigo Roim Ferreira
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed... | gpl-3.0 | -2,342,360,364,448,503,000 | 28.764151 | 98 | 0.647861 | false |
RandomWireTechnologies/ctrl-o-node | nfc.py | 1 | 2078 | #!/usr/bin/python
import pn532
import hashlib
import binascii
import time
import config
def init():
pn532.init()
def close():
pn532.close()
try:
log
except:
def log(data):
print time.strftime("%Y-%b-%d:%H:%M:%S"),":",data
def getCard():
card = None
card = pn532.read()
if (card ==... | artistic-2.0 | -6,521,574,130,992,980,000 | 26.706667 | 96 | 0.553417 | false |
CarolinaSGomes/jaikuengine | common/management/commands/config.py | 34 | 1239 | # Copyright 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 law or agreed to in writing, ... | apache-2.0 | 7,461,110,668,484,676,000 | 30.769231 | 74 | 0.68523 | false |
pavel-odintsov/shogun | examples/undocumented/python_modular/graphical/inverse_covariance_estimation_demo.py | 26 | 2520 | #!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
from pylab import show, imshow
def simulate_data (n,p):
from modshogun import SparseInverseCovariance
import numpy as np
#create a random pxp covariance matrix
cov = np.random.normal(size=(p,p))
#generate data set with multivariate Gaussi... | gpl-3.0 | -3,327,735,013,342,847,500 | 22.773585 | 139 | 0.697222 | false |
thecumets/cumets-backend | migrations/versions/46e2e82b373_.py | 1 | 1780 | """empty message
Revision ID: 46e2e82b373
Revises: 59cd47c905a
Create Date: 2015-10-10 16:21:15.167968
"""
# revision identifiers, used by Alembic.
revision = '46e2e82b373'
down_revision = '59cd47c905a'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
###... | gpl-2.0 | 2,222,994,903,495,138,800 | 37.695652 | 109 | 0.685393 | false |
azumimuo/family-xbmc-addon | plugin.video.bubbles/resources/lib/externals/hachoir/hachoir_parser/parser.py | 1 | 5843 | import resources.lib.externals.hachoir.hachoir_core.config as config
from resources.lib.externals.hachoir.hachoir_core.field import Parser as GenericParser
from resources.lib.externals.hachoir.hachoir_core.error import HACHOIR_ERRORS, HachoirError, error
from resources.lib.externals.hachoir.hachoir_core.tools import ma... | gpl-2.0 | -8,077,751,571,801,594,000 | 36.941558 | 98 | 0.578299 | false |
deanishe/alfred-appscripts | src/workflow/workflow3.py | 10 | 21229 | # encoding: utf-8
#
# Copyright (c) 2016 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2016-06-25
#
"""An Alfred 3+ version of :class:`~workflow.Workflow`.
:class:`~workflow.Workflow3` supports new features, such as
setting :ref:`workflow-variables` and
:c... | mit | 8,208,686,674,380,428,000 | 28.443828 | 79 | 0.570964 | false |
torchbox/wagtail | wagtail/contrib/postgres_search/utils.py | 15 | 3459 | from itertools import zip_longest
from django.apps import apps
from django.db import connections
from wagtail.search.index import Indexed, RelatedFields, SearchField
def get_postgresql_connections():
return [connection for connection in connections.all()
if connection.vendor == 'postgresql']
def g... | bsd-3-clause | 5,584,309,279,480,637,000 | 29.610619 | 78 | 0.645851 | false |
Moguri/BlenderRealtimeEngineAddon | socket_api.py | 2 | 4329 | import enum
import json
import socket
import struct
import sys
import time
class AutoNumber(enum.Enum):
def __new__(cls):
value = len(cls.__members__) + 1
obj = object.__new__(cls)
obj._value_ = value
return obj
class MethodIDs(AutoNumber):
__order__ = "add update remove"
... | mit | -1,389,528,007,131,055,400 | 31.548872 | 95 | 0.505891 | false |
dgarant/pl-markov-network | examples/large_non_gaussian.py | 1 | 2076 | # Demonstrates pseudo-likelihood estimation
# for a large system of continuous variables
from plmrf import *
import numpy as np
import scipy
import time
# Generating a big ring by sampling variables independently,
# then sampling based on each configuration's 'true' potential
nvars = 1000
nsamp = 1000
print("Gene... | mit | -6,298,216,771,540,330,000 | 30.454545 | 122 | 0.708574 | false |
yongtang/tensorflow | tensorflow/python/keras/layers/preprocessing/text_vectorization.py | 4 | 26014 | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 7,732,761,738,281,165,000 | 44.320557 | 101 | 0.67579 | false |
rec/DMXIS | Macros/Python/formatter.py | 4 | 15337 | """Generic output formatting.
Formatter objects transform an abstract flow of formatting events into
specific output events on writer objects. Formatters manage several stack
structures to allow various properties of a writer object to be changed and
restored; writers need not be able to handle relative changes n... | artistic-2.0 | -7,549,541,865,177,700,000 | 32.542793 | 77 | 0.558453 | false |
pyq881120/amoco | amoco/system/linux_arm.py | 6 | 1636 | # -*- coding: utf-8 -*-
# This code is part of Amoco
# Copyright (C) 2006-2011 Axel Tillequin (bdcht3@gmail.com)
# published under GPLv2 license
from amoco.system.core import *
import amoco.arch.arm.cpu_armv7 as cpu
PAGESIZE = 4096
class ELF(CoreExec):
def __init__(self,p):
CoreExec.__init__(self,p,cpu)... | gpl-2.0 | 185,811,454,582,083,680 | 31.078431 | 77 | 0.495721 | false |
joodo/davanoffi | board/migrations/0002_auto_20150930_1549.py | 2 | 1141 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('board', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Tag',
fields=[
... | unlicense | 8,702,097,238,948,286,000 | 32.558824 | 114 | 0.5539 | false |
Tanych/CodeTracking | 32-Longest-Valid-Parentheses/solution.py | 1 | 1031 | class Solution(object):
def longestValidParentheses(self, s):
"""
:type s: str
:rtype: int
"""
n=len(s)
if n<2:
return 0
# to record the valid '()'
stk=[]
maxlen=0
for i in xrange(n):
if s[i]=='(':
... | mit | -301,014,748,272,323,140 | 25.461538 | 62 | 0.417071 | false |
abantam/pmtud | nsc/scons-local-1.2.0.d20090223/SCons/Tool/bcc32.py | 19 | 2994 | """SCons.Tool.bcc32
XXX
"""
#
# 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 the Software without restrictio... | gpl-2.0 | 8,319,580,775,648,894,000 | 35.512195 | 115 | 0.694723 | false |
rspavel/spack | var/spack/repos/builtin/packages/libharu/package.py | 5 | 1645 | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import os
class Libharu(AutotoolsPackage):
"""libharu - free PDF library.
Haru is a free, c... | lgpl-2.1 | -2,960,561,503,628,441,600 | 33.270833 | 95 | 0.656535 | false |
eternalthinker/nasa-spaceapps-syd17-aviato | ML/latlongv3.py | 1 | 5675 | # to build dataset master sheet
# wirtes into a
import os
import pandas as pd
import sys
import numpy as np
import math
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
import multiprocessing
import csv
import time
def get_sample(df):
df2 = df.sample(frac=0.01)
#print df2[location-long]... | mit | 4,205,732,828,279,096,300 | 38.964789 | 206 | 0.680176 | false |
rolandmansilla/microblog | flask/lib/python2.7/site-packages/pbr/tests/test_setup.py | 22 | 17125 | # Copyright (c) 2011 OpenStack Foundation
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http:/... | bsd-3-clause | -516,611,274,390,199,550 | 39.294118 | 78 | 0.595912 | false |
jumpstarter-io/cinder | cinder/volume/drivers/hds/hnas_backend.py | 5 | 24386 | # Copyright (c) 2014 Hitachi Data Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | apache-2.0 | -4,481,986,955,292,050,400 | 38.846405 | 79 | 0.451407 | false |
Barmaley-exe/scikit-learn | sklearn/covariance/tests/test_covariance.py | 5 | 10604 | # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# Virgile Fritsch <virgile.fritsch@inria.fr>
#
# License: BSD 3 clause
import numpy as np
from sklearn.utils.testing import assert_almost_equal
from sklearn.utils.testing import assert_array_alm... | bsd-3-clause | -7,593,635,443,028,954,000 | 38.274074 | 79 | 0.659751 | false |
funginstitute/patentprocessor | test/test_parse_file.py | 6 | 3865 | #!/usr/bin/env python
import os
import sys
import unittest
import logging
import re
from collections import Iterable
sys.path.append('../')
import parse
import lib.handlers.grant_handler_v42 as grant_handler_v42
basedir = os.path.dirname(__file__)
testdir = os.path.join(basedir, './fixtures/xml/')
testfileone = 'ipg... | bsd-2-clause | 4,166,907,937,054,603,000 | 40.117021 | 106 | 0.657439 | false |
xuweiliang/Codelibrary | nova/virt/xenapi/client/session.py | 1 | 13700 | # Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | -5,587,690,191,793,458,000 | 38.031339 | 79 | 0.571241 | false |
alanjw/GreenOpenERP-Win-X86 | python/Lib/test/test_socket.py | 2 | 58111 | #!/usr/bin/env python
import unittest
from test import test_support
import errno
import socket
import select
import time
import traceback
import Queue
import sys
import os
import array
import contextlib
from weakref import proxy
import signal
import math
def try_address(host, port=0, family=socket... | agpl-3.0 | -8,929,866,341,141,276,000 | 33.716656 | 117 | 0.59345 | false |
brianmay/python-tldap-debian | tldap/schemas/ds389.py | 1 | 1387 | # Copyright 2012-2014 Brian May
#
# This file is part of python-tldap.
#
# python-tldap 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 | 4,000,363,407,715,313,700 | 37.527778 | 70 | 0.762797 | false |
nachandr/cfme_tests | cfme/markers/polarion.py | 2 | 1406 | """polarion(*tcid): Marker for marking tests as automation for polarion test cases."""
import attr
import pytest
from cfme.fixtures.pytest_store import store
def pytest_configure(config):
config.addinivalue_line("markers", __doc__.splitlines()[0])
def extract_polarion_ids(item):
"""Extracts Polarion TC IDs... | gpl-2.0 | 8,446,228,546,752,307,000 | 30.954545 | 89 | 0.672831 | 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.