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 |
|---|---|---|---|---|---|---|---|---|---|---|
pkdevbox/trac | trac/versioncontrol/web_ui/browser.py | 2 | 44862 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2003-2014 Edgewall Software
# Copyright (C) 2003-2005 Jonas Borgström <jonas@edgewall.com>
# Copyright (C) 2005-2007 Christian Boos <cboos@edgewall.org>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as pa... | bsd-3-clause | -679,467,882,957,554,700 | 41.602089 | 79 | 0.544561 | false |
cogeorg/BlackRhino | examples/firesales_simple/networkx/algorithms/isomorphism/matchhelpers.py | 35 | 12220 | """Functions which help end users define customize node_match and
edge_match functions to use during isomorphism checks.
"""
from itertools import permutations
import types
import networkx as nx
__all__ = ['categorical_node_match',
'categorical_edge_match',
'categorical_multiedge_match',
... | gpl-3.0 | 7,606,248,243,959,091,000 | 34.317919 | 86 | 0.617512 | false |
AMObox/teammaniac | plugin.video.specto/resources/lib/resolvers/realdebrid.py | 9 | 10928 | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 lambda
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 l... | gpl-2.0 | -8,558,387,706,598,783,000 | 36.682759 | 251 | 0.59709 | false |
yast/yast-python-bindings | examples/FakeUserInput1.py | 1 | 1318 | # encoding: utf-8
from yast import import_module
import_module('UI')
from yast import *
class FakeUserInput1Client:
def main(self):
# Build dialog with one input field field, 4 Beatles buttons and an OK button.
UI.OpenDialog(
VBox(
InputField(Id("name"), "Name:"),
HBox(
... | gpl-2.0 | -1,673,797,786,104,484,000 | 25.897959 | 84 | 0.540971 | false |
darp/plot-tools | lib/plots/LinePlot.py | 1 | 1284 | from lib.plots.AbstractPlot import AbstractPlot
import numpy as np
class LinePlot(AbstractPlot):
def __init__( self ):
params = dict()
params['xlim'] = [0,5]
params['ylim'] = [0,20]
params['xlabel'] = 'xlabel'
params['ylabel'] = 'ylabel'
AbstractPlot.__init__( self,... | gpl-3.0 | -5,991,547,424,446,628,000 | 28.204545 | 54 | 0.521028 | false |
venkateshdaram434/augmented-traffic-control | atc/django-atc-profile-storage/setup.py | 16 | 2610 | #!/usr/bin/env python
#
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
#
... | bsd-3-clause | 3,907,256,152,483,308,000 | 30.829268 | 78 | 0.640613 | false |
mailmanindinc/qualitybots | src/appengine/common/gql_util.py | 26 | 1494 | #!/usr/bin/python2.4
#
# Copyright 2011 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... | apache-2.0 | 252,499,380,492,406,270 | 28.88 | 74 | 0.72423 | false |
teto/mptcpnetlink | daemon/daemon.py | 1 | 8902 | #!/usr/bin/python3
import sys
import netlink.capi as nl
import netlink.genl.capi as genl
import traceback
import logging
import argparse
import struct
import socket
import subprocess
import signal
import binascii
#
logger = logging.getLogger( __name__ )
logger.setLevel( logging.DEBUG )
# logger= logging
# print ("hand... | gpl-3.0 | -4,051,952,761,526,717,000 | 23.865922 | 97 | 0.657043 | false |
isaachenrion/jets | src/proteins/test/test_argument_converter.py | 1 | 1879 | import os
from .test_monitors import test_monitor_collection
def test_argument_converter(args):
'''
Takes an argparse namespace, and converts it into argument dictionaries.
Each argument dictionary is fed into a specific function or class in the
training script. e.g. admin_kwargs is the set of argument... | bsd-3-clause | -5,814,255,701,661,723,000 | 25.842857 | 76 | 0.604577 | false |
tp9/misc_python_projects | tictactoe.py | 1 | 3517 | computer = "X"; human = "O"
scan = [[0,1,2],[3,4,5],[6,7,8], \
[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]]
# 0 1 2
# 3 4 5
# 6 7 8
priority = [4, 0,2,8,6, 1,5,7,3]
def clrArray():
a = []
for i in range(9):
a.append(0)
return a
def print_board(board):
def mark(i):
if board[i] == 0:
... | mit | -4,169,633,967,128,925,700 | 26.271318 | 60 | 0.497299 | false |
ramusus/django-vkontakte-wall | vkontakte_wall/migrations/0013_change_m2m_to_m2m_history.py | 1 | 14633 | # -*- 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 'Post.like_users.through.time_from'
db.add_column('vkonta... | bsd-3-clause | -1,909,253,257,071,442,400 | 78.967213 | 197 | 0.572405 | false |
MediaKraken/MediaKraken_Deployment | source/subprogram_metadata_games.py | 1 | 21188 | """
Copyright (C) 2015 Quinn D Granfor <spootdev@gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
... | gpl-3.0 | 8,125,929,116,995,987,000 | 45.772627 | 113 | 0.517604 | false |
SnabbCo/neutron | neutron/extensions/vpnaas.py | 9 | 18214 | # (c) Copyright 2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses... | apache-2.0 | -8,009,310,376,805,833,000 | 36.788382 | 79 | 0.519985 | false |
leandrotoledo/python-telegram-bot | telegram/files/animation.py | 2 | 5198 | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2021
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | lgpl-3.0 | 2,308,843,740,912,829,000 | 36.941606 | 96 | 0.633513 | false |
Ledoux/ShareYourSystem | Pythonlogy/build/lib/ShareYourSystem/Standards/Itemizers/Parenter/__init__.py | 2 | 21776 | # -*- coding: utf-8 -*-
"""
<DefineSource>
@Date : Fri Nov 14 13:20:38 2014 \n
@Author : Erwan Ledoux \n\n
</DefineSource>
A Parenter completes the list of grand-parent nodes that
a child node could have. It acts only at one level.
"""
#<DefineAugmentation>
import ShareYourSystem as SYS
BaseModuleStr="ShareYourS... | mit | -5,161,058,367,534,580,000 | 19.051565 | 132 | 0.654252 | false |
djeo94/CouchPotatoServer | couchpotato/core/media/_base/providers/torrent/scenetime.py | 23 | 5678 | import traceback
from bs4 import BeautifulSoup
from couchpotato.core.helpers.encoding import tryUrlencode, toUnicode
from couchpotato.core.helpers.variable import tryInt
from couchpotato.core.logger import CPLog
from couchpotato.core.media._base.providers.torrent.base import TorrentProvider
log = CPLog(__name__)
c... | gpl-3.0 | -3,218,943,192,358,938,000 | 40.144928 | 963 | 0.527651 | false |
Architektor/PySnip | venv/lib/python2.7/site-packages/twisted/conch/tap.py | 7 | 3144 | # -*- test-case-name: twisted.conch.test.test_tap -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Support module for making SSH servers with twistd.
"""
from twisted.conch import unix
from twisted.conch import checkers as conch_checkers
from twisted.conch.openssh_compat import factory
... | gpl-3.0 | 1,169,508,590,292,866,600 | 35.988235 | 78 | 0.647265 | false |
monkeysecurity/bozor | bozor/aws/iam/role.py | 1 | 2398 | from botor import Botor
from botor.aws.iam import get_role_managed_policies, get_role_inline_policies, get_role_instance_profiles
from bozor.aws.iam import _get_name_from_structure, modify, _conn_from_args
def _get_base(role, **conn):
"""
Determine whether the boto get_role call needs to be made or if we alre... | apache-2.0 | 4,586,827,074,024,530,400 | 35.907692 | 108 | 0.638032 | false |
Spoffy/DreamDaemon-Control-Scripts | config.py | 2 | 1034 | import os.path
import SS13.hooks
class Config:
def __init__(self, **kwargs):
if kwargs:
self.__dict__ = kwargs
def items(self):
return self.__dict__.items()
def get_dmb_path(self):
return os.path.join(self.path, self.dmb)
def run_hook(self, hook_name):
if self.hooks and hook_name in s... | gpl-2.0 | -5,926,989,017,683,442,000 | 21.478261 | 53 | 0.659574 | false |
hesseltuinhof/mxnet | example/dsd/sparse_sgd.py | 1 | 7254 | from mxnet.ndarray import NDArray, topk, abs as NDabs
from mxnet.optimizer import SGD, register
import logging
log = 'Sparsity Update:\t'
@register
class SparseSGD(SGD):
"""The SGD optimizer with weight pruning.
This class implements the optimizer described in the paper *DSD: Dense-Sparse-Dense Training for
... | apache-2.0 | -7,886,738,699,163,366,000 | 41.670588 | 137 | 0.600221 | false |
joeythesaint/yocto-autobuilder | lib/python2.7/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/util/__init__.py | 5 | 5337 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""".. currentmodule:: migrate.versioning.util"""
import warnings
import logging
from decorator import decorator
from pkg_resources import EntryPoint
from sqlalchemy import create_engine
from sqlalchemy.engine import Engine
from sqlalchemy.pool import StaticPool
from migr... | gpl-2.0 | 1,236,873,553,558,883,600 | 28.65 | 134 | 0.63294 | false |
clemkoa/scikit-learn | examples/cluster/plot_kmeans_digits.py | 46 | 4491 | """
===========================================================
A demo of K-Means clustering on the handwritten digits data
===========================================================
In this example we compare the various initialization strategies for
K-means in terms of runtime and quality of the results.
As the gr... | bsd-3-clause | 3,329,043,012,926,230,500 | 34.642857 | 79 | 0.603652 | false |
themurph/openshift-tools | openshift/installer/vendored/openshift-ansible-3.5.28/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py | 5 | 33144 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# pylint: disable=line-too-long,invalid-name
"""For details on this module see DOCUMENTATION (below)"""
import datetime
import io
import os
import subprocess
import yaml
from six.moves import configparser
from ansible.module_utils.basic import AnsibleModule
try:
# You ... | apache-2.0 | -3,453,586,666,350,126,000 | 38.410226 | 213 | 0.582338 | false |
rmfitzpatrick/ansible | lib/ansible/modules/storage/netapp/sf_account_manager.py | 39 | 8755 | #!/usr/bin/python
# (c) 2017, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | -9,155,482,523,556,984,000 | 31.1875 | 104 | 0.562193 | false |
susilehtola/psi4 | tests/pytests/test_erisieve.py | 7 | 4496 | import pytest
import psi4
import itertools
from .utils import compare_integers, compare_values
pytestmark = pytest.mark.quick
def test_no_screening_schwarz():
"""Checks the number of shell quartets screened with Schwarz screening.
No shell quartets should be screened with a threshold of 0.0"""
mol = psi... | lgpl-3.0 | -5,319,509,434,290,676,000 | 32.552239 | 104 | 0.609431 | false |
heenbo/mosquitto-heenbo | test/lib/03-publish-qos0-no-payload.py | 7 | 2173 | #!/usr/bin/env python
# Test whether a client sends a correct PUBLISH to a topic with QoS 0 and no payload.
# The client should connect to port 1888 with keepalive=60, clean session set,
# and client id publish-qos0-test-np
# The test will send a CONNACK message to the client with rc=0. Upon receiving
# the CONNACK a... | gpl-3.0 | -4,717,451,930,396,633,000 | 30.492754 | 129 | 0.705016 | false |
alanconway/dispatch | console/test/mock/nexthop.py | 4 | 4808 | #!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... | apache-2.0 | 8,123,882,340,375,102,000 | 32.158621 | 116 | 0.517887 | false |
spring-week-topos/cinder-week | cinder/tests/test_vmware_volumeops.py | 3 | 39031 | # Copyright (c) 2014 VMware, 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... | apache-2.0 | -2,167,145,331,251,935,200 | 46.890798 | 78 | 0.546796 | false |
nhuntwalker/astroML | astroML/tests/test_filters.py | 3 | 1036 | import numpy as np
from numpy.testing import assert_allclose
from astroML.filters import savitzky_golay, wiener_filter
def test_savitzky_golay():
y = np.zeros(100)
y[::2] = 1
f = savitzky_golay(y, window_size=3, order=1)
assert_allclose(f, (2 - y) / 3.)
def test_savitzky_golay_fft():
y = np.rand... | bsd-2-clause | -3,242,995,103,012,016,000 | 24.268293 | 63 | 0.586873 | false |
mqingyn/torngas | torngas/mixins/miiddleware.py | 5 | 1855 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class MiddlewareHandlerMixin(object):
_url_kwargs = {}
def __init__(self, application, request, **kwargs):
if kwargs:
self._url_kwargs.update(kwargs)
kwargs.clear()
super(MiddlewareHandlerMixin, self).__init__(application,... | bsd-3-clause | 6,188,107,260,915,439,000 | 32.037736 | 89 | 0.639063 | false |
Multimac/ansible-modules-extras | cloud/cloudstack/cs_vmsnapshot.py | 24 | 9084 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2015, René Moser <mail@renemoser.net>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lice... | gpl-3.0 | -2,134,727,779,371,979,800 | 28.296774 | 119 | 0.619247 | false |
daicang/Leetcode-solutions | 1004-max-consecutive-ones-iii.py | 1 | 1970 | class Solution(object):
def longestOnes(self, A, K):
"""
:type A: List[int]
:type K: int
:rtype: int
"""
# DP, TLE
#
# length = len(A)
# dp = []
# for _ in range(K+1):
# dp.append([0]*length)
# for step in range(K+... | mit | -4,802,826,370,369,503,000 | 24.921053 | 63 | 0.316751 | false |
csdms/dakota | dakotathon/utils.py | 1 | 6305 | #! /usr/bin/env python
"""Helper functions for processing Dakota parameter and results files."""
import os
import subprocess
import re
import yaml
import numpy as np
import collections
def is_dakota_installed():
"""Check whether Dakota is installed and in the execution path.
Returns
-------
bool
... | mit | -1,859,121,270,276,616,400 | 21.598566 | 73 | 0.580492 | false |
Keisuke69/libcloud | libcloud/httplib_ssl.py | 1 | 5693 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | 7,246,060,071,857,471,000 | 34.360248 | 84 | 0.58651 | false |
q14035/pimouse_ros | scripts/motors1.py | 1 | 1702 | #!/usr/bin/env python
#encoding: utf8
import sys, rospy, math
from pimouse_ros.msg import MotorFreqs
from geometry_msgs.msg import Twist
class Motor():
def __init__(self):
if not self.set_power(True): sys.exit(1)
rospy.on_shutdown(self.set_power)
self.sub_raw = rospy.Subscriber('motor_raw', MotorFreqs, self.ca... | gpl-3.0 | 7,478,278,535,235,567,000 | 27.366667 | 87 | 0.658637 | false |
Stanford-Online/edx-platform | openedx/core/djangoapps/credentials/management/commands/tests/test_notify_credentials.py | 9 | 5400 | """
Tests the ``notify_credentials`` management command.
"""
from __future__ import absolute_import, unicode_literals
from datetime import datetime
import mock
from django.core.management import call_command
from django.core.management.base import CommandError
from django.test import TestCase
from freezegun import fr... | agpl-3.0 | 7,781,274,588,323,939,000 | 48.541284 | 120 | 0.659074 | false |
sydneyweidman/djangotutorial | polls/migrations/0001_initial.py | 1 | 1075 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
('id', models.AutoField(verbo... | gpl-2.0 | -405,429,514,385,193,000 | 30.617647 | 114 | 0.542326 | false |
gplib/gplib | gplib/apps/externaldbs/db_router.py | 1 | 3789 | # -*- coding: utf-8 -*-
# Este archivo es parte de GPLib - http://gplib.org/
#
# GPlib es software libre desarrollado en la Facultad de Filosofía y Letras de
# la Universidad de Buenos Aires y liberado bajo los términos de la licencia
# GPLIB FILO www.gplib.org/licencia bajo los términos de GPL de GNU. Usted
# puede ... | gpl-3.0 | -5,710,859,616,506,360,000 | 48.486842 | 88 | 0.72268 | false |
Beauhurst/django | tests/template_tests/utils.py | 107 | 4023 | import functools
import os
from django.template.engine import Engine
from django.test.utils import override_settings
from django.utils.safestring import mark_safe
ROOT = os.path.dirname(os.path.abspath(__file__))
TEMPLATE_DIR = os.path.join(ROOT, 'templates')
def setup(templates, *args, **kwargs):
"""
Runs ... | bsd-3-clause | -3,874,766,148,632,897,000 | 21.305556 | 79 | 0.585554 | false |
jim-cooley/abletonremotescripts | remote-scripts/branches/VCM600_2/VCM600_2.py | 1 | 8375 | # Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_32_static/midi-remote-scripts/VCM600/VCM600.py
from __future__ import with_statement
import Live
from _Framework.ControlSurface import ControlSurface
from _Framework.InputControlElement import *
from _Framework.SliderElement import SliderElement
f... | apache-2.0 | -7,399,438,344,921,186,000 | 59.688406 | 248 | 0.712358 | false |
pixelrebel/st2 | st2common/st2common/util/sandboxing.py | 10 | 4401 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | apache-2.0 | -5,991,135,997,040,287,000 | 32.340909 | 97 | 0.702568 | false |
MPC-Berkeley/barc | workspace/src/labs/src/lab4/MovementTest.py | 2 | 2606 | #!/usr/bin/env python
# ---------------------------------------------------------------------------
# Licensing Information: You are free to use or extend these projects for
# education or reserach purposes provided that (1) you retain this notice
# and (2) you provide clear attribution to UC Berkeley, including a lin... | mit | -4,820,288,112,991,433,000 | 33.289474 | 80 | 0.575211 | false |
indeedops/dd-agent | util.py | 1 | 20612 | # (C) Datadog, Inc. 2010-2016
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
# stdlib
from collections import deque
import logging
import os
import platform
import re
import signal
import socket
import sys
import time
import types
import urllib2
import uuid
# 3p
import simplejson as json
... | bsd-3-clause | 281,054,137,435,490,940 | 32.679739 | 174 | 0.599117 | false |
sharkykh/SickRage | lib/pgi/clib/_utils.py | 19 | 6169 | # Copyright 2012,2013 Christoph Reiter
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
import os
import sys
... | gpl-3.0 | 2,926,396,634,060,663,300 | 27.962441 | 77 | 0.549522 | false |
jleclanche/django-push-notifications | push_notifications/conf/legacy.py | 2 | 5539 | from django.core.exceptions import ImproperlyConfigured
from ..settings import PUSH_NOTIFICATIONS_SETTINGS as SETTINGS
from .base import BaseConfig
__all__ = [
"LegacyConfig"
]
class empty(object):
pass
class LegacyConfig(BaseConfig):
msg = "Setup PUSH_NOTIFICATIONS_SETTINGS properly to send messages"
def ... | mit | 1,503,820,679,603,699,000 | 34.280255 | 92 | 0.723777 | false |
jjlee3/openthread | tests/scripts/thread-cert/Cert_5_6_05_NetworkDataRegisterAfterAttachRouter.py | 5 | 5400 | #!/usr/bin/python
#
# Copyright (c) 2016, The OpenThread Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# not... | bsd-3-clause | -196,297,783,018,666,000 | 39.298507 | 78 | 0.648704 | false |
shumik/skencil-c | Sketch/UI/reloaddlg.py | 1 | 2631 | # Sketch - A Python-based interactive drawing program
# Copyright (C) 1997, 1998 by Bernhard Herzog
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, o... | gpl-2.0 | 637,809,239,642,575,100 | 29.952941 | 74 | 0.708856 | false |
greyhwndz/rethinkdb | drivers/python/rethinkdb/_backup.py | 19 | 3968 | from __future__ import print_function
from copy import deepcopy
import socket, sys, string, re
try:
import rethinkdb as r
except ImportError:
print("The RethinkDB python driver is required to use this command.")
print("Please install the driver via `pip install rethinkdb`.")
exit(1)
# This file conta... | agpl-3.0 | 8,806,051,871,625,875,000 | 40.768421 | 95 | 0.644405 | false |
netscaler/horizon | openstack_dashboard/api/cinder.py | 9 | 5532 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 OpenStack Foundation
# Copyright 2012 Nebula, Inc.
# Copyright (c) 2012 X.commerce, a business unit... | apache-2.0 | -6,215,433,780,044,840,000 | 32.527273 | 79 | 0.687816 | false |
stanta/darfchain | darfchain_docker_vagrant/tests/common/test_schema.py | 3 | 6302 | """
This module is tests related to schema checking, but _not_ of granular schematic
properties related to validation.
"""
from unittest.mock import patch
from hypothesis import given
from hypothesis_regex import regex
from pytest import raises
from bigchaindb.common.exceptions import SchemaValidationError
from bigc... | gpl-3.0 | 3,962,140,046,457,637,000 | 32.88172 | 80 | 0.586163 | false |
GoogleCloudPlatformTraining/cp100-bookshelf | app-engine/bookshelf/model_datastore.py | 1 | 2619 | # Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -7,738,208,283,967,408,000 | 24.427184 | 74 | 0.668194 | false |
jrg365/gpytorch | test/variational/test_batch_decoupled_variational_strategy.py | 1 | 7445 | #!/usr/bin/env python3
import unittest
import torch
import gpytorch
from gpytorch.test.variational_test_case import VariationalTestCase
def likelihood_cls():
return gpytorch.likelihoods.GaussianLikelihood()
def strategy_cls(model, inducing_points, variational_distribution, learn_inducing_locations):
retu... | mit | 97,202,635,179,650,930 | 37.57513 | 115 | 0.670383 | false |
I-sektionen/i-portalen | wsgi/iportalen_django/iportalen/settings.py | 1 | 10793 | """
Django settings for iportalen project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build path... | mit | 8,324,262,706,845,594,000 | 28.651099 | 116 | 0.603632 | false |
mgrygoriev/CloudFerry | evacuation/actions/evacuate_vms.py | 1 | 1782 | # Copyright (c) 2015 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | apache-2.0 | 1,393,073,314,021,618,000 | 33.941176 | 76 | 0.657688 | false |
alonisser/Open-Knesset | mks/migrations/0018_recalc_avg_weekly_presence_hours.py | 15 | 10799 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
for mk in orm.Member.objects.all():
hours = orm.WeeklyPresence.objects.... | bsd-3-clause | -4,717,993,240,307,620,000 | 77.824818 | 200 | 0.543198 | false |
cisco-sas/kitty | tests/test_model_low_level_calculated.py | 1 | 26550 | # -*- coding: utf-8 -*-
# Copyright (C) 2016 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
#
# This file is part of Kitty.
#
# Kitty is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ver... | gpl-2.0 | 3,889,909,666,758,704,000 | 32.565107 | 127 | 0.612467 | false |
Psycojoker/baron | tests/test_inner_formatting_grouper.py | 2 | 5487 | #!/usr/bin/python
# -*- coding:utf-8 -*-
from baron.inner_formatting_grouper import group
def test_empty():
assert group([]) == []
def test_some_stuff():
assert group([
('INT', '1'),
('PLUS', '+', [('SPACE', ' ')], [('SPACE', ' ')]),
('INT', '2')
]) == [
('INT', '1'),
... | lgpl-3.0 | -297,596,925,344,129,500 | 23.065789 | 86 | 0.336249 | false |
MSeifert04/astropy | astropy/io/ascii/cds.py | 4 | 13486 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""An extensible ASCII table reader and writer.
cds.py:
Classes to read CDS / Vizier table format
:Copyright: Smithsonian Astrophysical Observatory (2011)
:Author: Tom Aldcroft (aldcroft@head.cfa.harvard.edu)
"""
import fnmatch
import itertools
impor... | bsd-3-clause | -2,524,261,184,576,346,600 | 40.368098 | 122 | 0.523135 | false |
tushar7795/MicroBlog | flask/lib/python2.7/site-packages/sqlalchemy/engine/__init__.py | 16 | 18803 | # engine/__init__.py
# Copyright (C) 2005-2015 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""SQL connections, SQL execution and high-level DB-API interface.
The engine pa... | bsd-3-clause | -7,058,442,239,504,188,000 | 42.424942 | 103 | 0.686167 | false |
diegocepedaw/oncall | src/oncall/api/v0/ical_key_user.py | 1 | 2738 | # Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
# See LICENSE in the project root for license information.
from falcon import HTTPNotFound, HTTPForbidden, HTTP_201
from ...auth import login_required
from .ical_key import get_ical_key, update_ical_key, delete_ical_ke... | bsd-2-clause | -4,688,494,480,453,262,000 | 31.211765 | 106 | 0.664354 | false |
svn2github/pyopt | pyOpt/pyALPSO/alpso_spm.py | 2 | 36595 | #!/usr/bin/env python
'''
alpso_spm - Parallel Python Version of the Augmented Lagrangian Particle Swarm Optimizer
This version uses mpi4py and a static allocation of objective function
evaluation to the available processes - Static Process Management (SPM).
alpso is a global optimizer which solves problems of the f... | gpl-3.0 | 6,654,524,556,026,336,000 | 24.099451 | 143 | 0.533925 | false |
mtbc/openmicroscopy | components/tools/OmeroPy/test/integration/clitest/test_script.py | 5 | 3089 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Test of the scripts plugin
Copyright 2010-2013 Glencoe Software, Inc. All rights reserved.
Use is subject to license terms supplied in LICENSE.txt
"""
from test.integration.clitest.cli import CLITest
from omero.plugins.script import ScriptControl
from omero... | gpl-2.0 | -6,947,533,266,396,586,000 | 32.576087 | 78 | 0.596957 | false |
MaisonLogicielLibre/CogSciProject-master | bcam_script/DigitSpan/digitspan.py | 1 | 6103 | #!/usr/bin/python
import pygame, time, random, math
from pygame.locals import *
#import heginput
pygame.init()
#pygame.mouse.set_visible(False)
pygame.event.set_blocked(pygame.MOUSEMOTION)
# screensize = (1280, 800)
screensize = pygame.display.list_modes()[0]
flags = pygame.constants.FULLSCREEN
screen = pygame.display.... | mit | 8,513,167,265,140,920,000 | 29.068966 | 174 | 0.598886 | false |
horstjens/ThePythonGameBook | en/pygame/003_static_blit.py | 1 | 3173 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
003_static_blit.py
static blitting and drawing
url: http://thepythongamebook.com/en:part2:pygame:step003
author: horst.jens@spielend-programmieren.at
licence: gpl, see http://www.gnu.org/licenses/gpl.html
work with python3.4 and python2.7
Blitting a surface on a stati... | gpl-3.0 | -2,612,266,754,215,972,400 | 42.465753 | 105 | 0.699023 | false |
gtsapelas/TRANSrisk_fcm_project | fcm_app/migrations/0028_auto_20180925_1731.py | 1 | 1151 | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-09-25 14:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fcm_app', '0027_auto_20180721_2115'),
]
operations = [
migrations.CreateModel... | mit | 655,630,355,022,140,300 | 27.073171 | 106 | 0.534318 | false |
AlexaProjects/Alexa2 | ALEXA-IDE/core/user_files/alexa_ide/addins/plugins/alexatools/appobjectcapturescreen.py | 1 | 58851 | # -*- coding: UTF-8 -*-
#
# Copyright (C) 2013 Alan Pipitone
#
# This file is part of Al'EXA-IDE.
#
# Al'EXA-IDE 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 o... | gpl-3.0 | 3,241,367,506,389,657,600 | 42.951456 | 237 | 0.591392 | false |
DiamondLightSource/auto_tomo_calibration-experimental | measure_resolution/find_resolution.py | 1 | 21663 | import numpy as np
import pylab as pl
from scipy.ndimage.filters import median_filter
from skimage.filter import threshold_otsu
from skimage import io, exposure
import os
import fit_data
from scipy import misc
from math import ceil
def save_data(filename, data):
import cPickle
print("Saving data")
f = ope... | apache-2.0 | 355,403,463,064,665,700 | 30.717423 | 141 | 0.522735 | false |
chiamingyen/pygrouf | init.py | 1 | 8144 | import os
import sqlite3
import pymysql
# 確定程式檔案所在目錄, 在 Windows 有最後的反斜線
_curdir = os.path.join(os.getcwd(), os.path.dirname(__file__))
# 設定在雲端與近端的資料儲存目錄
if 'OPENSHIFT_REPO_DIR' in os.environ.keys():
# 表示程式在雲端執行
data_dir = os.environ['OPENSHIFT_DATA_DIR']
static_dir = os.environ['OPENSHIFT_REPO_DIR']+"/stat... | agpl-3.0 | 834,210,522,911,319,900 | 39.825397 | 103 | 0.488336 | false |
danialbehzadi/Nokia-RM-1013-2.0.0.11 | webkit/Tools/Scripts/webkitpy/python24/versioning_unittest.py | 15 | 5449 | # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and... | gpl-3.0 | 1,371,380,215,722,194,000 | 39.664179 | 80 | 0.663792 | false |
LumPenPacK/NetworkExtractionFromImages | osx_build/nefi2_osx_amd64_xcode_2015/site-packages/numpy/lib/tests/test_stride_tricks.py | 43 | 14199 | from __future__ import division, absolute_import, print_function
import numpy as np
from numpy.testing import (
run_module_suite, assert_equal, assert_array_equal,
assert_raises, assert_
)
from numpy.lib.stride_tricks import (
as_strided, broadcast_arrays, _broadcast_shape, broadcast_to
)
def assert_s... | bsd-2-clause | -645,732,285,313,370,800 | 33.380145 | 82 | 0.52546 | false |
tensorflow/model-optimization | tensorflow_model_optimization/python/examples/quantization_with_sparsity/keras/mnist_cnn.py | 1 | 5957 | # Copyright 2021 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 | -6,557,862,777,531,152,000 | 33.633721 | 117 | 0.663085 | false |
matt-gardner/deep_qa | deep_qa/run.py | 1 | 10827 | from typing import List, Tuple, Union
import sys
import logging
import shutil
import os
import random
import pyhocon
import numpy
# pylint: disable=wrong-import-position
from .common.params import Params, replace_none, ConfigurationError
from .common.tee_logger import TeeLogger
logger = logging.getLogger(__name__) ... | apache-2.0 | 9,043,961,431,607,465,000 | 40.482759 | 111 | 0.670823 | false |
jeandet/meson | mesonbuild/scripts/vcstagger.py | 6 | 1557 | # Copyright 2015-2016 The Meson development 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://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agree... | apache-2.0 | -6,822,994,307,111,835,000 | 36.071429 | 98 | 0.681439 | false |
Ruide/angr-dev | ana/ana/datalayer.py | 1 | 3029 | import os
import uuid as uuid_module
import weakref
import cPickle as pickle
try:
import pymongo
import bson
except ImportError:
# mongo dependency is optional
pymongo = None
import logging
l = logging.getLogger("ana.datalayer")
class DataLayer:
'''
The DataLayer handles storing and retrievin... | bsd-2-clause | 7,960,456,664,408,711,000 | 29.59596 | 89 | 0.619676 | false |
marcelomiky/PythonCodes | Intro ML Semcomp/semcomp17_ml/utils/ml_utils.py | 1 | 2164 | """plot_utils.py
tb00083@surrey
"""
import matplotlib.pyplot as plt
import numpy as np
def extract_data(data, src_fields, target_fields):
assert type(src_fields) is list and type(target_fields) is list, "Error! both src_fields and target_fields must be a list"
for field in src_fields + target_fields:
if f... | mit | 208,630,451,438,331,260 | 26.88 | 123 | 0.577634 | false |
DCSaunders/tensorflow | tensorflow/python/ops/nn_fused_batchnorm_test.py | 19 | 8762 | # 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 | -1,131,715,948,737,484,500 | 41.125 | 80 | 0.601575 | false |
romaneckert/robot | archive/bionics_old/core.py | 1 | 7117 | #!/usr/bin/env python3
import logging
import time
import os
import urllib.parse
import urllib.request
import urllib.error
from slugify import slugify
from sys import platform
from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket
import threading
import test
import subprocess
from http.server import Simple... | mit | -5,501,801,795,403,350,000 | 25.651685 | 98 | 0.526981 | false |
oinopion/django | tests/aggregation/tests.py | 14 | 43163 | from __future__ import unicode_literals
import datetime
import re
from decimal import Decimal
from django.core.exceptions import FieldError
from django.db import connection
from django.db.models import (
F, Aggregate, Avg, Count, DecimalField, DurationField, FloatField, Func,
IntegerField, Max, Min, Sum, Valu... | bsd-3-clause | 3,155,896,192,590,990,300 | 38.635445 | 155 | 0.539189 | false |
AndroidOpenDevelopment/android_external_chromium_org | tools/telemetry/telemetry/value/merge_values.py | 36 | 4295 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
def MergeLikeValuesFromSamePage(all_values):
"""Merges values that measure the same thing on the same page.
A page may end up being measured multiple tim... | bsd-3-clause | -3,833,790,354,794,113,000 | 36.025862 | 80 | 0.70943 | false |
lucc/alot | alot/utils/argparse.py | 4 | 4700 | # encoding=utf-8
# Copyright (C) 2011-2012 Patrick Totzke <patricktotzke@gmail.com>
# Copyright © 2017 Dylan Baker
# 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 | -709,833,601,897,656,400 | 31.631944 | 78 | 0.645244 | false |
batxes/4Cin | SHH_WT_models/SHH_WT_models_final_output_0.1_-0.1_11000/SHH_WT_models49537.py | 4 | 17569 | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | gpl-3.0 | 6,364,557,481,745,716,000 | 46.101877 | 75 | 0.699641 | false |
dimara/synnefo | snf-pithos-backend/pithos/backends/lib/sqlite/permissions.py | 10 | 8486 | # Copyright (C) 2010-2014 GRNET S.A.
#
# 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 distributed i... | gpl-3.0 | 8,818,997,615,140,552,000 | 34.655462 | 79 | 0.56057 | false |
lion-coin/lioncoin | contrib/linearize/linearize.py | 1 | 3354 | #!/usr/bin/python
#
# linearize.py: Construct a linear, no-fork, best version of the blockchain.
#
#
# Copyright (c) 2013 The Lioncoin developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
import json
import struct
imp... | mit | -1,167,754,724,317,037,600 | 24.409091 | 77 | 0.660405 | false |
repotvsupertuga/tvsupertuga.repository | script.module.livestreamer/lib/livestreamer/plugins/aftonbladet.py | 34 | 3009 | """Plugin for swedish news paper Aftonbladet's streaming service."""
import re
from livestreamer.plugin import Plugin
from livestreamer.plugin.api import http, validate
from livestreamer.stream import HDSStream, HLSStream
PLAYLIST_URL_FORMAT = "http://{address}/{path}/{filename}"
STREAM_TYPES = {
"hds": HDSStrea... | gpl-2.0 | -5,171,847,559,245,612,000 | 33.193182 | 89 | 0.514457 | false |
mbudiu-vmw/hiero | bin/stop.py | 1 | 1491 | #!/usr/bin/env python
# We attempted to make this program work with both python2 and python3
"""This Python program stops the Hillview service on the machines specified in the
configuration file."""
# pylint: disable=invalid-name
from argparse import ArgumentParser
from hillviewCommon import ClusterConfiguration, ... | apache-2.0 | -4,786,795,724,790,380,000 | 36.275 | 95 | 0.719651 | false |
eeshangarg/oh-mainline | vendor/packages/gdata/tests/gdata_tests/marketplace/live_client_test.py | 39 | 5064 | #!/usr/bin/python
#
# Copyright 2009 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 b... | agpl-3.0 | -2,235,389,325,386,371,600 | 39.190476 | 159 | 0.724921 | false |
anoopcs9/samba | python/samba/tests/blackbox/samba_dnsupdate.py | 7 | 2592 | # Blackbox tests for "samba_dnsupdate" command
# Copyright (C) Kamen Mazdrashki <kamenim@samba.org> 2011
# Copyright (C) Andrew Bartlett <abartlet@samba.org> 2015
#
# 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 So... | gpl-3.0 | 4,249,348,064,831,128,000 | 42.932203 | 121 | 0.671682 | false |
vlegoff/tsunami | src/primaires/temps/constantes.py | 1 | 2157 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# 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
... | bsd-3-clause | 3,309,715,166,384,590,000 | 44.893617 | 79 | 0.729254 | false |
FreddyPoGo/Monocle | web_sanic.py | 1 | 7721 | #!/usr/bin/env python3
from pkg_resources import resource_filename
from time import time
from sanic import Sanic
from sanic.response import html, json
from jinja2 import Environment, PackageLoader, Markup
from asyncpg import create_pool
from monocle import sanitized as conf
from monocle.bounds import center
from mon... | mit | -8,481,301,761,078,509,000 | 31.716102 | 142 | 0.586971 | false |
mortcanty/earthengine | src/Crypto/SelfTest/Hash/test_SHA1.py | 5 | 2300 | # -*- coding: utf-8 -*-
#
# SelfTest/Hash/SHA1.py: Self-test for the SHA-1 hash function
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedicati... | mit | -7,136,943,835,792,963,000 | 34.9375 | 69 | 0.655217 | false |
tuomas777/linkedevents | events/attic/models.py | 3 | 1359 | class Person(BaseModel):
description = models.TextField(blank=True)
family_name = models.CharField(max_length=255, null=True, blank=True)
email = models.EmailField(null=True, blank=True)
creator = models.ForeignKey('self', null=True, blank=True,
related_name='person_creat... | bsd-3-clause | 6,320,756,399,223,444,000 | 38.970588 | 78 | 0.643856 | false |
rafaeltg/Deep-Learning-Algorithms | pydl/models/linear/ridge.py | 2 | 1238 | import numpy as np
import sklearn.linear_model as sk_lin
from .base import LinearMixin
class Ridge(sk_lin.Ridge, LinearMixin):
def __init__(self, name='ridge', **kwargs):
super().__init__(**kwargs)
self.name = name
def get_config(self):
config = {
'name': self.name,
... | mit | -3,677,710,417,318,497,300 | 24.791667 | 133 | 0.542003 | false |
WindCanDie/spark | dev/github_jira_sync.py | 31 | 5298 | #!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Li... | apache-2.0 | -6,562,862,029,785,360,000 | 33.627451 | 96 | 0.649868 | false |
Clarissa-Bot/Clarissa | libs/__init__.py | 1 | 1623 | # Enfold Enterprise Server
# Copyright(C), 2004-5, Enfold Systems, LLC - ALL RIGHTS RESERVED
# Enfold Systems, LLC
# 4617 Montrose Blvd., Suite C215
# Houston, Texas 77006 USA
# p. +1 713.942.2377 | f. +1 832.201.8856
# www.enfoldsystems.com
# info@enfoldsystems.com
import sys
if "win32" in sys.platform:
# Use w... | apache-2.0 | -6,839,715,249,462,650,000 | 27.473684 | 66 | 0.63093 | false |
ljschumacher/tierpsy-tracker | tierpsy/processing/run_multi_cmd.py | 1 | 6950 | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 16 23:43:30 2015
@author: ajaver
"""
#import os
import sys
import os
import time
import subprocess as sp
from functools import partial
from io import StringIO
from tierpsy.helper.misc import TimeCounter, ReadEnqueue
GUI_CLEAR_SIGNAL = '+++++++++++++++++++++++++++++++++... | mit | 3,874,704,655,631,148,000 | 31.02765 | 134 | 0.538705 | false |
seanchen/taiga-back | taiga/projects/models.py | 3 | 36238 | # Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014 David Barragán <bameda@dbarragan.com>
# This program 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 F... | agpl-3.0 | 5,982,643,201,889,653,000 | 43.190244 | 115 | 0.560741 | false |
StudentOrganisationForAreospaceResearch/GroundControl | tester.py | 1 | 2656 | # -*- coding: utf-8 -*-
"""
Student Organisation for Aerospace Reasearch
University of Calgary
Canada
Developers:
Nathan Meulenbroek
Description:
Tester file. Gives bogus data to the main file to run algorithm tests
"""
import random
class Tester():
"""
Very much overengineered to support future ... | apache-2.0 | 3,864,576,654,864,803,000 | 32.632911 | 79 | 0.558358 | false |
FlightGear/flightgear | utils/Modeller/uv_import_svg.py | 1 | 7964 | #!BPY
# """
# Name: 'UV: (Re)Import UV from SVG'
# Blender: 245
# Group: 'Image'
# Tooltip: 'Re-import UV layout from SVG file'
# """
__author__ = "Melchior FRANZ < mfranz # aon : at >"
__url__ = ["http://www.flightgear.org/", "http://cvs.flightgear.org/viewvc/source/utils/Modeller/uv_import_svg.py"]
__version__ = "0... | gpl-2.0 | 3,930,523,951,224,759,000 | 24.857143 | 115 | 0.624686 | false |
rogueinabox/rogueinabox | rogueinabox/history.py | 1 | 5964 | #Copyright (C) 2017 Andrea Asperti, Carlo De Pieri, Gianmaria Pedrini
#
#This file is part of Rogueinabox.
#
#Rogueinabox is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at ... | gpl-3.0 | 4,185,820,969,041,403,400 | 34.082353 | 110 | 0.632126 | false |
mou4e/zirconium | tools/perf/profile_creators/history_profile_extender_unittest.py | 3 | 1630 | # 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.
import os
import shutil
import tempfile
import unittest
from profile_creators.history_profile_extender import HistoryProfileExtender
from telemetry.core impo... | bsd-3-clause | -1,564,218,973,125,563,600 | 36.045455 | 79 | 0.754601 | 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.