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 |
|---|---|---|---|---|---|---|---|---|---|---|
MountainWei/nova | nova/api/openstack/compute/user_data.py | 13 | 1447 | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | -3,874,873,369,219,171,000 | 33.452381 | 79 | 0.712509 | false |
macfreek/NBT | examples/player_print.py | 2 | 1451 | #!/usr/bin/env python
"""
Finds and prints different entities in a game file, including mobs, items, and vehicles.
"""
import locale, os, sys
# local module
try:
import nbt
except ImportError:
# nbt not in search path. Let's see if it can be found in the parent folder
extrasearchpath = os.path.realpath(os... | mit | 1,178,407,483,638,503,200 | 30.543478 | 100 | 0.623708 | false |
jat255/hyperspy | hyperspy/learn/whitening.py | 3 | 2813 | # -*- 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 | -8,381,015,106,072,259,000 | 30.255556 | 79 | 0.642375 | false |
lnielsen/invenio-records-rest | invenio_records_rest/views.py | 1 | 21226 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015, 2016 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any... | gpl-2.0 | -6,239,456,737,465,079,000 | 37.10772 | 79 | 0.622067 | false |
anomitra/articleScraper | PyQt-gpl-5.4.1/examples/itemviews/combowidgetmapper.py | 2 | 5391 | #!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2013 Riverbank Computing Limited
## Copyright (C) 2010 Hans-Peter Jansen <hpj@urpla.net>.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file... | gpl-2.0 | 7,036,943,599,252,471,000 | 38.639706 | 80 | 0.638472 | false |
jabber-at/hp | fabfile.py | 1 | 8929 | # -*- coding: utf-8 -*-
#
# This file is part of the jabber.at homepage (https://github.com/jabber-at/hp).
#
# This project 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 (... | gpl-3.0 | -6,126,818,658,235,467,000 | 30.775801 | 99 | 0.627058 | false |
tughi/aggregator-python | aggregator/api.py | 1 | 10622 | # coding=utf-8
import calendar
import json
import requests
import time
import urlparse
from collections import OrderedDict
import feedparser
import opml
from bottle import Bottle, response, request
from aggregator import content
from aggregator.utils import signed_long
api = Bottle(autojson=False)
class ApiExcept... | gpl-3.0 | -4,391,726,277,884,259,000 | 31.285714 | 158 | 0.577575 | false |
coala-analyzer/coala-bears | bears/hypertext/HTMLLintBear.py | 2 | 1511 | from shutil import which
import sys
from coalib.bearlib.abstractions.Linter import linter
from dependency_management.requirements.PipRequirement import PipRequirement
from coalib.settings.Setting import typed_list
@linter(executable=sys.executable,
output_format='regex',
output_regex=r'(?P<line>\d+):... | agpl-3.0 | -8,296,902,543,812,831,000 | 33.340909 | 78 | 0.614163 | false |
lukaszb/django-guardian | guardian/decorators.py | 2 | 7513 | from django.apps import apps
from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.db.models import Model
from django.db.models.base import ModelBase
from django.db.models.query import QuerySet
from django.shortcuts import get_object_or_404
from django.utils.functional import ... | bsd-2-clause | 7,779,080,929,635,580,000 | 47.160256 | 125 | 0.625982 | false |
Shedino/SherpaHighLevel | catkin_ws/src/casy_rover/mavlink/pymavlink/tools/mavplayback.py | 11 | 8626 | #!/usr/bin/env python
'''
play back a mavlink log as a FlightGear FG NET stream, and as a
realtime mavlink stream
Useful for visualising flights
'''
import sys, time, os, struct
import Tkinter
from pymavlink import fgFDM
from optparse import OptionParser
parser = OptionParser("mavplayback.py [options]")
parser.ad... | bsd-3-clause | 5,808,458,249,545,593,000 | 33.64257 | 99 | 0.572919 | false |
adam-rabinowitz/ngs_analysis | scripts/RNASeq_Pipeline_EMBL/EMBL_RNASeq_Pipeline.py | 2 | 8793 | #!/bin/python2.7
import argparse
import collections
import os
import re
import sys
scriptdir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(scriptdir)
import EMBL_RNASeq_Functions as rsf
import EMBL_RNASeq_Slurm as slurm
# Extract command line arguments
parser = argparse.ArgumentParser()
parser.add_argum... | gpl-2.0 | -4,122,712,353,872,457,700 | 40.088785 | 79 | 0.618901 | false |
Donkyhotay/MoonPy | zope/app/generations/browser/ftests.py | 1 | 3569 | ##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | gpl-3.0 | 5,171,750,260,062,371,000 | 42 | 79 | 0.550014 | false |
Sinar/mapit | mapit_gb/management/commands/mapit_UK_fix_2014-05-torfaen.py | 1 | 2731 | # This script is to be run as a one-off to fix up some of the changes to
# Torfaen wards/communities in the May 2014 edition of Boundary-Line that
# should not have been present.
#
# http://www.legislation.gov.uk/wsi/2013/2156/contents/made is the source for
# all of this. Specifically, section 2 saying that articles 5... | agpl-3.0 | 9,097,601,699,274,903,000 | 43.048387 | 105 | 0.674478 | false |
girving/tensorflow | tensorflow/contrib/cluster_resolver/python/training/__init__.py | 65 | 1351 | # 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 applicable ... | apache-2.0 | 8,947,818,239,741,765,000 | 53.04 | 103 | 0.766099 | false |
lmprice/ansible | lib/ansible/modules/network/junos/junos_vrf.py | 9 | 8565 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Ansible by 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
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | gpl-3.0 | 6,251,288,366,022,149,000 | 30.145455 | 121 | 0.638762 | false |
asoplata/dynasim-benchmark-brette-2007 | output/Brian2/brian2_benchmark_CUBA_nosyn_0032/brian2_benchmark_CUBA_nosyn_0032.py | 2 | 2000 | """
# Notes:
- This simulation seeks to emulate the CUBA benchmark simulations of (Brette
et al. 2007) using the Brian2 simulator for speed benchmark comparison to
DynaSim. However, this simulation does NOT include synapses, for better
comparison to Figure 5 of (Goodman and Brette, 2008).
- The time taken to si... | gpl-3.0 | -8,939,075,870,753,446,000 | 27.542857 | 84 | 0.715716 | false |
gnowxilef/youtube-dl | youtube_dl/extractor/adobepass.py | 4 | 39231 | # coding: utf-8
from __future__ import unicode_literals
import re
import time
import xml.etree.ElementTree as etree
from .common import InfoExtractor
from ..compat import compat_urlparse
from ..utils import (
unescapeHTML,
urlencode_postdata,
unified_timestamp,
ExtractorError,
)
MSO_INFO = {
'DT... | unlicense | 5,737,985,171,260,397,000 | 24.792899 | 126 | 0.473427 | false |
bloyl/mne-python | mne/preprocessing/tests/test_peak_finder.py | 4 | 1168 | from numpy.testing import assert_array_equal, assert_equal
import pytest
import numpy as np
from mne.preprocessing import peak_finder
def test_peak_finder():
"""Test the peak detection method."""
# check for random data
rng = np.random.RandomState(42)
peak_inds, peak_mags = peak_finder(rng.randn(20))... | bsd-3-clause | -2,130,804,854,624,632,000 | 28.948718 | 61 | 0.66524 | false |
alhashash/odoo | addons/procurement_jit/procurement_jit.py | 4 | 1916 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2013 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 | -1,826,960,067,693,229,000 | 42.545455 | 121 | 0.620564 | false |
AleksNeStu/ggrc-core | test/integration/ggrc/converters/test_snapshot_block.py | 1 | 3668 | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Tests for Snapshot block converter class."""
import mock
from ggrc.converters.snapshot_block import SnapshotBlockConverter
from integration.ggrc import TestCase
from integration.ggrc.models import facto... | apache-2.0 | -1,809,002,079,199,718,400 | 34.960784 | 78 | 0.62868 | false |
FescueFungiShare/hydroshare | hs_app_netCDF/nc_functions/nc_utils.py | 3 | 18904 | """
Module provides utility functions to manipulate netCDF dataset.
- classify variable types of coordinate, coordinate bounds, grid mapping, scientific data,
auxiliary coordinate
- show original metadata of a variable
Reference code
http://netcdf4-python.googlecode.com/svn/trunk/docs/netCDF4-module.html
"""
imp... | bsd-3-clause | 3,093,223,829,256,898,600 | 35.214559 | 100 | 0.61934 | false |
campagnola/acq4 | acq4/modules/DataManager/FileInfoView.py | 3 | 5848 | # -*- coding: utf-8 -*-
from __future__ import print_function
import six
from .FileInfoViewTemplate import *
from acq4.util import Qt
from acq4.util.DataManager import DirHandle
import acq4.Manager as Manager
import time
import acq4.util.configfile as configfile
from acq4.util.DictView import *
class FocusEventCatch... | mit | 7,982,034,048,253,674,000 | 34.877301 | 144 | 0.514193 | false |
mhvk/numpy | numpy/lib/npyio.py | 3 | 89674 | import os
import re
import functools
import itertools
import warnings
import weakref
import contextlib
from operator import itemgetter, index as opindex
from collections.abc import Mapping
import numpy as np
from . import format
from ._datasource import DataSource
from numpy.core import overrides
from numpy.core.multi... | bsd-3-clause | -5,126,711,876,568,169,000 | 36.086022 | 94 | 0.564032 | false |
hanez/linspector | linspector/services/etc/random.py | 1 | 1779 | """
Dummy service creating random data; for debugging and testing
Copyright (c) 2011-2015 by Johannes Findeisen
This file is part of Linspector (http://linspector.org).
Linspector is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Sof... | gpl-2.0 | -1,638,795,322,258,251,500 | 25.161765 | 90 | 0.655424 | false |
edx/edx-enterprise | tests/test_enterprise/api_client/test_enterprise.py | 1 | 8001 | """
Test the Enterprise API client functionality.
"""
import unittest
import ddt
import mock
import responses
from pytest import mark
from django.conf import settings
from django.core.cache import cache
from enterprise.api_client import enterprise as enterprise_api
from enterprise.models import EnterpriseCustomerCa... | agpl-3.0 | -8,249,597,406,114,950,000 | 40.030769 | 118 | 0.67779 | false |
haystack/eyebrowse-server | common/middleware/profiler.py | 1 | 1666 | import hotshot
import hotshot.stats
import sys
import tempfile
from cStringIO import StringIO
from django.conf import settings
class ProfileMiddleware(object):
"""
Displays hotshot profiling for any view.
http://yoursite.com/yourview/?prof
Add the "prof" key to query string by appending ?prof (or &... | mit | 745,310,004,090,227,000 | 30.433962 | 78 | 0.621849 | false |
geggo/pyface | examples/file_table_viewer.py | 5 | 4831 | #------------------------------------------------------------------------------
# Copyright (c) 2005, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in enthought/LICENSE.txt and may be redistributed only
# under the conditions describe... | bsd-3-clause | -8,598,821,856,311,124,000 | 31.206667 | 79 | 0.526599 | false |
fnp/pylucene | samples/LuceneInAction/lia/extsearch/sorting/DistanceSortingTest.py | 1 | 3543 | # ====================================================================
# 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 re... | apache-2.0 | 5,063,836,857,551,192,000 | 37.934066 | 98 | 0.62433 | false |
KevinMidboe/statusHandler | old_v0.1/ipLookup.py | 1 | 1197 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: KevinMidboe
# @Date: 2016-11-22 12:07:08
# @Last Modified by: KevinMidboe
# @Last Modified time: 2016-11-28 08:14:35
import geoip2.database
import ipaddress, os
class ipLookup(object):
"""docstring for ipLookup"""
def __init__(self, address):
super(ipL... | mit | -1,720,522,090,506,614,800 | 29.717949 | 65 | 0.726817 | false |
AllanNozomu/tecsaladeaula | ifs/migrations/0003_auto__del_unique_ifuser_email.py | 2 | 5041 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Removing unique constraint on 'IfUser', fields ['email']
db.delete_uniq... | agpl-3.0 | -3,787,158,509,573,816,300 | 69.027778 | 195 | 0.557231 | false |
maciejkula/scipy | scipy/io/idl.py | 17 | 25607 | # IDLSave - a python module to read IDL 'save' files
# Copyright (c) 2010 Thomas P. Robitaille
# Many thanks to Craig Markwardt for publishing the Unofficial Format
# Specification for IDL .sav files, without which this Python module would not
# exist (http://cow.physics.wisc.edu/~craigm/idl/savefmt).
# This code was... | bsd-3-clause | -3,889,134,890,709,599,000 | 27.901806 | 89 | 0.563323 | false |
arkon/uoft-scrapers | setup.py | 1 | 1449 | from distutils.core import setup
from codecs import open
setup(
name = 'uoftscrapers',
packages = [
'uoftscrapers',
'uoftscrapers.scrapers.utils',
'uoftscrapers.scrapers.courses',
'uoftscrapers.scrapers.buildings',
'uoftscrapers.scrapers.textbooks',
'uoftscrapers... | mit | -4,326,055,415,130,359,300 | 37.131579 | 119 | 0.637681 | false |
freedesktop-unofficial-mirror/telepathy__telepathy-qt | tests/lib/python/account-manager.py | 7 | 16035 | #!/usr/bin/python
#
# A small implementation of a Telepathy AccountManager.
import sys
import re
import dbus
from dbus.bus import NAME_FLAG_DO_NOT_QUEUE, REQUEST_NAME_REPLY_EXISTS
from dbus.mainloop.glib import DBusGMainLoop
from dbus.service import Object, method, signal
from gobject import MainLoop
TP = 'org.freed... | lgpl-2.1 | 2,118,837,975,413,938,400 | 39.69797 | 98 | 0.5657 | false |
AnotherIvan/calibre | src/calibre/ebooks/oeb/polish/split.py | 11 | 18227 | #!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
import copy, os, re
from future_builtins import map
from urlparse import url... | gpl-3.0 | 7,409,310,579,244,146,000 | 36.35041 | 136 | 0.593899 | false |
gjhiggins/graphpath | graphpath/util/redutil.py | 1 | 2403 | # """ Provide DBPopulation class as a convenience for dealing with BDB hashes.
# """
# import RDF
# from graphpath.redadapt import Population
# from anysets import Set
# from os.path import split
# def resource(uri_string, fragment=""):
# return RDF.Node(uri_string=uri_string + fragment)
# def uriref(res):
# ... | gpl-2.0 | 7,549,632,745,325,568,000 | 27.270588 | 78 | 0.516854 | false |
Nexenta/cinder | cinder/tests/unit/volume/drivers/hitachi/test_hitachi_hbsd_snm2_fc.py | 8 | 30942 | # Copyright (C) 2014, Hitachi, Ltd.
#
# 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 | 7,350,781,741,638,241,000 | 49.067961 | 79 | 0.583382 | false |
explosion/srsly | srsly/ruamel_yaml/util.py | 3 | 6098 | # coding: utf-8
"""
some helper functions that might be generally useful
"""
from __future__ import absolute_import, print_function
from functools import partial
import re
from .compat import text_type, binary_type
if False: # MYPY
from typing import Any, Dict, Optional, List, Text # NOQA
from .compat im... | mit | -1,112,827,937,119,956,100 | 31.094737 | 93 | 0.573795 | false |
pattisdr/osf.io | admin_tests/pre_reg/utils.py | 8 | 7460 | from osf.models import DraftRegistration, RegistrationSchema
from admin.pre_reg.views import get_metadata_files
def draft_reg_util():
DraftRegistration.objects.all().delete()
return RegistrationSchema.objects.get(name='Prereg Challenge', schema_version=2)
def checkin_files(draft):
if draft.approval_id:
... | apache-2.0 | -1,363,438,589,927,558,100 | 40.444444 | 370 | 0.574263 | false |
rhinstaller/pykickstart | tests/commands/method.py | 2 | 14404 | #
# Martin Gracik <mgracik@redhat.com>
#
# Copyright 2009 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
# General Public License v.2. This program is distributed in the hope that it
# will be use... | gpl-2.0 | -4,503,238,137,414,924,300 | 36.510417 | 139 | 0.626909 | false |
cabreraalex/hashicon | hashicon/hashicon.py | 1 | 3706 | #!/usr/bin/env python3
from PIL import Image, ImageDraw
import hashlib
def icon(name):
"""Returns icon created from the passed string."""
if len(name) == 1:
name = name*4
elif len(name) == 2:
name = name*2
elif len(name) == 3:
name = name + name[0]
white = "#ffffff"
bo... | mit | -1,729,635,332,225,885,200 | 39.725275 | 167 | 0.631409 | false |
asm-products/cloudroutes-service | src/actions/actions/heroku-create-dyno/__init__.py | 6 | 2714 | #!/usr/bin/python
######################################################################
# Cloud Routes Bridge
# -------------------------------------------------------------------
# Actions Module
######################################################################
import time
import json
import base64
import reque... | agpl-3.0 | 621,901,747,320,191,600 | 31.698795 | 130 | 0.572587 | false |
RTHMaK/RPGOne | circleci-demo-python-flask-master/app/auth/views.py | 14 | 6044 | from flask import render_template, redirect, request, url_for, flash
from flask_login import login_user, logout_user, login_required, \
current_user
from . import auth
from .. import db
from ..models import User
from ..email import send_email
from .forms import LoginForm, RegistrationForm, ChangePasswordForm,\
... | apache-2.0 | -6,553,604,613,305,447,000 | 35.630303 | 78 | 0.63865 | false |
apyrgio/synnefo | snf-astakos-app/astakos/im/migrations/0028_auto__add_field_resource_allow_in_projects.py | 10 | 22526 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Resource.allow_in_projects'
db.add_column('im_resource', 'allow_in_projects', self.gf('dja... | gpl-3.0 | -3,090,555,311,656,802,000 | 83.367041 | 219 | 0.551185 | false |
kevin-teddy/gajim | src/advanced.py | 2 | 8990 | # -*- coding:utf-8 -*-
## src/advanced.py
##
## Copyright (C) 2005 Travis Shirk <travis AT pobox.com>
## Vincent Hanquez <tab AT snarc.org>
## Copyright (C) 2005-2007 Yann Leboulanger <asterix AT lagaule.org>
## Nikos Kouremenos <kourem AT gmail.com>
## Copyright (C) 2006 Dimi... | gpl-3.0 | -6,870,396,450,765,554,000 | 31.222222 | 76 | 0.677308 | false |
nhomar/odoo-mirror | openerp/netsvc.py | 40 | 8953 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2014 OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of... | agpl-3.0 | 7,690,141,049,685,274,000 | 38.791111 | 134 | 0.641684 | false |
emersonsoftware/ansiblefork | lib/ansible/modules/packaging/os/dpkg_selections.py | 25 | 2580 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# 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.
... | gpl-3.0 | 5,742,568,126,588,301,000 | 29.714286 | 106 | 0.653101 | false |
konstruktoid/ansible-upstream | test/units/plugins/filter/test_mathstuff.py | 49 | 6931 | # Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import pytest
import ansible.plugins.filter.mathstuff as ms
from a... | gpl-3.0 | -4,529,429,665,196,477,400 | 40.502994 | 146 | 0.592267 | false |
t-miyamae/teuthology | teuthology/task/kernel.py | 1 | 44545 | """
Kernel installation task
"""
from cStringIO import StringIO
import logging
import os
import re
import shlex
import urllib2
import urlparse
from teuthology import misc as teuthology
from ..orchestra import run
from ..config import config as teuth_config
from ..exceptions import (UnsupportedPackageTypeError,
... | mit | 6,977,366,886,636,248,000 | 35.723001 | 109 | 0.528971 | false |
scollis/iris | lib/iris/tests/unit/coords/test_Cell.py | 1 | 6058 | # (C) British Crown Copyright 2013 - 2014, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | gpl-3.0 | -5,857,706,428,747,459,000 | 41.069444 | 79 | 0.636844 | false |
pkittenis/parallel-ssh | pssh/__init__.py | 2 | 1434 | # This file is part of parallel-ssh.
#
# Copyright (C) 2014-2020 Panos Kittenis.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation, version 2.1.
#
# This library is distributed in the hope... | lgpl-2.1 | -5,214,494,992,729,634,000 | 35.769231 | 80 | 0.776151 | false |
Kitsune30/PlushieBot | botrunner.py | 2 | 1924 | #!/usr/bin/env python
"""
This file is responsible for setting up the bot's event loop and
passing messages from the network loop into Plushie, which will
be run outside of the loop.
"""
import json
def loadConfig(name="config.json"):
conf = open(name, "r")
return json.loads(conf.read())
if __name__ == "__ma... | gpl-3.0 | 8,691,557,801,914,184,000 | 29.0625 | 117 | 0.626299 | false |
3cky/horus | src/horus/engine/calibration/calibration.py | 1 | 2379 | # -*- coding: utf-8 -*-
# This file is part of the Horus Project
__author__ = 'Jesús Arroyo Torrens <jesus.arroyo@bq.com>'
__copyright__ = 'Copyright (C) 2014-2015 Mundo Reader S.L.'
__license__ = 'GNU General Public License v2 http://www.gnu.org/licenses/gpl2.html'
import cv2
import time
import struct
import platfor... | gpl-2.0 | 4,559,464,497,284,393,500 | 28 | 83 | 0.678722 | false |
XiaodunServerGroup/ddyedx | cms/djangoapps/contentstore/views/component.py | 5 | 14787 | from __future__ import absolute_import
import json
import logging
from collections import defaultdict
from django.http import HttpResponseBadRequest, Http404
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_GET
from django.core.exceptions import PermissionDeni... | agpl-3.0 | 2,971,093,128,451,793,400 | 38.432 | 116 | 0.625617 | false |
Mercy-Nekesa/sokoapp | sokoapp/account/tests/test_views.py | 8 | 1137 | from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client import RequestFactory
from django.utils import unittest
from django.contrib.auth.models import AnonymousUser, User
from account.forms import SignupForm, LoginUsernameForm
from account.views import SignupView, LoginVi... | mit | 8,159,598,525,985,116,000 | 27.425 | 72 | 0.715919 | false |
tgrochow/avango | attic/avango-menu/python/avango/menu/layout/_Proxy.py | 6 | 6858 | # -*- Mode:Python -*-
##########################################################################
# #
# This file is part of AVANGO. #
# ... | lgpl-3.0 | 8,236,212,071,881,372,000 | 42.132075 | 110 | 0.5993 | false |
smallnamespace/fireplace | fireplace/cards/classic/druid.py | 2 | 3423 | from ..utils import *
##
# Hero Powers
# Shapeshift
class CS2_017:
activate = Buff(FRIENDLY_HERO, "CS2_017o"), GainArmor(FRIENDLY_HERO, 1)
CS2_017o = buff(atk=1)
##
# Minions
# Druid of the Claw
class EX1_165:
choose = ("EX1_165a", "EX1_165b")
class EX1_165a:
play = Morph(SELF, "EX1_165t1")
class EX1_165b:
... | agpl-3.0 | -8,973,159,490,829,959,000 | 13.882609 | 72 | 0.663453 | false |
bpwook/auto-cert-kit | autocertkit/tests/test_generators_tests.py | 2 | 1406 | #!/usr/bin/python
import unittest
import unittest_base
import sys
from autocertkit import test_generators, testbase, utils
utils.configure_logging('ack_tests')
def expect_system_exit(func, code='0'):
try:
func()
except SystemExit as exp:
if str(exp) == code:
#Valid System Exit
... | bsd-2-clause | 6,320,447,813,580,953,000 | 30.954545 | 96 | 0.66074 | false |
BoltzmannBrain/NAB | scripts/remove_columns_from_data.py | 11 | 2232 | #! /usr/bin/env python
# ----------------------------------------------------------------------
# Copyright (C) 2014, 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 program is free software: you can re... | agpl-3.0 | 930,847,372,385,787,900 | 31.347826 | 80 | 0.606183 | false |
MERegistro/meregistro | meregistro/apps/validez_nacional/forms/SolicitudControlForm.py | 1 | 3782 | # -*- coding: utf-8 -*-
from django.forms import ModelForm
from django.core.exceptions import ValidationError
from django import forms
from apps.validez_nacional.models import Solicitud, EstadoSolicitud
from django.core.validators import RegexValidator
class SolicitudControlForm(forms.ModelForm):
nro_expediente = ... | bsd-3-clause | -4,026,025,465,375,921,700 | 42.872093 | 137 | 0.630003 | false |
mwiencek/coverart_redirect | coverart_redirect/request.py | 2 | 13164 | #!/usr/bin/env python2
# Copyright (C) 2011 Lukas Lalinsky
# Copyright (C) 2011 Robert Kaye
# Copyright (C) 2012 MetaBrainz Foundation Inc.
#
# 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 ... | mit | -2,145,725,098,755,385,600 | 35.465374 | 101 | 0.591538 | false |
mjhennig/dyn-python | dyn/tm/session.py | 1 | 7099 | # -*- coding: utf-8 -*-
"""This module implements an interface to a DynECT REST Session. It provides
easy access to all other functionality within the dynect library via
methods that return various types of DynECT objects which will provide their
own respective functionality.
"""
# API Libs
from ..core import SessionEn... | bsd-3-clause | -697,895,080,344,219,100 | 39.565714 | 79 | 0.606283 | false |
adrienbrault/home-assistant | tests/components/deconz/test_binary_sensor.py | 3 | 7880 | """deCONZ binary sensor platform tests."""
from unittest.mock import patch
from homeassistant.components.binary_sensor import (
DEVICE_CLASS_MOTION,
DEVICE_CLASS_VIBRATION,
)
from homeassistant.components.deconz.const import (
CONF_ALLOW_CLIP_SENSOR,
CONF_ALLOW_NEW_DEVICES,
CONF_MASTER_GATEWAY,
... | mit | -1,880,502,796,200,050,400 | 33.112554 | 88 | 0.586802 | false |
qjw/grit-i18n | grit/gather/chrome_scaled_image.py | 36 | 4984 | #!/usr/bin/env python
# Copyright (c) 2012 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.
'''Gatherer for <structure type="chrome_scaled_image">.
'''
import os
import struct
from grit import exception
from grit import l... | bsd-2-clause | -4,184,001,744,433,844,700 | 30.745223 | 79 | 0.665128 | false |
nateprewitt/pipenv | pipenv/patched/piptools/resolver.py | 1 | 13314 | # coding: utf-8
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import copy
from functools import partial
from itertools import chain, count
import os
from first import first
from pip.req import InstallRequirement
from . import click
from .cache import Dep... | mit | 3,016,284,588,156,879,400 | 42.227273 | 119 | 0.611687 | false |
thelazier/electrumx | electrumx/server/controller.py | 1 | 5217 | # Copyright (c) 2016-2018, Neil Booth
#
# All rights reserved.
#
# See the file "LICENCE" for information about the copyright
# and warranty status of this software.
from asyncio import Event
from aiorpcx import _version as aiorpcx_version, TaskGroup
import electrumx
from electrumx.lib.server_base import ServerBase
... | mit | 1,183,815,875,403,712,000 | 37.932836 | 82 | 0.636573 | false |
levkar/odoo | doc/_extensions/odoo_ext/__init__.py | 20 | 4834 | # -*- coding: utf-8 -*-
from . import pygments_override
from . import switcher
from . import translator
import sphinx.environment
import sphinx.builders.html
from docutils import nodes
def setup(app):
if getattr(app.config, 'html_translator_class', None):
app.warn("Overriding the explicitly set html_tran... | agpl-3.0 | -8,370,311,682,192,306,000 | 37.365079 | 100 | 0.586057 | false |
aaron-fz/neutron_full_sync | neutron/db/migration/alembic_migrations/versions/1fcfc149aca4_agents_unique_by_type_and_host.py | 2 | 2332 | # Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | 5,061,338,612,604,012,000 | 31.388889 | 78 | 0.73199 | false |
adw0rd/lettuce | tests/integration/lib/Django-1.2.5/django/conf/locale/lv/formats.py | 45 | 1212 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
DATE_FORMAT = r'Y. \g\a\d\a j. F'
TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = r'Y. \g\a\d\a j. F, H:i:s'
YEAR_MONTH_FORMAT = r'Y. \g. F'
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = r'j.m.Y'
SHORT_DATETIME_FORMAT = 'j.m.Y... | gpl-3.0 | -627,263,003,611,197,700 | 32.638889 | 80 | 0.465731 | false |
Crystalnix/BitPop | third_party/PRESUBMIT.py | 18 | 3166 | # 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.
def _CheckThirdPartyReadmesUpdated(input_api, output_api):
"""
Checks to make sure that README.chromium files are properly updated
when dependancie... | bsd-3-clause | -42,974,378,521,117,870 | 40.657895 | 78 | 0.672142 | false |
ryfeus/lambda-packs | pytorch/source/PIL/PcxImagePlugin.py | 4 | 5225 | #
# The Python Imaging Library.
# $Id$
#
# PCX file handling
#
# This format was originally used by ZSoft's popular PaintBrush
# program for the IBM PC. It is also supported by many MS-DOS and
# Windows applications, including the Windows PaintBrush program in
# Windows 3.
#
# history:
# 1995-09-01 fl Created
# 1996... | mit | 5,716,419,842,094,123,000 | 28.189944 | 79 | 0.532249 | false |
fidelram/goatools | tests/test_ncbi_entrez_annotations.py | 1 | 1139 | """Tests downloading and reading of the GO annotation file from NCBI Gene.
python test_NCBI_Entrez_annotations.py
"""
__copyright__ = "Copyright (C) 2016, DV Klopfenstein, H Tang. All rights reserved."
__author__ = "DV Klopfenstein"
import sys
sys.path.insert(0, '..') # Use local version of goatools during t... | bsd-2-clause | 9,110,168,338,861,800,000 | 39.678571 | 92 | 0.67252 | false |
jhamman/xarray | xarray/tests/test_concat.py | 1 | 17771 | from copy import deepcopy
import numpy as np
import pandas as pd
import pytest
from xarray import DataArray, Dataset, Variable, concat
from xarray.core import dtypes, merge
from . import (
InaccessibleArray,
assert_array_equal,
assert_equal,
assert_identical,
raises_regex,
requires_dask,
)
fr... | apache-2.0 | 788,630,126,106,972,000 | 37.299569 | 88 | 0.497721 | false |
varapp/varapp-backend-py | tests/common/test_db_utils.py | 2 | 5302 | #!/usr/bin/env python3
import unittest
import tempfile
from varapp.common.db_utils import *
from tests.test_utils import TempSqliteContext
from varapp.models.users import VariantsDb
from django.core.cache import caches
from django.conf import settings
import django.test
DB_TEST = settings.DB_TEST
TEST_DB_PATH = setti... | gpl-3.0 | -9,086,454,769,957,629,000 | 43.554622 | 108 | 0.639759 | false |
recht/raven-python | conftest.py | 15 | 1983 | from django.conf import settings
import os.path
import sys
collect_ignore = []
if sys.version_info[0] > 2:
if sys.version_info[1] < 3:
collect_ignore.append("tests/contrib/flask")
if sys.version_info[1] == 2:
collect_ignore.append("tests/handlers/logbook")
try:
import gevent
except Import... | bsd-3-clause | -1,481,296,041,407,382,000 | 25.092105 | 96 | 0.571861 | false |
adrienbrault/home-assistant | homeassistant/components/starline/lock.py | 3 | 2454 | """Support for StarLine lock."""
from homeassistant.components.lock import LockEntity
from .account import StarlineAccount, StarlineDevice
from .const import DOMAIN
from .entity import StarlineEntity
async def async_setup_entry(hass, entry, async_add_entities):
"""Set up the StarLine lock."""
account: Starli... | mit | -7,800,679,574,916,673,000 | 33.083333 | 88 | 0.635697 | false |
hpfn/charcoallog | charcoallog/core/tasks.py | 1 | 1381 | import json
from celery.schedules import crontab
from celery.task import periodic_task
from celery.utils.log import get_task_logger
from charcoallog.core.scrap_line3_service import Scrap
LOGGER = get_task_logger(__name__)
@periodic_task(run_every=(crontab(day_of_week='sat', hour='6', minute='0')), name='ibov')
def... | gpl-3.0 | -7,631,259,801,180,332,000 | 27.770833 | 94 | 0.664736 | false |
zzicewind/nova | nova/tests/functional/v3/test_quota_sets.py | 3 | 4056 | # Copyright 2012 Nebula, Inc.
# Copyright 2013 IBM Corp.
#
# 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... | apache-2.0 | -4,196,875,456,471,410,700 | 43.086957 | 78 | 0.596893 | false |
mapnik/python-mapnik | test/python_tests/query_test.py | 5 | 1191 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from nose.tools import assert_almost_equal, eq_, raises
import mapnik
from .utilities import execution_path, run_all
def setup():
# All of the paths used are relative, if we run the tests
# from another directory we need to chdir()
os.chdir(execu... | lgpl-2.1 | 562,716,411,170,329,800 | 26.068182 | 66 | 0.643157 | false |
aschem/django-oauth2-provider | provider/forms.py | 19 | 2003 | from django import forms
class OAuthValidationError(Exception):
"""
Exception to throw inside :class:`OAuthForm` if any OAuth2 related errors
are encountered such as invalid grant type, invalid client, etc.
:attr:`OAuthValidationError` expects a dictionary outlining the OAuth error
as its first a... | mit | 7,349,883,307,268,279,000 | 30.296875 | 79 | 0.59311 | false |
googlefonts/pyfontaine | fontaine/charsets/noto_glyphs/notosanscham_bold.py | 2 | 5252 | # -*- coding: utf-8 -*-
class Charset(object):
common_name = 'NotoSansCham-Bold'
native_name = ''
def glyphs(self):
glyphs = []
glyphs.append(0x0062) #uniAA47
glyphs.append(0x0061) #uniAA46
glyphs.append(0x0060) #uniAA45
glyphs.append(0x005F) #uniAA44
g... | gpl-3.0 | 4,147,140,363,947,543,600 | 36.784173 | 48 | 0.621668 | false |
suthat/signal | vendor/python-pika/pika/adapters/select_connection.py | 1 | 17729 | """A connection adapter that tries to use the best polling method for the
platform pika is running on.
"""
import logging
import select
import time
from pika.adapters.base_connection import BaseConnection
LOGGER = logging.getLogger(__name__)
# One of select, epoll, kqueue or poll
SELECT_TYPE = None
# Use epoll's c... | apache-2.0 | 8,215,737,278,400,817,000 | 35.479424 | 92 | 0.580292 | false |
pielco11/SSMA | src/check_strings.py | 1 | 1603 | import re
from urllib.parse import urlparse
import subprocess
from ext.validate_email import validate_email
def is_ip(list_of_strings):
ipv4_pattern = re.compile(
r'((([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])[ (\[]?(\.|dot)[ )\]]?){3}([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5]))')
f = filter(ipv4_pattern.mat... | gpl-3.0 | 6,308,179,758,019,002,000 | 25.716667 | 117 | 0.582658 | false |
erjohnso/ansible | lib/ansible/modules/cloud/google/gce_instance_template.py | 25 | 19327 | #!/usr/bin/python
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | -7,024,969,347,054,968,000 | 31.15807 | 121 | 0.621876 | false |
marshall/pynaries | boto/sqs/20070501/attributes.py | 4 | 1692 | # Copyright (c) 2006,2007 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 | -8,496,367,427,503,007,000 | 36.6 | 74 | 0.698582 | false |
sis-tools/dcos-cli | cli/dcoscli/package/main.py | 1 | 15688 | import json
import os
import sys
import dcoscli
import docopt
import pkg_resources
from dcos import (cmds, config, cosmospackage, emitting, http, options,
package, subcommand, util)
from dcos.errors import DCOSException
from dcoscli import tables
from dcoscli.subcommand import default_command_info, d... | apache-2.0 | 134,499,011,768,055,400 | 27.838235 | 79 | 0.592746 | false |
bekkblando/tiy-project | bitcoin_trade/bitcoin_trade/settings.py | 3 | 2818 | """
Django settings for bitcoin_trade project.
Generated by 'django-admin startproject' using Django 1.8.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Buil... | gpl-3.0 | 8,422,239,715,180,067,000 | 24.853211 | 71 | 0.69269 | false |
puzan/ansible | lib/ansible/modules/cloud/vmware/vmware_migrate_vmk.py | 16 | 7350 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Joseph Callen <jcallen () csc.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 Li... | gpl-3.0 | 1,850,279,646,499,068,700 | 35.75 | 86 | 0.641497 | false |
ryanpitts/source | source/code/management/commands/update_code_github_stats.py | 3 | 1102 | '''
Uses the GitHub API to update stats for Code repos.
'''
from datetime import datetime
import logging
from django.conf import settings
from django.core.management.base import BaseCommand
from source.code.models import Code
logging.basicConfig(filename='github_code_update.log', filemode='w', level=logging.INFO)
c... | bsd-3-clause | 2,206,167,173,367,649,800 | 32.393939 | 88 | 0.631579 | false |
nghia-huynh/gem5-stable | src/python/m5/util/code_formatter.py | 84 | 10029 | # Copyright (c) 2006-2009 Nathan Binkert <nate@binkert.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this list of ... | bsd-3-clause | 7,644,887,698,632,557,000 | 30.838095 | 79 | 0.536843 | false |
willkg/ernest | manage.py | 1 | 4346 | #!/usr/bin/env python
import subprocess
import sys
from flask.ext.script import Manager
from prettytable import PrettyTable
from sqlalchemy.exc import IntegrityError, OperationalError, ProgrammingError
from sqlalchemy.orm.exc import NoResultFound
from ernest.main import app, db, Project, ProjectAdmin, Sprint
manage... | mpl-2.0 | -3,801,344,768,341,145,600 | 27.405229 | 94 | 0.647492 | false |
sdague/home-assistant | homeassistant/components/logi_circle/__init__.py | 7 | 7167 | """Support for Logi Circle devices."""
import asyncio
from aiohttp.client_exceptions import ClientResponseError
import async_timeout
from logi_circle import LogiCircle
from logi_circle.exception import AuthorizationFailed
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components.... | apache-2.0 | 2,418,639,677,263,449,600 | 29.892241 | 92 | 0.652295 | false |
tectronics/video4fuze | vthumb.py | 6 | 7003 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Video Thumbnail Extractor
#
# Requirements:
# PIL 1.1.6 or later: http://www.pythonware.com/products/pil/index.htm
# FFMPEG: http://ffmpeg.mplayerhq.hu/download.html
#
# @author Vadim Zaliva <lord@crocodile.org>
#
# Adapted for video4fuze by Adrián Cereto <ssorgatem@gmail... | gpl-3.0 | 2,311,638,215,954,348,500 | 33.835821 | 150 | 0.598829 | false |
lionelz/networking-bambuk | networking_bambuk/agent/df/df_agent_db.py | 1 | 3779 | import subprocess
import traceback
from networking_bambuk.common import config
from networking_bambuk.common.config import timefunc
from networking_bambuk.rpc import bambuk_rpc
from oslo_log import log
LOG = log.getLogger(__name__)
class AgentDbDriver(bambuk_rpc.BambukRpc):
"""Bambuk Agent DB Driver for Drago... | apache-2.0 | -2,110,669,059,384,875,000 | 32.149123 | 77 | 0.470495 | false |
oxff/pyelftools | elftools/common/utils.py | 1 | 3089 | #-------------------------------------------------------------------------------
# elftools: common/utils.py
#
# Miscellaneous utilities for elftools
#
# Eli Bendersky (eliben@gmail.com)
# This code is in the public domain
#-------------------------------------------------------------------------------
from contextlib ... | unlicense | -8,129,576,511,536,079,000 | 31.177083 | 80 | 0.606021 | false |
rkmaddox/mne-python | mne/datasets/hf_sef/hf_sef.py | 7 | 3654 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Authors: Jussi Nurminen <jnu@iki.fi>
# License: BSD Style.
import tarfile
import os.path as op
import os
from ...utils import _fetch_file, verbose, _check_option
from ..utils import _get_path, logger, _do_path_update
@verbose
def data_path(dataset='evoked', path=None... | bsd-3-clause | -6,707,891,812,357,180,000 | 35.54 | 76 | 0.593049 | false |
mjayfrancis/SpiceServerGLib | proxy.py | 1 | 12130 | #!/usr/bin/env python3
import argparse
import cairo
import ctypes
import gi
import re
import sys
import time
from builtins import str
assert cairo.version_info > (1,11,0)
gi.require_version('SpiceClientGLib', '2.0')
gi.require_version('SpiceServerGLib', '0.1')
from gi.repository import GLib
from gi.repository impor... | lgpl-2.1 | -1,818,053,228,727,047,400 | 44.430712 | 127 | 0.602721 | false |
f0x11/Merak | spider/hot_word.py | 1 | 1340 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
from bs4 import BeautifulSoup
from tornado import gen
from tornado.httpclient import AsyncHTTPClient
from data.models import HotWord
from data.session_mysql import SessionCM
__author__ = 'f0x11'
headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Inte... | mit | -4,471,080,613,434,884,000 | 26.916667 | 93 | 0.604478 | false |
0Chencc/CTFCrackTools | Lib/test/test_pythoninterpreter_jy.py | 10 | 12605 | # -*- coding: utf-8 -*-
import java.io
import os
import sys
import traceback
import types
import unittest
import test.test_support
from org.python.core.util import StringUtil
from org.python.core import PyFile
from _codecs import encode
from sun.awt.image import BufImgVolatileSurfaceManager
def exec_code_in_pi(source... | gpl-3.0 | 458,312,501,501,467,100 | 35.621701 | 274 | 0.598014 | false |
nyluntu/python-django-docker-example | polls/migrations/0001_initial.py | 1 | 1230 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-27 10:18
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | mit | -8,454,966,137,403,785,000 | 31.368421 | 114 | 0.569919 | false |
inasafe/inasafe | safe/metadata35/__init__.py | 8 | 1063 | # -*- coding: utf-8 -*-
"""
InaSAFE Disaster risk assessment tool developed by AusAid -
**metadata module.**
Contact : ole.moller.nielsen@gmail.com
.. note:: 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 Sof... | gpl-3.0 | -95,755,060,704,206,320 | 38.37037 | 79 | 0.762935 | 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.