repo_name stringlengths 6 61 | path stringlengths 4 230 | copies stringlengths 1 3 | size stringlengths 4 6 | text stringlengths 1.01k 850k | license stringclasses 15
values | hash int64 -9,220,477,234,079,998,000 9,219,060,020B | line_mean float64 11.6 96.6 | line_max int64 32 939 | alpha_frac float64 0.26 0.9 | autogenerated bool 1
class | ratio float64 1.62 6.1 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dladd/pyFormex | pyformex/plugins/tools.py | 1 | 9029 | # $Id$
##
## This file is part of pyFormex 0.8.9 (Fri Nov 9 10:49:51 CET 2012)
## pyFormex is a tool for generating, manipulating and transforming 3D
## geometrical models by sequences of mathematical operations.
## Home page: http://pyformex.org
## Project page: http://savannah.nongnu.org/projects/pyformex/
##... | gpl-3.0 | 4,544,304,737,583,841,000 | 29.710884 | 122 | 0.554103 | false | 3.288055 | false | false | false |
LuciferJack/python-mysql-pool | PyMysqlPool/util/logger_err.py | 1 | 1113 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# coding=utf-8
import logging
import sys
from PyMysqlPool.constant.constant import loggingerr, loggErrorFile
logging.basicConfig(level=logging.NOTSET,
format='[%(asctime)s][%(levelname)7s][%(threadName)s][%(filename)s:%(funcName)s:%(lineno)d] ... | mit | -7,561,047,000,098,568,000 | 32.78125 | 125 | 0.68823 | false | 3.5 | false | true | false |
dycodedev/taiga-back | taiga/projects/apps.py | 8 | 4463 | # Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014 David Barragán <bameda@dbarragan.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the F... | agpl-3.0 | -2,557,207,236,575,334,000 | 49.693182 | 160 | 0.663977 | false | 4.004488 | false | false | false |
mozilla/airmozilla | airmozilla/manage/views/authmigrate.py | 2 | 5816 | from django import forms
from django.shortcuts import render
from django.contrib.auth import get_user_model
from .decorators import superuser_required
from airmozilla.manage.forms import BaseForm
from airmozilla.main.models import (
Event,
SuggestedEvent,
EventEmail,
EventRevision,
EventAssignment,... | bsd-3-clause | -4,287,681,526,563,116,500 | 23.961373 | 79 | 0.560179 | false | 4.14245 | false | false | false |
divisible-by-hero/dbh-blog | blog/views.py | 1 | 1074 | from django.views.generic import ListView, DetailView, MonthArchiveView
from django import forms
from .models import Post
class ListMixin(object):
paginate_by = 5
context_object_name = 'posts'
template_name = 'blog/post_list_view.html'
def get_queryset(self):
tag = self.request.GET.get('tag'... | bsd-3-clause | -1,449,683,677,619,535,400 | 23.976744 | 72 | 0.668529 | false | 3.703448 | false | false | false |
maxikov/locationpythonserver | locationpythonserver/naive_gauss/set_evaluator.py | 1 | 2550 | #!/usr/bin/env python
# Copyright (c) 2013 Maxim Kovalev, Carnegie Mellon University
# This file is part of Locationing Server.
#
# Locationing Server 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 Foundat... | gpl-3.0 | 7,928,715,331,833,816,000 | 37.059701 | 178 | 0.632549 | false | 3.459973 | false | false | false |
phoebe-project/phoebe2-docs | 2.2/tutorials/reflection_heating.py | 1 | 4312 | #!/usr/bin/env python
# coding: utf-8
# Reflection and Heating
# ============================
#
# For a comparison between "Horvat" and "Wilson" methods in the "irad_method" parameter, see the tutorial on [Lambert Scattering](./irrad_method_horvat.ipynb).
#
# Setup
# -----------------------------
# Let's first make... | gpl-3.0 | -861,078,462,931,556,000 | 22.692308 | 366 | 0.683905 | false | 3.154353 | false | false | false |
kosgroup/odoo | addons/auth_signup/controllers/main.py | 7 | 5292 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import logging
import werkzeug
from odoo import http, _
from odoo.addons.auth_signup.models.res_users import SignupError
from odoo.addons.web.controllers.main import ensure_db, Home
from odoo.http import request
_logger... | gpl-3.0 | -7,384,755,517,312,322,000 | 46.675676 | 120 | 0.610544 | false | 4.144088 | true | false | false |
elianerpereira/gtg | GTG/tests/tree_testing.py | 1 | 9344 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Getting Things GNOME! - a personal organizer for the GNOME desktop
# Copyright (c) 2008-2013 - Lionel Dricot & Bertrand Rousseau
#
# This program is free software: you can redistribute it and/or modify it under
# t... | gpl-3.0 | -659,458,706,772,728,400 | 39.626087 | 79 | 0.506528 | false | 3.790669 | false | false | false |
moodpulse/l2 | health/views.py | 1 | 3069 | from datetime import datetime, timedelta
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, JsonResponse
import clients.models as clients
import directory.models as directory
from appconf.manager impor... | mit | -9,199,544,822,434,005,000 | 24.638655 | 167 | 0.676827 | false | 3.266595 | false | false | false |
joac/singing-girl | singing_girl/dicts.py | 1 | 2808 | #! -*- coding: utf8 -*-
especiales_masculino = [
'cero',
'uno',
'dos',
'tres',
'cuatro',
'cinco',
'seis',
'siete',
'ocho',
'nueve',
'diez',
'once',
'doce',
'trece',
'catorce',
'quince',
'dieciséis',
'diecisiete',
'dieciocho',
'diecinueve',... | mit | -7,793,795,708,195,571,000 | 15.309942 | 56 | 0.457512 | false | 2.60898 | false | true | false |
Shnatta/Register-Grades | Gradebook.py | 1 | 3202 | #Gradebook Project *Display a persons grades/where can he/she get a job!*
#Made by JonathanD
#Thanks to LoveFeelings(https://www.twitch.tv/lovefeelings), Subzidion(https://www.twitch.tv/subzidion), MichaelC212(https://www.twitch.tv/michaelc212)
import time
from prettytable import PrettyTable
x = PrettyTable()
c... | apache-2.0 | 6,555,662,637,556,242,000 | 28.495238 | 151 | 0.534666 | false | 3.34238 | false | false | false |
kramerfelix/accpy | accpy/simulate/lsd.py | 2 | 6302 | # -*- coding: utf-8 -*-
''' accpy.simulate.lsd
author: felix.kramer(at)physik.hu-berlin.de
'''
from __future__ import division
from numpy import (eye, dot, trapz, pi, nanmean, array, newaxis,
hstack, concatenate, empty, dstack, sqrt, zeros,
vstack)
from numpy.random import stan... | gpl-3.0 | 8,628,564,006,182,684,000 | 38.886076 | 84 | 0.530149 | false | 2.766462 | false | false | false |
Extremus-io/djwebsockets | djwebsockets/websocket.py | 1 | 1528 | from djwebsockets.mixins import BaseWSMixin, MixinFail
import asyncio
class WebSocket:
loop = None
def __init__(self, socket, close, send):
self.socket = socket
self.close_handler = close
self.send_handler = send
self.id = id(socket)
self.closed = False
def send(se... | mit | -5,131,066,702,609,105,000 | 27.849057 | 63 | 0.528141 | false | 4.304225 | false | false | false |
linuxscout/arramooz | scripts/verbs/dict2spell/verbs/spellverbconst.py | 2 | 5873 | #!/usr/bin/python2
# -*- coding=utf-8 -*-
#************************************************************************
# $Id: spellverbconst.py,v 0.7 2010/12/26 01:10:00 Taha Zerrouki $
#
# ------------
# Description:
# ------------
# Copyright (c) 2009, Arabtechies, Arabeyes Taha Zerrouki
#
#
# -----------------
# Revis... | gpl-2.0 | 3,238,434,920,257,254,400 | 43.091603 | 94 | 0.548823 | false | 2.331853 | false | false | false |
waveform80/picraft | picraft/events.py | 1 | 35374 | # vim: set et sw=4 sts=4 fileencoding=utf-8:
#
# An alternate Python Minecraft library for the Rasperry-Pi
# Copyright (c) 2013-2016 Dave Jones <dave@waveform.org.uk>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# ... | bsd-3-clause | 7,676,719,058,441,888,000 | 37.242162 | 115 | 0.618675 | false | 4.46585 | false | false | false |
AllMyChanges/allmychanges.com | allmychanges/tests/preview.py | 1 | 5407 | # coding: utf-8
import anyjson
from urllib import urlencode
from nose.tools import eq_
from allmychanges.models import Changelog, Preview
from django.test import Client
from django.core.urlresolvers import reverse
from allmychanges.tasks import _task_log
from .utils import (refresh, check_status_code,
... | bsd-2-clause | 1,169,439,980,779,571,700 | 32.484076 | 95 | 0.607761 | false | 3.556834 | true | false | false |
pgaref/memcached_bench | Python_plots/plots/logscale/microexp/logscale_latency.py | 1 | 4626 | __author__ = "Panagiotis Garefalakis"
__copyright__ = "Imperial College London"
# The MIT License (MIT)
#
# Copyright (c) 2016 Panagiotis Garefalakis
#
# 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... | mit | 5,525,530,286,866,149,000 | 34.320611 | 125 | 0.646995 | false | 3.273885 | false | false | false |
chemlab/chemlab | chemlab/utils/pbc.py | 1 | 4376 | import numpy as np
import dask.array as da
from collections import Sequence
def minimum_image(coords, pbc):
"""
Wraps a vector collection of atom positions into the central periodic
image or primary simulation cell.
Parameters
----------
pos : :class:`numpy.ndarray`, (Nx3)
Vector collecti... | gpl-3.0 | -6,614,042,608,282,507,000 | 26.522013 | 89 | 0.620201 | false | 3.517685 | false | false | false |
mnpiozhang/DocumentSearch | backend/views.py | 1 | 12494 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from django.template.context_processors import csrf
from django.shortcuts import redirect,HttpResponse,render_to_response,render
from django.http.response import StreamingHttpResponse,HttpResponseRedirect,HttpResponseNotFound
from django.core.urlresolvers import reverse
from... | mit | -1,303,588,607,948,399,400 | 39.534014 | 124 | 0.612957 | false | 3.561267 | false | false | false |
dcf21/meteor-pi | src/pythonModules/meteorpi_server/meteorpi_server/importer_api.py | 2 | 15194 | # importer_api.py
# Meteor Pi, Cambridge Science Centre
# Dominic Ford, Tom Oinn
# -------------------------------------------------
# Copyright 2016 Cambridge Science Centre.
# This file is part of Meteor Pi.
# Meteor Pi is free software: you can redistribute it and/or modify
# it under the terms of the GNU General... | gpl-3.0 | 2,854,792,162,750,640,000 | 45.750769 | 120 | 0.648743 | false | 4.281206 | false | false | false |
frnknglrt/grako | grako/semantics.py | 1 | 3741 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from collections import OrderedDict
from grako.util import simplify_list, eval_escapes, warning
from grako.util import re, RE_FLAGS
from grako import grammars
from grako.exceptions import FailedSemantics
from gr... | bsd-2-clause | -8,701,532,255,546,483,000 | 28 | 105 | 0.600374 | false | 3.809572 | false | false | false |
nanodan/branca | tests/test_colormap.py | 1 | 1778 | # -*- coding: utf-8 -*-
""""
Folium Colormap Module
----------------------
"""
import branca.colormap as cm
def test_simple_step():
step = cm.StepColormap(['green', 'yellow', 'red'],
vmin=3., vmax=10.,
index=[3, 4, 8, 10], caption='step')
step = cm.StepCol... | mit | -9,212,736,154,703,194,000 | 30.192982 | 78 | 0.535433 | false | 2.743827 | true | false | false |
exxeleron/qPython | qpython/utils.py | 4 | 1882 | # Copyright (c) 2011-2014 Exxeleron GmbH
#
# 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 | 9,074,845,266,785,013,000 | 25.885714 | 75 | 0.52763 | false | 3.440585 | false | false | false |
typepad/python-typepad-api | typepad/api.py | 1 | 70481 | # Copyright (c) 2009-2010 Six Apart Ltd.
# 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 an... | bsd-3-clause | 5,230,581,425,076,842,000 | 32.074144 | 209 | 0.667925 | false | 4.066759 | false | false | false |
thnuclub/scrapy_weibospider | spider/settings.py | 1 | 1267 | # -*- coding: utf-8 -*-
# Scrapy settings for spider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/... | apache-2.0 | 1,573,329,689,842,755,600 | 28.465116 | 81 | 0.759274 | false | 3.334211 | false | false | false |
evansde77/cirrus | tests/unit/cirrus/harnesses.py | 1 | 2422 | #!/usr/bin/env python
"""
harnesses
Common/reusable test harnesses
"""
import os
import unittest
import tempfile
import mock
import subprocess
from cirrus._2to3 import ConfigParser, to_str
from cirrus.configuration import Configuration
def _repo_directory():
command = ['git', 'rev-parse', '--show-toplevel']
... | apache-2.0 | 5,484,854,321,533,871,000 | 28.180723 | 85 | 0.672172 | false | 3.749226 | true | false | false |
philgyford/django-spectator | spectator/events/migrations/0029_plays_to_works.py | 1 | 1259 | # Generated by Django 2.0 on 2018-02-08 11:47
from django.db import migrations
def forwards(apps, schema_editor):
"""
Change all Play objects into Work objects, and their associated
data into WorkRole and WorkSelection models, then delete the Play.
"""
Play = apps.get_model("spectator_events", "P... | mit | 1,469,798,443,884,644,000 | 27.613636 | 87 | 0.611597 | false | 3.946708 | false | false | false |
galad-loth/LearnDescriptor | symbols/match_net_symbol.py | 1 | 4004 | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 04 08:55:52 2017
@author: galad-loth
"""
import mxnet as mx
def SharedFeatureNet(data,conv_weight, conv_bias):
shared_net = mx.sym.Convolution(data=data, kernel=(7, 7), stride=(1,1),
pad=(3, 3), num_filter=24,weight=conv_weight[0]... | apache-2.0 | 4,235,894,168,940,592,000 | 43.011236 | 105 | 0.546953 | false | 3.234249 | false | false | false |
cerealito/handyman | src/ManifestAnalizer.py | 1 | 2774 | import sys
from Manifest import Manifest
from ProjectAnalizer import ProjectAnalizer
from os.path import dirname, basename, isdir, join, realpath
__author__ = 'Samuel Flores'
class ManifestAnalizer:
def __init__(self, manifest_p, root=None):
self.manifest = manifest_p
if root:
self.r... | gpl-2.0 | -1,360,184,337,938,270,200 | 28.210526 | 86 | 0.562365 | false | 3.912553 | false | false | false |
dopplershift/siphon | siphon/simplewebservice/wyoming.py | 1 | 4132 | # Copyright (c) 2013-2015 University Corporation for Atmospheric Research/Unidata.
# Distributed under the terms of the MIT License.
# SPDX-License-Identifier: MIT
"""Read upper air data from the Wyoming archives."""
from io import StringIO
from bs4 import BeautifulSoup
import numpy as np
import pandas as pd
from .._... | mit | 3,074,026,012,844,382,000 | 34.016949 | 91 | 0.553001 | false | 4.152764 | false | false | false |
smallyear/linuxLearn | salt/salt/states/pkgbuild.py | 1 | 9224 | # -*- coding: utf-8 -*-
'''
The pkgbuild state is the front of Salt package building backend. It
automatically
.. versionadded:: 2015.8.0
.. code-block:: yaml
salt_2015.5.2:
pkgbuild.built:
- runas: thatch
- results:
- salt-2015.5.2-2.el7.centos.noarch.rpm
- salt-api-201... | apache-2.0 | -3,610,073,035,797,008,400 | 30.697595 | 89 | 0.582502 | false | 4.047389 | false | false | false |
project-chip/connectedhomeip | scripts/tools/zap_regen_all.py | 1 | 2408 | #!/usr/bin/env python3
#
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | apache-2.0 | 7,816,920,460,108,642,000 | 38.47541 | 133 | 0.699751 | false | 3.750779 | false | false | false |
PyORBIT-Collaboration/py-orbit | py/orbit/parsers/field_parser.py | 2 | 6787 | import os
import sys
import re
import math
from spacecharge import Grid3D
class Field_Parser3D:
""" 3D field parser """
def __init__(self):
""" Create instance of the Field_Parser3D class """
self.__lines = []
def __del__(self):
del self.__lines
##########################################################... | mit | -1,396,745,432,312,111,900 | 30.425926 | 96 | 0.552822 | false | 3.195386 | false | false | false |
shelari/prereform_to_contemporary | dict_settings.py | 1 | 1154 | # -*- coding: utf-8 -*-
__author__ = 'ElenaSidorova'
import codecs
dicts = [
'freq.csv',
'ozhegov.csv',
'sharov.csv',
'ushakov.csv',
'zaliznyak.csv'
]
wrong_dicts = [
'adjectives_ija_ends.csv',
'perfect_verbs.csv'
]
ok_dicts = [
'soft_sign_ends.csv'
]
prefixes = [
'all_prefixes.csv'
... | mit | -1,664,396,728,455,042,600 | 23.574468 | 64 | 0.520797 | false | 3.196676 | false | false | false |
jrising/open-estimate | models/spline_model.py | 1 | 32483 | # -*- coding: utf-8 -*-
################################################################################
# Copyright 2014, The Open Aggregator
# GNU General Public License, Ver. 3 (see docs/license.txt)
################################################################################
"""Model Spline File
Each line i... | gpl-3.0 | 8,084,758,869,990,397,000 | 36.509238 | 510 | 0.551027 | false | 3.368907 | false | false | false |
Moobusy/learnpython | app/backend/views.py | 1 | 1088 | # -*- coding: utf-8 -*-
'''
Docer - backend - views
~~~~~~
A document viewing platform.
:copyright: (c) 2015 by Docer.Org.
:license: MIT, see LICENSE for more details.
'''
from . import backend
from flask import request, session, g, redirect, url_for, abort, render_template, flash
@backend.route('/')
def hello_... | mit | -7,357,217,469,530,423,000 | 21.347826 | 87 | 0.660506 | false | 2.635897 | false | false | false |
mikkeljans/pyconomic | pyconomic/base.py | 1 | 19899 | """
Model Abstraction of e-economic.com API
"""
import copy
import re
import os
import base64
from collections import defaultdict
from suds.client import Client
class ObjectDoesNotExist(BaseException):
pass
class MultipleObjectsReturned(BaseException):
pass
class EConomicsService(object):
"""
In... | gpl-2.0 | -5,205,653,397,330,828,000 | 33.015385 | 114 | 0.565707 | false | 4.003823 | false | false | false |
Jonekee/chromium.src | build/android/gyp/write_ordered_libraries.py | 36 | 4035 | #!/usr/bin/env python
#
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Writes dependency ordered list of native libraries.
The list excludes any Android system libraries, as those are not bundled with... | bsd-3-clause | 793,590,433,413,980,300 | 27.821429 | 78 | 0.720694 | false | 3.698442 | false | false | false |
jfterpstra/bluebottle | bluebottle/geo/views.py | 1 | 1169 | from rest_framework import generics
from bluebottle.geo.models import Location
from bluebottle.geo.serializers import LocationSerializer
from bluebottle.projects.models import Project
from .serializers import CountrySerializer
from .models import Country
class CountryList(generics.ListAPIView):
serializer_class ... | bsd-3-clause | 6,346,517,698,109,374,000 | 28.974359 | 79 | 0.730539 | false | 4.189964 | false | false | false |
marcsans/cnn-physics-perception | phy/lib/python2.7/site-packages/numpy/lib/function_base.py | 15 | 150516 | from __future__ import division, absolute_import, print_function
import warnings
import sys
import collections
import operator
import numpy as np
import numpy.core.numeric as _nx
from numpy.core import linspace, atleast_1d, atleast_2d
from numpy.core.numeric import (
ones, zeros, arange, concatenate, array, asarr... | mit | 7,609,337,912,041,124,000 | 31.813604 | 99 | 0.572318 | false | 3.64181 | false | false | false |
lonnen/socorro | webapp-django/crashstats/crashstats/views.py | 1 | 13979 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import datetime
import json
from django import http
from django.conf import settings
from django.contrib.auth.decorator... | mpl-2.0 | -4,250,730,929,189,438,500 | 35.883905 | 97 | 0.625367 | false | 3.800707 | false | false | false |
google/orbit | third_party/conan/recipes/libdisasm/conanfile.py | 2 | 1408 | from conans import ConanFile, CMake, tools
import shutil
class LibDisasmConan(ConanFile):
name = "libdisasm"
version = "0.23"
license = "Clarified Artistic License"
description = "An basic x86 disassembler in library form."
topics = ("libdisasm", "disasm")
settings = "os", "compiler", "build_t... | bsd-2-clause | 712,558,446,428,111,600 | 33.341463 | 137 | 0.620028 | false | 3.528822 | false | false | false |
honmaple/maple-bbs | forums/count.py | 1 | 4325 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# **************************************************************************
# Copyright © 2017 jianglin
# File Name: count.py
# Author: jianglin
# Email: xiyang0807@gmail.com
# Created: 2017-03-29 21:28:52 (CST)
# Last Update:星期日 2017-4-2 15:24:37 (CST)
# By:
# De... | gpl-3.0 | 3,023,951,892,401,284,000 | 33.5 | 76 | 0.55353 | false | 3.387173 | false | false | false |
uucidl/uu.xunitgen | xunitgen/step_recording.py | 1 | 1840 | import sys
import time
from contextlib import contextmanager
from .main import EventReceiver
class Recorder(object):
"""Use this class to record the result of running python code as a xunit xml
It allows you to record a series of steps into a single xunit.xml file.
"""
def __init__(self, xunit_des... | mit | 2,230,151,689,008,873,700 | 28.677419 | 84 | 0.60163 | false | 4.259259 | false | false | false |
vdemeester/compose | tests/unit/network_test.py | 3 | 6287 | import pytest
from .. import mock
from .. import unittest
from compose.network import check_remote_network_config
from compose.network import Network
from compose.network import NetworkConfigChangedError
class NetworkTest(unittest.TestCase):
def test_check_remote_network_config_success(self):
options = {... | apache-2.0 | 8,827,114,187,849,751,000 | 35.552326 | 83 | 0.472721 | false | 3.861794 | true | false | false |
BT-ojossen/sale-workflow | __unported__/stock_picking_reorder_lines/stock.py | 15 | 2645 | # -*- coding: utf-8 -*-
#
#
# Author: Alexandre Fayolle
# Copyright 2013 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# Licens... | agpl-3.0 | -6,019,221,204,846,369,000 | 37.897059 | 79 | 0.471078 | false | 5.106178 | false | false | false |
googlegenomics/gcp-variant-transforms | gcp_variant_transforms/beam_io/vcfio_test.py | 1 | 47862 | # This Python file uses the following encoding: utf-8
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/license... | apache-2.0 | -4,279,753,839,158,893,600 | 43.52093 | 80 | 0.618053 | false | 3.220727 | true | false | false |
i-rabot/tractogithub | tracformatter/trac/wiki/web_ui.py | 1 | 33389 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2003-2009 Edgewall Software
# Copyright (C) 2003-2005 Jonas Borgström <jonas@edgewall.com>
# Copyright (C) 2004-2005 Christopher Lenz <cmlenz@gmx.de>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received ... | bsd-3-clause | -3,490,118,129,807,611,400 | 40.858793 | 80 | 0.509989 | false | 4.180168 | true | false | false |
tephyr/sqlalchemy_tzaware | demo.py | 1 | 3767 | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
"""Demonstration of TZAwareDateTime composite column for sqlalchemy"""
__author__ = 'Andrew Ittner <aji@rhymingpanda.com>'
__copyright__ = "Public Domain (CC0) <http://creativecommons.org/publicdomain/zero/1.0/>"
# stdlib
from datetime import datetime
# sqlalchemy
fr... | cc0-1.0 | 1,341,147,860,588,096,000 | 38.25 | 107 | 0.624635 | false | 3.887513 | false | false | false |
OmniLayer/omnicore | test/functional/test_framework/wallet_util.py | 10 | 4035 | #!/usr/bin/env python3
# Copyright (c) 2018-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Useful util functions for testing the wallet"""
from collections import namedtuple
from test_framework... | mit | -4,905,352,963,345,390,000 | 39.757576 | 118 | 0.558116 | false | 3.457584 | true | false | false |
amenonsen/ansible | lib/ansible/modules/cloud/google/gcp_compute_route_info.py | 5 | 7403 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... | gpl-3.0 | 7,359,065,495,107,359,000 | 32.958716 | 140 | 0.597596 | false | 4.377883 | false | false | false |
guillermo-carrasco/bcbio-nextgen | bcbio/upload/filesystem.py | 6 | 2308 | """Extract files from processing run into output directory, organized by sample.
"""
import os
import shutil
from bcbio import utils
from bcbio.log import logger
from bcbio.upload import shared
def copy_finfo(finfo, storage_dir, pass_uptodate=False):
"""Copy a file into the output storage directory.
"""
i... | mit | 977,965,094,330,897,300 | 39.491228 | 102 | 0.603986 | false | 3.539877 | false | false | false |
lowitty/selenium | com/ericsson/xn/x/pm/PmCommons/PmCommon.py | 1 | 29289 | # -*- coding: utf-8 -*-
import time
from datetime import datetime, timedelta
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
from com.ericsson.xn... | mit | 1,719,917,007,543,155,700 | 47.252059 | 125 | 0.57776 | false | 3.390323 | true | false | false |
makuto/redditLikedSavedImageDownloader | LikedSavedDownloaderServer.py | 1 | 37101 | #!/usr/bin/env python
import json
import multiprocessing
import os
import random
import threading
import webbrowser
# third-party imports
import tornado.ioloop
import tornado.web
import tornado.websocket
import tornado.httpclient
import tornado.gen
# local imports
import settings
import LikedSavedDatabase
from downl... | mit | 1,483,246,735,341,435,400 | 42.291715 | 154 | 0.60303 | false | 4.74013 | false | false | false |
DomBennett/pG-lt | setup.py | 1 | 1466 | #! /usr/bin/env python
# D.J. Bennett
# 26/05/2014
"""
setup.py for pglt
"""
import os
import pglt
from setuptools import setup, find_packages
# PACAKAGE INFO
PACKAGES = find_packages()
PACKAGE_DIRS = [p.replace(".", os.path.sep) for p in PACKAGES]
# SETUP
setup(
name="pglt",
version=pglt.__version__,
aut... | gpl-2.0 | 6,158,413,141,660,144,000 | 31.577778 | 76 | 0.653479 | false | 3.347032 | false | false | false |
cwfinn/igmtools | igmtools/data/spectral.py | 1 | 25454 | """
Spectral data representation.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from .core import Data
from .atomic import get_atomdat
from astropy.units import (erg, km, cm, s, angstrom, spectral,
spectral_density, Quanti... | bsd-3-clause | -3,835,039,443,086,312,400 | 28.15693 | 79 | 0.542626 | false | 3.959863 | false | false | false |
yunstanford/GraphiteSetup | carbon_cache.py | 1 | 1349 | import subprocess
import sys
import string
import os
def start_carbon_cache_instance(name):
path = os.path.realpath(__file__)
subprocess.call(["python", "{0}/carbon-cache.py".format(os.path.dirname(path)), "--instance={0}".format(name), "start"])
def stop_carbon_cache_instance(name):
path = os.path.realpath(__fil... | mit | -7,785,795,469,886,082,000 | 22.666667 | 121 | 0.64344 | false | 2.834034 | false | false | false |
daleloogn/mython | mfcc_diy.py | 1 | 1134 | from scikits.talkbox.features.mfcc import *
__author__ = 'zhangxulong'
def mfcc(input, nwin=800, nfft=512, fs=8000, nceps=13):
# MFCC parameters: taken from auditory toolbox
over = 160
# Pre-emphasis factor (to take into account the -6dB/octave rolloff of the
# radiation at the lips level)
prefac... | gpl-2.0 | 4,610,380,613,209,277,000 | 27.35 | 78 | 0.61552 | false | 3 | false | false | false |
tummy-dot-com/tummy-backup | www/tummy-backup/controller.py | 1 | 30004 | #!/usr/bin/env python
import os
import sys
import time
sys.path.append('/usr/local/lib/tummy-backup/www/lib')
sys.path.append('/usr/local/lib/tummy-backup/lib')
import tbsupp
import cherrypy
import cherrypy.lib.auth_basic
from genshi.template import TemplateLoader
from formencode import Invalid, Schema, validators
... | gpl-2.0 | 5,892,526,745,934,946,000 | 33.726852 | 79 | 0.559259 | false | 3.886528 | true | false | false |
gabrielStanovsky/props | props/graph_representation/propagate.py | 1 | 1826 | from props.graph_representation.node import isProp, isTime
class Propagate:
"""
class to bunch together all function of propagation on a digraph
Mainly in order to store the graph as a member which all these functions can edit.
"""
def __init__(self,graph):
self.gr = graph
... | mit | 6,296,101,994,764,986,000 | 41.52381 | 103 | 0.553669 | false | 4.519802 | false | false | false |
gastrodia/liveusb-creator | liveusb/linux_dialog.py | 1 | 18763 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'data/liveusb-creator.ui'
#
# Created: Fri Dec 12 13:46:45 2014
# by: PyQt4 UI code generator 4.10.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
... | gpl-2.0 | 8,534,516,105,100,273,000 | 61.963087 | 333 | 0.7308 | false | 4.156624 | false | false | false |
gnuradio/gnuradio | gr-digital/python/digital/test_soft_decisions.py | 6 | 4293 | #!/usr/bin/env python
#
# Copyright 2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
#
import numpy, sys
from matplotlib import pyplot
from gnuradio import digital
from .soft_dec_lut_gen import soft_dec_table, calc_soft_dec_from_table, calc_soft_de... | gpl-3.0 | -946,524,697,881,018,100 | 33.344 | 198 | 0.589331 | false | 2.592391 | false | false | false |
jlcjunk/pynet_pac | class4/exer08.py | 1 | 2061 | #!/usr/bin/env python
'''
pexpect demo using netmiko to change
'''
# imports
try:
import textwrap
import time
import netmiko
except ImportError:
print "Could not import a required module.\n Exiting"
raise SystemExit
# Variables
RTR1 = {
'host':'pynet-rtr1',
'device_type':'cisco_ios',
... | gpl-3.0 | -3,728,452,204,719,985,700 | 22.157303 | 102 | 0.557496 | false | 3.660746 | false | false | false |
boada/ICD | sandbox/legacy_plot_code/collect_stamps.py | 1 | 2196 | #!/usr/bin/env python
# File: collect_stamps.py
# Created on: Fri 15 Jun 2012 10:11:00 AM CDT
# Last Change: Mon 18 Jun 2012 11:10:48 AM CDT
# Purpose of script: <+INSERT+>
# Author: Steven Boada
import pyfits as pyf
from mk_galaxy_struc import mk_galaxy_struc
galaxies = mk_galaxy_struc()
f1 = open('lowMass.list','w... | mit | 4,391,029,819,560,187,000 | 42.92 | 80 | 0.564663 | false | 2.648975 | false | false | false |
PoprostuRonin/pr0gramista | blog/views.py | 1 | 2561 | from django.shortcuts import render, get_object_or_404, redirect
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from taggit.models import Tag
from .models import Post, Page
POSTS_PER_PAGE = 5
def index(request):
"""Displays first page with latest posts"""
return index_pagination(r... | gpl-3.0 | -7,522,999,251,025,674,000 | 28.77907 | 122 | 0.666927 | false | 3.527548 | false | false | false |
trexbob/bioinfo_tools | instance_counter.py | 1 | 1564 | # This program is to count instances of particular values or names in a file.
# It requires two inputs at the command line, the first is the file being read, and the second
# is the file to be written with the keys and values in a csv file.
# Written by Robert Tyx wyu3@cdc.gov on 3/3/2014
# File: ins... | gpl-2.0 | -3,729,897,447,991,104,000 | 51.931034 | 98 | 0.667519 | false | 3.852217 | false | false | false |
qdamian/htmlvis | htmlvis/plantuml.py | 1 | 1552 | """
Generate http://plantuml.com/sequence-diagram
"""
import logging
from . import formatting, plantuml_text_encoding
from .seqdiag_model import Category
logger = logging.getLogger(__name__)
MSG_TO_TEXTUAL_REPR = {
Category.request: '"{source}" -> "{destination}": {text}\n',
Category.response: '"{destination... | mit | 7,518,732,632,346,164,000 | 27.218182 | 79 | 0.626289 | false | 3.686461 | false | false | false |
cdrooom/odoo | openerp/sql_db.py | 7 | 23676 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2014 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you ca... | agpl-3.0 | 1,858,184,153,876,903,700 | 36.402844 | 123 | 0.591612 | false | 4.185997 | true | false | false |
maxhutch/glopen | setup.py | 1 | 1089 | #!/usr/bin/env python
from os.path import exists
from setuptools import setup
import re
version_raw = open('glopen/_version.py').read()
version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
version_result = re.search(version_regex, version_raw, re.M)
if version_result:
version_string = version_result.group(1)... | mit | -5,315,596,720,515,044,000 | 34.129032 | 79 | 0.623508 | false | 3.501608 | false | true | false |
axsemantics/axsemantics-cli | axsemantics_cli/analyze.py | 1 | 9316 | import click
from collections.abc import Mapping, Sequence
from collections import OrderedDict, defaultdict
import json
import os
import re
import sys
from .common.formatter import sort_atml3
if sys.version_info[0] == 3 and sys.version_info[1] == 5:
from math import gcd
else:
from fractions import gcd
@clic... | mit | -7,680,584,266,771,286,000 | 30.157191 | 91 | 0.472198 | false | 4.38813 | false | false | false |
impactlab/eemeter | eemeter/processors/location.py | 1 | 2513 | import logging
from eemeter.weather.location import (
zipcode_to_usaf_station,
zipcode_to_tmy3_station,
)
from eemeter.weather.noaa import ISDWeatherSource
from eemeter.weather.tmy3 import TMY3WeatherSource
logger = logging.getLogger(__name__)
def get_weather_source(project):
''' Finds most relevant Wea... | mit | -4,050,567,537,289,151,000 | 24.642857 | 77 | 0.636291 | false | 4.099511 | false | false | false |
hraban/YABFD | parsers/customblacklist.py | 1 | 1052 | import csv
from datetime import datetime as dt
import logging
import sys
from parsers import BaseParser
_logger = logging.getLogger('yabfd.' + __name__)
class Parser(BaseParser):
def __init__(self, name, blacklist, bandate=dt.max, hitweight=sys.maxint):
super(Parser, self).__init__(name)
self.loa... | mit | -1,210,551,539,955,328,800 | 34.066667 | 80 | 0.574144 | false | 3.825455 | false | false | false |
alhashash/odoomrp-wip | mrp_production_traceability/wizard/mrp_product_produce.py | 23 | 2304 | # -*- encoding: utf-8 -*-
##############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the... | agpl-3.0 | -4,497,781,787,498,152,000 | 43.307692 | 78 | 0.55599 | false | 4.330827 | false | false | false |
Microvellum/Fluid-Designer | win64-vc/2.78/python/lib/test/test_cgi.py | 2 | 19794 | from test.support import check_warnings
import cgi
import os
import sys
import tempfile
import unittest
import warnings
from collections import namedtuple
from io import StringIO, BytesIO
class HackedSysModule:
# The regression test will have real values in sys.argv, which
# will completely confuse the test of... | gpl-3.0 | -8,058,882,502,354,449,000 | 36.136961 | 183 | 0.552642 | false | 3.547312 | true | false | false |
cmcginty/PyWeather | setup.py | 1 | 1249 | #! /usr/bin/env python
#
# PyWeather
# (c) 2010 Patrick C. McGinty <pyweather@tuxcoder.com>
# (c) 2005 Christopher Blunck <chris@wxnet.org>
#
# You're welcome to redistribute this software under the
# terms of the GNU General Public Licence version 2.0
# or, at your option, any higher version.
#
# You can read the comp... | gpl-3.0 | 8,256,031,794,039,481,000 | 27.386364 | 75 | 0.65012 | false | 3.269634 | false | false | false |
Jan-zou/LeetCode | python/Stack/155_min_stack.py | 1 | 2757 | # !/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Description:
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) -- Push element x onto stack.
pop() -- Removes the element on top of the stack.
top() -- Get the top element.
getMin() -- Retrie... | mit | 7,952,908,537,007,913,000 | 21.958333 | 101 | 0.483485 | false | 3.673333 | false | false | false |
SuperTaiyaki/paifu-tools | start.py | 1 | 1201 | #!/usr/bin/env python
import glob
import random
import cgi
import cgitb
import zipfile
import bz2
import tarfile
import subprocess
cgitb.enable()
#files = glob.glob("hands/*")
# Yes this is stupid. But so is the zip format - it doesn't compress between
# files. The tarfile module doesn't allow streaming out single fi... | gpl-3.0 | 5,272,151,780,071,715,000 | 25.108696 | 102 | 0.711907 | false | 2.95086 | false | false | false |
puhitaku/Booth-algorithm | division.py | 1 | 3792 | from bitwise import *
def split(l, c=0):
"""Split the given list in two."""
return (l[: int(len(l)/2)], l[int(len(l)/2) : None if c == 0 else c])
def main():
print("This program excecutes (Non-)restoring division algorithm.\n")
print("The formula it's going to calculate is: X / Y = ?")
print("Cho... | unlicense | -3,129,163,567,736,293,400 | 29.58871 | 99 | 0.427479 | false | 2.944099 | false | false | false |
karstenw/nodebox-pyobjc | examples/Path/pathops.py | 1 | 1435 | size(600, 1000)
# pathmatics functions
nofill()
stroke(0)
def label(s,x,y):
"""put a black label preserving fill color."""
push()
c = fill()
fill(0)
text(s,x,y)
fill(c)
pop()
def circlepath(x, y, r):
"""Make a circle with curveto."""
r2 = r * 0.5555 #
autoclosepath(cl... | mit | -7,814,168,234,586,585,000 | 18.391892 | 54 | 0.630662 | false | 2.348609 | false | false | false |
adnane1deev/Hook | bin/cmd_line.py | 1 | 46914 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import argparse
import cli_browser
import helper_functions as helpers
import hook_system_variables as hook
from colorama import init, Fore, Back
from HTMLParser import HTMLParser
from datetime import datetime
import os_operations as op
import cli_download_manager as ... | mit | -1,618,545,090,819,251,700 | 42.119485 | 175 | 0.506245 | false | 4.304037 | false | false | false |
ryfeus/lambda-packs | pytorch/source/caffe2/python/muji_test.py | 2 | 3058 | import numpy as np
import unittest
from caffe2.python import core, workspace, muji, test_util
@unittest.skipIf(not workspace.has_gpu_support, "no gpu")
class TestMuji(test_util.TestCase):
def RunningAllreduceWithGPUs(self, gpu_ids, allreduce_function):
"""A base function to test different scenarios."""
... | mit | -1,122,516,690,096,160,900 | 36.292683 | 91 | 0.584369 | false | 3.684337 | true | false | false |
slmtpz/RED-Game-House | GameSlot.py | 1 | 9811 | from tkinter import *
from Bill import *
from consumption_parser import foods, drinks
import CafeDB as db
class GameSlot(Frame):
def __init__(self, game_slots_frame, slot_number, game_info):
Frame.__init__(self, game_slots_frame, highlightbackground="black", highlightthickness=3)
se... | apache-2.0 | -3,954,311,048,807,907,000 | 42.559091 | 179 | 0.615832 | false | 3.310706 | false | false | false |
tensorflow/models | official/modeling/progressive/utils.py | 1 | 1987 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -2,801,626,757,163,497,500 | 34.482143 | 80 | 0.736789 | false | 3.974 | false | false | false |
ITDevLtd/MCVirt | source/mcvirt-daemon/usr/lib/python2.7/dist-packages/mcvirt/parser.py | 1 | 13854 | """Provides argument parser."""
# Copyright (c) 2014 - I.T. Dev Ltd
#
# This file is part of MCVirt.
#
# MCVirt 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 your o... | gpl-2.0 | -3,621,780,881,024,561,700 | 43.121019 | 98 | 0.650931 | false | 4.482045 | false | false | false |
anitahitouch/mediadrop | mediadrop/lib/js_delivery.py | 10 | 6049 | # -*- coding: utf-8 -*-
# This file is a part of MediaDrop (http://www.mediadrop.net),
# Copyright 2009-2015 MediaDrop contributors
# For the exact contribution history, see the git revision log.
# The source code in this file is dual licensed under the MIT license or
# the GPLv3 or (at your option) any later version.
... | gpl-3.0 | -4,727,133,492,058,727,000 | 33.565714 | 88 | 0.579435 | false | 4.326896 | false | false | false |
tux-mind/platform_external_subversion | tools/dev/gen-javahl-errors.py | 5 | 2892 | #!/usr/bin/env python
#
# gen-javahl-errors.py: Generate a Java class containing an enum for the
# C error codes
#
# ====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. Se... | apache-2.0 | 6,232,930,087,033,425,000 | 32.627907 | 86 | 0.606846 | false | 3.810277 | false | false | false |
USGSDenverPychron/pychron | pychron/pipeline/plot/layout.py | 1 | 1316 | # ===============================================================================
# Copyright 2015 Jake Ross
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | apache-2.0 | -103,423,669,881,972,930 | 33.631579 | 81 | 0.535714 | false | 4.768116 | false | false | false |
jenfly/monsoon-onset | testing/testing-indices-onset_HOWI.py | 1 | 3804 | import sys
sys.path.append('/home/jwalker/dynamics/python/atmos-tools')
sys.path.append('/home/jwalker/dynamics/python/atmos-read')
import numpy as np
import xarray as xray
import pandas as pd
import matplotlib.pyplot as plt
import atmos as atm
import merra
from indices import onset_HOWI, summarize_indices, plot_inde... | mit | -3,972,350,699,173,093,000 | 31.512821 | 80 | 0.564932 | false | 2.840926 | false | false | false |
pycroscopy/pycroscopy | pycroscopy/simulation/afm_lib.py | 1 | 33619 | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 04 09:21:54 2017
@author: Enrique Alejandro
Description: this library contains the core algorithms for numerical simulations
You need to have installed:
numba -- > this can be easily installed if you have the anaconda distribution via pip install method: pip install ... | mit | 4,924,540,274,512,157,000 | 38.182984 | 246 | 0.607722 | false | 3.270331 | false | false | false |
binarybottle/mindboggle_sidelined | fundi_from_pits/libbasin.py | 1 | 18234 | #!/usr/bin/python
"""
Extracting features from VTK input files.
Authors:
- Forrest Sheng Bao (forrest.bao@gmail.com) http://fsbao.net
Copyright 2012, Mindboggle team (http://mindboggle.info), Apache v2.0 License
For algorithmic details, please check:
Forrest S. Bao, et al., Automated extraction of nested ... | apache-2.0 | 1,991,005,818,867,061 | 30.546713 | 140 | 0.56976 | false | 3.157949 | false | false | false |
tonioo/modoboa-public-api | modoboa_public_api/models.py | 1 | 1562 | """Modoboa API models."""
from dateutil.relativedelta import relativedelta
from django.db import models
from django.utils import timezone
class ModoboaInstanceManager(models.Manager):
"""Custom manager for ModoboaInstance."""
def active(self):
"""Return active instances (last_request <= 1 month).""... | mit | 6,570,710,811,695,551,000 | 30.24 | 71 | 0.701665 | false | 3.974555 | false | false | false |
vbmendes/meio-pyofc | meiopyofc/series.py | 1 | 6187 | from util import OfcDict
from elements import Colour, ColoursList, LineStyle
from values import ValuesList, ShapePointsList, Value, BarValue
import conf
class SeriesList(list):
colours = conf.colours
value_colours = {
'positive': '#009900',
'negative': '#990000',
'zero': '#000099',
... | bsd-2-clause | 6,318,545,894,399,630,000 | 30.566327 | 75 | 0.56942 | false | 3.700359 | false | false | false |
passy/glashammer-rdrei | examples/notes_with_sqla/notes.py | 1 | 4405 | from os.path import dirname, join
from sqlalchemy import create_engine, MetaData, Table, Column, Integer, \
String, Text
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import create_session, scoped_session
from wtforms import Form, TextField, TextAreaField, validator... | mit | -8,471,366,169,608,996,000 | 32.120301 | 76 | 0.610897 | false | 3.686192 | false | false | false |
jerpat/csmake | csmake/Csmake/Settings.py | 2 | 3889 | # <copyright>
# (c) Copyright 2017 Hewlett Packard Enterprise Development LP
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later ve... | gpl-3.0 | -3,048,745,625,793,723,000 | 32.525862 | 81 | 0.589612 | false | 4.306755 | false | false | false |
d-grossman/magichour | magichour/api/local/sample/auditd_driver.py | 2 | 13362 | import glob
import operator
import os
from magichour.api.local.modelgen.preprocess import log_cardinality
from magichour.api.local.sample.steps.evalapply import evalapply_step
from magichour.api.local.sample.steps.event import event_step
from magichour.api.local.sample.steps.genapply import genapply_step
from magichou... | apache-2.0 | 3,252,611,154,578,878,500 | 34.823056 | 99 | 0.596318 | false | 4.039299 | false | false | false |
stahlnow/stahlnow | website/apps/gallery/models.py | 1 | 1799 | # encoding: utf-8
import os
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.conf import settings
from django.core.files.storage import FileSystemStorage
from django_extensions.db.fields import *
from django.db.models.signals import post_delete, pre_save
from django.disp... | mit | -7,918,202,679,409,547,000 | 28.508197 | 94 | 0.670372 | false | 3.927948 | false | false | false |
EUDAT-B2STAGE/http-api-base | flask_ext/flask_neo4j.py | 1 | 1810 | # -*- coding: utf-8 -*-
""" Neo4j GraphDB flask connector """
import socket
import neo4j
from neomodel import db, config
from flask_ext import BaseExtension, get_logger
from rapydo.utils.logs import re_obscure_pattern
log = get_logger(__name__)
class NeomodelClient():
def __init__(self, db):
self.db =... | mit | -8,237,820,969,986,270,000 | 25.617647 | 76 | 0.556906 | false | 3.926247 | false | false | false |
pombredanne/btnet | grabmakeimage.py | 1 | 4877 | #!/usr/bin/python
import urllib2
import urllib
import re
from BeautifulSoup import BeautifulSoup
import requests
# from stegano import slsb
import random
import os
import json
#gets pic from reddit.com/r/pics and saves as temp.png
def getpic():
num = random.randint(0, 24)
page = BeautifulSoup(urllib2.urlopen("http:/... | gpl-2.0 | -3,028,814,313,174,884,400 | 31.513333 | 749 | 0.691819 | false | 2.706437 | false | false | false |
fungs/mglex | mglex/models/aggregate.py | 1 | 3541 | # This file is subject to the terms and conditions of the GPLv3 (see file 'LICENSE' as part of this source code package)
u"""
This file holds all the functions and types necessary for the aggregate likelihood model.
"""
__author__ = "code@fungs.de"
from .. import common, types
import numpy as np
from sys import argv... | gpl-3.0 | 3,050,839,692,751,011,000 | 35.895833 | 152 | 0.612821 | false | 3.569556 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.