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 |
|---|---|---|---|---|---|---|---|---|---|---|
cromlyngames/Cardiff_rain_storage | rain_storage/rain_variance_calibrator.py | 1 | 5413 | #! /usr/bin/env python3
## example_function_name
## ExampleVariableName
import random
## targets based on met office monthly data
## Row Labels Average of rain StdDev of rain StdDevp of rain
## 1 127.425 60.61179013 59.84934732
## 2 89.0475 49.09225218 48.47471499
## 3 ... | gpl-3.0 | -565,808,487,988,941,760 | 25.665025 | 127 | 0.628302 | false |
Alwnikrotikz/paimei | console/modules/_PAIMEIpeek/EditReconDlg.py | 1 | 8473 | #
# PaiMei
# Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com>
#
# $Id$
#
# 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 lat... | gpl-2.0 | -6,510,274,968,436,664,000 | 42.830688 | 136 | 0.580904 | false |
jicruz/heroku-bot | lib/youtube_dl/extractor/mwave.py | 64 | 3279 | from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
int_or_none,
parse_duration,
)
class MwaveIE(InfoExtractor):
_VALID_URL = r'https?://mwave\.interest\.me/(?:[^/]+/)?mnettv/videodetail\.m\?searchVideoDetailVO\.clip_id=(?P<id>[0... | gpl-3.0 | -1,967,087,519,331,782,400 | 35.433333 | 126 | 0.534309 | false |
ksrajkumar/openerp-6.1 | openerp/addons/point_of_sale/report/pos_receipt.py | 9 | 3023 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 5,822,176,282,268,711,000 | 38.272727 | 131 | 0.591135 | false |
Passtechsoft/TPEAlpGen | blender/scons/scons-local/SCons/Tool/cvf.py | 6 | 2463 | """engine.SCons.Tool.cvf
Tool-specific initialization for the Compaq Visual Fortran compiler.
"""
#
# Copyright (c) 2001 - 2014 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in th... | gpl-3.0 | -7,889,917,550,324,174,000 | 41.465517 | 174 | 0.734064 | false |
luisibanez/SahanaEden | modules/geopy/parsers/gpx.py | 25 | 12748 | from geopy import Point
from geopy.util import NULL_HANDLER
from geopy.parsers.iso8601 import parse_iso8601
import sys, re, logging
from xml.etree import ElementTree
log = logging.getLogger(__name__)
log.addHandler(NULL_HANDLER)
class VersionError(Exception):
pass
class Waypoint(Point):
'''
A `Waypoint`... | mit | 1,583,926,914,153,470,000 | 32.635884 | 77 | 0.529416 | false |
django-nonrel/django | tests/template_tests/test_nodelist.py | 122 | 2560 | from django.template import VariableNode, Context
from django.template.loader import get_template_from_string
from django.utils.unittest import TestCase
from django.test.utils import override_settings
class NodelistTest(TestCase):
def test_for(self):
source = '{% for i in 1 %}{{ a }}{% endfor %}'
... | bsd-3-clause | -8,606,545,351,516,809,000 | 43.137931 | 132 | 0.579297 | false |
Nicolas570/chris_db | components/faker/faker/tests/__init__.py | 2 | 14415 | # coding=utf-8
from __future__ import unicode_literals
__loader__ = None
import datetime
import json
import os
import time
import unittest
import sys
try:
from mock import patch
except ImportError:
from unittest.mock import patch
try:
from StringIO import StringIO
except ImportError:
from io import... | mit | -8,946,768,766,022,056,000 | 36.313472 | 165 | 0.616885 | false |
thinkgen/thirdparty | script.module.urlresolver/lib/urlresolver/plugins/movshare.py | 3 | 4053 | """
urlresolver XBMC Addon
Copyright (C) 2011 t0mm0
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.
... | gpl-2.0 | 933,658,739,247,483,400 | 40.357143 | 150 | 0.599803 | false |
saraivaufc/askMathPlus | askmath/management.py | 1 | 6520 | import models
from askmath.models.users import Administrator, Teacher, Assistant, Student
from django.contrib.auth.models import Permission
from django.contrib.auth.models import User, Group
from django.contrib.contenttypes.models import ContentType
from django.db.models import signals
from django.db.models.signals imp... | gpl-2.0 | -5,264,181,530,228,470,000 | 20.733333 | 90 | 0.690644 | false |
dmsurti/mayavi | mayavi/tools/helper_functions.py | 1 | 40264 | """
Helper functions for mlab. These combine creation of the data sources,
and applying the modules to them to make standard visualization
operation. They should always return the module object created, for
consistency, and because retrieving the vtk data source from a module object
is possible via tools.get_vtk_src
E... | bsd-3-clause | 3,769,154,580,834,710,500 | 34.042646 | 80 | 0.564822 | false |
Motaku/ansible | lib/ansible/plugins/strategies/__init__.py | 20 | 23501 | # (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 | 8,788,949,628,851,920,000 | 44.900391 | 165 | 0.548658 | false |
NaturalGIS/QGIS | python/plugins/processing/tools/vector.py | 41 | 3669 | # -*- coding: utf-8 -*-
"""
***************************************************************************
vector.py
---------------------
Date : February 2013
Copyright : (C) 2013 by Victor Olaya
Email : volayaf at gmail dot com
******************************... | gpl-2.0 | -8,066,737,279,688,813,000 | 31.469027 | 103 | 0.549196 | false |
haad/ansible-modules-core | files/lineinfile.py | 13 | 14501 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2012, Daniel Hokka Zakrisson <daniel@hozac.com>
# (c) 2014, Ahti Kitsik <ak@ahtik.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 S... | gpl-3.0 | 8,481,356,241,552,175,000 | 33.942169 | 130 | 0.623819 | false |
lele1122/pelican-plugins | pelican_comment_system/pelican_comment_system.py | 32 | 6416 | # -*- coding: utf-8 -*-
"""
Pelican Comment System
======================
A Pelican plugin, which allows you to add comments to your articles.
Author: Bernhard Scheirle
"""
from __future__ import unicode_literals
import logging
import os
import copy
logger = logging.getLogger(__name__)
from itertools import chain
f... | agpl-3.0 | 5,021,438,021,147,905,000 | 28.976636 | 92 | 0.646454 | false |
StyXman/GitPython | git/refs/log.py | 14 | 10886 | from git.util import (
Actor,
LockedFD,
LockFile,
assure_directory_exists,
to_native_path,
)
from gitdb.util import (
bin_to_hex,
join,
file_contents_ro_filepath,
)
from git.objects.util import (
parse_date,
Serializable,
altz_to_utctz_str,
)
from git.compat import (
PY... | bsd-3-clause | -1,562,120,445,092,296,200 | 33.232704 | 107 | 0.575694 | false |
stef1927/cassandra-dtest | upgrade_tests/regression_test.py | 6 | 7970 | """
Home for upgrade-related tests that don't fit in with the core upgrade testing in dtest.upgrade_through_versions
"""
import glob
import os
import re
import time
import pytest
import logging
from cassandra import ConsistencyLevel as CL
from dtest import RUN_STATIC_UPGRADE_MATRIX
from tools.jmxutils import (Jolokia... | apache-2.0 | -7,049,179,207,780,285,000 | 41.620321 | 182 | 0.614053 | false |
postlund/home-assistant | homeassistant/components/cover/device_trigger.py | 8 | 7082 | """Provides device automations for Cover."""
from typing import List
import voluptuous as vol
from homeassistant.components.automation import (
AutomationActionType,
numeric_state as numeric_state_automation,
state as state_automation,
)
from homeassistant.components.device_automation import TRIGGER_BASE_... | apache-2.0 | 5,722,856,274,736,195,000 | 32.40566 | 88 | 0.565518 | false |
openaid-IATI/OIPA | OIPA/iati_organisation/parser/organisation_2_01.py | 1 | 27741 | import logging
from django.conf import settings
from geodata.models import Country
from iati.parser.exceptions import (
FieldValidationError, ParserError, RequiredFieldError
)
from iati.parser.iati_parser import IatiParser
from iati_codelists import models as codelist_models
from iati_organisation.models import (... | agpl-3.0 | -4,807,852,786,421,574,000 | 35.453351 | 113 | 0.620994 | false |
loono/multitruth | lib/flask/testsuite/templating.py | 562 | 11237 | # -*- coding: utf-8 -*-
"""
flask.testsuite.templating
~~~~~~~~~~~~~~~~~~~~~~~~~~
Template functionality
:copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import flask
import unittest
from flask.testsuite import FlaskTestCase
class TemplatingTestCase(Flask... | apache-2.0 | 8,329,093,827,508,010,000 | 36.208609 | 78 | 0.559046 | false |
kastnerkyle/pylearn2 | pylearn2/cross_validation/mlp.py | 19 | 1687 | """
Cross-validation with MLPs.
"""
__author__ = "Steven Kearnes"
__copyright__ = "Copyright 2014, Stanford University"
__license__ = "3-clause BSD"
__maintainer__ = "Steven Kearnes"
from pylearn2.models.mlp import Layer, PretrainedLayer
class PretrainedLayerCV(Layer):
"""
Container of PretrainedLayer objec... | bsd-3-clause | -5,722,643,718,972,471,000 | 24.953846 | 68 | 0.579135 | false |
mhbu50/erpnext | erpnext/healthcare/doctype/lab_test/lab_test.py | 3 | 13678 | # -*- coding: utf-8 -*-
# Copyright (c) 2015, ESS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.utils import getdate, cstr, get_link_to_form
class LabTest(Document):
... | gpl-3.0 | 9,208,749,697,920,031,000 | 38.08 | 173 | 0.72496 | false |
thnee/ansible | lib/ansible/modules/crypto/openssl_privatekey.py | 2 | 34747 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2016, Yanis Guenane <yanis+ansible@guenane.org>
# 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_v... | gpl-3.0 | 7,640,962,463,728,798,000 | 41.066586 | 159 | 0.621579 | false |
pichuang/ryu | ryu/app/simple_switch.py | 25 | 3755 | # Copyright (C) 2011 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 | -5,080,185,723,102,795,000 | 33.449541 | 78 | 0.646605 | false |
SecurityNik/QRadar---Threat-Intelligence-On-The-Cheap | SecurityNikThreatIntel.py | 1 | 13383 | #!/usr/bin/env python
# This is code is designed to download list of known bad IPs and domains
# Once the lists have been downloaded, 2 reference sets are created
# 1 for IPs and 1 for domains
# Manual creation of QRadar rules are then done. These rules are then run against these
# list to identify known bad IPs and ... | gpl-3.0 | -3,029,128,884,114,180,600 | 35.46594 | 166 | 0.662333 | false |
infowantstobeseen/pyglet-darwincore | contrib/layout/layout/builders/htmlstylesheet.py | 29 | 2993 | #!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
from layout.css import *
__all__ = ['html4_default_stylesheet']
# Default stylesheet for HTML 4
# http://www.w3.org/TR/CSS21/sample.html
html4_default_stylesheet = Stylesheet('''
html, address,
blockquote,
body, dd, div,
dl, dt,... | bsd-3-clause | -1,543,908,599,146,967,300 | 31.89011 | 68 | 0.575008 | false |
endlessm/chromium-browser | third_party/angle/third_party/VK-GL-CTS/src/external/fetch_sources.py | 1 | 11339 | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# drawElements Quality Program utilities
# --------------------------------------
#
# Copyright 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use t... | bsd-3-clause | 6,353,429,454,178,154,000 | 29.563342 | 110 | 0.701208 | false |
jshiv/turntable | test/lib/python2.7/site-packages/scipy/linalg/tests/test_decomp.py | 7 | 77994 | """ Test functions for linalg.decomp module
"""
from __future__ import division, print_function, absolute_import
__usage__ = """
Build linalg:
python setup_linalg.py build
Run tests if scipy is installed:
python -c 'import scipy;scipy.linalg.test()'
Run tests if linalg is not installed:
python tests/test_decomp... | mit | -67,266,851,132,519,920 | 35.565401 | 114 | 0.510462 | false |
ThirdProject/android_external_chromium_org | build/android/gyp/apk_install.py | 28 | 3351 | #!/usr/bin/env python
#
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Installs an APK.
"""
import optparse
import os
import re
import subprocess
import sys
from util import build_device
from util i... | bsd-3-clause | -459,834,287,862,824,800 | 31.221154 | 94 | 0.71501 | false |
xlcteam/pgu | pgu/gui/layout.py | 32 | 4901 | """Document layout engine."""
class Layout:
"""The document layout engine."""
def __init__(self,rect=None):
"""initialize the object with the size of the box."""
self._widgets = []
self.rect = rect
def add(self,e):
"""Add a document element to the layout.
... | lgpl-2.1 | 2,703,775,239,766,903,000 | 27.494186 | 82 | 0.458274 | false |
AnishShah/tensorflow | tensorflow/python/kernel_tests/boosted_trees/prediction_ops_test.py | 1 | 31808 | # Copyright 2018 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,454,714,302,964,877,000 | 28.699346 | 80 | 0.506476 | false |
he7d3r/revscoring | tests/languages/test_french.py | 2 | 3536 | import pickle
from revscoring.datasources import revision_oriented
from revscoring.dependencies import solve
from revscoring.languages import french
from .util import compare_extraction
BAD = [
"anus",
"baise", "baisé",
"baiz",
"batar", "batard",
"bite", "bites", "bitte",
"branler", "branlett... | mit | 842,100,687,092,668,300 | 24.164286 | 84 | 0.577065 | false |
RuanAragao/peach | tutorial/fuzzy-logic/norms-conorms.py | 6 | 3359 | ################################################################################
# Peach - Computational Intelligence for Python
# Jose Alexandre Nalon
#
# This file: tutorial/norms-conorms.py
# How to use t-norms and s-norms (norms and conorms)
####################################################################... | lgpl-2.1 | 3,166,185,819,710,080,000 | 36.170455 | 80 | 0.6234 | false |
Johncdy/Candy | Candy/object/gui/CEGUI/ScriptModules/Python/bindings/generators/cegui_base.py | 6 | 39069 | #!/usr/bin/env python2
#/***********************************************************************
# filename: generateCEGUI.py
# created: 13/8/2010
# author: Martin Preisler (with many bits taken from python ogre)
#
# purpose: Generates CEGUI binding code
#***************************************... | gpl-3.0 | -2,529,112,239,763,367,000 | 29.714623 | 136 | 0.680437 | false |
fr34k8/atomic-reactor | tests/plugins/test_add_labels.py | 3 | 3006 | """
Copyright (c) 2015 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
from __future__ import print_function, unicode_literals
try:
from collections import OrderedDict
except ImportError:
# Python 2.6
... | bsd-3-clause | 2,831,113,294,254,121,000 | 31.322581 | 99 | 0.699268 | false |
crosswalk-project/chromium-crosswalk-efl | tools/memory_inspector/memory_inspector/frontends/command_line.py | 83 | 5717 | # 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.
"""Command line frontend for Memory Inspector"""
import json
import memory_inspector
import optparse
import os
import time
from memory_inspector import con... | bsd-3-clause | -2,145,384,592,524,554,500 | 32.046243 | 77 | 0.629001 | false |
FundersClub/django-papertrail | test_site/test_site/settings.py | 1 | 3219 | """
Django settings for test_site project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | apache-2.0 | -1,302,495,534,193,912,800 | 24.547619 | 91 | 0.672569 | false |
komatits/specfem3d | CUBIT_GEOCUBIT/geocubitlib/exportlib.py | 1 | 53812 | #!/usr/bin/env python
#############################################################################
# exportlib.py
# this file is part of GEOCUBIT #
# #
# Created by Emanuele Casarotti ... | gpl-2.0 | -4,764,171,223,128,670,000 | 36.789326 | 81 | 0.501245 | false |
googleapis/python-channel | scripts/readme-gen/readme_gen.py | 122 | 1722 | #!/usr/bin/env python
# Copyright 2016 Google Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 4,689,711,393,470,706,000 | 25.090909 | 79 | 0.696283 | false |
xiangel/hue | desktop/core/ext-py/Paste-2.0.1/tests/test_exceptions/test_error_middleware.py | 47 | 3389 | from paste.fixture import *
from paste.exceptions.errormiddleware import ErrorMiddleware
from paste import lint
from paste.util.quoting import strip_html
#
# For some strange reason, these 4 lines cannot be removed or the regression
# test breaks; is it counting the number of lines in the file somehow?
#
def do_reques... | apache-2.0 | -4,124,578,767,216,067,000 | 30.091743 | 79 | 0.616996 | false |
azaghal/ansible | test/support/network-integration/collections/ansible_collections/vyos/vyos/plugins/modules/vyos_command.py | 47 | 7573 | #!/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 | -4,357,568,345,653,390,300 | 32.959641 | 129 | 0.678859 | false |
ModdedPA/android_external_chromium_org | chrome/test/pyautolib/prefs_info.py | 69 | 3629 | # Copyright (c) 2011 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.
"""Python representation for Chromium Preferences.
Obtain one of these from a call to PyUITest::GetPrefsInfo() or
PyUITest::GetLocalStatePrefsInfo().
E... | bsd-3-clause | -1,956,803,144,868,157,700 | 35.656566 | 79 | 0.57509 | false |
kelvin13/Knockout | pygments/lexers/dalvik.py | 47 | 4420 | # -*- coding: utf-8 -*-
"""
pygments.lexers.dalvik
~~~~~~~~~~~~~~~~~~~~~~
Pygments lexers for Dalvik VM-related languages.
:copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, include, bygr... | gpl-3.0 | -3,769,925,310,867,417,600 | 34.36 | 80 | 0.49095 | false |
starsplatter/Ubiqu-Ity | Ity/Utilities/FilePaths.py | 2 | 10276 | # coding=utf-8
__author__ = 'kohlmannj'
import os
import re
from collections import OrderedDict
def get_file_paths(
paths=(),
patterns=None,
recursion_levels=8,
valid_paths=set(),
excluded_paths=set(),
debug=False
):
"""
Given a list of paths, returns two sets of file... | bsd-2-clause | 1,131,923,028,325,376,800 | 41.91453 | 109 | 0.577949 | false |
klintwood/python_koans | python2/koans/about_class_attributes.py | 74 | 4889 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Based on AboutClassMethods in the Ruby Koans
#
from runner.koan import *
class AboutClassAttributes(Koan):
class Dog(object):
pass
def test_new_style_class_objects_are_objects(self):
# Note: Old style class instances are not objects but they... | mit | 5,287,180,082,645,500,000 | 28.630303 | 79 | 0.561055 | false |
akashsinghal/Speech-Memorization-App | Python_Backend/lib/requests/help.py | 70 | 3616 | """Module containing bug report helper(s)."""
from __future__ import print_function
import json
import platform
import sys
import ssl
import idna
import urllib3
import chardet
from . import __version__ as requests_version
try:
from .packages.urllib3.contrib import pyopenssl
except ImportError:
pyopenssl = N... | apache-2.0 | -2,016,540,914,929,587,200 | 29.133333 | 78 | 0.604812 | false |
mwasilew/testmanager | testmanager/testplanner/admin.py | 1 | 1256 | # Copyright (C) 2014 Linaro Limited
#
# Author: Milosz Wasilewski <milosz.wasilewski@linaro.org>
#
# This file is part of Testmanager.
#
# Testmanager is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3
# as published by the Free Software Found... | agpl-3.0 | -7,489,985,152,958,628,000 | 30.4 | 74 | 0.777866 | false |
kikocorreoso/brython | www/src/Lib/test/test_iter.py | 9 | 32264 | # Test iterators.
import sys
import unittest
from test.support import run_unittest, TESTFN, unlink, cpython_only
from test.support import check_free_after_iterating
import pickle
import collections.abc
# Test result of triple loop (too big to inline)
TRIPLETS = [(0, 0, 0), (0, 0, 1), (0, 0, 2),
(0, 1, 0),... | bsd-3-clause | -1,935,956,150,303,288,800 | 30.755906 | 85 | 0.495506 | false |
geobricks/pgeorest | pgeorest/rest/filesystem.py | 1 | 1062 | import json
from flask import Blueprint
from flask import Response
from flask.ext.cors import cross_origin
from pgeo.error.custom_exceptions import PGeoException
from pgeo.utils.filesystem import create_filesystem
filesystem = Blueprint('filesystem', __name__)
@filesystem.route('/')
@cross_origin(origins='*')
def i... | gpl-2.0 | -7,320,424,737,906,546,000 | 28.527778 | 93 | 0.686441 | false |
britcey/ansible | lib/ansible/modules/commands/expect.py | 3 | 7899 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Matt Martz <matt@sivel.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 License, ... | gpl-3.0 | 2,567,280,641,615,572,000 | 31.640496 | 79 | 0.611343 | false |
htzy/bigfour | common/lib/xmodule/xmodule/modulestore/tests/django_utils.py | 21 | 16292 | # encoding: utf-8
"""
Modulestore configuration for test cases.
"""
import datetime
import pytz
from uuid import uuid4
from mock import patch
from django.conf import settings
from django.contrib.auth.models import User
from django.test import TestCase
from django.test.utils import override_settings
from request_cache... | agpl-3.0 | 1,188,460,325,131,239,000 | 37.424528 | 109 | 0.617051 | false |
GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/subunit/test_results.py | 2 | 25578 | #
# subunit: extensions to Python unittest to get test results from subprocesses.
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project sour... | agpl-3.0 | -3,034,611,105,072,935,400 | 34.08642 | 80 | 0.629213 | false |
j-griffith/cinder | cinder/tests/unit/monkey_patch_example/__init__.py | 57 | 1112 | # Copyright 2011 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 | -5,007,823,349,531,025,000 | 34.870968 | 78 | 0.696942 | false |
thnee/ansible | test/units/modules/network/fortios/test_fortios_system_ipv6_tunnel.py | 21 | 8491 | # Copyright 2019 Fortinet, Inc.
#
# 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 in the... | gpl-3.0 | -8,846,742,029,532,458,000 | 36.078603 | 142 | 0.647274 | false |
django-nonrel/django-nonrel | django/utils/encoding.py | 92 | 7321 | import types
import urllib
import locale
import datetime
import codecs
from decimal import Decimal
from django.utils.functional import Promise
class DjangoUnicodeDecodeError(UnicodeDecodeError):
def __init__(self, obj, *args):
self.obj = obj
UnicodeDecodeError.__init__(self, *args)
def __str_... | bsd-3-clause | -8,938,171,678,790,779,000 | 38.360215 | 79 | 0.612485 | false |
DavidLP/home-assistant | tests/components/homekit_controller/test_config_flow.py | 1 | 26318 | """Tests for homekit_controller config flow."""
import json
from unittest import mock
import homekit
import pytest
from homeassistant.components.homekit_controller import config_flow
from homeassistant.components.homekit_controller.const import KNOWN_DEVICES
from tests.common import MockConfigEntry
from tests.compone... | apache-2.0 | 2,134,307,921,606,545,400 | 28.27475 | 78 | 0.568432 | false |
drpeteb/scipy | scipy/interpolate/tests/test_interpolate.py | 43 | 67695 | from __future__ import division, print_function, absolute_import
import itertools
import warnings
from numpy.testing import (assert_, assert_equal, assert_almost_equal,
assert_array_almost_equal, assert_raises, assert_array_equal,
dec, TestCase, run_module_suite, assert_allclose)
from numpy import mgr... | bsd-3-clause | 4,573,878,712,675,857,400 | 36.174629 | 82 | 0.510008 | false |
endlessm/chromium-browser | third_party/chromite/scripts/sysmon/osinfo_metrics_unittest.py | 1 | 1594 | # -*- coding: utf-8 -*-
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unit tests for osinfo_metrics."""
# pylint: disable=protected-access
from __future__ import absolute_import
from __future__ i... | bsd-3-clause | 1,467,087,011,252,834,800 | 31.530612 | 77 | 0.658093 | false |
KasperPRasmussen/bokeh | bokeh/models/tests/test_renderers.py | 20 | 1506 | from __future__ import absolute_import
import unittest
from bokeh.plotting import figure
from bokeh.models.ranges import DataRange1d
class TestGlyphRenderer(unittest.TestCase):
def test_warning_about_colons_in_column_labels_for_axis(self):
invalid_labels = ['0', '1', '2:0']
plot = figure(
... | bsd-3-clause | -5,177,270,910,798,558,000 | 26.888889 | 66 | 0.536521 | false |
KhalidGit/flask | Work/Trivia - Module 5/env/Lib/site-packages/werkzeug/testsuite/http.py | 145 | 18911 | # -*- coding: utf-8 -*-
"""
werkzeug.testsuite.http
~~~~~~~~~~~~~~~~~~~~~~~
HTTP parsing utilities.
:copyright: (c) 2014 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import unittest
from datetime import datetime
from werkzeug.testsuite import WerkzeugTestCase
from werkzeug.... | apache-2.0 | 8,189,800,543,628,055,000 | 41.093541 | 103 | 0.565503 | false |
tbeadle/django | tests/proxy_model_inheritance/tests.py | 89 | 2089 | from __future__ import absolute_import, unicode_literals
import os
from django.core.management import call_command
from django.test import TestCase, TransactionTestCase
from django.test.utils import extend_sys_path
from django.utils._os import upath
from .models import (
ConcreteModel, ConcreteModelSubclass, Con... | bsd-3-clause | 6,711,650,690,952,001,000 | 38.415094 | 84 | 0.696506 | false |
unnikrishnankgs/va | venv/lib/python3.5/site-packages/IPython/terminal/pt_inputhooks/pyglet.py | 2 | 2367 | """Enable pyglet to be used interacively with prompt_toolkit
"""
import sys
import time
from timeit import default_timer as clock
import pyglet
# On linux only, window.flip() has a bug that causes an AttributeError on
# window close. For details, see:
# http://groups.google.com/group/pyglet-users/browse_thread/threa... | bsd-2-clause | 6,811,274,422,911,530,000 | 34.863636 | 118 | 0.587241 | false |
hyesun03/k-board | kboard/functional_test/test_post_creation_and_management.py | 1 | 10220 | from selenium.common.exceptions import NoSuchElementException
from .base import FunctionalTest, logout_current_user, login_test_user_with_browser
class NewVisitorTest(FunctionalTest):
def test_default_page(self):
# 지훈이는 멋진 게시판 앱이 나왔다는 소식을 듣고
# 해당 웹 사이트를 확인하러 간다.
self.browser.get(self.live... | mit | -8,754,697,865,741,022,000 | 38.588785 | 107 | 0.622639 | false |
cubicova17/annet | venv/lib/python2.7/site-packages/south/tests/inspector.py | 142 | 3896 |
from south.tests import Monkeypatcher, skipUnless
from south.modelsinspector import (convert_on_delete_handler, get_value,
IsDefault, models, value_clean)
from fakeapp.models import HorribleModel, get_sentinel_object
on_delete_is_available = hasattr(models, "PROTECT") # models here is django.db.models
skipUnles... | mit | 1,075,933,286,324,057,700 | 34.752294 | 140 | 0.571869 | false |
teochenglim/ansible-modules-extras | cloud/amazon/lambda_event.py | 16 | 14517 | #!/usr/bin/python
# (c) 2016, Pierre Jodouin <pjodouin@virtualcomputing.solutions>
#
# 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 v... | gpl-3.0 | -4,925,192,775,752,446,000 | 33.400474 | 134 | 0.614796 | false |
normanmaurer/autobahntestsuite-maven-plugin | src/main/resources/autobahntestsuite/case/case9_2_6.py | 14 | 1173 | ###############################################################################
##
## Copyright 2011 Tavendo GmbH
##
## 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
##
## ht... | apache-2.0 | -7,217,350,602,006,311,000 | 35.83871 | 91 | 0.578005 | false |
girving/tensorflow | tensorflow/python/keras/engine/input_layer.py | 4 | 8466 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,525,294,565,812,375,000 | 34.721519 | 85 | 0.633593 | false |
richardcs/ansible | lib/ansible/modules/cloud/google/gcp_compute_region_disk_facts.py | 9 | 10094 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... | gpl-3.0 | -2,120,396,192,765,829,600 | 32.423841 | 136 | 0.599564 | false |
patriciolobos/desa8 | openerp/addons/hr_attendance/__init__.py | 434 | 1122 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | 2,093,290,894,377,724,000 | 40.555556 | 79 | 0.620321 | false |
azumimuo/family-xbmc-addon | plugin.video.elysium/resources/lib/sources/myddl.py | 1 | 8226 | # -*- coding: utf-8 -*-
'''
Elysiumtester Add-on
Copyright (C) 2017 Elysiumtester
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... | gpl-2.0 | 5,927,889,553,521,331,000 | 32.169355 | 161 | 0.579018 | false |
rabipanda/tensorflow | tensorflow/contrib/tpu/python/tpu/tpu_infeed_test.py | 85 | 5729 | # 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 | 7,731,572,762,457,104,000 | 43.069231 | 80 | 0.676558 | false |
thomasaarholt/hyperspy | hyperspy/samfire_utils/goodness_of_fit_tests/test_general.py | 4 | 1052 | # -*- coding: utf-8 -*-
# Copyright 2007-2020 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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 | -5,827,006,592,198,865,000 | 29.057143 | 70 | 0.69962 | false |
phillipwei/crazyflie-clients-python | lib/cfclient/ui/toolboxes/__init__.py | 32 | 1998 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 20... | gpl-2.0 | -2,198,291,758,364,013,000 | 32.864407 | 82 | 0.588088 | false |
juanalfonsopr/odoo | addons/account/account_analytic_line.py | 304 | 7914 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 9,180,776,274,167,581,000 | 47.552147 | 233 | 0.578848 | false |
christianbaun/octopuscloud | boto/cloudfront/logging.py | 219 | 1557 | # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/
#
# 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, modi... | apache-2.0 | -3,337,971,621,989,171,000 | 39.973684 | 74 | 0.701349 | false |
ProgVal/Limnoria-test | plugins/Protector/plugin.py | 4 | 7543 | ###
# Copyright (c) 2004, Jeremiah Fincher
# 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 conditi... | bsd-3-clause | -7,197,226,339,767,166,000 | 45.561728 | 81 | 0.614079 | false |
figment/falloutsnip | Vendor/IronPython/Lib/modulefinder.py | 215 | 24283 | """Find modules used by a script, using introspection."""
# This module should be kept compatible with Python 2.2, see PEP 291.
from __future__ import generators
import dis
import imp
import marshal
import os
import sys
import types
import struct
if hasattr(sys.__stdout__, "newlines"):
READ_MODE = "U" # universa... | gpl-3.0 | -1,777,312,800,327,886,000 | 35.18927 | 86 | 0.506815 | false |
TrailingDots/simple_log_messaging | easy_py_messaging/dirSvc.py | 3 | 11718 | #!/bin/env python
"""
Server:
Directory services for
easy_py_messaging - easy messaging client and servers
control_messaging - Control messaging structure
"""
import sys
import os
import time
import zmq
import json
import pickle
import atexit
import logConfig
import platform
import loggingCl... | gpl-3.0 | 1,484,773,815,136,278,800 | 30.164894 | 81 | 0.550777 | false |
bharcode/Kaggle | PhotoQualityPrediction/feature_selection.py | 2 | 9825 | #!/usr/bin/env python
from numpy import *
import utilities
import classification
def generate_features(meta_data_train, y_train, meta_data_test):
""" Generates features for classifier. """
# Generate maps.
name_score_map, desc_score_map, caption_score_map, word_score_map = \
generate_text_score_ma... | gpl-2.0 | 6,890,257,172,947,296,000 | 32.99654 | 79 | 0.596641 | false |
Bachaco-ve/odoo | addons/account/installer.py | 381 | 8404 | # -*- coding: 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 the GNU... | agpl-3.0 | 7,753,840,302,572,048,000 | 46.75 | 188 | 0.589719 | false |
jplusplus/detective.io | app/detective/migrations/0011_load_myfixture.py | 3 | 13400 | # -*- coding: utf-8 -*-
from south.v2 import DataMigration
class Migration(DataMigration):
def forwards(self, orm):
fixtures = [
{
"pk": None,
"model": "detective.searchterm",
"fields": {
"topic": 2,
"na... | lgpl-3.0 | -6,088,450,532,979,222,000 | 36.640449 | 150 | 0.364104 | false |
llhe/tensorflow | tensorflow/contrib/data/python/util/nest.py | 6 | 18292 | # 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 | -307,754,695,153,683,500 | 34.65692 | 80 | 0.673354 | false |
LoHChina/nova | nova/api/openstack/compute/contrib/security_group_default_rules.py | 18 | 5867 | # Copyright 2013 Metacloud 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 agr... | apache-2.0 | 2,790,010,065,167,239,700 | 38.113333 | 79 | 0.626214 | false |
scollier/openshift-ansible-contrib | misc/gce-federation/library/gce.py | 8 | 27025 | #!/usr/bin/python
# Copyright 2013 Google Inc.
#
# 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 vers... | apache-2.0 | -7,585,549,222,255,956,000 | 35.033333 | 150 | 0.605587 | false |
StickmanVentures/lol-data-aggregator | app/models/participant.py | 1 | 2368 | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String
Base = declarative_base()
class Participant(Base):
__tablename__ = 'participations'
id = Column(String(32), primary_key=True)
team_id = Column(String(41))
match_id = Column(Integer)
summoner_id ... | apache-2.0 | -8,828,708,708,629,770,000 | 35.430769 | 56 | 0.695946 | false |
aabbox/kbengine | kbe/res/scripts/common/Lib/test/test_importlib/source/test_case_sensitivity.py | 84 | 3475 | """Test case-sensitivity (PEP 235)."""
from .. import util
from . import util as source_util
importlib = util.import_importlib('importlib')
machinery = util.import_importlib('importlib.machinery')
import os
import sys
from test import support as test_support
import unittest
@util.case_insensitive_tests
class CaseSe... | lgpl-3.0 | -4,830,765,500,542,480,000 | 40.86747 | 84 | 0.651511 | false |
maas/maas | src/maasserver/models/tests/test_nodemetadata.py | 1 | 1806 | # Copyright 2017 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""Test maasserver NodeMetadata model."""
from crochet import wait_for
from django.core.exceptions import ValidationError
from maasserver.models import NodeMetadata
from maasser... | agpl-3.0 | 7,952,822,011,981,770,000 | 33.730769 | 77 | 0.662791 | false |
tanyunshi/python-docx | docx/oxml/text/run.py | 13 | 4888 | # encoding: utf-8
"""
Custom element classes related to text runs (CT_R).
"""
from ..ns import qn
from ..simpletypes import ST_BrClear, ST_BrType
from ..xmlchemy import (
BaseOxmlElement, OptionalAttribute, ZeroOrMore, ZeroOrOne
)
class CT_Br(BaseOxmlElement):
"""
``<w:br>`` element, indicating a line, ... | mit | 7,915,507,966,104,698,000 | 28.445783 | 76 | 0.55626 | false |
blooparksystems/odoo | addons/website_quote/models/payment.py | 13 | 1162 | # -*- coding: utf-8 -*-
from openerp import SUPERUSER_ID
from openerp.osv import orm, fields
class PaymentTransaction(orm.Model):
_inherit = 'payment.transaction'
_columns = {
# link with the sale order
'sale_order_id': fields.many2one('sale.order', 'Sale Order'),
}
def form_feedbac... | gpl-3.0 | 6,303,175,391,856,743,000 | 40.5 | 158 | 0.641997 | false |
ccellis/WHACK2016 | flask/lib/python2.7/site-packages/openid/yadis/parsehtml.py | 167 | 5850 | __all__ = ['findHTMLMeta', 'MetaNotFound']
from HTMLParser import HTMLParser, HTMLParseError
import htmlentitydefs
import re
from openid.yadis.constants import YADIS_HEADER_NAME
# Size of the chunks to search at a time (also the amount that gets
# read at a time)
CHUNK_SIZE = 1024 * 16 # 16 KB
class ParseDone(Excep... | bsd-3-clause | -4,376,288,822,586,797,600 | 28.695431 | 76 | 0.50547 | false |
repotvsupertuga/repo | script.module.urlresolver/lib/urlresolver/plugins/tunepk.py | 4 | 2813 | '''
tunepk urlresolver plugin
Copyright (C) 2013 icharania
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 dis... | gpl-2.0 | 6,062,884,636,858,032,000 | 34.1625 | 137 | 0.594383 | false |
AdrianGaudebert/elmo | vendor-local/lib/python/south/management/commands/schemamigration.py | 10 | 10371 | """
Startmigration command, version 2.
"""
from __future__ import print_function
import sys
import os
import re
import string
import random
import inspect
from optparse import make_option
try:
set
except NameError:
from sets import Set as set
from django.core.management.base import BaseCommand
from django.c... | mpl-2.0 | -3,684,338,740,325,024,000 | 44.889381 | 259 | 0.601967 | false |
stackforge/poppy | tests/unit/storage/cassandra/test_services.py | 2 | 27911 | # Copyright (c) 2014 Rackspace, 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 | -4,685,157,577,188,003,000 | 36.615903 | 79 | 0.549855 | false |
Denisolt/Tensorflow_Chat_Bot | local/lib/python2.7/site-packages/numpy/polynomial/hermite_e.py | 23 | 58014 | """
Objects for dealing with Hermite_e series.
This module provides a number of objects (mostly functions) useful for
dealing with Hermite_e series, including a `HermiteE` class that
encapsulates the usual arithmetic operations. (General information
on how this module represents and works with such polynomials is in ... | gpl-3.0 | -193,336,808,958,706,370 | 30.341977 | 79 | 0.596666 | false |
theshteves/tweet-the-wolf | pips/oauthlib/oauth2/rfc6749/request_validator.py | 33 | 19622 | # -*- coding: utf-8 -*-
"""
oauthlib.oauth2.rfc6749.grant_types
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
from __future__ import unicode_literals, absolute_import
import logging
log = logging.getLogger(__name__)
class RequestValidator(object):
def client_authentication_required(self, request, *args, **kwargs):
... | mit | 6,288,271,688,547,814,000 | 41.197849 | 98 | 0.645194 | false |
theheros/kbengine | kbe/src/lib/python/Lib/idlelib/ScrolledList.py | 67 | 3997 | from tkinter import *
class ScrolledList:
default = "(None)"
def __init__(self, master, **options):
# Create top frame, with scrollbar and listbox
self.master = master
self.frame = frame = Frame(master)
self.frame.pack(fill="both", expand=1)
self.vbar = vbar = Scrollba... | lgpl-3.0 | 2,688,990,233,021,347,000 | 27.755396 | 73 | 0.568677 | false |
eugenejen/AutobahnPython | autobahn/autobahn/twisted/choosereactor.py | 34 | 3602 | ###############################################################################
##
## Copyright (C) 2013 Tavendo GmbH
##
## 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 | 4,544,617,678,994,772,500 | 30.321739 | 110 | 0.624653 | false |
gem5/linux-arm-gem5 | tools/perf/tests/attr.py | 1266 | 9424 | #! /usr/bin/python
import os
import sys
import glob
import optparse
import tempfile
import logging
import shutil
import ConfigParser
class Fail(Exception):
def __init__(self, test, msg):
self.msg = msg
self.test = test
def getMsg(self):
return '\'%s\' - %s' % (self.test.path, self.msg)... | gpl-2.0 | 978,254,961,371,442,000 | 27.471299 | 79 | 0.513264 | false |
georgschoelly/midata-etat | main.py | 1 | 1304 | #!/usr/bin/env python3
import requests
import midata
from midata import authentication as auth
# input data
server = "https://db.scout.ch"
email = "user@pbs.ch"
password = "password"
# log in
auth_info = auth.sign_in(server, email, password)
if not auth_info:
pass
user = midata.get_person(auth_info, auth_i... | gpl-3.0 | 8,357,551,799,574,366,000 | 22.267857 | 66 | 0.656946 | false |
andrius-preimantas/purchase-workflow | purchase_transport_document/model/transport_document.py | 25 | 1094 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright 2014 Camptocamp SA
# Author: Leonardo Pistone
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# pu... | agpl-3.0 | -7,671,361,772,061,932,000 | 39.518519 | 78 | 0.616088 | 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.