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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lavande/wx-post-generator | wxfancypic.py | 1 | 2823 | from flask import Flask,request,render_template,url_for,send_file
from werkzeug.contrib.fixers import ProxyFix
import hashlib
import xmltodict
import subprocess
import time
##BASIC SETTINGS##
#set the server's url here
urlbase = 'http://'
#set your token here
token = ''
#currently 2 options: xmas and lomolive (as in ... | mit | -1,949,566,384,466,096,600 | 23.336207 | 71 | 0.647892 | false | 2.837186 | false | false | false |
TurpIF/gestures-learning | learner_finger.py | 1 | 8056 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, sys
this_dir = os.path.dirname(os.path.realpath(__name__))
sys.path.insert(0, os.path.join(this_dir, 'libs', 'leap'))
import Leap
import time
import sys
class FingerPoint(object):
"""
All usefull information about a finger.
Arguments:
position... | mit | 7,622,142,636,752,140,000 | 27.874552 | 83 | 0.546177 | false | 3.72963 | false | false | false |
FichteFoll/CSScheme | my_sublime_lib/__init__.py | 1 | 8904 | from sublime_plugin import WindowCommand, TextCommand
import sublime
__all__ = ['ST2', 'ST3', 'WindowAndTextCommand', 'Settings', 'FileSettings']
ST2 = sublime.version().startswith('2')
ST3 = not ST2
class WindowAndTextCommand(WindowCommand, TextCommand):
"""A class to derive from when using a Window- and a Tex... | mit | -872,804,802,803,249,200 | 34.903226 | 100 | 0.596698 | false | 4.286952 | false | false | false |
craigderington/striker_api | tutorial/tutorial/settings.py | 1 | 3252 | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 1.9.2.
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 | 3,665,217,307,449,652,700 | 24.606299 | 91 | 0.686962 | false | 3.527115 | false | false | false |
HongxuChen/dotfiles | _ipython/extensions/pep8_magic.py | 1 | 1477 | # magic function that checks a cell for pep8 compliance
# %%pep8
# a=1
# should give an error about missing spaces
import sys
import tempfile
import io
import logging
from IPython.core.magic import register_cell_magic
def load_ipython_extension(ipython):
# The `ipython` argument is the currently active `Interac... | mit | 9,202,553,753,179,302,000 | 26.351852 | 73 | 0.66283 | false | 3.991892 | false | false | false |
gersolar/noaadem | setup.py | 1 | 4971 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
from setuptools.command.install import install
import os
import subprocess
from urllib2 import urlopen
import zipfile
import sys
import time
def parse_requirements(filename):
return list(filter(lambda line: (line.strip())[0] != '#',
... | mit | 245,445,928,350,427,260 | 32.362416 | 79 | 0.602696 | false | 3.874513 | false | false | false |
salv-orlando/MyRepo | nova/db/sqlalchemy/migrate_repo/versions/054_add_bw_usage_data_cache.py | 1 | 2133 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 MORITA Kazutaka.
# 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.or... | apache-2.0 | -5,622,963,119,208,717,000 | 36.421053 | 78 | 0.680263 | false | 4.062857 | false | false | false |
thorwhalen/ut | scrap/xgoogle/googlesets.py | 1 | 2504 | #!/usr/bin/python
#
# Peteris Krumins (peter@catonmat.net)
# http://www.catonmat.net -- good coders code, great reuse
#
# http://www.catonmat.net/blog/python-library-for-google-sets/
#
# Code is licensed under MIT license.
#
import re
import urllib.request, urllib.parse, urllib.error
import random
from html.entities... | mit | -2,047,066,397,241,556,500 | 27.134831 | 115 | 0.621805 | false | 3.365591 | false | false | false |
avoyages/etfa2015 | mtf_python3_v1/mtf/utils_b.py | 1 | 1538 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Modbus TestKit: Implementation of Modbus protocol in python
(C)2009 - Luc Jean - luc.jean@gmail.com
(C)2009 - Apidev - http://www.apidev.fr
This is distributed under GNU LGPL license, see license.txt
"""
import threading
import logging
import socket
import select... | gpl-3.0 | 1,101,563,569,886,617,100 | 26.981818 | 93 | 0.583875 | false | 3.874055 | false | false | false |
mdaif/olympia | apps/users/views.py | 1 | 26488 | import functools
from datetime import datetime
from functools import partial
from django import http
from django.conf import settings
from django.contrib import auth
from django.contrib.auth.forms import PasswordResetForm
from django.contrib.auth.tokens import default_token_generator
from django.db import IntegrityErr... | bsd-3-clause | -4,560,108,672,903,128,600 | 35.284932 | 79 | 0.595817 | false | 4.129716 | false | false | false |
Tjorriemorrie/trading | 09_scalping/s-waitfor.py | 1 | 2508 | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from sklearn import linear_model
from features import calculateTargets
from simulate import backtest
from pprint import pprint
currency = 'EURUSD'
interval = '60'
factor = 10000
df = pd.read_csv(
r'../data/' + currency.upper() + interval + '.c... | mit | 3,768,308,975,932,503,600 | 25.125 | 96 | 0.629984 | false | 2.792873 | false | false | false |
akrherz/iem | htdocs/plotting/auto/scripts100/p139.py | 1 | 6185 | """Top 10 largest, smallest"""
import datetime
try:
from zoneinfo import ZoneInfo
except ImportError:
from backports.zoneinfo import ZoneInfo
from pandas.io.sql import read_sql
from matplotlib.font_manager import FontProperties
from pyiem.util import get_autoplot_context, get_dbconn
from pyiem.plot import fig... | mit | -8,857,009,840,062,342,000 | 28.735577 | 78 | 0.538238 | false | 3.436111 | false | false | false |
ololobster/cvidone | tests/db_with_data/fill.py | 1 | 8007 | # Licensed under The MIT License.
# For full copyright and license information, please see the LICENSE.txt.
import os
os.environ["CONF_DIR"] = os.path.join(
os.path.dirname(os.path.realpath(__file__))
, ".."
, ".."
, "etc"
)
from cvidone import settings
from cvidone.model.user import User
from cvidone.model... | mit | -5,838,180,522,105,701,000 | 32.927966 | 132 | 0.504309 | false | 3.677997 | false | false | false |
Konubinix/weboob | modules/arte/pages.py | 1 | 3135 | # -*- coding: utf-8 -*-
# Copyright(C) 2010-2011 Romain Bignon
#
# This file is part of weboob.
#
# weboob 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 License, or
# (at your... | agpl-3.0 | -6,551,692,988,662,806,000 | 40.25 | 136 | 0.588198 | false | 4.191176 | false | false | false |
vadim-ivlev/STUDY | coding/TwoSum.py | 1 | 1170 | # import pytest
'''
https://www.testdome.com/questions/python/two-sum/14289?questionIds=14288,14289&generatorId=92&type=fromtest&testDifficulty=Easy
Write a function that, given a list and a target sum, returns zero-based indices of any two distinct elements whose sum is equal to the target sum. If there are no such e... | mit | -3,817,025,658,587,270,000 | 21.519231 | 215 | 0.559829 | false | 2.903226 | true | false | false |
DanSearle/CheckMail | checkmail.py | 1 | 4194 | #!/usr/bin/env python
"""
Simple Python module to parse a Thunderbird mail file and
scan each email message with ClamAV in order to detect
suspect messages.
"""
import pyclamd
import argparse
import mailbox
import logging
log = logging.getLogger(__name__)
default_net = ("localhost", 3310)
class ScanMes... | mit | -2,563,605,324,226,916,000 | 38.942857 | 117 | 0.565331 | false | 4.079767 | false | false | false |
simos/keyboardlayouteditor | Key.py | 1 | 8239 | #!/usr/bin/env python
# -*- encoding: UTF-8 -*-
#
# 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... | gpl-3.0 | -7,022,255,439,730,606,000 | 43.777174 | 121 | 0.577497 | false | 3.841026 | false | false | false |
eerimoq/asn1tools | examples/benchmarks/question/question.py | 1 | 2893 | #!/usr/bin/env python
"""Encoding and decoding of a question once for each codec.
Example execution:
$ ./question.py
ASN.1 specification:
-- A simple protocol taken from Wikipedia.
Foo DEFINITIONS ::= BEGIN
Question ::= SEQUENCE {
id INTEGER,
question IA5String
}
Answer ::= SE... | mit | 7,377,335,358,063,260,000 | 23.516949 | 142 | 0.6215 | false | 3.013542 | false | false | false |
andela-akhenda/maisha-goals | app/__init__.py | 1 | 1333 | import os
from flask import Flask, request, g
from flask_sqlalchemy import SQLAlchemy
from .decorators import json
db = SQLAlchemy()
def create_app(config_name):
""" Create the usual Flask application instance."""
app = Flask(__name__)
# Apply configuration
cfg = os.path.join(os.getcwd(), 'config', ... | mit | 2,195,087,826,035,797,000 | 24.634615 | 66 | 0.613653 | false | 3.863768 | false | false | false |
wehlutyk/brainscopypaste | brainscopypaste/filter.py | 1 | 9091 | """Filter clusters and quotes to clean to MemeTracker dataset.
This module defines the :class:`ClusterFilterMixin` mixin which adds filtering
capabilities to :class:`~.db.Cluster`, and the :func:`filter_clusters` function
which uses that mixin to filter the whole MemeTracker dataset. A few other
utility functions are ... | gpl-3.0 | 3,308,807,656,683,033,000 | 34.932806 | 79 | 0.611484 | false | 4.1398 | false | false | false |
sukuba/js-py-document-search | make_index.py | 1 | 5005 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# written for python 3 but also run on python 2
from __future__ import absolute_import, division, print_function, unicode_literals
"""
make index json file from text file tree.
Expects Python 3
https://github.com/sukuba/js-py-document-search
"""
import argparse
import os... | mit | -1,257,073,300,274,279,700 | 33.008547 | 111 | 0.641116 | false | 2.133512 | false | false | false |
hendiko/git-ring | modules/hooks.py | 1 | 3918 | #!/usr/bin/env python
# -*- coding: utf8 -*-
# Created by Xavier Yin on 2015/3/1
from mail import send_mail
from tpls import TEMPLATES
import abc
import inspect
import re
import shlex
import sys
class Hook(object):
def __init__(self, arg, config):
self.raw_arg = str(arg)
self.args = shlex.split(... | mit | 6,190,497,298,015,324,000 | 26.293706 | 98 | 0.581497 | false | 3.393043 | true | false | false |
VanHulleOne/DogBone | gcode.py | 1 | 2105 | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 06 10:30:44 2015
Used creating all of the lines of Gcode.
@author: lvanhulle
"""
import parameters as pr
def feedMove(endPoint, ommitZ, extrudeTo, printSpeed):
if ommitZ:
tempString = ('X{:.3f} Y{:.3f} E{:.3f}'.format(endPoint.x,
endPo... | mit | -3,172,441,500,738,403,300 | 31.90625 | 98 | 0.586698 | false | 2.744459 | false | false | false |
andyv/sse | ir_nodes.py | 1 | 26015 |
# (C) 2014-2015 Andrew Vaught
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# 2... | bsd-2-clause | -4,133,121,555,676,565,500 | 21.121599 | 80 | 0.554642 | false | 3.503232 | false | false | false |
luoyetx/mxnet | python/mxnet/optimizer.py | 1 | 58574 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | 7,488,442,777,190,059,000 | 37.560895 | 129 | 0.600761 | false | 4.029859 | false | false | false |
christopherbugg/python-scripts | seer2.py | 1 | 5183 | # seer2.py
# python 3.5
# Simple demo of super-basic neural-network weather prediction.
# This version is re-written and very cleaned-up.
# Chris Bugg
# Created: 2/1/15
# Updated: 3/23/17
# TODO: Add other things to track
# TODO: Add API to fetch WX data
# TODO: Create dynamic version
import ran... | mit | 8,330,008,287,202,172,000 | 31.803797 | 102 | 0.626278 | false | 3.642305 | false | false | false |
CityOfPhiladelphia/curbside-geocoder | addrparse/addrparse.py | 1 | 25333 | """
Philadelphia Address Stanardizer
Author: Tom Swanson
Created: 8/25/2014
Last Updated: 10/10/2014
Version: 1.0
"""
import csv, sys, os, time, math, re
from datetime import datetime
'''
CLASS DEFINITIONS
'''
class suffix:
def __init__(self, row):
# 0 - not a suffix
# 1 - standard s... | mit | 6,505,887,107,445,061,000 | 26.124197 | 161 | 0.512888 | false | 3.379085 | true | false | false |
bootchk/pensool | source/gui/manager/handle.py | 1 | 1810 | '''
Handle manager: ensure only one handle set is active.
HandleSet's are not in the model.
An active HandleSet is in the scheme and is drawn.
Generally Handle's draw on top of the morphs they handle.
However, it may be drawn invisibly !!!
E.G. points may be hidden by lines they handle.
E.G. style of handles may be ... | gpl-3.0 | -6,679,037,786,650,404,000 | 26.424242 | 69 | 0.725967 | false | 3.701431 | false | false | false |
iansealy/projecteuler | 84.py | 1 | 2842 | #!/usr/bin/env python
"""This script solves the Project Euler problem "Monopoly odds". The problem
is: If, instead of using two 6-sided dice, two 4-sided dice are used, find the
six-digit modal string.
"""
import argparse
import random
def main(args):
"""Monopoly odds"""
# Constants
SQUARES = 40
CC... | gpl-3.0 | 2,292,069,235,790,237,200 | 21.377953 | 78 | 0.446868 | false | 3.285549 | false | false | false |
rytis/miniREST | miniREST/client.py | 1 | 2807 | import httplib
import base64
import string
class RESTResource(object):
def __init__(self):
self.status = None
self.reason = None
self.raw_data = None
class RESTClient(object):
"""
Simple interface to the REST web services. Supports 'GET', 'PUT', 'POST' and 'DELETE' methods.
T... | apache-2.0 | -6,613,027,225,643,095,000 | 36.426667 | 98 | 0.582829 | false | 4.015737 | false | false | false |
asobolev/nix4nest | nix4nest/nix/weightstack.py | 1 | 2862 | from __future__ import absolute_import
from .nixbase import NixBase
import numpy as np
class WeightStack(NixBase):
def __init__(self, nix_object):
super(WeightStack, self).__init__(nix_object)
self._sources = []
self._targets = []
@property
def data(self):
return self._ni... | lgpl-3.0 | 6,535,918,130,691,322,000 | 31.168539 | 78 | 0.579315 | false | 4.141823 | false | false | false |
peace098beat/pyside_cookbook | 02_waveviewer/player.py | 1 | 2266 | import sys
import time
import threading
import pyaudio
class Player(object):
def __init__(self, buffer, chunk_size=None, rate=None, live=None):
self.rate = rate
self.buffer_size = buffer.size / 2
assert chunk_size < self.buffer_size
assert buffer.dtype == np.float32
self.buf... | gpl-3.0 | -2,657,807,977,204,051,500 | 29.213333 | 107 | 0.579435 | false | 3.417798 | false | false | false |
snowflakedb/snowflake-sqlalchemy | __init__.py | 1 | 1780 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2019 Snowflake Computing Inc. All right reserved.
#
from sqlalchemy.types import (
BIGINT,
BINARY,
BOOLEAN,
CHAR,
DATE,
DATETIME,
DECIMAL,
FLOAT,
INT,
INTEGER,
REAL,
SMALLINT,
TIME,
TIMESTAMP,
... | apache-2.0 | 660,336,489,725,363,600 | 15.036036 | 70 | 0.580337 | false | 3.364839 | false | false | false |
thomasdeniau/pyfauxfur | MorphogenesisImageData.py | 1 | 6397 | #!/usr/bin/env python
# encoding: utf-8
"""
Texture.py
Created by Olivier Le Floch on 2009-03-17.
Program written by Thomas Deniau and Olivier Le Floch.
Copyright (c) 2009. All rights reserved.
Portions of this code have been adapted from pygarrayimage :
http://pypi.python.org/pypi/pygarrayimage/0.0.5
http://code... | bsd-3-clause | 8,239,596,433,584,164,000 | 27.057018 | 116 | 0.540097 | false | 2.926349 | true | false | false |
miquelo/caviar | testsuite/unit/caviar/domain/node.py | 1 | 1309 | #
# This file is part of CAVIAR.
#
# CAVIAR 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.
#
# CAVIAR is distributed in the hope that ... | gpl-3.0 | -3,383,967,835,002,881,000 | 25.18 | 70 | 0.748663 | false | 3.453826 | true | false | false |
Storj/downstream-farmer | tests/test_unit.py | 1 | 48524 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import unittest
import base58
import binascii
from argparse import Namespace, HelpFormatter
import json
import threading
from six.moves.urllib.error import URLError
import mock
from datetime import datetime, timedelta
from downstream_farmer import ut... | mit | -470,276,516,766,062,660 | 38.904605 | 79 | 0.578374 | false | 3.914173 | true | false | false |
PMR2/pmr2.oauth | pmr2/oauth/interfaces.py | 1 | 12747 | import zope.interface
import zope.schema
# XXX exceptions from upstream
from oauthlib.oauth1.rfc5849.errors import OAuth1Error
from pmr2.oauth import MessageFactory as _
class KeyExistsError(KeyError):
__doc__ = "key exists error"
class BaseInvalidError(KeyError):
__doc__ = "base invalid error."
class T... | gpl-2.0 | -4,668,294,694,185,866,000 | 23.560694 | 79 | 0.593787 | false | 4.642025 | false | false | false |
RianFuro/vint | vint/linting/formatter/formatter.py | 1 | 2751 | from pathlib import Path
from ansicolor import Colors, colorize
DEFAULT_FORMAT = '{file_path}:{line_number}:{column_number}: {description} (see {reference})'
FORMAT_COLOR_MAP = {
'file_path': Colors.Red,
'file_name': Colors.Red,
'line_number': Colors.White,
'column_number': Colors.White,
'severit... | mit | -2,305,773,993,742,480,000 | 31.364706 | 93 | 0.588513 | false | 3.975434 | false | false | false |
manashmndl/LearningPyQt | LatexTest/LatexTest/LatexTest.py | 1 | 4860 | import sys
import matplotlib as mpl
from matplotlib.backends.backend_agg import FigureCanvasAgg
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import *
from PyQt4.QtGui import *
def mathTex_to_QPixmap(mathTex, fs):
#---- set up a mpl figure instance ----
fig = mpl.figure.Figure()
fig.patch.set_facec... | mit | -8,854,713,075,863,133,000 | 26.308989 | 78 | 0.574074 | false | 3.451705 | false | false | false |
pkuzc/convex_optimization | ADMM_method.py | 1 | 5123 | class ADMM_method():
import numpy as np
def __init__(self, A, b, mu, init_iteration, max_iteration, tol):
self.A = A
self.AT = self.A.T
self.b = b
self.m, self.n = self.A.shape
self.mu = mu
self.init_iteration = init_iteration
self.max_iteration = max_iteration
self.tol = tol
self.AAT = np.dot(self... | gpl-3.0 | -2,735,227,852,902,892,500 | 29.319527 | 88 | 0.595354 | false | 2.32441 | false | false | false |
GillesArcas/numsed | numsed/sedcode.py | 1 | 27872 | """
Generation of sed code for numsed.
"""
from __future__ import print_function
import re
import subprocess
try:
import common
import opcoder
except:
from . import common
from . import opcoder
class SedConversion(common.NumsedConversion):
def __init__(self, source, transformation):
com... | mit | 4,287,439,202,949,444,600 | 26.487179 | 118 | 0.355446 | false | 3.362934 | false | false | false |
olegartys/LabVariant | LabVariant.py | 1 | 2432 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# LabVariant.py
#
# Copyright 2014 olegartys <olegartys@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of ... | gpl-3.0 | -3,682,123,395,968,886,300 | 29.481013 | 73 | 0.667359 | false | 3.044248 | false | false | false |
ProgVal/irctest | irctest/patma.py | 1 | 4368 | """Pattern-matching utilities"""
import dataclasses
import re
from typing import Dict, List, Optional, Union
class Operator:
"""Used as a wildcards and operators when matching message arguments
(see assertMessageMatch and match_list)"""
def __init__(self) -> None:
pass
class AnyStr(Operator):
... | mit | 2,884,978,005,842,988,500 | 27.927152 | 83 | 0.639423 | false | 3.967302 | false | false | false |
gnulinooks/sympy | sympy/geometry/util.py | 1 | 4540 |
def intersection(*entities):
"""
Finds the intersection between a list GeometryEntity instances. Returns a
list of all the intersections, Will raise a NotImplementedError exception
if unable to calculate the intersection.
Examples:
=========
>>> from sympy.geometry import *
>>>... | bsd-3-clause | -745,098,334,515,555,700 | 28.102564 | 90 | 0.50837 | false | 3.338235 | false | false | false |
NixaSoftware/CVis | venv/lib/python2.7/site-packages/pandas/core/generic.py | 1 | 265103 | # pylint: disable=W0231,E1101
import collections
import warnings
import operator
import weakref
import gc
import json
import numpy as np
import pandas as pd
from pandas._libs import tslib, lib, properties
from pandas.core.dtypes.common import (
_ensure_int64,
_ensure_object,
is_scalar,
is_number,
... | apache-2.0 | -3,662,178,750,696,111,000 | 35.245967 | 102 | 0.523868 | false | 4.354517 | false | false | false |
jasondunsmore/heat | heat/tests/test_rpc_client.py | 1 | 16456 | #
# Copyright 2012, Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | -411,708,305,636,292,000 | 39.833747 | 79 | 0.521451 | false | 4.181957 | true | false | false |
TravisCouture/GtManipulator | gtmanipulator/gtmanipulator_tests/test.py | 1 | 2058 | import unittest
import os
import pandas as pd
import sys
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
if FILE_DIR + "/../" not in sys.path:
sys.path.append(FILE_DIR + "/../")
import gtmanipulator as gt
class GtClassTestCase(unittest.TestCase):
def test_summarize(self):
test_data = gt.GtMani... | mit | -7,867,534,457,927,676,000 | 42.787234 | 99 | 0.587949 | false | 3.505963 | true | false | false |
dombrno/PG | Tests/test_dos.py | 1 | 1817 | import numpy as np
import sys
from os.path import expanduser
HOME = expanduser("~")
if "storage" in HOME:
HOME = "/storage/home/geffroy"
sys.path.append(HOME + "/Code/PG/Source")
from phase_fluctuations import SWaveModel
from MCMC import MCMCDriver
# pylint: disable=E1101
T_CST = 0.25
TARGET_SNAPSHOTS = 6
MC_INTE... | bsd-2-clause | 2,669,809,737,027,920,000 | 32.036364 | 74 | 0.653825 | false | 2.959283 | false | false | false |
Ignalion/bookshelf | app/endpoints/register.py | 1 | 1115 | """
Registering user into our system. Now we'll be watching you.
"""
from flask import render_template, request, redirect, url_for, views
from flask_login import current_user
from app.forms import RegisterForm
from app.lib.abstract import UserAbstraction
class RegisterView(views.View):
""" Register user with dat... | gpl-2.0 | -3,281,259,100,706,968,600 | 31.794118 | 77 | 0.569507 | false | 4.645833 | false | false | false |
renefs87/project-payment-manager | app/djmoney/models/managers.py | 1 | 2679 | try:
from django.utils.encoding import smart_unicode
except ImportError:
# Python 3
from django.utils.encoding import smart_text as smart_unicode
from djmoney.utils import get_currency_field_name
def _expand_money_params(kwargs):
from moneyed import Money
try:
from django.db.models.consta... | gpl-3.0 | -2,300,557,047,475,128,600 | 29.793103 | 91 | 0.630086 | false | 3.838109 | false | false | false |
pdellaert/vspk-examples | python/vm_policies_overview.py | 1 | 21818 | # -*- coding: utf-8 -*-
"""
vm_policies_overview.py is a tool to display the policies that are applied
to one or more VMs.
The script will try and be intelligent and change the Ether type and Protocols
to human readable text.
The script will not touch null or None values, because there is a difference
between None... | bsd-3-clause | 6,962,605,574,775,154,000 | 38.030411 | 268 | 0.586305 | false | 3.539585 | true | false | false |
offlinehacker/flumotion | flumotion/component/bouncers/icalbouncer.py | 1 | 1286 | # -*- Mode: Python; test-case-name: flumotion.test.test_icalbouncer -*-
# vi:si:et:sw=4:sts=4:ts=4
#
# Flumotion - a streaming media server
# Copyright (C) 2004,2005,2006,2007 Fluendo, S.L. (www.fluendo.com).
# All rights reserved.
# This file may be distributed and/or modified under the terms of
# the GNU General Pu... | gpl-2.0 | 1,143,490,352,990,887,400 | 35.742857 | 74 | 0.775272 | false | 3.61236 | false | false | false |
kidaa/pySDC | examples/fenics_grayscott/playground.py | 1 | 2625 |
from pySDC import CollocationClasses as collclass
from examples.fenics_grayscott.ProblemClass import fenics_grayscott
from pySDC.datatype_classes.fenics_mesh import fenics_mesh
from examples.fenics_grayscott.TransferClass import mesh_to_mesh_fenics
from examples.fenics_grayscott.HookClass import fenics_output
from py... | bsd-2-clause | 7,235,849,777,505,713,000 | 28.494382 | 74 | 0.663619 | false | 3.099174 | false | false | false |
tensorflow/neural-structured-learning | research/gam/gam/models/gcn.py | 1 | 12450 | # Copyright 2019 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -7,927,998,227,653,839,000 | 35.086957 | 90 | 0.658233 | false | 4.26078 | false | false | false |
google/struct2tensor | struct2tensor/expression_impl/promote_test.py | 1 | 23374 | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 8,708,046,950,446,265,000 | 43.185255 | 95 | 0.685634 | false | 3.356886 | true | false | false |
plotly/plotly.py | packages/python/plotly/plotly/basewidget.py | 1 | 34379 | import uuid
from importlib import import_module
import os
import numbers
try:
from urllib import parse
except ImportError:
from urlparse import urlparse as parse
import ipywidgets as widgets
from traitlets import List, Unicode, Dict, observe, Integer
from .basedatatypes import BaseFigure, BasePlotlyType
from ... | mit | 7,837,312,327,912,698,000 | 33.796559 | 88 | 0.536345 | false | 4.388995 | false | false | false |
Wopple/Mage | incint.py | 1 | 2535 | # Copyright 2009 Christopher Czyzewski
# This file is part of Project Mage.
#
# Project Mage 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) a... | gpl-3.0 | 7,574,381,157,889,218,000 | 30.296296 | 104 | 0.577515 | false | 4.036624 | false | false | false |
feedzilla/feedzilla | feedzilla/migrations/0004_auto__chg_field_feed_feed_url__chg_field_feed_site_url__add_index_feed.py | 1 | 4987 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Feed.feed_url'
db.alter_column(u'feedzilla_feed', 'feed_url', self.gf('django.db.models.f... | bsd-3-clause | 3,697,462,035,953,831,400 | 58.369048 | 132 | 0.553639 | false | 3.577475 | false | false | false |
amacd31/hydromet_graph | setup.py | 1 | 1471 | import os
from io import open
import versioneer
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = ''.join([
line for line in f.readlines() if 'travis-ci' not in line
])
setup(
... | bsd-3-clause | -5,858,002,106,514,230,000 | 33.209302 | 82 | 0.626785 | false | 3.98645 | false | false | false |
hbprotoss/weii | app/theme_manager.py | 1 | 1546 | #coding=utf-8
import os
from app import constant
from app import misc
INFO = 'Info'
SKIN = 'Skin'
ICON = 'Icon'
THEME_CONFIG = 'conf.ini'
class Theme():
params = {}
path = ''
# Internal
def __loadTheme( theme_name = 'default' ):
'''
@param theme_name: The name of theme
@return: widget.... | mit | 3,204,480,994,669,589,500 | 26.140351 | 111 | 0.639715 | false | 3.043307 | false | false | false |
0rmi/tyggbot | models/emote.py | 1 | 4022 | import logging
from collections import UserDict
import pymysql
import re
log = logging.getLogger('tyggbot')
class Emote:
def __init__(self):
self.id = -1 # An ID of -1 means the emote will be inserted on sync
self.emote_id = None
self.code = None # This value will be inserted when the u... | mit | 5,339,142,539,287,830,000 | 27.524823 | 119 | 0.533814 | false | 3.613657 | false | false | false |
anaderi/lhcb_trigger_ml | assets/paperdraft/graphs/plottheilvssde.py | 1 | 1916 | import os,sys
import ROOT
from ROOT import *
from math import *
from array import *
filestoplot = { 'mse peak' : {'filename' : 'mse1.txt', 'colour' : 1, 'marker' : 20},
'mse pit' : {'filename' : 'mse2.txt', 'colour' : 2, 'marker' : 21},
'theil peak' : {'filename' : 'theil1.txt', 'colour... | mit | 294,535,963,766,876,400 | 32.034483 | 91 | 0.648747 | false | 2.776812 | false | false | false |
sdsingh/e-mission-server | CFC_WebApp/main/featurecalc.py | 1 | 15622 | from __future__ import division
import math
import logging
import numpy as np
from pymongo import MongoClient
import utm
from sklearn.cluster import DBSCAN
from get_database import get_routeCluster_db,get_transit_db
from uuid import UUID
from route_matching import getRoute,fullMatchDistance,matchTransitRoutes,matchTran... | bsd-3-clause | -4,801,782,847,972,583,000 | 35.24594 | 140 | 0.611701 | false | 3.367536 | false | false | false |
AntagonistHQ/openprovider.py | openprovider/modules/ssl.py | 1 | 5835 | # coding=utf-8
from openprovider.modules import E, OE, common
from openprovider.models import SSLProduct, SSLOrder
def _domain_validation_methods(methods):
if not methods:
return None
items = [E.item(E.hostName(hostname), E.method(method)) for hostname, method in methods.items()]
return E.array(... | mit | -8,379,871,851,793,526,000 | 33.122807 | 107 | 0.61868 | false | 4.038062 | false | false | false |
hickerson/bbn | fable/fable_sources/libtbx/easy_run.py | 1 | 14678 | from __future__ import division
import sys
# XXX how early a version can we get away with using the built-in module?
if (sys.version_info[1] >= 7) :
import subprocess
else :
try:
from libtbx import subprocess_with_fixes as subprocess
except ImportError:
try :
import subprocess_with_fixes as subproce... | mit | -5,819,637,000,614,003,000 | 34.283654 | 78 | 0.630127 | false | 3.370379 | false | false | false |
charlyoleg/Cnc25D | cnc25d/export_2d.py | 1 | 8072 | # export_2d.py
# functions to help to generate 2D dxf and svg plan.
# created by charlyoleg on 2013/05/31
#
# (C) Copyright 2013 charlyoleg
#
# This file is part of the Cnc25D Python package.
#
# Cnc25D is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | gpl-3.0 | 1,595,689,253,068,316,200 | 43.596685 | 161 | 0.637141 | false | 2.841253 | false | false | false |
matthiasdiener/spack | var/spack/repos/builtin/packages/openspeedshop-utils/package.py | 1 | 14855 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | -6,906,376,639,101,847,000 | 41.809798 | 81 | 0.618243 | false | 3.51182 | false | false | false |
khshim/lemontree | example/cifar10_dcgan.py | 1 | 9153 | import os
import time
import numpy as np
import theano
import theano.tensor as T
import scipy.misc
from theano.sandbox.rng_mrg import MRG_RandomStreams as MRG
from lemontree.data.cifar10 import CIFAR10
from lemontree.graphs.graph import SimpleGraph
from lemontree.generators.generator import SimpleGenerator
from lemont... | mit | -5,900,204,018,850,788,000 | 38.973799 | 113 | 0.661313 | false | 2.998035 | false | false | false |
DistrictDataLabs/logbook | catalog/management/commands/ingest.py | 1 | 1998 | # catalog.management.commands.ingest
# Ingest utility to grab data from a CSV file and insert into database.
#
# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created: Sun Aug 23 21:18:54 2015 -0500
#
# Copyright (C) 2015 District Data Labs
# For license information, see LICENSE.txt
#
# ID: ingest.py ... | apache-2.0 | 5,288,172,935,344,302,000 | 30.21875 | 89 | 0.537538 | false | 4.701176 | false | false | false |
seishei/multiprocess | py3.3/multiprocess/util.py | 2 | 9911 | #
# Module providing various facilities to other parts of the package
#
# multiprocessing/util.py
#
# Copyright (c) 2006-2008, R Oudkerk
# Licensed to PSF under a Contributor Agreement.
#
import sys
import functools
import os
import itertools
import weakref
import atexit
import threading # we want threading to ... | bsd-3-clause | -5,292,359,313,021,024,000 | 28.409496 | 79 | 0.598325 | false | 4.152074 | false | false | false |
mganeva/mantid | Testing/Tools/cxxtest/python/setup.py | 1 | 1938 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
"""
Script to generate the installer for cxxt... | gpl-3.0 | 754,705,326,739,626,200 | 27.925373 | 68 | 0.648091 | false | 3.691429 | true | false | false |
nakagami/reportlab | demos/colors/colortest.py | 1 | 2772 | #Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
__version__='''$Id: colortest.py 3959 2012-09-27 14:39:39Z robin $'''
import reportlab.pdfgen.canvas
from reportlab.lib import colors
from reportlab.lib.units import inch
def run():
c = reportlab.pdfgen.canvas.Canvas('colortest.pdf')
... | bsd-3-clause | -1,089,536,343,542,370,600 | 25.4 | 81 | 0.603896 | false | 2.74184 | false | false | false |
lyapandra/python-course-SG | hw_001_01.py | 1 | 4683 | # Списки
# Заповнити код приведених нижче функцій. Функція main() вже
# налаштована для виклику функцій з декількома різними
# параметрами, і виводить 'OK' у випадку, якщо виклик функції
# коректний.
# Початковий код кожної функції містить 'return'
# і є просто заготовкою для вашого коду.
# A. Початок і кінець співв... | gpl-3.0 | 890,874,095,567,146,200 | 31.68932 | 85 | 0.609148 | false | 1.585963 | true | false | false |
gabrielelanaro/chemview | chemview/gg.py | 1 | 15416 | """GGplot like interface"""
import uuid
import matplotlib as mpl
import matplotlib.cm as cm
import numpy as np
from IPython.display import Image, display
from .utils import get_atom_color
from .widget import RepresentationViewer, TrajectoryControls
class AttrDict(dict):
def __init__(self, *args, **kwargs):
... | lgpl-2.1 | 3,892,482,831,021,735,400 | 31.8 | 98 | 0.534315 | false | 3.653946 | false | false | false |
ckolumbus/mikidown | mikidown/mikibook.py | 1 | 9402 | """
Notebook management module.
"""
import os
from PyQt4.QtCore import Qt, QDir, QFile, QSettings, QSize
from PyQt4.QtGui import (QAbstractItemDelegate, QAbstractItemView, QColor, QDialog, QDialogButtonBox, QFileDialog, QFont, QGridLayout, QLabel, QLineEdit, QListWidget, QListWidgetItem, QPen, QPushButton, QStyle)
i... | mit | -3,307,863,633,545,682,000 | 35.726563 | 210 | 0.618379 | false | 3.864365 | false | false | false |
django-girls/best-blog-in-the-world | blog/migrations/0001_initial.py | 1 | 1051 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-16 20:40
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | mit | 6,504,924,610,036,035,000 | 32.903226 | 120 | 0.624167 | false | 4.220884 | false | false | false |
amasiero/approach_control | approach_control_manipulator/nodes/approach_control_manipulator/GoTo.py | 1 | 6869 | #!/usr/bin/env python
import smach
import rospy
import math
import numpy as np
from std_msgs.msg import Float64
from dynamixel_msgs.msg import JointState
from dynamixel_controllers.srv import SetSpeed
from approach_control_manipulator.utils.arm_mod import Arm3Link
class GoTo(smach.State):
def __init__(self):
... | gpl-2.0 | -2,624,966,592,184,134,000 | 44.197368 | 125 | 0.575921 | false | 3.358924 | false | false | false |
pielco11/SSMA | ssma.py | 1 | 28667 | #!/usr/bin/env python3
"""
@author: Lasha Khasaia
@license: GNU General Public License 3.0
@contact: @_qaz_qaz
@Description: SSMA - Simple Static Malware Analyzer
"""
import argparse, os, json
import shutil, magic, uuid
import hashlib, contextlib
from elasticsearch import Elasticsearch
from src impo... | gpl-3.0 | -1,196,994,951,961,589,500 | 41.4003 | 279 | 0.431526 | false | 4.648422 | false | false | false |
davidsandberg/facenet | src/generative/modify_attribute.py | 1 | 6129 | # MIT License
#
# Copyright (c) 2017 David Sandberg
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, me... | mit | -569,988,245,719,070,850 | 42.161972 | 145 | 0.658182 | false | 3.771692 | false | false | false |
nttks/jenkins-test | common/lib/xmodule/xmodule/tabs.py | 1 | 35344 | """
Implement CourseTab
"""
# pylint: disable=incomplete-protocol
# Note: pylint complains that we do not implement __delitem__ and __len__, although we implement __setitem__
# and __getitem__. However, the former two do not apply to the CourseTab class so we do not implement them.
# The reason we implement the latter... | agpl-3.0 | -3,983,259,697,770,877,000 | 33.856016 | 135 | 0.610627 | false | 4.094532 | false | false | false |
tellesnobrega/storm_plugin | sahara/utils/openstack/keystone.py | 1 | 2752 | # Copyright (c) 2013 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 | 2,405,071,615,818,163,000 | 34.282051 | 78 | 0.597384 | false | 4.233846 | false | false | false |
imapp-pl/golem | gnr/customizers/verificationparamshelper.py | 1 | 3687 | import logging
from PyQt4 import QtCore
from gnr.renderingtaskstate import AdvanceRenderingVerificationOptions
logger = logging.getLogger("gnr.gui")
def read_advance_verification_params(gui, definition):
if gui.ui.advanceVerificationCheckBox.isChecked():
definition.verification_options = Advan... | gpl-3.0 | 4,630,212,197,850,335,000 | 51.463768 | 143 | 0.721183 | false | 4.529484 | false | false | false |
lkundrak/scraperwiki | web/frontend/features/common_steps.py | 1 | 2716 | from lettuce import step,before,world,after
from lettuce.django import django_url
from django.contrib.auth.models import User
from frontend.models import UserProfile, Feature
# Steps used in more than one feature's steps file
# Features
@step(u'(?:Given|And) the "([^"]*)" feature exists')
def and_the_feature_exists(st... | agpl-3.0 | 3,858,872,102,019,335,000 | 33.820513 | 79 | 0.657585 | false | 3.20283 | false | false | false |
tcpcloud/openvstorage | ovs/extensions/generic/remote.py | 1 | 3482 | # Copyright 2015 Open vStorage NV
#
# 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 writ... | apache-2.0 | -5,086,218,736,596,162,000 | 40.452381 | 184 | 0.657094 | false | 4.091657 | false | false | false |
Differlong/MyScripts | 美女图片展示.py | 1 | 2409 | """
import glob
import os
import time
picPathes = (path for path in glob.glob(r"F:/美图录/*/*.jpg"))
for pic in picPathes:
os.popen(pic)
time.sleep(3)
#体验不好的第一点是背景音乐太正了,应该去找AV里面的背景音乐;第二点是看到不想看的人可以跳过,这样就很好。这样怎么做呢?
"""
import time
import glob
import random
import os
from selenium import webdriver
chromedriver... | mit | 5,832,949,411,809,063,000 | 17.974576 | 87 | 0.641804 | false | 2.874198 | false | false | false |
PermutaTriangle/Permuta | permuta/permutils/insertion_encodable.py | 1 | 3371 | from itertools import islice
from typing import ClassVar, Dict, Iterable, Tuple
from permuta.patterns.perm import Perm
class InsertionEncodablePerms:
"""A static container of functions fortesting
if a basis has a regular insertion encoding.
"""
_ALL_PROPERTIES: ClassVar[int] = 15
_CACHE: ClassVa... | bsd-3-clause | -6,580,096,283,389,824,000 | 35.641304 | 87 | 0.57342 | false | 3.712555 | false | false | false |
shekhargulati/localjobs-python | app/views.py | 1 | 3398 | from app import app , db , login_manager
from flask import render_template , request , flash , redirect , url_for ,g , jsonify
from models import Users
from flask.ext.login import login_user , logout_user , current_user , login_required
from bson.objectid import ObjectId
import json
from bson import json_util
@app.rou... | mit | 5,328,970,205,927,970,000 | 34.041237 | 140 | 0.699823 | false | 3.077899 | false | false | false |
zed-ee/grader-simulator | 1GraderSimulator.py | 1 | 64887 | # -*- coding: utf-8 -*-
from pandac.PandaModules import loadPrcFileData
JOYSTICK_WHEEL = 0
JOYSTICK_STICKS = 1
BUTTON_FORWARD = 1
BUTTON_BACKWARD = 10
BUTTON_START = 3
BUTTON_HORN = 2
BUTTON_WINTER = 10
BUTTON_CAM_LEFT = 0
BUTTON_CAM_RIGHT = 7
BUTTON_RESET = 7
AXIS_STEERINGWHEEL = 0
AXIS_ACCELERATE = 2
AXIS_BRAKE = 1
... | mit | -415,815,451,109,733,500 | 42.000663 | 147 | 0.518733 | false | 3.619109 | false | false | false |
scharch/SOAnAR | mGSSP/5.4-compare_profiles.py | 1 | 3518 | #!/usr/bin/env python3
'''
5.4-compare_profiles.py
This script reads in GSSPs constructed by 5.2-make_profiles.py and calculates
the matrix of Jensen-Shannon divergences between all GSSPs, the rarity
of each substitution observed in each GSSP, and the Shannon entropy of
the subsitutions observed at ... | gpl-3.0 | 3,715,301,078,919,269,000 | 31.878505 | 103 | 0.691586 | false | 3.177958 | false | false | false |
rustychris/stomel | src/live_dt.py | 1 | 81184 | # Maintain a live constrained delaunay triangulation of the grid.
# designed as a mixin
import traceback
import sys
import pdb
import orthomaker,trigrid
from collections import Iterable
import numpy as np
class MissingConstraint(Exception):
pass
def distance_left_of_line(pnt, qp1, qp2):
# return the signed ... | gpl-2.0 | 7,978,895,844,134,759,000 | 41.239334 | 133 | 0.48055 | false | 4.184958 | false | false | false |
janezkranjc/clowdflows | gdpr/migrations/0001_initial.py | 2 | 4770 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'GDPRProfile'
db.create_table('gdpr_gdprprofile', (
('id', self.gf('django.db.mod... | gpl-3.0 | -6,109,719,187,834,653,000 | 63.472973 | 182 | 0.567296 | false | 3.729476 | false | false | false |
kgblll/libresoft-gymkhana | apps/semanticSearch/urls.py | 2 | 1388 | #
# Copyright (C) 2009 GSyC/LibreSoft
#
# 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 License, or
# (at your option) any later version.
#
# This ... | gpl-2.0 | -3,967,316,095,379,997,000 | 43.774194 | 171 | 0.724063 | false | 3.522843 | false | false | false |
shuvozula/crazyflie-clients-python | lib/cflib/crazyflie/mem.py | 1 | 24546 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 20... | gpl-2.0 | -7,623,506,746,200,751,000 | 36.417683 | 113 | 0.543673 | false | 3.867948 | false | false | false |
nwiizo/workspace_2017 | environmental/mininet/examples/bind.py | 1 | 2310 | #!/usr/bin/python
"""
bind.py: Bind mount example
This creates hosts with private directories that the user specifies.
These hosts may have persistent directories that will be available
across multiple mininet session, or temporary directories that will
only last for one mininet session. To specify a persistent
direc... | mit | 4,247,840,918,116,562,400 | 33.477612 | 69 | 0.693939 | false | 3.915254 | false | false | false |
christianheinrichs/learning-abop | chapter-13/backup_ver4.py | 1 | 1724 | #!/usr/bin/env python2
import os
import time
# 1. The files and directories to be backed up are specified in a list.
# Example on Windows:
# source = ['"C:\\My Documents"', 'C:\\Code']
# Example on Mac OS X and Linux:
source = ['/Users/swa/notes']
# Notice we had to use double quotes inside the string
# for names wit... | gpl-3.0 | 2,480,055,453,355,750,000 | 29.785714 | 75 | 0.682135 | false | 3.400394 | false | false | false |
b3ngmann/gratia-sensei | lci/settings.py | 1 | 4337 | """
Django settings for lci project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import... | mit | -5,906,864,589,107,685,000 | 22.966851 | 92 | 0.688033 | false | 3.256006 | false | false | false |
dhongu/l10n-romania | l10n_ro_account_report/report/activity_statement.py | 1 | 12059 | # Copyright 2018 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models, _
from collections import defaultdict
from datetime import datetime, timedelta
from odoo.tools.misc import DEFAULT_S... | agpl-3.0 | 2,818,139,441,633,559,600 | 43.172161 | 117 | 0.533212 | false | 3.83434 | false | false | false |
mirusresearch/staticdhcpd | staticDHCPd/staticdhcpdlib/web/__init__.py | 1 | 11143 | # -*- encoding: utf-8 -*-
"""
staticdhcpdlib.web
==================
Defines web-registration methods and structures.
Legal
-----
This file is part of staticDHCPd.
staticDHCPd 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 ... | gpl-3.0 | -6,151,364,820,245,189,000 | 37.164384 | 155 | 0.60612 | false | 4.715616 | false | false | false |
caioariede/openimob | dashboard/migrations/0001_initial.py | 1 | 3192 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import taggit.managers
from django.conf import settings
import wagtail.wagtailadmin.taggable
import wagtail.wagtailimages.models
class Migration(migrations.Migration):
dependencies = [
('taggit', '00... | bsd-3-clause | -2,819,622,076,555,435,000 | 53.101695 | 163 | 0.614975 | false | 4.2 | false | false | false |
lubosz/periphilia | src/application.py | 1 | 2294 | #!/usr/bin/python3
from IPython import embed
from gi.repository import Gst
from gi.repository import Gtk
import subprocess
from gi.repository.Gtk import Stack, StackTransitionType
from gi.repository import Gtk, Gio, GLib, Gdk, Notify
from .window import Window
class Application(Gtk.Application):
def __init__(self... | gpl-3.0 | -2,480,795,425,693,209,600 | 31.309859 | 71 | 0.62816 | false | 3.823333 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.