repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | 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 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kubaszostak/gdal-dragndrop | osgeo/apps/Python27/Lib/rfc822.py | 2 | 34558 | """RFC 2822 message manipulation.
Note: This is only a very rough sketch of a full RFC-822 parser; in particular
the tokenizing of addresses does not adhere to all the quoting rules.
Note: RFC 2822 is a long awaited update to RFC 822. This module should
conform to RFC 2822, and is thus mis-named (it's not wort... | mit | 1,946,531,974,478,585,600 | 32.01378 | 79 | 0.533046 | false | 4.126821 | false | false | false |
ericspod/Eidolon | eidolon/ImageAlgorithms.py | 1 | 35574 | # Eidolon Biomedical Framework
# Copyright (C) 2016-8 Eric Kerfoot, King's College London, all rights reserved
#
# This file is part of Eidolon.
#
# Eidolon 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, eit... | gpl-3.0 | 2,116,245,799,396,315,000 | 36.966916 | 153 | 0.669927 | false | 3.418605 | false | false | false |
voidpp/vcp | vcp/cli_arguments_tree_parser.py | 1 | 1964 |
class Storage(dict):
def __getattr__(self, key):
return self[key]
def __setattr__(self, key, value):
self[key] = value
def __hasattr__(self, key):
return key in self
class CLIArgumentsTreeParser(object):
def __init__(self, config, root_name, parser):
self.parser = p... | mit | 5,132,005,656,610,246,000 | 29.6875 | 75 | 0.52444 | false | 4.08316 | false | false | false |
timpalpant/calibre | src/calibre/ebooks/metadata/tag_mapper.py | 1 | 5803 | #!/usr/bin/env python2
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import (unicode_literals, division, absolute_import,
print_function)
import regex
from collections import deque
REGEX_FLAGS = regex.VERSION1 | regex.WORD | re... | gpl-3.0 | 9,012,120,951,977,764,000 | 34.820988 | 95 | 0.46924 | false | 3.588745 | false | false | false |
amiv-eth/amivapi | amivapi/utils.py | 1 | 10758 | # -*- coding: utf-8 -*-
#
# license: AGPLv3, see LICENSE for details. In addition we strongly encourage
# you to buy us beer if we meet and you like the software.
"""Utilities."""
from base64 import b64encode
from contextlib import contextmanager
from copy import deepcopy
from email.mime.text import MIMEText... | agpl-3.0 | 3,240,022,960,988,052,000 | 32.514019 | 80 | 0.606618 | false | 4.322218 | true | false | false |
brchiu/tensorflow | tensorflow/python/tools/api/generator/doc_srcs.py | 1 | 3893 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -3,609,910,699,973,776,400 | 42.255556 | 80 | 0.703571 | false | 3.783285 | false | false | false |
heilaaks/snippy | tests/test_cli_create_reference.py | 1 | 13607 | # -*- coding: utf-8 -*-
#
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# snippy - software development and maintenance notes manager.
# Copyright 2017-2020 Heikki J. Laaksonen <laaksonen.heikki.j@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU ... | agpl-3.0 | -413,294,892,229,513,860 | 40.233333 | 185 | 0.578526 | false | 3.862333 | true | false | false |
alexholcombe/MOTcircular | experiment_specific/transient_attention/helpersAOHtargetFinalCueLocatn.py | 1 | 31372 | from __future__ import print_function
from __future__ import division
__author__ = """Alex "O." Holcombe""" ## double-quotes will be silently removed, single quotes will be left, eg, O'Connor
import numpy as np
import itertools #to calculate all subsets
from copy import deepcopy
from math import atan, pi, cos, sin, sqr... | mit | 2,057,507,305,768,190,500 | 67.949451 | 252 | 0.710442 | false | 3.636069 | false | false | false |
twilio/twilio-python | tests/integration/trusthub/v1/trust_products/test_trust_products_channel_endpoint_assignment.py | 1 | 8039 | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class TrustProductsChannelEndpo... | mit | -2,089,020,192,557,204,000 | 43.661111 | 220 | 0.606667 | false | 4.723267 | true | false | false |
thaihungle/deepexp | gen-dnc/dual_dnc_dual.py | 1 | 27930 | import tensorflow as tf
from tensorflow.python.ops.rnn_cell import LSTMStateTuple
from memory import Memory
import utility
import os
class Dual_DNC_Dual:
def __init__(self, controller_class, input_size1, input_size2, output_size1, output_size2,
memory_words_num = 256, memory_word_size = 64, memor... | mit | -7,976,692,918,551,946,000 | 44.490228 | 136 | 0.592159 | false | 3.782503 | false | false | false |
jovanpacheco/todo-eureka | eureka/list/migrations/0001_initial.py | 1 | 3538 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-12 18:41
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | gpl-3.0 | 4,283,701,551,172,856,300 | 42.679012 | 181 | 0.562182 | false | 4.395031 | false | false | false |
jjdmol/LOFAR | CEP/PyBDSM/src/python/tc.py | 1 | 21831 | """Defines some basic facilities for handling typed values.
It's quite basic and limited implementation tailored specifically for
use in the PyBDSM user-options and derived properties. For a user
option, one can define a group that is used when listing the options to
the screen. For a property (e.g., flux density), o... | gpl-3.0 | -7,086,226,089,472,376,000 | 29.447699 | 77 | 0.566396 | false | 3.977227 | false | false | false |
mjsauvinen/P4UL | pyLib/analysisTools.py | 1 | 7453 | import numpy as np
import sys
try:
import scipy.stats as st # contains st.entropy
except:
pass
'''
Description:
Author: Mikko Auvinen
mikko.auvinen@helsinki.fi
University of Helsinki &
Finnish Meteorological Institute
'''
# =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
#========... | mit | 199,732,515,015,913,570 | 28.227451 | 105 | 0.522743 | false | 2.88988 | false | false | false |
geoanalytic/gpstracker | geodata/migrations/0002_gpslocation.py | 1 | 1892 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-02 23:39
from __future__ import unicode_literals
import datetime
import django.contrib.gis.db.models.fields
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
... | mit | -8,466,845,147,874,807,000 | 44.047619 | 122 | 0.582452 | false | 4.185841 | false | false | false |
SandStormHoldings/ScratchDocs | jsoncompare.py | 1 | 3768 | from __future__ import print_function
from builtins import object
# reborrowed from https://github.com/monsur/jsoncompare
import json
import sys
import types
TYPE = 'TYPE'
PATH = 'PATH'
VALUE = 'VALUE'
# Borrowed from http://djangosnippets.org/snippets/2247/
# with some modifications.
class Diff(object):
def __init... | mit | 3,032,788,543,684,818,000 | 30.932203 | 86 | 0.613854 | false | 3.630058 | false | false | false |
AndrewPashkin/python-tempo | src/tempo/recurrentevent.py | 1 | 7840 | # coding=utf-8
"""Provides RecurrentEvent class."""
import json
from tempo.timeutils import delta, floor, add_delta
# pylint: disable=unused-import
from tempo.unit import Unit, ORDER, MIN, MAX, BASE, UNITS_MAX
class RecurrentEvent(object):
"""An interval of time expressed in some 'unit' of time
(second, week... | bsd-3-clause | -1,603,930,690,193,616,100 | 33.235808 | 78 | 0.567602 | false | 4.449489 | false | false | false |
ArteliaTelemac/PostTelemac | PostTelemac/meshlayerlibs/tri/tripcolor.py | 1 | 5567 | from __future__ import print_function
from matplotlib.collections import PolyCollection, TriMesh
from matplotlib.colors import Normalize
from matplotlib.tri.triangulation import Triangulation
import numpy as np
def tripcolor(ax, *args, **kwargs):
"""
Create a pseudocolor plot of an unstructured triangular gri... | gpl-3.0 | -3,869,898,329,739,202,000 | 35.149351 | 114 | 0.641997 | false | 3.726238 | false | false | false |
malvim/sublime_text_directional_duplicate_line | directional_duplicate_line.py | 1 | 1168 | import sublime, sublime_plugin
class DirectionalDuplicateLineCommand(sublime_plugin.TextCommand):
"""
Duplicate line/selection before or after the current one. As it turns out,
duplicating "before" just means restoring each selection to the state it was
before duplication.
"""
def ... | mit | 453,797,869,429,773,000 | 36.677419 | 84 | 0.592466 | false | 4.247273 | false | false | false |
alvestrand/old-compare-codecs | lib/x264.py | 1 | 2726 | # Copyright 2014 Google.
#
# 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, softw... | apache-2.0 | 2,607,788,753,778,301,400 | 36.342466 | 79 | 0.632428 | false | 3.749656 | false | false | false |
CursosVNQ/bulkymonkey | bulkymonkey/emailer/forms.py | 1 | 5754 | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit, Layout, Button, Field
from crispy_forms.bootstrap import FormActions
import floppyforms as forms
from .models ... | bsd-3-clause | 2,690,895,334,638,722,000 | 33.872727 | 132 | 0.566562 | false | 4.332831 | false | false | false |
fparrel/vigicrues_tools | riverfromdb.py | 1 | 1424 | import pymongo
from math import sin,cos,atan2,sqrt
c = pymongo.MongoClient()
print('Loading rivers from db...')
rivers = list(c['wwsupdb']['osm'].find({},{'paths':True}))
print('Loaded %d rivers'%len(rivers))
def GeodeticDistGreatCircle(lat1,lon1,lat2,lon2):
"Compute distance between two points of the earth geoid... | gpl-3.0 | 1,259,118,203,142,699,500 | 33.731707 | 87 | 0.597612 | false | 3.157428 | false | false | false |
martinpitt/cockpit | test/common/testlib.py | 1 | 53623 | # -*- coding: utf-8 -*-
# This file is part of Cockpit.
#
# Copyright (C) 2013 Red Hat, Inc.
#
# Cockpit 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 2.1 of the License, or
# (at your... | lgpl-2.1 | -4,625,834,238,252,430,000 | 35.702943 | 196 | 0.561494 | false | 4.138535 | true | false | false |
lmazuel/azure-sdk-for-python | azure-graphrbac/azure/graphrbac/models/user.py | 1 | 4658 | # 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 ... | mit | 579,382,427,022,026,800 | 45.58 | 256 | 0.636539 | false | 3.964255 | false | false | false |
vipints/genomeutils | utils/splice_site_search.py | 1 | 3037 | #!/usr/bin/env python
"""
Count the number of occurrences of a motif in drosophila introns near the splice sites (distance less than 200nt)
The motif is YGCY where at least one Y has to be a T. [TGCC, TGCT, CGCT]
"""
import sys, re
from Bio import SeqIO
def intDB(intron_file):
intdb = dict()
fh = open(intron... | bsd-3-clause | -4,402,855,236,941,474,300 | 34.313953 | 113 | 0.44781 | false | 3.478809 | false | false | false |
bobisjan/django-shanghai | shanghai/mixins/filter.py | 1 | 1400 | import inflection
from shanghai.filters import filter_for
class FilterMixin(object):
def filter_collection(self, collection, **filters):
raise NotImplementedError()
def filter_parameters(self):
filters = dict()
for key, value in self.request.GET.items():
if not key.star... | mit | -2,547,349,877,380,844,500 | 25.923077 | 77 | 0.624286 | false | 4.179104 | false | false | false |
mushorg/conpot | conpot/protocols/kamstrup/meter_protocol/command_responder.py | 1 | 2610 | # Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk>
#
# 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... | gpl-2.0 | -480,567,760,199,887,200 | 38.545455 | 109 | 0.656705 | false | 4.393939 | false | false | false |
PaddlePaddle/Paddle | python/paddle/framework/random.py | 1 | 3423 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | apache-2.0 | -6,691,070,943,448,556,000 | 26.604839 | 129 | 0.644756 | false | 3.966396 | false | false | false |
leighpauls/k2cro4 | native_client/build/test_build.py | 1 | 8322 | #!/usr/bin/python
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from optparse import OptionParser
import os
import subprocess
import sys
NATIVE_CLIENT_DIR = os.path.dirname(os.path.dirname(__... | bsd-3-clause | 1,941,876,719,049,110,500 | 29.708487 | 79 | 0.633261 | false | 3.277668 | false | false | false |
endlessm/chromium-browser | third_party/catapult/dashboard/dashboard/deprecate_tests.py | 1 | 8780 | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Task queue which deprecates TestMetadata and kicks off jobs to delete old
row data when tests stop sending data for an extended period of time.
"""
from _... | bsd-3-clause | 4,137,298,411,665,103,400 | 31.518519 | 80 | 0.70877 | false | 3.528939 | true | false | false |
AntonelliLab/seqcap_processor | bin/aTRAM-master/lib/assemblers/base.py | 1 | 11118 | """Base class for the various assembler wrappers."""
from os.path import basename, exists, getsize, join, splitext, abspath
import datetime
from subprocess import CalledProcessError
from .. import db_atram
from .. import log
from .. import bio
from .. import util
class BaseAssembler: # pylint: disable=too-many-publ... | mit | 9,139,719,403,340,895,000 | 37.470588 | 79 | 0.551538 | false | 4.006486 | false | false | false |
MontpellierRessourcesImagerie/OMX-T | AndorSDK3-remote/AndorSDK3.py | 1 | 9248 | #!/usr/bin/python
##################
# AndorCam.py
#
# Copyright David Baddeley, 2009
# d.baddeley@auckland.ac.nz
#
# 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 Licen... | gpl-3.0 | 2,696,824,594,058,127,400 | 30.246622 | 112 | 0.624243 | false | 3.014342 | false | false | false |
adamfast/django-librarywatch | librarywatch/management/commands/check_for_updates.py | 1 | 1270 | import pip
import xmlrpclib
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
'''
originally based off of:
https://gist.github.com/3555765
which was originally based off of:
http://code.activestate.com/recipes/577708/
'''
class Command(BaseCommand):... | bsd-3-clause | 3,981,747,130,392,024,600 | 35.285714 | 125 | 0.613386 | false | 4.233333 | false | false | false |
chop-dbhi/varify-data-warehouse | vdw/phenotypes/management/subcommands/load.py | 1 | 12588 | import re
import logging
from optparse import make_option
from django.db import transaction, connections, DEFAULT_DB_ALIAS
from django.core.management.base import BaseCommand
from vdw.genes.models import Gene, GenePhenotype
from vdw.literature.models import PubMed
from vdw.phenotypes.models import Phenotype
from vdw.va... | bsd-2-clause | -350,221,737,146,822,850 | 36.688623 | 96 | 0.491976 | false | 4.002544 | false | false | false |
intel-hpdd/intel-manager-for-lustre | chroma_core/lib/storage_plugin/base_resource_attribute.py | 1 | 3894 | # Copyright (c) 2020 DDN. All rights reserved.
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
from chroma_core.models.storage_plugin import StorageResourceAttributeSerialized
class BaseResourceAttribute(object):
"""Base class for declared attributes of Base... | mit | -1,159,394,484,938,782,000 | 39.14433 | 113 | 0.668978 | false | 4.586572 | false | false | false |
segafan/wme1_jankavan_tlc_edition-repo | src/scite/scite/scripts/commandsdoc.py | 1 | 2404 | # -*- coding: utf-8 -*-
from __future__ import with_statement
import os, sys
scintillaDirectory = os.path.join("..", "..", "scintilla", "include")
sys.path.append(scintillaDirectory)
import Face
def cell(s):
return "<td>%s</td>" % s
def faceFeatures(out):
out.write("<h2>Scintilla key commands</h2>\... | mit | -6,977,244,265,334,709,000 | 31.859155 | 92 | 0.591098 | false | 2.707207 | false | false | false |
froggleston/ena_search_django | ena/utils/aspera_connect_utils.py | 1 | 2816 | from __future__ import print_function
import sys,os,argparse,csv,subprocess,urllib
from channels import Channel, Group
import logging, json
from enaBrowserTools.python import readGet, utils
from django.conf import settings
from utils import ena_utils
current_downloads = dict()
def start_aspera(data, reply_channel):
... | mit | 3,286,711,644,581,519,400 | 45.933333 | 196 | 0.603338 | false | 3.724868 | false | false | false |
jlweand/DssVisualizer | app/plugins/datasource/mongodb/tsharkProtocol.py | 1 | 4647 | # Copyright (C) 2016 Jamie Acosta, Jennifer Weand, Juan Soto, Mark Eby, Mark Smith, Andres Olivas
#
# This file is part of DssVisualizer.
#
# DssVisualizer 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, eit... | gpl-3.0 | -8,470,261,259,824,983,000 | 48.967742 | 119 | 0.738111 | false | 4.087071 | false | false | false |
carquois/blobon | blobon/blogs/migrations/0039_auto__add_translation__add_language.py | 1 | 18897 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Translation'
db.create_table('blogs_translation', (
('id', self.gf('django.db.mo... | mit | 5,041,133,978,491,442,000 | 82.251101 | 182 | 0.540403 | false | 3.51965 | false | false | false |
cderici/pycket | pycket/AST.py | 1 | 4466 | from pycket.util import snake_case
from rpython.rlib import jit, objectmodel
class Visitable(type):
def __new__(cls, name, bases, dct):
visit_method_name = "visit_" + snake_case(name)
@objectmodel.specialize.argtype(1)
def dispatch_visitor(self, visitor, *args):
return getattr(... | mit | -5,257,308,553,851,432,000 | 31.59854 | 79 | 0.612181 | false | 4.237192 | false | false | false |
Civa/Zenith | src/Backend/Distributed/hubs/vo/model/maps.py | 1 | 1485 | __author__ = 'civa'
import os
from shared.loaders import JsonDataLoader
class FieldMapCollection(object):
def __init__(self, providers):
self.all_maps = []
for provider, val in providers.iteritems():
map = FieldMap(provider, val)
self.all_maps.append(map)
def get(sel... | gpl-3.0 | -2,522,770,145,718,167,600 | 25.052632 | 90 | 0.544108 | false | 4.013514 | false | false | false |
kiall/designate-py3 | designate/objects/adapters/base.py | 1 | 9240 | # Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# 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 requir... | apache-2.0 | -6,475,285,013,868,247,000 | 38.319149 | 78 | 0.523593 | false | 4.587885 | false | false | false |
srgblnch/LinacGUI | ctli/widgets/linacstartupsynoptic.py | 1 | 3336 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distrib... | gpl-3.0 | 3,578,222,502,056,063,000 | 34.489362 | 74 | 0.594424 | false | 3.795222 | false | false | false |
bsipocz/glue | glue/external/wcsaxes/coordinate_helpers.py | 1 | 18539 | """
This file defines the classes used to represent a 'coordinate', which includes
axes, ticks, tick labels, and grid lines.
"""
import numpy as np
from matplotlib.ticker import Formatter
from matplotlib.transforms import Affine2D, ScaledTranslation
from matplotlib.patches import PathPatch
from .formatter_locator im... | bsd-3-clause | 5,670,622,009,696,808,000 | 37.067762 | 113 | 0.561195 | false | 4.2984 | false | false | false |
KristoferHellman/gimli | doc/tutorials/modelling/develop/plot_XX_mod_fv_laplace-2d.py | 1 | 2869 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
import pygimli as pg
import pygimli.solver as solver
from pygimli.viewer import showMesh
from pygimli.mplviewer import drawMesh, drawStreams
from pygimli.meshtools import createMesh
import matplotlib.pyplot as plt
import numpy as np
from solverFVM import solveFi... | gpl-3.0 | 6,422,610,871,155,879,000 | 27.989899 | 118 | 0.60474 | false | 2.871872 | false | false | false |
ggoblin/trello-sync-client | gtsc/__init__.py | 1 | 1882 | # -*- coding: utf-8 -*-
import locale
from dialog import Dialog
from gtsc import api, goblinapi
locale.setlocale(locale.LC_ALL, '')
d = Dialog(dialog="dialog")
BOARD_ID = ''
def main():
import gtsc.api
global BOARD_ID
d.set_background_title("Goblin Trello Sync client")
if gtsc.api.API_TOKEN == '':
... | apache-2.0 | 3,027,491,845,206,295,600 | 26.275362 | 74 | 0.518066 | false | 3.37276 | false | false | false |
makelove/OpenCV-Python-Tutorial | Notebook/Blog/deep-learning-opencv深度学习dnn/deep_learning_with_opencv.py | 1 | 2821 | # USAGE
'''
python deep_learning_with_opencv.py --image images/jemma.png \
--prototxt bvlc_googlenet.prototxt \
--model bvlc_googlenet.caffemodel --labels synset_words.txt
python deep_learning_with_opencv.py --image images/traffic_light.png \
--prototxt bvlc_googlenet.prototxt \
--model bvlc_googlenet.caffemodel -... | mit | -692,876,233,722,591,900 | 35.166667 | 96 | 0.686281 | false | 3.216648 | false | false | false |
smallyear/linuxLearn | salt/salt/pillar/svn_pillar.py | 1 | 5964 | # -*- coding: utf-8 -*-
'''
Clone a remote SVN repository and use the filesystem as a Pillar source
This external Pillar source can be configured in the master config file like
so:
.. code-block:: yaml
ext_pillar:
- svn: trunk svn://svnserver/repo root=subdirectory
The `root=` parameter is optional and us... | apache-2.0 | 1,084,564,189,793,038,000 | 29.428571 | 100 | 0.610832 | false | 3.607985 | false | false | false |
tz70s/pro-sy-kuo | scripts/sgen.py | 1 | 1518 | #!/usr/bin/python
# Generate original static file to another with new prefix
# ./sgen index.html old_prefix static_index.html new_prefix
import sys
from os import walk, path, environ
# File lists
# The two file lists should be aligned.
root = environ['TRAVIS_BUILD_DIR']
files = []
for (dirpath, dirname, filenames)... | mit | 8,222,067,053,297,881,000 | 26.6 | 112 | 0.639657 | false | 3.411236 | false | false | false |
acidjunk/django-scrumboard | scrumtools/apps/utils/templatetags/get_objects.py | 1 | 2238 | # -*- coding: UTF-8 -*-
from django.db import models
from django import template
register = template.Library()
@register.tag
def get_objects(parser, token):
"""
Gets a queryset of objects of the model specified by app and model names
Usage:
{% get_objects [<manager>.]<method> from <app_name>.<m... | gpl-3.0 | -4,711,633,709,056,755,000 | 34.539683 | 187 | 0.623771 | false | 4.010753 | false | false | false |
Clinical3PO/Platform | dev/Clinical3PO-Vagrant/files/testing/ugene_scripts/arff_oligos/runUgeneAppOligos.py | 1 | 6141 | #!/usr/bin/python
import re
import os
import sys
import datetime
### Input is Glasgow coma patients who are dead as command line argument.
### Data is collected 48 hours before their death occurance for some random patients
### From patients 48 hours data, Oligos file is created
### This file is splitted into individu... | apache-2.0 | -6,465,829,641,590,132,000 | 47.738095 | 341 | 0.615209 | false | 3.442265 | false | false | false |
bearstech/modoboa-admin | modoboa_admin/management/commands/_import.py | 1 | 1477 | import os.path
import sys
import csv
from progressbar import ProgressBar, Percentage, Bar, ETA
from modoboa.core.models import User
from modoboa.lib import events
from modoboa.lib.exceptions import Conflict
from ... import lib
def import_csv(filename, options):
"""Import objects from a CSV file."""
superadm... | mit | -1,151,431,898,169,330,000 | 26.867925 | 64 | 0.523358 | false | 4.125698 | false | false | false |
PuZheng/cloud-dashing | cloud_dashing/basemain.py | 1 | 4573 | # -*- coding: UTF-8 -*-
import os
from flask import Flask, render_template, request, redirect, url_for
from flask.ext.principal import (identity_loaded, Principal, RoleNeed,
PermissionDenied)
from flask.ext.babel import gettext as _
from flask.ext.mail import Mail, Message
from sqlalche... | gpl-2.0 | 8,992,936,506,906,388,000 | 37.108333 | 79 | 0.591515 | false | 4.153497 | true | false | false |
ska-sa/spead2 | src/spead2/send/__init__.py | 1 | 6188 | # Copyright 2015, 2020 National Research Foundation (SARAO)
#
# This program 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
# later version.
#
#... | lgpl-3.0 | -8,544,114,998,688,665,000 | 38.666667 | 93 | 0.615061 | false | 4.158602 | false | false | false |
CLVsol/clvsol_odoo_addons | clv_mass_editing/models/ir_model_fields.py | 1 | 1092 | # © 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
class IrModelFields(models.Model):
_inherit = 'ir.model.fields'
@api.model
def search(self, args, offset=0, limit=0, order=None, count=False... | agpl-3.0 | -1,077,670,935,507,037,800 | 37.964286 | 74 | 0.492209 | false | 3.967273 | false | false | false |
lobocv/crashreporter_hq | crashreporter_hq/db_repository/versions/001_migration.py | 1 | 2508 | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
pre_meta = MetaData()
post_meta = MetaData()
sequence = Table('sequence', post_meta,
Column('id', Integer, primary_key=True, nullable=False),
Column('count', Integer, default=ColumnDefault(0)),
Column('name', String(length... | mit | 9,179,526,756,315,560,000 | 33.833333 | 68 | 0.678628 | false | 3.823171 | false | false | false |
rvs/gpdb | gpMgmt/bin/gppylib/gpresgroup.py | 1 | 1082 | #!/usr/bin/env python
#
# Copyright (c) 2017, Pivotal Software Inc.
#
from gppylib.commands import base
from gppylib.commands.unix import *
from gppylib.commands.gp import *
from gppylib.gparray import GpArray
from gppylib.gplog import get_default_logger
from gppylib.gphostcache import *
class GpResGroup(object):
... | apache-2.0 | -3,767,740,201,307,964,000 | 26.74359 | 80 | 0.613678 | false | 3.570957 | false | false | false |
alexei-matveev/ccp1gui | idle/AutoExpand.py | 1 | 2632 | import string
import re
###$ event <<expand-word>>
###$ win <Alt-slash>
###$ unix <Alt-slash>
class AutoExpand:
keydefs = {
'<<expand-word>>': ['<Alt-slash>'],
}
unix_keydefs = {
'<<expand-word>>': ['<Meta-slash>', '<Alt-slash>'],
}
menudefs = [
('edit', [
('... | gpl-2.0 | -444,942,918,299,097,800 | 27.923077 | 69 | 0.503799 | false | 3.803468 | false | false | false |
benrudolph/commcare-hq | custom/ewsghana/filters.py | 1 | 3043 | from django.utils.translation import ugettext_noop
from corehq.apps.products.models import Product, SQLProduct
from corehq.apps.programs.models import Program
from corehq.apps.reports.filters.base import BaseDrilldownOptionFilter, BaseSingleOptionFilter
from corehq.apps.reports.filters.fixtures import AsyncLocationFilt... | bsd-3-clause | 7,027,879,074,916,347,000 | 29.737374 | 114 | 0.609924 | false | 4.046543 | false | false | false |
JetStarBlues/Nand-2-Tetris | PlayArea/OtherExperiments/FSMs/mod4.py | 1 | 1536 | ''''''''''''''''''''''''''' imports '''''''''''''''''''''''''''''
# Built ins
import sys
# Computer files
sys.path.append('../../Modules')
from _1__elementaryGates import *
from _2__arithmeticGates import *
from _3__clock import *
from _4__flipFlops import *
''''''''''''''''''''''''' helpers '''''''''''''''''''''''... | mit | 8,447,660,619,758,624,000 | 15.706522 | 100 | 0.555339 | false | 2.60781 | false | false | false |
googleapis/googleapis-gen | google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/keyword_plan_campaign_service/client.py | 1 | 24567 | # -*- 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 | -8,020,731,475,618,517,000 | 45.178571 | 173 | 0.632434 | false | 4.529314 | false | false | false |
vincenting/BeautifyRust | BeautifyRust.py | 1 | 3189 | import os.path
import shutil
import sublime
import sublime_plugin
import subprocess
SETTINGS_FILE = "BeautifyRust.sublime-settings"
def which(program):
def is_exe(fpath):
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
fpath, fname = os.path.split(program)
if fpath:
if is_exe(p... | mit | 757,475,552,624,579,200 | 36.964286 | 107 | 0.618062 | false | 3.60339 | false | false | false |
c-bata/django-auth-example | accounts/migrations/0001_initial.py | 1 | 3050 | # Generated by Django 2.2 on 2019-04-07 12:04
import accounts.validators
import django.contrib.auth.models
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
... | mit | 6,103,907,302,205,594,000 | 65.304348 | 311 | 0.642951 | false | 4.388489 | false | false | false |
aarpon/obit_flow_core_technology | core-plugins/flow/4/dss/reporting-plugins/retrieve_fcs_events/retrieve_fcs_events.py | 1 | 13183 | # -*- coding: utf-8 -*-
# Notes:
#
# - this plug-in uses LRCache.jar from export_flow_datasets/lib.
# - this plug-in requires Jython version 2.7 (for json module)
'''
Aggregation plug-in to generate FCS plots.
The first time a scatterplot is generated for an FCS file, the data is read
and stored in a CSV file that i... | apache-2.0 | -274,063,512,111,088,030 | 33.875661 | 84 | 0.644846 | false | 4.050077 | false | false | false |
azariven/BioSig_SEAS | bin_stable/cross_section/load_physical_cloud_cross_section.py | 1 | 5111 |
import os
import sys
import numpy as np
import time
from scipy import interpolate
import matplotlib.pyplot as plt
DIR = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(DIR, '../..'))
from SEAS_Main.atmosphere_effects.cloud import File_Cloud_Simulator, Physical_Cloud_Simulator
from SEAS_Ut... | gpl-3.0 | 8,680,982,130,842,436,000 | 28.72093 | 97 | 0.563882 | false | 3.172564 | false | false | false |
GiulianoFranchetto/zephyr | scripts/west_commands/runners/dfu.py | 1 | 4430 | # Copyright (c) 2017 Linaro Limited.
#
# SPDX-License-Identifier: Apache-2.0
'''Runner for flashing with dfu-util.'''
from collections import namedtuple
import sys
import time
from west import log
from runners.core import ZephyrBinaryRunner, RunnerCaps, \
BuildConfiguration
DfuSeConfig = namedtuple('DfuSeConf... | apache-2.0 | 3,216,762,482,001,115,600 | 35.01626 | 79 | 0.550564 | false | 4.07919 | true | false | false |
rmed/akamatsu | setup.py | 1 | 2681 | # -*- coding: utf-8 -*-
#
# Akamatsu CMS
# https://github.com/rmed/akamatsu
#
# MIT License
#
# Copyright (c) 2020 Rafael Medina García <rafamedgar@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
... | mit | -5,365,877,865,346,702,000 | 27.5 | 80 | 0.615901 | false | 3.37831 | false | false | false |
fmaguire/volution | data/tm_sequences/get_tm_seqs.py | 1 | 3037 | #!/usr/bin/env python3
import sys
import os
import re
from Bio import SeqIO
import argparse
def main(args):
if len(args) is not 4:
print("get_seqs.py SORTED_tmhmm_output_filepath SORTED_input_fasta_filepath output_file")
tmhmm_out_fh = open(args[1], 'rU')
input_seq_fh = open(args[2], 'rU')
... | apache-2.0 | -4,751,719,109,523,673,000 | 29.37 | 144 | 0.494238 | false | 3.466895 | false | false | false |
bccBalloon/HiBalloon | accel_card.py | 1 | 2128 | #!/usr/bin/python
import Adafruit_BBIO.ADC as ADC
import time
import datetime
import numpy as np
ADC.setup()
# Based on observation of high and low raw readings X 3.6 V. Then took the average of each.
zeroOffsetX = 1.595
zeroOffsetY = 1.614
zeroOffsetZ = 1.672
#The sensitivity or conversion factor is the average fo... | gpl-2.0 | 5,328,364,604,334,632,000 | 35.084746 | 229 | 0.62406 | false | 3.097525 | false | false | false |
google/google-ctf | 2017/quals/2017-crypto-backdoor/generator.py | 1 | 2217 | #!/usr/bin/python
#
# Copyright 2018 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 ag... | apache-2.0 | -1,921,660,062,109,035,300 | 34.190476 | 91 | 0.676139 | false | 3.070637 | false | false | false |
IHCantabria/THREDDSExplorer | libvisor/utilities/LayerLegendGroupifier.py | 1 | 4578 | '''
Created on 28 de mar. de 2016
@author: IHC
'''
from PyQt4.QtCore import QObject, pyqtSignal
from qgis.core import QgsRectangle, QgsLayerTreeLayer, QgsLayerTreeGroup, \
QgsProject, QgsMapLayerRegistry
from qgis.utils import iface
from threading import RLock
class LayerGroupifier(QObject):
... | gpl-3.0 | -7,256,800,875,467,990,000 | 41.398148 | 121 | 0.626474 | false | 4.582583 | false | false | false |
fbradyirl/home-assistant | homeassistant/helpers/state.py | 1 | 7888 | """Helpers that help with state related things."""
import asyncio
import datetime as dt
import json
import logging
from collections import defaultdict
from types import TracebackType
from typing import ( # noqa: F401 pylint: disable=unused-import
Awaitable,
Dict,
Iterable,
List,
Optional,
Tuple... | apache-2.0 | -8,419,235,931,339,174,000 | 28.878788 | 88 | 0.641227 | false | 3.823558 | false | false | false |
Kjir/papyon | papyon/service/OfflineIM/scenario/delete_messages.py | 1 | 1905 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2007 Johann Prieur <johann.prieur@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 Software Foundation; either version 2 of the License, or
# (at your option) an... | gpl-2.0 | 7,619,992,812,602,080,000 | 37.1 | 76 | 0.659843 | false | 3.96875 | false | false | false |
xaratustrah/manar | mainwindow_ui.py | 1 | 24883 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created: Fri May 15 18:20:42 2015
# by: PyQt5 UI code generator 5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(se... | gpl-2.0 | -6,529,363,739,883,643,000 | 62.154822 | 100 | 0.707833 | false | 3.790829 | false | false | false |
AutorestCI/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/azure_reachability_report.py | 1 | 1852 | # 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 ... | mit | 7,470,136,276,778,346,000 | 40.155556 | 102 | 0.646328 | false | 4.451923 | false | false | false |
Darthkpo/xtt | openpyxl/worksheet/properties.py | 1 | 5070 | from __future__ import absolute_import
# Copyright (c) 2010-2015 openpyxl
"""Worksheet Properties"""
from openpyxl.compat import safe_string
from openpyxl.descriptors import Strict, String, Bool, Typed
from openpyxl.styles.colors import ColorDescriptor
from openpyxl.xml.constants import SHEET_MAIN_NS
from openpyxl.xm... | mit | 3,601,019,178,774,147,600 | 30.296296 | 90 | 0.631558 | false | 4.036624 | false | false | false |
zak-k/cis | cis/plotting/line_plot.py | 1 | 3756 | from cis.plotting.generic_plot import Generic_Plot
class Line_Plot(Generic_Plot):
line_styles = ["solid", "dashed", "dashdot", "dotted"]
def plot(self):
"""
Plots one or many line graphs
"""
from cis.exceptions import InvalidDimensionError
self.mplkwargs["linewidth"] =... | gpl-3.0 | 2,224,748,964,197,030,400 | 44.253012 | 118 | 0.56017 | false | 4.056156 | false | false | false |
AnishShah/tensorflow | tensorflow/contrib/lite/python/convert.py | 1 | 14556 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -684,545,305,695,395,500 | 42.192878 | 80 | 0.683979 | false | 3.959739 | false | false | false |
dmulholland/pymatrix | setup.py | 1 | 1481 | #!/usr/bin/env python3
"""
Pymatrix
========
A lightweight, easy-to-use matrix module in pure Python. Supports a range of
basic linear algebra operations.
Sample syntax::
from pymatrix import matrix
m = matrix([
[1, 2],
[3, 4]
])
a = m + m * 2
b = m * m
c = m ** 3
d = m... | unlicense | 2,585,921,403,486,972,400 | 21.439394 | 76 | 0.58609 | false | 3.420323 | false | false | false |
foosel/OctoPrint | src/octoprint/vendor/sockjs/tornado/transports/xhr.py | 1 | 2840 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
"""
sockjs.tornado.transports.xhr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xhr-Polling transport implementation
"""
import logging
from tornado.web import asynchronous
from octoprint.vendor.sockjs.tornado imp... | agpl-3.0 | -8,759,048,714,395,411,000 | 28.278351 | 84 | 0.610563 | false | 4.29652 | false | false | false |
boldingd/BadSnn | rule_scratch.py | 1 | 6872 | #! /usr/bin/python3
import SnnBase
import Stdp
import DopamineStdp
import random
class TogglePulsar:
def __init__(self, magnitude, frequency):
self.magnitude = magnitude
self.frequency = frequency # not used after construction at present
self.delay = 1.0 / frequency
self.remainin... | bsd-3-clause | -1,762,644,887,899,792,400 | 28.118644 | 167 | 0.562573 | false | 3.495422 | false | false | false |
inuyasha2012/tornado-qrcode-login-example | example/main.py | 1 | 4259 | # coding=utf-8
import base64
import tornado.ioloop
import tornado.web
from tornado.web import _create_signature_v1, _time_independent_equals
import tornado.gen
import tornado.httpclient
import tornado.escape
from tornado.escape import utf8
from tornado.concurrent import Future
from qr import get_qrcode
import uuid
imp... | mit | -4,151,695,492,188,493,300 | 26.973333 | 94 | 0.620739 | false | 3.394013 | false | false | false |
liyatanggithub/futures | python/cal.py | 1 | 2893 | #!/usr/bin/python
import string
import time
import matplotlib.pyplot as plt
FileName=raw_input("Please enter file name : ")
f=open(FileName, "r")
dataMat=[[0],[0]]
Aaa=0
Bbb=0
Ccc=0
xMax=100
yMin=10000
yMax=0
Money=1000
BuyPrice=0
MoreOrEmpty=0
LineHigh=0
LineLow=10000
Vertex=[]
while True:
s=f.readline()
... | gpl-2.0 | -7,213,722,963,543,938,000 | 27.93 | 177 | 0.547874 | false | 2.822439 | false | false | false |
Adikso/BashBot | bashbot/core/utils.py | 1 | 1170 | import asyncio
import logging
from bashbot.core.settings import settings
loop = asyncio.get_event_loop()
def get_logger(name):
logger = logging.getLogger(name)
handler = logging.FileHandler('bashbot.log')
formatter = logging.Formatter('[%(asctime)s] %(levelname)s:%(name)s: %(message)s')
handler.set... | mit | -9,011,476,840,109,196,000 | 22.32 | 98 | 0.669811 | false | 3.860927 | false | false | false |
mobarski/sandbox | parallel/p7x4m5.py | 1 | 4406 | ## p7.py - parallel processing microframework
## (c) 2017 by mobarski (at) gmail (dot) com
## licence: MIT
## version: ex4 (simple fan-in of subprocess outputs)
## mod2 (cmd line options)
## mod3 (2.6 compatibility)
## mod4 (no fan-in)
## mod5 (output pipe command for partitions)
from _... | mit | -1,997,737,394,157,168,000 | 33.692913 | 169 | 0.647299 | false | 3.036527 | false | false | false |
duaraghav8/Corque | detect.py | 1 | 1133 | import cv2
import os
import sys
from string import Template
from PIL import Image
def doDetect(filename):
dirname = '/home/dark_knight/hackerrank/demo'
# first argument is the haarcascades path
face_cascade_path = "haarcascade_frontalface_default.xml"
face_cascade = cv2.CascadeClassifier(os.path.expanduser... | mit | 4,306,258,100,013,249,500 | 27.325 | 106 | 0.64872 | false | 3.005305 | false | false | false |
ossobv/exactonline | exactonline/elements/invoice.py | 1 | 11247 | # vim: set ts=8 sw=4 sts=4 et ai tw=79:
"""
Data structures for communication with remote.
Example usage::
class BossoExactInvoice(ExactInvoice):
def __init__(self, bosso_invoice=None, **kwargs):
super(BossoExactInvoice, self).__init__(**kwargs)
self._bosso_invoice = bosso_invoice... | lgpl-3.0 | 2,025,355,521,391,060,000 | 34.146875 | 78 | 0.56255 | false | 4.094285 | false | false | false |
nightjuggler/qc | qc.py | 1 | 13333 | #
# qc.py - Quantum Computing Library for Python
#
# by Pius Fischer, February 13-20, 2016
#
# Various functions for mathematically simulating the quantum circuit model of computation.
#
# Example 1 - Superdense coding (sending two classical bits a1 and a2 from Alice to Bob via
# ... | mit | -7,023,424,993,711,938,000 | 25.349802 | 105 | 0.631441 | false | 2.608177 | false | false | false |
supertree-toolkit/stk | stk/yapbib/adsparse.py | 1 | 7928 | #! /usr/bin/env python
import sys,os
import re
import codecs
import helper
ads_fields={'R': 'Bibliographic Code',
'A': 'Author List',
'a': 'Book Authors',
'F': 'Author Affiliation',
'J': 'Journal Name',
'V': 'Journal Volume',
'D': 'Publication Da... | gpl-3.0 | -5,861,550,258,326,980,000 | 32.73617 | 146 | 0.598133 | false | 3.094457 | false | false | false |
dev-coop/plithos | src/run.py | 1 | 1718 | import argparse
from plithos.simulations.random_mover import RandomMover
from plithos.simulations.dqn_single_drone import DQNSingleDroneExperiment
from plithos.simulations.hand_controlled import HandControlled
from plithos.simulations.manual_ai import ManualAIExperiment
if __name__ == '__main__':
simulations = {... | mit | 3,844,613,870,252,509,000 | 32.038462 | 116 | 0.655413 | false | 3.663113 | false | false | false |
ZLLab-Mooc/edx-platform | cms/envs/test.py | 1 | 9102 | # -*- coding: utf-8 -*-
"""
This config file runs the simplest dev environment using sqlite, and db-based
sessions. Assumes structure:
/envroot/
/db # This is where it'll write the database file
/edx-platform # The location of this repo
/log # Where we're going to write log files
"""
# We ... | agpl-3.0 | 8,424,455,987,551,631,000 | 31.741007 | 144 | 0.676445 | false | 3.371111 | true | false | false |
plotly/python-api | packages/python/plotly/plotly/graph_objs/_ohlc.py | 1 | 48985 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Ohlc(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "ohlc"
_valid_props = {
"close",
"closesrc",
"customdata",
"customdatasrc",... | mit | 1,772,029,968,138,772,200 | 30.042459 | 89 | 0.540594 | false | 4.504368 | false | false | false |
south-coast-science/scs_dfe_eng | tests/gas/isi/elc_dsi_t1_test.py | 1 | 1580 | #!/usr/bin/env python3
"""
Created on 27 May 2019
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
import sys
import time
from scs_dfe.gas.isi.elc_dsi_t1 import ElcDSIt1
from scs_dfe.interface.interface_conf import InterfaceConf
from scs_host.bus.i2c import I2C
from scs_host.sys.host import Host
# ... | mit | 5,856,037,002,768,893,000 | 20.066667 | 118 | 0.529747 | false | 3.383298 | false | false | false |
janamcr/laserflect | laserflect.py | 1 | 9349 | '''
Copyright 2012 Iwan Gabovitch and Jana Wendler
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 | 7,591,401,104,119,569,000 | 24.684066 | 90 | 0.567761 | false | 3.554753 | false | false | false |
wagnerand/addons-server | src/olympia/reviewers/views.py | 1 | 65357 | import functools
import json
import time
from collections import OrderedDict
from datetime import date, datetime, timedelta
from django import http
from django.conf import settings
from django.core.cache import cache
from django.core.exceptions import PermissionDenied
from django.core.paginator import Paginator
from ... | bsd-3-clause | 2,331,642,368,895,851,500 | 35.086692 | 96 | 0.638257 | false | 3.906803 | false | false | false |
FancyRice/RitoAPI | ritoapi/rate_limit/rate_ticker.py | 1 | 1637 | import time
import threading
class RateTicker:
global_rate_limit = 'X-App-Rate-Limit'
method_rate_limit = 'X-Method-Rate-Limit'
global_rate_limit_count = 'X-App-Rate-Limit-Count'
method_rate_limit_count = 'X-Method-Rate-Limit-Count'
service_reset_time = 3
def __init__(self, usage_limit, reset... | mit | -6,764,404,491,455,072,000 | 33.829787 | 93 | 0.624924 | false | 3.475584 | false | false | false |
Tillsten/MPLslides | mplslides/utils.py | 1 | 11427 | # -*- coding: utf-8 -*-
'''
.. module:: audiochan.utils.cascadicts
:platform: Unix, Windows
:synopsis: Implementation of Cascading dict collection. CascaDicts implement something like inheritance on dictionary level.
Example::
In [2]: a = CascaDict({'level':0, 'name':'root'})
In [3]: b = a.cascade({... | mit | 2,462,875,882,698,541,000 | 35.164557 | 129 | 0.549926 | false | 4.252698 | false | false | false |
wt52571314/MyAutoTest | Auto_Pay/old/oo.py | 1 | 1702 | # __author__ = 'Administrator'
# [
# {"questionId":"5","questionAns":"4"},
# {"questionId":"6","questionAns":"8"},
# {"questionId":"7","questionAns":"12"},
# {"questionId":"9","questionAns":"15"},
# {"questionId":"10","questionAns":"18"},
# {"questionId":"11","questionAns":"24"},
# {"questionId":"12","questionAns":"27... | gpl-2.0 | 966,669,798,809,416,700 | 34.458333 | 105 | 0.565217 | false | 2.909402 | false | false | false |
joelwking/ansible-cliqr | phantom/base_connector.py | 1 | 2382 | #!/usr/bin/env python
# base_connector.py
#
"""
Copyright (c) 2017 World Wide Technology, Inc.
All rights reserved.
author: Joel W. King, World Wide Technology
Revision history:
- 16 February 2017 | 1.0 | Initial release
"""
import json
class BaseConnector(object):
""" This mimics ... | gpl-3.0 | -662,813,616,256,438,100 | 30.355263 | 115 | 0.616289 | false | 4.215929 | false | false | false |
serge-sans-paille/pythran | pythran/tests/test_advanced.py | 1 | 15985 | #encoding: utf8
from pythran.tests import TestEnv
from unittest import skip, skipIf
import numpy
from pythran.typing import *
class TestAdvanced(TestEnv):
def test_generator_enumeration(self):
code = '''
def dummy_generator(l):
for i in l: yield i
def generator_en... | bsd-3-clause | -4,114,732,264,823,799,000 | 34.676339 | 221 | 0.524245 | false | 3.375502 | true | false | false |
mtmail/Nominatim | nominatim/clicmd/special_phrases.py | 1 | 2312 | """
Implementation of the 'special-phrases' command.
"""
import logging
from pathlib import Path
from nominatim.errors import UsageError
from nominatim.db.connection import connect
from nominatim.tools.special_phrases.sp_importer import SPImporter
from nominatim.tools.special_phrases.sp_wiki_loader import SPWikiLoa... | gpl-2.0 | 4,599,181,903,326,657,000 | 37.533333 | 92 | 0.660467 | false | 4.084806 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.