repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | 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 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
Magicked/crits | crits/core/form_consts.py | 6 | 7769 | class Action():
ACTION_TYPE = "Action type"
BEGIN_DATE = "Begin date"
ANALYST = "Analyst"
END_DATE = "End date"
PERFORMED_DATE = "Performed date"
ACTIVE = "Active"
REASON = "Reason"
DATE = "Date"
OBJECT_TYPES = "TLOs"
PREFERRED = "Preferred TLOs"
class Common():
ADD_INDICATO... | mit | 2,378,035,569,143,578,000 | 21.782991 | 99 | 0.635474 | false |
hlmnrmr/liveblog | server/liveblog/syndication/consumer.py | 1 | 5521 | import logging
from bson import ObjectId
from superdesk.resource import Resource
from superdesk.services import BaseService
from superdesk.errors import SuperdeskApiError
from superdesk import get_resource_service
from flask import current_app as app
from flask import Blueprint
from flask_cors import CORS
from liveblo... | agpl-3.0 | 8,520,539,062,319,369,000 | 32.05988 | 118 | 0.583409 | false |
aguirrea/lucy | tests/lfootGraph.py | 1 | 6007 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Andrés Aguirre Dorelo
#
# MINA/INCO/UDELAR
#
# module for finding the steps in the tutors
#
# 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 | 2,594,648,812,628,100,000 | 39.581081 | 154 | 0.589744 | false |
mtanida/image_collection_browser | scripts/generate_coordinates.py | 1 | 3397 | # -*- coding: utf-8 -*-
# Description: generates a json file that contains the item ids in order they appear in the UI
# Example usage:
# python generate_coordinates.py ../data/ ../js/coords.json 100 10 10 50 20 3
from PIL import Image
import json
import math
import os
import sys
# input
if len(sys.argv) < 8:
... | cc0-1.0 | -7,558,643,986,225,678,000 | 29.603604 | 186 | 0.603179 | false |
Murali-group/GraphSpace | graphspace/settings/local.py | 1 | 1543 | from graphspace.settings.base import *
# variables for setting up account through which GraphSpace emails
EMAIL_HOST = 'NONE'
EMAIL_HOST_USER = 'NONE'
EMAIL_HOST_PASSWORD = 'NONE'
# If error is thrown, display the error in the browser (ONLY FOR LOCAL MACHINES)
DEBUG = True
TEMPLATE_DEBUG = True
MAINTENANCE = False
#... | gpl-2.0 | -5,357,395,885,401,904,000 | 30.489796 | 136 | 0.72197 | false |
weijia/django-excel-to-model | django_excel_to_model/management/commands/import_excel_according_to_model.py | 1 | 7251 | import argparse
import importlib
import os
from django.contrib.contenttypes.models import ContentType
from django.core.management.base import BaseCommand
from django_excel_to_model.field_tools import get_valid_excel_field_name
from django_excel_to_model.file_readers.csv_reader import CsvFile
from django_excel_to_model... | bsd-3-clause | 8,626,901,737,644,630,000 | 43.484663 | 123 | 0.645428 | false |
dajusc/trimesh | trimesh/voxel/ops.py | 1 | 12278 | import numpy as np
from .. import util
from ..constants import log
def fill_orthographic(dense):
shape = dense.shape
indices = np.stack(
np.meshgrid(*(np.arange(s) for s in shape), indexing='ij'),
axis=-1)
empty = np.logical_not(dense)
def fill_axis(axis):
base_local_indices ... | mit | 7,499,729,113,100,000,000 | 27.225287 | 75 | 0.571347 | false |
Donkyhotay/MoonPy | zope/component/globalregistry.py | 1 | 6970 | ##############################################################################
#
# Copyright (c) 2006 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | gpl-3.0 | -3,354,156,961,655,460,000 | 38.828571 | 80 | 0.645481 | false |
Fewbytes/cosmo-manager-rest-client | cosmo_manager_rest_client/swagger/BlueprintsApi.py | 1 | 4585 | ########
# Copyright (c) 2013 GigaSpaces Technologies Ltd. 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... | apache-2.0 | -8,626,685,693,253,415,000 | 33.216418 | 79 | 0.563359 | false |
qma/pants | tests/python/pants_test/backend/jvm/tasks/test_classpath_util.py | 1 | 2852 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from pant... | apache-2.0 | 5,572,896,934,268,120,000 | 36.526316 | 93 | 0.564867 | false |
tsmrachel/remo | remo/remozilla/tasks.py | 1 | 5981 | from __future__ import unicode_literals
from datetime import datetime, timedelta
from urllib import quote
from django.conf import settings
from django.contrib.auth.models import User
from django.db import transaction
from django.utils import timezone
import requests
import waffle
from celery.task import periodic_tas... | bsd-3-clause | -3,315,522,485,804,188,000 | 39.412162 | 96 | 0.552918 | false |
googleads/google-ads-python | google/ads/googleads/v6/services/services/offline_user_data_job_service/transports/base.py | 1 | 5512 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | apache-2.0 | -2,307,035,603,748,183,600 | 35.503311 | 83 | 0.654209 | false |
lopezdp/ConstructionEstimatingProject | feetInchesCalc.py | 1 | 1539 | import math
def measurements():
programOn = True
subTotal = 0
program_continue = input("Do you want to keep a running total of your measurements? 1 for yes, 2 for no: ");
if (program_continue == 1):
print " "
feet = input("Enter feet portion of distance: ");
inch = input("Ent... | mit | -607,609,784,470,793,300 | 33.977273 | 121 | 0.561404 | false |
syhpoon/xyzcmd | libxyz/ui/cmd.py | 1 | 26667 | #-*- coding: utf8 -*
#
# Max E. Kuznecov ~syhpoon <syhpoon@syhpoon.name> 2008
#
# This file is part of XYZCommander.
# XYZCommander is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free Software Foundation, either version 3 of the Licens... | gpl-3.0 | -8,162,099,913,548,764,000 | 26.778125 | 80 | 0.456369 | false |
multmeio/mongoforms_dfields | mongoforms_dfields/models.py | 1 | 1449 | from mongoengine import *
__all__ = ['DynamicFields', 'has_dfields']
def has_dfields(cls):
class new_cls(cls):
@property
def _dfields(self):
return DynamicFields._dfields(self.__class__.__name__)
#return new_cls
cls._dfields = DynamicFields._dfields(cls.__name__)
return ... | bsd-3-clause | 671,419,907,069,339,400 | 32.697674 | 67 | 0.606625 | false |
nasseralkmim/SaPy | sapy/plotter.py | 1 | 4743 | import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d.art3d import Line3D
from matplotlib.lines import Line2D
import numpy as np
def window(name):
return plt.figure(name)
def show():
plt.show()
return None
def undeformed(model):
"""Plot the undeformed st... | gpl-3.0 | -5,779,562,700,302,910,000 | 27.065089 | 76 | 0.557453 | false |
MeteoSwiss-APN/dawn | dawn/examples/python/unstructured_stencil.py | 1 | 3291 | #!/usr/bin/env python
##===-----------------------------------------------------------------------------*- Python -*-===##
# _
# | |
# __| | __ ___ ___ ___
# / _` |/ _` \ \ /\ / / '_ |
# | (_| | (_| |\ V V /| | | |
# \__,_|\__,_| \_/\_/ |_| |_| - Compiler Toolchain
##
##
# This file is distributed under the MIT... | mit | -6,889,278,726,625,721,000 | 29.472222 | 109 | 0.502887 | false |
GeoffEvans/aol_model | aol_model/tests/test_ray.py | 1 | 2020 | from aol_model.ray import Ray
from numpy import allclose, array
import pytest
from aol_model.vector_utils import normalise
position = [0,0,2]
wavevector_unit = [1,0,0]
wavelength = 10
energy = 1
def test_setting_non_unit_vector():
with pytest.raises(ValueError):
Ray(position, [1,0,0.1], wavelength, energy... | gpl-3.0 | 5,728,991,373,070,086,000 | 36.407407 | 82 | 0.663366 | false |
LaboratoireMecaniqueLille/crappy | crappy/blocks/generator.py | 1 | 5313 | # coding: utf-8
from time import time, sleep
from .block import Block
from . import generator_path
from .._global import CrappyStop
class Generator(Block):
"""This block is used to generate a signal.
It can be used to drive a machine. This block can take inputs, and each path
can use these inputs to take dec... | gpl-2.0 | 5,740,492,613,717,999,000 | 35.641379 | 79 | 0.613025 | false |
LibraryHippo/LibraryHippo | Tests/test_wpl.py | 1 | 45343 | #!/usr/bin/env python
import pytest
import py.test
import datetime
from BeautifulSoup import BeautifulSoup
import wpl
import kpl
from data import Hold
from data import LoginError
from fakes import MyCard
from fakes import MyOpener
def test__parse_holds__numeric_position__reads_position():
response = BeautifulS... | mit | -3,281,378,132,671,006,700 | 29.370395 | 131 | 0.576958 | false |
xperroni/DevAI2014MOOC | agent03.py | 1 | 6019 | #!/usr/bin/env python
r'''
Implementation of the agent algorithm in tables 33-1 and 33-2 of the IDEAL MOOC
lessons, with modifications required in the programming assignment.
For details see http://liris.cnrs.fr/ideal/mooc/lesson.php?n=033
'''
from collections import namedtuple
from itertools import cycle
# Defaul... | gpl-3.0 | -8,876,382,352,429,805,000 | 32.438889 | 109 | 0.627347 | false |
artnez/faceoff | scripts/run-server.py | 1 | 1416 | #! /usr/bin/env python
"""
Runs Faceoff as a standalone web server. Do not use this is in production.
Copyright: (c) 2012-2014 Artem Nezvigin <artem@artnez.com>
License: MIT, see LICENSE for details
"""
from sys import path
from os import environ
from os.path import dirname, join
path.append(join(dirname(__file__),... | mit | -6,100,939,657,828,664,000 | 43.25 | 97 | 0.716808 | false |
hzlf/openbroadcast | website/apps/alibrary/migrations/0070_auto__add_field_playlistitemplaylist_fade_cross.py | 1 | 44115 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'PlaylistItemPlaylist.fade_cross'
db.add_column('alibrary_playlistitemplaylist', 'fade_cross'... | gpl-3.0 | -444,404,339,995,123,100 | 95.11329 | 228 | 0.556545 | false |
mitchellrj/touchdown | docs/conf.py | 1 | 6509 | # -*- coding: utf-8 -*-
#
# touchdown documentation build configuration file, created by
# sphinx-quickstart on Tue Jun 28 13:27:09 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | apache-2.0 | 8,320,803,518,411,920,000 | 31.222772 | 80 | 0.710401 | false |
KevinPike/pycache | pycache/factory.py | 1 | 1570 | from pycache.client import BaseClient, CacheClient
from twisted.internet.protocol import ClientFactory
class BaseFactory(ClientFactory):
def __init__(self, command, rest, version, headers, data, response):
self.response = response
self.command = command
self.rest = rest
self.header... | mit | -941,296,832,950,062,100 | 36.380952 | 83 | 0.663057 | false |
AdotDdot/sproxy | sproxy.py | 1 | 17349 | #!/usr/bin/env python
#
# sproxy.py
# Copyright (C) 2014 by A.D. <adotddot1123@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope ... | gpl-3.0 | -7,804,019,473,612,624,000 | 32.884766 | 135 | 0.621707 | false |
pyladieshre/pyladies | profiles/migrations/0002_auto_20170301_1823.py | 1 | 1075 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-01 16:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | mit | 6,117,124,205,016,900,000 | 26.564103 | 73 | 0.547907 | false |
spzala/heat-translator | translator/hot/translate_outputs.py | 1 | 1734 | #
# 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
# distributed under the ... | apache-2.0 | -2,684,508,997,003,707,400 | 37.533333 | 75 | 0.583622 | false |
ethertricity/bluesky | bluesky/traffic/route.py | 1 | 40143 | """ Route implementation for the BlueSky FMS."""
from os import path
from numpy import *
import bluesky as bs
from bluesky.tools import geo
from bluesky.tools.aero import ft, kts, g0, nm, mach2cas
from bluesky.tools.misc import degto180
from bluesky.tools.position import txt2pos
from bluesky import stack
from ... | gpl-3.0 | 8,999,277,182,077,421,000 | 34.262873 | 116 | 0.463667 | false |
m-sanders/wagtail | wagtail/wagtailcore/blocks/field_block.py | 1 | 15150 | from __future__ import absolute_import, unicode_literals
import datetime
import six
from django import forms
from django.db.models.fields import BLANK_CHOICE_DASH
from django.template.loader import render_to_string
from django.utils.encoding import force_text
from django.utils.dateparse import parse_date, parse_time,... | bsd-3-clause | -8,166,659,378,905,206,000 | 38.659686 | 149 | 0.65538 | false |
kalov/ShapePFCN | caffe-ours/python/caffe/io.py | 1 | 12728 | import numpy as np
import skimage.io
from scipy.ndimage import zoom
from skimage.transform import resize
try:
# Python3 will most likely not be able to load protobuf
from caffe.proto import caffe_pb2
except:
import sys
if sys.version_info >= (3, 0):
print("Failed to include caffe_pb2, things mi... | gpl-3.0 | 4,644,182,825,572,241,000 | 32.232376 | 110 | 0.57731 | false |
killabytenow/chirribackup | chirribackup/chunk.py | 1 | 17877 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
###############################################################################
# chirribackup/chunk.py
#
# Represents a chunk (in disk and database)
#
# -----------------------------------------------------------------------------
# Chirri Backup - Cheap and ugly backup ... | gpl-3.0 | 1,141,182,365,382,941,700 | 36.554622 | 107 | 0.510573 | false |
DomenicD/dom_ml_playground | python/src/learning_algorithms/backpropagation.py | 1 | 3948 | from python.src.neural_networks.neural_network_utils import NeuralNetworkUtils
from python.src.neurons.neurons import NeuronType
import math
import random
# http://home.agh.edu.pl/~vlsi/AI/backp_t_en/backprop.html
# http://www.cse.unsw.edu.au/~cs9417ml/MLP2/
class TrainingResult(object):
def __init__(self, epo... | mit | 3,596,455,763,504,661,500 | 33.622807 | 79 | 0.578561 | false |
adailtonjn68/pwm-control | pwm_control.py | 1 | 4004 | #!/usr/bin/python3
'''
This program was created by Adailton Braga Júnior in July/2015.
Its main purpose is to allow the user to control the Arduino's PWM ports.
'''
from tkinter import *
import serial
from time import sleep
class Serialport(object):
'''This class takes care of the arduino connection using the ser... | gpl-2.0 | -1,186,697,692,273,469,200 | 34.424779 | 128 | 0.687734 | false |
doug-willowit/Pentaho-reports-for-OpenERP | openerp_addon/pentaho_reports/core.py | 1 | 8394 | # Todo:
# multiple prpt files for one action - allows for alternate formats.
import io
import os
import logging
import subprocess
import xmlrpclib
import base64
import netsvc
import pooler
import report
from osv import osv, fields
from tools.translate import _
from datetime import datetime
from .java_oe import ... | gpl-2.0 | 8,452,356,818,902,484,000 | 40.554455 | 237 | 0.598165 | false |
Hawaii-Smart-Energy-Project/Maui-Smart-Grid | src/static-data-insert/insertSCADAWeatherData.py | 1 | 3206 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Script for inserting Kihei SCADA temperature and humidity data.
Usage:
With the current working directory set to the path containing the data files,
python insertSCADAWeatherData.py
"""
__author__ = 'Daniel Zhang (張道博)'
__copyright__ = 'Copyright (c) 2013, Uni... | bsd-3-clause | 2,025,799,630,373,709,300 | 26.586207 | 79 | 0.4625 | false |
hertzwhenip/virtual-hammond | server/tests/test_rtttl_parser.py | 1 | 2592 | import unittest
from sound.rtttl_parser import RtttlParser
class TestRtttlParser(unittest.TestCase):
SONG = {
'rtttl': 'The Simpsons:d=4,o=5,b=160:c.6,e6,f#6,8a6,g.6,e6,c6,8a,8f#,8f#,8f#,2g,8p,8p,8f#,8f#,8f#,8g,a#.,8c6,8c6,8c6,c6',
'name': 'The Simpsons',
'defaults': ['d=4', 'o=5', 'b=160']... | mit | -3,223,086,175,731,740,000 | 31.4 | 371 | 0.574074 | false |
tlsantos/icecreamratings_project | icecreamratings_project/taskapp/celery.py | 1 | 1159 |
from __future__ import absolute_import
import os
from celery import Celery
from django.apps import AppConfig
from django.conf import settings
if not settings.configured:
# set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")... | bsd-3-clause | 3,830,592,142,845,199,000 | 30.324324 | 96 | 0.691976 | false |
wubomichael/devicemanage | src/lib/ydevicemanager/hwclass.py | 1 | 22541 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# StartOS Device Manager(ydm).
# Copyright (C) 2011 ivali, Inc.
# hechao <hechao@ivali.com>, 2011.
#__author__="hechao"
#__date__ ="$2011-12-20 16:36:20$"
import gtk
import time
import os
import pango
import re
import gobject
import gettext
from syscall import *
from glo... | gpl-2.0 | -6,637,237,207,710,222,000 | 26.355583 | 135 | 0.555965 | false |
Kotaimen/georest | georest/geo/__init__.py | 1 | 3208 | # -*- encoding: utf-8 -*-
__author__ = 'kotaimen'
__date__ = '5/29/14'
"""
georest.geo
~~~~~~~~~~~
This package provides GeoJson a-like Feature data model.
Various python geo packages:
- Geometry Engine:
- shapely
- geos
- osgeo.ogr
- django.contrib.gis.geos
... | bsd-2-clause | 6,383,720,799,856,536,000 | 33.494624 | 78 | 0.610349 | false |
MattDevo/edk2 | BaseTools/Source/Python/UPT/Library/DataType.py | 1 | 34284 | ## @file
# This file is used to define class for data type structure
#
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this
# distribution... | bsd-2-clause | -7,997,813,902,356,939,000 | 33.787056 | 103 | 0.630002 | false |
johnctitus/troposphere | troposphere/elasticache.py | 1 | 5742 | # Copyright (c) 2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
import re
from . import AWSObject, AWSProperty, Tags
from .validators import boolean, integer, network_port
def validate_node_group_id(node_group_id):
if re.match(r'\d{1,4}', node_group_id):
ret... | bsd-2-clause | -3,716,745,561,203,455,500 | 35.573248 | 79 | 0.621038 | false |
shyamsg/SantasHelpers | chooseRegions.py | 1 | 1551 |
#! /usr/bin/env python
import argparse
import numpy as np
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Choosen regions from the reference genome randomly")
parser.add_argument("-i", "--inFai", dest="fai", type=str, metavar="InputFai", required=True, help='Input fai file.')
par... | gpl-2.0 | -2,323,732,259,144,801,000 | 36.829268 | 144 | 0.681496 | false |
hiaselhans/OpenGlider | tests/visual_test_profile.py | 2 | 2135 | import os
import math
import random
import sys
import unittest
from openglider.airfoil.parametric import BezierProfile2D
from openglider.vector import Polygon2D, PolyLine2D
import openglider.plots.marks
try:
import openglider
except ImportError:
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(s... | gpl-3.0 | 6,167,180,657,798,950,000 | 29.956522 | 83 | 0.629977 | false |
yxdong/ybk | ybk/frontend/analysis.py | 1 | 1815 | from datetime import datetime, timedelta
from flask import render_template, request
from flask.ext.login import login_required
from .views import frontend
from ybk.models import Exchange, Collection
from ybk.settings import get_conf
@frontend.route('/analysis/')
@login_required
def analysis():
nav = 'analysis'... | mit | -1,996,561,718,319,700,000 | 29.762712 | 68 | 0.597796 | false |
iulian787/spack | var/spack/repos/builtin/packages/amdfftw/package.py | 2 | 4829 | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack import *
from spack.pkg.builtin.fftw import FftwBase
class Amdfftw(FftwBase):
"""FFTW (AMD Opti... | lgpl-2.1 | -6,301,221,080,735,432,000 | 36.146154 | 94 | 0.59971 | false |
tghack/tg17hack | crypto/badcrypt/src/monoalfencryption.py | 1 | 1033 | from string import letters, digits
from random import shuffle
def random_monoalpha_cipher(pool=None):
"""Generate a Monoalphabetic Cipher"""
if pool is None:
pool = letters + digits
original_pool = list(pool)
shuffled_pool = list(pool)
shuffle(shuffled_pool)
return dict(zip(original_poo... | mit | 7,349,783,800,624,586,000 | 33.433333 | 72 | 0.696031 | false |
koomik/CouchPotatoServer | couchpotato/core/plugins/renamer.py | 1 | 66589 | import fnmatch
import os
import re
import shutil
import time
import traceback
from couchpotato import get_db
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEvent, fireEventAsync
from couchpotato.core.helpers.encoding import toUnicode, ss, sp
from couchpotato.core.helpers.variab... | gpl-3.0 | -1,406,769,838,317,215,200 | 46.631617 | 323 | 0.507561 | false |
bharatendra/ctools | token-hexkey.py | 1 | 1336 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 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... | apache-2.0 | -5,021,201,686,931,444,000 | 31.585366 | 80 | 0.727545 | false |
tannoa2/RackHD | test/tests/api/v2_0/nodes_tests.py | 1 | 20014 | from config.api1_1_config import config as config_old #TODO remove when 2.0 worklfow API is implemented
from config.api2_0_config import config
from config.amqp import *
from modules.logger import Log
from modules.amqp import AMQPWorker
from modules.worker import WorkerThread, WorkerTasks
from on_http_api2_0 import A... | apache-2.0 | 5,728,945,814,203,415,000 | 42.04086 | 113 | 0.54277 | false |
oxhagolli/ubhacking | UBHacking/pillpal/alphapillpal/views/accounts.py | 1 | 4971 | from django.shortcuts import render
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import User, Group
from django.http import HttpResponseRedirect, HttpResponseForbidden, \
Http404, HttpResponseBadRequest, HttpResponse
from django.core.urlresolvers import reverse
from dj... | mit | -8,790,507,695,025,733,000 | 33.289655 | 83 | 0.626031 | false |
ajb/pittsburgh-purchasing-suite | purchasing/wexplorer/views.py | 1 | 13399 | # -*- coding: utf-8 -*-
import re
from flask import (
render_template, current_app,
request, abort, flash, redirect, url_for
)
from flask_login import current_user
from purchasing.database import db
from purchasing.utils import SimplePagination
from purchasing.decorators import wrap_form, requires_roles
from... | bsd-3-clause | -8,969,974,666,736,317,000 | 32.921519 | 103 | 0.618703 | false |
BenClegg/piromancer-synth | synth/buttons.py | 1 | 2343 | # Licensed under GPLv3 (https://www.gnu.org/licenses/gpl.html)
import time
import threading
import RPi.GPIO as GPIO
# Button input pins
P_BTN_OSC_WAVEFORM = 11
P_BTN_FILT_TYPE = 13
# PTM momentary switches should be connected to these pins and GND
# Wave IDs
WAVE_SUPERSAW = 1 # Roland JP-8000 emulation
WAVE_SINE = 2... | gpl-3.0 | 7,878,142,144,141,442,000 | 33.970149 | 85 | 0.662399 | false |
tgl-dogg/BCC-2s14-PI4-SteampunkSpider | src/steampunk_spider/visualisacoes/lancamentosPorEstacao.py | 1 | 4623 | import math
from math import pi, radians, sin, cos, degrees
import mysql.connector
from mysql.connector import errorcode
size(2048, 2048)
stroke(0)
strokewidth(1)
nofill()
translate(1024, 1024)
beginpath(0, 0)
c = oval(-1024, -1024, 2048, 2048)
endpath(draw = False)
drawpath(c)
months = ["Jan", "Feb", "Mar", "Apr"... | mit | -1,711,026,775,163,383,800 | 29.622517 | 116 | 0.568029 | false |
jdemel/gr-misc | python/__init__.py | 1 | 1915 | #
# Copyright 2008,2009 Free Software Foundation, Inc.
#
# This application 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, or (at your option)
# any later version.
#
# This application is di... | gpl-3.0 | 1,838,322,249,221,458,000 | 32.017241 | 74 | 0.649086 | false |
christianknu/eitu | eitu/views.py | 1 | 2436 | from django.http import HttpResponse, JsonResponse
import logging
from eitu.core import fetch_schedules, render, fetch_wifi
import eitu.constants as constants
import eitu.formaters as formaters
from datetime import datetime
import pytz
import json
def index(request):
# Logging
logging.getLogger().setLevel(l... | mit | 3,228,202,691,440,036,000 | 34.26087 | 163 | 0.592105 | false |
commtrack/commtrack-old-to-del | apps/xformmanager/management/commands/sync_schema.py | 1 | 3624 | """ This script downloads synchronization data from a remote server,
deletes local xforms and submissions, and loads the data
"""
import bz2
import sys
import tarfile
import urllib2
import httplib
import cStringIO
from urlparse import urlparse
from optparse import make_option
from django.core.management.base import La... | bsd-3-clause | 7,485,331,129,967,110,000 | 35.606061 | 115 | 0.625 | false |
ActiveState/code | recipes/Python/412982_Use_PIL_make_contact_sheet_montage/recipe-412982.py | 1 | 1718 | def make_contact_sheet(fnames,(ncols,nrows),(photow,photoh),
(marl,mart,marr,marb),
padding):
"""\
Make a contact sheet from a group of filenames:
fnames A list of names of the image files
ncols Number of columns in the contact sheet
n... | mit | 6,723,089,231,762,139,000 | 31.415094 | 68 | 0.5844 | false |
gitterHQ/ansible | v2/ansible/parsing/yaml/composer.py | 1 | 1212 | from yaml.composer import Composer
from yaml.nodes import MappingNode
class AnsibleComposer(Composer):
def __init__(self):
self.__mapping_starts = []
super(Composer, self).__init__()
def compose_node(self, parent, index):
# the line number where the previous token has ended (plus empty ... | gpl-3.0 | -8,253,240,035,466,746,000 | 42.285714 | 79 | 0.609736 | false |
ucbrise/clipper | containers/python/rpc.py | 1 | 27820 | from __future__ import print_function
import zmq
import threading
import numpy as np
import struct
import time
from datetime import datetime
import socket
import sys
import os
import yaml
import logging
from collections import deque
if sys.version_info < (3, 0):
from subprocess32 import Popen, PIPE
else:
from s... | apache-2.0 | 6,833,758,730,747,017,000 | 35.413613 | 113 | 0.548311 | false |
tarsqi/ttk | utilities/convert.py | 1 | 46925 | """convert.py
Some format conversion utilities. Run all commands below from the parent
directory using the -m option.
1. Convert LDC TimeBank into a modern TimeBank in the TTK format.
$ python -m utilities.convert --timebank2ttk TIMEBANK_DIR TTK_DIR
Converts TimeBank 1.2 as released by LDC into a version with... | apache-2.0 | -3,801,298,380,938,140,700 | 39.072588 | 98 | 0.620266 | false |
chrisseto/osf.io | api/nodes/views.py | 1 | 154904 | import re
from django.apps import apps
from modularodm import Q as MQ
from rest_framework import generics, permissions as drf_permissions
from rest_framework.exceptions import PermissionDenied, ValidationError, NotFound, MethodNotAllowed, NotAuthenticated
from rest_framework.response import Response
from rest_framewor... | apache-2.0 | 5,522,730,103,969,849,000 | 42.052807 | 306 | 0.614697 | false |
arbn/pysaml2 | src/saml2/assertion.py | 1 | 24504 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010-2011 Umeå University
#
# 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... | bsd-2-clause | -5,398,401,206,502,696,000 | 33.464135 | 80 | 0.538261 | false |
vmalloc/weber-utils | weber_utils/sorting.py | 1 | 1136 | import functools
from flask import request
from sqlalchemy import desc
from ._compat import httplib
from .request_utils import error_abort
def sort_query(query, allowed_fields=(), default=None):
allowed_fields = set(allowed_fields)
sort_param = request.args.get("sort", None)
if sort_param:
sort_... | bsd-3-clause | 7,020,786,887,805,872,000 | 28.128205 | 97 | 0.639965 | false |
azumimuo/family-xbmc-addon | plugin.video.elysium/resources/lib/sources/tvhd.py | 1 | 3687 | import re
import urllib
import requests
import urlparse
import json
import xbmc
import datetime
from BeautifulSoup import BeautifulSoup
from resources.lib.modules import control
from resources.lib.modules import cleantitle
from schism_commons import quality_tag, google_tag, parseDOM, replaceHTMLCodes ,cleantitle_get, ... | gpl-2.0 | -965,369,262,741,604,500 | 37.020619 | 161 | 0.570654 | false |
kg-bot/SupyBot | plugins/Nag/plugin.py | 1 | 4578 | ###
# Copyright (c) 2006, Jeremy Kelley
# 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 conditions... | gpl-3.0 | 6,914,734,440,674,484,000 | 35.047244 | 79 | 0.619484 | false |
ziel980/website | app/mod_streams/views.py | 1 | 2619 | from flask import *
from app.mod_streams.models import Stream
from app.mod_streams import stream_api
from .forms import ConfigForm
from app.mod_adminpanel.views import register_adminpanel
from flask_login import login_required
mod_streams = Blueprint('streams', __name__, url_prefix='/streams', template_folder='templat... | mit | 3,043,552,206,167,558,700 | 41.241935 | 105 | 0.602138 | false |
magul/pywikibot-core | generate_family_file.py | 1 | 6872 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""This script generates a family file from a given URL."""
from __future__ import (absolute_import, division,
print_function, unicode_literals)
#
# (C) Merlijn van Deen, 2010-2013
# (C) Pywikibot team, 2010-2018
#
# Distributed under the terms of the MI... | mit | 6,085,710,191,185,926,000 | 32.521951 | 78 | 0.492724 | false |
jumoconnect/openjumo | jumodjango/miner/web/feed_items_to_hdfs.py | 1 | 3768 | #!/usr/bin/env python
from crawler import WebCrawler, log
import logging
import os
import hashlib
from miner.text.util import strip_control_characters
import MySQLdb
from MySQLdb import cursors
class FeedItemWebCrawler(WebCrawler):
temp_outfile_path = '/tmp/feed_items'
outfile_base_path = '/tmp/scraped'
... | mit | 1,427,092,386,684,347,400 | 36.68 | 206 | 0.565021 | false |
ivan73/smarthome | plugins/logo/__init__.py | 1 | 25174 | #!/usr/bin/env python3
# vim: set encoding=utf-8 tabstop=4 softtabstop=4 shiftwidth=4 expandtab
#########################################################################
# Copyright 2013 KNX-User-Forum e.V. http://knx-user-forum.de/
#########################################################################
# ... | gpl-3.0 | -7,201,690,151,582,514,000 | 41.863714 | 139 | 0.505942 | false |
bendykst/deluge | setup.py | 1 | 12762 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007 Andrew Resch <andrewresch@gmail.com>
# Copyright (C) 2009 Damien Churchill <damoxc@gmail.com>
#
# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
# the additional special exception to link portions of t... | gpl-3.0 | -5,498,489,755,896,925,000 | 35.567335 | 101 | 0.553205 | false |
pacoqueen/bbinn | framework/caneloni_di_merda.py | 1 | 5754 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os, pclases, mx
sys.path.append(os.path.join("..", "formularios"))
import utils
def buscar_rollos_existencias(fecha):
"""
Devuelve una lista de rollos en almacén hasta (incluida)
la fecha dada.
"""
sqlfecha = fecha.strftime('%Y-%m-%d')
... | gpl-2.0 | -8,511,966,171,161,357,000 | 49.412281 | 136 | 0.645206 | false |
openradar/TINT | tint/data_utils.py | 1 | 2323 | """
tint.data_utils
===============
Tools for obtaining and handling radar data.
"""
import tempfile
from boto.s3.connection import S3Connection
from datetime import datetime, timedelta
import pyart
def read_nexrad_key(key):
"""
Returns pyart radar object from nexrad S3 key.
"""
tmp = tempfile.Nam... | bsd-2-clause | 7,325,631,350,564,298,000 | 24.527473 | 79 | 0.571675 | false |
jlgoldman/writetogov | util/fips.py | 1 | 3649 | import collections
FIPSInfo = collections.namedtuple('FIPSInfo', ['name', 'fips_code', 'state_code'])
def get_by_fips_code(fips_code):
return INFOS_BY_FIPS_CODE.get(fips_code)
def get_by_state_code(state_code):
return INFOS_BY_STATE_CODE.get(state_code)
def get_by_state_name(state_name):
return INFOS_B... | bsd-3-clause | -4,896,238,958,976,974,000 | 40.465909 | 82 | 0.373801 | false |
joaormatos/anaconda | mmfparser/player/event/expressions/application.py | 1 | 1112 | # Copyright (c) Mathias Kaerlev 2012.
# This file is part of Anaconda.
# Anaconda 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.
# ... | gpl-3.0 | 3,908,242,690,591,009,300 | 30.8 | 70 | 0.744604 | false |
henriquesouza/toply | TestDisplayer.py | 1 | 2569 | import gi
gi.require_version('Gtk', '3.0')
import threading
import time
from gi.repository import Gtk, Gdk
from gi.repository import GObject as GObject
from src.view import LyricsDisplayer
GObject.threads_init()
insta = LyricsDisplayer.LyricsDisplayer()
#w = Gtk.Window()
w = insta.lyrics_window()
#l = Gtk.Label()
#w... | gpl-3.0 | -7,356,052,563,472,387,000 | 25.214286 | 64 | 0.473336 | false |
prtx/What-I-learned-in-college | Data_Structures/binary_search_tree.py | 1 | 1159 | class BST_Node:
#initialize binary search tree
def __init__(self, item = None, left = None, right = None):
self.item = item
self.left = left
self.right = right
#traversals
def preorder(self):
print self.item
if self.left:
self.left.inorder()
if self.right:
self.right.inorder()
def inor... | mit | 6,766,363,373,799,752,000 | 17.109375 | 60 | 0.637619 | false |
Fermi-Dirac/mathtests | pyggel/event.py | 1 | 12361 | """
pyggle.event
This library (PYGGEL) is licensed under the LGPL by Matthew Roe and PYGGEL contributors.
The event module contains classes to grab and access events.
"""
from .include import *
from . import view
import string
import time
class Keyboard(object):
"""A simple class to store keyboard e... | mit | 4,333,084,738,324,815,000 | 41.524648 | 134 | 0.561443 | false |
beepscore/fibonacci | logging_util.py | 1 | 1709 | # https://docs.python.org/3.6/howto/logging.html#logging-basic-tutorial
import logging
import sys
def get_logger(name):
"""
Log to stream only. Don't add a handler to log to a file.
Let program user decide if they want to pipe stream output to a file e.g.
python3 fibonacci.py >> ../fib.log
... | mit | -5,289,996,503,089,969,000 | 35.361702 | 109 | 0.686366 | false |
red-hood/calendarserver | txweb2/auth/basic.py | 1 | 2307 | # -*- test-case-name: txweb2.test.test_httpauth -*-
##
# Copyright (c) 2006-2009 Twisted Matrix Laboratories.
# Copyright (c) 2010-2015 Apple Inc. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),... | apache-2.0 | -5,918,398,083,954,525,000 | 33.432836 | 80 | 0.700043 | false |
JuniorCru/coastline | coastline/config.py | 1 | 1643 | import json
BASE_ENV = 'common'
ENV_OPTIONS = ['development', 'staging', 'production']
# Currently Config class is just a dict sub-class.
#
# A dict-like interface may be all we need, but we use a sub-class so we
# can change construction later, possibly use an IoC container or type
# checking, etc.
class Config(dict... | mit | 1,501,670,548,975,303,200 | 30.596154 | 72 | 0.583688 | false |
jctanner/scrapers | scommerce_com.py | 1 | 4085 | #!/usr/bin/env python
# http://sccommerce.com/sc-industrial-directory
import requests
import requests_cache
from pprint import pprint
from bs4 import BeautifulSoup
from lib.csvtools import dict_to_csv
def main():
# This page has a search form that must be submitted to get the list of companies.
# To post da... | apache-2.0 | 7,518,756,222,598,132,000 | 32.760331 | 109 | 0.578947 | false |
vvovo/vvo | model/follow.py | 1 | 2334 | #!/usr/bin/env python
# coding=utf-8
#
# Copyright 2014 vvovo.com
# Very way to victory.
# Let the dream set sail.
import time
from lib.query import Query
class FollowModel(Query):
def __init__(self, db):
self.db = db
self.table_name = "follow"
super(FollowModel, self).__init__()
def ... | bsd-3-clause | -3,800,454,661,387,713,500 | 43.037736 | 121 | 0.60497 | false |
michaelroland/wdnas-dl2100-hwtools | wdhwdaemon/client.py | 1 | 21754 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Western Digital Hardware Controller Client.
Copyright (c) 2017 Michael Roland <mi.roland@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, ... | gpl-3.0 | 7,572,055,035,004,351,000 | 44.795789 | 115 | 0.549717 | false |
fyookball/electrum | plugins/ledger/auth2fa.py | 1 | 6760 | from PyQt5.QtWidgets import *
from electroncash.i18n import _
from electroncash_gui.qt.util import *
from electroncash.util import print_error
from electroncash.address import Address
from electroncash import networks
import copy
from btchip.btchip import BTChipException
helpTxt = [_("Your Ledger Wallet wants to te... | mit | 8,752,473,746,946,071,000 | 42.057325 | 157 | 0.623817 | false |
rfguri/vimfiles | bundle/ycm/third_party/ycmd/third_party/JediHTTP/vendor/jedi/jedi/evaluate/recursion.py | 1 | 5177 | """
Recursions are the recipe of |jedi| to conquer Python code. However, someone
must stop recursions going mad. Some settings are here to make |jedi| stop at
the right time. You can read more about them :ref:`here <settings-recursion>`.
Next to :mod:`jedi.evaluate.cache` this module also makes |jedi| not
thread-safe.... | mit | -6,030,699,702,884,882,000 | 31.765823 | 80 | 0.610585 | false |
project-fluxo/fluxo | tests/parallel_issue/runscript.py | 1 | 2214 | import os
import sys
#from helpers import modify_prm # include via file link to ../../../tests/helpers.py
jobs ={}
#SUCCESSFUL!
jobs['master_mhd_para'] ={'exec' :'../../build_master_mhd_para/bin/fluxo',
'param':'parameter_mhd.ini'}
#jobs['mortarmaster_ns_para'] ={'exec' :'../../build_mortarmaste... | gpl-3.0 | -579,302,027,395,322,400 | 45.125 | 94 | 0.542457 | false |
bergercookie/Pump3000 | for_keep/final_code/classes_used.py | 1 | 8083 | # Thu May 29 02:59:41 EEST 2014, nickkouk
# proper division for python 2.7
from __future__ import division
# Usual importing stuff for PySide
from PySide.QtGui import *
from PySide.QtCore import *
# Module imports
import sys
import os
from serial.tools.list_ports import comports
# Qt-Designer compiled python code
... | bsd-2-clause | -7,641,942,490,556,766,000 | 32.539419 | 81 | 0.599282 | false |
AuthorizeNet/sample-code-python | CustomerProfiles/get-customer-shipping-address.py | 1 | 2245 | import os, sys
import imp
from authorizenet import apicontractsv1
from authorizenet.apicontrollers import *
constants = imp.load_source('modulename', 'constants.py')
def get_customer_shipping_address(customerProfileId, customerAddressId):
# Give merchant details
merchantAuth = apicontractsv1.merchantAuthentic... | mit | 4,637,220,795,757,887,000 | 43.019608 | 99 | 0.696214 | false |
daveisadork/PyDevNS | tests/test_config.py | 1 | 2071 | import pytest
from six import iteritems
def test_config_defaults(config):
for key, value in iteritems(config.DEFAULTS):
assert getattr(config, key) == value
@pytest.mark.parametrize("address", ("127.0.0.1", "10.10.10.10"))
def test_config_address(config, address):
config.address = address
asser... | mit | -7,183,664,591,223,942,000 | 25.896104 | 65 | 0.658619 | false |
Tuyki/TT_RNN | MNISTSeq.py | 1 | 14227 | __author__ = "Yinchong Yang"
__copyright__ = "Siemens AG, 2018"
__licencse__ = "MIT"
__version__ = "0.1"
"""
MIT License
Copyright (c) 2018 Siemens AG
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 Softwa... | mit | -1,934,170,291,730,638,800 | 36.330709 | 120 | 0.561204 | false |
gwpy/vet | gwvet/_version.py | 1 | 16743 |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... | gpl-3.0 | -564,533,158,259,975,900 | 33.592975 | 79 | 0.58078 | false |
justincely/rolodex | setup.py | 1 | 2102 | from setuptools import setup, find_packages
setup(
name = 'cos_monitoring',
version = '0.0.1',
description = 'Provide utilities and monotiring of cos data',
author = 'Justin Ely',
author_email = 'ely@stsci.edu',
keywords = ['astronomy'],
classifiers = ['Programming Language :: Python',
... | bsd-3-clause | -14,734,762,878,881,110 | 51.55 | 106 | 0.480019 | false |
pycroscopy/pycroscopy | pycroscopy/processing/svd_utils.py | 1 | 20291 | # -*- coding: utf-8 -*-
"""
USID utilities for performing randomized singular value decomposition and reconstructing results
Created on Mon Mar 28 09:45:08 2016
@author: Suhas Somnath, Chris Smith
"""
from __future__ import division, print_function, absolute_import
import time
from multiprocessing import cpu_count
i... | mit | -3,467,547,624,918,847,000 | 37.799235 | 118 | 0.595338 | false |
xe1gyq/nuupxe | modules/aprstracker.py | 1 | 3741 | #!/usr/bin/python
import ConfigParser
import feedparser
import logging
import os
import pywapi
import string
import sys
import time
import unicodedata
from core.alive import alive
from pygeocoder import Geocoder
from core.aprsfi import AprsFi
from core.voicesynthetizer import VoiceSynthetizer
from core.phonetic impo... | apache-2.0 | -8,180,707,672,401,468,000 | 36.41 | 103 | 0.578188 | false |
designcc/django-ccgallery | ccgallery/tests/test_managers.py | 1 | 3771 | from decimal import Decimal
from django.test import TestCase
from ccgallery.models import Item, Category
class ManagerTestCases(TestCase):
def test_item_for_category(self):
"""the for item manager method"""
c1 = Category()
c1.slug = '1'
c1.title = '1'
c1.description = '1'
... | bsd-3-clause | -6,704,022,371,588,722,000 | 27.353383 | 66 | 0.527711 | false |
hovo1990/deviser | generator/tests/run-tests.py | 1 | 1281 | #!/usr/bin/env python
import os
import sys
import test_functions
##############################################################################
# Set up variables
fails = []
total_fail = 0
this_dir = ''
#############################################################################
# Specific test functions
def run_... | lgpl-2.1 | -3,032,786,420,052,556,300 | 22.722222 | 78 | 0.462139 | false |
crunchmail/munch-core | src/munch/apps/campaigns/tools.py | 1 | 3004 | import urllib
from django.urls import get_resolver
from django.urls import NoReverseMatch
def resolve_url(request, path=None):
"""Helper function that reports information on the request's url.
Taken from http://code.google.com/p/greatlemers-django-tools \
/source/browse/trunk/gdt_nav/models.... | agpl-3.0 | -9,172,493,371,128,470,000 | 39.594595 | 79 | 0.650466 | false |
rolandwz/pymisc | monitor/once.py | 1 | 1567 | # -*- coding: utf-8 -*-
import threading, sys
from utils.rwlogging import log
from notifier import fetion
from notifier import mail
from category import prices
from category import weather
from utils import const
def weatherMonitor():
try:
#msg = ''
#msg = msg + weather.fetchWeather()
multimsg = [0, 0]
multim... | mit | 5,838,400,449,689,274,000 | 20.763889 | 52 | 0.670708 | false |
juliojsb/sarviewer | plotters/matplotlib/swap.py | 1 | 2062 | #!/usr/bin/env python2
"""
Author :Julio Sanz
Website :www.elarraydejota.com
Email :juliojosesb@gmail.com
Description :Script to create a graph about swap usage
Dependencies :Python 2.x, matplotlib
Usage :python swap.py
License :GPLv3
"""
import matplotlib
matplotlib.use('Agg')
im... | gpl-3.0 | -1,830,321,414,085,074,400 | 26.878378 | 99 | 0.586324 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.