repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
git-commit/TardisDiff | TardisDiff.py | 1 | 4981 | import sys
import os
import inspect
from PyQt5 import QtWidgets, QtCore, QtGui
import plugnplay
from uptime import boottime
from TardisUtil import TardisOptions, TimeSubmitter
class TardisDiff(QtWidgets.QMainWindow):
def __init__(self):
super(TardisDiff, self).__init__()
self.difference = 0
... | isc | 2,382,846,917,862,565,000 | 35.094203 | 86 | 0.656495 | false | 3.770628 | false | false | false |
PPKE-Bioinf/consensx.itk.ppke.hu | consensx/storage/csv.py | 1 | 1205 | class CSVBuffer(object):
"""Class which stores data for values.CSV"""
def __init__(self, my_path):
self.working_dir = my_path
self.max_resnum = -1
self.min_resnum = 100000
self.csv_data = []
def add_data(self, data):
self.csv_data.append(data)
def write_csv(sel... | mit | 8,709,585,037,877,639,000 | 31.567568 | 79 | 0.46971 | false | 3.753894 | false | false | false |
philipgian/pre-commit | pre_commit/make_archives.py | 1 | 2079 | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import os.path
import tarfile
from pre_commit import five
from pre_commit import output
from pre_commit.util import cmd_output
from pre_commit.util import cwd
from pre_commit.util import rmtree
from pr... | mit | -5,814,434,410,959,443,000 | 27.875 | 76 | 0.644541 | false | 3.511824 | false | false | false |
coddingtonbear/d-rats | d_rats/gps.py | 1 | 33132 | import re
import time
import tempfile
import platform
import datetime
import subst
import threading
import serial
import socket
from math import pi,cos,acos,sin,atan2
import utils
if __name__ == "__main__":
import gettext
gettext.install("D-RATS")
TEST = "$GPGGA,180718.02,4531.3740,N,12255.4599,W,1,07,1.4,... | gpl-3.0 | 4,689,796,423,073,490,000 | 28.063158 | 111 | 0.489165 | false | 3.367758 | false | false | false |
kirti3192/spoken-website | mdldjango/views.py | 1 | 15036 | from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from django.core.context_processors import csrf
from models import MdlUser
from events.models import TrainingAttendance
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.decorators import login_req... | gpl-3.0 | 2,444,503,224,367,037,000 | 41.235955 | 210 | 0.60415 | false | 4.061588 | true | false | false |
IngenuityEngine/arkMath | test/test_helpers.py | 1 | 2374 |
# Standard modules
from expects import *
# Our modules
import arkInit
arkInit.init()
import tryout
import arkMath
from arkMath import Mat44
class test(tryout.TestSuite):
title = 'test/test_helpers.py'
def is_vector(self):
vec = arkMath.Vec(1,2,3,4)
self.assertEqual(arkMath.isVector(vec), True)
self.assertE... | mit | 8,659,748,860,809,815,000 | 29.831169 | 115 | 0.667228 | false | 2.212488 | false | false | false |
leingang/plg | plg/utils/decorators.py | 1 | 1819 | #!/usr/bin/env python
import logging
def debug_entry(f):
"""
debug the entry into a function
>>> import sys
>>> import logging
The stream configuration is just to make doctests work.
In practice, you'd probably want the default stream sys.stderr.
>>> logging.basicConfig(lev... | gpl-3.0 | 2,352,242,054,812,354,000 | 22.333333 | 80 | 0.548103 | false | 3.674747 | false | false | false |
pitrou/numba | numba/targets/arrayobj.py | 1 | 109012 | """
Implementation of operations on Array objects and objects supporting
the buffer protocol.
"""
from __future__ import print_function, absolute_import, division
import math
import llvmlite.llvmpy.core as lc
from llvmlite.llvmpy.core import Constant
import numpy
from numba import types, cgutils, typing
from numba.... | bsd-2-clause | -1,622,536,346,280,335,400 | 34.741639 | 96 | 0.599943 | false | 3.689943 | false | false | false |
frombeijingwithlove/dlcv_for_beginners | chap6/bbox_labeling/bbox_labeling.py | 1 | 7575 | import os
import cv2
from tkFileDialog import askdirectory
from tkMessageBox import askyesno
WINDOW_NAME = 'Simple Bounding Box Labeling Tool'
FPS = 24
SUPPOTED_FORMATS = ['jpg', 'jpeg', 'png']
DEFAULT_COLOR = {'Object': (255, 0, 0)}
COLOR_GRAY = (192, 192, 192)
BAR_HEIGHT = 16
KEY_UP = 65362
KEY_DOWN = 65364
KEY_LEF... | bsd-3-clause | 2,674,751,870,218,334,700 | 32.223684 | 116 | 0.532937 | false | 3.620937 | false | false | false |
teampopong/pokr.kr | alembic/versions/3e683fc1af11_region_id_field_of_meetings_table.py | 1 | 1559 | # -*- coding: utf-8 -*-
"""region_id field of 'meetings' table
Revision ID: 3e683fc1af11
Revises: 2f08fb65fe0b
Create Date: 2014-05-24 21:31:25.378918
"""
from __future__ import unicode_literals
# revision identifiers, used by Alembic.
revision = '3e683fc1af11'
down_revision = '2f08fb65fe0b'
from alembic import op... | apache-2.0 | -873,324,810,509,578,100 | 27.722222 | 89 | 0.620245 | false | 3.05315 | false | false | false |
Ektorus/bohrium | ve/cpu/tools/locate.py | 1 | 8762 | from __future__ import print_function
## 3D Lattice Boltzmann (BGK) model of a fluid.
## D3Q19 model. At each timestep, particle densities propagate
## outwards in the directions indicated in the figure. An
## equivalent 'equilibrium' density is found, and the densities
## relax towards that state, in a proportion gove... | lgpl-3.0 | -477,230,179,552,261,200 | 30.070922 | 88 | 0.351518 | false | 2.279396 | false | false | false |
Micronaet/micronaet-mx | sale_discount/model/discount.py | 1 | 4156 | # -*- coding: utf-8 -*-
###############################################################################
#
# Copyright (C) 2001-2014 Micronaet SRL (<http://www.micronaet.it>).
#
# Original module for stock.move from:
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny... | agpl-3.0 | 6,720,405,219,061,504,000 | 34.220339 | 79 | 0.568816 | false | 4.311203 | false | false | false |
soulnothing/FlaskReDoc | example/exampleapplication.py | 1 | 3734 | import sys
import re
import json
from flask import current_app, render_template, render_template_string
from flask import Flask, jsonify
from threading import Thread
from flaskredoc import ReDoc
from werkzeug.wsgi import DispatcherMiddleware
from werkzeug.serving import run_simple
from werkzeug.debug import DebuggedApp... | mit | 8,131,353,653,670,957,000 | 37.895833 | 99 | 0.697108 | false | 3.959703 | false | false | false |
cykl/hprof2flamegraph | stackcollapse_hpl.py | 1 | 8006 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2014, Clément MATHIEU
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above c... | bsd-2-clause | 1,047,224,140,835,399,000 | 39.226131 | 168 | 0.602998 | false | 3.78666 | false | false | false |
AdrienGuille/pyMABED | build_event_browser.py | 1 | 3036 | # coding: utf-8
# std
import time
import argparse
import os
import shutil
# web
from flask import Flask, render_template
from flask_frozen import Freezer
# mabed
import mabed.utils as utils
__author__ = "Adrien Guille"
__email__ = "adrien.guille@univ-lyon2.fr"
event_browser = Flask(__name__, static_folder='browser... | mit | -3,382,823,232,691,615,000 | 34.717647 | 105 | 0.553689 | false | 3.657831 | false | false | false |
mganeva/mantid | qt/python/mantidqt/widgets/codeeditor/test/test_multifileinterpreter.py | 1 | 2516 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
# This file is part of the mantid workbenc... | gpl-3.0 | -4,618,802,130,108,384,000 | 40.933333 | 87 | 0.675278 | false | 3.62536 | true | false | false |
matus-stehlik/glowing-batman | base/templatetags/roots_tags.py | 1 | 1874 | from django import template
from django.core.urlresolvers import reverse
from django.conf import settings
from django.template.base import TemplateSyntaxError
register = template.Library()
@register.simple_tag
def url_active(request, urls, *args, **kwargs):
if request.path in (reverse(url, args=list(*args), kwar... | mit | -6,420,556,990,031,565,000 | 22.425 | 78 | 0.61953 | false | 3.978769 | false | false | false |
lzhjie/benchmark | client_redis.py | 1 | 1166 | # coding: utf-8
# Copyright (C) zhongjie luo <l.zhjie@qq.com>
import redis
from db_bench import DbConnection, multi_process_bench, Options
class StrictRedis(DbConnection):
def __init__(self, options):
super(StrictRedis, self).__init__(options)
self.__db = 0
self.__client = None... | mit | 9,135,346,619,652,901,000 | 22.808511 | 74 | 0.56518 | false | 3.544073 | false | false | false |
jaeilepp/mne-python | mne/simulation/tests/test_raw.py | 1 | 13124 | # Authors: Mark Wronkiewicz <wronk@uw.edu>
# Yousra Bekhti <yousra.bekhti@gmail.com>
# Eric Larson <larson.eric.d@gmail.com>
#
# License: BSD (3-clause)
import os.path as op
import warnings
from copy import deepcopy
import numpy as np
from numpy.testing import assert_allclose, assert_array_equal
fro... | bsd-3-clause | -239,478,660,592,898,980 | 45.211268 | 79 | 0.604846 | false | 3.036557 | true | false | false |
CMUSV-VisTrails/WorkflowRecommendation | vistrails/core/cache/utils.py | 1 | 2304 | ###############################################################################
##
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## "Redistribution and use in source and binary forms, with or without
## modification, ... | bsd-3-clause | 1,477,760,557,045,283,600 | 45.08 | 79 | 0.659722 | false | 4.580517 | false | false | false |
a67878813/script | flvrepair.py | 1 | 3480 | # coding: utf-8
#2019.11.24 refixed in ubuntu19.10
#使用前需安装yamdi
#sudo apt install yamdi
#ubuntu 16.04LTS
#与win机器mount命令示例:
#sudo mount -t cifs -o username="用户名",password="密码",uid=1000 //192.168.2.90/raid5_5-9/直播录像 /mnt2
#若目录不存在,terminal中
#sudo mkdir mnt2
#sudo chown -R linux用户名:linux用户名 mnt2
#使用方法 :
#1.修改脚本预计遍历flv的目... | apache-2.0 | -2,722,938,224,545,431,000 | 20.682759 | 121 | 0.594148 | false | 2.626566 | false | false | false |
jzawar/highstreet | app.py | 1 | 5268 | #!/usr/bin/env python
from __future__ import print_function
from future.standard_library import install_aliases
install_aliases()
from urllib.parse import urlparse, urlencode
from urllib.request import urlopen, Request
from urllib.error import HTTPError
import json
import os
import re
from flask import Flask
from f... | apache-2.0 | 1,609,381,478,073,361,700 | 35.583333 | 482 | 0.656986 | false | 3.361838 | false | false | false |
Salandora/OctoPrint | src/octoprint/server/util/__init__.py | 1 | 6142 | # coding=utf-8
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
fr... | agpl-3.0 | -1,420,406,611,270,146,000 | 32.736264 | 134 | 0.744788 | false | 3.555298 | false | false | false |
eharney/cinder | cinder/tests/functional/test_volumes.py | 1 | 5004 | # Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | 4,194,754,191,102,223,000 | 38.09375 | 79 | 0.635092 | false | 3.968279 | true | false | false |
genzgd/Lampost-Mud | lampmud/mud/chat.py | 1 | 1548 | from lampost.gameops.action import ActionError
from lampost.di.resource import Injected, module_inject
from lampmud.mud.action import mud_action
sm = Injected('session_manager')
module_inject(__name__)
@mud_action('emote', target_class='cmd_str')
def emote(source, target):
source.broadcast(raw="{}{} {}".format('... | mit | 6,273,739,487,291,257,000 | 35 | 96 | 0.662791 | false | 3.372549 | false | false | false |
googleapis/googleapis-gen | google/cloud/videointelligence/v1p1beta1/videointelligence-v1p1beta1-py/google/cloud/videointelligence_v1p1beta1/services/video_intelligence_service/transports/grpc_asyncio.py | 1 | 12936 | # -*- 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 or... | apache-2.0 | -4,601,164,260,622,470,700 | 45.365591 | 99 | 0.619125 | false | 4.782255 | false | false | false |
bioinform/somaticseq | somaticseq/vcfModifier/modify_JointSNVMix2.py | 1 | 3347 | #!/usr/bin/env python3
import argparse
import somaticseq.genomicFileHandler.genomic_file_handlers as genome
def run():
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# Variant Call Type, i.e., snp or indel
parser.add_argument('-infile', '--input-vcf', type=str... | bsd-2-clause | 4,254,031,095,837,364,000 | 29.990741 | 142 | 0.501942 | false | 3.464803 | false | false | false |
phenoxim/nova | nova/notifications/objects/instance.py | 1 | 25085 | # 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
# d... | apache-2.0 | -2,227,258,545,918,772,700 | 38.880763 | 79 | 0.673351 | false | 3.995063 | false | false | false |
MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-3.2/Lib/distutils/command/check.py | 1 | 5369 | """distutils.command.check
Implements the Distutils 'check' command.
"""
__revision__ = "$Id: check.py 85197 2010-10-03 14:18:09Z tarek.ziade $"
from distutils.core import Command
from distutils.errors import DistutilsSetupError
try:
# docutils is installed
from docutils.utils import Reporter
from docuti... | mit | -768,187,753,055,831,900 | 36.284722 | 78 | 0.575899 | false | 4.672759 | false | false | false |
cbrunker/quip | lib/Handlers.py | 1 | 11422 | #
# Response handlers for P2P Server
#
import asyncio
import logging
from functools import partial
from hashlib import sha1, sha384
from uuid import uuid4
from os import path
from lib.Database import getFriendRequests, getSigningKeys, setUidMask, storeAuthority, setFriendAuth, getMessageKeys, \
setAddress, getFil... | gpl-3.0 | 8,537,975,647,144,394,000 | 35.492013 | 127 | 0.651112 | false | 4.276301 | false | false | false |
t-hey/QGIS-Original | python/plugins/processing/algs/qgis/ExtendLines.py | 1 | 2995 | # -*- coding: utf-8 -*-
"""
***************************************************************************
ExtendLines.py
--------------------
Date : October 2016
Copyright : (C) 2016 by Nyall Dawson
Email : nyall dot dawson at gmail dot com
******************... | gpl-2.0 | 7,437,769,807,170,386,000 | 36.4375 | 100 | 0.535225 | false | 4.983361 | false | false | false |
studywolf/blog | InvKin/Arm.py | 1 | 7959 | '''
Copyright (C) 2013 Travis DeWolf
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope t... | gpl-3.0 | 4,691,724,446,632,460,000 | 34.373333 | 79 | 0.547305 | false | 4.128112 | false | false | false |
Mansilla1/Sistema-SEC | apps/usuarios/views.py | 1 | 14404 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Código desarrollado por Daniel Mansilla
from django.shortcuts import render, render_to_response, redirect
from django.views.generic import ListView, CreateView, DetailView, DeleteView, UpdateView, TemplateView
from django.http import HttpResponse, HttpResponseRedirect, Ht... | apache-2.0 | 1,000,900,255,023,441,300 | 29.313684 | 156 | 0.682317 | false | 2.691215 | false | false | false |
svenstaro/python-web-boilerplate | boilerplateapp/models/user.py | 1 | 2930 | """Module containing the `User` model."""
import uuid
import secrets
import string
from datetime import datetime
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy_utils.models import Timestamp
from flask import current_app
from boilerplateapp.extensions import db, passlib
class User(db.Model, Timesta... | mit | 2,480,630,203,031,518,700 | 35.17284 | 94 | 0.646075 | false | 3.943472 | false | false | false |
fdslight/fdslight | pywind/web/handlers/websocket.py | 1 | 8933 | #!/usr/bin/env python3
import pywind as tcp_handler
import pywind.web.lib.websocket as websocket
import pywind.web.lib.httputils as httputils
import socket, time
class ws_listener(tcp_handler.tcp_handler):
def init_func(self, creator, listen, is_ipv6=False):
if is_ipv6:
fa = socket.AF_INET6
... | bsd-2-clause | -8,273,594,278,908,964,000 | 25.149254 | 116 | 0.545953 | false | 3.66946 | false | false | false |
broomyocymru/ditto | ditto/core/cache.py | 1 | 1389 | import glob
import os
import shutil
import uuid
from os.path import expanduser
import requests
from ditto.core import logger
def setup():
global session_uuid
session_uuid = str(uuid.uuid1())
def cleanup():
shutil.rmtree(get_cache_dir(), True)
def get_session_uuid():
return session_uuid
def get... | mit | -2,744,009,419,647,377,400 | 21.419355 | 78 | 0.587473 | false | 3.481203 | false | false | false |
jemofthewest/GalaxyMage | src/Sound.py | 1 | 2427 | # Copyright (C) 2005 Colin McMillen <mcmillen@cs.cmu.edu>
#
# This file is part of GalaxyMage.
#
# GalaxyMage 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 opti... | gpl-2.0 | -3,338,352,428,866,749,400 | 23.765306 | 70 | 0.679852 | false | 3.574374 | false | false | false |
JohanComparat/pySU | galaxy/python/lineListAir.py | 1 | 4082 | """
Script loading the atomic properties from the pyNEB package.
Mostly line transitions.
Input to the line fitting procedures
"""
import numpy as n
from scipy.interpolate import interp1d
import pyneb as pn
# Conversion from Morton (1991, ApJS, 77, 119) wavelength in Angstrom
# SDSS spectra are in the vacuum, ther... | cc0-1.0 | -7,262,391,922,114,196,000 | 31.141732 | 101 | 0.715091 | false | 2 | false | false | false |
JulyJ/MindBot | mindbot/router.py | 1 | 2824 | """
Module designed to route messages based on strategy pattern.
This module includes class mapper tuple to correlate received from telegram
user command with target command class to run. Additionally, this module
generates help message based on command list.
"""
from typing import Any, Dict
from .co... | mit | -6,548,554,171,890,835,000 | 37.684932 | 87 | 0.695467 | false | 4.116618 | false | false | false |
althalus/knotcrafters | knotdirectory/knotdirectory/knots/models.py | 1 | 2886 | from django.db import models
from taggit.managers import TaggableManager
from django.core.urlresolvers import reverse
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
from django.contrib.auth import get_user_model
User = get_user_model()
class Knot(models.Mo... | mit | -6,894,886,796,592,600,000 | 37.48 | 120 | 0.682259 | false | 3.714286 | false | false | false |
LogikSim/LogikSimPython | src/debug/pyside_bugs/nonimplemented_virtual_methods.py | 1 | 1739 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Copyright 2014 The LogikSim Authors. All rights reserved.
Use of this source code is governed by the GNU GPL license that can
be found in the LICENSE.txt file.
Nonimplemented virtual methods can lead to event handling Problems.
Run the script as it is and you will observ... | gpl-3.0 | 7,154,451,987,703,996,000 | 22.186667 | 77 | 0.677976 | false | 3.570842 | false | false | false |
JMMolenaar/cadnano2.5 | cadnano/document.py | 1 | 19668 | #!/usr/bin/env python
# encoding: utf-8
from operator import itemgetter
import cadnano.util as util
import cadnano.preferences as prefs
from cadnano.cnproxy import ProxyObject, ProxySignal
from cadnano.cnproxy import UndoStack, UndoCommand
from cadnano.strand import Strand
from cadnano.oligo import Oligo
from cadna... | mit | 5,810,336,417,466,848,000 | 35.831461 | 102 | 0.552725 | false | 4.193603 | false | false | false |
CrystallineEntity/bulbs | bulbs/views/home.py | 1 | 1916 | from pyramid.view import view_config
from bulbs.components.subcategory import number_of_threads, number_of_posts, last_post
from bulbs.components import db
def catinfo(cat):
keys = "id", "title", "desc", "slug"
keys_values = zip(keys, cat)
return dict(keys_values)
def categories():
"""Return a dict c... | mit | -4,394,526,757,759,784,400 | 32.034483 | 102 | 0.634134 | false | 3.642586 | false | false | false |
repotvsupertuga/tvsupertuga.repository | script.module.cryptolib/lib/Crypto/PublicKey/RSA.py | 1 | 2753 | #!/usr/bin/env python
from __future__ import absolute_import
import binascii
import struct
from rsa import PublicKey, PrivateKey
from Crypto.Math.Numbers import Integer
def import_key(extern_key, passphrase=None):
"""Import an RSA key (public or private half), encoded in standard
form.
:Parameter extern_... | gpl-2.0 | 2,940,562,159,866,837,000 | 33.848101 | 74 | 0.631311 | false | 3.882934 | false | false | false |
fatcloud/PyCV-time | experiments/stop_motion_tool/stop_motion_tool.py | 1 | 1533 | from cam import OpenCV_Cam
import cv2
import os.path
import time
cam = OpenCV_Cam(0)
cam.size = (1920, 1080)
KEY_ESC = 27
KEY_SPACE = ord(' ')
PAGE_DOWN = 2228224 # This make the stop motion to be controllable by presenter.
prevFrame = None
i = 0
#Make a directory on current working directory with date and time a... | mit | 5,548,077,770,134,502,000 | 24.131148 | 88 | 0.641879 | false | 3 | false | false | false |
jtpereyda/boofuzz | boofuzz/primitives/bit_field.py | 1 | 6982 | import struct
from builtins import range
import six
from past.builtins import map
from .. import helpers
from ..constants import LITTLE_ENDIAN
from ..fuzzable import Fuzzable
def binary_string_to_int(binary):
"""
Convert a binary string to a decimal number.
@type binary: str
@param binary: Binary ... | gpl-2.0 | 3,794,698,004,206,549,500 | 33.564356 | 120 | 0.574048 | false | 4.049884 | false | false | false |
mtils/ems | ems/qt/richtext/char_format_actions.py | 1 | 6238 |
from ems.qt import QtWidgets, QtCore, QtGui
from ems.qt.richtext.char_format_proxy import CharFormatProxy
Qt = QtCore.Qt
QObject = QtCore.QObject
QColor = QtGui.QColor
QAction = QtWidgets.QAction
QKeySequence = QtGui.QKeySequence
QFont = QtGui.QFont
QIcon = QtGui.QIcon
QPixmap = QtGui.QPixmap
ThemeIcon = QIcon.fromTh... | mit | 4,689,382,300,073,918,000 | 32.543011 | 97 | 0.648124 | false | 4.14485 | false | false | false |
Murano/microqa | app/forms.py | 1 | 1790 | # -*- coding: utf-8 -*-
from flask import flash
from flask_wtf import Form
from wtforms import StringField, TextAreaField, PasswordField, TextField
from model import User
from wtforms.validators import DataRequired, ValidationError
class QuestionForm(Form):
title = StringField(u"Заголовок вопроса", validators=[Da... | mit | 4,633,618,319,600,694,000 | 36.340909 | 79 | 0.704019 | false | 3.232283 | false | false | false |
OSVR/UIforETWbins | bin/StripChromeSymbols.py | 1 | 13713 | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | apache-2.0 | 8,157,729,412,689,827,000 | 44.795222 | 151 | 0.651448 | false | 3.702674 | false | false | false |
Loreton/MP3Catalog | Source/Project/ExcelDB/ExcelCatalog.py | 1 | 1400 | #!/usr/bin/python
# -*- coding: iso-8859-1 -*-
#
# Scope: Programma per ...........
# by Loreto Notarantonio 2013, February
# ######################################################################################
import os, sys
import ast
############################... | unlicense | -2,451,188,132,575,044,000 | 32.333333 | 111 | 0.502143 | false | 3.655352 | false | false | false |
psi4/mongo_qcdb | qcfractal/storage_sockets/db_queries.py | 1 | 14717 | from typing import List, Optional, Set, Union
from sqlalchemy import Integer, inspect
from sqlalchemy.sql import bindparam, text
from qcfractal.interface.models import Molecule, ResultRecord
from qcfractal.storage_sockets.models import MoleculeORM, ResultORM
QUERY_CLASSES = set()
class QueryBase:
# The name/a... | bsd-3-clause | -2,396,430,855,391,345,700 | 32.523918 | 117 | 0.575865 | false | 4.10516 | false | false | false |
wojtex/cantionale | title_index.py | 1 | 1914 |
class TitleIndex:
def __init__(self, songbook, params):
self.title = ''
self.filter = lambda x : True
if 'title' in params: self.title = params['title']
if 'filter' in params: self.filter = params['filter']
def draw(self, canvas, songbook):
sb = songbook
st = sb.style
c = canvas
wdt = sb.width
pos... | mit | -7,055,911,410,535,979,000 | 33.178571 | 88 | 0.692268 | false | 2.835556 | false | false | false |
mvaled/sentry | src/debug_toolbar/panels/sql/forms.py | 1 | 2785 | from __future__ import absolute_import, unicode_literals
import json
import hashlib
from django import forms
from django.conf import settings
from django.db import connections
from django.utils.encoding import force_text
from django.utils.functional import cached_property
from django.core.exceptions import Validation... | bsd-3-clause | -6,826,950,877,515,031,000 | 28.946237 | 83 | 0.647038 | false | 4.311146 | false | false | false |
manusev/plugin.video.kuchitv | resources/regex/freebroadcast.py | 1 | 5105 | # -*- coding: utf-8 -*-
#------------------------------------------------------------
# MonsterTV - XBMC Add-on by Juarrox (juarrox@gmail.com)
# Version 0.2.9 (18.07.2014)
#------------------------------------------------------------
# License: GPL (http://www.gnu.org/licenses/gpl-3.0.html)
# Gracias a la librería plug... | gpl-2.0 | 6,524,703,570,245,585,000 | 34.395833 | 182 | 0.627232 | false | 3.400267 | false | false | false |
soybean217/lora-python | UServer/admin_server/admin_data_update/model/gateway_locaton_data.py | 1 | 1618 | # _*_ coding:utf-8 _*_
from database.db4 import db4, Channel4, ConstDB4
from utils.log import Logger, Action
class Location:
channel_name = Channel4.gis_gateway_location + '*'
def __init__(self):
self.ps = db4.pubsub()
def psubscribe_gis(self):
self.ps.psubscribe(self.channel_name)
... | mit | -8,514,074,294,372,980,000 | 34.173913 | 106 | 0.520396 | false | 4.00495 | false | false | false |
geishatokyo-lightning/lightning | lightning_core/vg/cssanim.py | 1 | 14273 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2011 Geisha Tokyo Entertainment, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including withou... | mit | -3,026,379,057,328,387,000 | 39.092697 | 197 | 0.577664 | false | 3.682405 | false | false | false |
jayantk/jklol | scripts/sequence/generate_emission_features.py | 1 | 1090 | #!/usr/local/lib/python2.6
import re
import sys
filename = sys.argv[1]
def generate_string_features(word, label):
dict = {}
'''
patterns = ['\d$', '\d\d$', '\d\d\d+$', '\d?\d?:\d\d$',
'[0-9:]+$', '[A-Z]', '[A-Z]$', '[A-Z][A-Z]$',
'[A-Z]+$', '[^0-9A-Za-z]+$', '[^0-9]+$'... | bsd-2-clause | 780,676,244,806,136,700 | 26.25 | 87 | 0.478899 | false | 3.01105 | false | false | false |
praba230890/PYPOWER | pypower/t/t_case_ext.py | 2 | 4105 | # Copyright (c) 1996-2015 PSERC. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
"""Case data in external format.
"""
from numpy import array, ones, arange, r_
def t_case_ext():
"""Case data in external format used to test C{ext2int} and... | bsd-3-clause | -4,254,840,702,159,437,000 | 40.887755 | 125 | 0.436541 | false | 2.18119 | false | false | false |
ellmetha/django-machina | machina/core/loading.py | 1 | 3900 | import sys
import traceback
from django.conf import settings
class AppNotFoundError(Exception):
pass
class ClassNotFoundError(Exception):
pass
def get_class(module_label, classname):
return get_classes(module_label, [classname, ])[0]
def get_classes(module_label, classnames):
""" Imports a set ... | bsd-3-clause | 3,359,601,575,584,082,400 | 34.779817 | 100 | 0.65641 | false | 4.257642 | false | false | false |
ericdill/PyXRF | pyxrf/model/guessparam.py | 1 | 27631 | # ######################################################################
# Copyright (c) 2014, Brookhaven Science Associates, Brookhaven #
# National Laboratory. All rights reserved. #
# #
# Redistribution and use in ... | bsd-3-clause | -2,165,580,146,740,394,200 | 36.340541 | 118 | 0.551446 | false | 3.962002 | false | false | false |
aznashwan/heat2arm | heat2arm/translators/networking/secgroups/ec2_secgroup.py | 1 | 3254 | # Copyright 2015 Cloudbase Solutions Srl
# 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 r... | apache-2.0 | -445,866,815,154,035,600 | 37.738095 | 78 | 0.527966 | false | 4.750365 | false | false | false |
corakwue/ftrace | ftrace/parsers/sched_load_avg_cpu.py | 1 | 2005 | #!/usr/bin/python
# Copyright 2015 Huawei Devices USA Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | apache-2.0 | 1,968,760,944,318,342,700 | 26.094595 | 74 | 0.632918 | false | 3.523726 | false | false | false |
grepme/cmput410-project | api/urls.py | 1 | 1779 | from django.conf.urls import patterns, include, url
guid_regex = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
sha1_regex = "[a-zA-Z0-9]+"
id_regex = "(({guid})|({sha1}))".format(guid=guid_regex,sha1=sha1_regex)
urlpatterns = patterns('api.views',
# get posts ... | apache-2.0 | -7,852,624,737,404,225,000 | 44.615385 | 121 | 0.45756 | false | 3.414587 | false | false | false |
jspilker/visilens | examples/Ex1_get_data_continuum.py | 1 | 4773 | """
Example 1, to be run within CASA. This script serves as a guideline
for how to get data out of a CASA ms and into a format which
visilens can use. We really don't need all that much information,
so we keep only the columns we need.
To keep the number of visibilities low, we first average the data
a bit. In this p... | mit | 5,476,157,098,352,860,000 | 44.457143 | 116 | 0.699979 | false | 3.229364 | false | false | false |
bbondy/brianbondy.gae | libs/sx/pisa3/pisa_tables.py | 1 | 13877 | # -*- coding: ISO-8859-1 -*-
# Copyright 2010 Dirk Holtwick, holtwick.it
#
# 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... | mit | 3,694,893,880,446,124,500 | 32.439206 | 122 | 0.517475 | false | 3.857937 | false | false | false |
timevortexproject/timevortex | weather/utils/globals.py | 1 | 1404 | #!/usr/bin/python3
# -*- coding: utf8 -*-
# -*- Mode: Python; py-indent-offset: 4 -*-
"""Globals for weather app"""
from datetime import datetime, timedelta
from django.conf import settings
KEY_METEAR_NO_SITE_ID = "metear_no_site_id"
KEY_METEAR_BAD_URL = "metear_bad_url"
KEY_METEAR_PROBLEM_WS = "metear_problem_ws"
K... | mit | -9,200,364,049,418,442,000 | 49.142857 | 115 | 0.712251 | false | 2.664137 | false | false | false |
cryptapus/electrum-myr | lib/jsonrpc.py | 1 | 3726 | #!/usr/bin/env python3
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2018 Thomas Voegtlin
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including withou... | mit | 1,195,370,511,997,288,000 | 38.221053 | 91 | 0.665056 | false | 4.555012 | false | false | false |
google-research/google-research | ipagnn/adapters/gat_adapters.py | 1 | 2892 | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | apache-2.0 | 6,610,926,958,701,834,000 | 37.56 | 79 | 0.651107 | false | 3.770535 | false | false | false |
googleapis/python-workflows | google/cloud/workflows_v1beta/services/workflows/pagers.py | 1 | 5782 | # -*- 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 or... | apache-2.0 | 7,345,909,831,732,091,000 | 36.303226 | 87 | 0.654445 | false | 4.468315 | false | false | false |
sakthivigneshr/homeauto | src/control/rpi/rpi_gpio_slave.py | 1 | 1752 | import pika
import RPi.GPIO as GPIO
import paho.mqtt.client as mqtt
from threading import Thread
USER = "test"
PASS = "test123"
VHOST = "/cloudlynk"
HOST = "mohawk.link"
KEY = "solfeta"
XCHANGE = "home"
OUTPUT_PIN = 7
def callback(ch, method, properties, body):
level = int(body)
print("received msg: " + repr(level)... | mit | 8,074,197,039,635,007,000 | 22.052632 | 61 | 0.694635 | false | 2.839546 | false | false | false |
jakublipinski/i2Gmail-Backup-macOS-Messages-To-Gmail | contacts.py | 1 | 2674 | import gdata.data
import gdata.contacts.client
import gdata.contacts.data
import string
import config
class Contacts:
def __init__(self, credentials):
auth2token = gdata.gauth.OAuth2Token(client_id=credentials.client_id,
client_secret=credentials.client_secret,
scope='https://www.google.c... | mit | 2,101,036,142,555,594,800 | 32.012346 | 105 | 0.665669 | false | 3.098494 | false | false | false |
bmswgnp/sdk | python/test.py | 1 | 5131 | #
# Simple test program for the Python Motion SDK.
#
# @file tools/sdk/python/test.py
# @author Luke Tokheim, luke@motionnode.com
# @version 2.2
#
# Copyright (c) 2015, Motion Workshop
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provide... | bsd-2-clause | 1,064,305,266,750,681,900 | 31.474684 | 129 | 0.588384 | false | 3.881241 | true | false | false |
bop/foundation | lib/python2.7/site-packages/staticfiles/urls.py | 1 | 1283 | import re
from django.conf import settings
from django.conf.urls.defaults import patterns, url
from django.core.exceptions import ImproperlyConfigured
urlpatterns = []
def static(prefix, view='django.views.static.serve', **kwargs):
"""
Helper function to return a URL pattern for serving files in debug mode.
... | gpl-2.0 | 5,661,768,768,317,236,000 | 31.075 | 86 | 0.686672 | false | 4.29097 | false | false | false |
SKIRT/PTS | core/tools/stringify.py | 1 | 41185 | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | agpl-3.0 | -4,237,823,556,950,689,000 | 32.980198 | 229 | 0.577846 | false | 3.923033 | false | false | false |
ZuraK/aVarCode | py_prototyping/hex.py | 1 | 7514 | # File:
# Desc:
import math;
# param: hType, hexType, 0 for Flat topped, 30 if Pointy topped
# param: center, Vector2Point, hex center
# param: radius, size of hex
# param: index, indexPoint corner of hex, 0-5
# returns: Vector2Point hex corner
def GeneratePointHEX(hType, center, radius, index):
vec[0];
angle_deg =... | gpl-2.0 | -3,974,613,827,194,157,600 | 25.090278 | 69 | 0.534602 | false | 2.438027 | false | false | false |
danielfreeman11/convex-nets | LaunchScripts/CIFAR10.py | 1 | 29360 | #Imports and model parameters
from __future__ import absolute_import
from __future__ import division
import tensorflow as tf
import numpy as np
from tensorflow.examples.tutorials.mnist import input_data
#mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
#Simple network: Given three integers a,b,c, ... | mit | -1,522,237,430,314,512,100 | 29.982571 | 144 | 0.615123 | false | 2.942473 | true | false | false |
neqelr17/banknotes | banknotes/settings.py | 1 | 3207 | """
Django settings for banknotes project.
Generated by 'django-admin startproject' using Django 1.9.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
... | gpl-3.0 | -6,370,282,057,669,393,000 | 25.286885 | 91 | 0.688806 | false | 3.508753 | false | false | false |
berserkerbernhard/Lidskjalv | code/networkmonitor/modules/groups/grouplistmenu.py | 1 | 2968 | import os
import time
import dialog
from modules.sitegrouphosttools import SiteGroupHostTools
from modules.groups.group import Group
from modules.groups.groupform import GroupForm
from modules.groups.groupmenu import GroupMenu
from modules.sitegrouphosttools import get_group_members
class GroupListMenu(SiteGroupHostTo... | gpl-3.0 | -3,861,360,141,004,099,600 | 36.56962 | 76 | 0.453504 | false | 4.332847 | false | false | false |
bielawb/PSConfAsia17-Linux | Scripts/httpsWinRM.py | 1 | 2125 | #!/usr/bin/env python
# coding: utf-8
import getpass
from re import search
from subprocess import Popen, PIPE
from winrm import Session
from sys import exit, argv
if len(argv) < 2 :
exit('Sposób użycia: %s <polecenie>' % argv[0])
polecenie = " ".join(argv[1:])
exitCode = 0
class PowerShellEr... | mit | 7,049,195,507,617,604,000 | 28.577465 | 179 | 0.603333 | false | 2.720207 | false | false | false |
adityagilra/2015_spiking_population_response | ExcInhNetflex.py | 1 | 5096 | # -*- coding: utf-8 -*-
"""
Spiking neural net of LIF/SRM neurons with AI firing
written by Aditya Gilra (c) July 2015.
"""
from brian2 import * # also does 'from pylab import *'
from embedded_consts import *
import random
## Cannot make this network a Class,
## since brian standalone mode wants all Brian ob... | gpl-3.0 | 5,565,042,228,597,522,000 | 39.768 | 89 | 0.562991 | false | 3.132145 | false | false | false |
HazenBabcock/brigl | test/driver.py | 1 | 2249 | #!/usr/bin/env python
"""
This returns an automated web browser to use for automated testing. It also
includes some utility functions.
https://www.seleniumhq.org/
http://selenium-python.readthedocs.io/
"""
import time
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCa... | gpl-3.0 | -7,560,753,491,243,775,000 | 24.850575 | 80 | 0.582926 | false | 4.044964 | false | false | false |
ctogle/dilapidator | test/geometry/quat_tests.py | 1 | 6809 | from dilap.geometry.quat import quat
from dilap.geometry.vec3 import vec3
import dilap.geometry.tools as dpr
import matplotlib.pyplot as plt
import unittest,numpy,math
import pdb
#python3 -m unittest discover -v ./ "*tests.py"
class test_quat(unittest.TestCase):
def test_av(self):
a = 3*dpr.PI4
... | mit | -8,675,543,976,464,371,000 | 33.21608 | 63 | 0.545455 | false | 2.185875 | true | false | false |
carlos-jenkins/plantweb | test/sphinxconf/conf.py | 1 | 9536 | # -*- coding: utf-8 -*-
#
# PlantwebTest documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 24 03:02:39 2016.
#
# 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.
... | apache-2.0 | -4,205,343,303,474,952,700 | 30.681063 | 79 | 0.692429 | false | 3.760252 | true | false | false |
MrSwiss/SpockBot | spock/plugins/core/auth.py | 1 | 5050 | """
Provides authorization functions for Mojang's login and session servers
"""
import hashlib
import json
# This is for python2 compatibility
try:
import urllib.request as request
from urllib.error import URLError
except ImportError:
import urllib2 as request
from urllib2 import URLError
import loggin... | mit | -2,816,174,595,662,378,500 | 33.121622 | 79 | 0.588515 | false | 4.129191 | false | false | false |
britcey/ansible | lib/ansible/modules/network/junos/junos_config.py | 1 | 12228 | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | gpl-3.0 | -4,767,133,261,227,598,000 | 32.966667 | 89 | 0.66454 | false | 4.343872 | true | false | false |
Alwnikrotikz/paimei | console/modules/_PAIMEIdiff/DiffModules/crc.py | 1 | 2243 | #
# $Id$
#
from defines import *
class crc:
def __init__(self, parent=None):
self.attributes = {} # initialize attributes
self.attributes["Match"] = 1 # Match attribute set to 1 tells the main program we can be used to match
self.attribute... | gpl-2.0 | -5,157,040,256,780,206,000 | 46.76087 | 145 | 0.57111 | false | 4.07078 | false | false | false |
legoktm/legobot-old | toolserver/pywp/timedate.py | 1 | 2209 | #!usr/bin/python
# (C) Legoktm 2008-2011, MIT License
import time, datetime
"""
Not to be run as a file
Contains lists and dictionaries to help with dates
Only for English Language, however translations are welcome.
"""
MonthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'Septemb... | mit | 8,878,393,515,859,586,000 | 17.720339 | 139 | 0.634224 | false | 2.44629 | false | false | false |
vmuriart/grako | grako/contexts.py | 1 | 22161 | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import sys
import functools
from collections import namedtuple
from contextlib import contextmanager
from grako.util import notnone, ustr, prune_dict, is_list, info, safe_name
from grak... | bsd-2-clause | 3,773,346,253,559,332,400 | 27.930809 | 87 | 0.515184 | false | 4.216324 | false | false | false |
meejah/txtorcon | txtorcon/socks.py | 1 | 23368 | # in-progress; implementing SOCKS5 client-side stuff as extended by
# tor because txsocksx will not be getting Python3 support any time
# soon, and its underlying dependency (Parsely) also doesn't support
# Python3. Also, Tor's SOCKS5 implementation is especially simple,
# since it doesn't do BIND or UDP ASSOCIATE.
fr... | mit | 3,089,544,794,076,965,400 | 29.910053 | 87 | 0.572663 | false | 4.009609 | false | false | false |
appi147/Jarvis | jarviscli/plugin.py | 1 | 6525 | from inspect import cleandoc, isclass
import pluginmanager
from requests import ConnectionError
# Constants
# platform
MACOS = "MACOS"
LINUX = "LINUX"
WINDOWS = "WINDOWS"
# Shortcut for MACOS + LINUX
UNIX = "UNIX"
def plugin(name):
"""
Convert function in Plugin Class
@python(platform=LINUX, native="a... | mit | 4,146,784,341,586,826,000 | 27.49345 | 96 | 0.540383 | false | 4.161352 | false | false | false |
brigittebigi/proceed | proceed/scripts/import.py | 1 | 9928 | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# ---------------------------------------------------------------------------
# ___ __ ___ ___ ____ ____ __
# | \ | \ | | / | | | \ Automatic
# |__/ |__/ | | | |__ |__ | | Conference
# | |\... | gpl-3.0 | -6,585,036,941,953,271,000 | 36.044776 | 119 | 0.463638 | false | 4.512727 | false | false | false |
zvolsky/muzika | models/menu.py | 1 | 6740 | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
#########################################################################
## Customize your APP title, subtitle and menus here
#########################################################################
response.logo... | agpl-3.0 | -2,985,467,640,629,348,000 | 43.562914 | 90 | 0.480755 | false | 3.705396 | false | false | false |
dtbcoinlab/dtbcoin | share/qt/make_spinner.py | 1 | 1035 | #!/usr/bin/env python
# W.J. van der Laan, 2011
# Make spinning .mng animation from a .png
# Requires imagemagick 6.7+
from __future__ import division
from os import path
from PIL import Image
from subprocess import Popen
DTC='img/reload_scaled.png'
DST='../../src/qt/res/movies/update_spinner.mng'
TMPDIR='/tmp'
TMPNAM... | mit | 131,144,194,758,330,020 | 23.069767 | 85 | 0.691787 | false | 2.820163 | false | false | false |
Kapiche/gcloud-datastore-oem | gcloudoem/exceptions.py | 1 | 8700 | # Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | -6,143,890,875,748,414,000 | 25.934985 | 116 | 0.63931 | false | 4.270987 | false | false | false |
llekn/ffado | admin/pyuic4.py | 1 | 1532 | #!/usr/bin/python
#
# Copyright (C) 2007-2008 Arnold Krille
#
# This file is part of FFADO
# FFADO = Free Firewire (pro-)audio drivers for linux
#
# FFADO is based upon FreeBoB.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published b... | gpl-2.0 | -256,141,468,672,272,600 | 29.64 | 102 | 0.706266 | false | 3.171843 | false | false | false |
moto-timo/ironpython3 | Src/Scripts/generate_calls.py | 1 | 26135 | #####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Apache License, Version 2.0. A
# copy of the license can be found in the License.html file at the root of t... | apache-2.0 | 6,270,476,123,638,950,000 | 42.056013 | 201 | 0.601033 | false | 3.54854 | false | false | false |
waveform80/dbsuite | dbsuite/plugins/db2/zos/parser.py | 1 | 412770 | # vim: set et sw=4 sts=4:
# Copyright 2012 Dave Hughes.
#
# This file is part of dbsuite.
#
# dbsuite is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any l... | gpl-3.0 | 2,388,590,240,867,676,700 | 39.435933 | 143 | 0.47767 | false | 4.567151 | false | false | false |
jp-security/LeagueStats | app/auth/forms.py | 1 | 1957 | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, ValidationError, SelectField, IntegerField, DecimalField
from wtforms.validators import Required, Email, Length, Regexp, EqualTo, NumberRange
from wtforms import ValidationError
from ..models import User
class Lo... | gpl-3.0 | -6,136,674,587,046,894,000 | 56.558824 | 131 | 0.662749 | false | 4.681818 | false | false | false |
hilarry/cmdb | cmdb/settings.py | 1 | 2308 | """
Django settings for cmdb project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | apache-2.0 | 5,920,079,684,958,420,000 | 22.313131 | 71 | 0.69974 | false | 3.283073 | false | false | false |
recipy/recipy | integration_test/test_packages.py | 1 | 18672 | """
recipy test case runner.
Run tests to check that recipy logs information on input and output
functions invoked by scripts which use packages that recipy has been
configured to log.
Tests are specified using a [YAML](http://yaml.org/) (YAML Ain't
Markup Language) configuration file. YAML syntax is:
* `---` indica... | apache-2.0 | -3,213,694,212,848,131,600 | 36.121272 | 78 | 0.655848 | false | 4.031959 | true | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.