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 |
|---|---|---|---|---|---|---|---|---|---|---|
erwilan/ansible | contrib/inventory/collins.py | 51 | 17969 | #!/usr/bin/env python
"""
Collins external inventory script
=================================
Ansible has a feature where instead of reading from /etc/ansible/hosts
as a text file, it can query external programs to obtain the list
of hosts, groups the hosts are in, and even variables to assign to each host.
Collins ... | gpl-3.0 | 7,733,425,111,266,136,000 | 39.746032 | 112 | 0.603985 | false |
Vutshi/qutip | examples/ex_floquet_markov_master_equation.py | 1 | 3601 | #
# Example: Find the floquet modes and quasi energies for a driven system and
# plot the floquet states/quasienergies for one period of the driving.
#
from qutip import *
from pylab import *
import time
def J_cb(omega):
""" Noise spectral density """
return omega
def hamiltonian_t(t, args):
""" eval... | gpl-3.0 | -4,599,387,329,284,852,700 | 25.873134 | 115 | 0.568453 | false |
thebestpatrick/nda-extractor | bin2csv.py | 1 | 7172 | #!/bin/python3.4
import sys, getopt
import binascii
import time
import math
import datetime
import csv
def get_step_name(s):
if s == 1:
return "CC_Chg"
elif s == 2:
return "CC_Dchg"
# TODO: 3
elif s == 4:
return "Rest"
# TODO: 5, 6
elif s == 7:
re... | bsd-2-clause | 704,558,328,830,409,200 | 28.514403 | 82 | 0.574875 | false |
radicalbit/ambari | ambari-agent/conf/windows/service_wrapper.py | 5 | 8057 | '''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | apache-2.0 | -4,496,453,006,264,822,300 | 30.228682 | 108 | 0.711431 | false |
andrewcbennett/iris | lib/iris/tests/unit/fileformats/grib/save_rules/test__product_definition_template_8_and_11.py | 1 | 8687 | # (C) British Crown Copyright 2013 - 2015, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | gpl-3.0 | 6,633,216,462,288,367,000 | 40.366667 | 79 | 0.624036 | false |
jscn/django | tests/i18n/test_extraction.py | 3 | 37132 | # -*- encoding: utf-8 -*-
from __future__ import unicode_literals
import io
import os
import re
import shutil
import time
import warnings
from unittest import SkipTest, skipUnless
from django.conf import settings
from django.core import management
from django.core.management import execute_from_command_line
from djan... | bsd-3-clause | 563,069,743,160,034,900 | 44.655597 | 113 | 0.624333 | false |
Metaswitch/horizon | openstack_dashboard/dashboards/project/stacks/mappings.py | 7 | 14395 | # 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 th... | apache-2.0 | 5,091,092,675,694,785,000 | 40.011396 | 78 | 0.651615 | false |
Zord13appdesa/python-for-android | python3-alpha/python3-src/Lib/distutils/tests/test_bdist_dumb.py | 46 | 2555 | """Tests for distutils.command.bdist_dumb."""
import unittest
import sys
import os
from test.support import run_unittest
from distutils.core import Distribution
from distutils.command.bdist_dumb import bdist_dumb
from distutils.tests import support
SETUP_PY = """\
from distutils.core import setup
import foo
setup(n... | apache-2.0 | -3,467,793,810,045,314,000 | 27.707865 | 67 | 0.570254 | false |
skudriashev/incubator-airflow | airflow/operators/presto_to_mysql.py | 15 | 2879 | # -*- coding: utf-8 -*-
#
# 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
... | apache-2.0 | 6,872,243,548,011,420,000 | 37.905405 | 74 | 0.678013 | false |
yinrongping/awesome-python-webapp | www/pymonitor.py | 1 | 2146 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 用于监听代码修改,自动重启应用
# easy_install watchdog
__author__ = 'Michael Liao'
import os
import sys
import time
import subprocess
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
def log(s):
print '[Monitor] %s' % s
... | gpl-2.0 | 8,677,552,191,376,297,000 | 21.356322 | 71 | 0.586122 | false |
LEDS/X-data | Xdata/app_pessoa/migrations/0001_initial.py | 1 | 8591 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-04-02 21:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | mit | 7,880,632,183,948,459,000 | 40.302885 | 131 | 0.528344 | false |
hogarthj/ansible | lib/ansible/plugins/filter/ipaddr.py | 15 | 29588 | # (c) 2014, Maciej Delmanowski <drybjed@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 ... | gpl-3.0 | 4,384,582,542,637,498,400 | 27.098765 | 117 | 0.561782 | false |
jmighion/ansible | lib/ansible/modules/network/nxos/nxos_vpc.py | 11 | 12130 | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | gpl-3.0 | 8,539,310,543,687,217,000 | 30.671018 | 89 | 0.587057 | false |
eptmp3/Sick-Beard | lib/subliminal/services/podnapisiweb.py | 22 | 8697 | # -*- coding: utf-8 -*-
# Copyright 2011-2012 Antoine Bertin <diaoulael@gmail.com>
#
# This file is part of subliminal.
#
# subliminal is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 3 of... | gpl-3.0 | 2,306,557,217,145,818,600 | 62.948529 | 182 | 0.602622 | false |
ahmadRagheb/goldenHR | erpnext/setup/utils.py | 3 | 4101 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import flt
from frappe.utils import get_datetime_str, nowdate
def get_root_of(doctype):
"""Get ro... | gpl-3.0 | 1,440,871,702,058,972,200 | 32.341463 | 188 | 0.682273 | false |
parthea/pydatalab | datalab/utils/_dataflow_job.py | 6 | 1506 | # Copyright 2017 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | apache-2.0 | 4,318,586,995,851,897,000 | 36.65 | 99 | 0.712483 | false |
aam-at/tensorflow | tensorflow/python/data/experimental/ops/grouping.py | 6 | 19761 | # 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 | -437,927,740,501,902,140 | 41.314775 | 80 | 0.675927 | false |
kuznetz/rabbitvcs | clients/gedit/rabbitvcs-plugin.py | 1 | 34031 | #
# This is a Gedit plugin to allow for RabbitVCS integration in the Gedit
# text editor.
#
# Copyright (C) 2008-2008 by Adam Plumb <adamplumb@gmail.com>
#
# RabbitVCS 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 Fou... | gpl-2.0 | -7,631,977,068,958,468,000 | 44.617962 | 143 | 0.617114 | false |
prutseltje/ansible | lib/ansible/module_utils/network/iosxr/iosxr.py | 4 | 17339 | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | gpl-3.0 | 1,894,512,874,704,712,000 | 35.657505 | 129 | 0.615491 | false |
fermiPy/fermipy | fermipy/srcmap_utils.py | 1 | 13439 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function
import copy
import numpy as np
from scipy.ndimage import map_coordinates
from scipy.ndimage.interpolation import spline_filter
from scipy.ndimage.interpolation import shift
from astropy.io im... | bsd-3-clause | 4,039,672,651,915,733,000 | 30.180974 | 83 | 0.549967 | false |
pietroquaglio/elephant | elephant/spade_src/fast_fca.py | 2 | 58191 | """
This module provides an implementation of the formal concept analysis (FCA) in
pure Python. It is used by the SPADE analysis. The code builds on C. Lindig's
Fast Concept Analysis work (1999,2002).
Original code available at:
Copyright (C) 2008-2012 by Dominik Endres (dominik.endres@gmail.com).
Relicensed for Ele... | bsd-3-clause | 922,786,082,583,585,000 | 50.679396 | 247 | 0.510474 | false |
andrestr02/blender | archimesh/src/stairs_maker.py | 3 | 14685 | # ***** BEGIN GPL LICENSE BLOCK *****
#
#
# 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.
#
# This program is distribute... | gpl-2.0 | 9,122,731,853,134,806,000 | 38.055851 | 120 | 0.489275 | false |
anthropo-lab/XP | EPHEMER/EDHEC_Project/both_change_group/pages.py | 1 | 12932 | from otree.api import Currency as c, currency_range
from ._builtin import Page, WaitPage
from . import models
from .models import Constants
from otree.api import safe_json
import random
import itertools
from collections import defaultdict
import numpy as np
# For PresenterView
from django.views.generic import TemplateV... | gpl-3.0 | -955,393,299,217,543,200 | 31.3225 | 127 | 0.588831 | false |
dbbhattacharya/kitsune | vendor/packages/logilab-common/logging_ext.py | 6 | 5983 | # -*- coding: utf-8 -*-
# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of logilab-common.
#
# logilab-common is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser Genera... | bsd-3-clause | -3,310,948,359,902,950,400 | 35.042169 | 82 | 0.601872 | false |
TouK/vumi | vumi/transports/parlayx/server.py | 4 | 7130 | # -*- test-case-name: vumi.transports.parlayx.tests.test_server -*-
import iso8601
from collections import namedtuple
from twisted.internet.defer import maybeDeferred, fail
from twisted.python import log
from twisted.python.constants import Values, ValueConstant
from twisted.web import http
from twisted.web.resource i... | bsd-3-clause | -4,572,806,064,318,097,400 | 35.010101 | 79 | 0.637588 | false |
tchx84/social-sugar | extensions/cpsection/keyboard/model.py | 4 | 6730 | # Copyright (C) 2009 OLPC
# Author: Sayamindu Dasgupta <sayamindu@laptop.org>
#
# 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 v... | gpl-2.0 | -2,193,670,078,052,347,000 | 35.775956 | 82 | 0.609064 | false |
gangadharkadam/sterp | erpnext/setup/doctype/company/company.py | 2 | 15316 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe, os
from frappe import _
from frappe.utils import cint
import frappe.defaults
from frappe.model.document import Document
class Comp... | agpl-3.0 | 7,579,635,123,552,390,000 | 50.053333 | 168 | 0.654675 | false |
manmeetsaini/etools | code/scripts/ssh_dashboard.py | 2 | 1668 | from tkinter import *
from tkinter import ttk
#from etools import *
def calculate(*args):
pass
def test():
pass
root = Tk()
# Title of the Window
root.title("Network Console")
mainframe = ttk.Frame(root, padding="3 3 12 12")
mainframe.grid(column=0, row=0, sticky=(N, W, E, S))
mainframe.columnco... | gpl-3.0 | 2,872,606,875,422,960,000 | 27.785714 | 91 | 0.692446 | false |
WillieMaddox/scipy | scipy/sparse/base.py | 4 | 28818 | """Base class for sparse matrices"""
from __future__ import division, print_function, absolute_import
__all__ = ['spmatrix', 'isspmatrix', 'issparse',
'SparseWarning','SparseEfficiencyWarning']
import sys
import numpy as np
from scipy._lib.six import xrange
from .sputils import isdense, isscalarlike, isintl... | bsd-3-clause | 7,602,071,765,283,832,000 | 31.97254 | 83 | 0.526338 | false |
charbeljc/account-invoicing | account_invoice_validation_workflow/invoice.py | 15 | 11721 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Joël Grand-Guillaume
# Copyright 2010-2015 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License a... | agpl-3.0 | 1,847,550,876,600,673,300 | 49.068376 | 79 | 0.44691 | false |
DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/examples/linear_model/plot_logistic_multinomial.py | 1 | 2483 | """
====================================================
Plot multinomial and One-vs-Rest Logistic Regression
====================================================
Plot decision surface of multinomial and One-vs-Rest Logistic Regression.
The hyperplanes corresponding to the three One-vs-Rest (OVR) classifiers
are repre... | mit | -755,196,933,928,153,700 | 33.013699 | 74 | 0.588401 | false |
clongmore/program-with-objects_1 | entertainment_center.py | 1 | 2235 | import fresh_tomatoes
import media
blind_side = media.Movie("The Blind Side", "The remarkable true story of all-American football star Michael Oher",
"http://upload.wikimedia.org/wikipedia/en/thumb/6/60/Blind_side_poster.jpg/220px-Blind_side_poster.jpg",
"https://... | mit | -333,464,672,204,078,850 | 60.083333 | 154 | 0.626398 | false |
alexston/calibre-webserver | src/calibre/gui2/actions/match_books.py | 5 | 1351 | #!/usr/bin/env python
# vim:fileencoding=utf-8
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
from calibre.gui2 import error_dialog
fr... | gpl-3.0 | -1,667,387,852,331,383,800 | 33.641026 | 87 | 0.626203 | false |
ilvar/django-mailer | mailer/__init__.py | 2 | 3346 | VERSION = (0, 2, 0, "a", "1-ses") # following PEP 386
DEV_N = None
def get_version():
version = "%s.%s" % (VERSION[0], VERSION[1])
if VERSION[2]:
version = "%s.%s" % (version, VERSION[2])
if VERSION[3] != "f":
version = "%s%s%s" % (version, VERSION[3], VERSION[4])
if DEV_N:
... | mit | 5,560,995,170,789,437,000 | 31.173077 | 93 | 0.615362 | false |
LukeCarrier/py3k-pexpect | tests/test_misc.py | 1 | 7706 | #!/usr/bin/env python
import pexpect
import unittest
from . import PexpectTestCase
import time
import os
import re
class TestCaseMisc(PexpectTestCase.PexpectTestCase):
def test_isatty (self):
child = pexpect.spawn('cat')
assert child.isatty(), "Not returning True. Should always be True."
... | mit | -2,376,140,708,706,264,600 | 44.597633 | 181 | 0.567869 | false |
srowen/spark | python/pyspark/pandas/data_type_ops/date_ops.py | 5 | 3954 | #
# 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 | -5,969,488,601,596,109,000 | 42.450549 | 94 | 0.691705 | false |
alberto-antonietti/nest-simulator | pynest/nest/tests/test_siegert_neuron.py | 3 | 4878 | # -*- coding: utf-8 -*-
#
# test_siegert_neuron.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST 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 Lic... | gpl-2.0 | 270,003,277,879,200,900 | 32.875 | 78 | 0.609471 | false |
imbstack/pasquino | migrations/env.py | 2 | 2643 | from __future__ import with_statement
from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
import logging
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config ... | mit | 3,909,830,976,631,564,000 | 31.62963 | 78 | 0.673477 | false |
aliasfalse/rowboat | rowboat/models/custcommands.py | 1 | 1500 | from peewee import (
BigIntegerField, TextField, DateTimeField, CompositeKey, IntegerField
)
from datetime import datetime
from holster.enum import Enum
from rowboat.sql import BaseModel
@BaseModel.register
class CustomCommands(BaseModel):
Types = Enum(
'CMD',
'LISTEN',
bitmask=False,... | mit | -4,021,120,537,533,538,300 | 23.590164 | 73 | 0.607333 | false |
raccoongang/socraticqs2 | mysite/fsm/fsm_base.py | 2 | 4839 | """Module contains FSMStack object - main interface to our current FSM if any
FSMStack methods:
* ``event`` - top-level interface for passing event to a running FSM instance
* ``push`` - start running a new FSM instance (layer)
* ``pop`` - pop current FSM state and pass event to next stack state if any
* ``res... | apache-2.0 | -922,452,241,754,503,800 | 38.663934 | 83 | 0.596818 | false |
vhf/confusable_homoglyphs | confusable_homoglyphs/cli.py | 1 | 2745 | # -*- coding: utf-8 -*-
import re
from collections import defaultdict
from .utils import u, get, dump
try:
import click
except ImportError:
print('Install this package with the [cli] extras to enable the CLI.')
raise
@click.group()
def cli():
pass
@cli.command()
def update():
"""
Update th... | mit | 1,355,311,340,272,766,200 | 27.852632 | 79 | 0.557826 | false |
mhenke/gerrit-topic-reviews | contrib/check-valid-commit.py | 20 | 2869 | #!/usr/bin/env python
import commands
import getopt
import sys
SSH_USER = 'bot'
SSH_HOST = 'localhost'
SSH_PORT = 29418
SSH_COMMAND = 'ssh %s@%s -p %d gerrit approve ' % (SSH_USER, SSH_HOST, SSH_PORT)
FAILURE_SCORE = '--code-review=-2'
FAILURE_MESSAGE = 'This commit message does not match the standard.' \
+ '... | apache-2.0 | -4,344,717,063,191,373,000 | 26.586538 | 80 | 0.534333 | false |
smainand/scapy | scapy/arch/common.py | 1 | 2718 | # This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more information
# Copyright (C) Philippe Biondi <phil@secdev.org>
# This program is published under a GPLv2 license
"""
Functions common to different architectures
"""
import socket
from fcntl import ioctl
import os
import struct
import ctyp... | gpl-2.0 | -8,084,600,124,679,608,000 | 27.610526 | 98 | 0.608168 | false |
zhouhoo/wiki_zh_vec | wiki_token.py | 1 | 1187 | import io
import jieba
def cut_words(input_file, output_file):
count = 0
with io.open(output_file, mode = 'w', encoding = 'utf-8') as outfile:
with io.open(input_file, mode = 'r', encoding = 'utf-8') as infile:
for line in infile:
line = line.strip()
if len(... | apache-2.0 | 5,425,672,249,229,324,000 | 36.125 | 76 | 0.509688 | false |
bigmlcom/python | bigml/deepnet.py | 2 | 16730 | # -*- coding: utf-8 -*-
#
# Copyright 2017-2021 BigML
#
# 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 | -4,185,756,928,750,375,400 | 40.308642 | 79 | 0.578004 | false |
NolanZhao/OpenBazaar | installers/windows/openbazaar.py | 13 | 1835 | #
# A short note why this bootstraper is needed:
# setup.py must specify a python file to be inserted into openbazaar.exe
# Before starting node/openbazaar.py it is needs to be bootstraped properly.
# In a development environment all packages and dependent libraries will be
# easy accessible. However, in an installed e... | mit | 5,457,212,010,593,020,000 | 32.363636 | 94 | 0.699183 | false |
orione7/plugin.video.streamondemand-pureita | lib/jsbeautifier/tests/testjsbeautifier.py | 41 | 119070 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import unittest
import jsbeautifier
import six
class TestJSBeautifier(unittest.TestCase):
def test_unescape(self):
# Test cases contributed by <chrisjshull on GitHub.com>
test_fragment = self.decodesto
bt = self.bt
bt('"\\\\s... | gpl-3.0 | 4,402,752,420,700,130,300 | 45.293157 | 347 | 0.364814 | false |
timabell/gpodder | src/gpodder/gtkui/interface/progress.py | 3 | 4066 | # -*- coding: utf-8 -*-
#
# gPodder - A media aggregator and podcast client
# Copyright (c) 2005-2010 Thomas Perl and the gPodder Team
#
# gPodder 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... | gpl-3.0 | -9,015,536,793,855,132,000 | 34.051724 | 79 | 0.655435 | false |
kennethreitz/ghsync | ghsync/core.py | 1 | 4791 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Kenneth Reitz's GitHub Syncer
This script uses the GitHub API to get a list of all forked, mirrored, public, and
private repos in your GitHub account. If the repo already exists locally, it will
update it via git-pull. Otherwise, it will properly clone the repo.
It wi... | isc | 302,543,416,765,623,040 | 30.529801 | 115 | 0.563327 | false |
jeedom/plugin-sms | resources/smsd/gsmmodem/serial_comms.py | 9 | 6451 | #!/usr/bin/env python
""" Low-level serial communications handling """
import sys, threading, logging
import re
import serial # pyserial: http://pyserial.sourceforge.net
from .exceptions import TimeoutException
from . import compat # For Python 2.6 compatibility
class SerialComms(object):
""" Wraps all low-lev... | gpl-2.0 | 1,671,215,766,286,385,200 | 44.751773 | 130 | 0.554643 | false |
operasoftware/presto-testo | css/image-fit/reftests/img-svg-tall-viewBox/build.py | 4 | 4649 | #!/usr/bin/python
import sys
import os
sys.path.insert(0, os.path.abspath("../../include/"))
import allpairs
imgfilename = 'tall-viewBox.svg'
reffilename = 'tall-viewBox-none.svg'
imgwidth = 160.0
imgheight = 240.0
test_template = """<!doctype html>
<!-- This file is generated by build.py. -->
<title>img %s; %s</titl... | bsd-3-clause | -4,559,569,907,050,102,300 | 29.993333 | 101 | 0.502259 | false |
fedora-conary/rbuild | rbuild_test/unit_test/pluginstest/rebasetest.py | 1 | 10982 | #!/usr/bin/python
#
# Copyright (c) SAS Institute Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | -6,248,334,375,915,877,000 | 45.533898 | 94 | 0.651521 | false |
ytjiang/django | tests/gis_tests/test_spatialrefsys.py | 21 | 4912 | import unittest
from django.contrib.gis.gdal import HAS_GDAL
from django.db import connection
from django.test import skipUnlessDBFeature
from django.utils import six
from .utils import SpatialRefSys, oracle, postgis, spatialite
test_srs = ({
'srid': 4326,
'auth_name': ('EPSG', True),
'auth_srid': 4326,
... | bsd-3-clause | 1,315,265,438,731,829,000 | 39.262295 | 108 | 0.599145 | false |
ozgurturkiye/istihzapython | 000.JustForFunPrograms/008_decimal_to_binary/character_to_bit.py | 1 | 1865 | +r"""008_binary_kodlama_sistemi - Program hakkında açıklamalar -
+
+Türk alfabesindeki (sadece büyük harf) harfleri ve boşluk karakterini
+basit bir kodlama sistemine göre binary karşılıklarını yazan kodlar.
+
+Onlu sayma sistemindeki sayıların ikili sayma sistemindeki
+karşılıklarını yazdırmaktan başka birşey y... | gpl-3.0 | 2,501,016,351,503,522,000 | 35.46 | 71 | 0.429512 | false |
bumfo/sublime-real-javascript | libs/js-beautify/python/cssbeautifier/tests/test.py | 7 | 2850 | import unittest
import cssbeautifier
class CSSBeautifierTest(unittest.TestCase):
def resetOptions(self):
self.options = cssbeautifier.default_options()
self.options.indent_size = 1
self.options.indent_char = '\t'
self.options.selector_separator_newline = True
self.options.end_with_n... | mit | -934,259,057,452,923,000 | 40.304348 | 156 | 0.562456 | false |
chen0031/Dato-Core | src/unity/python/graphlab/test/test_connect.py | 13 | 7539 | '''
Copyright (C) 2015 Dato, Inc.
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the DATO-PYTHON-LICENSE file for details.
'''
import graphlab
import mock
import os
import random
import stat
import tempfile
import unittest
import logging
from graphlab.connec... | agpl-3.0 | 7,017,280,372,514,797,000 | 40.196721 | 120 | 0.666932 | false |
bernardokyotoku/skillplant | django/contrib/gis/geos/prototypes/geom.py | 12 | 4584 | from ctypes import c_char_p, c_int, c_size_t, c_ubyte, c_uint, POINTER
from django.contrib.gis.geos.libgeos import CS_PTR, GEOM_PTR, PREPGEOM_PTR, GEOS_PREPARE
from django.contrib.gis.geos.prototypes.errcheck import \
check_geom, check_minus_one, check_sized_string, check_string, check_zero
from django.contrib.... | bsd-3-clause | -7,688,265,712,280,169,000 | 36.521008 | 88 | 0.718368 | false |
msrb/freeipa | ipalib/plugins/hbacsvcgroup.py | 5 | 5417 | # Authors:
# Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2010 Red Hat
# see file 'COPYING' for use and warranty information
#
# 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... | gpl-3.0 | -4,154,120,432,591,282,000 | 31.244048 | 277 | 0.631715 | false |
edminer/pymodules | pythonsamp.py | 1 | 5581 | #!/usr/local/bin/python -u
import sys,os,logging,re,traceback
sys.path.append("/usr/local/bin/pymodules")
from emgenutil import EXENAME,EXEPATH,GeneralError
import emgenutil
#------------------------------------------------------------------------------
# GLOBALS
#-----------------------------------------------------... | gpl-3.0 | 1,954,630,745,844,918,800 | 33.88125 | 138 | 0.521949 | false |
monikagrabowska/osf.io | api_tests/registrations/views/test_registration_embeds.py | 12 | 2922 | from nose.tools import * # flake8: noqa
import functools
from framework.auth.core import Auth
from api.base.settings.defaults import API_BASE
from tests.base import ApiTestCase
from osf_tests.factories import (
ProjectFactory,
AuthUserFactory,
RegistrationFactory
)
class TestRegistrationEmbeds(ApiTestCa... | apache-2.0 | 826,183,483,024,836,200 | 40.15493 | 103 | 0.656057 | false |
izrik/tudor | tests/persistence_t/sqlalchemy/layer/test_get_note.py | 1 | 1484 |
from tests.persistence_t.sqlalchemy.util import PersistenceLayerTestBase
class GetNoteTest(PersistenceLayerTestBase):
def setUp(self):
self.pl = self.generate_pl()
self.pl.create_all()
def test_get_note_none_raises(self):
# expect
self.assertRaises(ValueError, self.pl.get_not... | gpl-2.0 | 6,242,855,809,844,425,000 | 28.68 | 72 | 0.617251 | false |
elbeardmorez/quodlibet | quodlibet/quodlibet/plugins/gstelement.py | 1 | 1397 | # -*- coding: utf-8 -*-
# Copyright 2012 Christoph Reiter
#
# 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.
class GStr... | gpl-2.0 | -4,628,161,674,052,333,000 | 28.723404 | 74 | 0.692198 | false |
cyanogen/uchroma | uchroma/server/device_base.py | 1 | 17370 | #
# uchroma - Copyright (C) 2021 Stefanie Kondik
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, version 3.
#
# This program is distributed in the hope that it will be useful, but
# WIT... | lgpl-3.0 | -2,896,111,960,248,422,000 | 25.600306 | 99 | 0.581693 | false |
oarriaga/single_shot_multibox_detector | src/utils/tests/vis_bbox.py | 1 | 1726 | import pickle
import matplotlib.pyplot as plt
"""
from datasets import DataManager
from utils.generator import ImageGenerator
from utils.boxes import to_point_form
from utils.boxes import create_prior_boxes
from tqdm import tqdm
datasets = ['VOC2007', 'VOC2012']
splits = ['trainval', 'trainval']
class_names = 'all'
d... | mit | -4,195,889,074,880,591,000 | 27.766667 | 78 | 0.71263 | false |
CohibAA/p2pool-doge1-8 | p2pool/bitcoin/networks/kittehcoin.py | 10 | 1210 | import os
import platform
from twisted.internet import defer
from .. import data, helper
from p2pool.util import pack
P2P_PREFIX = 'c0c0c0c0'.decode('hex') #pchmessagestart
P2P_PORT = 22566
ADDRESS_VERSION = 45 #pubkey_address
RPC_PORT = 22565
RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
... | gpl-3.0 | -1,299,162,831,974,034,200 | 39.333333 | 105 | 0.71405 | false |
tensorflow/tpu | models/official/mask_rcnn/object_detection/tf_example_decoder.py | 1 | 7436 | # 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 | 3,985,326,566,496,668,700 | 41.982659 | 80 | 0.642684 | false |
tailhook/sqlparse | examples/extract_table_names.py | 9 | 1799 | # This example illustrates how to extract table names from nested
# SELECT statements.
# See:
# http://groups.google.com/group/sqlparse/browse_thread/thread/b0bd9a022e9d4895
sql = """
select K.a,K.b from (select H.b from (select G.c from (select F.d from
(select E.e from A, B, C, D, E), F), G), H), I, J, K order by 1... | bsd-3-clause | 3,245,527,873,267,118,000 | 28.983333 | 79 | 0.617565 | false |
AlexAkulov/worker | moira/graphite/grammar.py | 2 | 3871 | """Copyright 2008 Orbitz WorldWide
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... | gpl-3.0 | 1,981,972,231,787,074,600 | 24.806667 | 78 | 0.673986 | false |
TeskaLabs/SeaCat-Client-Python3 | seacat/spdy/alx1_http.py | 1 | 2080 | import struct
from .spdy import *
from .vle import spdy_add_vle_string, spdy_read_vle_string
forbidden_fields = frozenset([
"Host",
"Connection"
])
def build_syn_stream_frame(frame, stream_id, host, method, path, headers, fin_flag):
hdr_len = struct.calcsize('!HH4BIIBB')
assert((frame.position + hdr_len) <= fram... | bsd-3-clause | -7,424,434,996,138,187,000 | 26.012987 | 84 | 0.69375 | false |
wkrzemien/DIRAC | Core/Utilities/TimeLeft/test/Test_LSFTimeLeft.py | 8 | 2567 | """ Test class for LSFTimeLeft utility
"""
import os
import unittest
from mock import MagicMock, patch
from DIRAC import gLogger, S_OK, S_ERROR
from DIRAC.Core.Utilities.TimeLeft.LSFTimeLeft import LSFTimeLeft
LSF_KEK_BQUEUES = """ CPULIMIT
720.0 min
RUNLIMIT
1440.0 min
"""
LSF_LSHOSTS = """ HOST_NAME ... | gpl-3.0 | 7,858,330,069,552,106,000 | 31.910256 | 141 | 0.667316 | false |
thkoch2001/rur-ple | rur_py/robot_factory.py | 4 | 17165 | # -*- coding: utf-8
""" RUR-PLE: Roberge's Used Robot - a Python Learning Environment
robot_factory.py - see description below
Version 0.8.7
Author: Andre Roberge Copyright 2005, 2006
andre.roberge@gmail.com
robot_factory includes four classes:
Robot_brain1(), which incorporates the basic logi... | gpl-2.0 | 2,743,357,906,677,990,000 | 36.15368 | 100 | 0.543431 | false |
xzturn/tensorflow | tensorflow/python/keras/engine/data_adapter_test.py | 2 | 42927 | # 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 | 5,481,293,635,844,655,000 | 38.747222 | 80 | 0.649451 | false |
ethanhlc/streamlink | src/streamlink/plugins/dogus.py | 2 | 3327 | from __future__ import print_function
import re
from streamlink.plugin import Plugin
from streamlink.plugin.api import http
from streamlink.plugin.api import validate
from streamlink.stream import HDSStream
from streamlink.stream import HLSStream
class Dogus(Plugin):
"""
Support for live streams from Dogus ... | bsd-2-clause | -1,471,256,863,183,394,000 | 38.141176 | 114 | 0.513375 | false |
VeNoMouS/Sick-Beard | lib/transmissionrpc/constants.py | 3 | 28010 | # -*- coding: utf-8 -*-
# Copyright (c) 2008-2013 Erik Svensson <erik.public@gmail.com>
# Licensed under the MIT license.
import logging
from six import iteritems
LOGGER = logging.getLogger('transmissionrpc')
LOGGER.setLevel(logging.ERROR)
def mirror_dict(source):
"""
Creates a dictionary with all values as ... | gpl-3.0 | 44,125,306,050,202,640 | 93.949153 | 200 | 0.56387 | false |
ehdsouza/python-sdk | examples/tone_analyzer_v3.py | 1 | 1714 | import json
import os
from os.path import join, dirname
from watson_developer_cloud import ToneAnalyzerV3
tone_analyzer = ToneAnalyzerV3(
username='YOUR SERVICE USERNAME',
password='YOUR SERVICE PASSWORD',
version='2016-05-19')
print("\ntone_chat() example 1:\n")
utterances = [{'text': 'I am very happy.',... | apache-2.0 | -6,885,231,069,875,425,000 | 37.088889 | 79 | 0.613769 | false |
saradbowman/osf.io | osf/migrations/0175_pagecounter_schema.py | 10 | 1213 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-10 18:12
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('osf', '0174_add_ab_testing_home_page_version_b_flag'),
... | apache-2.0 | 566,671,735,279,718,600 | 32.694444 | 156 | 0.607585 | false |
glaubitz/fs-uae-debian | arcade/OpenGL/arrays/arraydatatype.py | 9 | 13543 | """Array data-type implementations (abstraction points for GL array types"""
import ctypes
import OpenGL
from OpenGL.raw.GL import _types
from OpenGL import plugins
from OpenGL.arrays import formathandler, _arrayconstants as GL_1_1
from OpenGL import logs
_log = logs.getLog( 'OpenGL.arrays.arraydatatype' )
from OpenG... | gpl-2.0 | 8,271,836,533,093,973,000 | 43.993355 | 100 | 0.595954 | false |
red-hood/calendarserver | twistedcaldav/sharing.py | 1 | 37736 | # -*- test-case-name: twistedcaldav.test.test_sharing -*-
# #
# Copyright (c) 2010-2015 Apple 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.o... | apache-2.0 | 902,628,120,102,176,500 | 38.472803 | 134 | 0.604436 | false |
tpsatish95/gensim | setup.py | 4 | 5463 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Run with:
sudo python ./setup.py install
"""
import os
import sys
import warnings
if sys.version_info[:2] < (2, 6):
raise Exc... | lgpl-3.0 | 8,696,871,435,351,643,000 | 31.694611 | 97 | 0.623993 | false |
vinilios/synnefo | snf-astakos-app/astakos/synnefo_settings.py | 10 | 2655 | # Copyright (C) 2010-2014 GRNET S.A.
#
# 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 i... | gpl-3.0 | 8,899,553,753,741,158,000 | 33.934211 | 77 | 0.734463 | false |
Pal3love/otRebuilder | Package/otRebuilder/Dep/fontTools/ttLib/tables/F_F_T_M_.py | 3 | 1287 | from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import *
from fontTools.misc import sstruct
from fontTools.misc.textTools import safeEval
from fontTools.misc.timeTools import timestampFromString, timestampToString
from . import DefaultTable
FFTMFormat = """
> # big endian
... | mit | -8,940,748,176,325,591,000 | 29.642857 | 86 | 0.731935 | false |
flennerhag/mlens | mlens/parallel/tests/test_b3_layer_temporal.py | 1 | 3745 | """"ML-ENSEMBLE
Testing suite for Layer and Transformer
"""
from mlens.testing import Data, EstimatorContainer, get_layer, run_layer
def test_fit():
"""[Parallel | Layer | Multiprocessing | Temporal | No Proba | No Prep] test fit"""
args = get_layer('fit', 'multiprocessing', 'temporal', False, False, window=... | mit | -7,368,481,038,749,782,000 | 38.840426 | 117 | 0.661949 | false |
Alexander-M-Waldman/local_currency_site | lib/python2.7/site-packages/allauth/socialaccount/providers/foursquare/provider.py | 5 | 1026 | from allauth.socialaccount import providers
from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider
class FoursquareAccount(ProviderAccount):
def get_profile_url(self):
return 'https://foursquare.com/user/' \
+... | gpl-3.0 | -3,992,791,272,591,432,000 | 30.090909 | 74 | 0.679337 | false |
lihui7115/ChromiumGStreamerBackend | components/cronet/tools/cr_cronet.py | 9 | 3357 | #!/usr/bin/python
# 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.
"""
cr_cronet.py - cr - like helper tool for cronet developers
"""
import argparse
import os
import sys
def run(command, extra_options='... | bsd-3-clause | 1,914,110,942,877,224,400 | 30.669811 | 80 | 0.587727 | false |
zouyapeng/horizon | openstack_dashboard/dashboards/project/data_processing/clusters/tabs.py | 7 | 6387 | # 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,357,498,103,764,889,000 | 34.287293 | 78 | 0.573352 | false |
Nelestya/0X000M001 | Download.py | 1 | 1618 | #!/usr/bin/python3.4
#-*- coding: utf-8 -*-
from __future__ import unicode_literals
import youtube_dl
import os
class MyLogger(object):
def debug(self, msg):
pass
def warning(self, msg):
pass
def error(self, msg):
print(msg)
class Downloadmp3():
"""Class for download webm an... | gpl-3.0 | 2,695,171,229,128,586,000 | 25.52459 | 64 | 0.485785 | false |
pshchelo/ironic | ironic/tests/unit/drivers/modules/irmc/test_management.py | 4 | 22864 | # Copyright 2015 FUJITSU LIMITED
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 | 2,663,143,609,079,919,600 | 43.138996 | 78 | 0.578989 | false |
eskibars/domoticz | plugins/AwoxSMP/plugin.py | 23 | 7982 | # Awox SmartPlug Plugin
#
# Author: zaraki673, 2017
#
"""
<plugin key="AwoxSMP" name="Awox SmartPlug" author="zaraki673" version="1.0.0">
<params>
<param field="Address" label="MAC Address" width="150px" required="true"/>
<param field="Mode6" label="Debug" width="75px">
<options>
<option label="Tru... | gpl-3.0 | -6,923,799,045,652,868,000 | 29.7 | 205 | 0.678401 | false |
petewarden/tensorflow | tensorflow/python/eager/context.py | 3 | 83450 | # 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,775,819,562,434,817,000 | 32.90898 | 89 | 0.687969 | false |
SamiHiltunen/invenio-redirector | invenio_redirector/views.py | 4 | 2933 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2012, 2013, 2014, 2015 CERN.
#
# Invenio 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... | gpl-2.0 | -3,288,096,179,801,401,300 | 36.602564 | 75 | 0.679168 | false |
yashu-seth/BinPy | BinPy/tests/test_signal_generator.py | 5 | 3621 | import time
import math
from BinPy import *
def test_sin_signal():
sig1 = SignalGenerator(typ=0, freq=1000, ampl=1)
time.sleep(0.5) # To allow setup time.
max = -1
min = 2
start_time = time.time()
while (time.time() - start_time) < sig1.time_period:
# sample when the run method is i... | bsd-3-clause | -3,346,815,174,515,235,300 | 24.5 | 72 | 0.560895 | false |
kragniz/hexogen | Hexogen/ProgramData.py | 1 | 1257 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2011 Louis Taylor <kragniz@gmail.com>
#
# This file is part of Hexogen
#
# This program is free software: you can redistribute it and/or modify ... | gpl-3.0 | -6,364,007,642,810,695,000 | 56.136364 | 81 | 0.483691 | false |
iwvelando/conky_wunderground_scripts | wunderground_hourly_forecast.py | 1 | 2546 | import urllib2
import json
import sys
import os
import datetime
# Extract command line arguments and grab the wunderground API key
location = sys.argv[1]
nHours = int(sys.argv[2])
apiKey = open(os.getenv('HOME') + '/.api/wunderground','r').readline().split('\n')[0]
# Wunderground API call for astronomy data (for sunr... | bsd-2-clause | 5,041,621,537,292,661,000 | 33.876712 | 103 | 0.653967 | false |
maestro-hybrid-cloud/keystone | keystone/contrib/oauth1/validator.py | 17 | 6574 | # Copyright 2014 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | apache-2.0 | 9,042,448,513,270,215,000 | 35.726257 | 78 | 0.606632 | false |
AdrieleD/gr-mac1 | examples/transceiver_CSS_USRP.py | 1 | 13355 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: IEEE 802.15.4 Transceiver using CSS PHY
# Description: IEEE 802.15.4 Transceiver using CSS PHY
# Generated: Wed Jun 22 12:23:47 2016
##################################################... | gpl-3.0 | 9,201,087,214,878,913,000 | 37.266476 | 112 | 0.579633 | false |
mozilla/badges.mozilla.org | badgus/badger_api/views.py | 2 | 3957 | import logging
import json
try:
from cStringIO import cStringIO as StringIO
except:
from StringIO import StringIO
from django.conf import settings
from django.core.exceptions import ValidationError
from django.core.validators import validate_email
from django.http import (HttpResponseRedirect, HttpResponse,
... | bsd-3-clause | -6,858,415,196,554,576,000 | 31.434426 | 77 | 0.625727 | false |
Distrotech/scons | build/scons/engine/SCons/Tool/ipkg.py | 2 | 2509 | """SCons.Tool.ipkg
Tool-specific initialization for ipkg.
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.
The ipkg tool calls the ipkg-build. Its only argument should be the
packages fake_root.
"""
#
# Copyrigh... | mit | -6,297,349,418,761,261,000 | 36.447761 | 113 | 0.682742 | false |
jestapinski/oppia | core/controllers/incoming_emails_test.py | 5 | 4102 | # coding: utf-8
#
# Copyright 2014 The Oppia 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 requi... | apache-2.0 | -2,695,697,959,131,080,700 | 40.02 | 80 | 0.630912 | false |
mateuszmidor/GumtreeOnMap | src/geocoderwithcache.py | 1 | 1376 | '''
Created on 03-08-2014
@author: mateusz
'''
from geocoder import Geocoder
from injectdependency import InjectDependency, Inject
@InjectDependency('logger')
class GeocoderWithCache():
logger = Inject
def __init__(self, geocoder=Geocoder, storage=dict()):
self.geocoder = geocoder
... | gpl-2.0 | 2,080,086,836,232,755,000 | 30.809524 | 91 | 0.62936 | false |
dajohnso/cfme_tests | artifactor/__init__.py | 2 | 12258 | """
Artifactor
Artifactor is used to collect artifacts from a number of different plugins and put them into
one place. Artifactor works around a series of events and is geared towards unit testing, though
it is extensible and customizable enough that it can be used for a variety of purposes.
The main guts of Artifact... | gpl-2.0 | -3,901,482,880,227,899,000 | 40.412162 | 100 | 0.678006 | 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.