repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
daira/zcash | qa/rpc-tests/wallet_1941.py | 3 | 4053 | #!/usr/bin/env python3
# Copyright (c) 2016 The Zcash developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://www.opensource.org/licenses/mit-license.php .
# This is a regression test for #1941.
from test_framework.test_framework import BitcoinTestFramework
from test_fr... | mit | -6,997,861,232,740,065,000 | 38.349515 | 124 | 0.655564 | false |
loanzen/falcon-resource-factory | tests/test_resource_factory.py | 1 | 4597 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
import falcon
import pytest
from falcon import testing
from falcon.cmd.print_routes import print_routes
from falcon_resource_factory import ResourceFactory
def detail_view(resource, req, res, **kwargs):
res.body = '{... | mit | 248,095,538,347,996,830 | 28.101266 | 77 | 0.644768 | false |
zsommers/bdo_chronicle | bdo_tools/nodes/urls.py | 1 | 1286 | from django.conf.urls import include, url
from django.views.generic import DetailView, ListView, TemplateView
from . import models
kingdoms_patterns = [
url(r'^(?P<pk>[0-9]+)/$', DetailView.as_view(model=models.Kingdom), name='detail'),
url(r'^$', ListView.as_view(model=models.Kingdom), name='list'),
]
terri... | mit | 9,142,507,298,452,070,000 | 37.969697 | 89 | 0.664075 | false |
travistang/late_fyt | proportional.py | 1 | 1578 | import numpy
import random
import sum_tree
class Experience(object):
def __init__(self, memory_size, batch_size, alpha):
self.tree = sum_tree.SumTree(memory_size)
self.memory_size = memory_size
self.batch_size = batch_size
self.alpha = alpha
def add(self, data, priority):
... | mit | 7,641,482,424,519,402,000 | 30.56 | 95 | 0.584918 | false |
jorvis/biocode | gff/convert_genbank_to_gff3.py | 1 | 10340 | #!/usr/bin/env python3
"""
This is a script to convert GenBank flat files to GFF3 format with a specific focus on
initially maintaining as much structural annotation as possible, then expanding into
functional annotation support.
This is not guaranteed to convert all features, but warnings will be printed wherever po... | mit | -5,754,837,827,644,957,000 | 40.693548 | 158 | 0.547872 | false |
jespino/coval | coval/international.py | 1 | 3349 | import string
import re
def isbn(isbn, strict=True):
'''Validation of an ISBN (international Standard Book Number)'''
if not strict:
isbn = isbn.upper()
if isbn[0:4] == 'ISBN':
isbn = isbn[4:]
isbn = isbn.strip().replace("-", "").replace("/", "")
if len(isbn) == 10:
... | bsd-3-clause | 4,280,021,965,208,855,600 | 30.299065 | 86 | 0.533294 | false |
kennethreitz/pipenv | pipenv/vendor/shellingham/posix/__init__.py | 1 | 2843 | import os
import re
from .._core import SHELL_NAMES, ShellDetectionFailure
from . import proc, ps
def _get_process_mapping():
"""Select a way to obtain process information from the system.
* `/proc` is used if supported.
* The system `ps` utility is used as a fallback option.
"""
for impl in (pr... | mit | 1,781,591,116,275,053,000 | 29.569892 | 79 | 0.623285 | false |
MC911-MV-1s2016/lya-compiler-python | lyacompiler/lya_debug_source.py | 1 | 11212 | lya_source_dcl = """
dcl dcl1 int;
dcl dcl2, dcl3, dcl4, dcl5 char;
dcl dcl6, dcl7 int, dcl8 bool;
dcl dcl9 int = 5;
dcl dcl10, dcl11 int = 6;
dcl dcl12 int, dcl13, dcl14 int = 10;
dcl dcl15 int (2:5);
dcl dcl16 char (0:10);
dcl dcl17 bool(10:11);
dcl dcl18 dcl17 (1:2);
dcl d... | bsd-3-clause | -97,219,455,865,958,500 | 16.382946 | 101 | 0.505619 | false |
Vytax/plugin.video.lrt.lt | liblrt.py | 1 | 11756 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import urllib
import urllib2
import sys
import simplejson as json
from StringIO import StringIO
import gzip
from HTMLParser import HTMLParser
htmlParser = HTMLParser()
LRT_URL = 'http://www.lrt.lt/'
VIDEOS_COUNT_PER_PAGE = 100
LATEST_NEWS_URL = LRT_URL + 'data-s... | gpl-2.0 | 9,193,241,455,403,997,000 | 24.171306 | 151 | 0.583581 | false |
filippobrizzi/soma | graph_sched/graphCreator.py | 1 | 5395 | import sys
import pargraph as par
import copy
import schedule as sched
import profiler as pro
import time
import multiprocessing
import itertools
import random
import threading
""" Usage: call with <filename> <pragma_xml_file> <executable_name> <profiling_interations> True/False (for output) """
if __name__ == "__... | gpl-3.0 | -2,984,676,818,941,451,300 | 27.544974 | 206 | 0.704912 | false |
jkyeung/XlsxWriter | xlsxwriter/test/comparison/test_types07.py | 1 | 2093 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | bsd-2-clause | -7,666,676,698,832,765,000 | 28.478873 | 101 | 0.580029 | false |
Byron/pgit | src/python/pgit/tests/cmd/test_submodule.py | 1 | 1935 | #-*-coding:utf-8-*-
"""
@package pgit.tests.cmd.test_submodule
@brief tests for pgit.cmd.submodule
@author Sebastian Thiel
@copyright [GNU Lesser General Public License](https://www.gnu.org/licenses/lgpl.html)
"""
__all__ = []
from bcmd import InputError
from ..lib import with_application
from pgit.tests.lib import ... | lgpl-3.0 | 508,672,822,010,695,230 | 31.79661 | 99 | 0.633592 | false |
DimaWoogy/convex_hull_bst | charts/run.py | 1 | 4349 | from matplotlib import pyplot as plt
from matplotlib.font_manager import FontProperties
from subprocess import call
import random
import sys
import math
from scipy.spatial import ConvexHull
from shapely import geometry
font = FontProperties()
font.set_family('Times New Roman')
font.set_size(12)
def generate_points_o... | mit | -5,708,612,539,971,205,000 | 29.146853 | 78 | 0.597773 | false |
z23han/Wrangling-MongoDB | Lesson_1_Data_Extraction_Fundamentals/parseCSV.py | 1 | 2010 | # Your task is to read the input DATAFILE line by line, and for the first 10 lines (not including the header)
# split each line on "," and then for each line, create a dictionary
# where the key is the header title of the field, and the value is the value of that field in the row.
# The function parse_file should retur... | agpl-3.0 | 410,967,701,874,879,040 | 37.653846 | 216 | 0.602488 | false |
City-of-Helsinki/smbackend | smbackend/urls.py | 1 | 1679 | from django.contrib import admin
from django.urls import include, re_path
from django.utils.translation import gettext_lazy as _
from munigeo.api import all_views as munigeo_views
from rest_framework import routers
from observations.api import views as observations_views
from observations.views import obtain_auth_toke... | agpl-3.0 | 5,467,478,504,102,424,000 | 35.5 | 81 | 0.699226 | false |
code-for-india/sahana_shelter_worldbank | models/zzz_1st_run.py | 1 | 13208 | # -*- coding: utf-8 -*-
# 1st-run initialisation
# Set settings.base.prepopulate to 0 in Production
# (to save 1x DAL hit every page).
pop_list = settings.get_base_prepopulate()
if pop_list == 0:
pop_list = []
else:
table = db[auth.settings.table_group_name]
# The query used here takes 2/3 the time of .co... | mit | -2,316,289,051,526,580,700 | 36.310734 | 103 | 0.552998 | false |
metzzo/Paraphrase_Identification | distribFeat.py | 1 | 3395 | from __future__ import division
import pickle
import numpy
import math
from nltk.tokenize import RegexpTokenizer
from sklearn.decomposition import NMF, TruncatedSVD
import sentenceFeatures
# Obtain distributional features ((2 * K) in number)
# IMPORTANT: both training and test set must be present in sentences
# senten... | gpl-3.0 | -2,220,064,860,507,433,700 | 32.613861 | 75 | 0.599116 | false |
pereerro/schooly | timed_groups/__init__.py | 1 | 1182 | # -*- coding: utf-8 -*-
##############################################################################
#
# school module for OpenERP
# Copyright (C) 2010 Tecnoba S.L. (http://www.tecnoba.com)
# Pere Ramon Erro Mas <pereerro@tecnoba.com> All Rights Reserved.
#
# This file is a part of school module
#
# ... | agpl-3.0 | -1,229,363,716,360,227,000 | 41.214286 | 82 | 0.624365 | false |
rackerlabs/deuce | deuce/tests/test_validation.py | 1 | 21839 | import hashlib
from unittest import TestCase
import uuid
from falcon import request
from stoplight import validate
from stoplight.exceptions import ValidationFailed
from deuce.transport import validation as v
from deuce.transport.wsgi import errors
class MockRequest(object):
pass
class InvalidSeparatorError(E... | apache-2.0 | 3,394,681,553,709,124,600 | 32.444104 | 79 | 0.589587 | false |
googleapis/python-aiplatform | google/cloud/aiplatform_v1beta1/services/migration_service/transports/grpc_asyncio.py | 1 | 13902 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 | -2,154,680,416,297,731,300 | 43.700965 | 102 | 0.630557 | false |
liiight/notifiers | tests/providers/test_mailgun.py | 1 | 2725 | import pytest
import datetime
import time
from email import utils
from notifiers.exceptions import BadArguments
from notifiers.core import FAILURE_STATUS
provider = "mailgun"
class TestMailgun:
def test_mailgun_metadata(self, provider):
assert provider.metadata == {
"base_url": "https://api.m... | mit | -4,442,736,360,810,114,600 | 32.231707 | 86 | 0.519266 | false |
davidnmurray/iris | lib/iris/io/__init__.py | 1 | 15278 | # (C) British Crown Copyright 2010 - 2016, 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,592,605,519,203,370,000 | 34.948235 | 99 | 0.624231 | false |
lcrees/callchain | callchain/lazy_auto/chainlet.py | 1 | 2446 | # -*- coding: utf-8 -*-
'''lazy auto-balancing chainlets'''
from appspace.keys import appifies
from twoq.lazy.mixins import AutoQMixin
from twoq.mixins.filtering import (
FilterMixin, CollectMixin, SetMixin, SliceMixin)
from twoq.mixins.ordering import RandomMixin, OrderMixin
from twoq.mixins.reducing import MathM... | mit | 8,175,919,239,576,136,000 | 23.46 | 76 | 0.754702 | false |
huggingface/pytorch-transformers | src/transformers/models/reformer/modeling_reformer.py | 1 | 110832 | # coding=utf-8
# Copyright 2020 The Trax Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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... | apache-2.0 | -5,121,016,691,501,299,000 | 41.824961 | 220 | 0.61832 | false |
darkfeline/mir.dlsite | setup.py | 1 | 1535 | # Copyright (C) 2016 Allen Li
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | apache-2.0 | 3,668,088,456,833,777,700 | 29.098039 | 74 | 0.636482 | false |
UCSD-PL/kraken | reflex/coq/bench-quark/test/quark/output/output.py | 1 | 6774 | #!/usr/bin/python
import sys
import os
import tempfile
import gobject
import gtk
import socket
import shm
import threading
import time
import struct
import cairo
import array
import cPickle as pickle
import message
import config
#gtk.gdk.threads_init()
def olog(str):
olog_nonl(str + "\n")
def olog_nonl(str):
... | gpl-2.0 | 2,311,913,955,336,338,400 | 35.419355 | 149 | 0.50059 | false |
Cinntax/home-assistant | homeassistant/components/fibaro/__init__.py | 1 | 18019 | """Support for the Fibaro devices."""
import logging
from collections import defaultdict
from typing import Optional
import voluptuous as vol
from homeassistant.const import (
ATTR_ARMED,
ATTR_BATTERY_LEVEL,
CONF_DEVICE_CLASS,
CONF_EXCLUDE,
CONF_ICON,
CONF_PASSWORD,
CONF_URL,
CONF_USERN... | apache-2.0 | 5,719,580,739,145,357,000 | 35.11022 | 87 | 0.568178 | false |
supermari0/ironic | ironic/tests/drivers/amt/test_management.py | 1 | 10486 | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under... | apache-2.0 | -8,218,640,313,690,177,000 | 45.8125 | 79 | 0.612722 | false |
jjgomera/pychemqt | tools/UI_Tables/plot.py | 1 | 72270 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
'''Pychemqt, Chemical Engineering Process simulator
Copyright (C) 2009-2017, Juan José Gómez Romera <jjgomera@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Softwar... | gpl-3.0 | 5,307,471,223,947,510,000 | 39.531127 | 79 | 0.575989 | false |
Flexget/Flexget | flexget/event.py | 1 | 3312 | """
Provides small event framework
"""
from typing import Callable, List, Dict, Any
from loguru import logger
logger = logger.bind(name='event')
class Event:
"""Represents one registered event."""
def __init__(self, name: str, func: Callable, priority: int = 128) -> None:
self.name = name
s... | mit | 3,774,398,002,613,047,300 | 28.571429 | 119 | 0.617452 | false |
initcrash/transdb | transdb/fields.py | 1 | 4827 | from django.db import models
from django.conf import settings
from django.utils.translation import get_language
from django.utils.translation import ugettext as _
from django.utils.encoding import force_unicode, smart_str, smart_unicode
from django.forms.fields import Field
from django.forms import ValidationError
from... | gpl-3.0 | 5,646,233,992,082,309,000 | 34.755556 | 111 | 0.618189 | false |
opennode/nodeconductor-openstack | src/waldur_openstack/openstack_tenant/migrations/0008_backup_schedule.py | 1 | 2253 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import waldur_core.logging.loggers
import django.utils.timezone
import waldur_core.core.fields
import waldur_core.core.validators
class Migration(migrations.Migration):
depen... | mit | 3,486,332,113,417,544,700 | 49.066667 | 206 | 0.640923 | false |
jocelynmass/nrf51 | sdk/nRF51_SDK_9.0.0_2e23562/examples/dfu/experimental/master_control_panel_patch/init_packet.py | 1 | 6654 | # Copyright (c) 2015, Nordic Semiconductor
# 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 cond... | gpl-2.0 | 6,692,166,544,894,411,000 | 45.884892 | 121 | 0.651488 | false |
HPI-SWA-Lab/RSqueak | rsqueakvm/plugins/immutability_plugin.py | 1 | 3782 | """
RSqueak/VM plugin which provides support for immutable objects.
Immutable objects can be created as copy of existing objects
or from a list of arguments. The package `ImmutableObjects`, located in
`/repository`, needs to be loaded in the image.
"""
from rsqueakvm.error import PrimitiveFailedError, UnwrappingError... | bsd-3-clause | 4,435,581,936,282,197,000 | 35.019048 | 76 | 0.705447 | false |
trezor/micropython | tests/run-natmodtests.py | 1 | 5757 | #!/usr/bin/env python3
# This file is part of the MicroPython project, http://micropython.org/
# The MIT License (MIT)
# Copyright (c) 2019 Damien P. George
import os
import subprocess
import sys
import argparse
sys.path.append('../tools')
import pyboard
# Paths for host executables
CPYTHON3 = os.getenv('MICROPY_CP... | mit | -5,604,099,957,010,733,000 | 29.62234 | 105 | 0.565746 | false |
Cowa/Django-FileManager | FileManager/settings.py | 1 | 5489 | # Django settings for FileManagerHTML project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME':... | gpl-2.0 | -9,046,051,876,094,814,000 | 33.740506 | 127 | 0.692476 | false |
Frodox/buildbot | master/buildbot/db/builders.py | 1 | 5881 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | -5,907,836,894,642,851,000 | 37.437908 | 85 | 0.577113 | false |
ssorj/pencil | setup.py | 1 | 1079 | #!/usr/bin/env python3
#
# 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 | -6,843,731,593,604,329,000 | 36.206897 | 62 | 0.728452 | false |
apanda/modeling | tests/examples/ConvertedAclFwTest.py | 1 | 1751 | import components
def ConvertedAclFwTest ():
"""ACL firewall test"""
ctx = components.Context (['a', 'b', 'c', 'd', 'fw'],\
['ip_a', 'ip_b', 'ip_c', 'ip_d', 'ip_f'])
net = components.Network (ctx)
a = components.EndHost(ctx.a, net, ctx)
b = components.EndHost(ctx.b, ne... | bsd-3-clause | -7,122,530,099,745,691,000 | 38.795455 | 71 | 0.475157 | false |
bufke/chat-experiment | chatroom/models.py | 1 | 1963 | from django.db import models
from swampdragon.models import SelfPublishModel
from allauth.account.signals import user_signed_up
from .dragon_serializers import MessageSerializer, ProfileSerializer
class Profile(SelfPublishModel, models.Model):
serializer_class = ProfileSerializer
user = models.OneToOneField('... | agpl-3.0 | -5,963,895,665,154,620,000 | 30.15873 | 76 | 0.683647 | false |
ianb/sheets | sheets/env.py | 1 | 9837 | import os
import ast
import traceback
import time
import sys
import types
import builtins
import collections
import astor
import weakref
from .jsonify import jsonify, jsonify_print, jsonify_print_expr
from .datalayer import Analysis, Execution, FileEdit
from .router import send
from . import stdlib
def now():
retu... | mit | 8,401,066,148,762,453,000 | 29.549689 | 126 | 0.564196 | false |
OmkarPathak/Python-Programs | OOP/P11_Property decorators.py | 1 | 1069 | #This shows the usage of property decorators
#Python @property is one of the built-in decorators. The main purpose of any decorator is to change your class methods or attributes in such a way so that the users neeed not make any additional changes in their code.
#Without property decorators
class BankAccount:
de... | gpl-3.0 | 6,660,911,220,316,598,000 | 27.131579 | 217 | 0.705332 | false |
cvandeplas/plaso | plaso/parsers/plist_plugins/timemachine_test.py | 1 | 2768 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2014 The Plaso Project Authors.
# Please see the AUTHORS file for details on individual authors.
#
# 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 L... | apache-2.0 | 4,823,953,317,189,606,000 | 37.444444 | 79 | 0.731575 | false |
alex-dot/upwdchg | tests/python-tokendata-test.py | 2 | 4266 | #!/usr/bin/env python3
# -*- mode:python; tab-width:4; c-basic-offset:4; intent-tabs-mode:nil; -*-
# ex: filetype=python tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent smartindent
#
# Universal Password Changer (UPwdChg)
# Copyright (C) 2014-2018 Cedric Dufour <http://cedric.dufour.name>
# Author: Cedric Du... | gpl-3.0 | 3,825,925,739,626,083,000 | 37.6 | 125 | 0.63236 | false |
tcmoore3/mbuild | mbuild/tests/test_packing.py | 1 | 6856 | import os
import pytest
import numpy as np
import mbuild as mb
from mbuild.exceptions import MBuildError
from mbuild.tests.base_test import BaseTest
class TestPacking(BaseTest):
def test_fill_box(self, h2o):
filled = mb.fill_box(h2o, n_compounds=50, box=[2, 2, 2, 4, 4, 4])
assert filled.n_partic... | mit | 7,965,127,712,161,682,000 | 44.403974 | 92 | 0.573512 | false |
sheagcraig/python-jss | jss/queryset.py | 1 | 5924 | #!/usr/bin/env python
# Copyright (C) 2014-2017 Shea G Craig
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This ... | gpl-3.0 | -5,587,489,524,983,974,000 | 31.549451 | 103 | 0.603646 | false |
openstack/python-troveclient | troveclient/client.py | 1 | 19150 | # Copyright 2011 OpenStack Foundation
# Copyright 2013 Rackspace Hosting
# Copyright 2013 Hewlett-Packard Development Company, L.P.
# 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 co... | apache-2.0 | 2,275,167,824,754,101,500 | 36.920792 | 78 | 0.542924 | false |
jhdulaney/dnf | tests/test_history_undo.py | 1 | 11440 | # -*- coding: utf-8 -*-
# Copyright (C) 2013-2018 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, or (at your option) any later version.
# This program is distributed ... | gpl-2.0 | -4,553,311,528,763,439,000 | 43.862745 | 96 | 0.657517 | false |
cybergreen-net/etl2 | tests/etl2/etlharness.py | 1 | 2500 | import ETL
import os
import tempfile
import gzip
from io import BytesIO, StringIO
class EtlHarness:
def __init__(self, feed, out_prefix):
root_dir = tempfile.mkdtemp()
self.feed_name = feed
self.out_prefix = out_prefix
self.source_root = os.path.join(root_dir, "raw")
self.so... | gpl-3.0 | -13,470,691,697,173,366 | 38.68254 | 108 | 0.6052 | false |
LuisAlejandro/condiment | condiment/common/fabric/docker.py | 1 | 13369 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Luis Alejandro Martínez Faneyth
#
# This file is part of Condiment.
#
# Condiment 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 ver... | gpl-3.0 | 6,817,259,882,447,641,000 | 28.973094 | 87 | 0.537777 | false |
apache/phoenix | bin/traceserver.py | 2 | 7277 | #!/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 A... | apache-2.0 | 1,508,858,877,130,581,200 | 36.317949 | 129 | 0.639962 | false |
lino-framework/xl | lino_xl/lib/lists/fixtures/demo.py | 1 | 1215 | # -*- coding: UTF-8 -*-
# Copyright 2014-2019 Rumma & Ko Ltd
# License: GNU Affero General Public License v3 (see file COPYING for details)
from lino.api import dd, rt, _
from lino.utils.mldbc import babeld
def objects():
ListType = rt.models.lists.ListType
List = rt.models.lists.List
mailing = babeld(... | bsd-2-clause | 5,112,860,678,266,054,000 | 34.735294 | 86 | 0.655967 | false |
EduPepperPDTesting/pepper2013-testing | lms/djangoapps/reportlab/platypus/__init__.py | 1 | 1215 | #Copyright ReportLab Europe Ltd. 2000-2016
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/platypus/__init__.py
__version__='3.3.0'
__doc__='''Page Layout and Typography Using Scripts" - higher-level framework for flowing documents'''
... | agpl-3.0 | 1,924,620,570,826,698,800 | 69.470588 | 109 | 0.750617 | false |
lambertdw/Hantek6022API | PyHT6022Tests/LibUsbScopeTest.py | 1 | 5185 | __author__ = 'Robert Cope'
from unittest import TestCase
from PyHT6022.LibUsbScope import Oscilloscope
from PyHT6022.HantekFirmware import stock_firmware, mod_firmware_01
# TODO: Add more unit tests, add unit tests for changing number of active channels.
class BasicTests(TestCase):
def test_find_device(self):... | gpl-2.0 | -1,547,142,649,452,479,000 | 34.765517 | 83 | 0.630473 | false |
alenz33/elca | elca/res.py | 1 | 4431 | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: Mon Nov 30 13:28:01 2015
# by: The Resource Compiler for PyQt (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x03\x3d\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x... | gpl-2.0 | 8,771,687,666,702,133,000 | 46.645161 | 129 | 0.72241 | false |
fro391/Investing | Sentiments/RSS_URL.py | 1 | 1126 | from bs4 import BeautifulSoup
import gethtml
import re
import urlparse
#gets titles
def getURLs (rss):
Titles = []
soup = BeautifulSoup(gethtml.getHtmlText(rss))
for item in soup.findAll('item'):
#link tag cut off after stripping for item... only </link> is there
for i in item.findAll('title... | gpl-2.0 | 7,792,483,381,561,359,000 | 31.171429 | 80 | 0.627886 | false |
bert/geda-gaf | xorn/src/python/geda/xmlread.py | 1 | 30020 | # Copyright (C) 2013-2017 Roland Lutz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed ... | gpl-2.0 | -6,952,313,439,646,739,000 | 37.78553 | 79 | 0.521286 | false |
JoaoCarabetta/bradata | bradata/tse/pipeline.py | 1 | 6105 | import bradata.utils
import bradata.connection
import os
import io
from zipfile import ZipFile
import pandas as pd
import glob
import yaml
import shutil
import luigi
import luigi.contrib.postgres
def _find_header(data_type, year, path):
with open(path, 'r') as f:
data = yaml.load(f)
a = data[data_ty... | mit | -2,733,309,150,001,114,000 | 27.666667 | 130 | 0.578051 | false |
vathpela/anaconda | pyanaconda/ui/gui/helpers.py | 1 | 13727 | # Abstract base classes for GUI classes
#
# Copyright (C) 2014 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, or (at your option) any later version.
# This program is... | gpl-2.0 | 1,719,857,370,931,019,000 | 35.703209 | 95 | 0.660523 | false |
testmana2/test | Preferences/ConfigurationPages/HelpFlashCookieManagerPage.py | 1 | 2201 | # -*- coding: utf-8 -*-
# Copyright (c) 2015 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing the Flash Cookies Manager configuration page.
"""
from __future__ import unicode_literals
from E5Gui.E5PathPicker import E5PathPickerModes
from .ConfigurationPageBase import ConfigurationPageBase
from... | gpl-3.0 | 7,723,948,479,234,742,000 | 31.850746 | 73 | 0.6597 | false |
OlexandrI/pyside | paste/util/looper.py | 1 | 4017 | """
Helper for looping over sequences, particular in templates.
Often in a loop in a template it's handy to know what's next up,
previously up, if this is the first or last item in the sequence, etc.
These can be awkward to manage in a normal Python loop, but using the
looper you can get a better sense of the context.... | lgpl-3.0 | -7,224,671,793,880,922,000 | 25.254902 | 74 | 0.550411 | false |
rialto-px/openprocurement.tender.twostage | openprocurement/tender/twostage/views/bid_document.py | 1 | 13476 | # -*- coding: utf-8 -*-
from openprocurement.api.models import get_now
from openprocurement.api.utils import (
get_file,
save_tender,
upload_file,
apply_patch,
update_file_content_type,
opresource,
json_view,
context_unpack,
)
from openprocurement.api.validation import (
validate_fil... | apache-2.0 | 8,687,690,805,947,830,000 | 64.736585 | 256 | 0.65279 | false |
lamogui/ogre_blender_importer | OgreMeshFileFormat.py | 1 | 2168 | from enum import IntEnum;
class OgreMeshChunkID(IntEnum):
"""
Definition of the OGRE .mesh file format
.mesh files are binary files (for read efficiency at runtime) and are arranged into chunks
of data, very like 3D Studio's format.
A chunk always consists of:
unsigned short CHUNK_ID ... | mit | 5,566,725,582,043,546,000 | 37.035088 | 106 | 0.674815 | false |
gbd-consult/CartoCSS-Export | CartoCSSExport/ce/error.py | 1 | 1066 | """Error codes."""
#: No layers in this project (loading error?)
EMPTY_PROJECT = 'EMPTY_PROJECT'
#: No converter for this Qgis class.
CLASS_NOT_IMPLEMENTED = 'CLASS_NOT_IMPLEMENTED'
#: No converter for this Qgis property
PROP_NOT_IMPLEMENTED = 'PROP_NOT_IMPLEMENTED'
#: No converter for this Qgis data provider
DATA_... | gpl-2.0 | 356,750,921,144,582,340 | 25.65 | 68 | 0.763602 | false |
wolfbeacon/wolfbeacon-core-api | api/migrations/0008_auto_20171230_0919.py | 1 | 2732 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-12-30 09:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0007_mentor_organizer_volunteer'),
]
operations = [
migrations.Alter... | gpl-3.0 | -4,158,574,478,643,937,000 | 29.355556 | 63 | 0.528917 | false |
mic4ael/indico | indico/modules/events/abstracts/lists.py | 1 | 12697 | # This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
from collections import OrderedDict
from operator import attrgett... | mit | -2,068,415,674,711,308,500 | 47.277567 | 118 | 0.579349 | false |
symbolicdata/code | src/sdeval/classes/templates/comp/GB_Z_lp/Maple/template.py | 1 | 1407 | """
This is the template for the computation problem of computing a Groebner basis of an ideal
generated by a finite set of polynomials with integer coefficients (commutative). It creates
code for the computer algebra system Maple.
.. moduleauthor:: Albert Heinle <albert.heinle@rwth-aachen.de>
"""
#------------------... | gpl-3.0 | 8,111,292,419,854,983,000 | 35.076923 | 116 | 0.518834 | false |
schinmayee/metric-learning | losses.py | 1 | 1953 | import torch
import torch.nn as nn
import torch.nn.functional as F
def SimpleHingeLoss(dista, distb, distc, target, margin, hard_triplet=False):
if hard_triplet:
dist_neg = torch.cat([distb, distc], dim=1)
dist_neg = torch.min(dist_neg, dim=1)[0]
else:
dist_neg = distb
return nn.Mar... | mit | -4,633,895,436,246,591,000 | 37.294118 | 112 | 0.65745 | false |
AntonSax/plantcv | utils/util-avg_background_img.py | 1 | 1578 | #!/usr/bin/env python
import argparse
import numpy as np
import sys, os
from os import listdir
import plantcv as pcv
import datetime
### Parse command-line arguments
def options():
parser = argparse.ArgumentParser(description="Get images from an SQLite database and some input information")
parser.add_argument("-d... | mit | 1,587,402,601,414,127,600 | 22.924242 | 111 | 0.652725 | false |
digibodies/auth_core | tests/api_tests/test_access_token.py | 1 | 7722 | import mock
import datetime
from tests import TestCaseBase
from auth_core.internal.entities import AuthUserEntity, AuthUserMethodEntity
from auth_core.models import AuthUser
from auth_core.appengine_tools import get_resource_id_from_key
from auth_core.api import access_tokens as access_tokens_api
from auth_core.error... | mit | -8,616,054,429,391,284 | 43.37931 | 116 | 0.604766 | false |
tatyankaZSGX/addressbook | fixture/application.py | 1 | 1228 | __author__ = 'ZSGX'
from selenium import webdriver
from fixture.Session import SessionHelper
from fixture.group import GroupHelper
from fixture.contact import ContactHelper
class Application:
def __init__(self, browser, homeurl):
if browser == "firefox":
self.wd = webdriver.Firefox()
... | apache-2.0 | -6,081,401,815,482,364,000 | 27.581395 | 70 | 0.588762 | false |
jic-dtool/dtool-create | dtool_create/dataset.py | 1 | 18296 | """Commands for creating datasets."""
import sys
import os
import getpass
import datetime
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
import click
import dtoolcore
import dtoolcore.storagebroker
import dtoolcore.utils
from ruamel.yaml import YAML
from ruamel.yaml.comments ... | mit | 8,100,220,894,942,859,000 | 30.328767 | 109 | 0.618878 | false |
LCAV/pyroomacoustics | pyroomacoustics/tests/tests_libroom/test_wall_side_reflect.py | 1 | 5375 | # Test of Wall reflection side test
# Copyright (C) 2019 Robin Scheibler, Cyril Cadoux
#
# 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... | mit | -4,107,866,286,093,832,700 | 25.608911 | 80 | 0.513302 | false |
akrherz/iem | htdocs/plotting/auto/scripts100/p151.py | 1 | 13587 | """Period deltas"""
import datetime
from collections import OrderedDict
from geopandas import read_postgis
import numpy as np
from pyiem.plot import MapPlot, centered_bins, get_cmap
from pyiem.util import get_autoplot_context, get_dbconn
from pyiem.exceptions import NoDataFound
PDICT = {
"state": "State Level Map... | mit | -7,669,432,662,049,230,000 | 31.120567 | 79 | 0.524693 | false |
zprpa-ca/last.fm | 03.artist-correlation.py | 1 | 8514 | #!/usr/bin/env python
''' Calculate the correlation between the artists. Intermediate datasets are
saved in the HDF5 file and the final dataset is saved in the database as
well. The artist correlation matrix is saved only for the single
selected artist, used in the final step for the similarity comparison.... | gpl-3.0 | -9,014,966,826,731,524,000 | 42.218274 | 115 | 0.592436 | false |
ROCmSoftwarePlatform/rocFFT | library/src/device/kernel-generator.py | 1 | 39884 | #!/usr/bin/env python3
"""rocFFT kernel generator.
Currently this acts as a shim between CMake and the C++ kernel generator.
It accept two sub-commands:
1. list - lists files that will be generated
2. generate - pass arguments down to the old generator
Note that 'small' kernels don't decompose their lengths.
"""
i... | mit | -6,375,603,604,371,238,000 | 40.159959 | 219 | 0.570605 | false |
jkyeung/XlsxWriter | xlsxwriter/test/worksheet/test_worksheet05.py | 1 | 2213 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ..helperfunctions import _xml_to_list
from ...worksheet import Worksheet
from ...shareds... | bsd-2-clause | -873,628,103,883,006,600 | 32.029851 | 171 | 0.474469 | false |
erggo/Harpy | harpia/bpGUI/sum.py | 1 | 5658 | # -*- coding: utf-8 -*-
# [HARPIA PROJECT]
#
#
# S2i - Intelligent Industrial Systems
# DAS - Automation and Systems Department
# UFSC - Federal University of Santa Catarina
# Copyright: 2006 - 2007 Luis Carlos Dill Junges (lcdjunges@yahoo.com.br), Clovis Peruchi Scotti (scotti@ieee.org),
# Guilh... | gpl-3.0 | -8,235,328,954,891,495,000 | 32.678571 | 139 | 0.567515 | false |
wdbm/abstraction | fix_database.py | 1 | 7300 | #!/usr/bin/env python
"""
################################################################################
# #
# fix_database #
# ... | gpl-3.0 | 9,110,137,506,986,018,000 | 39.782123 | 81 | 0.499178 | false |
Azure/azure-sdk-for-python | sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/operations/_check_virtual_network_subnet_usage_operations.py | 1 | 5283 | # 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 | -119,604,675,933,735,000 | 47.916667 | 168 | 0.680863 | false |
nlm/netgen | netgen/templateutils.py | 1 | 3361 | from colors import color
from functools import partial
from jinja2.exceptions import TemplateRuntimeError
import math
from math import log, ceil
from six.moves import xrange
class TemplateUtils(object):
def __init__(self, ipversion):
if ipversion not in (4, 6):
raise ValueError('ipversion must... | gpl-2.0 | 542,898,760,346,410,400 | 29.554545 | 74 | 0.591491 | false |
leonro/magpy-git | magpy/acquisition/palmacqprotocol.py | 1 | 11090 | import sys, time, os, socket
import struct, binascii, re, csv
from datetime import datetime, timedelta
from twisted.protocols.basic import LineReceiver
from twisted.internet import reactor
from twisted.python import usage, log
from twisted.internet.serialport import SerialPort
from twisted.web.server import Site
from ... | gpl-3.0 | 7,457,627,093,789,535,000 | 38.049296 | 201 | 0.533724 | false |
deplicate/deplicate | duplicate/utils/fs/osx.py | 1 | 1187 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from ..init import compilecards
from .common import fsdecode
from .posix import has_hidden_attribute as _has_hidden_attribute
from .posix import has_archive_attribute, is_archived
WILDCARDS = (
'*.DS_Store', '.AppleDouble', '.LSOverride', 'Icon', '.... | mit | 7,296,047,325,512,074,000 | 26.604651 | 71 | 0.676495 | false |
DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/sklearn/linear_model/tests/test_randomized_l1.py | 1 | 4733 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# License: BSD 3 clause
import numpy as np
from scipy import sparse
from sklearn.datasets import load_diabetes, load_iris
from sklearn.feature_selection import f_regression, f_classif
from sklearn.linear_model.base import _preprocess_data
from sklearn.linear_... | mit | 1,920,787,194,317,546,000 | 36.267717 | 77 | 0.594971 | false |
abilng/Mtech-proj-scripts | Others/testDTW.py | 1 | 5762 | import numpy as np
from collections import Counter
from numpy import array, zeros, argmin, inf
from numpy.linalg import norm
import sys,argparse
DATA_PATH='/others/abilng/Database/MSR2-abil/test/data_out/'
GroundTruthFile="/others/abilng/Database/MSR2-abil/Videos/groundtruth.txt";
PrintProgress=True
def dtw(x, y, di... | apache-2.0 | 1,400,461,167,598,897,200 | 22.140562 | 100 | 0.618709 | false |
napalm-automation/napalm-yang | napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_ipv4_reachability/prefixes/prefix/subTLVs/subTLVs_/prefix_sid/sid/__init__.py | 1 | 12694 | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | apache-2.0 | 1,686,331,334,871,978,000 | 37.12012 | 375 | 0.576178 | false |
jakebas/homepage | routes.py | 1 | 1408 | from flask import Flask, render_template, request
from forms import ContactForm
from flask.ext.mail import Message, Mail
mail = Mail()
app = Flask(__name__)
app.secret_key = #removed from public version
app.config['MAIL_SERVER'] = "smtp.gmail.com"
app.config['MAIL_PORT'] = 465
app.config['MAIL_USE_SSL'] = True
app.... | mit | -5,081,545,841,456,852,000 | 24.6 | 104 | 0.667614 | false |
patpatpatpatpat/stormpath-django | django_stormpath/admin.py | 1 | 1326 | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import StormpathUser
from .forms import StormpathUserCreationForm, StormpathUserChangeForm
class StormpathUserAdmin(UserAdmin):
# Set the add/modify forms
add_form = StormpathUserCreationForm
form = StormpathUse... | apache-2.0 | 1,799,797,049,859,641,000 | 40.4375 | 90 | 0.6546 | false |
Comp-UFSCar/neural-networks-2 | tasks/assignment-1/p3.py | 1 | 1933 | """Problem 3.
Author: Lucas David -- <ld492@drexel.edu>
"""
import multiprocessing
from mpl_toolkits.mplot3d import Axes3D
from scipy.io import loadmat
from sklearn.model_selection import GridSearchCV
from sklearn.neural_network.multilayer_perceptron import MLPRegressor
from sklearn.pipeline import Pipeline
from a... | mit | -4,467,317,084,805,600,000 | 22.011905 | 77 | 0.592344 | false |
polyaxon/polyaxon | core/tests/test_polyflow/test_termination/test_termination.py | 1 | 1645 | #!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, 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 ... | apache-2.0 | 6,786,107,716,321,763,000 | 34 | 74 | 0.691793 | false |
jturner314/map_ssh_attempts | map_ssh_attempts/geoip.py | 1 | 4272 | # Copyright (C) 2014 Jim Turner
# This file is part of map_ssh_attempts.
# map_ssh_attempts is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 2 of the License, or (at your option) any
# later v... | gpl-2.0 | 1,047,337,268,620,959,500 | 37.142857 | 114 | 0.61868 | false |
sbustreamspot/sbustreamspot-cdm | test_kafka_vm.py | 1 | 2510 | #!/usr/bin/env python
import argparse
from constants import *
import json
import pdb
from pykafka import KafkaClient
from pykafka.exceptions import OffsetOutOfRangeError, RequestTimedOut
from pykafka.partitioners import HashingPartitioner
import sys
from tc.schema.serialization import Utils
from tc.schema.serializatio... | apache-2.0 | 5,254,498,871,606,089,000 | 30.375 | 98 | 0.686853 | false |
aclowes/yawn | yawn/task/serializers.py | 1 | 2485 | from rest_framework import serializers
from yawn.task.models import Task, Execution
from yawn.worker.serializers import MessageSerializer, WorkerSerializer
from yawn.workflow.models import Workflow
class SimpleWorkflowSerializer(serializers.ModelSerializer):
name = serializers.CharField(source='name.name', read_... | mit | -2,446,936,753,634,268,000 | 34 | 89 | 0.700604 | false |
ifduyue/sentry | tests/sentry/integrations/vsts/testutils.py | 1 | 33812 | from __future__ import absolute_import
import responses
from six.moves.urllib.parse import urlparse, urlencode, parse_qs
from sentry.integrations.vsts import VstsIntegrationProvider
from sentry.testutils import IntegrationTestCase
class VstsIntegrationTestCase(IntegrationTestCase):
provider = VstsIntegrationPr... | bsd-3-clause | -7,866,642,662,394,803,000 | 43.784106 | 966 | 0.593073 | false |
mganeva/mantid | Framework/PythonInterface/plugins/algorithms/Abins.py | 1 | 40996 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
from __future__ import (absolute_import, divi... | gpl-3.0 | 8,994,032,376,073,273,000 | 47.804762 | 120 | 0.609791 | false |
Oli76/rwslib | rwslib/builder_constants.py | 1 | 6274 | # -*- coding: utf-8 -*-
__author__ = 'isparks'
import enum
class DataType(enum.Enum):
"""ODM Data Types"""
Text = 'text'
Integer = 'integer'
Float = 'float'
Date = 'date'
DateTime = 'datetime'
Time = 'time'
String = 'string' # Used only by codelists
class QueryStatusType(enum.Enum)... | mit | -2,006,527,805,749,792,300 | 27.261261 | 65 | 0.669908 | false |
litong01/python-monasca | kiloeyes/v2/elasticsearch/versions.py | 1 | 1877 | # 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 by applicable law or agreed to in writing, so... | apache-2.0 | -6,706,174,373,474,287,000 | 31.362069 | 75 | 0.595631 | false |
alex-ip/agdc | agdc/testdb.py | 1 | 9300 | #!/usr/bin/env python
#===============================================================================
# Copyright (c) 2014 Geoscience Australia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#... | bsd-3-clause | 2,740,898,887,131,654,000 | 31.978723 | 86 | 0.655161 | false |
goodtune/vitriolic | touchtechnology/news/forms.py | 1 | 1627 | from django import forms
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from modelforms.forms import ModelForm
from touchtechnology.common.forms.mixins import (
BootstrapFormControlMixin, SuperUserSlugMixin,
)
from touchtechnology.news.models import Article, Category, Trans... | bsd-3-clause | 2,439,485,887,015,281,000 | 26.116667 | 79 | 0.564229 | false |
dylanh333/android-unmkbootimg | vendor/android-tools/toolbox/generate-input.h-labels.py | 4 | 2801 | #!/usr/bin/env python
#
# Copyright (C) 2015 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 req... | mit | -6,136,553,381,846,212,000 | 28.177083 | 74 | 0.622992 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.