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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
amenonsen/ansible | lib/ansible/modules/network/fortios/fortios_system_external_resource.py | 1 | 10703 | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# 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 Lic... | gpl-3.0 | 169,487,628,331,970,240 | 29.234463 | 109 | 0.579464 | false | 4.350813 | false | false | false |
pinballwizard/horse | horse/settings.py | 1 | 6060 | """
Django settings for horse project.
Generated by 'django-admin startproject' using Django 1.9.1.
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/
"""
# Build paths ... | gpl-3.0 | 4,460,702,238,426,681,000 | 26.207207 | 97 | 0.539493 | false | 3.213944 | false | false | false |
MightyPork/stm32-asm-examples | registers/gen/to_asm_f30x.py | 1 | 4316 |
from cmsis_svd.parser import SVDParser
import json
import re
# ------------------------------------
svd_name = 'STM32F30x.svd'
want_ofs = True
want_len = True
# Do not print poripheral field definitions (same as first instance)
no_print_fields = [
'GPIOB',
'GPIOC',
'GPIOD',
'GPIOE',
'GPIOF',
'GPIOG',
'USART... | mit | -8,582,438,179,664,634,000 | 19.951456 | 105 | 0.63114 | false | 2.541814 | false | false | false |
alfredodeza/remoto | remoto/backends/__init__.py | 1 | 11528 | import inspect
import json
import socket
import sys
import execnet
import logging
from remoto.process import check
class BaseConnection(object):
"""
Base class for Connection objects. Provides a generic interface to execnet
for setting up the connection
"""
executable = ''
remote_import_system... | mit | -5,670,547,759,678,942,000 | 34.470769 | 111 | 0.581974 | false | 4.438968 | false | false | false |
fergalmoran/robotopro | promotions/mixins.py | 1 | 1179 | import json
from django.http import HttpResponse
class AjaxableResponseMixin(object):
"""
Mixin to add AJAX support to a form.
Must be used with an object-based FormView (e.g. CreateView)
"""
def render_to_json_response(self, context, **response_kwargs):
data = json.dumps(context)
... | apache-2.0 | -6,176,625,241,103,926,000 | 34.727273 | 73 | 0.622561 | false | 4.023891 | false | false | false |
melqkiades/yelp | source/python/perfomancetest/context_recommender_tests.py | 1 | 16102 | import cPickle as pickle
import copy
import time
import itertools
import numpy
from etl import ETLUtils
from evaluation import precision_in_top_n
from recommenders.context.baseline.simple_user_baseline_calculator import \
SimpleUserBaselineCalculator
from recommenders.context.baseline.user_baseline_calculator impor... | lgpl-2.1 | 8,918,031,726,753,243,000 | 34.234136 | 110 | 0.679232 | false | 3.41361 | true | false | false |
pyfidelity/zfsbackup | zfsbackup/zfs.py | 1 | 6372 | #
# Copyright (c) 2010, Mij <mij@sshguard.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of condi... | bsd-2-clause | 4,368,549,535,226,458,600 | 39.075472 | 96 | 0.672003 | false | 3.950403 | false | false | false |
mnjy/critters | CrittersProto/generator/boxworm_algorithm.py | 1 | 1821 | #####################################################################
#
# hummingloop_algorithm.py
#
# Copyright (c) 2015, Nick Benson
# Modifications by benchan
#
# Released under the MIT License (http://opensource.org/licenses/MIT)
#
#####################################################################
import random... | mit | -1,726,495,276,093,130,500 | 27.46875 | 69 | 0.533773 | false | 2.918269 | false | false | false |
warner/magic-wormhole | src/wormhole/journal.py | 1 | 1179 | from __future__ import absolute_import, print_function, unicode_literals
import contextlib
from zope.interface import implementer
from ._interfaces import IJournal
@implementer(IJournal)
class Journal(object):
def __init__(self, save_checkpoint):
self._save_checkpoint = save_checkpoint
self._ou... | mit | -7,589,996,619,548,008,000 | 25.795455 | 72 | 0.64207 | false | 4.122378 | false | false | false |
jhogsett/linkit | python/simon5.py | 1 | 5584 | #!/usr/bin/python
import serial
import time
import random
import sys
s = None
num_leds = 93
play_time = 0.0
def flush_input():
s.flushInput()
def wait_for_ack():
while s.inWaiting() <= 0:
pass ... | mit | 4,013,220,484,216,460 | 37.777778 | 179 | 0.344914 | false | 4.452951 | false | false | false |
emccode/HeliosBurn | heliosburn/proxy/modules/server_overload.py | 1 | 4841 | import datetime
import random
from injectors import ExponentialInjector
from injectors import PlateauInjector
from module import AbstractModule
from twisted.python import log
from module_decorators import SkipHandler
from models import SOProfileModel
# ultimately pull from settings file
injector_map = {
"exponent... | mit | -6,316,699,127,163,408,000 | 31.059603 | 72 | 0.543689 | false | 4.528531 | false | false | false |
robofab-developers/fontParts | Lib/fontParts/test/test_bPoint.py | 1 | 33013 | import unittest
import collections
from fontTools.misc.py23 import basestring
from fontParts.base import FontPartsError
class TestBPoint(unittest.TestCase):
def getBPoint_corner(self):
contour, _ = self.objectGenerator("contour")
contour.appendPoint((0, 0), "move")
contour.appendPoint((10... | mit | -2,513,112,687,653,909,500 | 28.822042 | 73 | 0.565111 | false | 3.549022 | true | false | false |
ayepezv/GAD_ERP | addons/account/wizard/account_invoice_refund.py | 1 | 6614 | # -*- coding: utf-8 -*-
from odoo import models, fields, api, _
from odoo.tools.safe_eval import safe_eval
from odoo.exceptions import UserError
class AccountInvoiceRefund(models.TransientModel):
"""Refunds invoice"""
_name = "account.invoice.refund"
_description = "Invoice Refund"
@api.model
d... | gpl-3.0 | -2,647,333,404,067,818,500 | 50.271318 | 205 | 0.518597 | false | 4.456873 | false | false | false |
akx/shoop | shoop/core/fields/tagged_json.py | 1 | 3243 | # This file is part of Shoop.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
"""
"Tagged JSON" encoder/decoder.
Objects that are normally not unambiguously representable via J... | agpl-3.0 | -1,473,840,330,059,314,200 | 30.485437 | 106 | 0.659574 | false | 3.959707 | false | false | false |
alsgregory/quasi_geostrophic_model | demos/demo_two_level_variance_reduction.py | 1 | 2299 | """ sample variance decay of two level QG system """
from __future__ import division
from __future__ import absolute_import
from firedrake import *
from quasi_geostrophic_model import *
import numpy as np
import matplotlib.pyplot as plot
# define mesh hierarchy
mesh = UnitSquareMesh(5, 5)
L = 4
mesh_hierarchy ... | mit | 1,268,599,031,481,539,800 | 22.701031 | 86 | 0.564158 | false | 2.803659 | false | false | false |
alphagov/notifications-admin | app/navigation.py | 1 | 10999 | from itertools import chain
from flask import request
class Navigation:
mapping = {}
selected_class = "selected"
def __init__(self):
self.mapping = {
navigation: {
# if not specified, assume endpoints are all in the `main` blueprint.
self.get_endpoint... | mit | -5,444,905,363,476,817,000 | 30.15864 | 87 | 0.500864 | false | 4.404886 | false | false | false |
adowaconan/Spindle_by_Graphical_Features | duplicate/Generate_Features (adowaconan).py | 1 | 5970 | # -*- coding: utf-8 -*-
"""
Created on Wed May 17 12:35:28 2017
@author: ning
"""
#import mne
import numpy as np
import pandas as pd
import os
from time import time
#import networkx as nx
from collections import Counter
os.chdir('D:\\NING - spindle\\Spindle_by_Graphical_Features')
channelList = ['F3','F4','C3','C4','... | mit | 4,144,034,402,099,314,700 | 46.388889 | 121 | 0.597655 | false | 3.256956 | false | false | false |
zeekay/elemental | elemental/js.py | 1 | 3175 | from sys import modules
from core import Element as Element
class js(Element):
tag = 'js'
def __init__(self, script='', url=''):
if script:
self.format = '<script type="text/javascript">%s</script>' % script
elif url:
self.format = '<script type="text/javascript" src="%... | mit | -3,511,169,699,096,084,000 | 28.95283 | 85 | 0.654488 | false | 2.606732 | false | false | false |
visipedia/tf_classification | preprocessing/inputs.py | 1 | 29376 | # Some of this code came from the https://github.com/tensorflow/models/tree/master/slim
# directory, so lets keep the Google license around for now.
#
# 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 c... | mit | 5,512,424,368,205,709,000 | 41.027182 | 141 | 0.625919 | false | 3.655095 | false | false | false |
sunqm/pyscf | pyscf/lo/ibo.py | 1 | 16558 | #!/usr/bin/env python
# Copyright 2014-2020 The PySCF Developers. 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
#
# U... | apache-2.0 | 5,620,724,558,578,377,000 | 39.583333 | 155 | 0.543967 | false | 2.981812 | false | false | false |
raxod502/straight.el | watcher/straight_watch_callback.py | 1 | 2215 | #!/usr/bin/env -S python3 -u
import os
import pathlib
import sys
WATCHEXEC_VAR_COMMON = "WATCHEXEC_COMMON_PATH"
WATCHEXEC_VARS = [
"WATCHEXEC_CREATED_PATH",
"WATCHEXEC_REMOVED_PATH",
"WATCHEXEC_RENAMED_PATH",
"WATCHEXEC_WRITTEN_PATH",
"WATCHEXEC_META_CHANGED_PATH",
]
def die(message):
print... | mit | -3,666,085,764,388,796,400 | 28.144737 | 80 | 0.628894 | false | 3.49921 | false | false | false |
Onager/plaso | plaso/cli/status_view.py | 1 | 18865 | # -*- coding: utf-8 -*-
"""The status view."""
import ctypes
import sys
import time
try:
import win32api
import win32console
except ImportError:
win32console = None
from dfvfs.lib import definitions as dfvfs_definitions
import plaso
from plaso.cli import tools
from plaso.cli import views
from plaso.lib impor... | apache-2.0 | -6,684,999,783,999,508,000 | 33.935185 | 80 | 0.660906 | false | 3.798067 | false | false | false |
kleinfeld/medpy | setup.py | 1 | 4152 | #!/usr/bin/env python
# version: 0.1.2
import os
# setuptools >= 0.7 supports 'python setup.py develop'
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# The maxflow graphcut wrapper ... | gpl-3.0 | -4,711,353,523,098,394,000 | 33.31405 | 114 | 0.589355 | false | 3.181609 | false | false | false |
CARPEM/GalaxyDocker | data-manager-hegp/analysisManager/analysismanager/STARTUP_Add_Workflows_Information.py | 1 | 8085 | import os
import sys
import json
from datamanagerpkg import ProtonCommunication_data_manager
from datamanagerpkg import GalaxyCommunication_data_manager
from sequencer.models import Experiments, GalaxyUsers
from sequencer.models import GalaxyJobs, ExperimentRawData
from sequencer.models import UserCommonJobs,Supported... | mit | 5,939,821,248,430,112,000 | 48.601227 | 196 | 0.590847 | false | 4.239643 | false | false | false |
MMaus/mutils | models/slip_doPri-old.py | 1 | 22110 | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 23 14:46:14 2011
@author: moritz
"""
# This file implements the SLIP model
from scipy.integrate.vode import dvode, zvode
from scipy.integrate import odeint, ode
from pylab import (zeros, sin, cos, sqrt, array, linspace,
arange, ones_like, hstack, vsta... | gpl-2.0 | -5,720,251,461,055,179,000 | 33.332298 | 89 | 0.501131 | false | 3.167168 | false | false | false |
rasbt/protein-science | tutorials/substructure_alignment/Scripts/multimol2_rmsd_align.py | 1 | 1043 | # Sebastian Raschka 2014
#
# Aligns multiple mol2 files to a reference mol2 files and
# writes the aligned targets to the hard drive.
#
# USAGE from command shell command line:
# %> python3 multimol2_rmsd_align.py input_dir/ output_dir/ ref.mol2 smiles_string
import subprocess
import os
import sys
RMSD_TOOL = "/soft/... | gpl-3.0 | 2,310,414,354,662,612,000 | 30.606061 | 104 | 0.651007 | false | 2.929775 | false | false | false |
qxsch/QXSConsolas | examples/CopyThat/copyThat/CTSplunk/Test.py | 1 | 2084 | #!/usr/bin/python
import logging, os
from QXSConsolas.Cli import CliApp
from QXSConsolas.Command import SSH, call
@CliApp(
Name = "Tests something",
Description = "A very nice description cannot live without the text",
Opts = [
{ "argument": "--name:", "default": None, "multiple": True, "desc... | gpl-3.0 | -3,096,518,374,377,826,000 | 41.530612 | 136 | 0.573417 | false | 3.526227 | false | false | false |
bmazin/ARCONS-pipeline | flatcal/illuminationCal.py | 1 | 16204 | #!/bin/python
"""
Author: Matt Strader Date:August 19,2012
Opens a twilight flat h5 and makes the spectrum of each pixel.
Then takes the median of each energy over all pixels
A factor is then calculated for each energy in each pixel of its
twilight count rate / median count rate
The factors are written out in an... | gpl-2.0 | 2,251,571,697,630,836,500 | 43.152589 | 273 | 0.630462 | false | 3.548839 | false | false | false |
MateuszG/django-user-example | app/settings.py | 1 | 2129 | """
Django settings for app project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import... | mit | 5,518,857,587,328,920,000 | 23.755814 | 71 | 0.720996 | false | 3.235562 | false | false | false |
MockyJoke/numbers | ex1/code/monthly_totals.py | 1 | 3064 |
# coding: utf-8
# In[1]:
import numpy as np
import pandas as pd
def get_precip_data():
return pd.read_csv('precipitation.csv', parse_dates=[2])
def date_to_month(d):
return '%04i-%02i' % (d.year, d.month)
def pivot_months_pandas(data):
"""
Create monthly precipitation totals for each station in... | mit | 3,098,951,167,550,225,000 | 27.635514 | 95 | 0.620431 | false | 3.385635 | false | false | false |
AsymmetricVentures/asym-logging | asymmetricbase/logging/audit.py | 1 | 4522 | # -*- coding: utf-8 -*-
# Asymmetric Base Framework - A collection of utilities for django frameworks
# Copyright (C) 2013 Asymmetric Ventures Inc.
#
# 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 S... | gpl-2.0 | 5,634,017,856,155,444,000 | 27.086957 | 87 | 0.700796 | false | 3.291121 | false | false | false |
nathanielvarona/airflow | airflow/sensors/bash.py | 1 | 3395 | #
# 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... | apache-2.0 | -6,741,692,652,340,570,000 | 39.416667 | 88 | 0.619735 | false | 4.449541 | false | false | false |
Leopardob/dice-dev | core_apps/Home/core_app.py | 1 | 1888 | import os
from PyQt5.QtCore import pyqtSignal, pyqtProperty, qDebug, pyqtSlot
from dice.dice_extras.core_app import CoreApp
from dice.dice_extras.tools.json_sync import JsonList
class Home(CoreApp):
def __init__(self, parent=None):
super(Home, self).__init__(parent)
settings_folder = os.path.joi... | gpl-3.0 | -5,843,003,365,226,793,000 | 39.191489 | 108 | 0.652542 | false | 3.949791 | false | false | false |
PressLabs/lithium | lithium/views/base.py | 1 | 1507 | from functools import wraps
import json
from flask import request, Response
from flask.ext.classy import FlaskView
def get_request_type():
types = {
'application/json': 'json',
'application/xml': 'xml'
}
if 'Content-Type' in request.headers:
if request.headers['Content-Type'] in types:
retur... | apache-2.0 | 7,260,151,536,983,540,000 | 23.306452 | 72 | 0.689449 | false | 3.844388 | false | false | false |
bloem-project/bloem-server | files/tasks.py | 1 | 1132 | import hashlib
import os
import logging
from celery import shared_task
from .models import File, Directory
logger = logging.getLogger()
@shared_task
def scan_directory(root, type):
"""Walk through a directory and add files matching a certain pattern to the database."""
for path, dirs, files in os.walk(root)... | gpl-3.0 | -8,059,939,730,043,644,000 | 38.034483 | 92 | 0.582155 | false | 4.337165 | false | false | false |
cgwire/zou | zou/app/api.py | 1 | 4415 | import os
import sys
from zou.app.utils import events, api as api_utils
from flask import Blueprint
from .blueprints.assets import blueprint as assets_blueprint
from .blueprints.auth import blueprint as auth_blueprint
from .blueprints.breakdown import blueprint as breakdown_blueprint
from .blueprints.comments import... | agpl-3.0 | -2,686,815,057,494,757,400 | 34.32 | 80 | 0.726614 | false | 4.084181 | true | false | false |
velenux/photofix | photofix.py | 1 | 7000 | # encoding: utf-8
import os
import sys
# for file hash calculation
import hashlib
# datetime manipulation
from datetime import datetime
# exif tags
from gi.repository import GObject, GExiv2
# for moving files and dirs
import shutil
import errno
# configuration
VALID_IMAGES = set(['.cr2', '.cr3', '.crw', '.dng', '... | gpl-2.0 | 2,211,774,835,877,225,000 | 31.55814 | 157 | 0.632857 | false | 3.589744 | false | false | false |
ANGELHACK-JARVIS/safe-locality | app.py | 1 | 9649 |
from flask import Flask, render_template, json, request, redirect, session
from flask.ext.mysql import MySQL
from werkzeug import generate_password_hash, check_password_hash
from flask_googlemaps import GoogleMaps
from flask_googlemaps import Map
import pygal
from pygal.style import BlueStyle, NeonStyle,DarkSolarizedS... | mit | -2,559,263,458,218,067,500 | 36.691406 | 335 | 0.611462 | false | 3.612505 | false | false | false |
darren-wang/gl | glance/api/v1/upload_utils.py | 1 | 12541 | # Copyright 2013 OpenStack Foundation
# 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 requ... | apache-2.0 | -4,218,632,327,757,525,500 | 41.225589 | 79 | 0.553225 | false | 4.560364 | false | false | false |
Hellowlol/plexpy | plexpy/activity_handler.py | 1 | 11652 | # This file is part of PlexPy.
#
# PlexPy 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.
#
# PlexPy is distributed in the hope t... | gpl-3.0 | 3,072,818,931,053,455,000 | 43.30038 | 123 | 0.588841 | false | 4.348638 | false | false | false |
olliemath/Python-TinyEvolver | examples/Example3.py | 1 | 1280 | from tinyevolver import Population
import random
try:
import matplotlib.pyplot as plt
except ImportError:
plt = None
random.seed(1234)
"""
For this example we're going to try fiting a power of x to some data:
so e.g. d(t) = ax^n + b should resonably approximate some data
depending on t.
"""
# We ... | gpl-2.0 | -5,832,435,131,763,731,000 | 25.666667 | 82 | 0.639063 | false | 2.997658 | false | false | false |
rgerkin/python-neo | neo/io/asciispiketrainio.py | 1 | 3629 | # -*- coding: utf-8 -*-
"""
Classe for reading/writing SpikeTrains in a text file.
It is the simple case where different spiketrains are written line by line.
Supported : Read/Write
Author: sgarcia
"""
import os
import numpy as np
import quantities as pq
from neo.io.baseio import BaseIO
from neo.core import Segm... | bsd-3-clause | -4,014,761,197,161,626,000 | 25.683824 | 97 | 0.527142 | false | 3.714432 | false | false | false |
op3/hdtv | hdtv/backgroundmodels/exponential.py | 1 | 2206 | # -*- coding: utf-8 -*-
# HDTV - A ROOT-based spectrum analysis software
# Copyright (C) 2006-2009 The HDTV development team (see file AUTHORS)
#
# This file is part of HDTV.
#
# HDTV is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# ... | gpl-2.0 | 4,411,505,221,114,811,400 | 32.424242 | 78 | 0.647325 | false | 4.040293 | false | false | false |
manfer/LFP.bundle | Contents/Code/__init__.py | 1 | 2659 | # -*- coding: utf-8 -*-
TITLE = u'LFP'
PREFIX = '/video/lfp'
LFP_BASE_URL = 'http://www.laliga.es'
LFP_MULTIMEDIA = '%s/multimedia' % LFP_BASE_URL
LFP_ICON = 'lfp.png'
ICON = 'default-icon.png'
LFP_HL_ICON = 'highlights.png'
LFP_VIDEO_ICON = 'video.png'
LFP_PHOTO_ICON = 'photo... | gpl-3.0 | 4,681,088,658,285,820,000 | 27.287234 | 91 | 0.608499 | false | 2.954444 | false | false | false |
gooddata/openstack-nova | nova/context.py | 1 | 22746 | # Copyright 2011 OpenStack Foundation
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | apache-2.0 | -4,422,274,522,955,957,000 | 39.763441 | 81 | 0.636859 | false | 4.402168 | false | false | false |
buzztroll/staccato | staccato/scheduler/simple_thread.py | 1 | 1673 | import time
import staccato.openstack.common.service as os_service
import staccato.xfer.events as s_events
import staccato.xfer.executor as s_executor
import staccato.xfer.constants as s_constants
from staccato.xfer.constants import Events
import staccato.db as s_db
class SimpleCountSchedler(os_service.Service):
... | apache-2.0 | 3,352,977,460,077,363,700 | 33.142857 | 69 | 0.616856 | false | 3.507338 | false | false | false |
smlng/bgp-stats | src/python/bgp-rib-stats.py | 1 | 13070 | #!/usr/bin/python
from __future__ import print_function
import argparse
import gzip
import os
import radix
import re
import sys
from bz2 import BZ2File
from datetime import datetime, timedelta
from multiprocessing import Process, Queue, cpu_count
from netaddr import IPSet
# own imports
import mrtx
verbose = False
... | mit | 6,659,661,468,522,400,000 | 34.137097 | 139 | 0.53619 | false | 3.293851 | false | false | false |
jtb0/myPiProject | editConffile.py | 1 | 3739 | #!/usr/bin/env python
#coding: utf8
###############################################################################
# #
# python editConfFile.py </location/to/conffile.conf> <set/get> <section> <variable> <value> #
# ... | gpl-3.0 | -3,766,158,335,119,960,000 | 35.656863 | 138 | 0.577695 | false | 3.694664 | true | false | false |
shadowgamefly/news-Digest | web/web/settings.py | 1 | 2732 | """
Django settings for web project.
Generated by 'django-admin startproject' using Django 1.8.14.
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 paths i... | mit | 1,399,339,844,919,125,500 | 25.269231 | 71 | 0.689239 | false | 3.415 | false | false | false |
Azure/azure-sdk-for-python | sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_authentication.py | 1 | 4537 | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------... | mit | 5,170,395,117,075,362,000 | 44.37 | 156 | 0.707075 | false | 4.018601 | false | false | false |
christiancg/indoor | authenticationdecorator.py | 1 | 1123 | from functools import wraps
from flask import request, Response
from modelos import Usuario
from logger import Logger
log = Logger(__name__)
def check_auth(username, password):
"""This function is called to check if a username /
password combination is valid.
"""
try:
usr = Usuario.query.filter(Usua... | apache-2.0 | 454,912,826,066,127,740 | 27.794872 | 68 | 0.680321 | false | 4.02509 | false | false | false |
hyperized/ansible | lib/ansible/modules/cloud/azure/azure_rm_lock_info.py | 1 | 8055 | #!/usr/bin/python
#
# Copyright (c) 2019 Yuwei Zhou, <yuwzho@microsoft.com>
#
# 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',
... | gpl-3.0 | 6,295,349,006,659,803,000 | 35.121076 | 156 | 0.611546 | false | 4.199687 | false | false | false |
CanaimaGNULinux/canaimagnulinux.userdata | canaimagnulinux/userdata/userdataschema.py | 1 | 6237 | # -*- coding: utf-8 -*-
from canaimagnulinux.userdata import _
from plone.app.users.userdataschema import IUserDataSchema
from plone.app.users.userdataschema import IUserDataSchemaProvider
from zope import schema
from zope.interface import implements
from zope.schema import ValidationError
class TermsNotAccepted(V... | gpl-2.0 | -6,964,262,227,185,304,000 | 39.764706 | 169 | 0.601571 | false | 4.171906 | false | false | false |
jessepeterson/commandment | commandment/dep/__init__.py | 1 | 3899 | from typing import Set, Dict
from enum import Enum
class SetupAssistantStep(Enum):
"""This enumeration contains all possible steps of Setup Assistant that can be skipped.
See Also:
- `DEP Web Services: Define Profile <https://developer.apple.com/library/content/documentation/Miscellaneous/Reference... | mit | -1,331,331,849,121,758,200 | 36.057143 | 250 | 0.682087 | false | 3.844862 | false | false | false |
ad510/find_pennapps_hackers | find_pennapps_hackers.py | 1 | 3884 | #!/usr/bin/env python3
import http.client
import re
import sys
import time
def main():
# print info about me :)
print("Andrew Downing")
print("website: http://andrewd.50webs.com")
print("github: ad510")
print()
# find twitter usernames
twitterUsers = set(findbetween(gethttp("twitter.com", ... | mit | -4,278,235,120,225,218,000 | 40.319149 | 157 | 0.558445 | false | 3.449378 | false | false | false |
dhowland/EasyAVR | keymapper/easykeymap/kleparse.py | 1 | 9205 | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
#
# Easy AVR USB Keyboard Firmware Keymapper
# Copyright (C) 2013-2017 David Howland
#
# 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 versi... | gpl-2.0 | 988,168,901,522,469,400 | 34.747082 | 86 | 0.560684 | false | 2.957824 | false | false | false |
markvoelker/refstack | refstack/db/utils.py | 1 | 1872 | # Copyright (c) 2015 Mirantis, 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 requir... | apache-2.0 | -6,631,642,058,597,606,000 | 32.428571 | 78 | 0.608974 | false | 4.303448 | false | false | false |
Murkantilism/LoL_API_Research | Summoner_Data_Retrieval/DEPRECATED/Generate_Summoners_Hourly.py | 1 | 1818 | __author__ = 'Deniz'
import time, subprocess, argparse, getopt
from sys import argv
import sys, os
DEFAULT_NUM_SUMMONERS = 250
DEFAULT_LOCATION = os.curdir + "\_out\Random_Summoners_run_"+str(time.time())
def main():
parser = argparse.ArgumentParser(description='Attempt to generate X number'
... | mit | 5,609,995,969,163,271,000 | 38.543478 | 133 | 0.59516 | false | 3.710204 | false | false | false |
Intelimetrica/coati | coati/generator.py | 1 | 3847 | from coati.powerpoint import open_pptx, runpowerpoint
import os
import sys
import logging
from shutil import copyfile
from colorlog import ColoredFormatter
LOG_LEVEL = logging.DEBUG
LOGFORMAT = "%(asctime)s - %(log_color)s%(message)s"
logging.root.setLevel(LOG_LEVEL)
formatter = ColoredFormatter(LOGFORMAT)
stream = lo... | mit | -2,483,990,554,525,858,300 | 32.452174 | 109 | 0.643878 | false | 3.299314 | true | false | false |
samuelpych/Final-Project | finalproject.py | 1 | 5690 | """
Finalproject.py
Author: Sam Pych
Credit: Thomas Kyle Postans, Hagin, My Space Game, David Wilson
Assignment: Create a pong game with two movable blocks and the ball either bounces off the wall
or appears on the other side.
optional: keep score
bounde=self.collidingWithSprites(Pongblock1)
"""
from ggame import App,... | mit | -5,657,514,026,309,861,000 | 33.70122 | 104 | 0.577153 | false | 3.490798 | false | false | false |
zasdfgbnm/tensorflow | tensorflow/contrib/quantize/python/common.py | 1 | 4098 | # Copyright 2017 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 | -8,926,153,720,807,249,000 | 32.590164 | 80 | 0.704978 | false | 4.069513 | false | false | false |
corradio/electricitymap | test_parser.py | 1 | 4107 | #!/usr/bin/env python3
"""
Usage: poetry run test_parser FR production
"""
import time
import sys
import pprint
import datetime
import logging
import arrow
import click
from electricitymap.contrib.parsers.lib.parsers import PARSER_KEY_TO_DICT
from parsers.lib.quality import (
validate_consumption,
validate_p... | gpl-3.0 | -8,112,435,090,802,228,000 | 30.837209 | 160 | 0.590699 | false | 3.571304 | false | false | false |
brendanv/nasa-api | nasa/maas.py | 1 | 1543 | from nasa import api
from nasa.base import NasaApiObject
''' Retrieves the most recent MAAS Report '''
def latest():
response = api.external_api_get(
'http://marsweather.ingenology.com/v1/latest/',
{},
)
return MAASReport.from_response(response['report'])
''' Retrieves the set of MAAS Repo... | gpl-3.0 | 5,404,063,207,014,197,000 | 32.543478 | 79 | 0.615684 | false | 3.596737 | false | false | false |
wkerzendorf/chiantipy | chiantipy/chianti/__init__.py | 1 | 2095 | '''the ChiantiPy - CHIANTI Python package
calculates various aspects of emission line and continua from the
CHIANTI atomic database for astrophysical spectroscopy'''
import os
import constants
import filters
import mputil
#
#try:
# chInteractive = int(os.environ['CHIANTIPY_INTERACTIVE'])
#except:
# chInteractive ... | gpl-3.0 | 1,139,370,885,466,107,600 | 33.916667 | 91 | 0.702148 | false | 3.341308 | false | false | false |
librasungirl/openthread | tests/toranj/wpan.py | 1 | 61707 | #!/usr/bin/env python3
#
# Copyright (c) 2018, 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
# ... | bsd-3-clause | -7,788,658,360,895,456,000 | 36.195298 | 121 | 0.568218 | false | 3.540072 | false | false | false |
realspencerdupre/PoS_Sourcecoin | contrib/linearize/linearize-hashes.py | 1 | 2763 | #!/usr/bin/python
#
# linearize-hashes.py: List blocks in a linear, no-fork version of the chain.
#
# Copyright (c) 2013 The Bitcoin 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
impor... | mit | 8,287,842,049,013,357,000 | 25.066038 | 78 | 0.6616 | false | 2.951923 | false | false | false |
xsteadfastx/bib-api | app/mod_api/views.py | 1 | 7896 | import arrow
from flask import current_app, jsonify, request, Response, g
from itsdangerous import URLSafeSerializer
from app.mod_api import mod_api, schemes
from app.mod_api.decorators import valid_facility, valid_token
from app.mod_api.errors import InvalidUsage
from app.mod_api.ical import build_ical
@mod_api.ro... | mit | -5,869,231,872,556,535,000 | 28.014706 | 79 | 0.589965 | false | 3.71039 | false | false | false |
navtejsingh/pychimera | chimera/centroid.py | 1 | 2287 | from __future__ import division
import numpy as np
from photutils.morphology import centroid_com, centroid_1dg, centroid_2dg
def recenter(image, pos, window_size = 15, method = "2dg"):
"""
Recenter each star in each frame of the image cube before performing
aperture photometry to take care of slight mis... | bsd-3-clause | 6,130,274,085,771,288,000 | 29.918919 | 94 | 0.493223 | false | 3.850168 | false | false | false |
lewisodriscoll/sasview | src/sas/sasgui/guiframe/local_perspectives/plotting/graphAppearance.py | 3 | 10122 | #!/usr/bin/python
"""
Dialog for general graph appearance
This software was developed by Institut Laue-Langevin as part of
Distributed Data Analysis of Neutron Scattering Experiments (DANSE).
Copyright 2012 Institut Laue-Langevin
"""
import wx
from sas.sasgui.plottools.SimpleFont import SimpleFont
COLOR = ['black... | bsd-3-clause | 4,084,120,535,552,454,700 | 31.757282 | 95 | 0.598202 | false | 3.206208 | false | false | false |
daviewales/pimotion | pimotion/backend.py | 1 | 4082 | #!/usr/bin/env python3
import picamera
import numpy
import io
import time
def get_png_image(resolution=(640, 480)):
width, height = resolution
image_stream = io.BytesIO()
with picamera.PiCamera() as camera:
camera.resolution = resolution
camera.start_preview()
camera.capture(imag... | bsd-2-clause | -5,974,357,752,693,007,000 | 32.735537 | 79 | 0.656786 | false | 4.098394 | false | false | false |
yukisakurai/hhntup | higgstautau/datasets.py | 1 | 53181 | """
This module generates a database of all MC and data datasets
"""
from rootpy.io import root_open, DoesNotExist
#from multiprocessing import Pool, cpu_count
import sys
from operator import itemgetter
import logging
import re
import glob
import os
import cPickle as pickle
import atexit
import fnmatch
from collectio... | gpl-3.0 | -2,071,067,147,111,899,000 | 39.565217 | 92 | 0.391756 | false | 4.835955 | false | false | false |
sahat/bokeh | bokeh/plot_object.py | 1 | 14108 | from __future__ import absolute_import, print_function
import os.path
from uuid import uuid4
from functools import wraps
import warnings
import logging
logger = logging.getLogger(__file__)
from six import add_metaclass, iteritems
from six.moves.urllib.parse import urlsplit
from .embed import autoload_static, autolo... | bsd-3-clause | 4,577,947,309,496,214,000 | 34.007444 | 90 | 0.581372 | false | 4.148192 | false | false | false |
apierleoni/MyBioDb | modules/search_engine.py | 1 | 20410 |
__author__ = 'pierleonia'
DEBUG=True
import os, traceback
from multiprocessing import Pool
class BioentrySearchEngineBackend(object):
def rebuild(self, bioentry_ids=[], **kwargs):
raise NotImplementedError()
def indexes(self, **kwargs):
raise NotImplementedError()
def after_insert(self... | bsd-3-clause | -3,849,043,284,926,460,400 | 38.941292 | 216 | 0.507937 | false | 4.511494 | false | false | false |
freedomtan/tensorflow | tensorflow/python/keras/preprocessing/timeseries.py | 1 | 8536 | # Copyright 2020 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 | 8,371,571,566,166,718,000 | 40.843137 | 94 | 0.678304 | false | 3.894161 | false | false | false |
akintolga/superdesk-aap | server/aap/io/feed_parsers/zczc_medianet.py | 1 | 4102 | #
# Copyright 2013, 2014 Sourcefabric z.u. and contributors.
#
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/superdesk/license*.
from .zczc import ZCZCFeedParser
from superdesk.metadata.item import FO... | agpl-3.0 | -4,504,097,776,540,009,500 | 39.215686 | 120 | 0.573379 | false | 3.588801 | false | false | false |
mdworks2016/work_development | Python/20_Third_Certification/venv/lib/python3.7/site-packages/django/contrib/gis/db/backends/mysql/operations.py | 4 | 3816 | from django.contrib.gis.db.backends.base.adapter import WKTAdapter
from django.contrib.gis.db.backends.base.operations import (
BaseSpatialOperations,
)
from django.contrib.gis.db.backends.utils import SpatialOperator
from django.contrib.gis.db.models import aggregates
from django.contrib.gis.geos.geometry import G... | apache-2.0 | 3,364,332,919,509,989,400 | 37.545455 | 95 | 0.622379 | false | 4.170492 | false | false | false |
dguevel/PyZOGY | PyZOGY/test/mock_image_class.py | 1 | 1822 | import numpy as np
from astropy.io import fits
class MockImageClass(np.ndarray):
"""Creates a mock version of ImageClass for testing"""
def __new__(cls, image_filename='', psf_filename='', mask_filename=None, n_stamps=1, saturation=np.inf, variance=np.inf, shape=(50,50)):
raw_image, header = np.ones(s... | mit | 7,069,680,640,840,340,000 | 40.409091 | 140 | 0.618551 | false | 3.531008 | false | false | false |
rawdlite/mopidy-beets-local | setup.py | 1 | 1430 | from __future__ import unicode_literals
import re
from setuptools import find_packages, setup
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-BeetsLocal',
version=get_vers... | apache-2.0 | -1,899,545,129,688,441,900 | 27.039216 | 68 | 0.586713 | false | 3.575 | false | false | false |
SalesforceFoundation/CumulusCI | cumulusci/tasks/metadata_etl/value_sets.py | 1 | 3136 | from cumulusci.core.exceptions import TaskOptionsError
from cumulusci.tasks.metadata_etl import MetadataSingleEntityTransformTask
from cumulusci.utils.xml.metadata_tree import MetadataElement
class AddValueSetEntries(MetadataSingleEntityTransformTask):
entity = "StandardValueSet"
task_options = {
**Me... | bsd-3-clause | -2,364,462,508,562,814,000 | 41.958904 | 98 | 0.546237 | false | 4.962025 | false | false | false |
mrtukkin/ifp | olympic_layer/olympic_data_layer.py | 1 | 3300 | import caffe
import numpy as np
from glob import glob
import random
from PIL import Image
from os.path import normpath, basename
from scipy.misc import imresize
from ifp_morris import downsample_segmentation
class OlympicDataLayer(caffe.Layer):
im_factor = 1.0
#label_factor = 0.25
label_factor = 0.5
#... | gpl-3.0 | -33,537,435,243,634,360 | 31.352941 | 82 | 0.578788 | false | 3.473684 | false | false | false |
UCHIC/ODM2Sensor | src/sensordatainterface/forms.py | 1 | 31049 | # -*- coding: utf-8 -*-
from django.core.exceptions import ValidationError
from django.db.models import Q
from django.forms import ModelForm, TextInput, Textarea, NumberInput, ModelChoiceField, DateTimeInput, Select, SelectMultiple \
, ModelMultipleChoiceField, FileInput, HiddenInput
from django.forms.models import... | bsd-3-clause | -1,623,401,265,978,536,200 | 32.492988 | 176 | 0.60735 | false | 4.515416 | false | false | false |
zackdever/vsims | vsims/nestedstore.py | 1 | 2886 | from vsims.block import Block
class NestedStore:
"""Simple key-value store that supports nested transactional blocks."""
def __init__(self):
self.blocks = []
self.store = {}
self.value_counts = {}
def set(self, key, value, doLog=True):
"""Add the key to the store if not alr... | mit | 7,066,074,681,128,292,000 | 30.369565 | 78 | 0.567221 | false | 4.053371 | false | false | false |
Venturi/cms | env/lib/python2.7/site-packages/aldryn_people/south_migrations/0009_rename_tables_because_of_new_cms.py | 1 | 14315 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import connection
class Migration(SchemaMigration):
TABLES_MAPPING = {
'cmsplugin_peopleplugin': 'aldryn_people_peopleplugin',
}
REVERSE_TABLES_MAPPING = dict((v, k) for k, v in TA... | gpl-2.0 | 6,811,224,199,680,188,000 | 80.335227 | 192 | 0.557248 | false | 3.585922 | false | false | false |
WebCampZg/conference-web | people/admin.py | 1 | 1117 | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from people.models import User
from django.utils.translation import ugettext as _
from .forms import CustomUserCreationForm, CustomUserChangeForm
class CustomUserAdmin(UserAdmin):
# Set the add/modify forms
add_form = CustomUser... | bsd-3-clause | -74,037,275,173,721,460 | 35.032258 | 85 | 0.610564 | false | 3.735786 | false | false | false |
juju/python-libjuju | juju/client/facade.py | 1 | 29940 | import argparse
import builtins
import functools
import json
import keyword
import pprint
import re
import textwrap
import typing
import typing_inspect
from collections import defaultdict
from glob import glob
from pathlib import Path
from typing import Any, Mapping, Sequence, TypeVar
from . import codegen
_marker = ... | apache-2.0 | -4,172,417,565,822,012,000 | 31.472885 | 124 | 0.52682 | false | 4.21809 | false | false | false |
artursmet/django-prices-openexchangerates | setup.py | 1 | 1578 | #! /usr/bin/env python
import os
from setuptools import setup
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings')
CLASSIFIERS = [
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Progr... | bsd-3-clause | 7,590,473,101,946,400,000 | 36.571429 | 78 | 0.676806 | false | 3.730496 | false | false | false |
Yangqing/caffe2 | caffe2/python/layers/sparse_lookup.py | 1 | 13787 | # Copyright (c) 2016-present, Facebook, 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... | apache-2.0 | 2,902,705,643,870,155,000 | 38.846821 | 81 | 0.565895 | false | 4.013683 | false | false | false |
odahoda/noisicaa | noisicaa/builtin_nodes/instrument/model.py | 1 | 2817 | #!/usr/bin/python3
# @begin:license
#
# Copyright (c) 2015-2019, Benjamin Niemann <pink@odahoda.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at y... | gpl-2.0 | 1,434,338,962,164,650,500 | 34.2125 | 85 | 0.699681 | false | 3.934358 | false | false | false |
cisalhante/matricula-o-matic | test_bench_disciplina.py | 1 | 1134 | __author__ = "William Batista Aguiar Motta"
__email__ = "william.b.motta@aluno.unb.br"
__license__ = "GPL"
import matricula_web_web_crawler as MT
import sys
if len(sys.argv)>1:
for a in sys.argv[1:]:
# print('\n')
D = MT.Disciplina(a)
print(D.codigo)
print(D.nome)
print(... | gpl-3.0 | -4,359,458,083,531,792,400 | 23.652174 | 44 | 0.538801 | false | 2.712919 | false | false | false |
ptressel/sahana-eden-madpub | modules/s3/s3validators.py | 1 | 20338 | # -*- coding: utf-8 -*-
""" Custom Validators
@requires: U{B{I{gluon}} <http://web2py.com>}
@author: Fran Boon <fran[at]aidiq.com>
@author: Dominic König <dominic[at]aidiq.com>
@author: sunneach
@copyright: (c) 2010-2011 Sahana Software Foundation
@license: MIT
Permission is hereby gran... | mit | 7,582,023,155,462,627,000 | 33.526316 | 132 | 0.511703 | false | 4.105794 | false | false | false |
fakusb/FiVES-Nao-Visualisation | WebClient/resources/models/v11/modify.py | 1 | 21395 | # vim: fenc=utf-8 foldmethod=marker
# call this script with nao-dummy.html as argument.
import os
import sys
import math
from subprocess import call, Popen, PIPE
if not len(sys.argv) > 1:
print("No file argument given.")
sys.exit()
infile = sys.argv[1]
if not os.path.isfile(infile):
print("No valid file ... | lgpl-3.0 | 1,122,742,542,264,320,800 | 37.273703 | 90 | 0.665483 | false | 2.036843 | false | false | false |
jadhavhninad/-CSE_515_MWD_Analytics- | Phase 1/Project Code/phase1_code/print_actor_vector.py | 1 | 4823 | from mysqlConn import DbConnect
import argparse
import operator
from math import log
import pprint
#DB connector and curosor
db = DbConnect()
db_conn = db.get_connection()
cur2 = db_conn.cursor();
#Argument parser
parser = argparse.ArgumentParser()
parser.add_argument("ACTOR_ID")
parser.add_argument("MODEL")
args = p... | gpl-3.0 | -3,575,886,717,172,771,000 | 33.697842 | 133 | 0.671574 | false | 3.29215 | false | false | false |
philippj/python-burningseries | notifier.py | 1 | 3494 | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
#python-burningseries Copyright (C) 2015 Philipp "freaK"
'''
YOWSUP 2.0
https://github.com/tgalal/yowsup
'''
'''
python-burningseries
# This does sen... | gpl-2.0 | -1,798,651,883,595,741,000 | 32.932039 | 321 | 0.59731 | false | 3.793702 | true | false | false |
ipa-led/airbus_coop | airbus_docgen/src/airbus_docgen/docgen/pkg/__init__.py | 1 | 7020 | #!/usr/bin/env python
#
# Copyright 2015 Airbus
# Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... | apache-2.0 | 3,991,856,374,120,932,000 | 35.753927 | 135 | 0.562963 | false | 3.855025 | false | false | false |
chrys87/fenrir | src/fenrirscreenreader/commands/commands/review_next_line.py | 1 | 1627 | #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from fenrirscreenreader.core import debug
from fenrirscreenreader.utils import line_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
self... | lgpl-3.0 | 8,339,499,634,889,436,000 | 43.194444 | 158 | 0.610326 | false | 4.077694 | false | false | false |
lipis/life-line | main/control/user.py | 1 | 12057 | # coding: utf-8
import copy
from flask.ext import login
from flask.ext import wtf
from flask.ext.babel import gettext as __
from flask.ext.babel import lazy_gettext as _
from google.appengine.ext import ndb
import flask
import wtforms
import auth
import cache
import config
import i18n
import model
import task
import... | mit | -6,274,276,460,085,191,000 | 31.763587 | 94 | 0.606121 | false | 3.680403 | false | false | false |
jschornick/i2c_device | setup.py | 1 | 1721 | import os
from glob import glob
from setuptools import setup, find_packages
# Setup flags and parameters
pkg_name = 'i2c_device' # top-level package name
# Cache readme contents for use as long_description
readme = open('readme.md').read()
# Call setup()
setup(
name=pkg_name,
version='0.1',
description='I2C d... | mit | -3,040,005,242,851,160,000 | 32.096154 | 77 | 0.677513 | false | 3.717063 | false | false | false |
alexandrosstergiou/The-Drivers-Assistant-Traffic-Sign-Recognition | show.py | 1 | 1041 | import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import ImageGrid
import numpy as np
from os import listdir, getcwd
from os import chdir
from PIL import Image
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import matplotlib.image as mimage
from ... | mit | 2,028,056,922,246,869,200 | 21.148936 | 66 | 0.691643 | false | 2.965812 | false | false | false |
andyneff/python-plyfile | examples/plot.py | 1 | 1337 | '''
Example script illustrating plotting of PLY data using Mayavi. Mayavi
is not a dependency of plyfile, but you will need to install it in order
to run this script. Failing to do so will immediately result in
ImportError.
'''
from argparse import ArgumentParser
import numpy
from mayavi import mlab
from plyfile ... | gpl-3.0 | -5,918,219,094,796,757,000 | 23.759259 | 72 | 0.59985 | false | 3.445876 | false | false | false |
Akuli/porcupine | tests/test_filetypes_plugin.py | 1 | 3057 | import logging
import pathlib
import sys
from tkinter import filedialog
import pytest
from porcupine import dirs, filedialog_kwargs, get_main_window
from porcupine.plugins import filetypes
@pytest.fixture
def custom_filetypes():
# We don't overwrite the user's file because porcupine.dirs is monkeypatched
as... | mit | -3,899,674,040,829,050,400 | 32.228261 | 99 | 0.697089 | false | 3.550523 | true | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.