repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ministryofjustice/bankline-direct-parser | bankline_parser/data_services/fields.py | 1 | 2725 | from datetime import datetime
from .exceptions import ParseError
class DataField:
def __init__(self, start, end, justification='r', fill_char=' ', pad_char=' '):
self.start = start
self.end = end
self.justification = justification
self.fill_char = fill_char
self.pad_char =... | mit | 1,038,170,952,547,060,700 | 28.945055 | 83 | 0.561835 | false | 4.085457 | false | false | false |
HelloFax/hellosign-python-sdk | hellosign_sdk/resource/apiapp.py | 1 | 3597 | from .resource import Resource
#
# The MIT License (MIT)
#
# Copyright (C) 2014 hellosign.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitat... | mit | -9,135,264,943,368,424,000 | 36.863158 | 90 | 0.666111 | false | 4.507519 | false | false | false |
danieltimpone/lurcat-flask | lurcat/modules/user/views.py | 1 | 2275 | # -*- coding: utf-8 -*-
import os
from flask import Blueprint, render_template, send_from_directory, abort, flash
from flask import current_app as APP
from flask.ext.babel import gettext as _
from flask.ext.login import login_required, current_user
from lurcat.modules.message.forms import CreateMessageForm, Response... | bsd-3-clause | 2,971,411,724,395,757,600 | 32.955224 | 142 | 0.70989 | false | 3.273381 | false | false | false |
chrsrds/scikit-learn | sklearn/feature_extraction/image.py | 2 | 18984 | """
The :mod:`sklearn.feature_extraction.image` submodule gathers utilities to
extract features from images.
"""
# Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org>
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# Olivier Grisel
# Vlad Niculae
# License: BSD 3 clause
fro... | bsd-3-clause | -8,056,618,011,470,885,000 | 34.220779 | 79 | 0.594869 | false | 3.750296 | false | false | false |
lebauce/artub | propertiesbar/propertiesbar.py | 1 | 38072 | # Glumol - An adventure game creator
# Copyright (C) 1998-2008 Sylvain Baubeau & Alexis Contour
# This file is part of Glumol.
# Glumol is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of th... | gpl-2.0 | 6,547,167,438,073,036,000 | 37.301811 | 190 | 0.585942 | false | 3.764287 | false | false | false |
funkring/fdoo | addons/warning/warning.py | 1 | 11564 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 4,307,582,774,615,752,700 | 42.310861 | 224 | 0.578606 | false | 4.054698 | false | false | false |
flypy/flypy | flypy/compiler/frontend/translation.py | 1 | 27027 | # -*- coding: utf-8 -*-
"""
First stage in flypy translation. Translates Python bytecode to untyped
pykit IR.
Initially adapted from flypypro/npm/symbolic.py by Siu Kwan Lam.
"""
from __future__ import print_function, division, absolute_import
import __builtin__
import inspect
import dis
import pprint
import operat... | bsd-2-clause | 763,737,472,734,060,300 | 29.332211 | 83 | 0.541035 | false | 3.774054 | false | false | false |
akarl818/dotfiles | install.py | 1 | 1466 | #!/usr/bin/env python3
from os import makedirs, walk
from os.path import abspath, join, expandvars, dirname, isdir
from string import Template
import codecs
VARS = {
'FOREGROUND': 'a7a7a7',
'BACKGROUND': '1e1e1e',
'BLACK': '1e1e1e',
'BLACK2': '323537',
'RED': 'cf6a4c',
'RED2': 'cf6a4c',
'G... | mit | 2,764,006,504,232,789,500 | 24.275862 | 67 | 0.57708 | false | 2.967611 | false | false | false |
lerouxb/seymour | thirdparty/pycaptcha/Captcha/Base.py | 1 | 4314 | """ Captcha.Base
Base class for all types of CAPTCHA tests. All tests have one or
more solution, determined when the test is generated. Solutions
can be any python object,
All tests can be solved by presenting at least some preset number
of correct solutions. Some tests may only have one solution and require
one solu... | mit | 419,566,230,152,526,100 | 32.968504 | 84 | 0.635837 | false | 4.470466 | true | false | false |
bswartz/cinder | cinder/volume/rpcapi.py | 1 | 15156 | # Copyright 2012, Intel, 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 | 5,470,785,176,883,615,000 | 44.241791 | 79 | 0.606031 | false | 3.811871 | false | false | false |
QTB-HHU/petcmodel | dld.py | 1 | 1671 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 28 16:53:42 2014
Copyright (C) 2014-2015 Anna Matuszyńska, Oliver Ebenhöh
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 Foundatio... | agpl-3.0 | 5,449,664,222,973,872,000 | 24.951613 | 116 | 0.67825 | false | 2.933216 | false | false | false |
MTgeophysics/mtpy | examples/scripts/plot_edis.py | 1 | 1366 | # -*- coding: utf-8 -*-
"""
plots edi files as resistivity and phase vs period
Only works for Windows installation due to hard-coded paths
CreatedOn: Wed Sep 18 15:35:39 2013
CreatedBy: Alison Kirkby
LastUpdated: 2017-01-24
UpdatedBy: fei.zhang@ga.gov.au
LastUpdated: 2018-03-22 AK updated to us... | gpl-3.0 | -1,448,415,540,621,556,500 | 30.767442 | 96 | 0.687408 | false | 2.969565 | false | false | false |
splotz90/urh | src/urh/ui/delegates/SimulatorSettingsComboBoxDelegate.py | 1 | 3565 | from PyQt5.QtWidgets import QItemDelegate, QStyle, QStyleOptionViewItem, QComboBox, QWidget
from PyQt5.QtCore import Qt, QModelIndex, QAbstractItemModel, pyqtSlot
from urh.controller.SendRecvSettingsDialogController import SendRecvSettingsDialogController
from urh.dev.BackendHandler import BackendHandler
from urh imp... | gpl-3.0 | 7,860,702,881,511,419,000 | 36.536842 | 104 | 0.630575 | false | 4.259259 | false | false | false |
Rafael-Cheng/MovieReviewCrawlers | cinephilia/crawler_cinephilia/crawler_cinephilia/settings.py | 1 | 3225 | # -*- coding: utf-8 -*-
# Scrapy settings for crawler_cinephilia project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.or... | gpl-3.0 | 3,594,012,874,361,355,300 | 34.833333 | 109 | 0.769612 | false | 3.257576 | true | false | false |
Gebesa-Dev/Addons-gebesa | mrp_segment/report/cut_order_production.py | 1 | 3883 | # -*- coding: utf-8 -*-
# © <YEAR(S)> <AUTHOR(S)>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import api, fields, models
class ParticularReport(models.AbstractModel):
_name = 'report.mrp_segment.report_cut_order_production'
@api.multi
def render_html(self, data=None... | agpl-3.0 | -7,446,394,732,772,128,000 | 43.62069 | 81 | 0.463421 | false | 4.426454 | false | false | false |
Digital-Preservation-Finland/dpres-siptools | siptools/scripts/compile_structmap.py | 1 | 20508 | """"Command line tool for creating the structural map and file section
metadata for a METS document."""
from __future__ import unicode_literals, print_function
import os
import sys
import datetime
import click
import lxml.etree as ET
import mets
import xml_helpers.utils as xml_utils
from siptools.scripts.create_agen... | lgpl-3.0 | -5,850,753,264,206,805,000 | 37.621469 | 79 | 0.591086 | false | 4.208496 | false | false | false |
johnjreiser/FlexLM-License-Monitor | monitor/track_users.py | 1 | 2069 | #!/usr/bin/python2.4
## track_users.py - script reads from lmstat, stores users/computers in serialized file
## last revised: 2011-05-28 01:22:49
## Copyright (C) 2012 John Reiser, <reiser@rowan.edu>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU Gener... | gpl-3.0 | 5,359,842,762,361,385,000 | 34.067797 | 100 | 0.655872 | false | 3.083458 | false | false | false |
multiplay/python-mailchimp | mailchimp3/__init__.py | 1 | 2779 | """
Mailchimp v3 Api SDK
"""
from mailchimp3.mailchimpclient import MailChimpClient
from mailchimp3.entities.authorizedapp import AuthorizedApp
from mailchimp3.entities.automation import Automation
from mailchimp3.entities.message import Message
from mailchimp3.entities.campaign import Campaign
from mailchimp3.entitie... | mit | -8,338,144,370,855,961,000 | 40.477612 | 88 | 0.755668 | false | 3.90309 | false | false | false |
kahvel/VEP-BCI | src/ParameterHandler.py | 1 | 7424 | import constants as c
class BruteForce(object):
def __init__(self):
self.break_range = tuple(i for i in range(0, 9, 2))
self.windows = [c.WINDOW_NONE, c.WINDOW_HANNING, c.WINDOW_HAMMING, c.WINDOW_BLACKMAN, c.WINDOW_BARTLETT]
self.interpolation = [c.INTERPOLATE_LINEAR, c.INTERPOLATE_NEAREST... | mit | -6,111,401,559,508,621,000 | 31.704846 | 190 | 0.39076 | false | 3.98497 | false | false | false |
jakereps/qiime-workshops | payments/migrations/0002_helptext.py | 1 | 1971 | # ----------------------------------------------------------------------------
# Copyright (c) 2016-2018, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | bsd-3-clause | 1,084,820,030,856,586,100 | 36.188679 | 172 | 0.555048 | false | 4.419283 | false | false | false |
lkundrak/scraperwiki | web/frontend/urls.py | 1 | 5304 | from django.conf.urls.defaults import *
from profiles import views as profile_views # a not very well namespaced django plugin class
from contact_form.views import contact_form
import frontend.views as frontend_views # who thinks replacing dots with underscores here is useful?? --JT
import frontend.forms as fro... | agpl-3.0 | 3,478,781,204,618,423,300 | 65.139241 | 219 | 0.644796 | false | 3.512583 | false | false | false |
eeshangarg/zulip | corporate/models.py | 1 | 5843 | import datetime
from decimal import Decimal
from typing import Optional
from django.db import models
from django.db.models import CASCADE
from zerver.models import Realm
class Customer(models.Model):
"""
This model primarily serves to connect a Realm with
the corresponding Stripe customer object for pay... | apache-2.0 | -3,909,431,726,587,738,600 | 36.455128 | 109 | 0.695362 | false | 3.851681 | false | false | false |
fablabnbg/inkscape-silhouette | silhouette/StrategyMinTraveling.py | 1 | 2148 | # (c) 2017 Johann Gail
#
# StrategyMinTraveling.py -- cut strategy algorithms for a Graphtec Silhouette Cameo plotter
#
# Strategy is:
# At each end of a cut search the nearest starting point for the next cut.
# This will probably not find find the global optimum, but works well enough.
# Calculates the distance betw... | gpl-2.0 | 3,595,711,089,063,653,000 | 38.054545 | 117 | 0.63175 | false | 4.05283 | false | false | false |
takluyver/conda-build | conda_build/environ.py | 1 | 4432 | from __future__ import absolute_import, division, print_function
import os
import sys
from os.path import join
import subprocess
import multiprocessing
import conda.config as cc
from conda_build.config import config
from conda_build import source
def get_perl_ver():
return str(config.CONDA_PERL)
def get_py_v... | bsd-3-clause | -2,758,591,605,702,954,000 | 32.323308 | 79 | 0.532491 | false | 3.317365 | true | false | false |
dragoon/kilogram | kilogram/dataset/edit_histories/conll/conll_sgml_parse.py | 1 | 4077 | #!/usr/bin/env python
"""
Extract grammatical error edits from CoNLL dataset SGML files into kilogram format.
Not using XML or SGML parse since the file is not XML/SGML-compliant.
wget http://www.comp.nus.edu.sg/~nlp/conll13st/release2.3.1.tar.gz
"""
import re
import argparse
import unicodecsv as csv
SPACE = re.compi... | apache-2.0 | -8,110,450,431,490,915,000 | 48.731707 | 166 | 0.473878 | false | 4.504972 | false | false | false |
wpjesus/codematch | ietf/ietfauth/urls.py | 1 | 1326 | # Copyright The IETF Trust 2007, 2009, All Rights Reserved
from django.conf.urls import patterns, url
from django.contrib.auth.views import login, logout
urlpatterns = patterns('ietf.ietfauth.views',
url(r'^$', 'index', name='account_index'),
# url(r'^login/$', 'ietf_login'),
url(r'^login/$', l... | bsd-3-clause | 1,830,608,732,940,834,000 | 59.272727 | 167 | 0.560332 | false | 3.041284 | false | true | false |
mattbierner/post-mortem | scripts/diff.py | 1 | 3438 | #!/usr/bin/env python
"""
Generate a small diff between two html documents.
Does the following:
1. Diffs two html files to add `<ins>` and `<del>` tags
2. Generates a unified diff from the html diff against the original html documents
The unified diff can be applied to the original html to generate the diff html.
""... | mit | 3,538,755,534,468,699,600 | 29.696429 | 100 | 0.621582 | false | 3.778022 | false | false | false |
rgraf/sensor-frames-qa | camera_gui.py | 1 | 22810 | ##
##
## Apache License
## Version 2.0, January 2004
## http://www.apache.org/licenses/
##
## TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
##
## 1. Definitions.
##
## "License" shall mean the terms and conditions for use, reproduction,
## and distribution as defined by Sections 1 through 9 of this docum... | apache-2.0 | 1,714,393,583,195,263,000 | 46.819706 | 166 | 0.6726 | false | 3.690341 | false | false | false |
mommi84/python-rdf2tensor | test/rdf_stream_sqlite.py | 1 | 1836 | from rdflib.plugins.parsers.ntriples import NTriplesParser, Sink
import sys
import sqlite3
reload(sys)
sys.setdefaultencoding("utf-8")
# prepare DB
conn = sqlite3.connect('dictionaries.db')
c = conn.cursor()
# create tables
c.execute('''CREATE TABLE IF NOT EXISTS entities
(id integer primary key autoincr... | mit | 3,802,761,938,506,635,000 | 34.326923 | 95 | 0.579521 | false | 3.724138 | false | false | false |
citrix-openstack-build/cinder | cinder/openstack/common/scheduler/filters/capabilities_filter.py | 1 | 2500 | # Copyright (c) 2011 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/LICENSE-2.0
#
# Unless requi... | apache-2.0 | -3,549,821,313,949,036,000 | 38.68254 | 78 | 0.6248 | false | 4.621072 | false | false | false |
lucassm/Pade | setup.py | 1 | 1757 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Framework para Desenvolvimento de Agentes Inteligentes PADE
# The MIT License (MIT)
# Copyright (c) 2015 Lucas S Melo
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software")... | gpl-3.0 | 7,085,025,956,081,556,000 | 40.833333 | 79 | 0.727945 | false | 4.076566 | false | false | false |
54Pany/gum | config.py | 1 | 1926 | #! /usr/bin/env python
# encoding=utf-8
#from __future__ import unicode_literals
import sqlite3
from time import time
from hashlib import md5
from base64 import b64encode
from sys import argv
salt = 'chewingum'
filekey = './filekey'
def install(salt, filekey):
hashs = md5()
with open(filekey) as keyfile: ke... | gpl-3.0 | 7,209,828,011,385,545,000 | 20.640449 | 79 | 0.605919 | false | 3.096463 | false | false | false |
zgchizi/oppia-uc | core/platform/models.py | 1 | 5620 | # 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 | -2,182,893,368,676,852,000 | 35.732026 | 125 | 0.654448 | false | 4.299923 | false | false | false |
johnnyLadders/Nathive_CITA | nathive/lib/action/docresize.py | 1 | 1815 | #!/usr/bin/env python
#coding=utf-8
# Nathive (and this file) 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 newer.
#
# You should have received a copy of the GNU General ... | gpl-3.0 | 5,704,486,234,471,835,000 | 26.923077 | 78 | 0.645179 | false | 3.997797 | false | false | false |
p1c2u/openapi-core | openapi_core/contrib/flask/handlers.py | 1 | 1322 | """OpenAPI core contrib flask handlers module"""
from flask.globals import current_app
from flask.json import dumps
from openapi_core.templating.media_types.exceptions import MediaTypeNotFound
from openapi_core.templating.paths.exceptions import OperationNotFound
from openapi_core.templating.paths.exceptions import Pa... | bsd-3-clause | -1,173,723,345,154,245,000 | 30.47619 | 76 | 0.660363 | false | 4.018237 | false | false | false |
tmerr/Conway | conway.py | 1 | 3772 | """Command line Conway's Game of Life."""
# Rules:
# 1. Live cell with less than two neighbors dies.
# 2. Live cell with two or three neighbors lives on.
# 3. Live cell with more than three live neighbors dies.
# 4. Dead cell with exactly three live neighbors becomes a live cell.
from time import sleep
from random im... | mit | 8,132,842,587,097,711,000 | 37.10101 | 90 | 0.441941 | false | 2.463749 | false | false | false |
posterior/loom | loom/test/test_query_math.py | 1 | 5526 | # Copyright (c) 2014, Salesforce.com, Inc. All rights reserved.
# Copyright (c) 2015, Google, Inc.
#
# 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
... | bsd-3-clause | -5,806,958,302,096,433,000 | 38.755396 | 79 | 0.674629 | false | 3.686458 | true | false | false |
cristicalin/setwall | wpm/menuhandler.py | 1 | 7496 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SetWall - Wallpaper manager
#
# Copyright (C) 2014 Cristian Andrei Calin <cristian.calin@outlook.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Fo... | gpl-3.0 | 8,979,256,817,620,241,000 | 32.918552 | 76 | 0.692369 | false | 3.462356 | false | false | false |
eonpatapon/contrail-neutron-plugin | neutron_plugin_contrail/plugins/opencontrail/loadbalancer/v2/loadbalancer_healthmonitor.py | 1 | 4248 | #
# Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
#
import uuid
try:
from neutron.extensions import loadbalancer
except ImportError:
from neutron_lbaas.extensions import loadbalancer
from neutron.openstack.common import uuidutils
from vnc_api.vnc_api import IdPermsType
from vnc_api.vnc_api i... | apache-2.0 | 6,420,838,737,499,435,000 | 33.819672 | 80 | 0.638418 | false | 3.981256 | false | false | false |
nullzero/wpcgi | wpcgi/normalize.py | 1 | 1162 | #!/data/project/nullzerobot/python/bin/python
from functools import wraps
from flask import redirect, url_for
import c
def normalize_url_title(dic):
title = dic.get('title', None)
if not title:
return False
new_title = (title.replace(' ', '_'))
if new_title != title:
dic['title'] = new... | mit | -7,049,952,050,640,569,000 | 24.844444 | 85 | 0.542169 | false | 3.899329 | false | false | false |
annacarol/Recursos-NFE-em-Python | nfe/pysped/nfe/manifestacao_destinatario/downloadNFe.py | 1 | 6120 | # -*- coding: utf-8 -*-
__author__ = 'marcilene.ribeiro'
from nfe.pysped.xml_sped import *
from nfe.pysped.nfe.manifestacao_destinatario import ESQUEMA_ATUAL
import os
DIRNAME = os.path.dirname(__file__)
class DownloadNFe(XMLNFe):
def __init__(self):
super(DownloadNFe, self).__init__()
self.v... | lgpl-2.1 | 2,115,843,870,538,237,400 | 37.734177 | 229 | 0.610294 | false | 2.606474 | false | false | false |
fulfilio/nereid-checkout | checkout.py | 1 | 32453 | # -*- coding: utf-8 -*-
import warnings
from datetime import datetime
from functools import wraps
from nereid import render_template, request, url_for, flash, redirect, \
current_app, current_user, route, login_required, current_website
from nereid.signals import failed_login
from nereid.globals import session
fro... | gpl-3.0 | 7,594,122,051,065,079,000 | 34.160347 | 80 | 0.559085 | false | 4.540151 | false | false | false |
ericzhang619/Printerest | Preprocess.py | 1 | 4857 | import pandas as pd
import re
from nltk.corpus import stopwords
import os
import time
from nltk.stem.snowball import SnowballStemmer
import sys
sys.stdout = open('python_process.log', 'a')
start = time.time()
with open(os.path.join(os.path.dirname(__file__)) + '/data/tweets/train-tweets.txt', 'r') as f:
# Get ri... | mit | 4,015,575,048,266,008,000 | 26.440678 | 126 | 0.603665 | false | 3.054717 | false | false | false |
akrherz/iem | htdocs/plotting/auto/scripts100/p145.py | 1 | 5044 | """4 inch soil temps or moisture"""
import datetime
import calendar
from collections import OrderedDict
import pandas as pd
from pandas.io.sql import read_sql
from pyiem import util
from pyiem.plot import figure_axes
from pyiem.network import Table as NetworkTable # This is needed.
VARS = OrderedDict(
(
... | mit | -1,703,779,282,667,266,800 | 28.846154 | 78 | 0.538462 | false | 3.260504 | false | false | false |
Haravan/haravan_python_api | test/test_helper.py | 1 | 1889 | import os
import sys
import unittest
from pyactiveresource.activeresource import ActiveResource
from pyactiveresource.testing import http_fake
import haravan
class TestCase(unittest.TestCase):
def setUp(self):
ActiveResource.site = None
ActiveResource.headers=None
haravan.HaravanResource.... | mit | 8,549,029,748,034,212,000 | 32.140351 | 105 | 0.6072 | false | 3.725838 | true | false | false |
plypaul/airflow | tests/core.py | 1 | 74170 | # -*- coding: utf-8 -*-
#
# 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 | 6,926,921,130,818,614,000 | 37.610099 | 115 | 0.59005 | false | 3.783605 | true | false | false |
smadacm/TimeManagement | Organizer/models/task.py | 1 | 1184 | from django.db import models
from django.contrib.auth.models import User
import project
class TaskSeverity(models.Model):
name = models.CharField('Name', max_length=255)
sort_order = models.IntegerField('Sort Order', default=99)
def __unicode__(self):
return str(self)
def __str__(self):
... | mit | 1,983,665,500,031,998,000 | 30.157895 | 75 | 0.672297 | false | 4 | false | false | false |
tboyce1/home-assistant | tests/components/alexa/test_intent.py | 2 | 20664 | """The tests for the Alexa component."""
# pylint: disable=protected-access
import asyncio
import json
import pytest
from homeassistant.core import callback
from homeassistant.setup import async_setup_component
from homeassistant.components import alexa
from homeassistant.components.alexa import intent
SESSION_ID = ... | apache-2.0 | -1,045,413,724,502,309,800 | 33.382696 | 79 | 0.398035 | false | 4.627996 | true | false | false |
JavierGarciaD/Algorithmic_Thinking | src/app_1.py | 1 | 3929 | '''
Created on 27/08/2014
@author: javgar119
'''
# general imports
from pprint import pprint
from project_1 import *
from hw_1 import *
import matplotlib.pyplot as plt
import networkx as nx
###################################
# Code for loading citation graph
def load_graph(graph_path):
"""
... | gpl-3.0 | 8,441,892,215,751,663,000 | 22.867089 | 106 | 0.55383 | false | 3.274167 | false | false | false |
fukukami/electrum-exe | lib/bitcoin.py | 1 | 24188 | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2011 thomasv@gitorious
#
# 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 ... | gpl-3.0 | -6,242,903,681,000,119,000 | 29.734435 | 180 | 0.595337 | false | 3.087567 | false | false | false |
qsnake/numpy | numpy/lib/index_tricks.py | 1 | 25189 | __all__ = ['ravel_coords',
'unravel_index',
'mgrid',
'ogrid',
'r_', 'c_', 's_',
'index_exp', 'ix_',
'ndenumerate','ndindex',
'fill_diagonal','diag_indices','diag_indices_from']
import sys
import numpy.core.numeric as _nx
from numpy.core.numer... | bsd-3-clause | -418,670,630,965,528,260 | 29.27524 | 80 | 0.534003 | false | 3.783837 | false | false | false |
pegasus-isi/pegasus | packages/pegasus-python/src/Pegasus/db/workflow/stampede_wf_statistics.py | 1 | 32578 | __author__ = "Rajiv Mayani"
import logging
from Pegasus.db import connection
from Pegasus.db.admin.admin_loader import DBAdminError
from Pegasus.db.errors import StampedeDBNotFoundError
from Pegasus.db.schema import *
# Main stats class.
class StampedeWorkflowStatistics:
def __init__(self, connString=None, expa... | apache-2.0 | -5,406,617,593,266,023,000 | 35.037611 | 148 | 0.537172 | false | 3.668694 | false | false | false |
rockychen-dpaw/oim-cms | organisation/utils.py | 1 | 8530 | from __future__ import unicode_literals, absolute_import
from datetime import datetime, timedelta
from django.conf import settings
from django.core.files.base import ContentFile
import logging
from openpyxl import load_workbook
import os
from six import BytesIO
import subprocess
import unicodecsv
# Python 2 can't ser... | apache-2.0 | -3,384,064,411,018,942,500 | 36.911111 | 105 | 0.590152 | false | 3.796173 | false | false | false |
Kongsea/tensorflow | tensorflow/python/keras/_impl/keras/applications/inception_v3.py | 1 | 14814 | # 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 | 7,553,127,096,707,822,000 | 35.577778 | 152 | 0.657756 | false | 3.045641 | false | false | false |
trosa/forca | reportlab/graphics/charts/barcharts.py | 1 | 60761 | #Copyright ReportLab Europe Ltd. 2000-2004
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/barcharts.py
__version__=''' $Id: barcharts.py 3761 2010-09-02 14:40:46Z damian $ '''
__doc__="""This module defines a variety of B... | gpl-2.0 | -8,329,182,069,834,828,000 | 26.865083 | 229 | 0.568193 | false | 3.509965 | false | false | false |
robboz4/OctoPrint-FLU | setup.py | 1 | 3968 | # coding=utf-8
########################################################################################################################
### Do not forget to adjust the following variables to your own plugin.
# The plugin's identifier, has to be unique
plugin_identifier = "FLU"
# The plugin's python package, should b... | gpl-3.0 | 7,515,845,359,117,469,000 | 41.212766 | 140 | 0.679435 | false | 4.230277 | false | false | false |
nsubiron/SublimeSuricate | suricate/_suricate.py | 1 | 3422 | # Sublime Suricate, Copyright (C) 2013 N. Subiron
#
# This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you
# are welcome to 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 (... | gpl-3.0 | -2,019,968,206,141,503,200 | 28 | 80 | 0.668615 | false | 3.495403 | false | false | false |
jseabold/statsmodels | statsmodels/duration/tests/results/phreg_gentests.py | 5 | 1937 | import numpy as np
"""
Generate data sets for testing Cox proportional hazards regression
models.
After updating the test data sets, use R to run the survival.R script
to update the R results.
"""
# The current data may not reflect this seed
np.random.seed(5234)
# Loop over pairs containing (sample size, number of ... | bsd-3-clause | -7,440,121,775,652,556,000 | 31.283333 | 69 | 0.643779 | false | 3.119163 | false | false | false |
jGaboardi/Facility_Location | LP_File_Creation/Capacitated_PMedian_CODE.py | 1 | 6128 | # -*- coding: utf-8 -*-
# Capacitated p-Median Facility Location Problem
# This script creates a linear programming file to be read into an optimizer.
'''
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is p... | lgpl-3.0 | 4,881,154,167,955,704,000 | 32.664835 | 125 | 0.600229 | false | 3.144764 | false | false | false |
pepetreshere/odoo | addons/mrp/models/stock_rule.py | 2 | 9585 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from collections import defaultdict
from dateutil.relativedelta import relativedelta
from odoo import api, fields, models, SUPERUSER_ID, _
from odoo.osv import expression
from odoo.addons.stock.models.stock_rule import ... | agpl-3.0 | -861,007,655,893,225,000 | 52.848315 | 200 | 0.618988 | false | 3.937962 | false | false | false |
AlessandroZ/LaZagne | Windows/lazagne/softwares/memory/libkeepass/common.py | 1 | 9068 | # -*- coding: utf-8 -*-
import base64
import codecs
import io
import struct
from xml.etree import ElementTree
from .crypto import sha256
try:
file_types = (file, io.IOBase)
except NameError:
file_types = (io.IOBase,)
# file header
class HeaderDictionary(dict):
"""
A dictionary on steroids for comfor... | lgpl-3.0 | -7,830,270,205,586,028,000 | 30.486111 | 81 | 0.583701 | false | 3.961555 | false | false | false |
tusing/praw | praw/decorators.py | 1 | 10872 | # This file is part of PRAW.
#
# PRAW 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.
#
# PRAW is distributed in the hope that it will ... | gpl-3.0 | -913,405,225,190,161,700 | 38.970588 | 79 | 0.633186 | false | 4.37329 | false | false | false |
xiezhen/brilws | brilws/cli/brilschema_loaddata.py | 1 | 1576 | """
Usage:
brilschema loaddata [options]
Options:
-h, --help Show this screen
--name NAME Data: beamstatusinfo,trgconfig,runinfo,trginfo,hltinfo,beamintensity,hfoclumi
-i INSELECT Input run,ls selection json file or string
-o OUTPUT Output csv file or BrilDB
... | mit | -4,089,484,083,642,166,000 | 42.777778 | 188 | 0.647208 | false | 3.367521 | false | false | false |
centrofermi/e3pipe | tasks/e3merge2.py | 1 | 4419 | #!/usr/bin/env python
# *********************************************************************
# * Copyright (C) 2014 Luca Baldini (luca.baldini@pi.infn.it) *
# * *
# * For the license terms see the file LICENSE, distributed *
# * along ... | gpl-3.0 | 1,336,103,359,177,408,800 | 38.106195 | 76 | 0.640416 | false | 3.914083 | false | false | false |
rhyolight/nupic.son | app/soc/modules/gsoc/logic/evaluations.py | 1 | 1656 | # Copyright 2011 the Melange authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 | 4,514,669,217,833,723,000 | 35 | 75 | 0.716184 | false | 3.933492 | false | false | false |
rasata/octopus | octopus/protocol/basic.py | 1 | 3023 | # Twisted Imports
from twisted.internet import reactor, defer
from twisted.internet.error import TimeoutError, AlreadyCalled, AlreadyCancelled
from twisted.protocols.basic import LineOnlyReceiver
from twisted.python import log, failure
# System Imports
import exceptions
from collections import deque
import logging
# ... | mit | -161,955,305,159,658,560 | 22.617188 | 80 | 0.706252 | false | 3.300218 | false | false | false |
magwas/sinz | src/sinz/Util.py | 1 | 1050 | import subprocess
class CmdRunException(Exception):
pass
class Util(object):
verbose = False
@classmethod
def cmdOutput(cls, cmd, havepassword = False):
if cls.verbose and not havepassword:
print(cmd)
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=su... | gpl-2.0 | 5,061,723,424,523,671,000 | 25.275 | 96 | 0.575238 | false | 4.487179 | false | false | false |
1313e/e13Tools | docs/source/conf.py | 1 | 6826 | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | bsd-3-clause | -7,750,374,501,690,291,000 | 29.20354 | 79 | 0.640346 | false | 3.800668 | true | false | false |
slapec/rlscloud | rlsget/models.py | 1 | 3451 | # coding: utf-8
import os
from signal import SIGUSR1
from celery.result import AsyncResult
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models, transaction
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
class DownloadT... | mit | 4,637,327,489,472,588,000 | 27.286885 | 88 | 0.583889 | false | 3.935006 | false | false | false |
myarjunar/inasafe | safe/messaging/example/console_example.py | 1 | 3902 | """
InaSAFE Disaster risk assessment tool by AusAid - **Dispatcher console example
.**
Contact : ole.moller.nielsen@gmail.com
.. note:: 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; eith... | gpl-3.0 | 361,485,615,778,529,500 | 28.78626 | 79 | 0.616094 | false | 4.364653 | false | false | false |
alehandrof/sublime-todos-dot-txt | TodosDotTxt.py | 1 | 8592 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import re
import sublime
import sublime_plugin
import webbrowser
import datetime
import codecs
from operator import attrgetter
if int(sublime.version()) < 3000:
import locale
_target = None
_user_input = None
_display = True
############... | mit | 4,096,770,298,654,796,300 | 32.926829 | 113 | 0.498487 | false | 3.823765 | false | false | false |
GFDRR/geonode | geonode/layers/management/commands/importlayers.py | 1 | 7502 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2016 OSGeo
#
# 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 ... | gpl-3.0 | -2,306,685,127,118,247,400 | 35.417476 | 82 | 0.505465 | false | 4.912901 | false | false | false |
jmchilton/galaxy-central | tools/data_source/biomart_filter.py | 1 | 1427 | import urllib
from galaxy import datatypes, config
def exec_before_job( trans, inp_data, out_data, param_dict, tool=None):
"""Sets the name of the data"""
data_name = param_dict.get( 'name', 'Biomart query' )
data_type = param_dict.get( 'type', 'text' )
name, data = out_data.items()[0]
data =... | mit | -4,215,357,407,510,193,000 | 28.729167 | 97 | 0.582341 | false | 3.310905 | false | false | false |
dhruvmullick/superBackup | GUI.py | 1 | 5379 | import sys
from Tkinter import *
import Tkconstants, tkFileDialog
import datetime
import ttk
import main
import createISO
dirtext = 'Select your pictures folder'
filetext = 'Select your exception file'
dirtext1 = 'Select destination of image'
# file and directory function
root = Tk()
Ldir = []
Ldirignore = []
dirn = ... | apache-2.0 | 6,804,302,044,029,794,000 | 25.243902 | 150 | 0.661089 | false | 2.873397 | false | false | false |
b-daniels/apitools | apitools/gen/command_registry.py | 1 | 26261 | #!/usr/bin/env python
"""Command registry for apitools."""
import logging
import textwrap
from apitools.base.protorpclite import descriptor
from apitools.base.protorpclite import messages
from apitools.gen import extended_descriptor
# This is a code generator; we're purposely verbose.
# pylint:disable=too-many-state... | apache-2.0 | -2,961,553,777,254,962,000 | 43.813993 | 79 | 0.550474 | false | 4.621788 | false | false | false |
shash7/controller | index.py | 1 | 23976 | import os
from flask import Flask, render_template, request, jsonify, send_from_directory
import win32api
import win32con
import time
import sys
#Giant dictonary to hold key name and VK value
VK_CODE = {'backspace':0x08,
'tab':0x09,
'clear':0x0C,
'enter':0x0D,
'shift':0x... | mit | 2,077,626,550,580,801,800 | 35.773006 | 92 | 0.52978 | false | 2.757447 | false | false | false |
iirob/python-opcua | schemas/download.py | 1 | 2598 | #! /usr/bin/env python
from __future__ import print_function
# https://opcfoundation.org/UA/schemas/OPC%20UA%20Schema%20Files%20Readme.xls
resources = [
'https://opcfoundation.org/UA/schemas/1.04/Opc.Ua.Types.xsd',
'https://opcfoundation.org/UA/schemas/1.04/Opc.Ua.Services.wsdl',
'https://opcfoundation.or... | lgpl-3.0 | 2,972,521,909,402,164,700 | 42.3 | 77 | 0.701694 | false | 2.564659 | false | false | false |
Mdlkxzmcp/various_python | Alpha & Beta/suppaBasikk/patients.py | 1 | 1035 | class Patient(object):
def __init__(self, name, age, phone, code):
self.name = name
self.age = age
self.phone = phone
self.code = code
def breath(self):
print("I breath 12-18 times per minute")
def walk(self, walkRate):
print("I walk at {}km per hour".forma... | mit | -230,261,114,691,880,600 | 25.538462 | 62 | 0.616425 | false | 3.306709 | false | false | false |
OCA/social | mail_tracking/models/ir_mail_server.py | 1 | 4005 | # Copyright 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import re
import threading
from odoo import models, api, tools
class IrMailServer(models.Model):
_inherit = "ir.mail_server"
def _tracking_headers_add(self, tracking_emai... | agpl-3.0 | -1,764,124,103,884,381,700 | 43.5 | 78 | 0.602996 | false | 3.789026 | false | false | false |
Southpaw-TACTIC/Team | src/python/Lib/site-packages/PySide/examples/richtext/textobject/textobject.py | 1 | 2734 | #!/usr/bin/env python
"""PyQt4 port of the richtext/textobject example from Qt v4.x"""
from PySide import QtCore, QtGui, QtSvg
class SvgTextObject(QtCore.QObject, QtGui.QTextObjectInterface):
def intrinsicSize(self, doc, posInDocument, format):
renderer = QtSvg.QSvgRenderer(format.property(Window.SvgDa... | epl-1.0 | -6,324,450,575,353,587,000 | 29.719101 | 105 | 0.67008 | false | 3.894587 | false | false | false |
rallured/PyXFocus | examples/arcus/sector.py | 1 | 48181 | import numpy as np
from numpy import sin,cos,exp,sqrt,pi,tan
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import pdb,sys,pickle,os
import astropy.io.fits as pyfits
import traces.grating as grat
import utilities.plotting as plotting
from traces.axro.SMARTX import CXCreflIr
from scipy import in... | mit | -4,426,181,759,884,462,600 | 36.005376 | 90 | 0.576887 | false | 2.848924 | false | false | false |
monovertex/ygorganizer | ygo_cards/migrations/0012_auto_20150428_2003.py | 1 | 1632 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('ygo_cards', '0011_auto_20150428_1928'),
]
operations = [
migrations.AddField(
model_name='cardversion',
... | mit | -2,774,960,631,228,366,000 | 29.222222 | 59 | 0.546569 | false | 4.31746 | false | false | false |
santisiri/popego | envs/ALPHA-POPEGO/lib/python2.5/site-packages/numpy-1.0.4-py2.5-linux-x86_64.egg/numpy/lib/shape_base.py | 1 | 22670 | __all__ = ['atleast_1d','atleast_2d','atleast_3d','vstack','hstack',
'column_stack','row_stack', 'dstack','array_split','split','hsplit',
'vsplit','dsplit','apply_over_axes','expand_dims',
'apply_along_axis', 'kron', 'tile', 'get_array_wrap']
import numpy.core.numeric as _nx
from numpy... | bsd-3-clause | 3,260,722,240,737,224,700 | 34.813586 | 80 | 0.545126 | false | 3.789702 | false | false | false |
jloehel/python_smaclient | python_smaclient/python_smaclient.py | 1 | 2134 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import smapi
_version = "0.1.0"
def main():
name = "python_smaclient"
usage = "%(prog)s [FUNCTION] [OPTIONS] [PARAMETER]"
description = "python_smaclient is tool which provides a line-mode interface to \n\
the z/VM System M... | isc | -4,287,333,744,154,060,000 | 37.107143 | 104 | 0.502343 | false | 4.511628 | false | false | false |
LennonChin/Django-Practices | MxOnline/MxOnline/settings.py | 1 | 4329 | """
Django settings for MxOnline project.
Generated by 'django-admin startproject' using Django 1.9.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
i... | apache-2.0 | -3,128,130,324,223,218,700 | 24.922156 | 91 | 0.674752 | false | 3.400628 | false | false | false |
CDSP/zephserver | zephserver/service/say_service.py | 1 | 1380 | import logging
from zephserver.infra.service_manager import ServiceManager
from zephserver.service.service_interface import ServiceInterface
from zephserver.infra.cluster_adapter import ClusterAdapter
from zephserversettings import MY_ROOM_HANDLER
from threading import Thread, Event, Lock
class SaySocket(ServiceInter... | gpl-3.0 | 6,018,160,330,912,290,000 | 31.880952 | 81 | 0.74058 | false | 3.262411 | false | false | false |
machinelearningdeveloper/aoc_2016 | 10/analyze_flow.py | 1 | 5019 | def load_description():
"""Load description of a flow in a network
from a file named description.txt.
"""
with open('description.txt') as description:
return [line.strip() for line in description]
def parse_description(description):
"""Parse a description of a flow.
Parameters
---... | mit | -7,966,641,591,973,846,000 | 31.803922 | 76 | 0.580195 | false | 4.418134 | false | false | false |
oasis-open/cti-taxii-client | taxii2client/v20/__init__.py | 1 | 31799 | """Python TAXII 2.0 Client API"""
from __future__ import unicode_literals
import json
import logging
import re
import time
import requests.exceptions
import six
from six.moves.urllib import parse as urlparse
from .. import MEDIA_TYPE_STIX_V20, MEDIA_TYPE_TAXII_V20
from ..common import (
_filter_kwargs_to_query_p... | bsd-3-clause | 1,762,857,325,360,751,900 | 38.364312 | 117 | 0.595775 | false | 4.379843 | false | false | false |
Yellowen/Djamo | tests/test_serializers.py | 1 | 1374 | import pytest
from djamo.base import Client
from djamo import Collection, Document
from djamo.serializers import *
class Car(Document):
fields = {
"model": String(min_length=3, max_length=15, required=True),
"cost": Float(min_value=7.0, max_value=40000.50),
"owners": List(),
"acc"... | gpl-2.0 | -7,651,303,770,361,461,000 | 21.9 | 68 | 0.558952 | false | 3.664 | true | false | false |
LaraChicharo/reflector | untitled.py | 1 | 1524 | import sublime, sublime_plugin
from sublime import Region
from criteria import no_need_to_change_base_chars, original_base_chars, mirrored_base_chars
from criteria import char_that_its_mirror_is_common
class ExampleCommand(sublime_plugin.TextCommand):
def run(self, edit):
invert_lines(self.view, edit)
# replace_... | mit | 4,314,440,529,687,097,000 | 30.770833 | 91 | 0.72769 | false | 2.827458 | false | false | false |
gnmerritt/poker | test/test_poker.py | 1 | 4294 | import unittest
import pokeher.cards as cards
import pokeher.constants as C
from arena.poker import PokerHand, Showdown
from arena_mocks import ScriptedArena
class BettingRoundTest(unittest.TestCase):
""""Tests that PokerHand can adjucate a full betting round"""
def build_run_hand(self, actions, all_ins=[], ... | mit | 5,511,092,333,272,943,000 | 33.910569 | 81 | 0.537261 | false | 3.460113 | true | false | false |
black3r/periscope3 | periscope/plugins/SubsWiki.py | 1 | 6149 | # -*- coding: utf-8 -*-
# This file is part of periscope3.
# Copyright (c) 2013 Roman Hudec <black3r@klikni.cz>
#
# This file contains parts of code from periscope.
# Copyright (c) 2008-2011 Patrick Dessalle <patrick@dessalle.be>
#
# periscope is free software; you can redistribute it and/or modify
# ... | gpl-2.0 | -2,493,536,706,585,662,500 | 40.228188 | 143 | 0.562592 | false | 3.775661 | false | false | false |
citc/CITC-IPv6-Tunnel-Broker | src/ddtb/prefix.py | 1 | 3977 | #!/usr/bin/python
# Copyright (C) CITC, Communications and Information Technology Commission,
# Kingdom of Saudi Arabia.
#
# Developed by CITC Tunnel Broker team, tunnelbroker@citc.gov.sa.
#
# This software is released to public domain under GNU General Public License
# version 2, June 1991 or any later. Please... | gpl-2.0 | -2,379,303,496,862,136,000 | 34.19469 | 78 | 0.58788 | false | 4.346448 | false | false | false |
hakujyo/chessplaying_robot | multi_robot_example.py | 1 | 1303 | # uArm Swift Pro - Python Library Example
# Created by: Richard Garsthagen - the.anykey@gmail.com
# V0.1 - June 2017 - Still under development
import uArmRobot
import time
bots = 1
#Configure Serial Port
myRobot = []
myRobot.append(uArmRobot.robot("com3"))
myRobot.append(uArmRobot.robot("com4"))
#... | gpl-3.0 | -1,085,575,215,830,134,100 | 16.884058 | 63 | 0.632387 | false | 2.92809 | false | false | false |
rtfd/readthedocs.org | readthedocs/rtd_tests/tests/test_version_commit_name.py | 1 | 3087 | # -*- coding: utf-8 -*-
from django.test import TestCase
from django_dynamic_fixture import get, new
from readthedocs.builds.constants import (
BRANCH,
LATEST,
STABLE,
TAG,
EXTERNAL,
)
from readthedocs.builds.models import Version
from readthedocs.projects.constants import REPO_TYPE_GIT, REPO_TYPE_... | mit | -7,507,650,282,841,257,000 | 33.685393 | 70 | 0.627146 | false | 3.544202 | true | false | false |
anqxyr/pyscp | pyscp/utils.py | 1 | 5528 | #!/usr/bin/env python3
###############################################################################
# Module Imports
###############################################################################
import logging
import re
import time
import threading
import signal
import functools
import inspect
#################... | mit | 9,127,071,233,384,100,000 | 25.373206 | 79 | 0.508345 | false | 4.150602 | false | false | false |
mvonthron/munin-influxdb | munininfluxdb/rfetch.py | 1 | 1659 | from __future__ import print_function
from pprint import pprint
try:
import paramiko
except ImportError:
print("SSH library Paramiko missing, needed for remote plugins")
class MuninRunner:
def __init__(self):
pass
class HostRunner:
def __init__(self):
pass
def main():
content = ... | bsd-2-clause | -5,439,511,905,195,337,000 | 24.523077 | 68 | 0.467752 | false | 4.582873 | false | false | false |
mkuron/espresso | testsuite/scripts/tutorials/test_06-active_matter__flow_field.py | 1 | 1394 | # Copyright (C) 2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo 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 versio... | gpl-3.0 | -4,819,142,397,167,792,000 | 33.85 | 78 | 0.7066 | false | 3.717333 | false | false | false |
nnseva/django-access | access/auth/backends.py | 1 | 2731 | from django.contrib.auth.backends import ModelBackend as ModelBackendBase
from django.contrib.auth.models import Permission
from django.apps import apps
from access.managers import AccessManager
import logging
logger = logging.getLogger(__name__)
class FakeRequest(object):
def __init__(self, backend, user):
... | lgpl-3.0 | -2,288,091,682,728,404,500 | 34.467532 | 102 | 0.630904 | false | 3.963716 | false | false | false |
kubeflow/kfp-tekton | components/gcp/container/component_sdk/python/kfp_component/google/ml_engine/_batch_predict.py | 1 | 3463 | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 2,722,046,224,394,050,600 | 39.752941 | 112 | 0.660699 | false | 3.921857 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.