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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
jessamynsmith/fontbakery | bakery_cli/pipe/copy.py | 1 | 7851 | # coding: utf-8
# Copyright 2013 The Font Bakery Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | apache-2.0 | -2,528,072,127,931,410,000 | 32.126582 | 91 | 0.567698 | false | 4.036504 | false | false | false |
AstroFloyd/LearningPython | Fitting/scipy.optimize.least_squares.py | 1 | 2724 | #!/bin/env python3
# https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.least_squares.html
"""Solve a curve fitting problem using robust loss function to take care of outliers in the data. Define the
model function as y = a + b * exp(c * t), where t is a predictor variable, y is an observation and a,... | gpl-3.0 | 941,937,446,783,417,300 | 27.673684 | 110 | 0.659692 | false | 2.873418 | false | false | false |
zapbot/zap-mgmt-scripts | vulnerableApp/vulnerableApp_spider_scan.py | 1 | 2701 | #!/usr/bin/env python
import time, sys, getopt
from pprint import pprint
from zapv2 import ZAPv2
def main(argv):
# -------------------------------------------------------------------------
# Default Configurations - use -z/-zap and -w/-vulnerableApp for different IP addrs
# ----------------------------... | apache-2.0 | -2,391,996,777,327,397,000 | 29.348315 | 107 | 0.557201 | false | 3.423321 | false | false | false |
CLVsol/odoo_api | clv_abcfarma.py | 1 | 22488 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
#
# Copyright (C) 2013-Today Carlos Eduardo Vercelino - CLVsol
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public Lic... | agpl-3.0 | 5,908,939,874,946,096,000 | 35.329564 | 84 | 0.571861 | false | 2.908809 | false | false | false |
Read-Lab-Confederation/nyc-subway-anthrax-study | data/01-accessing-data-and-controls/extract-pathogens.py | 1 | 2526 | #! /usr/bin/env python
"""
Read supplementary table and extract pathogens.
sys.argv[1]: data/DataTable5-metaphlan-metadata_v19.txt
Extract the sample id and the columns which pertain to yersinia and
anthracis.
"""
def split_header(header):
"""
Some headers are really long, return only the last portion.
... | mit | -1,774,640,699,900,862,000 | 32.236842 | 138 | 0.591449 | false | 3.161452 | false | false | false |
zozo123/buildbot | master/buildbot/util/maildir.py | 1 | 6077 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-3.0 | 4,488,689,082,321,069,000 | 40.623288 | 94 | 0.631562 | false | 4.15948 | false | false | false |
makersauce/web-laser | src/sender.py | 1 | 2239 | #!/usr/bin/env python
import serial
import re
import time
import sys
import argparse
# import threading
RX_BUFFER_SIZE = 128
def send(job=None,sname='/dev/ttyACM0'):
if job == None:
yield 'Invalid Job'
try:
s = serial.Serial(sname,9600)
except Exception, e:
yield str(e).spl... | mit | -3,086,171,208,495,925,000 | 27.705128 | 108 | 0.531487 | false | 3.617124 | false | false | false |
thatguystone/verbinator | word.py | 1 | 28502 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2010 Andrew Stone
#
# This file is part of of Verbinator.
#
# Verbinator 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... | gpl-3.0 | -4,460,666,863,429,533,700 | 26.600388 | 150 | 0.61748 | false | 2.834828 | false | false | false |
bonzini/rube-gmail | py/gmail-filters.py | 1 | 11406 | # gmail-filters.py
#
# Uses the GMail API to remotely manipulate filters for
# mailing lists and the corresponding labels.
#
# Author: Paolo Bonzini <pbonzini@redhat.com>
# License: AGPLv3
from __future__ import print_function
import httplib2
import os, sys, io
import argparse, copy
import mailbox
try:
from googl... | agpl-3.0 | -3,171,581,649,152,842,000 | 43.905512 | 133 | 0.576889 | false | 4.322092 | false | false | false |
dials/dials | algorithms/shadowing/filter.py | 1 | 1446 | def filter_shadowed_reflections(experiments, reflections, experiment_goniometer=False):
from dxtbx.masking import is_inside_polygon
from scitbx.array_family import flex
shadowed = flex.bool(reflections.size(), False)
for expt_id in range(len(experiments)):
expt = experiments[expt_id]
im... | bsd-3-clause | -5,117,904,831,205,807,000 | 40.314286 | 87 | 0.531812 | false | 3.69821 | false | false | false |
nikita-moor/morfeusz-wrapper | morfeusz.py | 1 | 8855 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import morfeusz2
import sys, os
import getopt
reload(sys)
sys.setdefaultencoding('utf8')
def usage():
print("Use: morfeusz.py przykład")
def m_number(f):
abbr = {
"sg" : ["sing.", "singular"],
"pl" : ["pl.", "plural" ],
}
htm... | bsd-2-clause | 8,579,622,904,063,115,000 | 28.188119 | 109 | 0.460764 | false | 2.874228 | false | false | false |
g3rd/django-timetable | timetable/admin.py | 1 | 1781 | from timetable.models import Calendar, Classification, Color, Event, EventClassification
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
class CalendarAdmin(admin.ModelAdmin):
list_display = ('color_display', 'name', )
list_display_links = ('name', )
prepopulated_... | mit | 1,769,930,257,953,895,700 | 30.245614 | 110 | 0.636721 | false | 3.627291 | false | false | false |
ben-ng/swift | benchmark/scripts/generate_harness/generate_harness.py | 1 | 3413 | #!/usr/bin/env python
# ===--- generate_harness.py ---------------------------------------------===//
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See ... | apache-2.0 | -4,840,144,993,802,885,000 | 36.097826 | 79 | 0.595078 | false | 3.634718 | true | false | false |
scienceopen/spectral_analysis | scripts/FilterDesign.py | 1 | 3846 | #!/usr/bin/env python
"""
Design FIR filter coefficients using Parks-McClellan or windowing algorithm
and plot filter transfer function.
Michael Hirsch, Ph.D.
example for PiRadar CW prototype,
writing filter coefficients for use by filters.f90:
./FilterDesign.py 9950 10050 100e3 -L 4096 -m firwin -o cwfir.asc
Refs:
h... | mit | 5,234,407,355,728,393,000 | 30.52459 | 122 | 0.626365 | false | 3.121753 | false | false | false |
janbrohl/tometa | tometa.py | 1 | 4373 | # -*- coding: utf-8 -*-
from urllib.parse import parse_qsl
from xml.sax.saxutils import escape, quoteattr
import re
__version__ = "0.5"
def wrap_file(environ, filelike, block_size=8192):
# copied from
# http://legacy.python.org/dev/peps/pep-3333/#optional-platform-specific-file-handling
if 'wsgi.file_wr... | bsd-3-clause | -7,971,749,874,693,538,000 | 29.158621 | 90 | 0.50606 | false | 3.656355 | false | false | false |
SSGL-SEP/t-sne_cruncher | utils/utils.py | 1 | 6152 | import os
import errno
import csv
from typing import List, Dict, TypeVar, Any
from argparse import Namespace
import numpy as np
T = TypeVar("T")
def all_files(folder_path: str, exts: List[str]) -> str:
"""
Gather all files conforming to provided extensions.
:param folder_path: Path to folder
:type... | mit | 3,027,253,039,485,006,000 | 28.295238 | 91 | 0.557055 | false | 3.623086 | false | false | false |
lwerdna/alib | py/logic/BoolExpr.py | 1 | 16510 | #!/usr/bin/python
#------------------------------------------------------------------------------
#
# This file is a part of autils.
#
# Copyright 2011-2016 Andrew Lamoureux
#
# autils is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Fr... | gpl-3.0 | -8,923,053,887,063,572,000 | 23.172767 | 108 | 0.650878 | false | 2.974239 | false | false | false |
samphippen/dynpk | config.py | 1 | 1259 | import ConfigParser
class Config:
"Configuration parser"
def __init__(self, fname):
self.parser = ConfigParser.ConfigParser()
self.parser.read( fname )
self.rpms = self._opt_break( "rpms" )
self.local_rpms = self._opt_break( "local_rpms" )
self.files = self._opt_break(... | gpl-3.0 | 5,883,475,230,444,872,000 | 34.971429 | 107 | 0.590151 | false | 3.628242 | true | false | false |
wasit7/cs426 | code/week13_bokeh/a_controller.py | 1 | 1588 | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 22 14:45:42 2015
@author: Wasit
"""
#sequential
import time
import numpy as np
from six.moves import zip
from bokeh.plotting import *
def part(n=20, m=3):
base = n//m;
extra = n-m*(n//m)
x=np.ones(m,dtype=np.int32)*base
x[0:extra]=base+1
y = [0]
c... | mit | 8,286,279,619,056,252,000 | 26.396552 | 110 | 0.578715 | false | 2.861261 | false | false | false |
mganeva/mantid | Testing/SystemTests/tests/analysis/SANS2DSearchCentreGUI.py | 1 | 1510 | # 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 +
#pylint: disable=invalid-name
from __future_... | gpl-3.0 | -4,797,869,511,216,230,000 | 34.116279 | 122 | 0.719205 | false | 3.325991 | false | false | false |
ChainsAutomation/chains | lib/chains/commandline/commands/AmqpSendmany.py | 1 | 1073 | from __future__ import absolute_import
from __future__ import print_function
from chains.commandline.commands import Command
import time
import sys
from six.moves import range
class CommandAmqpSendmany(Command):
def main(self, number=1000, dotEvery=10, numEvery=100):
""" Flood message bus with events """
... | gpl-2.0 | 3,591,508,889,539,982,000 | 33.612903 | 96 | 0.54986 | false | 3.859712 | false | false | false |
moccu/django-markymark | markymark/widgets.py | 1 | 1531 | from django import forms
from django.conf import settings
from markymark.renderer import initialize_renderer
class MarkdownTextarea(forms.Textarea):
"""
Extended forms Textarea which enables the javascript markdown editor.
"""
def __init__(self, *args, **kwargs):
"""
Sets the require... | mit | -3,816,546,566,576,119,300 | 29.62 | 76 | 0.610059 | false | 4.463557 | false | false | false |
sverrirab/kosningar | kosningar2016.py | 1 | 2895 | import itertools
MAJORITY = 32 # out of 63
RESULTS = {'A': 4, 'C': 7, 'B': 8, 'D': 21, 'P': 10, 'S': 3, 'V': 10}
ALL = "".join(sorted(RESULTS.keys()))
def normalize(t):
"""
Get a sorted list of party letters for inserting into set/hash.
:param t: set of letters
:return: string with sorted letters
... | mit | 555,633,029,896,347,260 | 27.106796 | 97 | 0.578584 | false | 4.015257 | false | false | false |
dmccloskey/SBaaS_thermodynamics | SBaaS_thermodynamics/stage03_quantification_dG_f_postgresql_models.py | 1 | 7971 | #SBaaS base
from SBaaS_base.postgresql_orm_base import *
class data_stage03_quantification_dG0_f(Base):
__tablename__ = 'data_stage03_quantification_dG0_f'
id = Column(Integer, Sequence('data_stage03_quantification_dG0_f_id_seq'), primary_key=True)
reference_id = Column(String(100))
met_name = Column(St... | mit | 6,822,437,802,437,045,000 | 41.404255 | 131 | 0.558901 | false | 3.021607 | false | false | false |
drewsonne/aws-autodiscovery-templater | awsautodiscoverytemplater/__init__.py | 1 | 2339 | import argparse
from awsauthhelper import AWSArgumentParser
from awsautodiscoverytemplater.command import TemplateCommand
__author__ = 'drews'
def parse_cli_args_into():
"""
Creates the cli argparser for application specifics and AWS credentials.
:return: A dict of values from the cli arguments
:rtyp... | gpl-2.0 | -4,794,933,421,561,624,000 | 50.977778 | 119 | 0.61864 | false | 4.659363 | false | false | false |
passy/rdreiflask | rdrei/application.py | 1 | 1163 | # -*- coding: utf-8 -*-
"""
application
~~~~~~~~~~~
Main entry point for for rdrei.net.
:copyright: 2010, Pascal Hartig <phartig@rdrei.net>
:license: GPL v3, see doc/LICENSE for more details.
"""
from flask import Flask, g, session
from rdrei import settings, __version__
app = Flask('rdrei')
app.config.from_object(... | gpl-3.0 | 7,889,844,541,514,751,000 | 20.943396 | 69 | 0.685297 | false | 3.257703 | false | false | false |
ufcg-lsd/python-hpOneView | examples/scripts/get-san-providers.py | 1 | 3990 | #!/usr/bin/env python
###
# (C) Copyright (2012-2015) Hewlett Packard Enterprise Development LP
#
# 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 limita... | mit | 3,060,862,554,571,726,300 | 32.529412 | 105 | 0.649624 | false | 4.022177 | false | false | false |
hjoliver/cylc | cylc/flow/prerequisite.py | 1 | 11201 | # THIS FILE IS PART OF THE CYLC WORKFLOW ENGINE.
# Copyright (C) NIWA & British Crown (Met Office) & Contributors.
#
# 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 Licen... | gpl-3.0 | 8,367,585,490,118,841,000 | 38.027875 | 79 | 0.599946 | false | 4.268674 | false | false | false |
maqqr/psycho-bongo-fight | load_lib.py | 1 | 1434 | # Downloads proprietary bass2.4 audio library
import os
os.mkdir("lib_dl_temporary")
import platform
from urllib2 import urlopen, URLError, HTTPError
import zipfile
def dlfile(url):
# Open the url
try:
f = urlopen(url)
print "downloading " + url
# Open our local file for writing
... | mit | 3,421,218,029,979,973,000 | 16.487805 | 61 | 0.603208 | false | 2.9875 | false | false | false |
b29308188/cs512project | network-embedding/tense-benchmarks/base-line/transD.py | 1 | 9322 | #coding:utf-8
import numpy as np
import tensorflow as tf
import os
import time
import datetime
import ctypes
from utils import *
from config import *
modelName = 'transD-general'
ll = ctypes.cdll.LoadLibrary
lib = ll("./init.so")
deg = 2
class TransDModel(object):
def calc(self, e, t, r):
return e ... | mit | -1,308,762,378,186,579,500 | 47.806283 | 178 | 0.575842 | false | 3.324536 | true | false | false |
maas/maas | src/maascli/__init__.py | 1 | 1649 | # Copyright 2012-2016 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""The MAAS command-line interface."""
import os
import sys
from maascli.parser import get_deepest_subparser, prepare_parser
def snap_setup():
if "SNAP" in os.environ... | agpl-3.0 | -4,936,739,734,815,465,000 | 31.333333 | 77 | 0.58581 | false | 4.031785 | false | false | false |
abdesslem/balbuzard | plugins/trans_sample_plugin.py | 1 | 7589 | # This is a sample transform plugin script for bbcrack
# All transform plugin scripts need to be named trans*.py, in the plugins folder
# Each plugin script should add Transform objects.
# First define a new Transform class, inheriting either from Transform_char or
# Transform_string:
# - Transform_char: for... | gpl-2.0 | -7,201,563,091,317,111,000 | 40.875706 | 104 | 0.603373 | false | 3.652069 | false | false | false |
SKA-ScienceDataProcessor/FastImaging-Python | src/fastimgproto/scripts/casa/simulate_vis.py | 1 | 1700 | """
Simulated pipeline run
"""
import logging
import os
import astropy.units as u
import click
from astropy.coordinates import Angle, SkyCoord
import fastimgproto.casa.simulation as casa_sim
from fastimgproto.pipeline.skymodel import get_spiral_source_test_pattern
from fastimgproto.skymodel.helpers import SkyRegion, ... | apache-2.0 | 7,177,009,272,733,361,000 | 34.416667 | 75 | 0.597059 | false | 3.413655 | false | false | false |
xuweiliang/Codelibrary | nova/virt/block_device.py | 1 | 22007 | # 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 agreed to in... | apache-2.0 | -5,514,396,370,556,929,000 | 37.473776 | 79 | 0.575999 | false | 4.35179 | false | false | false |
quantiply-fork/schema-registry | docs/conf.py | 1 | 8507 | # -*- coding: utf-8 -*-
#
# Schema Registry documentation build configuration file, created by
# sphinx-quickstart on Wed Dec 17 14:17:15 2014.
#
# 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 fil... | apache-2.0 | -4,174,739,586,087,467,000 | 30.981203 | 79 | 0.710121 | false | 3.749229 | true | false | false |
Pouf/CodingCompetition | CG/hard_the-labyrinth.py | 1 | 3623 | # Your mission is to:
# - find the control room from which you will be able to deactivate the tracker beam
# - get back to your starting position once you've deactivated the tracker beam
# The structure is arranged as a rectangular maze composed of cells. Within the
# maze Kirk can go in any of the following dire... | mit | 8,947,254,263,685,032,000 | 33.194175 | 84 | 0.575766 | false | 3.644869 | false | false | false |
hal0x2328/neo-python | neo/VM/ExecutionEngine.py | 1 | 47965 | import hashlib
import datetime
import traceback
from neo.VM.OpCode import *
from neo.VM.RandomAccessStack import RandomAccessStack
from neo.VM.ExecutionContext import ExecutionContext
from neo.VM import VMState
from neo.VM.InteropService import Array, Struct, CollectionMixin, Map, Boolean
from neo.Core.UInt160 import ... | mit | -6,706,989,789,256,568,000 | 34.164956 | 159 | 0.525279 | false | 4.251839 | false | false | false |
citizensense/pasture | database.py | 1 | 12063 | #!/usr/bin/python3
import os, sqlite3, json, time
# Got some great tips from:
# http://www.pythoncentral.io/introduction-to-sqlite-in-python/
# Class to manage all database operations
class Database:
# Create a new database connection _
def __init__(self, dbfile, dbstruct, ignore='locals'):
self.msg =... | gpl-2.0 | 8,075,983,648,181,608,000 | 37.053628 | 159 | 0.4857 | false | 4.153926 | false | false | false |
arokem/PyEMMA | pyemma/msm/tests/test_its.py | 1 | 9069 | # Copyright (c) 2015, 2014 Computational Molecular Biology Group, Free University
# Berlin, 14195 Berlin, Germany.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | bsd-2-clause | 1,425,284,439,965,800,200 | 40.605505 | 114 | 0.595986 | false | 3.18434 | true | false | false |
Jitrixis/2ARC-Network-stack | TVpy/api.py | 1 | 1265 | __author__ = 'jitrixis'
from Factory.machinery import *
class Api:
def __init__(self, device="wlan0"):
self.__engine = Engine(device)
pass
def getIP(self, mac):
r = self.__engine.getArpIP(mac)
return r
def getMAC(self, ip):
r = self.__engine.getArpMAC(ip)
... | mit | -7,564,539,796,375,667,000 | 24.32 | 92 | 0.564427 | false | 3.373333 | false | false | false |
aiyappaganesh/OP | handlers/request_handler.py | 1 | 1093 | from util import http_util
import webapp2
import webapp2_extras
from webapp2_extras import sessions
webapp2_extras.sessions.default_config['secret_key'] = 'asdfasdf'
webapp2_extras.sessions.default_config['cookie_name'] = 'underdogs'
APP_JSON = "application/json"
class RequestHandlerMixin(object):
def write(self... | gpl-2.0 | 7,885,501,371,286,362,000 | 31.176471 | 69 | 0.705398 | false | 3.667785 | false | false | false |
ConvergenceDev/apiai-selvycure-booking-webhook | action_processor.py | 1 | 5739 | # -*- coding: utf-8 -*-
import os
from datetime import datetime
import json
from apscheduler.schedulers.background import BackgroundScheduler
import requests
FACEBOOK_SEND_URL = "https://graph.facebook.com/v2.6/me/messages"
class ActionProcessor(object):
action = None
request = None
sender_id = None
... | apache-2.0 | -8,093,412,793,826,818,000 | 33.56129 | 148 | 0.48404 | false | 3.184899 | false | false | false |
Lincoln-Cybernetics/Explore- | player.py | 1 | 21476 | import pygame
import random
class Player(pygame.sprite.Sprite):
def __init__(self, level, *groups):
super(Player, self).__init__(*groups)
#the game level
self.level = level
#spritegrups
self.unpassable = pygame.sprite.Group()
#base image
sel... | unlicense | -5,346,653,016,161,406,000 | 37.145648 | 212 | 0.429037 | false | 3.934054 | false | false | false |
Microsoft/PTVS | Python/Product/Miniconda/Miniconda3-x64/Lib/site-packages/conda_env/env.py | 1 | 5704 | from __future__ import absolute_import, print_function
from collections import OrderedDict
from copy import copy
from itertools import chain
import os
from conda.base.context import context
from conda.cli import common # TODO: this should never have to import form conda.cli
from conda.common.serialize import yaml_lo... | apache-2.0 | -9,188,469,645,229,537,000 | 30.688889 | 94 | 0.606417 | false | 4 | false | false | false |
balle/chaosmap | chaosmap.py | 1 | 15829 | #!/usr/bin/python2
#
# Chaosmap
#
# Chaosmap is an information gathering tool and
# dns / whois / web server scanner.
# For wider description and example usages see the README
#
# Coded by Balle
# http://www.datenterrorist.de
# License GPLv3
version = "1.2"
###[ Import modules
import sys
import getopt
import re
imp... | gpl-3.0 | -7,577,405,450,876,749,000 | 32.82265 | 127 | 0.415187 | false | 4.285057 | false | false | false |
akretion/odoo | addons/mrp/models/stock_warehouse.py | 4 | 14216 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
from odoo.exceptions import ValidationError, UserError
class StockWarehouse(models.Model):
_inherit = 'stock.warehouse'
manufacture_to_resupply = fields.Boolean(
... | agpl-3.0 | 7,094,540,157,854,976,000 | 48.361111 | 190 | 0.557681 | false | 3.851531 | false | false | false |
simgislab/universiade2013 | univer_parse.py | 1 | 7397 | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# police-uum.py
# Author: Maxim Dubinin (sim@gis-lab.info)
# About: Grab 112.ru data on участковые, creates two tables linked with unique id, policemen and locations they are responsible for.
# Created: 13:26 07.05.201... | bsd-2-clause | -682,727,570,312,697,100 | 39.152174 | 203 | 0.5155 | false | 3.561716 | false | false | false |
machinegun/SALSA | correct.py | 1 | 3402 | import sys
#reads input assembly, breakpoints given by the method and outputs new contig file with lengths
#offsets bed file as well
def parse_fasta(fh):
fa = {}
current_short_name = None
# Part 1: compile list of lines per sequence
for ln in fh:
if ln[0] == '>':
# new name line; r... | mit | -8,328,874,914,861,466,000 | 29.927273 | 114 | 0.57231 | false | 3.302913 | false | false | false |
ircwaves/gips | gips/data/landsat/landsat.py | 1 | 92875 | #!/usr/bin/env python
################################################################################
# GIPS: Geospatial Image Processing System
#
# AUTHOR: Matthew Hanson
# EMAIL: matt.a.hanson@gmail.com
#
# Copyright (C) 2014-2018 Applied Geosolutions
#
# This program is free software; you can redist... | gpl-2.0 | 6,233,482,248,751,617,000 | 42.850331 | 133 | 0.495031 | false | 3.788342 | false | false | false |
gunan/tensorflow | tensorflow/python/keras/engine/data_adapter_test.py | 1 | 43158 | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -2,744,430,613,566,517,000 | 38.740331 | 80 | 0.649567 | false | 3.483574 | true | false | false |
Pfiver/penview | dev/Danny_example.py | 1 | 9958 | from Danny.OOo.OOoLib import *
def CalcExample():
# create a new Calc spreadsheet.
oDoc = StarDesktop.loadComponentFromURL( "private:factory/scalc", "_blank", 0, Array() )
#-----
# Use this instead to open an EXISTING calc document,
# and assign it to variable oDoc.
# cFile = "C:\Docum... | gpl-3.0 | -697,155,829,228,361,100 | 40.495833 | 105 | 0.642097 | false | 3.242592 | false | false | false |
samstav/mongoexport | mongoexport.py | 1 | 7599 | """mongoexport implemented as a python module.
'username' and 'password' for accessing target mongodb
can be stored as environment variables or in python
keyring.
Stored as environment variables:
export MONGOEXPORT_USERNAME=*****
export MONGOEXPORT_PASSWORD=*****
or in python keyring:
$ keyring set mongoexport use... | apache-2.0 | 3,746,758,413,521,380,000 | 28.568093 | 86 | 0.600342 | false | 4.074531 | false | false | false |
ronaldoussoren/macholib | macholib/mach_o.py | 1 | 46738 | """
Other than changing the load commands in such a way that they do not
contain the load command itself, this is largely a by-hand conversion
of the C headers. Hopefully everything in here should be at least as
obvious as the C headers, and you should be using the C headers as a real
reference because the documentati... | mit | -2,584,373,802,201,344,000 | 27.56846 | 87 | 0.60178 | false | 2.759846 | false | false | false |
vlegoff/tsunami | src/primaires/perso/commandes/raedit/__init__.py | 1 | 2488 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
... | bsd-3-clause | 6,132,993,815,882,985,000 | 44.127273 | 79 | 0.721998 | false | 3.890282 | false | false | false |
stackmachine/bearweb | bearweb/urls/site.py | 1 | 1692 | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
from games.views import download, IdenticonDetail
from core.views import ContactV... | mit | 8,222,612,598,508,858,000 | 35.782609 | 78 | 0.636525 | false | 3.370518 | false | false | false |
sjthespian/ZenPacks.community.FlexLM | ZenPacks/community/FlexLM/modeler/plugins/community/cmd/FlexLM.py | 1 | 4273 | # Module-level documentation will automatically be shown as additional
# information for the modeler plugin in the web interface.
"""
FlexLM
An flexLM plugin that collects licenses under FlexLM control
"""
# When configuring modeler plugins for a device or device class, this plugin's
# name would be community.cmd.Flex... | gpl-2.0 | -3,921,368,739,322,689,500 | 40.485437 | 173 | 0.659958 | false | 3.667811 | false | false | false |
Svolcano/python_exercise | dianhua/worker/crawler/china_mobile/wap/zhejiang/main.py | 1 | 27693 | # -*- coding:utf-8 -*-
import sys
import re
import time
import random
import base64
from lxml import etree
from dateutil.relativedelta import relativedelta
reload(sys)
sys.setdefaultencoding('utf8')
import datetime
import traceback
if __name__ == '__main__':
sys.path.append('..')
sys.p... | mit | -4,666,179,527,746,855,000 | 37.556369 | 191 | 0.473035 | false | 3.461499 | false | false | false |
ianyfan/alevel | build.py | 1 | 5117 | #!venv/bin/python
import os
import markdown
md = markdown.Markdown(output_format='html5',
extensions=['markdown.extensions.tables', 'markdown.extensions.nl2br'])
def make_nav(node):
if 'href' in node:
indent = ' '*(2*len(node['href']) + 6)
if 'children' in node:
children = '\n'.join(map(l... | mit | -7,544,063,696,612,175,000 | 33.574324 | 160 | 0.465507 | false | 3.751466 | false | false | false |
tonygalmiche/is_plastigray | is_reach.py | 1 | 16005 | # -*- coding: utf-8 -*-
from openerp import models,fields,api,SUPERUSER_ID
from openerp.tools.translate import _
from openerp.exceptions import Warning
import datetime
import logging
_logger = logging.getLogger(__name__)
class is_reach(models.Model):
_name='is.reach'
_order='name desc'
name = fi... | mit | 7,814,359,526,069,614,000 | 42.947658 | 128 | 0.476964 | false | 3.72125 | false | false | false |
srio/Orange-XOPPY | orangecontrib/xoppy/util/xoppy_undulators.py | 1 | 20777 | # --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------------
import numpy
import os
from collections import OrderedDict
from orangecontrib.xoppy.util import srundplug
from orangecontrib.xo... | bsd-2-clause | 8,465,278,814,384,543,000 | 44.966814 | 157 | 0.58892 | false | 3.100119 | false | false | false |
anhaidgroup/py_stringsimjoin | py_stringsimjoin/join/overlap_coefficient_join_py.py | 1 | 17453 | # overlap coefficient join
from joblib import delayed, Parallel
from six import iteritems
import pandas as pd
import pyprind
from py_stringsimjoin.filter.overlap_filter import OverlapFilter
from py_stringsimjoin.index.inverted_index import InvertedIndex
from py_stringsimjoin.utils.generic_helper import convert_datafra... | bsd-3-clause | 102,006,608,460,075,310 | 51.569277 | 127 | 0.518134 | false | 4.63436 | false | false | false |
hemberger/MechanicalSoup | tests/utils.py | 1 | 3376 | import mechanicalsoup
import requests_mock
from distutils.version import StrictVersion
import bs4
try:
from urllib.parse import parse_qsl
except ImportError:
from urlparse import parse_qsl
"""
Utilities for testing MechanicalSoup.
"""
choose_submit_form = '''
<html>
<body>
<!-- vaguely based on Trac edi... | mit | -6,715,178,474,680,914,000 | 32.098039 | 78 | 0.641884 | false | 3.82333 | false | false | false |
yifeng-li/DECRES | cA.py | 1 | 13116 | """
A module of contractive autoencoder modified
from the Deep Learning Tutorials (www.deeplearning.net/tutorial/).
Copyright (c) 2008-2013, Theano Development Team All rights reserved.
Modified by Yifeng Li
CMMT, UBC, Vancouver
Sep 23, 2014
Contact: yifeng.li.cn@gmail.com
"""
from __future__ import division
import ... | bsd-3-clause | 3,418,660,605,187,341,300 | 42.72 | 155 | 0.618786 | false | 3.710325 | true | false | false |
google/nsscache | nss_cache/caches/files_test.py | 1 | 10874 | # Copyright 2007 Google Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the ho... | gpl-2.0 | -6,607,135,317,482,214,000 | 38.256318 | 79 | 0.62369 | false | 3.663747 | true | false | false |
Tomsod/gemrb | gemrb/GUIScripts/GUISAVE.py | 1 | 10200 | # -*-python-*-
# GemRB - Infinity Engine Emulator
# Copyright (C) 2003 The GemRB Project
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) ... | gpl-2.0 | 8,875,290,173,057,791,000 | 28.142857 | 120 | 0.72098 | false | 2.866779 | false | false | false |
duyuan11/glumpy | glumpy/geometry/arc.py | 4 | 6332 | # ----------------------------------------------------------------------------
# Anti-Grain Geometry (AGG) - Version 2.5
# A high quality rendering engine for C++
# Copyright (C) 2002-2006 Maxim Shemanarev
# Contact: mcseem@antigrain.com
# mcseemagg@yahoo.com
# http://antigrain.com
#
# AGG is... | bsd-3-clause | 1,184,211,180,139,694,800 | 32.326316 | 79 | 0.554643 | false | 3.147117 | false | false | false |
numairmansur/RoBO | examples/example_bagged_nets.py | 1 | 1284 | import sys
import logging
import numpy as np
import matplotlib.pyplot as plt
import robo.models.neural_network as robo_net
import robo.models.bagged_networks as bn
from robo.initial_design.init_random_uniform import init_random_uniform
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
def f(x):
return... | bsd-3-clause | -7,428,407,319,746,540,000 | 27.533333 | 118 | 0.632399 | false | 2.767241 | false | false | false |
ebukoz/thrive | erpnext/accounts/doctype/budget/budget.py | 1 | 13426 | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import flt, getdate, add_months, get_last_day, fmt_money, nowdate
from frappe.mode... | gpl-3.0 | 287,245,431,636,735,200 | 39.932927 | 119 | 0.710338 | false | 3.099977 | false | false | false |
TheWeiTheTruthAndTheLight/senior-design | src/get_tweets.py | 1 | 5213 | """
get_tweets.py
usage: get_tweets.py [-h] [--sarcastic_path SARCASTIC_PATH]
[--non_sarcastic_path NON_SARCASTIC_PATH]
[--log_path LOG_PATH]
Query twitter API for tweets over last 7 days
optional arguments:
-h, --help show this help message and exit
--sarcast... | mit | 7,683,003,271,177,713,000 | 42.082645 | 148 | 0.61807 | false | 3.568104 | false | false | false |
gfairchild/pyHarmonySearch | pyharmonysearch/harmony_search.py | 1 | 13648 | """
Copyright (c) 2013, Triad National Security, LLC
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
* Redistributions of source code must retain the above copyright notice, this lis... | bsd-3-clause | -769,342,194,975,787,300 | 53.592 | 189 | 0.654015 | false | 4.070385 | false | false | false |
Labonneguigue/Machine-Learning | Machine Learning Data Repository /Facebook_metrics/hw1_regression.py | 1 | 1970 | import csv
import sys
import numpy
from numpy import genfromtxt
from numpy.linalg import inv
numpy.set_printoptions(threshold=numpy.nan)
Lambda = float(sys.argv[1])
Sigma2 = float(sys.argv[2])
print("Lambda = ")
print(Lambda)
print("Sigma2 = ")
print(Sigma2)
X_train = genfromtxt('X_train.csv', delimiter=',')
print(... | mit | 3,158,200,066,098,003,000 | 23.02439 | 95 | 0.718782 | false | 2.863372 | false | false | false |
nickabattista/IB2d | pyIB2d/Examples/Rayleigh_Taylor_Instability/please_Compute_External_Forcing.py | 1 | 6723 | #-------------------------------------------------------------------------------------------------------------------#
#
# IB2d is an Immersed Boundary Code (IB) for solving fully coupled non-linear
# fluid-structure interaction models. This version of the code is based off of
# Peskin's Immersed Boundary Method Paper... | gpl-3.0 | 4,047,843,990,817,786,400 | 28.752212 | 120 | 0.501264 | false | 3.315089 | false | false | false |
swprojects/Serial-Sequence-Creator | serialfunctions.py | 1 | 1796 |
import logging
import serial
import sys
import time
import serial.tools.list_ports
#------------------------------------------------#
# serial connection functions
#------------------------------------------------#
def OpenSerial(port, baudrate, bytesize, stopbits, parity, flowcontrol, timeout):
# configure th... | mit | 518,038,412,185,088,100 | 24.671429 | 99 | 0.550668 | false | 3.657841 | false | false | false |
runt18/mojo | mojo/devtools/common/android_stack_parser/symbol.py | 1 | 17737 | # Copyright (C) 2013 The Android Open Source Project
#
# 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 ... | bsd-3-clause | 6,496,259,129,740,246,000 | 30.50444 | 82 | 0.66973 | false | 3.647337 | false | false | false |
supermurat/hamsi-manager | SpecialTools/CharacterEncoding.py | 1 | 4773 | # This file is part of HamsiManager.
#
# Copyright (c) 2010 - 2015 Murat Demir <mopened@gmail.com>
#
# Hamsi Manager 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 yo... | gpl-3.0 | -860,980,650,611,901,700 | 44.028302 | 115 | 0.649696 | false | 4.315552 | false | false | false |
apaloczy/ap_tools | utils.py | 1 | 54151 | # Description: General-purpose functions for personal use.
# Author: André Palóczy
# E-mail: paloczy@gmail.com
__all__ = ['seasonal_avg',
'seasonal_std',
'deseason',
'blkavg',
'blkavgdir',
'blkavgt',
'blkapply',
'stripmsk',
... | mit | 7,885,736,604,063,761,000 | 30.255774 | 167 | 0.604821 | false | 2.867928 | false | false | false |
ralstonJ/Angelhack-Rumble | scripts/TwitterStreamTutorial.py | 1 | 1032 | #!/usr/bin/env python
import tweepy
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
import time
ckey = 'CiQGfooRBKJRSrtaGl7GkQ'
csecret = 'G2o2pVeFaYlZdZAQL6NxkE3x7iW0U7kfoUKBTaOg'
atoken = '741285805-38CJ8saoV8UJx46L38bFiZMOSocC2XhtubOsot9x'
asecret = 'sNJUHNg4Gz... | apache-2.0 | -2,584,913,198,241,240,600 | 26.157895 | 66 | 0.676357 | false | 2.781671 | false | false | false |
nevermoreluo/sakura | sakura/buffer_reader.py | 1 | 1837 | import struct
class BufferReader():
def __init__(self, buf, endian='<'):
self._buffer = buf
self._length = len(buf)
self._endian = endian
self._offset = 0
self._error = False
@property
def error(self):
return self._error
def set_endian(... | gpl-3.0 | 896,517,828,458,708,500 | 22.851351 | 81 | 0.507349 | false | 3.756646 | false | false | false |
machtfit/django-database-email-backend | database_email_backend/admin.py | 1 | 5607 | #-*- coding: utf-8 -*-
from django.http import HttpResponseRedirect
from django.contrib import admin
from django import forms
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.core.mail import message
from django.db.models import Count
from functools import update_wrapper
fro... | mit | 2,205,017,277,987,033,600 | 33.826087 | 111 | 0.601034 | false | 3.901879 | false | false | false |
Azure/azure-sdk-for-python | sdk/identity/azure-identity/azure/identity/_credentials/cloud_shell.py | 1 | 2005 | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import functools
import os
from typing import TYPE_CHECKING
from azure.core.pipeline.transport import HttpRequest
from .. import CredentialUnavailableError
from .._con... | mit | 8,458,720,174,471,907,000 | 34.803571 | 93 | 0.625436 | false | 4.349241 | false | false | false |
waltaskew/tweet-cereal | tweet_cereal/app.py | 1 | 1799 | """Define an app for processing requests to LaTeX up tweets."""
import base64
import os
import flask
import flask_socketio
import eventlet
import redis
import tweet_cereal.tasks as tasks
import tweet_cereal.tweets as tweets
JOB_RESULT_POLL_INTERVAL = 1
app = flask.Flask(__name__)
socketio = flask_socketio.SocketIO... | bsd-3-clause | -4,704,310,292,591,530,000 | 29.491525 | 77 | 0.676487 | false | 3.701646 | false | false | false |
mrcrilly/vs-vlan-db | vsvlandb/forms/vlan.py | 1 | 1069 | from vsvlandb.models import Site, Subnet, Impact
from flask.ext.wtf import Form
from wtforms import TextField, SelectField, BooleanField, IntegerField
from wtforms.validators import DataRequired, NumberRange, Optional, Length
from wtforms.ext.sqlalchemy.fields import QuerySelectMultipleField, QuerySelectField
def a... | mit | 3,781,316,050,793,028,000 | 32.40625 | 90 | 0.76333 | false | 3.711806 | false | false | false |
spurin/xmldataset | examples/example6.py | 1 | 2665 | import xmldataset
import pprint
# Setup Pretty Printing
ppsetup = pprint.PrettyPrinter(indent=4)
pp = ppsetup.pprint
xml = """<?xml version="1.0"?>
<catalog>
<shop number="1">
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<... | bsd-3-clause | 4,255,772,175,311,198,000 | 37.623188 | 164 | 0.612758 | false | 3.670799 | false | false | false |
linuxyan/opsmanage | app/auth/views.py | 1 | 1754 | #coding=utf-8
from flask import render_template, redirect, request, url_for, flash,abort
from . import auth
from ..models import users
from .. import db
from .forms import LoginForm,UserEditForm
from flask.ext.login import login_user, logout_user,current_user
from flask.ext.login import login_required
@auth.r... | apache-2.0 | -5,257,831,739,415,127,000 | 36.755556 | 94 | 0.632606 | false | 3.599174 | false | false | false |
ywang-bom/wismon | wismon/wismon.py | 1 | 20145 | """
WMO WIS monitoring tool for OpenWIS.
All datetime values must conform to ISO 8601.
date - YYYY-MM-DD
datetime - YYYY-MM-DDThh:mm:ssZ
"""
import os
import sys
import time
from datetime import datetime
from ConfigParser import ConfigParser, NoSectionError, NoOptionError
import urllib2
import json
import log... | gpl-3.0 | 629,759,576,338,308,900 | 40.96875 | 109 | 0.605808 | false | 3.518163 | true | false | false |
quinox/weblate | weblate/trans/models/subproject.py | 1 | 51530 | # -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2015 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <http://weblate.org/>
#
# 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, eithe... | gpl-3.0 | -6,221,192,354,696,558,000 | 31.694797 | 79 | 0.555612 | false | 4.545831 | false | false | false |
zseder/hunmisc | hunmisc/utils/plotting/matplotlib_simple_xy.py | 1 | 1535 | """
Copyright 2011-13 Attila Zseder
Email: zseder@gmail.com
This file is part of hunmisc project
url: https://github.com/zseder/hunmisc
hunmisc is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
versi... | gpl-3.0 | 1,005,301,798,700,517,100 | 29.098039 | 78 | 0.673616 | false | 3.238397 | false | false | false |
yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/backup/custom_common.py | 2 | 10039 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | mit | -6,428,039,126,008,457,000 | 46.804762 | 114 | 0.665604 | false | 3.909268 | false | false | false |
revarbat/snappy-reprap | stl_normalize.py | 1 | 15920 | #!/usr/bin/env python
import os
import os.path
import sys
import math
import time
import struct
import argparse
import platform
import itertools
import subprocess
guiscad_template = """\
module showlines(clr, lines) {{
for (line = lines) {{
delta = line[1]-line[0];
dist = norm(delta);
the... | gpl-2.0 | 5,155,096,900,616,418,000 | 30.277014 | 79 | 0.501382 | false | 3.412647 | false | false | false |
olivierdalang/stdm | ui/ui_survey.py | 1 | 4260 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_survey.ui'
#
# Created: Wed Apr 29 17:42:49 2015
# by: PyQt4 UI code generator 4.11.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8... | gpl-2.0 | -4,788,625,040,332,973,000 | 48.117647 | 121 | 0.676995 | false | 3.659794 | false | false | false |
sffjunkie/home-assistant | homeassistant/components/media_player/__init__.py | 1 | 19925 | """
Component to interface with various media players.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/media_player/
"""
import logging
import os
import voluptuous as vol
from homeassistant.components import discovery
from homeassistant.config import l... | mit | 7,915,092,304,396,361,000 | 29.939441 | 79 | 0.647428 | false | 3.794515 | false | false | false |
devurandom/portage | pym/_emerge/PollScheduler.py | 1 | 7723 | # Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
import gzip
import errno
try:
import threading
except ImportError:
import dummy_threading as threading
from portage import _encodings
from portage import _unicode_encode
from portage.util import writemsg_leve... | gpl-2.0 | -1,054,756,073,076,287,900 | 29.525692 | 71 | 0.704519 | false | 3.341843 | false | false | false |
churchlab/millstone | genome_designer/pipeline/read_alignment_util.py | 1 | 5281 | """
Methods related to aligning reads.
This module was created because of a circular import issue with celery.
...
File "/home/glebk/Projects/churchlab/genome-designer-v2/genome_designer/pipeline/read_alignment.py", line 9, in <module>
from main.models import clean_filesystem_location
File "/home/glebk/Proje... | mit | 946,334,179,424,611,500 | 33.97351 | 122 | 0.642492 | false | 3.568243 | false | false | false |
klahnakoski/MySQL-to-S3 | vendor/jx_python/__init__.py | 1 | 3013 | # encoding: utf-8
#
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Author: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from __future__ import unicode_literals
from c... | mpl-2.0 | -4,624,035,901,889,225,000 | 27.971154 | 125 | 0.626286 | false | 3.838217 | true | false | false |
acercado/jd-ph-cms | jd-ph-cms/notifications/migrations/0001_initial.py | 1 | 2228 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-04 05:22
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | bsd-3-clause | 2,311,233,370,199,739,400 | 38.785714 | 169 | 0.581688 | false | 4.368627 | false | false | false |
its-dirg/saml-metadata-upload | src/metadata_upload/service.py | 1 | 1421 | import os
import random
import string
from flask_transfer.transfer import Transfer
from flask_transfer.validators import AllowedExts
from flask_wtf.file import FileField
from flask_wtf.file import FileRequired, FileAllowed
from flask_wtf.form import Form
from werkzeug.utils import secure_filename
from wtforms.fields.s... | apache-2.0 | -3,014,370,430,212,958,000 | 33.658537 | 95 | 0.681914 | false | 4.569132 | false | false | false |
carltongibson/django-staticsite | staticsite/management/commands/buildstaticsite.py | 1 | 3354 | # -*- coding: utf-8 -*-
import os
import codecs
from itertools import chain
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from django.template import Template
from django.template.loader import get_template
from django.test import RequestFactory
from staticsite.vie... | bsd-2-clause | 7,664,765,751,399,810,000 | 38.904762 | 106 | 0.568616 | false | 4.393185 | false | false | false |
oriel-hub/api | django/idsapi/openapi/permissions.py | 1 | 1176 | from rest_framework.throttling import UserRateThrottle
from rest_framework.exceptions import PermissionDenied
from django.conf import settings
from django.contrib.sites.models import Site
class PerUserThrottlingRatePerGroup(UserRateThrottle):
def allow_request(self, request, view):
"""
Implement ... | gpl-2.0 | -4,485,740,001,450,202,600 | 38.2 | 100 | 0.651361 | false | 4.648221 | false | false | false |
Hwesta/advent-of-code | aoc2016/day5.py | 1 | 4067 | #!/usr/bin/env python
"""
--- Day 5: How About a Nice Game of Chess? ---
You are faced with a security door designed by Easter Bunny engineers that seem to have acquired most of their security knowledge by watching hacking movies.
The eight-character password for the door is generated one character at a time by findi... | mit | -2,213,071,398,755,253,800 | 45.215909 | 319 | 0.695107 | false | 3.933269 | false | false | false |
dims/neutron | neutron/tests/unit/scheduler/test_l3_agent_scheduler.py | 1 | 76578 | # Copyright (c) 2013 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | apache-2.0 | -2,183,191,022,081,990,100 | 42.118243 | 79 | 0.558202 | false | 3.793056 | true | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.