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 |
|---|---|---|---|---|---|---|---|---|---|---|
Jesus-21/addic7ed | addic7ed/logger.py | 1 | 1269 | from os import makedirs
from os.path import expanduser, exists
from logging import getLogger, Formatter, StreamHandler, DEBUG, WARN
from logging.handlers import RotatingFileHandler
from termcolor import colored
LOG_COLORS = {
"DEBUG": "grey",
"INFO": "cyan",
"WARNING": "yellow",
"ERROR": "magenta",
... | mit | 7,442,416,061,544,631,000 | 26 | 70 | 0.630418 | false |
undoware/neutron-drive | neutron-drive/oauth2client/gce.py | 45 | 3056 | # Copyright (C) 2012 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | bsd-3-clause | -5,401,853,984,824,930,000 | 31.860215 | 79 | 0.72644 | false |
pmonta/GNSS-DSP-tools | acquire-galileo-e1c.py | 1 | 3250 | #!/usr/bin/env python
import optparse
import numpy as np
import scipy.signal
import scipy.fftpack as fft
import gnsstools.galileo.e1c as e1c
import gnsstools.nco as nco
import gnsstools.io as io
import gnsstools.util as util
#
# Acquisition search
#
def search(x,prn,doppler_search,ms):
blocks = ms//4 - 1
fs = ... | mit | -162,427,505,669,963,040 | 29.660377 | 152 | 0.670154 | false |
maxcountryman/flask-simpleoauth | flask_simpleoauth/frontend.py | 1 | 2309 | from flask import (Blueprint, flash, g, redirect, render_template, request,
session, url_for)
from .form import ConsumerForm, LoginForm, UserForm
from .model import Consumer, User
from .utils import login_required
frontend = Blueprint('frontend', __name__)
@frontend.route('/')
def index():
re... | bsd-3-clause | -196,348,698,663,733,300 | 33.984848 | 75 | 0.630576 | false |
NullInfinity/socman | socman.py | 2 | 17375 | """
socman is a society membership and event management library.
It tracks members in a sqlite database to enable membership tracking
and verification. It can also track event data such as name and date,
along with event attendance statistics.
The MIT License (MIT)
Copyright (c) 2016 Alexander Thorne
Permission is... | mit | 7,752,353,821,699,523,000 | 34.459184 | 80 | 0.59977 | false |
wbond/subversion | tools/examples/dumpprops.py | 7 | 2292 | #!/usr/bin/env python
#
#
# 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
#... | apache-2.0 | -9,003,269,648,048,088,000 | 25.045455 | 70 | 0.680192 | false |
MangoMangoDevelopment/neptune | lib/ros_comm-1.12.0/utilities/message_filters/test/test_approxsync.py | 1 | 3888 | #!/usr/bin/env python
#
# Software License Agreement (BSD License)
#
# Copyright (c) 2009, Willow Garage, 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 co... | bsd-3-clause | 3,195,025,695,774,216,000 | 37.49505 | 88 | 0.669753 | false |
gfarnadi/FairPSL | problems/performance_review/data/hierachy_generation.py | 1 | 3985 | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import os, random
import queue
# In[2]:
def hierachy_generator(k, size):
index = 0
hierachy_dict = {}
sub_ordinates_dict = {}
employees = []
root = 'e'+str(index)
index+=1
employees.append(root)
hierachy_dict[root] = []
sub_ordina... | mit | -6,612,134,839,134,040,000 | 26.108844 | 175 | 0.578419 | false |
Coelhon/MasterRepo.repository | plugin.video.specto/resources/lib/resolvers/thevideo.py | 10 | 1467 | # -*- coding: utf-8 -*-
'''
Specto Add-on
Copyright (C) 2015 lambda
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 l... | gpl-2.0 | -2,340,694,821,341,332,500 | 27.764706 | 73 | 0.620314 | false |
marshally/aubio | python/aubio/task/task.py | 13 | 1409 | from aubio.aubioclass import *
from params import taskparams
class task(taskparams):
""" default template class to apply tasks on a stream """
def __init__(self,input,output=None,params=None):
""" open the input file and initialize default argument
parameters should be set *before* calling this method.
"""
... | gpl-3.0 | -3,241,055,237,926,436,000 | 25.584906 | 68 | 0.660752 | false |
Anonymouslemming/ansible | lib/ansible/module_utils/eos.py | 24 | 16409 | #
# This code is part of Ansible, but is an independent component.
#
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complet... | gpl-3.0 | 8,060,317,188,933,780,000 | 33.472689 | 130 | 0.606801 | false |
hgl888/chromium-crosswalk-efl | third_party/cython/src/Cython/Compiler/CmdLine.py | 90 | 8191 | #
# Cython - Command Line Parsing
#
import os
import sys
import Options
usage = """\
Cython (http://cython.org) is a compiler for code written in the
Cython language. Cython is based on Pyrex by Greg Ewing.
Usage: cython [options] sourcefile.{pyx,py} ...
Options:
-V, --version Display version ... | bsd-3-clause | 6,644,180,828,261,910,000 | 43.516304 | 95 | 0.536442 | false |
sorgerlab/indra | indra/sources/phosphoelm/api.py | 4 | 1149 | import csv
import logging
from .processor import PhosphoElmProcessor
logger = logging.getLogger(__name__)
def process_from_dump(fname, delimiter='\t'):
"""Process a Phospho.ELM file dump
The dump can be obtained at http://phospho.elm.eu.org/dataset.html.
Parameters
----------
fname : str
... | bsd-2-clause | 5,450,892,507,023,133,000 | 26.357143 | 71 | 0.656223 | false |
teknick/eve-wspace | evewspace/core/tasks.py | 3 | 6163 | # Eve W-Space
# Copyright (C) 2013 Andrew Austin and other contributors
#
# 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... | gpl-3.0 | 887,700,468,034,383,200 | 36.809816 | 88 | 0.636703 | false |
yury-s/v8-inspector | PRESUBMIT.py | 16 | 14149 | # Copyright (c) 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.
"""Top-level presubmit script for Blink.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmi... | bsd-3-clause | 1,381,471,368,970,942,000 | 38.302778 | 148 | 0.644356 | false |
hradec/gaffer | python/GafferImageUI/DeepSampleCountsUI.py | 8 | 1994 | ##########################################################################
#
# Copyright (c) 2019, 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:
#
# * Redistrib... | bsd-3-clause | -5,023,451,626,596,933,000 | 40.541667 | 77 | 0.688566 | false |
calvinpy/django-debug-toolbar | debug_toolbar/panels/templates/panel.py | 7 | 8856 | from __future__ import absolute_import, unicode_literals
from contextlib import contextmanager
from os.path import normpath
from pprint import pformat
import django
from django import http
from django.conf.urls import url
from django.db.models.query import QuerySet, RawQuerySet
from django.template import Context, Re... | bsd-3-clause | 9,172,210,923,079,012,000 | 38.013216 | 96 | 0.598464 | false |
brandond/ansible | lib/ansible/modules/network/fortios/fortios_router_policy.py | 21 | 14465 | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# 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 Lic... | gpl-3.0 | -7,260,899,759,700,809,000 | 31.65237 | 101 | 0.505081 | false |
omouse/staykat | app/planner/models.py | 1 | 2998 | from googleplaces import GooglePlaces
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
class GeoModel(models.Model):
"""
A model for representing a model that has a geographical location.
Cannot use GeoDjango with Mongodb or with Google ... | agpl-3.0 | -7,625,980,831,371,416,000 | 35.120482 | 95 | 0.681121 | false |
lino-framework/lino | lino/utils/jscompressor.py | 3 | 5390 | # {{{ http://code.activestate.com/recipes/496882/ (r8)
'''
http://code.activestate.com/recipes/496882/
Author: Michael Palmer 13 Jul 2006
a regex-based JavaScript code compression kludge
'''
from __future__ import division
from __future__ import print_function
from builtins import range
from builtins import object
from... | bsd-2-clause | 2,897,539,905,111,391,000 | 35.666667 | 108 | 0.581076 | false |
liamchzh/shadowsocks | tests/test.py | 39 | 5023 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2015 clowwindy
#
# 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 b... | apache-2.0 | -5,315,446,770,385,456,000 | 30.791139 | 77 | 0.557436 | false |
eric-haibin-lin/mxnet | ci/util.py | 1 | 5808 | # 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 | -5,611,012,635,956,293,000 | 33.987952 | 112 | 0.647383 | false |
imito/odin | benchmarks/two_way_2_group_data_into_batch.py | 1 | 4082 | # python two_way_2_group_data_into_batch.py -m memory_profiler
# group: 165 + 10.9 MB and 24.3 (s/iter)
# group2: 164 + 43.6 MB (old method) and 15.6 (s/iter)
from __future__ import print_function, division, absolute_import
import os
os.environ['ODIN'] = 'theano,cpu,float32'
from six.moves import zip_longest, cPickle
... | mit | 283,085,075,165,588,500 | 31.396825 | 69 | 0.535277 | false |
akosyakov/intellij-community | python/lib/Lib/site-packages/django/contrib/gis/db/backends/spatialite/models.py | 403 | 1847 | """
The GeometryColumns and SpatialRefSys models for the SpatiaLite backend.
"""
from django.db import models
from django.contrib.gis.db.backends.base import SpatialRefSysMixin
class GeometryColumns(models.Model):
"""
The 'geometry_columns' table from SpatiaLite.
"""
f_table_name = models.CharField(ma... | apache-2.0 | -3,587,166,044,503,683,000 | 29.783333 | 73 | 0.649161 | false |
Drekscott/Motlaesaleor | saleor/registration/migrations/0001_initial.py | 19 | 2160 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import saleor.registration.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operat... | bsd-3-clause | -6,876,362,619,789,834,000 | 39 | 114 | 0.571296 | false |
spencerjanssen/Flexget | flexget/plugins/modify/plugin_priority.py | 13 | 1804 | from __future__ import unicode_literals, division, absolute_import
import logging
from flexget import plugin
from flexget.event import event
log = logging.getLogger('p_priority')
class PluginPriority(object):
"""
Allows modifying plugin priorities from default values.
Example:
plugin_... | mit | -3,072,462,129,229,700,600 | 30.103448 | 82 | 0.596452 | false |
safwanrahman/mozillians | vendor-local/lib/python/rest_framework/tests/test_serializer_nested.py | 19 | 12564 | """
Tests to cover nested serializers.
Doesn't cover model serializers.
"""
from __future__ import unicode_literals
from django.test import TestCase
from rest_framework import serializers
from . import models
class WritableNestedSerializerBasicTests(TestCase):
"""
Tests for deserializing nested entities.
... | bsd-3-clause | 2,970,130,165,500,645,000 | 35.207493 | 91 | 0.535419 | false |
ProjectSWGCore/NGECore2 | scripts/mobiles/tatooine/jabba_swooper.py | 2 | 1269 | import sys
from services.spawn import MobileTemplate
from services.spawn import WeaponTemplate
from resources.datatables import WeaponType
from resources.datatables import Difficulty
from resources.datatables import Options
from java.util import Vector
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobi... | lgpl-3.0 | 4,297,853,815,306,973,700 | 30.75 | 127 | 0.828999 | false |
cmu-delphi/delphi-epidata | tests/server/test_validate.py | 1 | 10987 | """Unit tests for granular sensor authentication in api.php."""
# standard library
import unittest
import base64
# from flask.testing import FlaskClient
from delphi.epidata.server._common import app
from delphi.epidata.server._validate import (
resolve_auth_token,
check_auth_token,
require_all,
requir... | mit | 3,163,102,880,956,222,000 | 45.163866 | 91 | 0.583781 | false |
kobejean/tensorflow | tensorflow/python/autograph/converters/name_scopes_test.py | 3 | 3158 | # 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 | -1,577,677,824,429,302,000 | 30.267327 | 80 | 0.650728 | false |
alexthered/kienhoc-platform | lms/djangoapps/courseware/tests/test_views.py | 7 | 50129 | # coding=UTF-8
"""
Tests courseware views.py
"""
import cgi
from urllib import urlencode
import ddt
import json
import itertools
import unittest
from datetime import datetime
from HTMLParser import HTMLParser
from nose.plugins.attrib import attr
from django.conf import settings
from django.contrib.auth.models import A... | agpl-3.0 | -857,581,424,577,030,700 | 41.927164 | 142 | 0.65097 | false |
Simage/shinken | shinken/acknowledge.py | 14 | 3404 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
# Gregory Starck, g.starck@gmail.com
# Hartmut Goebel, h.goebel@goebel-consult.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redis... | agpl-3.0 | 4,019,617,382,249,692,700 | 34.458333 | 77 | 0.636604 | false |
andmos/ansible | test/units/modules/network/nxos/test_nxos_bgp_af.py | 30 | 4173 | # (c) 2016 Red Hat 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 version.
#
# Ansible is dis... | gpl-3.0 | -2,389,845,950,232,517,600 | 40.316832 | 117 | 0.632638 | false |
WFKipper/android_kernel_cyanogen_msm8916 | tools/perf/util/setup.py | 2079 | 1438 | #!/usr/bin/python2
from distutils.core import setup, Extension
from os import getenv
from distutils.command.build_ext import build_ext as _build_ext
from distutils.command.install_lib import install_lib as _install_lib
class build_ext(_build_ext):
def finalize_options(self):
_build_ext.finalize_optio... | gpl-2.0 | -903,816,419,529,426,000 | 29.595745 | 70 | 0.659944 | false |
dahool/vertaal | openidmigration/views.py | 2 | 1578 | # -*- coding: utf-8 -*-
"""Copyright (c) 2014 Sergio Gabriel Teves
All rights reserved.
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 ... | gpl-3.0 | 6,666,344,439,912,911,000 | 39.461538 | 84 | 0.700887 | false |
obboy/django_base | config/urls.py | 1 | 1233 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
urlpatterns = [
url(r'^$', TemplateView.as_view(templ... | bsd-3-clause | -6,824,816,684,771,418,000 | 35.264706 | 91 | 0.681265 | false |
cuongnb14/autoscaling-paas | project/dashboard/apiv1/serializers.py | 1 | 1969 | from django.contrib.auth.models import User, Group
from apiv1.models import *
from rest_framework import serializers
from apiv1.utils import *
import traceback
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('username', 'email', 'first_name', 'last_name',)
cla... | mit | -8,808,218,824,036,962,000 | 36.865385 | 231 | 0.662773 | false |
Ashaba/rms | rmslocalenv/lib/python2.7/site-packages/django/http/multipartparser.py | 39 | 24373 | """
Multi-part parsing for file uploads.
Exposes one class, ``MultiPartParser``, which feeds chunks of uploaded data to
file upload handlers for processing.
"""
from __future__ import unicode_literals
import base64
import binascii
import cgi
import sys
from django.conf import settings
from django.core.exceptions imp... | mit | -6,791,354,263,535,516,000 | 34.842647 | 115 | 0.546178 | false |
gangadharkadam/v6_erp | erpnext/shopping_cart/doctype/shopping_cart_settings/test_shopping_cart_settings.py | 27 | 1528 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import unittest
from erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart... | agpl-3.0 | -6,776,782,574,739,338,000 | 38.179487 | 110 | 0.759817 | false |
wireservice/agate | agate/aggregations/quartiles.py | 4 | 1548 | #!/usr/bin/env python
from agate.aggregations.base import Aggregation
from agate.aggregations.has_nulls import HasNulls
from agate.aggregations.percentiles import Percentiles
from agate.data_types import Number
from agate.exceptions import DataTypeError
from agate.utils import Quantiles
from agate.warns import warn_nu... | mit | 4,720,413,482,763,868,000 | 30.591837 | 99 | 0.687339 | false |
misdoro/python-ase | ase/gui/colors.py | 2 | 29687 | from __future__ import print_function
# encoding: utf-8
"""colors.py - select how to color the atoms in the GUI."""
import gtk
from gettext import gettext as _
from ase.gui.widgets import pack, cancel_apply_ok, oops, help
import ase
from ase.data.colors import jmol_colors
import numpy as np
import colorsys
named_col... | gpl-2.0 | 6,809,759,851,971,688,000 | 43.375187 | 101 | 0.52464 | false |
garethsion/UCL_RSD_Assessment_1 | greengraph/map.py | 1 | 1604 | #!/usr/bin/env python
import numpy as np
from io import BytesIO
from matplotlib import image as img
import requests
class Map(object):
def __init__(self, lat, long, satellite=True, zoom=10,
size=(400,400), sensor=False):
base="http://maps.googleapis.com/maps/api/staticmap?"
par... | mit | -1,000,301,152,461,289,600 | 36.302326 | 79 | 0.581671 | false |
kjw0106/boto | tests/integration/s3/test_pool.py | 114 | 8255 | # Copyright (c) 2011 Brian Beach
# All rights reserved.
#
# 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, ... | mit | 8,776,278,508,000,805,000 | 32.693878 | 86 | 0.6447 | false |
corvorepack/REPOIVAN | plugin.video.movie.ultra.7k/resources/tools/media_analyzer.py | 2 | 30555 | # -*- coding: utf-8 -*-
#------------------------------------------------------------
# Analizador de medios de PalcoTV
# Version 0.1 (11/12/2015)
#------------------------------------------------------------
# License: GPL (http://www.gnu.org/licenses/gpl-3.0.html)
# Gracias a Juarrox
#--------------------------------... | gpl-2.0 | 5,760,164,928,919,301,000 | 65.27115 | 294 | 0.621256 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/aio/operations/_express_route_service_providers_operations.py | 1 | 5138 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | -1,309,716,383,512,508,700 | 46.574074 | 135 | 0.653367 | false |
techtonik/readthedocs.org | readthedocs/core/utils/__init__.py | 23 | 3304 | import getpass
import logging
import os
from urlparse import urlparse
from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from readthedocs.builds.constants import LATEST
from readthedocs.builds.constants import LATEST_VERBOSE_NAME
from ... | mit | -4,654,922,832,652,913,000 | 25.861789 | 80 | 0.621065 | false |
nielsvanoch/django | tests/model_regress/models.py | 40 | 2244 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
CHOICES = (
(1, 'first'),
(2, 'second'),
)
@python_2_unicode_compatible
class Article(models.Model):
headline = models.CharField(max_length=100, def... | bsd-3-clause | 8,734,357,747,628,923,000 | 25.069767 | 76 | 0.696253 | false |
infinnovation/micropython | docs/conf.py | 2 | 11264 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# MicroPython documentation build configuration file, created by
# sphinx-quickstart on Sun Sep 21 11:42:03 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
... | mit | -4,027,012,213,730,680,300 | 31.554913 | 108 | 0.693537 | false |
SurfasJones/icecream-info | icecream/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/exceptions.py | 374 | 3274 | # urllib3/exceptions.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
## Base Exceptions
class HTTPError(Exception):
"Base exception used by this module."
... | mit | -7,626,469,705,741,234,000 | 26.057851 | 79 | 0.673488 | false |
marcosdiez/ansible-modules-extras | monitoring/boundary_meter.py | 26 | 8349 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Ansible module to add boundary meters.
(c) 2013, curtis <curtis@serverascode.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 Foundati... | gpl-3.0 | -5,289,762,507,156,432,000 | 30.625 | 96 | 0.612409 | false |
rproepp/spykeutils | spykeutils/signal_processing.py | 1 | 19012 | import copy
import quantities as pq
import scipy as sp
import scipy.signal
import scipy.special
import tools
default_kernel_area_fraction = 0.99999
class Kernel(object):
""" Base class for kernels. """
def __init__(self, kernel_size, normalize):
"""
:param kernel_size: Parameter controlling... | bsd-3-clause | 5,919,471,567,079,068,000 | 36.060429 | 84 | 0.606038 | false |
NormandyTechnologyInc/moka-icon-theme | render-bitmaps-hidpi.py | 1 | 6615 | #!/usr/bin/python3
#
import os
import sys
import xml.sax
import subprocess
INKSCAPE = '/usr/bin/inkscape'
OPTIPNG = '/usr/bin/optipng'
MAINDIR = 'Moka'
SOURCES = ('src/#', 'src/A', 'src/B', 'src/C', 'src/D', 'src/E', 'src/F', 'src/G', 'src/H', 'src/I', 'src/J', 'src/K', 'src/L', 'src/M', 'src/N', 'src/O', 'src/P', ... | gpl-3.0 | 711,059,523,413,973,900 | 35.960894 | 264 | 0.484354 | false |
jscn/django | tests/gis_tests/gdal_tests/test_ds.py | 15 | 11594 | import os
import unittest
from unittest import skipUnless
from django.contrib.gis.gdal import HAS_GDAL
from ..test_data import TEST_DATA, TestDS, get_ds_file
if HAS_GDAL:
from django.contrib.gis.gdal import DataSource, Envelope, OGRGeometry, GDALException, OGRIndexError, GDAL_VERSION
from django.contrib.gis.... | bsd-3-clause | -3,818,618,299,446,664,000 | 40.259786 | 117 | 0.547525 | false |
Teagan42/home-assistant | homeassistant/components/shell_command/__init__.py | 3 | 3285 | """Expose regular shell commands as services."""
import asyncio
import logging
import shlex
import voluptuous as vol
from homeassistant.core import ServiceCall
from homeassistant.exceptions import TemplateError
from homeassistant.helpers import config_validation as cv, template
from homeassistant.helpers.typing impor... | apache-2.0 | -5,000,841,727,863,997,000 | 31.205882 | 87 | 0.564079 | false |
Alexander-M-Waldman/local_currency_site | lib/python2.7/site-packages/crispy_forms/templatetags/crispy_forms_tags.py | 6 | 10757 | # -*- coding: utf-8 -*-
from copy import copy
import django
from django.conf import settings
from django.forms.formsets import BaseFormSet
from django.template import Context
from django.template.loader import get_template
from django import template
from crispy_forms.helper import FormHelper
from crispy_forms.compat... | gpl-3.0 | 6,166,227,199,446,894,000 | 35.713311 | 121 | 0.612624 | false |
deepsrijit1105/edx-platform | common/djangoapps/student/tests/test_views.py | 15 | 8209 | """
Test the student dashboard view.
"""
import unittest
import ddt
from django.conf import settings
from django.core.urlresolvers import reverse
from django.test import TestCase
from edx_oauth2_provider.constants import AUTHORIZED_CLIENTS_SESSION_KEY
from edx_oauth2_provider.tests.factories import ClientFactory, Trus... | agpl-3.0 | -8,497,270,679,757,351,000 | 40.670051 | 118 | 0.662078 | false |
highweb-project/highweb-webcl-html5spec | build/android/pylib/results/flakiness_dashboard/json_results_generator_unittest.py | 40 | 7206 | # 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.
#
# Most of this file was ported over from Blink's
# webkitpy/layout_tests/layout_package/json_results_generator_unittest.py
#
import unittest
import json
... | bsd-3-clause | 1,849,728,357,701,656,000 | 32.830986 | 75 | 0.625312 | false |
passiweinberger/nupic | src/nupic/frameworks/opf/opfenvironment.py | 40 | 4003 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | agpl-3.0 | 6,043,603,340,242,697,000 | 36.411215 | 81 | 0.648763 | false |
tst-ahernandez/earthenterprise | earth_enterprise/src/server/wsgi/serve/publish/publish_manager_helper.py | 1 | 62019 | #!/usr/bin/python
#
# Copyright 2017 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 a... | apache-2.0 | 2,196,552,734,973,027,000 | 35.894111 | 80 | 0.647576 | false |
cntnboys/410Lab6 | build/django/build/lib.linux-x86_64-2.7/django/utils/termcolors.py | 100 | 7492 | """
termcolors.py
"""
from django.utils import six
color_names = ('black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white')
foreground = dict((color_names[x], '3%s' % x) for x in range(8))
background = dict((color_names[x], '4%s' % x) for x in range(8))
RESET = '0'
opt_dict = {'bold': '1', 'underscore':... | apache-2.0 | -2,604,373,474,583,362,000 | 33.366972 | 89 | 0.529098 | false |
jlward/django-authority | authority/widgets.py | 3 | 2809 | from django import forms
from django.conf import settings
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from django.contrib.admin.widgets import ForeignKeyRawIdWidget
generic_script = """
<script type="text/javascript">
function showGenericRelatedObjectLookupPop... | bsd-3-clause | -2,428,228,131,947,486,000 | 32.440476 | 98 | 0.516554 | false |
garoa/pingo | pingo/parts/button.py | 7 | 1937 | import time
import threading
class Switch(object):
"""Button like component with two stable states"""
def __init__(self, pin):
"""
:param pin: A instance of DigitalPin
"""
self.pin = pin
self.pin.mode = 'IN'
self.polling_task = None
self._up_callback = ... | mit | 4,225,716,473,003,057,700 | 28.8 | 62 | 0.550852 | false |
ntamas/python-selecta | selecta/__main__.py | 1 | 3608 | from __future__ import print_function
import argparse
import sys
from selecta.indexing import FuzzyIndex
from selecta.ui import DumbTerminalUI, SmartTerminalUI
from selecta.utils import identity
from selecta.terminal import reopened_terminal, Terminal
__version__ = "0.0.1"
KNOWN_UI_CLASSES = dict(
dumb=DumbTerm... | mit | 7,996,273,981,427,076,000 | 32.719626 | 79 | 0.636641 | false |
Big-B702/python-for-android | python3-alpha/python3-src/Lib/curses/has_key.py | 195 | 5634 |
#
# Emulation of has_key() function for platforms that don't use ncurses
#
import _curses
# Table mapping curses keys to the terminfo capability name
_capability_names = {
_curses.KEY_A1: 'ka1',
_curses.KEY_A3: 'ka3',
_curses.KEY_B2: 'kb2',
_curses.KEY_BACKSPACE: 'kbs',
_curses.KEY_BEG: 'kbeg',
... | apache-2.0 | 6,937,102,811,307,377,000 | 28.34375 | 72 | 0.571885 | false |
gnu3ra/PyBitmessage | src/socks/__init__.py | 15 | 16174 | """SocksiPy - Python SOCKS module.
Version 1.00
Copyright 2006 Dan-Haim. 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. Redistributions of source code must retain the above copyright notice, this
... | mit | 925,540,328,983,473,500 | 41.340314 | 136 | 0.609126 | false |
Livefyre/django-cms | cms/south_migrations/0047_auto__del_field_title_application_urls.py | 48 | 16352 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
try:
from django.contrib.auth import get_user_model
except ImportError: # django < 1.5
from django.contrib.auth.models import User
else:
User = get_user_model()
user_orm_label... | bsd-3-clause | 9,035,652,843,603,126,000 | 79.955446 | 187 | 0.555528 | false |
matmiiiin/swallow | swallow/inout/JsonFileio.py | 2 | 1406 | import json
from swallow.logger_mp import get_logger_mp
class JsonFileio:
"""Reads all Docs of a Json file and pushes them into a queue"""
def scan_and_queue(self, p_queue, p_file):
""" Reads json file and pushes docs to the queue
If the file contains a list, each doc is pushed in the que... | gpl-2.0 | -2,824,388,901,202,863,000 | 40.352941 | 132 | 0.573257 | false |
JingJunYin/tensorflow | tensorflow/python/framework/importer_test.py | 5 | 47663 | # 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 | -5,255,547,414,567,160,000 | 37.5 | 81 | 0.570526 | false |
SteveHNH/ansible | test/units/modules/remote_management/oneview/test_oneview_network_set.py | 77 | 6332 | # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from ansible.compat.tests import unittest, mock
from hpe_test_utils import OneViewBaseTestCase
from oneview_module_loader import NetworkSetModule
FAKE_MSG_ER... | gpl-3.0 | -8,024,517,086,037,602,000 | 33.601093 | 107 | 0.622552 | false |
thaumos/ansible | lib/ansible/plugins/httpapi/splunk.py | 37 | 2162 | # (c) 2019 Red Hat Inc.
# 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
DOCUMENTATION = """
---
author: Ansible Security Automation Team
httpapi : splunk
short_description: HttpApi Plu... | gpl-3.0 | -9,128,430,941,757,357,000 | 33.870968 | 138 | 0.676688 | false |
syaiful6/django | django/core/mail/__init__.py | 347 | 4697 | """
Tools for sending email.
"""
from __future__ import unicode_literals
from django.conf import settings
# Imported for backwards compatibility and for the sake
# of a cleaner namespace. These symbols used to be in
# django/core/mail.py before the introduction of email
# backends and the subsequent reorganization (Se... | bsd-3-clause | -38,500,029,848,772,850 | 41.7 | 84 | 0.678518 | false |
luhanhan/horizon | openstack_dashboard/api/fwaas.py | 36 | 10587 | # Copyright 2013, Big Switch Networks, 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 applic... | apache-2.0 | 62,701,680,859,308,400 | 33.485342 | 78 | 0.667895 | false |
kleientertainment/ds_mod_tools | pkg/win32/Python27/Lib/pprint.py | 2 | 12361 | # Author: Fred L. Drake, Jr.
# fdrake@acm.org
#
# This is a simple little module I wrote to make life easier. I didn't
# see anything quite like it in the library, though I may have overlooked
# something. I wrote this when I was trying to read some heavily nested
# tuples with fairly no... | mit | -7,876,396,873,671,855,000 | 33.016997 | 81 | 0.513227 | false |
dontnod/weblate | weblate/utils/db.py | 1 | 1599 | # -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2019 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <https://weblate.org/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eith... | gpl-3.0 | -7,290,306,481,089,103,000 | 31.571429 | 75 | 0.657268 | false |
Vishluck/sympy | sympy/printing/tableform.py | 75 | 11818 | from __future__ import print_function, division
from sympy.core.containers import Tuple
from sympy.core.compatibility import range
from types import FunctionType
class TableForm(object):
"""
Create a nice table representation of data.
Examples
========
>>> from sympy import TableForm
>>> t... | bsd-3-clause | -1,977,945,288,796,421,000 | 31.11413 | 79 | 0.42173 | false |
nikolas/lettuce | tests/integration/lib/Django-1.2.5/django/conf/locale/fr/formats.py | 80 | 1252 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
DATE_FORMAT = 'j F Y'
TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = 'j F Y H:i:s'
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j N Y'
SHORT_DATETIME_FORMAT = 'j N Y H:i:s'
FIRST_DAY_OF_WEEK = 1 # M... | gpl-3.0 | -3,650,159,556,099,818,000 | 33.777778 | 72 | 0.476038 | false |
Vagab0nd/SiCKRAGE | lib3/sqlalchemy/dialects/postgresql/psycopg2.py | 3 | 35979 | # postgresql/psycopg2.py
# Copyright (C) 2005-2020 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
r"""
.. dialect:: postgresql+psycopg2
:name: psycopg2
:dbapi: psycopg2... | gpl-3.0 | 8,415,133,730,621,881,000 | 35.526904 | 97 | 0.653687 | false |
cherusk/ansible | lib/ansible/modules/cloud/azure/azure_rm_storageblob.py | 56 | 22010 | #!/usr/bin/python
#
# Copyright (c) 2016 Matt Davis, <mdavis@ansible.com>
# Chris Houseknecht, <house@redhat.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 Soft... | gpl-3.0 | -515,295,408,989,341,700 | 37.479021 | 119 | 0.565198 | false |
testbetta/git-repo-pub | subcmds/status.py | 35 | 6501 | #
# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | apache-2.0 | 3,434,665,012,932,543,000 | 32.859375 | 86 | 0.628673 | false |
Huyuwei/tvm | tests/python/unittest/test_lang_data_layout.py | 2 | 3014 | # 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 | -8,317,408,662,311,165,000 | 33.643678 | 65 | 0.662575 | false |
Amechi101/concepteur-market-app | venv/lib/python2.7/site-packages/django/contrib/sessions/backends/cache.py | 122 | 2505 | from django.conf import settings
from django.contrib.sessions.backends.base import SessionBase, CreateError
from django.core.cache import get_cache
from django.utils.six.moves import xrange
KEY_PREFIX = "django.contrib.sessions.cache"
class SessionStore(SessionBase):
"""
A cache-based session store.
"""
... | mit | -2,545,850,972,982,796,000 | 32.851351 | 79 | 0.593214 | false |
mpasternak/pyglet-fix-issue-552 | tests/graphics/IMMEDIATE.py | 18 | 2241 | #!/usr/bin/python
# $Id:$
import unittest
import pyglet
from graphics_common import *
__noninteractive = True
class TEST_CASE(unittest.TestCase):
def check(self, expected, result, dimensions):
if len(expected) != len(result) * dimensions / 4:
self.fail('Incorrect number of vertices in feedb... | bsd-3-clause | 9,151,055,079,900,036,000 | 30.125 | 76 | 0.542615 | false |
oseledets/pybtex | pybtex/docgen/mystyle.py | 5 | 2874 | # Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012 Andrey Golovizin
#
# 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, c... | mit | 6,296,878,485,492,265,000 | 37.837838 | 72 | 0.572373 | false |
pculture/django-uploadtemplate | uploadtemplate/tests/unit/test_forms.py | 1 | 4092 | import zipfile
from django.core.exceptions import ValidationError
import mock
from uploadtemplate.forms import ThemeForm
from uploadtemplate.models import Theme
from uploadtemplate.tests import BaseTestCase
from uploadtemplate.utils import is_zipfile
class ThemeFormTestCase(BaseTestCase):
def test_name_not_give... | bsd-3-clause | 1,258,437,676,471,020,000 | 40.755102 | 74 | 0.565494 | false |
vjmac15/Lyilis | lib/youtube_dl/extractor/gdcvault.py | 27 | 6692 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
HEADRequest,
sanitized_Request,
urlencode_postdata,
)
class GDCVaultIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?gdcvault\.com/play/(?P<id>\d+)/(?P<name>(\w|-)+)?'
_NETRC_MACHINE = '... | gpl-3.0 | 2,152,483,355,843,361,300 | 37.45977 | 140 | 0.507322 | false |
ChristianKniep/QNIB | serverfiles/usr/local/lib/networkx-1.6/build/lib/networkx/tests/test_convert_numpy.py | 44 | 6312 | from nose import SkipTest
from nose.tools import assert_raises, assert_true, assert_equal
import networkx as nx
from networkx.generators.classic import barbell_graph,cycle_graph,path_graph
class TestConvertNumpy(object):
numpy=1 # nosetests attribute, use nosetests -a 'not numpy' to skip test
@classmethod
... | gpl-2.0 | -3,111,976,732,642,387,000 | 35.697674 | 82 | 0.596324 | false |
stone5495/NewsBlur | utils/feedfinder.py | 17 | 13464 | """feedfinder: Find the Web feed for a Web page
http://www.aaronsw.com/2002/feedfinder/
Usage:
feed(uri) - returns feed found for a URI
feeds(uri) - returns all feeds found for a URI
>>> import feedfinder
>>> feedfinder.feed('scripting.com')
'http://scripting.com/rss.xml'
>>>
>>> feedfinder.fe... | mit | -5,874,580,692,630,726,000 | 35.096515 | 173 | 0.602718 | false |
nZac/flask | flask/globals.py | 322 | 1645 | # -*- coding: utf-8 -*-
"""
flask.globals
~~~~~~~~~~~~~
Defines all the global objects that are proxies to the current
active context.
:copyright: (c) 2015 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from functools import partial
from werkzeug.local import LocalStack, ... | bsd-3-clause | -3,728,711,227,519,698,000 | 25.967213 | 72 | 0.705775 | false |
BenHenning/oppia | core/domain/rte_component_registry_test.py | 30 | 7159 | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | apache-2.0 | 3,263,632,395,046,051,000 | 42.920245 | 79 | 0.621875 | false |
pferreir/indico-plugins | piwik/indico_piwik/controllers.py | 2 | 3059 | # This file is part of Indico.
# Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN).
#
# Indico 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 (a... | gpl-3.0 | -6,544,514,036,919,840,000 | 37.721519 | 120 | 0.702517 | false |
xerosanyam/yowsup | yowsup/layers/protocol_groups/protocolentities/iq_groups_participants_add.py | 61 | 1089 | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups_participants import ParticipantsGroupsIqProtocolEntity
class AddParticipantsIqProtocolEntity(ParticipantsGroupsIqProtocolEntity):
'''
<iq type="set" id="{{id}}" xmlns="w:g2", to="{{group_jid}}">
<add>
<participant j... | gpl-3.0 | 7,847,050,842,297,352,000 | 42.56 | 115 | 0.680441 | false |
debsankha/networkx | networkx/algorithms/bipartite/matrix.py | 32 | 6621 | # -*- coding: utf-8 -*-
"""
====================
Biadjacency matrices
====================
"""
# Copyright (C) 2013-2015 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import itertools
from networkx.convert ... | bsd-3-clause | -4,348,491,172,008,116,000 | 36.40678 | 94 | 0.63948 | false |
bcorbet/SickRage | lib/simplejson/encoder.py | 91 | 16041 | """Implementation of JSONEncoder
"""
import re
try:
from lib.simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii
except ImportError:
c_encode_basestring_ascii = None
try:
from lib.simplejson._speedups import make_encoder as c_make_encoder
except ImportError:
c_make_encoder ... | gpl-3.0 | -7,902,705,116,153,512,000 | 35.456818 | 136 | 0.526276 | false |
saukrIppl/seahub | thirdpart/Django-1.8.10-py2.7.egg/django/utils/dates.py | 590 | 2296 | "Commonly-used date structures"
from django.utils.translation import pgettext_lazy, ugettext_lazy as _
WEEKDAYS = {
0: _('Monday'), 1: _('Tuesday'), 2: _('Wednesday'), 3: _('Thursday'), 4: _('Friday'),
5: _('Saturday'), 6: _('Sunday')
}
WEEKDAYS_ABBR = {
0: _('Mon'), 1: _('Tue'), 2: _('Wed'), 3: _('Thu'),... | apache-2.0 | -3,397,640,727,699,138,600 | 39.280702 | 95 | 0.535279 | false |
retr0h/ansible-modules-core | system/user.py | 15 | 52271 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2012, Stephen Fromm <sfromm@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 Lice... | gpl-3.0 | 1,185,459,622,595,334,700 | 31.999369 | 135 | 0.517438 | false |
pthaike/SFrame | cxxtest/python/setup.py | 59 | 1900 | #-------------------------------------------------------------------------
# CxxTest: A lightweight C++ unit testing library.
# Copyright (c) 2008 Sandia Corporation.
# This software is distributed under the LGPL License v3
# For more information, see the COPYING file in the top CxxTest directory.
# Under the terms of ... | bsd-3-clause | -7,303,629,261,709,841,000 | 29.645161 | 74 | 0.623158 | false |
dischinator/pyload | module/plugins/hoster/DataportCz.py | 5 | 2321 | # -*- coding: utf-8 -*-
from module.plugins.internal.SimpleHoster import SimpleHoster
class DataportCz(SimpleHoster):
__name__ = "DataportCz"
__type__ = "hoster"
__version__ = "0.46"
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?dataport\.cz/file/(.+)'
__config__ = [("activ... | gpl-3.0 | 3,654,110,221,926,274,600 | 41.925926 | 111 | 0.529336 | false |
apache/airflow | airflow/contrib/operators/gcs_to_bq.py | 3 | 1695 | #
# 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... | apache-2.0 | -1,424,787,826,495,697,200 | 37.522727 | 108 | 0.729204 | false |
CloudWareChile/OpenChile | openerp/addons/l10n_fr/__init__.py | 14 | 1444 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2008 JAILLET Simon - CrysaLEAD - www.crysalead.fr
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
#... | agpl-3.0 | -5,928,376,547,646,683,000 | 41.470588 | 78 | 0.686981 | false |
DayGitH/Python-Challenges | DailyProgrammer/20120514B.py | 1 | 2681 | """
After years of study, scientists have discovered an alien language transmitted from a faraway planet. The alien
language is very unique in that every word consists of exactly L lowercase letters. Also, there are exactly D words in
this language.
Once the dictionary of all the words in the alien language was built,... | mit | 8,714,670,273,021,159,000 | 30.174419 | 119 | 0.633346 | 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.