repo_name stringlengths 8 92 | path stringlengths 5 221 | copies stringclasses 10
values | size stringlengths 4 6 | content stringlengths 974 828k | license stringclasses 15
values | hash int64 -9,212,977,344,346,658,000 9,220,224,517B | line_mean float64 8.67 91.6 | line_max int64 15 966 | alpha_frac float64 0.29 0.86 | autogenerated bool 1
class | nl_text stringlengths 0 164k | nl_size int64 0 164k | nl_language stringclasses 17
values | nl_language_score float64 0.04 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | !/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. Start nodes with -regtestshieldcoinbase to set fCoinbaseMustBeShielded to true. Send 10... | 842 | en | 0.823874 |
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 | -*- coding: utf-8 -*- | 21 | en | 0.767281 |
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 | 0 | en | 0.110449 | |
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 | To avoid duplicating Revert priorities | 38 | en | 0.830233 |
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 | 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 possible
for features which ar... | 1,505 | en | 0.885812 |
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 | Validation of a Euro banknote id
Validation of an IBAN (international bankaccount number)
Validation of an ISBN (international Standard Book Number)
Validation of an ISBN (international Standard Book Number) in ISBN-10 format
Validation of an ISBN (international Standard Book Number) in ISBN-13 format
Extracted from ... | 467 | en | 0.543956 |
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 | Get shell invoked via an interpreter.
Some shells are implemented on, and invoked with an interpreter, e.g. xonsh
is commonly executed with an executable Python script. This detects what
script the interpreter is actually running, and check whether that looks
like a shell.
See sarugaku/shellingham#26 for rational.
Fo... | 859 | en | 0.886511 |
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 | The only variable exported from this module. | 44 | en | 0.685509 |
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 | !/usr/bin/python -*- coding: utf-8 -*-d['duration'] = str_duration_to_int(data['end']) - str_duration_to_int(data['start']) | 123 | en | 0.449512 |
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 | runs count time the executable and aggregates the informations in executable_profile.xml. The single profile outputs are saved as profile+iter.xmlreturn the nested dot graphs in code style (one for each function)returns the graphs to be visualized and the object graphs in flow style (one for each function)creates the f... | 1,512 | en | 0.837899 |
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 | Test file created by XlsxWriter against a file created by Excel.
Test writing special numbers.
Test writing special numbers.
Test writing special numbers.
Tests for XlsxWriter. Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org | 238 | en | 0.897419 |
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 | @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)
-*-coding:utf-8-*- in this test we are quite trusty and just call all known command args and try to trigger arg-based exceptions. Th... | 887 | en | 0.895129 |
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 | 0 | en | 0.110449 | |
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 | 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 return a list... | 741 | en | 0.872061 |
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 | Examples: url(r'^$', 'smbackend.views.home', name='home'), url(r'^blog/', include('blog.urls')), url(r'^', include(v1_api.urls)), url(r'^admin/', include(admin.site.urls)), | 172 | en | 0.384031 |
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 | -*- coding: utf-8 -*- 1st-run initialisation Set settings.base.prepopulate to 0 in Production (to save 1x DAL hit every page). The query used here takes 2/3 the time of .count(). ========================================================================= Populate default roles and permissions Allow debug Shortcutsupdate_... | 3,020 | en | 0.677057 |
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 | Obtain distributional features ((2 * K) in number) IMPORTANT: both training and test set must be present in sentences sentences is an array of tokenized sentences (matrix of words, basically) fullSent is the untokenized version M will hold TF-KLD score for each word for each sentence Step 2: Matrix factorizationfactory... | 784 | en | 0.783428 |
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 | -*- 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 school OpenERP module is free software: you can redistribute it and/or modify it under the te... | 942 | en | 0.842594 |
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 | Invalid Separator Error is raised whenever
a invalid separator is set for joining query strings
in a url
Build a request object to use for testing
:param params: list of tuples containing the name and value pairs
for parameters to add to the QUERY_STRING
empty case should raise We currently skip the n... | 1,186 | en | 0.79302 |
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 | gRPC AsyncIO backend transport for MigrationService.
A service that migrates resources from automl.googleapis.com,
datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
This class defines the same methods as the primary client, so the
primary client can load the underlying transport implementation
and call ... | 6,651 | en | 0.788275 |
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 | 0 | en | 0.110449 | |
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 | A dictionary that can only have string keys with no overlap.
Add a custom saver to the Iris session.
Args:
* file_extension - A string such as "pp" or "my_format".
* new_saver - A function of the form ``my_saver(cube, target)``.
See also :func:`iris.io.save`
Decodes a single URI into scheme and scheme-s... | 8,159 | en | 0.714698 |
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 | auto-balancing collecting chainlet
auto-balancing copy chainlet
auto-balancing delayed mapping chainlet
auto-balancing filtering chainlet
auto-balancing mapping chainlet
auto-balancing mathing chainlet
auto-balancing ordering chainlet
auto-balancing randomizing chainlet
auto-balancing reducing chainlet
auto-balancing r... | 484 | en | 0.479342 |
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 | Constructs axial position embeddings. Useful for very long input sequences to save memory and time.
A few utilities for nn.Modules in Reformer, to be used as a mixin.
Constructs conventional position embeddings of shape `[max_pos_embeddings, hidden_size]`.
Head for sentence-level classification tasks.
Construct the emb... | 18,501 | en | 0.772309 |
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 | 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, software distribu... | 549 | en | 0.862977 |
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 | !/usr/bin/pythongtk.gdk.threads_init() shm_obj = self.shm_obj size = struct.unpack_from("i", shm_obj.read(4,4*0))[0] x = struct.unpack_from("i", shm_obj.read(4,4*1))[0] y = struct.unpack_from("i", shm_obj.read(4,4*2))[0] width = struct.unpack_from("i", shm_obj.read(4,4*3))[0] height = struct.unpack_from("i", shm_obj.re... | 1,188 | en | 0.263423 |
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 | Initiate Fibaro Controller Class.
Representation of a Fibaro device entity.
Initialize the Fibaro controller.
Initialize the device.
Map device to HA device type.
Handle change report received from the HomeCenter.
Read and process the device list.
Update the state.
Perform an action on the Fibaro HC.
Set the color of F... | 1,796 | en | 0.858491 |
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 | Test class for AMT ManagementInterface
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, sof... | 563 | en | 0.858636 |
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 | Dialog to add new isoline to plot
Dialog to configure axes plot properties
Dialog to configure axes plot properties, label, margins, scales
Dialog to edit plot. This dialog let user change plot p
Dialog for select a special 2D plot
Dialog for configure a 3D plot
Plot widget to show meos plot data, add context menu opti... | 5,543 | en | 0.631416 |
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 | Represents one registered event.
:param string name: Event name
:param function func: Function that acts as event handler
:param priority: Priority for this hook
:return: Event created
:rtype: Event
:raises Exception: If *func* is already registered in an event
Register event to function with a decorator
Trigger an eve... | 882 | en | 0.754717 |
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 | formfield method makes this function be called with value as a dict | 67 | en | 0.973404 |
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 | -*- coding: utf-8 -*- | 21 | en | 0.767281 |
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 | Class that implements the INIT packet format.
http://developer.nordicsemi.com/nRF51_SDK/doc/7.1.0/s110/html/a00065.html
:param init_packet_fields: Dictionary with packet fields
Generates a binary packet from provided init_packet_fields provided in constructor.
This version includes the extended data
:return str: Retur... | 2,457 | en | 0.821941 |
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 | Creates an immutable copy of a given Smalltalk object.
:param interp: The interpreter proxy.
:param s_frame: The stack frame.
:param w_cls: The imutable objects target class.
:param w_obj: The Smalltalk object to produce an immutable copy from.
:returns: An immutable copy of `w_obj` with class `w_cls`.
:raises: Primit... | 1,097 | en | 0.726447 |
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 | !/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 Paths for host executables Supported tests and their corresponding mpy module Code to allow a target MicroPython to import an .mpy from RAM Find supported test Read test ... | 475 | en | 0.667252 |
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 | Django settings for FileManagerHTML project. ('Your Name', 'your_email@example.com'), Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. Or path to database file if using sqlite3. The following settings are not used with sqlite3: Empty for localhost through domain sockets or '127.0.0.1' for localhost through TC... | 3,057 | en | 0.759637 |
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 | 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 even the implie... | 1,037 | en | 0.902925 |
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 | !/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 "License"); you... | 776 | en | 0.87114 |
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 | ACL firewall test
net.SetGateway(a, fw)net.SetGateway(b, fw)net.SetGateway(c, fw)net.SetGateway(d, fw) | 103 | en | 0.378888 |
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 | 0 | en | 0.110449 | |
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 | Returns a list of commands that represent the existing state of the
filesystem
Actually this is a set Used in imports Skipped: UAdd USub Not Invert Add Sub Mult Div FloorDiv Mod Pow LShift RShift BitOr BitXor BitAnd MatMult And Or Eq NotEq Lt Gt GtE Is IsNot In NotIn Index Slice ExtSlice | 295 | en | 0.552353 |
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 | This shows the usage of property decoratorsPython @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 Output: Tim cook Elon Mus... | 443 | en | 0.862391 |
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 | Tests for the timemachine plist plugin.
Sets up the needed objects used throughout the test.
Tests the Process function.
Tests for the timemachine plist plugin.
!/usr/bin/python -*- coding: utf-8 -*- Copyright 2014 The Plaso Project Authors. Please see the AUTHORS file for details on individual authors. Licensed under... | 856 | en | 0.837282 |
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 | !/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 Dufour <http://c... | 1,397 | en | 0.445973 |
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 | Must keep track of the temp dir that pytest creates | 51 | en | 0.946055 |
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 | A list style collection of JSSObjects.
Listing operations retrieve minimal or overview information for most
object types. For example, we may want to see all the Computers on
the JSS but that does not mean we want to do a full object GET for
each one.
QuerySets hold instances of a single type of JSSObject, and use th... | 2,287 | en | 0.856145 |
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 | Authenticate and extract the service catalog.
See what the auth service told us and process the response.
We may get redirected to another site, fail or actually get
back a service catalog with a token and our endpoints.
We have a token, but don't know the final endpoint for
the region. We have to go back to the auth s... | 2,416 | en | 0.875644 |
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 | Unit tests of dnf.Base.
Create a new instance of dnf.transaction.TransactionItem matcher.
Create a new instance of dnf.package.Package matcher.
Test history_undo_operations with a downgrade.
Test history_undo_operations with an unavailable downgrade.
Test history_undo_operations with a not installed downgrade.
Test his... | 1,972 | en | 0.817992 |
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 | doesn't effect shell envself._write_source_file("parsed.20000101.out.gz", data) Rewind the file | 95 | en | 0.746933 |
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 | !/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 version 3 of the Licen... | 777 | en | 0.889745 |
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 | !/usr/bin/env python Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you ... | 1,552 | en | 0.753628 |
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 | -*- coding: UTF-8 -*- Copyright 2014-2019 Rumma & Ko Ltd License: GNU Affero General Public License v3 (see file COPYING for details) | 133 | en | 0.571714 |
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 | Copyright ReportLab Europe Ltd. 2000-2016see license.txt for license detailshistory http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/platypus/__init__.py | 184 | en | 0.560654 |
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 | TODO: Add more unit tests, add unit tests for changing number of active channels. | 81 | en | 0.674277 |
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 | -*- 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! | 181 | en | 0.803569 |
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 | gets titleslink tag cut off after stripping for item... only </link> is theregets linksreturns valid linksgets dates | 116 | en | 0.579262 |
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 | 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 in the hope that... | 851 | en | 0.856658 |
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 | Get all states csv files aggregate it to a unique file with header
Download and unzip
:return: the target output for this task.
:rtype: object (:py:class:`luigi.target.Target`)
* :py:class:`~.Streams`
:return: list of object (:py:class:`luigi.task.Task`) | 263 | en | 0.510389 |
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 | Provide InputCheckHandler functionality for Gtk dialogs.
If an OK button is provided in the constructor, this class will
handle setting the sensitivity of the button to match the input
check result. A method on_ok_clicked is provided to determine whether
the dialog can be exited, similar to on_back_clicked for spokes.... | 5,821 | en | 0.829006 |
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 | Class implementing the Flash Cookies Manager configuration page.
Constructor
Module function to create the configuration page.
@param dlg reference to the configuration dialog
@return reference to the instantiated page (ConfigurationPageBase)
Public slot to save the Flash Cookies Manager configuration.
Module implemen... | 476 | en | 0.396091 |
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 | Helper for looping (particularly in templates)
Use this like::
for loop, item in looper(seq):
if loop.first:
...
Returns true if this item is the start of a new group,
where groups mean that some attribute has changed. The getter
can be None (the item itself changes), an attribute name like
`... | 1,119 | en | 0.802041 |
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 | Tender Two Stage Bid Financial Documents
Tender Bid Documents List
Tender Bid Document Upload
Tender Bid Document Read
Tender Bid Document Update
Tender Bid Document Update
-*- coding: utf-8 -*- | 206 | en | 0.650881 |
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 | 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 : one of the following chunk ids identifying the chunk
unsigned long LENGTH ... | 845 | en | 0.912054 |
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 | Error codes.
: No layers in this project (loading error?): No converter for this Qgis class.: No converter for this Qgis property: No converter for this Qgis data provider: No converter for this Qgis measurement unit: No converter for this Qgis value: Expression is not supported in CartoCSS: Empty expression: Invalid ... | 468 | en | 0.577951 |
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 | -*- coding: utf-8 -*- Generated by Django 1.11.5 on 2017-12-30 09:19 | 68 | en | 0.651925 |
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 | Listing and filtering actions in an abstract list.
Listing and filtering actions in the abstract list in the display view
Listing and filtering actions in the abstract list in the management view
Return the contribution fields ordered by their position in the abstract form.
Retrieve information needed for the header of... | 650 | en | 0.80919 |
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 | The main function generating the Maple code for the computation of
the Groebner basis given the input variables.
:param vars: A list of variables used in the IntPS-System
:type vars: list
:param basis: The polynomials forming a basis of the IntPS-System. This input will not be checked whether
... | 1,027 | en | 0.482421 |
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 | 0 | en | 0.110449 | |
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 | !/usr/bin/env python Parse command-line arguments Functions Build up average pixel intensities, casting each image as an array of floatsRound values in array and cast as 8-bit integer Main pipeline Get options | 209 | en | 0.694339 |
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 | Test to ensure that we can generate a JWT and it contains 2 separators Setup Tests Run Code to Test Check Results Create a token created 60 seconds ago and expired 30 seconds ago Run Code to Test Setup Test Run Code to Test Check Results Setup Test Run Code To Test Check results | 279 | en | 0.782822 |
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 | 0 | en | 0.110449 | |
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 | Update the descriptive metadata interactively.
Uses values entered by the user. Note that the function keeps recursing
whenever a value is another ``CommentedMap`` or a ``list``. The
function works as passing dictionaries and lists into a function edits
the values in place.
Return (YAML string, error message).
Add ite... | 2,179 | en | 0.750588 |
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 | 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 rights to u... | 1,266 | en | 0.870791 |
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 | Handle GeoJSON output.
Get the data, please.
Return a dict describing how to call this plotter
Go
Period deltas
make sure it is length two for the trick below in SQL optimization Reindex so that most extreme values are first drop 5% most extreme events, too much? Create 9 levels centered on zero | 300 | en | 0.777262 |
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 | 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.
#------------------------------------... | 2,806 | en | 0.635867 |
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 | Join 'xs' with commas.
Command line interface...
Returns a copy of input kernel list with a default value for runtime_compile.
Flatten a list of lists to a list.
Generate prototypes for 2D kernels that will be generated by the old generator.
Generate function to populate the kernel function pool.
Generate a single kern... | 6,560 | en | 0.805485 |
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 | Test assembling a complete Worksheet file.
Test writing a worksheet with strings in cells.
Tests for XlsxWriter. Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org Write some strings. | 194 | en | 0.799202 |
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 | -*- 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), Guilherme Augusto Rutze... | 1,969 | en | 0.514634 |
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 | ################################################################################
# #
# fix_database #
# ... | 3,322 | en | 0.554911 |
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 | CheckVirtualNetworkSubnetUsageOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~azure.mgmt.rdbms.mysql_flexi... | 1,971 | en | 0.516046 |
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 | filter_dot_reverse('1.2.3.4.5') -> '5.4.3.2.1'
Reverses a dotted string
ipversion() -> int
Returns the ip version for which this class is instantiated
Setup the environment | 174 | en | 0.709611 |
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 | version > 0.8.0 Converts time string of format 2013-12-12 23:12:23.122324 to an array similiar to a datetime object File Operations outputdir defined in main options class PalmAcq protocol -------------------- need a reference to our WS-MCU gateway factory to dispatch PubSub events INTERPRETING INCOMING DATA AND CONVER... | 781 | en | 0.724277 |
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 | -*- coding: utf-8 -*- | 21 | en | 0.767281 |
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 | Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> License: BSD 3 clause test that the feature score of the best features Check lasso stability path Load diabetes data and add noisy features Check randomized lasso or with 1 alpha or with many alphas Check randomized sparse logistic regression fit does not modify... | 472 | en | 0.707462 |
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 | commentvideo_name, left, width, top, height, start, time duration, action(1-clapping-2-waving-3-boxing)READ Q FileFor each Fileif filename==str(qFile): continueinit var read dataprint filename,Queryfor each labeldtw scores | 223 | en | 0.52735 |
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 | This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-network-instance - based on the path /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. Each m... | 2,984 | en | 0.568057 |
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 | removed from public versionremoved from public versionremoved from public version | 81 | en | 0.914332 |
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 | Set the add/modify forms The fields to be used in displaying the User model. These override the definitions on the base UserAdmin that reference specific fields on auth.User. Register the new CustomUserAdmin | 207 | en | 0.686309 |
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 | Problem 3.
Author: Lucas David -- <ld492@drexel.edu> | 53 | en | 0.600334 |
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 | !/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 law or agreed to in w... | 610 | en | 0.803957 |
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 | Create an object to lookup GeoIP information regardless of IP version.
:param cache_dir: directory in which to place the GeoIP databases
Check if GeoIP database files exist in cache.
Check if GeoIP databases have been loaded.
Given an IPv4Address or IPv6Address, return a location Coordinate.
:param addr: IPv4Address ... | 1,144 | en | 0.83939 |
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 | !/usr/bin/env pythonkafka_key = str(i).encode() this is hashed to select a partition | 85 | en | 0.510063 |
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 | actions | 7 | en | 0.806656 |
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 | seconds (5 min) Initial request to the installation URL for VSTS OAuth redirect back to Sentry (identity_pipeline_view) User choosing which VSTS Account to use (AccountConfigView) Final step. | 191 | en | 0.716941 |
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 | Helper function for calculating S for the given type of atom
:param num_atoms: number of atoms in the system
:param s_data_extracted: data with all S
:param element_symbol: label for the type of atom
:param temp_s_atom_data: helper array to store S
:param s_atom_data: stores all S for the given type of atom
:param sub... | 7,443 | en | 0.705326 |
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 | ODM Data Types
MdsolQuery action type
Edit/Derivation step types
-*- coding: utf-8 -*- Used only by codelists Note: Missing 2015 additions to edit check step functions. | 170 | en | 0.755572 |
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 | 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, software distributed... | 546 | en | 0.861942 |
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 | Add a subparser for the cleanup subcommand.
Add a subparser for the create subcommand.
Add a subparser for the dbupdate subcommand.
Add a subparser for the drop subcommand.
Add a subparser for the list subcommand.
Add a subparser for the save subcommand.
Return the top level parser.
Run the cleanup subcommand.
Run the ... | 3,514 | en | 0.732515 |
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 | 0 | en | 0.110449 | |
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 | !/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 required by applicable l... | 643 | en | 0.826383 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.