repo_name stringlengths 5 100 | path stringlengths 4 299 | copies stringclasses 990
values | size stringlengths 4 7 | content stringlengths 666 1.03M | license stringclasses 15
values | hash int64 -9,223,351,895,964,839,000 9,223,297,778B | line_mean float64 3.17 100 | line_max int64 7 1k | alpha_frac float64 0.25 0.98 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
casanovainformationservices/LazyLibrarian | cherrypy/test/test_tools.py | 6 | 16927 | """Test the various means of instantiating and invoking tools."""
import gzip
import sys
import unittest
import io
from cherrypy._cpcompat import copyitems, itervalues
from cherrypy._cpcompat import IncompleteRead, ntob, ntou, xrange
import time
timeout = 0.2
import types
import six
import cherrypy
from cherrypy im... | gpl-3.0 | -5,910,287,537,592,999,000 | 37.038202 | 94 | 0.552077 | false |
illmade/image-node | py/inception.py | 1 | 1043 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | apache-2.0 | 6,713,954,808,620,718,000 | 40.72 | 80 | 0.716203 | false |
Azure/azure-sdk-for-python | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/_configuration.py | 1 | 2915 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | 1,127,833,269,698,670,500 | 46.786885 | 134 | 0.681647 | false |
ParticulateFlow/Palabos-PFM | scons/scons-local-2.1.0/SCons/Scanner/Prog.py | 21 | 3292 | #
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation
#
# 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
# with... | agpl-3.0 | 7,151,366,954,915,680,000 | 31.594059 | 101 | 0.660693 | false |
joedborg/fusilier | register/migrations/0001_initial.py | 1 | 1082 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-02 16:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('member', '0001_initial'),
('fir... | agpl-3.0 | -5,273,537,555,909,035,000 | 35.066667 | 114 | 0.590573 | false |
PyMamba/mamba-framework | mamba/scripts/_controller.py | 3 | 6578 | # -*- test-case-name: mamba.scripts.test.test_mamba_admin -*-
# Copyright (c) 2012 - 2013 Oscar Campos <oscar.campos@member.fsf.org>
# See LICENSE for more details
from __future__ import print_function
import re
import sys
import getpass
import datetime
from string import Template
from twisted.python import usage, f... | gpl-3.0 | 2,782,812,600,516,313,000 | 30.777778 | 79 | 0.579964 | false |
ddurieux/alignak | test/test_multi_attribute.py | 1 | 3021 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2015: Alignak team, see AUTHORS.txt file for contributors
#
# This file is part of Alignak.
#
# Alignak is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free So... | agpl-3.0 | 9,179,553,471,528,741,000 | 35.829268 | 106 | 0.709272 | false |
doconix/django-mako-plus | django_mako_plus/provider/context.py | 1 | 2543 | from django.utils.module_loading import import_string
import json
import logging
from ..version import __version__
from ..util import log
from .base import BaseProvider
###################################
### JS Context Provider
class JsContextProvider(BaseProvider):
'''
Adds all js_context() variables to DM... | apache-2.0 | 7,978,148,596,370,466,000 | 36.397059 | 119 | 0.596146 | false |
mashaoze/esp-idf | tools/kconfig_new/kconfiglib.py | 3 | 153994 | # Copyright (c) 2011-2017, Ulf Magnusson
# Modifications (c) 2018 Espressif Systems
# SPDX-License-Identifier: ISC
#
# ******* IMPORTANT **********
#
# This is kconfiglib 2.1.0 with some modifications to match the behaviour
# of the ESP-IDF kconfig:
#
# - 'source' nows uses wordexp(3) behaviour to allow source-ing mult... | apache-2.0 | 1,443,340,173,474,915,000 | 34.57265 | 107 | 0.56384 | false |
tow/sunburnt | sunburnt/walktree.py | 3 | 14187 | #!/usr/bin/env python
# -*-coding: utf8-*-
# Title: walktree.py
# Author: Gribouillis for the python forum at www.daniweb.com
# Created: 2011-11-18 23:28:39.608291 (isoformat date)
# License: Public Domain
# Use this code freely.
# IP: http://www.daniweb.com/software-development/python/code/395270
"""This module implem... | mit | 8,880,664,391,554,048,000 | 38.739496 | 80 | 0.578769 | false |
jimmykimani/Cp2-Bucketlist-API | manage.py | 1 | 2244 |
import os
import unittest
import coverage
COV = coverage.coverage(
branch=True,
omit=[
'*/*bc/*',
'manage.py/*',
'app/errors.py'
'tests/base.py',
'tests/test_authentication.py',
'tests/test_endpoints.py'
'instance/config.py',
'/*/__init__.py'
... | mit | 7,057,149,605,993,123,000 | 24.5 | 71 | 0.63369 | false |
Reinaesaya/OUIRL-ChatBot | chatterbot/input/microsoft.py | 4 | 3644 | from __future__ import unicode_literals
from time import sleep
from chatterbot.input import InputAdapter
from chatterbot.conversation import Statement
class Microsoft(InputAdapter):
"""
An input adapter that allows a ChatterBot instance to get
input statements from a Microsoft Bot using *Directline client... | bsd-3-clause | 2,350,987,387,894,654,000 | 30.686957 | 99 | 0.594951 | false |
indexofire/gork | src/gork/application/mlst/migrations/0008_auto__add_field_sttype_locus_data__add_field_sttype_creat_time__add_fi.py | 1 | 15133 | # -*- 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 field 'STType.locus_data'
db.add_column(u'mlst_sttype', 'locus_data',
self.gf... | mit | 4,052,530,125,085,207,600 | 68.422018 | 187 | 0.564726 | false |
DMS-Aus/Roam | ext_libs/pdoc/__init__.py | 1 | 43827 | """
Module pdoc provides types and functions for accessing the public
documentation of a Python module. This includes modules (and
sub-modules), functions, classes and module, class and instance
variables. Docstrings are taken from modules, functions and classes
using the special `__doc__` attribute. Docstrings for va... | gpl-2.0 | 4,057,034,538,068,730,400 | 35.340796 | 78 | 0.609784 | false |
tylergibson/electron | script/bootstrap.py | 11 | 7131 | #!/usr/bin/env python
import argparse
import os
import subprocess
import sys
from lib.config import LIBCHROMIUMCONTENT_COMMIT, BASE_URL, PLATFORM, \
enable_verbose_mode, is_verbose_mode, get_target_arch
from lib.util import execute_stdout, get_atom_shell_version, scoped_cwd
SOURCE_ROOT = os.p... | mit | -126,740,728,718,322,400 | 32.957143 | 79 | 0.61436 | false |
KenanBek/rslservices | app/account/views.py | 1 | 3706 | from django.contrib.auth.models import User
from django.forms.util import ErrorList
from django.utils.translation import ugettext_lazy as _
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate
from django.contrib.auth import login a... | gpl-3.0 | -1,262,388,006,191,288,300 | 39.725275 | 108 | 0.643281 | false |
shi2wei3/tp-libvirt | libvirt/tests/src/virsh_cmd/host/virsh_version.py | 8 | 1475 | from autotest.client.shared import error
from virttest import libvirt_vm
from virttest import virsh
from virttest import utils_libvirtd
def run(test, params, env):
"""
Test the command virsh version
(1) Call virsh version
(2) Call virsh version with an unexpected option
(3) Call virsh version wit... | gpl-2.0 | 6,781,127,001,119,999,000 | 33.302326 | 76 | 0.608136 | false |
bertugatt/textmt | textmt/corpus/MlrsReader.py | 1 | 1610 | from __future__ import unicode_literals
import nltk
from nltk.util import LazyMap
from nltk.corpus.reader.api import *
class MlrsReader(nltk.corpus.reader.conll.ConllCorpusReader):
WORDS = 'words' #: column type for words
POS = 'pos' #: column type for part-of-speech tags
LEMMA = 'lemma' #: column ty... | mit | 2,809,956,066,992,557,000 | 25.85 | 71 | 0.477019 | false |
huggingface/transformers | src/transformers/models/xlnet/tokenization_xlnet.py | 2 | 14406 | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
#
# 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://ww... | apache-2.0 | 1,638,247,104,463,545,900 | 41.122807 | 119 | 0.609052 | false |
ntts-clo/ryu | ryu/tests/unit/packet/test_ipv4.py | 18 | 4367 | # Copyright (C) 2012 Nippon Telegraph and Telephone Corporation.
#
# 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 appli... | apache-2.0 | 1,247,668,826,204,057,000 | 30.875912 | 75 | 0.618731 | false |
Nic30/hwtHls | hwtHls/examples/query/selectFF.py | 1 | 2244 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.hdl.assignment import Assignment
from hwt.hdl.operator import Operator
from hwt.hdl.operatorDefs import AllOps
from hwt.interfaces.std import Signal, Clk
from hwt.synthesizer.unit import Unit
from hwtHls.examples.query.rtlNetlistManipulator import RtlNetlistManip... | mit | -6,456,931,574,568,119,000 | 27.769231 | 77 | 0.571301 | false |
Andrew-McNab-UK/DIRAC | DataManagementSystem/scripts/dirac-admin-user-quota.py | 9 | 1201 | #!/usr/bin/env python
########################################################################
# $HeadURL$
########################################################################
__RCSID__ = "$Id$"
import DIRAC
from DIRAC.Core.Base import Script
Script.setUsageMessage( """
Show storage quotas for specified users or f... | gpl-3.0 | -7,788,512,496,321,830,000 | 30.605263 | 90 | 0.591174 | false |
dbentley/pants | contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_task.py | 1 | 4139 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import json
import o... | apache-2.0 | 7,513,799,572,198,754,000 | 33.206612 | 97 | 0.662962 | false |
xiangyq/Youqing-final-project | calculate.py | 1 | 2813 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Calculate stock return and yield module"""
import datetime
import csv
def calculate(stocks, stock_market_price):
"""Do some math and return stocks information
including return and yield.
Args:
stocks(list): a list with lists nested.
stock... | mpl-2.0 | -4,933,643,838,198,132,000 | 32.891566 | 80 | 0.601138 | false |
ppwwyyxx/tensorflow | tensorflow/python/ops/gradient_checker_v2_test.py | 3 | 11259 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 1,599,339,409,595,459,800 | 34.629747 | 80 | 0.649969 | false |
ravello/testmill | lib/testmill/test/test_images.py | 1 | 1035 | # Copyright 2012-2013 Ravello Systems, 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 agree... | apache-2.0 | 639,001,694,747,530,900 | 32.387097 | 74 | 0.703382 | false |
ben-jones/facade | tests/verifyFrame.py | 2 | 6109 | # Ben Jones
# Fall 2013
# HTPT Pluggable Transport
import unittest
from htpt import constants
from htpt import frame
class TestSeqNum(unittest.TestCase):
"""Test sequence number module and lock"""
def test_init(self):
aNum = 10
self.SN = frame.SeqNumber(aNum)
self.SN.seqNum += 500
#self.assertE... | mit | -80,114,441,224,989,220 | 33.320225 | 81 | 0.70879 | false |
KimTaehee/eucalyptus | clc/eucadmin/eucadmin/describeloadbalancing.py | 6 | 1534 | # Copyright 2011-2014 Eucalyptus Systems, Inc.
#
# Redistribution and use of this software 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 conditions ... | gpl-3.0 | -8,414,680,557,378,003,000 | 50.133333 | 74 | 0.790743 | false |
nightjean/Deep-Learning | tensorflow/contrib/learn/python/learn/utils/gc.py | 10 | 6119 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -5,166,066,407,041,046,000 | 28.418269 | 80 | 0.651904 | false |
kenshay/ImageScripter | Script_Runner/PYTHON/Lib/sqlite3/dbapi2.py | 126 | 2687 | # pysqlite2/dbapi2.py: the DB-API 2.0 interface
#
# Copyright (C) 2004-2005 Gerhard Häring <gh@ghaering.de>
#
# This file is part of pysqlite.
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any damages
# arising from the use of this sof... | gpl-3.0 | -3,338,774,772,565,211,600 | 29.179775 | 88 | 0.703649 | false |
orvi2014/kitsune | kitsune/wiki/tests/test_notifications.py | 17 | 11596 | # -*- coding: utf-8 -*-
from django.core import mail
from nose.tools import eq_
from kitsune.sumo.tests import post
from kitsune.sumo.urlresolvers import reverse
from kitsune.users.tests import add_permission, user
from kitsune.products.tests import product
from kitsune.wiki.config import (
SIGNIFICANCES, MAJOR_S... | bsd-3-clause | -8,602,756,848,582,841,000 | 40.410714 | 79 | 0.625011 | false |
PRIMEDesigner15/PRIMEDesigner15 | dependencies/Lib/test/unittests/test_csv.py | 23 | 39507 | # Copyright (C) 2001,2002 Python Software Foundation
# csv package unit tests
import io
import sys
import os
import unittest
from io import StringIO
from tempfile import TemporaryFile
import csv
import gc
from test import support
class Test_Csv(unittest.TestCase):
"""
Test the underlying C csv parser in ways ... | bsd-3-clause | -3,903,981,953,445,689,300 | 38.26839 | 108 | 0.542907 | false |
tectronics/wfrog | wflogger/input/__init__.py | 5 | 1238 | ## Copyright 2009 Laurent Bovet <laurent.bovet@windmaster.ch>
## Jordi Puigsegur <jordi.puigsegur@gmail.com>
##
## This file is part of wfrog
##
## wfrog 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 | -6,566,565,377,472,703,000 | 31.605263 | 73 | 0.732633 | false |
SaptakS/open-event-orga-server | app/helpers/oauth.py | 3 | 4349 | from urlparse import urlparse
import oauth2
from flask import request
from app.settings import get_settings
class OAuth(object):
"""Google Credentials"""
AUTH_URI = 'https://accounts.google.com/o/oauth2/auth'
TOKEN_URI = 'https://accounts.google.com/o/oauth2/token'
USER_INFO = 'https://www.googleap... | gpl-3.0 | -1,094,879,263,530,122,200 | 28.787671 | 110 | 0.638768 | false |
cprov/snapcraft | snapcraft/cli/env.py | 1 | 3773 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2017 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the h... | gpl-3.0 | 7,436,541,643,309,643,000 | 38.302083 | 79 | 0.643255 | false |
shaz13/oppia | core/domain/rating_services.py | 10 | 5068 | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | apache-2.0 | -4,749,925,435,926,295,000 | 35.2 | 78 | 0.692186 | false |
jrn223/Freestyle | app/Stock_market_data.py | 1 | 3248 | # for email functionality, credit @s2t2
import os
import sendgrid
from sendgrid.helpers.mail import * # source of Email, Content, Mail, etc.
# for day of week
import datetime
# to query Google stock data
from pandas_datareader import data
from datetime import date, timedelta
#for sorting biggest gains to biggest los... | mit | 2,787,467,201,835,120,000 | 32.833333 | 181 | 0.689963 | false |
gonicus/gosa | backend/src/tests/backend/objects/comparator/test_acl_set.py | 1 | 4604 | # This file is part of the GOsa framework.
#
# http://gosa-project.org
#
# Copyright:
# (C) 2016 GONICUS GmbH, Germany, http://www.gonicus.de
#
# See the LICENSE file in the project's top-level directory for details.
import unittest
from gosa.backend.objects.comparator.acl_set import *
class AclSetComparatorTests(u... | lgpl-2.1 | 5,341,840,653,029,482,000 | 39.394737 | 132 | 0.54583 | false |
axelberndt/Raspberry-Pi-Tools | src/RotaryEncoder.py | 1 | 6002 | #!/usr/bin/env python3.5
# This Python script reads a rotary encoder connected to GPIO pin 16 and 18, GND on pin 14 or any other ground pin.
# Some encoders have inverse direction; in this case swap the values of GPIOpinA and GPIOpinB accordingly.
# This solution works without debouncing. However, very quick rotation ... | gpl-3.0 | 3,735,513,601,733,635,000 | 51.2 | 141 | 0.573476 | false |
j-griffith/cinder | cinder/objects/request_spec.py | 2 | 6127 | # Copyright 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | -8,157,374,361,758,151,000 | 41.846154 | 79 | 0.655296 | false |
astropy/astropy | astropy/nddata/mixins/ndslicing.py | 11 | 4359 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# This module implements the Slicing mixin to the NDData class.
from astropy import log
from astropy.wcs.wcsapi import (BaseLowLevelWCS, BaseHighLevelWCS,
SlicedLowLevelWCS, HighLevelWCSWrapper)
__all__ = ['NDSlicingMixin... | bsd-3-clause | -2,427,317,883,012,298,000 | 32.022727 | 79 | 0.586144 | false |
bioinfo-core-BGU/neatseq-flow | bin/neatseq_flow.py | 1 | 5716 | #!/usr/bin/env python3
""" Create the pipeline scripts
This script inits the 'NeatSeq-Flow' class that does all the script creating
"""
__author__ = "Menachem Sklarz"
__version__ = "1.6.0"
__affiliation__ = "Bioinformatics Core Unit, NIBN, Ben Gurion University"
import os
import sys
import shutil
import argpars... | gpl-3.0 | 506,171,317,172,829,760 | 45.479675 | 138 | 0.638034 | false |
matthiasdiener/spack | var/spack/repos/builtin/packages/vtkh/package.py | 3 | 4255 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | 5,576,999,453,130,666,000 | 41.55 | 78 | 0.584724 | false |
adlius/osf.io | addons/box/apps.py | 14 | 1027 | from addons.base.apps import BaseAddonAppConfig, generic_root_folder
from addons.box.settings import MAX_UPLOAD_SIZE
box_root_folder = generic_root_folder('box')
class BoxAddonAppConfig(BaseAddonAppConfig):
name = 'addons.box'
label = 'addons_box'
full_name = 'Box'
short_name = 'box'
owners = ['... | apache-2.0 | -3,704,457,776,115,016,700 | 24.675 | 69 | 0.661149 | false |
SeverTopan/AdjSim | adjsim/core.py | 1 | 15436 | """Core adjsim module.
This module contains the core features of the ABM engine, specifically, the Simulation and Agent objects
and the facilities to allow them to interact with one another.
Designed and developed by Sever Topan.
"""
# Standard.
import random
import time
import sys
import uuid
import copy
# Third p... | gpl-3.0 | 2,943,923,704,895,294,500 | 30.183838 | 116 | 0.61985 | false |
popazerty/gui-test | lib/python/Plugins/Plugin.py | 21 | 3836 | from Components.config import ConfigSubsection, config
import os
config.plugins = ConfigSubsection()
class PluginDescriptor:
"""An object to describe a plugin."""
# where to list the plugin. Note that there are different call arguments,
# so you might not be able to combine them.
# supported arguments are:
# ... | gpl-2.0 | 5,470,608,534,162,150,000 | 28.736434 | 145 | 0.725756 | false |
ddaygold/music-controller | musicctl.py | 1 | 2623 | import imaplib
import smtplib
import sys
import email
import email.message as emailmessage
import subprocess
import alsaaudio
import logging
import argparse
import datetime
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-c','--credfile',required=True)
args = parser.parse_args()
''... | gpl-2.0 | -2,362,707,196,964,738,600 | 30.60241 | 137 | 0.635532 | false |
bioinfo-core-BGU/neatseq-flow | neatseq_flow/step_classes/mapping/samtools_old.py | 2 | 17385 | # -*- coding: UTF-8 -*-
"""
``samtools_old`` :sup:`*`
-----------------------------------------------------------------
:Authors: Menachem Sklarz
:Affiliation: Bioinformatics core facility
:Organization: National Institute of Biotechnology in the Negev, Ben Gurion University.
A class that defines a module for executi... | gpl-3.0 | 563,642,634,171,199,600 | 37.208791 | 250 | 0.557032 | false |
simplecrypto/deploy_helper | deploy/deploy.py | 1 | 9542 | #!/usr/bin/env python
import argparse
import time
import datetime
import os
import json
import sys
import subprocess
import logging
from pprint import pformat
class Deploy(object):
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[... | isc | -5,027,464,528,203,097,000 | 40.307359 | 117 | 0.563089 | false |
noironetworks/heat | heat/common/param_utils.py | 3 | 2815 | #
# 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
# ... | apache-2.0 | 1,304,535,237,187,406,600 | 32.511905 | 78 | 0.573357 | false |
R4stl1n/allianceauth | allianceauth/services/modules/phpbb3/migrations/0002_service_permissions.py | 3 | 2133 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-02 05:59
from __future__ import unicode_literals
from django.db import migrations
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth.management import create_permissions
import logging
logger ... | gpl-2.0 | 7,692,667,226,943,113,000 | 33.967213 | 91 | 0.66526 | false |
gmr/tredis | tredis/strings.py | 1 | 28551 | """Redis String Commands Mixin"""
# Python 2 support for ascii()
if 'ascii' not in dir(__builtins__): # pragma: nocover
from tredis.compat import ascii
BITOP_AND = b'&'
"""Use for specifying a bitwise AND operation with
:meth:`~tredis.RedisClient.bitop`"""
BITOP_OR = b'|'
"""Use for specifying a bitwise OR oper... | bsd-3-clause | 3,319,824,002,011,939,000 | 40.080576 | 79 | 0.620784 | false |
yzl0083/orange | Orange/multilabel/br.py | 6 | 4998 | """
.. index:: Binary Relevance Learner
***************************************
Binary Relevance Learner
***************************************
The most basic problem transformation method for multi-label classification
is the Binary Relevance method.
It learns :math:`|L|` binary classifiers :math:`H_l:X \\rightar... | gpl-3.0 | -1,425,528,767,165,137,000 | 37.160305 | 138 | 0.622049 | false |
StefanSimis/PyTrios | pytrios/gpslib.py | 1 | 15424 | """
Multithreaded GPS library
Terry C provided this
"""
import datetime
import logging
import re
import threading
import time
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.WARNING)
logger = logging.getLogger(__name__)
class GPSParser(object):
"""
Class which contains a parse and check... | gpl-3.0 | -3,867,963,287,236,672,500 | 28.661538 | 81 | 0.531055 | false |
Arno-Nymous/pyload | module/plugins/hoster/UserscloudCom.py | 7 | 2796 | # -*- coding: utf-8 -*-
import re
from module.network.CookieJar import CookieJar
from module.network.HTTPRequest import HTTPRequest
from ..internal.SimpleHoster import SimpleHoster
class BIGHTTPRequest(HTTPRequest):
"""
Overcome HTTPRequest's load() size limit to allow
loading very big web pages by ove... | gpl-3.0 | 2,837,583,721,341,577,700 | 31.894118 | 121 | 0.574034 | false |
perseas/Pyrseas | tests/dbobject/test_textsearch.py | 1 | 11858 | # -*- coding: utf-8 -*-
"""Test text search objects"""
import pytest
from pyrseas.testutils import DatabaseToMapTestCase
from pyrseas.testutils import InputMapToSqlTestCase, fix_indent
CREATE_TSC_STMT = "CREATE TEXT SEARCH CONFIGURATION sd.tsc1 (PARSER = tsp1)"
CREATE_TSD_STMT = "CREATE TEXT SEARCH DICTIONARY sd.tsd... | bsd-3-clause | 1,286,046,031,707,206,000 | 41.963768 | 79 | 0.616714 | false |
ocefpaf/ulmo | test/usace_rivergages_test.py | 1 | 1420 | import datetime
import ulmo
import test_util
def test_get_stations():
stations_file = 'usace/rivergages/get_stations.cfm'
with test_util.mocked_urls(stations_file):
stations = ulmo.usace.rivergages.get_stations()
assert 1900 <= len(stations) <= 2000
assert 'CE7F42E6' in stations
def test_g... | bsd-3-clause | 2,401,182,916,299,397,600 | 29.212766 | 83 | 0.592254 | false |
rcbops/keystone-buildpackage | keystone/contrib/extensions/service/raxgrp/api.py | 2 | 3825 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 OpenStack LLC.
# 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/LICEN... | apache-2.0 | -3,389,350,394,871,357,400 | 26.321429 | 77 | 0.694641 | false |
synopat/pyload | module/plugins/captcha/AdsCaptcha.py | 7 | 2037 | # -*- coding: utf-8 -*-
import random
import re
from ..internal.CaptchaService import CaptchaService
class AdsCaptcha(CaptchaService):
__name__ = "AdsCaptcha"
__type__ = "captcha"
__version__ = "0.14"
__status__ = "testing"
__description__ = """AdsCaptcha captcha service plugin"""
__license... | gpl-3.0 | -7,251,964,248,703,332,000 | 34.12069 | 81 | 0.542955 | false |
subramani95/neutron | neutron/tests/unit/services/loadbalancer/drivers/test_agent_driver_base.py | 3 | 32512 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2013 New Dream Network, LLC (DreamHost)
#
# 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/li... | apache-2.0 | 4,506,871,249,298,449,400 | 42.176627 | 79 | 0.495417 | false |
xiaolonw/fast-rcnn_flow2 | lib/datasets/factory.py | 1 | 1145 | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Factory method for easily getting imdbs by name."""
__sets = {}
# ... | mit | 5,836,217,457,901,340,000 | 27.625 | 62 | 0.582533 | false |
Inspq/ansible | lib/ansible/modules/windows/win_environment.py | 32 | 3191 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Jon Hawkesworth (@jhawkesworth) <figs@unity.demon.co.uk>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eith... | gpl-3.0 | 8,352,287,211,134,466,000 | 32.946809 | 113 | 0.705108 | false |
amonapp/amon | amon/apps/dashboards/urls.py | 2 | 1600 | from django.conf.urls import url
from amon.apps.dashboards import views
from amon.apps.dashboards import api
urlpatterns = (
url(r'^$', views.index, name='dashboards'),
url(r'^create/$', views.create_dashboard, name='create_dashboard'),
url(r'^edit/(?P<dashboard_id>\w+)/$', views.edit_dashboard, name='ed... | agpl-3.0 | 4,939,081,914,387,220,000 | 46.058824 | 115 | 0.663125 | false |
jblackburne/scikit-learn | sklearn/datasets/mldata.py | 8 | 7848 | """Automatically download MLdata datasets."""
# Copyright (c) 2011 Pietro Berkes
# License: BSD 3 clause
import os
from os.path import join, exists
import re
import numbers
try:
# Python 2
from urllib2 import HTTPError
from urllib2 import quote
from urllib2 import urlopen
except ImportError:
# Pyt... | bsd-3-clause | -5,963,252,273,811,201,000 | 31.7 | 79 | 0.623089 | false |
iCarto/siga | extScripting/scripts/jython/Lib/xml/dom/TreeWalker.py | 3 | 6802 | ########################################################################
#
# File Name: TreeWalker.py
#
# Documentation: http://docs.4suite.com/4DOM/TreeWalker.py.html
#
"""
Tree Walker from DOM Level 2. Allows multi-directional iteration over nodes.
WWW: http://4suite.com/4DOM e-mail: suppor... | gpl-3.0 | -3,414,826,039,823,183,000 | 36.169399 | 134 | 0.567627 | false |
rockstor/rockstor-core | src/rockstor/storageadmin/south_migrations/0043_auto__add_field_emailclient_port.py | 5 | 43269 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'EmailClient.port'
db.add_column(u'storageadmin_emailclien... | gpl-3.0 | -1,445,510,853,986,478,800 | 77.816029 | 277 | 0.543322 | false |
3dcauldron/repo-to-rename-2 | userapi/views.py | 1 | 2060 | from users.models import User
from django.http import Http404
from userapi.serializers import UserSerializer
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAdminUser
#Created using the tutorial at http://... | mit | 5,640,777,558,705,504,000 | 33.333333 | 78 | 0.668447 | false |
AtsushiSakai/PythonRobotics | PathPlanning/ProbabilisticRoadMap/probabilistic_road_map.py | 1 | 7382 | """
Probabilistic Road Map (PRM) Planner
author: Atsushi Sakai (@Atsushi_twi)
"""
import random
import math
import numpy as np
import matplotlib.pyplot as plt
from scipy.spatial import cKDTree
# parameter
N_SAMPLE = 500 # number of sample_points
N_KNN = 10 # number of edge from one sampled point
MAX_EDGE_LEN = 3... | mit | -103,944,456,182,888,080 | 24.108844 | 108 | 0.523029 | false |
whaleygeek/osmc | recipes/fence.py | 1 | 8116 | # fence.py 17/03/2015 D.J.Whale
#
# a Minecraft wrapper, that validates all coordinates around a 3D fence.
# coordinates inside the fence will delegate to the real minecraft interface.
# coordinates outside will call a buzz() method and squash the call.
#
# This is for building electric fences around sandboxed regions... | mit | 4,879,673,079,171,629,000 | 25.697368 | 93 | 0.559142 | false |
coteyr/home-assistant | tests/components/test_mqtt.py | 2 | 10552 | """
tests.components.test_mqtt
~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests MQTT component.
"""
from collections import namedtuple
import unittest
from unittest import mock
import socket
import homeassistant.components.mqtt as mqtt
from homeassistant.const import (
EVENT_CALL_SERVICE, ATTR_DOMAIN, ATTR_SERVICE, EVENT_HOMEASS... | mit | 8,665,669,149,904,865,000 | 37.510949 | 79 | 0.625379 | false |
google-research/falken | service/learner/brains/saved_model_to_tflite_model_test.py | 1 | 13046 | # Copyright 2021 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 agreed to in writing, ... | apache-2.0 | -3,998,864,741,181,076,000 | 40.415873 | 80 | 0.620803 | false |
oshtaier/robottelo | tests/foreman/cli/test_gpgkey.py | 1 | 46636 | # -*- encoding: utf-8 -*-
# vim: ts=4 sw=4 expandtab ai
# pylint: disable=R0904
"""Test class for GPG Key CLI"""
from ddt import ddt
from fauxfactory import gen_string, gen_alphanumeric, gen_integer
from robottelo.cli.factory import CLIFactoryError, make_gpg_key, make_org
from robottelo.cli.gpgkey import GPGKey
from ... | gpl-3.0 | 647,027,988,911,771,600 | 24.318132 | 79 | 0.589094 | false |
schtibe/django-rest-framework-json-api | example/tests/integration/test_model_resource_name.py | 4 | 5946 | import pytest
from django.core.urlresolvers import reverse
from example.tests.utils import load_json
from example import models, serializers, views
pytestmark = pytest.mark.django_db
class _PatchedModel:
class JSONAPIMeta:
resource_name = "resource_name_from_JSONAPIMeta"
def _check_resource_and_relati... | bsd-2-clause | -3,258,020,664,099,435,500 | 42.40146 | 139 | 0.685166 | false |
Gazer022/bitcoin | contrib/devtools/update-translations.py | 22 | 8083 | #!/usr/bin/env python
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Run this script from the root of the repository to update all translations from
transifex.
It will do the follo... | mit | -3,276,723,175,113,380,400 | 37.860577 | 124 | 0.621923 | false |
kishikawakatsumi/Mozc-for-iOS | src/__init__.py | 1 | 1579 | # -*- coding: utf-8 -*-
# Copyright 2010-2014, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this... | apache-2.0 | 9,181,313,976,961,226,000 | 49.935484 | 72 | 0.773274 | false |
MalloyPower/python-compliance | analysis-code/feature-finder/find_features.py | 1 | 8880 | #!/usr/bin/python3
''' Run the front-end in this directory over the Qualitas suite.
Assume the front-end is a feature-counter, so it returns totals
per file; we accumulate these and print totals per application.
This is an old clone of the qualitas_test.py file used in multitest.
'''
from __future__ impo... | mit | -2,061,717,688,297,375,500 | 37.441558 | 86 | 0.596622 | false |
GeoCat/QGIS | python/plugins/db_manager/db_plugins/gpkg/plugin.py | 5 | 10587 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
Name : DB Manager
Description : Database manager plugin for QGIS
Date : May 23, 2011
copyright : (C) 2011 by Giuseppe Sucameli
email : brush.tyler@... | gpl-2.0 | -2,452,361,057,841,515,500 | 32.716561 | 133 | 0.616039 | false |
rubenvb/skia | tools/skp/page_sets/skia_ynevsvg_desktop.py | 6 | 1260 | # Copyright 2015 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.
# pylint: disable=W0401,W0614
from telemetry import story
from telemetry.page import page as page_module
from telemetry.page import shared_page_state
clas... | bsd-3-clause | 2,906,132,539,367,698,000 | 29 | 76 | 0.706349 | false |
benley/Mathics | test/test_console.py | 2 | 2071 | import os
import sys
import pexpect
import unittest
class ConsoleTest(unittest.TestCase):
def setUp(self):
os.environ["TERM"] = "dumb"
self.console = pexpect.spawn('python2 mathics/main.py --color NOCOLOR')
def testLaunch(self):
cons = self.console
self.assertRegexpMatches(co... | gpl-3.0 | 6,230,428,200,777,340,000 | 29.014493 | 79 | 0.53887 | false |
afrolov1/nova | nova/volume/encryptors/__init__.py | 16 | 2378 | # Copyright (c) 2013 The Johns Hopkins University/Applied Physics Laboratory
# 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/... | apache-2.0 | 2,015,992,177,406,842,400 | 37.354839 | 78 | 0.640454 | false |
SciTools/iris | lib/iris/tests/unit/common/lenient/test__lenient_client.py | 3 | 6294 | # Copyright Iris contributors
#
# This file is part of Iris and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
"""
Unit tests for the :func:`iris.common.lenient._lenient_client`.
"""
# Import iris.tests first so that some things can be ... | lgpl-3.0 | 2,178,220,996,251,594,500 | 33.582418 | 79 | 0.635526 | false |
Frankkkkk/arctic | arctic/arctic.py | 1 | 19601 | import logging
import pymongo
from pymongo.errors import OperationFailure, AutoReconnect
import threading
from ._util import indent
from .auth import authenticate, get_auth
from .decorators import mongo_retry
from .exceptions import LibraryNotFoundException, ArcticException, QuotaExceededException
from .hooks import ... | lgpl-2.1 | 300,281,165,316,110,100 | 36.549808 | 119 | 0.579664 | false |
rlr/fjord | vendor/packages/translate-toolkit/translate/filters/checks.py | 3 | 68988 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2004-2011 Zuza Software Foundation
# 2013 F Wolff
#
# This file is part of translate.
#
# translate 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; e... | bsd-3-clause | -1,620,984,560,167,256,800 | 35.039707 | 136 | 0.586271 | false |
TUW-GEO/OGRSpatialRef3D | gdal-1.10.0/swig/python/scripts/gdal_retile.py | 1 | 30866 | #!/usr/bin/env python
###############################################################################
# $Id: gdal_retile.py 24037 2012-02-28 17:21:35Z rouault $
#
# Purpose: Module for retiling (merging) tiles and building tiled pyramids
# Author: Christian Meuller, christian.mueller@nvoe.at
# UseDirForEachRow supp... | mit | -6,382,919,717,801,504,000 | 29.835165 | 116 | 0.610834 | false |
cysuncn/python | spark/crm/PROC_A_ANALYSIS_INFO.py | 1 | 3852 | #coding=UTF-8
from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext
from pyspark.sql.types import *
from datetime import date, datetime, timedelta
import sys, re, os
st = datetime.now()
conf = SparkConf().setAppName('PROC_A_ANALYSIS_INFO').setMaster(sys.argv[2])
sc = SparkContext(conf = conf)
sc.se... | gpl-3.0 | -7,797,813,515,775,515,000 | 42.953488 | 172 | 0.573545 | false |
devs1991/test_edx_docmode | venv/lib/python2.7/site-packages/celery/task/__init__.py | 6 | 1743 | # -*- coding: utf-8 -*-
"""
celery.task
~~~~~~~~~~~
This is the old task module, it should not be used anymore,
import from the main 'celery' module instead.
If you're looking for the decorator implementation then that's in
``celery.app.base.Celery.task``.
"""
from __future__ import absolute_i... | agpl-3.0 | 6,246,125,139,671,379,000 | 28.542373 | 74 | 0.624785 | false |
KaranToor/MA450 | google-cloud-sdk/lib/surface/compute/url_maps/add_host_rule.py | 3 | 4320 | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | apache-2.0 | -3,303,266,660,240,219,600 | 34.409836 | 94 | 0.654861 | false |
alfanugraha/LUMENS-repo | processing/GroupStats/help/source/conf.py | 2 | 7034 | # -*- coding: utf-8 -*-
#
# groupstats documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 12 17:11:03 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | gpl-2.0 | 8,135,983,765,758,161,000 | 31.564815 | 80 | 0.708985 | false |
maddox/home-assistant | tests/components/automation/test_event.py | 7 | 2561 | """
tests.test_component_demo
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests demo component.
"""
import unittest
import homeassistant.core as ha
import homeassistant.components.automation as automation
import homeassistant.components.automation.event as event
from homeassistant.const import CONF_PLATFORM
class TestAutomationEve... | mit | -6,792,689,384,429,014,000 | 31.833333 | 75 | 0.582585 | false |
didrocks/snapcraft | snapcraft/plugins/nil.py | 13 | 1196 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2015 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the h... | gpl-3.0 | -8,811,879,237,259,613,000 | 30.473684 | 77 | 0.695652 | false |
awacha/credolib | credolib/io.py | 1 | 4915 | __all__ = ['load_headers', 'getsascurve', 'getsasexposure', 'getheaders', 'getdists', 'filter_headers', 'load_exposure',
'load_mask']
from typing import List, Tuple, Union
import numpy as np
from IPython.core.getipython import get_ipython
from sastool.classes2.curve import Curve
from sastool.classes2.exposu... | bsd-3-clause | -4,738,564,507,141,617,000 | 36.519084 | 120 | 0.603052 | false |
juliandev/SIFTER | bin/scripts/sifter_prepare.py | 2 | 35833 | #!/usr/bin/python
import _mysql as mysql
import _mysql_exceptions as mysql_exceptions
import MySQLdb.cursors
import os
import pickle
import numpy as np
import sys
import StringIO
from scipy.misc import comb
import getopt
import csv
import re
import subprocess
import random
import glob
def usage():
print "\n-------... | gpl-3.0 | 4,171,967,167,763,337,700 | 41.405917 | 286 | 0.549159 | false |
jnishi/chainer | docs/source/_autosummary_check.py | 6 | 1109 | import inspect
import os
import types
import chainer.functions
import chainer.links
def _is_rst_exists(entity):
return os.path.exists('source/reference/generated/{}.rst'.format(entity))
def check(app, exception):
missing_entities = []
missing_entities += [
name for name in _list_chainer_functi... | mit | 4,384,092,957,385,267,700 | 25.404762 | 77 | 0.625789 | false |
eufarn7sp/egads-eufar | egads/thirdparty/quantities/constants/quantum.py | 4 | 5836 | # -*- coding: utf-8 -*-
"""
"""
from __future__ import absolute_import
from ._utils import _cd
from ..unitquantity import UnitConstant
molar_Planck_constant = UnitConstant(
'molar_Planck_constant',
_cd('molar Planck constant'),
symbol='(N_A*h)',
u_symbol='(N_A·h)'
)
molar_Planck_constant_times_c = Un... | bsd-3-clause | -8,252,205,652,304,337,000 | 26.712919 | 69 | 0.659876 | false |
jCliveStewart/robotframework-DebugUI | build/lib/DebugUiLibrary/DebugUI.py | 2 | 16365 | #!/usr/bin/python
# ---------------------------------------------------------------------------------------------------
# Copyright 2015 UCAS
#
# 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 | -552,915,443,083,632,600 | 52.136364 | 158 | 0.575252 | false |
btnpushnmunky/pygallerycreator | pygallerycreator/bootstrap_html.py | 1 | 3883 | html = """
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Gallery</title>
<meta name="description" content="The HTML5 Herald">
<meta name="author" content="SitePoint">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha... | mit | -571,087,539,570,992,900 | 40.763441 | 212 | 0.617306 | false |
bierschenk/ode | ode/integrators.py | 1 | 8839 | # -*- coding: utf-8 -*-
# integrators
__all__ = [
'Euler', 'euler',
'Verlet', 'verlet',
'BackwardEuler', 'backwardeuler',
]
import numpy as np
class Integrator:
'''Defines reusable attribute settors where checking is needed'''
def setdfun(self, dfun):
'''check out... | mit | -9,197,420,163,542,815,000 | 36.138655 | 81 | 0.559679 | false |
imoseyon/leanKernel-d2usc-deprecated | external/webkit/Tools/Scripts/webkitpy/layout_tests/port/chromium.py | 15 | 22631 | #!/usr/bin/env python
# Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ... | gpl-2.0 | -4,713,755,449,226,358,000 | 40.754613 | 95 | 0.588043 | false |
hoover/snoop | snoop/site/settings/common.py | 1 | 1968 | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
ALLOWED_HOSTS = []
INSTALLED_APPS = [
'snoop',
]
MIDDLEWARE_CLASSES = [
]
ROOT_URLCONF = 'snoop.site.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
},
... | mit | -8,808,912,177,232,153,000 | 19.93617 | 70 | 0.550813 | false |
yaricom/brainhash | src/experiment_cA8_dt_th_al_ah_bl_bh.py | 1 | 2023 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
The experiment with 10 Hz/5Hz, wisp, attention, 70, cA 8, delta, theta, alpha low, alpha high, beta low, beta high, batch size = 5 and
balanced data set
@author: yaric
"""
import experiment as ex
import config
from time import time
n_hidden = 8
experiment_name = '... | gpl-3.0 | 2,742,979,014,972,936,000 | 31.629032 | 135 | 0.63915 | false |
Subsets and Splits
Gradio Code Samples
Limits the results to entries containing the word 'gradio' in the repo_name, content, or path, providing a filtered subset of the dataset.