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 |
|---|---|---|---|---|---|---|---|---|---|---|
Pcolar/dpn-python-library | create_ingest.py | 1 | 1478 | #!/usr/bin/python
""" Synchronize DPN Ingest Records """
from app.dpn_python_library import *
import json
import requests
import sys
# get access info from the environment
dpn_host, dpn_token = load_environment()
# log_message("DPN Host: "+dpn_host+" DPN Token: "+dpn_token)
token_string="Token token="+dpn_token
dpn_... | bsd-3-clause | -2,562,262,990,243,185,700 | 33.372093 | 132 | 0.716509 | false |
syci/l10n-spain | l10n_es_vat_book/models/l10n_es_vat_book_invoice_tax_lines.py | 5 | 1993 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2017 Praxya (http://praxya.com/)
# Daniel Rodriguez Lijo <drl.9319@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the te... | agpl-3.0 | -8,056,622,840,544,424,000 | 36.603774 | 78 | 0.628199 | false |
antoviaque/edx-platform | common/djangoapps/microsite_configuration/microsite.py | 41 | 4893 | """
This file implements the Microsite support for the Open edX platform.
A microsite enables the following features:
1) Mapping of sub-domain name to a 'brand', e.g. foo-university.edx.org
2) Present a landing page with a listing of courses that are specific to the 'brand'
3) Ability to swap out some branding element... | agpl-3.0 | -779,269,672,445,813,800 | 27.614035 | 100 | 0.68833 | false |
Ademan/python-xlib-branch | utils/parsexbug.py | 3 | 7194 | #!/usr/bin/python
import sys
import os
import pprint
import struct
# Change path so we find Xlib
sys.path.insert(1, os.path.join(sys.path[0], '..'))
def dummy_buffer(str, x, y = sys.maxint):
return str[x:y]
__builtins__.buffer = dummy_buffer
from Xlib.protocol import display, request, rq, event
from Xlib impo... | gpl-2.0 | 7,969,402,834,485,398,000 | 28.850622 | 101 | 0.516959 | false |
snower/TorMySQL | tormysql/platform/tornado.py | 1 | 13912 | # -*- coding: utf-8 -*-
# 17/12/8
# create by: snower
from __future__ import absolute_import, division, print_function
import sys
import socket
import errno
from tornado.iostream import IOStream as BaseIOStream, SSLIOStream as BaseSSLIOStream, StreamClosedError, _ERRNO_WOULDBLOCK, ssl, ssl_wrap_socket, _client_ssl_de... | mit | -7,511,479,114,017,912,000 | 36.704607 | 167 | 0.559876 | false |
cmsdaq/hltd | lib/cx_Oracle-7.1/test/Features12_1.py | 1 | 18985 | #------------------------------------------------------------------------------
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
#
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
#
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
# Canada... | lgpl-3.0 | -8,089,385,629,371,357,000 | 43.775943 | 80 | 0.568659 | false |
AMOSoft/fabtools | fabtools/require/files.py | 1 | 7724 | """
Files and directories
=====================
This module provides high-level tools for managing files and
directories.
"""
from pipes import quote
from tempfile import mkstemp
from urlparse import urlparse
import hashlib
import os
from fabric.api import hide, put, run, settings
from fabtools.files import (
... | bsd-2-clause | 4,745,734,662,193,207,000 | 28.59387 | 81 | 0.598912 | false |
jmanoel7/my_dot_files | .local/share/gedit/plugins/quickSwitcher/plugin.py | 1 | 4552 | # -*- coding: utf-8 -*-
# Copyright (C) 2012 Matevž Pogačar (matevz.pogacar@gmail.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version... | gpl-3.0 | 4,204,226,165,111,456,000 | 28.545455 | 118 | 0.722418 | false |
qwefi/nova | nova/api/ec2/cloud.py | 1 | 82484 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | apache-2.0 | 6,961,433,997,333,561,000 | 41.960417 | 79 | 0.54784 | false |
insequent/kargo | contrib/terraform/terraform.py | 1 | 26747 | #!/usr/bin/env python2
#
# Copyright 2015 Cisco Systems, 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 applica... | apache-2.0 | 199,135,797,092,256,700 | 32.728878 | 160 | 0.57584 | false |
NetApp/cinder | cinder/volume/drivers/netapp/dataontap/fc_7mode.py | 4 | 5533 | # Copyright (c) - 2014, Clinton Knight. All rights reserved.
# Copyright (c) 2016 Mike Rooney. 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:... | apache-2.0 | 6,472,076,403,904,274,000 | 39.094203 | 78 | 0.657509 | false |
taedori81/shoop | shoop/admin/modules/orders/views/detail.py | 2 | 3148 | # -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.contrib import messages... | agpl-3.0 | -7,167,904,037,655,316,000 | 37.864198 | 110 | 0.656607 | false |
Sterlingcoin/Sterlingcoin-1.4-Lite-Edition-Linux-Source | src/qt/res/themes/qdarkstyle/__init__.py | 4 | 3636 | # -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) <2013-2014> <Colin Duquesnoy>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limi... | mit | 4,703,372,961,797,003,000 | 30.626087 | 82 | 0.643839 | false |
airbnb/superset | superset/db_engine_specs/exasol.py | 4 | 1847 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | 4,776,618,002,529,822,000 | 37.479167 | 74 | 0.662696 | false |
jianghuaw/nova | nova/tests/unit/api/openstack/compute/test_snapshots.py | 4 | 6622 | # Copyright 2011 Denali 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
#
# Unless requ... | apache-2.0 | -1,050,108,856,147,623,800 | 40.3875 | 78 | 0.647539 | false |
rootmos/ldapy | test/test_ldapy.py | 1 | 21501 | import unittest2
import mock
import configuration
from ldapy.node import NodeError
from ldapy.ldapy import Ldapy, AlreadyAtRoot, SetAttributeError, DeleteError
from ldapy.exceptions import NoSuchObject, NoSuchObjectInRoot
import io
import tempfile
from ldapy.connection_data import *
class BasicLdapyTests (unittest2.Te... | gpl-3.0 | 2,128,548,720,864,343,800 | 35.753846 | 137 | 0.619832 | false |
Arthaey/anki | aqt/toolbar.py | 18 | 4335 | # Copyright: Damien Elmes <anki@ichi2.net>
# -*- coding: utf-8 -*-
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
from aqt.qt import *
class Toolbar(object):
def __init__(self, mw, web):
self.mw = mw
self.web = web
self.web.page().mainFrame().setScrollBarPo... | agpl-3.0 | -1,603,127,015,484,851,000 | 24.958084 | 106 | 0.52526 | false |
benfinke/ns_python | nssrc/com/citrix/netscaler/nitro/resource/config/spillover/spilloverpolicy_binding.py | 3 | 4023 | #
# Copyright (c) 2008-2015 Citrix Systems, 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 l... | apache-2.0 | -3,365,258,356,310,001,700 | 29.022388 | 125 | 0.710167 | false |
SciTools/iris | lib/iris/tests/unit/fileformats/netcdf/test__load_aux_factory.py | 3 | 8075 | # Copyright Iris contributors
#
# This file is part of Iris and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
"""Unit tests for the `iris.fileformats.netcdf._load_aux_factory` function."""
# Import iris.tests first so that some things c... | lgpl-3.0 | 107,467,245,724,303,900 | 40.839378 | 78 | 0.615728 | false |
genius1611/horizon | django-openstack/django_openstack/tests/view_tests/auth_tests.py | 1 | 8089 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2011 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | apache-2.0 | 1,688,883,666,343,720,200 | 34.169565 | 78 | 0.598467 | false |
pyvideo/pyvideo | plugins/drop_no_publish.py | 1 | 3730 | import glob
import fnmatch
import json
import os
import pelican
from pelican import signals
# Monkey patch the ArticleGenerator to override specific method.
# We have to override the `_include_path` method because it does not
# filter files with enough specificity. If we wanted to filter a talk
# at `categories/jack... | gpl-3.0 | -2,504,210,644,669,340,700 | 34.52381 | 79 | 0.664879 | false |
maoy/zknova | nova/tests/integrated/test_extensions.py | 1 | 1611 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Justin Santa Barbara
# 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.apach... | apache-2.0 | -2,133,619,132,568,090,000 | 38.292683 | 78 | 0.70329 | false |
soarpenguin/ansible | lib/ansible/modules/cloud/cloudstack/cs_configuration.py | 18 | 8413 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2016, René Moser <mail@renemoser.net>
#
# 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 Lice... | gpl-3.0 | 4,783,205,968,975,773,000 | 28.409091 | 98 | 0.641065 | false |
SamiHiltunen/invenio-oauth2server | tests/helpers.py | 1 | 4827 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 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 option) any later... | gpl-2.0 | -8,373,578,105,909,043,000 | 32.061644 | 79 | 0.641807 | false |
tmuic/mlat-server | mlat/server/mlattrack.py | 1 | 16064 | # -*- mode: python; indent-tabs-mode: nil -*-
# Part of mlat-server: a Mode S multilateration server
# Copyright (C) 2015 Oliver Jowett <oliver@mutability.co.uk>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the ... | agpl-3.0 | -284,360,831,872,270,050 | 37.338902 | 117 | 0.547186 | false |
ngageoint/gamification-server | gamification/events/models.py | 1 | 4738 | # -*- coding: utf-8 -*-
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sub... | mit | -5,676,945,474,821,291,000 | 33.093525 | 97 | 0.658084 | false |
hb9cwp/wireshark-jdsu | tools/netscreen2dump.py | 3 | 4427 | #!/usr/bin/env python
"""
Converts netscreen snoop hex-dumps to a hex-dump that text2pcap can read.
$Id$
Copyright (c) 2004 by Gilbert Ramirez <gram@alumni.rice.edu>
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 Soft... | gpl-2.0 | 7,040,647,125,596,598,000 | 29.321918 | 85 | 0.595437 | false |
liavkoren/djangoDev | django/contrib/admin/views/main.py | 13 | 16170 | from collections import OrderedDict
import sys
from django.core.exceptions import SuspiciousOperation, ImproperlyConfigured
from django.core.paginator import InvalidPage
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models.fields import FieldDoesNotExist
from django.utils imp... | bsd-3-clause | -6,431,879,351,162,525,000 | 41.552632 | 99 | 0.585096 | false |
lud4ik/txAWS | txaws/s3/client.py | 1 | 20360 | # Copyright (C) 2008 Tristan Seligmann <mithrandi@mithrandi.net>
# Copyright (C) 2009 Canonical Ltd
# Copyright (C) 2009 Duncan McGreggor <oubiwann@adytum.us>
# Copyright (C) 2012 New Dream Network (DreamHost)
# Licenced under the txaws licence available at /LICENSE in the txaws source.
"""
Client wrapper for Amazon's... | mit | 3,304,984,709,359,625,700 | 37.198874 | 78 | 0.602358 | false |
alexandrucoman/bcbio-nextgen-vm | bcbiovm/provider/aws/vpc.py | 1 | 5166 | """
Create a VPC and associated resources for running bcbio on AWS.
"""
import re
import boto.ec2
from bcbiovm import log as logging
from bcbiovm.common import cluster as clusterops
from bcbiovm.common import constant
LOG = logging.get_logger(__name__)
class VirtualPrivateCloud(object):
"""Create and setup th... | mit | -8,731,287,913,822,601,000 | 38.136364 | 77 | 0.600658 | false |
awsdocs/aws-doc-sdk-examples | python/example_code/greengrass/snippets/getting_started_connectors.py | 1 | 1240 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""
Purpose
Shows how to implement an AWS Lambda function that publishes messages to an
AWS IoT Greengrass connector.
"""
# snippet-start:[greengrass.python.getting-started-connectors.complete]
import json
impo... | apache-2.0 | 591,161,710,055,551,500 | 29.243902 | 77 | 0.679839 | false |
ShineFan/odoo | addons/google_calendar/google_calendar.py | 59 | 51310 | # -*- coding: utf-8 -*-
import operator
import simplejson
import urllib2
import openerp
from openerp import tools
from openerp import SUPERUSER_ID
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, exception_to_unicode
from openerp.tools.translate import _
from openerp.http import ... | agpl-3.0 | 3,721,639,721,242,957,000 | 48.100478 | 244 | 0.565718 | false |
thelonious/g2x | overlay/DataManager.py | 2 | 1943 | import sqlite3
from DataRegion import DataRegion
SELECT_DEPTH = """
select
date, property, value
from
readings
where
device='Pressure/Temperature' and
property in ('running','depth_feet')
"""
SELECT_TEMPERATURE = """
select
date, property, value
from
readings
where
device='Pressure/Tempera... | mit | 6,062,674,781,791,214,000 | 25.256757 | 82 | 0.589295 | false |
mskovacic/Projekti | raspberrypi/isprobavanje/pyqt5/Showing_a_tooltip.py | 1 | 1033 |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
ZetCode PyQt5 tutorial
This example shows a tooltip on
a window and a button.
author: Jan Bodnar
website: zetcode.com
last edited: January 2015
"""
import sys
from PyQt5.QtWidgets import (QWidget, QToolTip,
QPushButton, QApplication)
from PyQt5.QtGui import QF... | mit | -3,473,603,819,737,326,600 | 19.66 | 61 | 0.555663 | false |
soldag/home-assistant | homeassistant/helpers/singleton.py | 8 | 1596 | """Helper to help coordinating calls."""
import asyncio
import functools
from typing import Callable, Optional, TypeVar, cast
from homeassistant.core import HomeAssistant
from homeassistant.loader import bind_hass
T = TypeVar("T")
FUNC = Callable[[HomeAssistant], T]
def singleton(data_key: str) -> Callable[[FUNC],... | apache-2.0 | 4,843,913,981,789,948,000 | 27 | 67 | 0.570175 | false |
ThiefMaster/werkzeug | tests/contrib/test_securecookie.py | 30 | 1328 | # -*- coding: utf-8 -*-
"""
tests.securecookie
~~~~~~~~~~~~~~~~~~
Tests the secure cookie.
:copyright: (c) 2014 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from werkzeug.utils import parse_cookie
from werkzeug.wrappers import Request, Response
from werkzeug.contrib.securec... | bsd-3-clause | -1,901,504,666,548,185,900 | 23.592593 | 87 | 0.634036 | false |
Designist/sympy | sympy/utilities/randtest.py | 54 | 5488 | """ Helpers for randomized testing """
from __future__ import print_function, division
from random import uniform
import random
from sympy.core.numbers import I
from sympy.simplify.simplify import nsimplify
from sympy.core.containers import Tuple
from sympy.core.numbers import comp
from sympy.core.symbol import Symb... | bsd-3-clause | -5,153,507,352,518,488,000 | 29.831461 | 78 | 0.579628 | false |
rosswhitfield/mantid | scripts/SANS/sans/state/StateObjects/StateWavelength.py | 3 | 3361 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 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 +
""" ... | gpl-3.0 | 6,934,669,579,327,263,000 | 42.649351 | 120 | 0.627789 | false |
wcy940418/CRNN-end-to-end | src/test.py | 1 | 1976 | from __future__ import print_function
from model import CRNN, CtcCriterion
from dataset import DatasetLmdb
import os
import tensorflow as tf
import numpy as np
class Conf:
def __init__(self):
self.nClasses = 36
self.trainBatchSize = 100
self.testBatchSize = 200
self.maxIteration = 1000
self.displayInterval ... | mit | 3,972,835,992,078,863,400 | 25.36 | 68 | 0.67004 | false |
benthomasson/ansible | lib/ansible/modules/identity/ipa/ipa_host.py | 7 | 9802 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.0',
... | gpl-3.0 | 8,054,805,247,081,936,000 | 32.568493 | 114 | 0.627015 | false |
unigent/OpenWrt-Firefly-SDK | staging_dir/host/lib/scons-2.3.1/SCons/Platform/os2.py | 8 | 2241 | """SCons.Platform.os2
Platform-specific initialization for OS/2 systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, ... | gpl-2.0 | -3,345,673,190,145,830,000 | 37.637931 | 119 | 0.687193 | false |
pabloborrego93/edx-platform | common/test/acceptance/tests/discussion/test_cohorts.py | 9 | 5802 | """
Tests related to the cohorting feature.
"""
from uuid import uuid4
from common.test.acceptance.tests.discussion.helpers import BaseDiscussionMixin, BaseDiscussionTestCase
from common.test.acceptance.tests.discussion.helpers import CohortTestMixin
from common.test.acceptance.tests.helpers import UniqueCourseTest
fr... | agpl-3.0 | 6,886,545,071,831,901,000 | 36.432258 | 167 | 0.689935 | false |
bchan1234/inf1340_2015_asst1 | test_exercise3.py | 1 | 1682 | #!/usr/bin/env python
""" Module to test exercise3.py """
__author__ = 'Susan Sim'
__email__ = "ses@drsusansim.org"
__copyright__ = "2015 Susan Sim"
__license__ = "MIT License"
import pytest
import mock
from exercise3 import diagnose_car
def test_accepted_inputs(capsys):
with mock.patch("__builtin__.raw_input... | mit | 8,326,796,137,564,447,000 | 31.980392 | 84 | 0.580856 | false |
Leila20/django | tests/admin_views/urls.py | 55 | 1024 | from django.conf.urls import include, url
from . import admin, custom_has_permission_admin, customadmin, views
urlpatterns = [
url(r'^test_admin/admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^test_admin/admin/secure-view/$', views.secure_view, name='secure_view'),
url(r'^test_admin/admin/s... | bsd-3-clause | 5,966,273,398,820,268,000 | 55.888889 | 112 | 0.680664 | false |
thomashaw/SecGen | modules/utilities/unix/ctf/metactf/files/repository/src_angr/dist/scaffold11.py | 6 | 1886 | # This time, the solution involves simply replacing scanf with our own version,
# since Angr does not support requesting multiple parameters with scanf.
import angr
import claripy
import sys
def main(argv):
path_to_binary = argv[1]
project = angr.Project(path_to_binary)
initial_state = project.factory.entry_st... | gpl-3.0 | 1,531,213,973,931,023,000 | 29.419355 | 90 | 0.675504 | false |
ledatelescope/bifrost | test/benchmarks/bifrost_benchmarks/pipeline_benchmarker.py | 1 | 2851 | """ This file defines the PipelineBenchmarker class
This class is used for timeing the execution of pipelines and
individual methods of blocks inside those pipelines.
"""
import numpy as np
from timeit import default_timer as timer
class PipelineBenchmarker(object):
""" Time total clock and individual parts of b... | bsd-3-clause | -6,278,130,528,610,996,000 | 33.768293 | 78 | 0.559102 | false |
paolodedios/tensorflow | tensorflow/python/ops/standard_ops.py | 6 | 5914 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -2,332,727,853,931,318,000 | 46.312 | 93 | 0.800473 | false |
chergert/gnome-builder | src/plugins/meson-templates/resources/src/gi_composites.py | 2 | 9161 | #
# Copyright © 2015 Dustin Spicuzza <dustin@virtualroadside.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later vers... | gpl-3.0 | 5,541,414,369,527,608,000 | 32.553114 | 93 | 0.61845 | false |
munkiat/libcloud | libcloud/dns/drivers/gandi.py | 27 | 8835 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | -658,542,503,280,973,000 | 31.722222 | 79 | 0.580192 | false |
proxysh/Safejumper-for-Mac | buildmac/Resources/env/lib/python2.7/site-packages/twisted/scripts/test/test_scripts.py | 12 | 4880 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for the command-line scripts in the top-level I{bin/} directory.
Tests for actual functionality belong elsewhere, written in a way that doesn't
involve launching child processes.
"""
from os import devnull, getcwd, chdir
from sys impor... | gpl-2.0 | 1,327,340,657,072,518,400 | 31.972973 | 80 | 0.649385 | false |
gangadharkadam/saloon_erp_install | erpnext/setup/doctype/company/company.py | 3 | 9857 | # 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, os
from frappe import _
from frappe.utils import cint
import frappe.defaults
from frappe.model.document import Document
class Company... | agpl-3.0 | -1,779,982,930,998,499,300 | 36.196226 | 168 | 0.677792 | false |
alexsavio/palladium | examples/julia/config.py | 1 | 1473 | {
'dataset_loader_train': {
'__factory__': 'palladium.dataset.Table',
'path': 'iris.data',
'names': [
'sepal length',
'sepal width',
'petal length',
'petal width',
'species',
],
'target_column': 'species',
... | apache-2.0 | -90,306,137,483,534,670 | 26.277778 | 77 | 0.433809 | false |
indictranstech/reciphergroup-erpnext | erpnext/projects/doctype/time_log/time_log.py | 3 | 10048 | # 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 cstr, flt, get_datetime, get_time, getdate
from dateutil.relativedelta import relativedelta
... | agpl-3.0 | -3,917,239,653,648,764,400 | 35.143885 | 115 | 0.703225 | false |
eptmp3/Sick-Beard | sickbeard/postProcessor.py | 21 | 48424 | # Author: Nic Wolfe <nic@wolfeden.ca>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of Sick Beard.
#
# Sick Beard 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 Lice... | gpl-3.0 | 1,425,806,893,186,517,200 | 44.899526 | 304 | 0.587498 | false |
alanjw/GreenOpenERP-Win-X86 | python/Lib/test/test_dict.py | 9 | 20894 | import unittest
from test import test_support
import UserDict, random, string
import gc, weakref
class DictTest(unittest.TestCase):
def test_constructor(self):
# calling built-in types without argument must return empty
self.assertEqual(dict(), {})
self.assertIsNot(dict(), {})
... | agpl-3.0 | -10,874,410,745,564,362 | 28.908284 | 78 | 0.470039 | false |
custode/reviewboard | reviewboard/scmtools/svn/__init__.py | 1 | 22249 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
import os
import re
import weakref
from django.conf import settings
from django.utils import six
from django.utils.translation import ugettext as _
from reviewboard.diffviewer.diffutils import convert_to_unicode
from reviewboard.diffviewe... | mit | -6,548,868,346,954,437,000 | 36.882253 | 79 | 0.554484 | false |
usnistgov/corr | corr-db/corrdb/common/managers/access_manager.py | 1 | 15322 | """Manage access control.
"""
# from .. import logAccess
# from flask.ext.stormpath import StormpathManager
# from flask.ext.stormpath import user
# from flask.ext.stormpath import login_required
# from stormpath.error import Error
import flask as fk
import hashlib
import datetime
import re
def get_or_create(documen... | mit | -7,367,021,864,759,053,000 | 38.797403 | 265 | 0.544381 | false |
hclivess/Stallion | nuitka/Cryptodome/Hash/MD4.py | 4 | 6598 | # ===================================================================
#
# Copyright (c) 2014, Legrandin <helderijs@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributio... | gpl-3.0 | 7,390,378,160,269,993,000 | 34.664865 | 79 | 0.578054 | false |
groschovskiy/keyczar | cpp/src/tools/swtoolkit/test/include_all_tools_test.py | 18 | 3464 | #!/usr/bin/python2.4
# Copyright 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... | apache-2.0 | -807,901,288,873,416,100 | 30.779817 | 78 | 0.68851 | false |
zhanqxun/cv_fish | win32/Demos/win32gui_dialog.py | 4 | 15197 | # A demo of a fairly complex dialog.
#
# Features:
# * Uses a "dynamic dialog resource" to build the dialog.
# * Uses a ListView control.
# * Dynamically resizes content.
# * Uses a second worker thread to fill the list.
# * Demostrates support for windows XP themes.
# If you are on Windows XP, and specify a ... | apache-2.0 | -3,355,804,236,979,198,000 | 38.742627 | 172 | 0.583734 | false |
DIRACGrid/DIRAC | src/DIRAC/Core/Utilities/test/Test_Profiler.py | 2 | 3974 | """ Test for Profiler.py
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import time
from os.path import dirname, join
from subprocess import Popen
import pytest
from flaky import flaky
import DIRAC
from DIRAC.Core.Utilities.Profiler import Profiler
... | gpl-3.0 | -7,051,127,279,062,369,000 | 24.474359 | 88 | 0.658782 | false |
adaur/SickRage | lib/imdb/parser/http/movieParser.py | 40 | 80839 | """
parser.http.movieParser module (imdb package).
This module provides the classes (and the instances), used to parse the
IMDb pages on the akas.imdb.com server about a movie.
E.g., for Brian De Palma's "The Untouchables", the referred
pages would be:
combined details: http://akas.imdb.com/title/tt0094226/combi... | gpl-3.0 | -912,132,293,669,755,400 | 40.583848 | 113 | 0.465444 | false |
jucimarjr/IPC_2017-1 | lista06/lista06_lista02_questao25.py | 1 | 1529 | #---------------------------------------------------------------------------
# Introdução a Programação de Computadores - IPC
# Universidade do Estado do Amazonas - UEA
# Prof. Jucimar Jr
# FANG YAO 1115180236
# LUIZ PAULO MACHADO E SOUZA 1515200542
# FELIPE GUERREIRO... | apache-2.0 | -2,593,557,404,899,977,700 | 37.552632 | 95 | 0.627412 | false |
umlfri/umlfri2 | umlfri2/metamodel/projecttemplate/project.py | 1 | 1171 | class ProjectTemplate:
def __init__(self, id, elements, connections, diagrams):
self.__id = id
self.__elements = elements
self.__connections = connections
self.__diagrams = diagrams
self.__metamodel = None
def _set_metamodel(self, metamodel):
self.__metamodel... | gpl-3.0 | 2,747,092,450,215,675,000 | 23.395833 | 60 | 0.578992 | false |
ageron/tensorflow | tensorflow/contrib/learn/python/learn/estimators/_sklearn.py | 13 | 6775 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -7,228,258,770,837,343,000 | 30.658879 | 91 | 0.656384 | false |
sfstpala/Victory-Chat | modules/chat.py | 1 | 12486 |
import time
import json
import cherrypy
import markdown
import urllib.parse
import functools
import collections
import hashlib
def jsonify(function):
@functools.wraps(function)
def wrapper(*args, **kwargs):
cherrypy.response.headers["Content-Type"] = "application/json"
return json.dumps(funct... | isc | -2,532,584,712,971,390,500 | 39.14791 | 89 | 0.493032 | false |
hpcloud-mon/tempest | tempest/api/volume/admin/test_volume_types_extra_specs_negative.py | 3 | 6184 | # Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | 2,315,887,284,898,949,000 | 38.896774 | 78 | 0.647154 | false |
Weihonghao/ECM | Vpy34/lib/python3.5/site-packages/theano/tensor/tests/test_blas_c.py | 1 | 12000 | from __future__ import absolute_import, print_function, division
import sys
import numpy
from unittest import TestCase
from nose.plugins.skip import SkipTest
import theano
import theano.tensor as tensor
from theano.tensor.blas_c import CGer
from theano.tensor.blas_scipy import ScipyGer
from theano.tensor.blas import... | agpl-3.0 | 3,789,379,958,906,507,000 | 36.5 | 137 | 0.594 | false |
gugod/searx | searx/engines/generalfile.py | 10 | 1463 | """
General Files (Files)
@website http://www.general-files.org
@provide-api no (nothing found)
@using-api no (because nothing found)
@results HTML (using search portal)
@stable no (HTML can change)
@parse url, title, content
@todo detect torrents?
"""
from lxml import html
# en... | agpl-3.0 | -6,921,181,586,945,908,000 | 22.596774 | 73 | 0.583049 | false |
rudhir-upretee/Sumo17_With_Netsim | tools/assign/one-shot.py | 1 | 8737 | #!/usr/bin/env python
"""
@file one-shot.py
@author Daniel Krajzewicz
@author Jakob Erdmann
@author Yun-Pang Wang
@author Michael Behrisch
@date 2008-03-10
@version $Id: one-shot.py 13811 2013-05-01 20:31:43Z behrisch $
This script does multiple sumo runs with different rerouting intervals.
SUMO, Simulation... | gpl-3.0 | -3,441,668,568,745,313,000 | 47.810056 | 195 | 0.617145 | false |
sjl/flask-csrf | setup.py | 1 | 1143 | """
flask-csrf
----------
A small Flask extension for adding CSRF protection.
Links
`````
* `documentation <http://sjl.bitbucket.org/flask-csrf/>`_
* `development version
<http://bitbucket.org/sjl/flask-csrf/get/tip.gz#egg=flask-csrf-dev`_
"""
from setuptools import setup
setup(
name='flask-csrf',
vers... | mit | -2,995,481,810,937,407,000 | 24.4 | 70 | 0.619423 | false |
saullocastro/pyNastran | pyNastran/gui/vtk_examples/vtk_cutter.py | 4 | 1603 | #!/usr/bin/env python
# kills the program when you hit Cntl+C from the command line
# doesn't save the current state as presumably there's been an error
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
# A simple script to demonstrate the vtkCutter function
import vtk
#Create a cube
cube = vtk.vtkCubeSourc... | lgpl-3.0 | 3,986,643,517,945,188,000 | 27.122807 | 98 | 0.769807 | false |
daxxi13/CouchPotatoServer | couchpotato/core/media/movie/providers/trailer/youtube_dl/extractor/addanime.py | 30 | 3025 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_HTTPError,
compat_str,
compat_urllib_parse,
compat_urllib_parse_urlparse,
)
from ..utils import (
ExtractorError,
)
class AddAnimeIE(InfoExtractor):
_VALID_URL = r'^http://(?:\w+... | gpl-3.0 | 7,868,871,040,285,022,000 | 33.770115 | 100 | 0.49686 | false |
mcloudv/fuel-ostf | fuel_health/tests/sanity/test_sanity_sahara.py | 1 | 7295 | # Copyright 2013 Mirantis, 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, s... | apache-2.0 | 8,312,028,947,680,183,000 | 41.16763 | 78 | 0.595065 | false |
DoubleNegativeVisualEffects/gaffer | python/GafferTest/ArrayPlugTest.py | 5 | 10757 | ##########################################################################
#
# Copyright (c) 2013, Image Engine Design 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:
#
# * Red... | bsd-3-clause | -7,084,898,802,702,663,000 | 32.827044 | 156 | 0.572 | false |
mikhaelharswanto/ryu | ryu/tests/unit/packet/test_icmpv6.py | 7 | 69723 | # Copyright (C) 2012 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | apache-2.0 | -601,829,008,736,663,800 | 33.619166 | 78 | 0.537039 | false |
batisteo/django-leaflet | leaflet/__init__.py | 1 | 7454 | # -*- coding: utf8 -*-
from __future__ import unicode_literals
try:
from urllib.parse import urlparse, urljoin
except ImportError:
from urlparse import urlparse, urljoin
import warnings
try:
from collections import OrderedDict
except ImportError:
# python 2.6 compatibility (need to install ordereddict... | lgpl-3.0 | -8,146,738,726,880,500,000 | 38.433862 | 120 | 0.655441 | false |
blackball/an-test6 | util/run_command.py | 1 | 1868 | import subprocess
import os
import select
from subprocess import PIPE
# Returns (rtn, out, err)
def run_command(cmd, timeout=None, callback=None, stdindata=None):
"""
Run a command and return the text written to stdout and stderr, plus
the return value.
Returns: (int return value, string out, string e... | gpl-2.0 | 269,165,512,683,234,530 | 30.661017 | 99 | 0.574411 | false |
LandisTwo/veromix-plasmoid | gtk/Indicator.py | 3 | 7136 | # -*- coding: utf-8 -*-
# Copyright (C) 2012 Nik Lutz <nik.lutz@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later vers... | gpl-3.0 | 801,493,414,747,905,500 | 43.6 | 142 | 0.637892 | false |
plypaul/airflow | tests/ti_deps/deps/dag_unpaused_dep.py | 20 | 1364 | # -*- 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 | -2,417,355,892,440,499,700 | 32.268293 | 74 | 0.68695 | false |
natefoo/tools-iuc | tools/ivar/prepare_amplicon_info.py | 5 | 1886 | #!/usr/bin/env python
# extends ivar trim's amplicon info parsing abilities
# to include calculation of amplicon regions from
# sets of nested (more than two) primers
import sys
# parse primers and their start positions from BED file
primer_starts = {}
with open(sys.argv[1]) as i:
for line in i:
f = lin... | mit | 3,584,726,299,554,713,000 | 32.087719 | 75 | 0.517497 | false |
M0ses/ansible | v2/ansible/plugins/inventory/directory.py | 16 | 1974 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | gpl-3.0 | 2,258,044,622,359,435,800 | 36.961538 | 111 | 0.652989 | false |
guard163/xen-api | scripts/time-vm-boots.py | 11 | 5426 | #!/usr/bin/env python
# Copyright (c) 2006-2007 XenSource, Inc.
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND... | lgpl-2.1 | -3,798,214,336,379,238,400 | 34.933775 | 96 | 0.621821 | false |
bailabs/bench-v7 | bench/cli.py | 2 | 3464 | import click
import os, sys, logging, json, pwd, subprocess
from bench.utils import is_root, PatchError, drop_privileges, get_env_cmd, get_cmd_output, get_frappe
from bench.app import get_apps
from bench.config.common_site_config import get_config
from bench.commands import bench_command
logger = logging.getLogger('be... | gpl-3.0 | 7,096,900,127,506,203,000 | 30.779817 | 134 | 0.681005 | false |
planetlabs/datalake | client/datalake/tests/conftest.py | 2 | 3844 | # Copyright 2015 Planet Labs, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 | -2,942,168,831,401,576,400 | 22.439024 | 79 | 0.629553 | false |
CounterpartyXCP/counterparty-lib | tools/updatetxids.py | 2 | 2041 | #!/usr/bin/python3
import sys
import os
import re
import shutil
import pprint
import binascii
COMMIT = "8906a8188ba841599f66627157e29a270ca838cf"
UNITTEST_FIXTURE_SQL = "counterpartylib/test/fixtures/scenarios/unittest_fixture.sql"
UNITTEST_VECTORS_PY = "counterpartylib/test/fixtures/vectors.py"
REGEX = r"^(?P<chang... | mit | 8,013,743,029,428,066,000 | 27.347222 | 103 | 0.585007 | false |
jalavik/invenio | invenio/modules/upgrader/upgrades/invenio_2013_03_18_bibauthorid_search_engine_tables.py | 15 | 1604 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2013 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 option) any later... | gpl-2.0 | 5,441,626,564,833,689,000 | 33.869565 | 74 | 0.65212 | false |
beni55/django | tests/test_client_regress/views.py | 25 | 5067 | import json
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core.serializers.json import DjangoJSONEncoder
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response
from django.template import RequestContext
from dj... | bsd-3-clause | -6,422,591,148,635,837,000 | 31.273885 | 100 | 0.707914 | false |
wenluma/swift | utils/gyb_syntax_support/Node.py | 6 | 2271 | from __future__ import print_function
import sys # noqa: I201
from kinds import SYNTAX_BASE_KINDS, kind_to_type, lowercase_first_word
def error(msg):
print('error: ' + msg, file=sys.stderr)
sys.exit(-1)
class Node(object):
"""
A Syntax node, possibly with children.
If the kind is "SyntaxCollect... | mit | -3,460,415,450,553,501,700 | 31.913043 | 79 | 0.613827 | false |
tanglei528/horizon | openstack_dashboard/dashboards/admin/images/tests.py | 9 | 4831 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | apache-2.0 | -2,142,590,549,254,058,200 | 42.133929 | 78 | 0.526392 | false |
sloanyang/android_external_webkit | Tools/Scripts/webkitpy/layout_tests/layout_package/test_results.py | 15 | 2560 | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | gpl-2.0 | 207,002,302,706,679,140 | 39.634921 | 81 | 0.715234 | false |
za-creature/puls | puls/models/targets.py | 1 | 2599 | # coding=utf-8
from __future__ import absolute_import, unicode_literals, division
from puls.models import auto_modified, Searchable, ReferenceField
from puls import app
import mongoengine as mge
import flask_wtf
import datetime
import wtforms as wtf
@auto_modified
class Target(app.db.Document, Searchable):
meta ... | mit | -78,020,548,815,455,340 | 32.320513 | 71 | 0.630242 | false |
jfmorcillo/mss | modules/mds_kerberos/__init__.py | 3 | 3789 | # -*- coding: UTF-8 -*-
#
# (c) 2010 Mandriva, http://www.mandriva.com/
#
# $Id$
#
# This file is part of Mandriva Server Setup
#
# MSS 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 L... | gpl-3.0 | -5,281,570,677,227,283,000 | 32.530973 | 132 | 0.630773 | false |
ArthurGarnier/SickRage | sickbeard/providers/nyaa.py | 5 | 4609 | # coding=utf-8
# Author: Mr_Orange
#
# URL: https://sickrage.github.io
#
# This file is part of SickRage.
#
# SickRage is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at ... | gpl-3.0 | 6,404,418,442,151,125,000 | 39.787611 | 115 | 0.536125 | false |
awalls-cx18/gnuradio | gr-dtv/python/dtv/__init__.py | 7 | 1262 | #
# Copyright 2014 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your option)
# any later version.
#
#... | gpl-3.0 | -6,107,475,120,239,251,000 | 30.55 | 70 | 0.729794 | false |
PythonCharmers/autoporter | pypi_scanner.py | 1 | 2078 | from __future__ import (absolute_import, division,
print_function, unicode_literals)
import caniusepython3 as ciu
from . import utils
from . import classifier_finder
class pypi_scanner(object):
def __init__(self):
pass
def _get_all_github_packages(self):
with ciu.py... | mit | 5,686,388,699,354,582,000 | 32.532258 | 86 | 0.638595 | false |
Johnzero/erp | openerp/addons/lunch/__init__.py | 9 | 1098 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | agpl-3.0 | -9,005,595,916,774,862,000 | 41.230769 | 79 | 0.615665 | false |
johan--/Geotrek | geotrek/common/tests/test_conf.py | 3 | 1552 | # -*- encoding: utf-8 -*-
import os
from django.test import TestCase
from django.core.exceptions import ImproperlyConfigured
from geotrek.settings import EnvIniReader
from .. import check_srid_has_meter_unit
class StartupCheckTest(TestCase):
def test_error_is_raised_if_srid_is_not_meters(self):
delattr... | bsd-2-clause | -3,658,385,541,986,518,500 | 34.272727 | 96 | 0.652706 | false |
Megacoin2/Megacoin | contrib/pyminer/pyminer.py | 1 | 6478 | #!/usr/bin/python
#
# Copyright (c) 2011 The Bitcoin developers
# Copyright (c) 2013-2079 Dr. Kimoto Chan
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
import time
import json
import pprint
import hashlib
import struct
imp... | mit | -9,210,656,487,868,313,000 | 24.604743 | 84 | 0.649429 | false |
gylian/sickrage | sickbeard/common.py | 1 | 14405 | # Author: Nic Wolfe <nic@wolfeden.ca>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of SickRage.
#
# SickRage is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License,... | gpl-3.0 | 543,687,053,433,685,900 | 38.03794 | 202 | 0.587365 | 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.