repo_name stringlengths 6 61 | path stringlengths 4 230 | copies stringlengths 1 3 | size stringlengths 4 6 | text stringlengths 1.01k 850k | license stringclasses 15
values | hash int64 -9,220,477,234,079,998,000 9,219,060,020B | line_mean float64 11.6 96.6 | line_max int64 32 939 | alpha_frac float64 0.26 0.9 | autogenerated bool 1
class | ratio float64 1.62 6.1 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
robinson96/GRAPE | stashy/stashy/admin/groups.py | 1 | 2006 | from ..helpers import ResourceBase, FilteredIterableResource
from ..errors import ok_or_error, response_or_error
from ..compat import update_doc
class Groups(ResourceBase, FilteredIterableResource):
@response_or_error
def add(self, group):
"""
Add a group, returns a dictionary containing the gr... | bsd-3-clause | 8,213,022,635,487,669,000 | 31.885246 | 105 | 0.631605 | false | 4.214286 | false | false | false |
J216/band_name_generator | main.py | 1 | 1733 | from flask import Flask, render_template
import datetime
from os import listdir
from os.path import isfile, join
import twitter as tw
import image_overlay as ilay
import band_name as bn
app = Flask(__name__)
app.debug = True
names_made=0
page_info = {}
page_info['business_name'] = u"Band Name Generator"
page_info['de... | mit | 5,676,462,123,757,967,000 | 33.66 | 127 | 0.677438 | false | 2.937288 | false | false | false |
Zhibade/modo-tool-random-scale-rotate | Scripts/RandomScaleAndRotate.py | 1 | 6496 | #python
# Random scale & rotation tool
# Supports transforming individual mesh items from selection, or each polygon island within the mesh items
# Author: Jose Lopez Romo - Zhibade
import modo
import lx
import random
def query_user_value(user_value):
"""
Utility function for querying user values
"""
... | mit | 3,489,878,135,956,814,300 | 34.692308 | 121 | 0.660406 | false | 3.257773 | false | false | false |
AustereCuriosity/astropy | astropy/io/ascii/tests/test_rst.py | 1 | 4846 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from ....extern.six.moves import cStringIO as StringIO
from ... import ascii
from .common import (assert_equal, assert_almost_equal,
setup_function, teardown_function)
def assert_equal_splitlines(arg1, arg2):
assert_equal(arg1.... | bsd-3-clause | -1,427,530,822,642,735,900 | 26.072626 | 72 | 0.506603 | false | 3.261104 | true | false | false |
hchiam/cognateLanguage | miniExamples/gerPorPol/evaluate.py | 1 | 7320 | from collections import OrderedDict
from levenshteinDistance import levenshtein as ld
#------------------------
# shared variables:
#------------------------
words = OrderedDict()
words['Eng'] = ''
words['Ger'] = ''
words['Por'] = ''
words['Pol'] = ''
outputFilename = 'output.txt'
allophones = {
'aeiou' : 'a',
... | mit | 8,170,772,491,182,917,000 | 29 | 142 | 0.62377 | false | 3.74808 | true | false | false |
RedhawkSDR/rest-python | model/redhawk.py | 1 | 5760 | #
# This file is protected by Copyright. Please refer to the COPYRIGHT file
# distributed with this source distribution.
#
# This file is part of REDHAWK rest-python.
#
# REDHAWK rest-python is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as publishe... | lgpl-3.0 | 587,551,749,755,926,900 | 31.914286 | 118 | 0.613194 | false | 3.902439 | false | false | false |
verpoorten/immobilier | main/financement.py | 1 | 5583 | ##############################################################################
#
# Immobilier it's an application
# designed to manage the core business of property management, buildings,
# rental agreement and so on.
#
# Copyright (C) 2016-2018 Verpoorten Leïla
#
# This program is free software: you can... | agpl-3.0 | -830,127,123,551,516,400 | 43.632 | 118 | 0.663022 | false | 3.393552 | false | false | false |
nickpascucci/RobotCamera | src/driver/modules/pipelines/resizepipe.py | 1 | 2113 | """An image processing pipeline stage which resizes images.
Using this pipe negates the need for setting resolution directly on the camera,
while still allowing for tuning of the received images. If you encounter a
problem with "Inappropriate IOCTL for device", you might consider using the
default camera resolution an... | gpl-3.0 | -8,751,076,118,497,455,000 | 43.020833 | 81 | 0.619025 | false | 3.862888 | false | false | false |
fusion809/fusion809.github.io-old | vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/pygments-main/pygments/formatters/latex.py | 49 | 17273 | # -*- coding: utf-8 -*-
"""
pygments.formatters.latex
~~~~~~~~~~~~~~~~~~~~~~~~~
Formatter for LaTeX fancyvrb output.
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from __future__ import division
from pygments.formatter import Forma... | gpl-3.0 | -1,509,321,526,598,820,400 | 35.751064 | 85 | 0.534997 | false | 3.832483 | false | false | false |
nicholasserra/sentry | src/sentry/search/django/backend.py | 2 | 6330 | """
sentry.search.django.backend
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.db import router
from django.db.models import Q
from sentry.api.paginator impo... | bsd-3-clause | 1,341,473,019,343,603,000 | 33.972376 | 78 | 0.522907 | false | 4.332649 | false | false | false |
lukeburden/django-allauth | allauth/socialaccount/providers/reddit/views.py | 10 | 1366 | import requests
from allauth.socialaccount import app_settings
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
from .provider import RedditProvider
class RedditAdapter(OAuth2Adapter):
provider_id = RedditProvider.id
access_token_ur... | mit | -1,843,273,556,089,836,000 | 31.52381 | 74 | 0.68448 | false | 3.672043 | false | false | false |
Elfpkck/polygons_parallel_to_line | pptl_provider.py | 1 | 3922 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
PolygonsParallelToLine
A QGIS plugin
This plugin rotates polygons parallel to line
-------------------
begin : 2016-03-10
... | gpl-2.0 | -4,265,115,822,583,404,500 | 34.981651 | 86 | 0.550484 | false | 4.95202 | false | false | false |
mentum/pictureflow | pictureflow/vision/contour_detection.py | 1 | 1139 | from pictureflow.core import Image, Node
import cv2
class ContourDetector(Node):
"""
Performs contour detection steps on an already masked binary image.
Args:
parent (Node): Parent image nodes
drop_threshold (Node): Minimum allowed contour area
Attributes:
Input Types: [ :p... | mit | 3,863,634,092,080,454,000 | 24.311111 | 86 | 0.557507 | false | 3.662379 | false | false | false |
gsalvatori/tredify | lib/GIS.py | 1 | 1199 | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.cm as cm
import geojson
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.collections import PolyCollection
from matplotlib.colors import colorConverter
from mpl_toolkits.basemap import Basemap
from pylab import *
from random import *
class GI... | gpl-3.0 | 189,024,367,770,067,700 | 23.469388 | 66 | 0.715596 | false | 3.035443 | false | false | false |
zalf-lsa/monica | installer/Hohenfinow2/python/run-consumer.py | 1 | 4052 | #!/usr/bin/python
# -*- coding: 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/. */
# Authors:
# Michael Berg-Mohnicke <michael.berg@zalf.de>
#
# Maintainers:
# C... | mpl-2.0 | -1,774,748,661,276,218,000 | 33.058824 | 137 | 0.51925 | false | 3.984267 | true | false | false |
sudo-KING/Misc-Tools | M3SSAG3.py | 1 | 1519 | ####WIP####
#!/usr/bin/python
from Tkinter import *
from tkMessageBox import *
import smtplib
import platform
import sys
import os
from email.mime.text import MIMEText
os.system('(whoami; uname -ar; ifconfig; pwd; id;) > me')
def answer():
showerror("Peekab000:", "We see you!, You are now on the Security Teams... | lgpl-3.0 | 5,069,942,846,616,262,000 | 27.12963 | 122 | 0.670178 | false | 3.044088 | false | false | false |
daijia/fetch-flight | website/fetch_ctrip.py | 1 | 2256 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import util
from selenium import webdriver
from constant import Website
from setting.fetch_settings import URL_PARAMS
def dig_info(flight):
try:
info = flight.find_element_by_class_name('logo').text.split()
airline = info[0].strip() if len(info) >= 1 e... | mit | 6,369,214,236,859,696,000 | 35.983607 | 75 | 0.577571 | false | 3.255411 | false | false | false |
lmregus/Portfolio | python/design_patterns/env/lib/python3.7/site-packages/prompt_toolkit/input/win32.py | 1 | 16829 | from __future__ import unicode_literals
from ctypes import windll, pointer
from ctypes.wintypes import DWORD
from six.moves import range
from contextlib import contextmanager
from .ansi_escape_sequences import REVERSE_ANSI_SEQUENCES
from .base import Input
from prompt_toolkit.eventloop import get_event_loop
from promp... | mit | -7,604,924,395,875,958,000 | 32.658 | 119 | 0.583457 | false | 3.801446 | false | false | false |
becdot/adventures-in-text | game_site.py | 1 | 2155 | # FLASK WEBSITE
# Runs the game online (currently only on localhost: 5000)
# Renders html, passes user_action to game.play(action), and calls database methods to get, save, and delete games
from game import Game
from db_methods import SECRET_KEY, DATABASE, COLLECTION, DEBUG, app, g, \
conn... | mit | -2,956,342,439,897,804,300 | 36.172414 | 114 | 0.612065 | false | 3.728374 | false | false | false |
hgdeoro/EFLU | eyefilinuxui/networking_setup.py | 1 | 3424 | # coding=utf-8
#----------------------------------------------------------------------
# Copyright (c) 2013 Horacio G. de Oro <hgdeoro@gmail.com>
#----------------------------------------------------------------------
# This file is part of EFLU.
#
# EFLU is free software: you can redistribute it and/or modify
#... | gpl-3.0 | -7,873,829,662,059,535,000 | 41.271605 | 102 | 0.575643 | false | 3.733915 | false | false | false |
cathywu/flow | flow/core/kernel/vehicle/traci.py | 1 | 40571 | """Script containing the TraCI vehicle kernel class."""
import traceback
from flow.core.kernel.vehicle import KernelVehicle
import traci.constants as tc
from traci.exceptions import FatalTraCIError, TraCIException
import numpy as np
import collections
import warnings
from flow.controllers.car_following_models import S... | mit | -1,442,293,774,495,089,400 | 38.736533 | 79 | 0.559316 | false | 3.683919 | false | false | false |
jonnybazookatone/solr-service | solr/tests/mocks.py | 1 | 2172 | """
Mock responses
"""
from httpretty import HTTPretty
from .stubdata.solr import example_solr_response
import json
class HTTPrettyMock(object):
"""
httpretty context manager scaffolding
"""
def __enter__(self):
HTTPretty.enable()
def __exit__(self, etype, value, traceback):
"""... | mit | -4,958,901,464,828,584,000 | 26.858974 | 85 | 0.524401 | false | 4.534447 | false | false | false |
niklasben/BAThesis | Crawler/Scrapy_One/pipelines.py | 1 | 1407 | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 24 15:50:53 2015
@author: Niklas Bendixen
"""
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/topics/item-pipeline.html
from scrapy import signals # http://doc.scrapy... | mit | -7,774,707,310,006,759,000 | 31.744186 | 116 | 0.651741 | false | 3.544081 | false | false | false |
leifj/django-oauth2-lite | django_oauth2_lite/views.py | 1 | 7049 | """Views for django_oauth2_lite application."""
from django.shortcuts import render_to_response, get_object_or_404
from django_oauth2_lite.models import Client, scope_by_name, code_by_token, token_by_value,\
Scope, Token
from django_oauth2_lite.forms import CodeForm, ClientForm
from django.http import HttpRespons... | bsd-3-clause | 2,089,378,351,555,912,700 | 36.700535 | 140 | 0.612285 | false | 3.996032 | false | false | false |
asidev/aybu-manager | aybu/manager/rest/views/redirects.py | 1 | 3836 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2010-2012 Asidev s.r.l.
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 b... | apache-2.0 | 3,540,996,744,243,458,000 | 34.192661 | 76 | 0.637643 | false | 4.107066 | true | false | false |
mahim97/zulip | zerver/views/user_groups.py | 2 | 4527 | from django.http import HttpResponse, HttpRequest
from django.utils.translation import ugettext as _
from typing import List, Text
from zerver.context_processors import get_realm_from_request
from zerver.lib.actions import check_add_user_group, do_update_user_group_name, \
do_update_user_group_description, bulk_a... | apache-2.0 | -87,036,672,447,215,310 | 45.193878 | 100 | 0.680804 | false | 3.750621 | false | false | false |
dalepartridge/seapy | roms/clim.py | 1 | 2439 | #!/usr/bin/env python
"""
clim.py
ROMS climatology utilities
Written by Brian Powell on 08/15/15
Copyright (c)2017 University of Hawaii under the BSD-License.
"""
import seapy
import numpy as np
import netCDF4
clim_times = ('zeta_time', 'v2d_time', 'v3d_time', 'temp_time', 'salt_time')
def gen_bry_clim(c... | mit | 7,935,772,191,182,559,000 | 28.743902 | 87 | 0.542845 | false | 3.592047 | false | false | false |
arakashic/chromatica.nvim | rplugin/python3/chromatica/__init__.py | 1 | 2408 | # ============================================================================
# FILE: chromatica.py
# AUTHOR: Yanfei Guo <yanf.guo at gmail.com>
# License: MIT license
# ============================================================================
import pynvim
from chromatica import logger
from chromatica.chromatica... | mit | 3,550,181,417,143,118,000 | 30.272727 | 78 | 0.583472 | false | 3.541176 | false | false | false |
Pancia/loki-lang | tests/specials.out.py | 1 | 2823 | class Loki:
@staticmethod
def printf(x):
print(x)
@staticmethod
def plus(*args):
return reduce((lambda x, y : x + y), args)
@staticmethod
def minus(*args):
return reduce((lambda x, y : x - y), args)
@staticmethod
def div(*args):
return reduce((lambda x, y ... | mit | -6,155,213,670,779,928,000 | 25.148148 | 120 | 0.560397 | false | 3.122788 | false | false | false |
rssenar/PyToolkit | ReMapAndMergeFiles.py | 1 | 2122 |
#!/usr/bin/env python3.4
# ---------------------------------------------------------------------------- #
import csv, os, glob
from Constants import *
from tqdm import tqdm
# ---------------------------------------------------------------------------- #
os.chdir('../../../../Desktop/')
CSVFiles = glob.glob('*.csv')
# ... | bsd-2-clause | 604,217,898,498,476,300 | 34.966102 | 80 | 0.45853 | false | 4.321792 | false | false | false |
rekab/biketl | biketl.py | 1 | 14700 | #!/usr/bin/python
"""Stitch together timelapse images with a Garmin track.
Draws graphs of Garmin data (speed, HR, cadence, elevation) along with a Google
map of position (updated every 10th of a mile). Google Maps has some very
aggressive rate limits, which means this script has to sleep _a lot_ and
frequently fail. ... | mit | -3,330,803,630,378,907,000 | 31.666667 | 143 | 0.678367 | false | 3.159252 | true | false | false |
epsy/sigtools | sigtools/_util.py | 1 | 4504 | # sigtools - Collection of Python modules for manipulating function signatures
# Copyright (c) 2013-2015 Yann Kaiser
#
# 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, inc... | mit | -1,107,576,725,662,127,000 | 26.631902 | 79 | 0.613899 | false | 4.446199 | false | false | false |
philipodonnell/paperbroker | paperbroker/adapters/quotes/GoogleFinanceQuoteAdapter.py | 1 | 5613 | import arrow
from ...assets import asset_factory, Option
from ...quotes import OptionQuote, Quote
from .QuoteAdapter import QuoteAdapter
from googlefinance import getQuotes
"""
Get current prices from Google Finance
"""
class GoogleFinanceQuoteAdapter(QuoteAdapter):
def __init__(self):
self._cache =... | mit | -8,827,368,968,645,760,000 | 30.897727 | 138 | 0.564582 | false | 3.908774 | false | false | false |
Lrcezimbra/subscriptions | subscriptions/core/migrations/0015_auto_20170920_0301.py | 1 | 1828 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-20 03:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0014_auto_20170624_0048'),
]
operations = [
migrations.AddField(
... | gpl-3.0 | 3,345,637,479,954,481,700 | 51.228571 | 359 | 0.520788 | false | 3.184669 | false | false | false |
JoshAshby/Fla.gr | app/controllers/flags/delete.py | 1 | 1960 | #!/usr/bin/env python
"""
fla.gr controller for deleting flags
For more information, see: https://github.com/JoshAshby/
http://xkcd.com/353/
Josh Ashby
2013
http://joshashby.com
joshuaashby@joshashby.com
"""
from seshat.route import autoRoute
from utils.baseHTMLObject import baseHTMLObject
from views.flags.flagDelT... | mit | -938,320,228,937,135,100 | 24.454545 | 103 | 0.62449 | false | 3.557169 | false | false | false |
CoreSecurity/pysap | examples/router_niping.py | 1 | 7348 | #!/usr/bin/env python2
# ===========
# pysap - Python library for crafting SAP's network protocols packets
#
# SECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved.
#
# The library was designed and developed by Martin Gallo from
# the SecureAuth's Innovation Labs team.
#
# This program is fre... | gpl-2.0 | -3,101,596,490,320,406,000 | 31.950673 | 107 | 0.605607 | false | 4.010917 | false | false | false |
111pontes/ydk-py | cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_lpts_ifib_oper.py | 1 | 12672 |
import re
import collections
from enum import Enum
from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum
from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict
from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI... | apache-2.0 | 5,088,838,015,105,870,000 | 43.463158 | 197 | 0.445786 | false | 3.741364 | false | false | false |
beatrizjesus/my-first-blog | mysite/settings.py | 1 | 2723 | #coding: utf-8
"""
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
""... | mit | 6,906,513,009,619,772,000 | 24.688679 | 71 | 0.689313 | false | 3.416562 | false | false | false |
Narcolapser/Little-Mote | wm.py | 1 | 3553 | import cwiid
import time
import uinput
class WiiMote (object):
def __init__(self,addr=None):
#save the wiimote address for later reference
self.addr = addr
#connect to the wiimote
self.mote = None
while self.mote is None:
try:
self.mote = cwiid.Wiimote()
except RuntimeError as e:
print "fa... | apache-2.0 | 467,865,063,283,979,100 | 21.630573 | 85 | 0.630172 | false | 2.584 | false | false | false |
boar/boar | boar/articles/forms.py | 1 | 2132 | import datetime
import time
from django import forms
from django.contrib.admin.widgets import FilteredSelectMultiple
from boar.articles.models import Article, Tag
from boar.articles.widgets import MarkItUpWidget
class ArticleAdminModelForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
# Make TagM... | bsd-3-clause | 5,179,197,279,134,125,000 | 37.071429 | 130 | 0.596154 | false | 3.911927 | false | false | false |
gekorob/liebraryrest | liebraryrest/api/books.py | 1 | 2344 | import json
from flask import Blueprint, Response, request
from liebraryrest.models import Book, User, Booking
blueprint = Blueprint('books', __name__, url_prefix='/api/books')
@blueprint.route('')
def book_list():
return Response(json.dumps(Book.serialize_list(Book.query.all())),
mimetype='a... | bsd-3-clause | -2,606,883,758,395,606,500 | 34.515152 | 102 | 0.553754 | false | 4.055363 | false | false | false |
CenterForOpenScience/lookit-api | accounts/migrations/0049_two_factor_auth_cleanup.py | 1 | 2863 | # Generated by Django 3.0.7 on 2020-08-04 22:04
from random import choices, randint
from string import ascii_letters, digits, punctuation
from django.contrib.auth.hashers import UNUSABLE_PASSWORD_PREFIX, make_password
from django.db import migrations
# Just want to highlight that we are distinguishing between these ... | apache-2.0 | -547,134,564,662,866,400 | 30.119565 | 86 | 0.701013 | false | 3.817333 | false | false | false |
ronaldsantos63/tkGAME | lib/widgets/game_frame.py | 1 | 2161 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
tkGAME - all-in-one Game library for Tkinter
Copyright (c) 2014+ Raphaël Seban <motus@laposte.net>
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 ... | gpl-3.0 | 929,661,510,890,461,400 | 19.571429 | 69 | 0.585648 | false | 4.130019 | false | false | false |
shivanshu21/docker-volume-vsphere | esx_service/utils/threadutils.py | 9 | 3955 | # Copyright 2016 VMware, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | -7,395,830,211,116,294,000 | 29.19084 | 87 | 0.591909 | false | 4.145702 | false | false | false |
snackattas/ShutTheBox | pkg/main.py | 1 | 38891 | """main.py - This file creates and configures the Google Cloud Endpoints
for the ShutTheBox game, and contains part of the game logic and statistical
methods."""
import endpoints
from protorpc import remote, messages, message_types
from google.appengine.ext import ndb
from google.appengine.api import memcache
import ... | mit | 5,379,919,921,991,045,000 | 44.5932 | 95 | 0.60847 | false | 4.287872 | false | false | false |
netrack/python-netrackclient | netrackclient/netrack/v1/network.py | 1 | 2752 | from netrackclient import errors
from netrackclient.netrack.v1 import constants
import collections
import ipaddress
_Network = collections.namedtuple("Network", [
"encapsulation",
"address",
"interface",
"interface_name",
])
class Network(_Network):
def __new__(cls, **kwargs):
kwargs = ... | lgpl-3.0 | -8,860,857,873,628,524,000 | 28.591398 | 80 | 0.597747 | false | 4.467532 | false | false | false |
boundary/pulse-api-cli | boundary/event_get.py | 4 | 1613 | #
# Copyright 2015 BMC Software, 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 ... | apache-2.0 | -2,112,440,596,593,151,700 | 34.065217 | 113 | 0.66088 | false | 3.786385 | false | false | false |
Tisseo/navitia | source/jormungandr/jormungandr/parking_space_availability/car/tests/star_test.py | 2 | 4311 | # encoding: utf-8
# Copyright (c) 2001-2014, Canal TP and/or its affiliates. All rights reserved.
#
# This file is part of Navitia,
# the software to build cool stuff with public transport.
#
# Hope you'll enjoy and contribute to this project,
# powered by Canal TP (www.canaltp.fr).
# Help us simplify mobility ... | agpl-3.0 | 186,277,712,400,421,250 | 31.413534 | 83 | 0.60334 | false | 3.794894 | false | false | false |
ampyche/ampyche | setup/crap/createdb.py | 1 | 2330 | #!/usr/bin/env python
import os, time
import sqlite3 as lite
import populatedb as pdb
class AmpycheApp():
def __init__(self):
ANSN = ('N', 'n', 'No', 'no')
ANSY = ('Y', 'y', 'Yes', 'yes')
self.ANSN = ANSN
self.ANSY = ANSY
self.pdb = pdb
def _get_selection(self):
print("""
\nWelcome to Ampych... | mit | 4,055,968,117,639,858,700 | 22.545455 | 62 | 0.624034 | false | 3.119143 | false | false | false |
wangmengcn/BeautifulPics | wallpaper.py | 1 | 4351 | # -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
import time
from sets import Set
import re
import os
import cookielib
# 构造 Request headers
agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36'
refer = 'http://interfacel... | mit | 9,067,254,202,223,429,000 | 31.097015 | 130 | 0.492444 | false | 3.753054 | false | false | false |
buildingenergy/buildingenergy-platform | landing/migrations/0003_auto__add_field_seeduser_default_organization.py | 1 | 5820 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'SEEDUser.default_organization'
db.add_column(u'landing_se... | apache-2.0 | 187,370,825,201,765,600 | 71.7625 | 206 | 0.571134 | false | 3.709369 | false | false | false |
pauljohnleonard/pod-world | Segway/rungekutta.py | 1 | 2537 |
"""
DO NOT MODIFY
Time steps a system using runge-kutta 4th order numerical integration
Uses a time step of h
"""
import numpy
class RungeKutta:
def __init__(self, state,time, h,model):
"""
Initialise simulation
state -- starting state
time -- time
h -- runga kutta time s... | gpl-2.0 | 7,965,845,920,631,956,000 | 26 | 138 | 0.528183 | false | 3.342556 | false | false | false |
infinity0n3/python-fabtotum | fabtotum/loaders/gerber/excellon_settings.py | 2 | 2928 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from argparse import PARSER
# Copyright 2015 Garret Fick <garret@ficksworkshop.com>
# 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:/... | gpl-3.0 | 3,470,824,948,019,611,600 | 26.895238 | 98 | 0.582309 | false | 4.350669 | false | false | false |
ShawnCorey/mrsl | mrsl.py | 1 | 5339 | import socket, threading, traceback
import curses
import curses.textpad
import datetime
from time import sleep
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-p','--port', default=80, type=int, help='Port number to listen on (default is 80)')
args = parser.parse_args()
PORT = args.port
socket... | lgpl-3.0 | -6,856,561,642,211,354,000 | 30.591716 | 105 | 0.505338 | false | 4.237302 | false | false | false |
ChemiKhazi/Sprytile | rx/joins/joinobserver.py | 2 | 1443 | from rx.core import ObserverBase
from rx.disposables import SingleAssignmentDisposable
class JoinObserver(ObserverBase):
def __init__(self, source, on_error):
super(JoinObserver, self).__init__()
self.source = source
self.on_error = on_error
self.queue = []
self.active_pl... | mit | 9,076,241,135,832,228,000 | 27.86 | 80 | 0.61192 | false | 4.030726 | false | false | false |
zhuolinho/linphone | submodules/linphone/tools/python/unittests/linphonetester.py | 8 | 32028 | from datetime import timedelta, datetime
from nose.tools import assert_equals
from copy import deepcopy
import linphone
import logging
import os
import sys
import time
import weakref
test_domain = "sipopen.example.org"
auth_domain = "sip.example.org"
test_username = "liblinphone_tester"
test_password = "secret"
test_... | gpl-2.0 | 337,906,858,719,774,660 | 50.825243 | 185 | 0.685213 | false | 3.788054 | true | false | false |
ItKindaWorks/ESP8266 | Home Automation/Part 2/MQTT_Logger.py | 1 | 2837 | #!/usr/bin/python
import sys
import os
import paho.mqtt.client as mqtt
import string
import datetime
import time
import logging
#keeps track of when we last turned the light on
onStartTime = 0
##############################
#Create and setup the logging subsystem
logger = None
logger = logging.getLogger(__name__)
l... | cc0-1.0 | -2,661,853,086,497,558,500 | 26.019048 | 92 | 0.656327 | false | 3.838972 | false | false | false |
srndic/mimicus | reproduction/fig11.py | 1 | 5327 | #!/usr/bin/env python
'''
Copyright 2014 Nedim Srndic, University of Tuebingen
This file is part of Mimicus.
Mimicus 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 o... | gpl-3.0 | -3,679,737,953,169,780,000 | 34.993243 | 80 | 0.594706 | false | 3.5 | false | false | false |
ernestyalumni/Propulsion | ccdroplet/setup.py | 1 | 1369 | from setuptools import setup, find_packages
from codecs import open
from os import path
__version__ = '0.0.1'
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# get the dependen... | gpl-2.0 | 2,096,139,193,927,262,200 | 33.225 | 96 | 0.680058 | false | 3.431078 | false | false | false |
vocky/svg-flask-test | arc.py | 1 | 6410 | # Copyright (c) 2005-2008, Enthought, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice,
# this list of conditions an... | apache-2.0 | -8,595,482,971,694,962,000 | 33.467742 | 97 | 0.625897 | false | 2.914961 | false | false | false |
32bitmicro/EDA | python/eda/eda/pcb.py | 1 | 45843 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2014, Paweł Wodnicki
# 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, t... | bsd-3-clause | 2,569,505,188,356,980,700 | 23.228858 | 181 | 0.616108 | false | 2.445766 | false | false | false |
OpenTherapeutics/transcode | tests/test_config.py | 1 | 1153 | import pytest
import transcode.conf
import transcode.render
def my_callback(source, *args, **kws):
pass
CFG_GOOD = {
'TEXT': {'transcoder': my_callback},
}
CFG_BAD = {
'MARK': {'transcoder': 42}
}
class TestConf:
def test_default_config(self):
for fmt, expected in (
(transcode... | mit | -1,325,778,167,555,772,200 | 25.813953 | 82 | 0.619254 | false | 3.792763 | false | false | false |
Cibiv/Teaser | tools/fastq2sam.py | 1 | 5577 | #!/usr/bin/env python
"""
Convert FASTQ output of simulators containing simulation information into SAM alignment file
"""
import traceback
import base64
def encode_qname(qname, retain_petag=True):
# return md5.new(str(qname)).hexdigest()
if qname[-2] == "/":
if retain_petag:
return base64.b64encode(qname[0:-2... | mit | -5,396,683,009,936,029,000 | 21.130952 | 131 | 0.636902 | false | 2.524672 | false | false | false |
arielmakestuff/loadlimit | test/unit/cli/test_main.py | 1 | 9995 | # -*- coding: utf-8 -*-
# test/unit/cli/test_main.py
# Copyright (C) 2016 authors and contributors (see AUTHORS file)
#
# This module is released under the MIT License.
"""Test main()"""
# ============================================================================
# Imports
# ========================================... | mit | 2,256,627,370,758,611,500 | 27.075843 | 78 | 0.587394 | false | 3.761761 | true | false | false |
dladd/pyFormex | pyformex/extra/pygl2ps/setup.py | 1 | 1773 | # $Id$
##
## This file is part of pyFormex 0.8.9 (Fri Nov 9 10:49:51 CET 2012)
## pyFormex is a tool for generating, manipulating and transforming 3D
## geometrical models by sequences of mathematical operations.
## Home page: http://pyformex.org
## Project page: http://savannah.nongnu.org/projects/pyformex/
##... | gpl-3.0 | 2,702,310,009,199,735,000 | 42.243902 | 80 | 0.689227 | false | 3.490157 | false | false | false |
severin-lemaignan/dialogs | src/dialogs/interpretation/discrimination.py | 1 | 16975 | # -*- coding: utf-8 -*-
"""This module implements the clarification process for ambiguous descriptions.
Given a description of an object (ambigouos or not) it returns, if found, the
object's identifier in oro. If necessary, it will query the human for additional
information.
"""
import logging
logger = logging.get... | bsd-3-clause | 7,504,683,858,154,541,000 | 40.503667 | 129 | 0.540677 | false | 4.481257 | false | false | false |
denever/discipline_terra | stock/urls.py | 1 | 3873 | from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required, permission_required
from stock.views import ProductListView, WarningProductListView, DangerProductListView, SearchProductListView
from stock.views import ProductByCategoryListView
from stock.views import Prod... | gpl-2.0 | -1,153,447,836,820,365,800 | 42.033333 | 109 | 0.487994 | false | 5.240866 | false | true | false |
jpmpentwater/traversing_knowledge_graphs | code/demo.py | 1 | 5856 | from optimize import *
from diagnostics import *
import configs
import argparse
from data import *
import copy
# parse command line arguments
parser = argparse.ArgumentParser()
parser.add_argument('config')
parser.add_argument('dataset_path')
parser.add_argument('-i', '--initial_params', default=None)
parser.add_argu... | mit | 2,815,330,726,600,916,500 | 33.650888 | 120 | 0.664788 | false | 3.477435 | true | false | false |
lesleymaraina/DataScience.Restaurants | ingest/ingest.py | 1 | 9239 |
"""
An ingest module
"""
from lxml import html
import requests
import json
from bs4 import BeautifulSoup
import re
#Python 3
import urllib.request
# #Python 2
# import urllib
import pymongo
import os
import pickle
class IngestSystem(object):
def __init__(self, cl):
self.cities = cl
def pull_and_l... | mit | 8,566,805,343,264,511,000 | 34.949416 | 155 | 0.471371 | false | 3.507593 | false | false | false |
Rahul91/Django_CRUD | pincode/views.py | 1 | 3469 | from django.shortcuts import render
from django.http import HttpResponse
from django.template.loader import get_template
from django.template import Context
from pincode.models import Pincode
from forms import PincodeForm
from django.http import HttpResponseRedirect
from django.core.context_processors import csrf
#fr... | mit | -1,278,550,043,495,505,200 | 23.785714 | 95 | 0.706255 | false | 3.053697 | false | false | false |
Kortemme-Lab/klab | klab/comms/mail.py | 1 | 4509 | #!/usr/bin/python
# encoding: utf-8
"""
mail.py
For email functions
Created by Shane O'Connor 2013
"""
from string import join
import email.Message
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from klab.fs.fsio import read_file
class MailServer(object):
def _... | mit | 632,048,279,746,665,200 | 38.217391 | 178 | 0.549346 | false | 4.132906 | false | false | false |
BenLatham/FLOSS-Agricultural-Simulation | simulation/migrations/0008_auto_20170828_2100.py | 1 | 3406 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-28 20:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('simulation', '0007_feeds_price'),
]
operations = [... | mit | 680,131,498,684,823,600 | 46.305556 | 150 | 0.571051 | false | 4.434896 | false | false | false |
mahak/cinder | cinder/api/common.py | 2 | 18596 | # Copyright 2010 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 requ... | apache-2.0 | 7,122,518,029,842,833,000 | 37.903766 | 79 | 0.607658 | false | 4.29568 | true | false | false |
abhayagiri/youtube-sync | youtube_sync/commands.py | 1 | 2083 | import binascii
import click
import jinja2
import os
import shutil
from . import app, tasks
instance_path = os.path.join(os.path.dirname(app.root_path), 'instance')
local_cfg_path = os.path.join(instance_path, 'local.cfg')
local_cfg_template_path = os.path.join(instance_path, 'local.cfg.tmpl')
def secret(length):
... | mit | -3,540,241,657,560,488,400 | 33.716667 | 101 | 0.655785 | false | 3.244548 | false | false | false |
limodou/uliweb | test/test_pyini.py | 1 | 14100 | #coding=utf8
from uliweb.utils.pyini import *
def test_sorteddict():
"""
>>> d = SortedDict()
>>> d
<SortedDict {}>
>>> d.name = 'limodou'
>>> d['class'] = 'py'
>>> d
<SortedDict {'class':'py', 'name':'limodou'}>
>>> d.keys()
['name', 'class']
>>> d.values()
['limodou', ... | bsd-2-clause | 8,745,944,110,796,426,000 | 22.260365 | 93 | 0.45872 | false | 2.955954 | true | false | false |
NMTHydro/Recharge | zobs/orecharge/Gauges/HF_precip_one.py | 1 | 5870 | import datetime
from dateutil import rrule
import arcpy, os
from arcpy import env
import numpy as np
# Set workspace to GIS gauge data location, loop through individual watersheds
arcpy.env.workspace = "C:\\Recharge_GIS\\nm_gauges.gdb"
fc = "nm_wtrs_11DEC15"
field = "USGS_Code"
cursor = arcpy.SearchCursor(fc)
# L... | apache-2.0 | 2,281,321,173,935,287,000 | 39.482759 | 139 | 0.53356 | false | 3.48368 | false | false | false |
dmccloskey/SBaaS_quantification | SBaaS_quantification/stage01_quantification_physiologicalRatios_query.py | 1 | 30898 | #lims
from SBaaS_LIMS.lims_experiment_postgresql_models import *
from SBaaS_LIMS.lims_sample_postgresql_models import *
from .stage01_quantification_physiologicalRatios_postgresql_models import *
from SBaaS_base.sbaas_base_query_update import sbaas_base_query_update
from SBaaS_base.sbaas_base_query_drop import sbaas... | mit | -2,891,780,877,875,105,300 | 71.189252 | 240 | 0.658856 | false | 3.758637 | false | false | false |
dhuppenkothen/BayesPSD | BayesPSD/mcmc.py | 1 | 27460 |
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
import numpy as np
import math
import sys
import scipy
import scipy.optimize
from scipy.stats.mstats import mquantiles as quantiles
import scipy.stats
### New: added possibility to use emcee for MCMCs
try:
import emcee
# import acor
... | bsd-2-clause | -5,221,126,648,205,251,000 | 34.386598 | 157 | 0.569592 | false | 3.849173 | false | false | false |
SirCmpwn/truecraft.io | truecraft/email.py | 1 | 1902 | import smtplib
import pystache
import os
import html.parser
from email.mime.text import MIMEText
from werkzeug.utils import secure_filename
from flask import url_for
from truecraft.database import db
from truecraft.objects import User
from truecraft.config import _cfg, _cfgi
def send_confirmation(user):
if _cfg("... | mit | -3,450,600,462,201,061,000 | 35.576923 | 118 | 0.618297 | false | 3.535316 | false | false | false |
joaduo/mepinta | core/python_core/mepinta/pipeline/lo/pipeline_evaluator/ProcessorArgsManager.py | 1 | 3800 | # -*- coding: utf-8 -*-
'''
Mepinta
Copyright (c) 2011-2012, Joaquin G. Duo, mepinta@joaquinduo.com.ar
This file is part of Mepinta.
Mepinta 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 th... | gpl-3.0 | 296,367,880,663,941,250 | 35.538462 | 108 | 0.687105 | false | 3.457689 | false | false | false |
granrothge/neutronpy | neutronpy/fileio/loaders/ice.py | 3 | 1564 | from collections import OrderedDict
import numpy as np
from ...data import Data
from ...instrument import Instrument
class Ice(Data):
r"""Loads ICE (NCNR) format ascii data file.
"""
def __init__(self):
super(Ice, self).__init__()
def load(self, filename, build_hkl=True, load_instrument=F... | mit | -5,627,910,622,072,859,000 | 26.928571 | 87 | 0.514066 | false | 4.010256 | false | false | false |
rit-sailing/website | main/migrations/0001_initial.py | 1 | 2192 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-18 02:14
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import phonenumber_field.modelfields
class Migration(migrations.Migration):
initial = True
... | mit | 1,183,421,625,357,386,800 | 47.711111 | 185 | 0.577099 | false | 3.541195 | false | false | false |
ppinard/pyxray | pyxray/composition.py | 2 | 10366 | """"""
__all__ = ["Composition"]
# Standard library modules.
import math
from types import MappingProxyType
import itertools
from fractions import Fraction
import re
# Third party modules.
import pyxray
# Local modules.
# Globals and constants variables.
CHEMICAL_FORMULA_PATTERN = re.compile(r"([A-Z][a-z]?)([0-9\.... | mit | 43,317,252,037,900,280 | 30.412121 | 116 | 0.613737 | false | 3.957999 | false | false | false |
sergiosvieira/cstore-warning | main.py | 1 | 4521 | #!env/bin/python
import requests
import lxml.html
import pprint
from sqlite3 import dbapi2 as sqlite3
def get_table():
payload = {
'keys': '',
'srch_disp': 1,
'srch_fab': -1,
'sec': 'busca.php',
'Submit': 'eviou',
'srch_from': '',
'srch_withctg': 'true',
... | apache-2.0 | -1,859,665,363,803,991,300 | 35.168 | 186 | 0.568458 | false | 3.25018 | false | false | false |
jabl/ibtopo2dot | src/ibtopotool.py | 2 | 7667 | #!/usr/bin/env python3
# -*- mode: python; -*-
# -*- coding: utf-8 -*-
# vim: set fileencoding=utf-8
"""
ibtopotool, a tool to do things with Infiniband topology.
Copyright (C) 2013-2020 Janne Blomqvist
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was ... | mit | 256,450,862,748,284,500 | 32.190476 | 90 | 0.520673 | false | 3.758333 | false | false | false |
maehler/seqpoet | seqpoet/tests/test_search.py | 1 | 2437 | from collections import defaultdict
import os
from nose.tools import raises
from nose.plugins.skip import SkipTest
from seqpoet.search import search, hamming_distance
from seqpoet import Sequence
from seqpoet import GenBank
from seqpoet.genbank import Location
class TestHammingDistance:
@raises(ValueError)
... | mit | -7,515,088,048,089,271,000 | 34.318841 | 88 | 0.620845 | false | 3.375346 | true | false | false |
asterisk/testsuite | tests/cdr/sqlite3/cdr_sqlite3.py | 2 | 4801 | #!/usr/bin/env python
"""Pluggable module for the sqlite3 test
Copyright (C) 2013, Digium, Inc.
Matt Jordan <mjordan@digium.com>
This program is free software, distributed under the terms of
the GNU General Public License Version 2.
"""
import sys
import logging
import sqlite3
import re
sys.path.append("lib/python"... | gpl-2.0 | -2,931,895,642,497,996,300 | 31.883562 | 80 | 0.576963 | false | 4.466047 | true | false | false |
0x0mar/king-phisher | king_phisher/server/pages.py | 1 | 3685 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# king_phisher/server/pages.py
#
# 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, thi... | bsd-3-clause | 9,211,992,379,730,732,000 | 38.202128 | 174 | 0.710176 | false | 3.550096 | false | false | false |
titilambert/teeawards | old/controllers/ladder.py | 1 | 2145 | from bottle import mako_view, request, response, redirect
from libs.lib import get_player_list
from libs.lib import job_list
from libs.rank import get_rank
from libs.teeworldsserver import twms
from libs.hooks import *
@mako_view('ladder')
@prepare_context
def ladder(sort='score', context={}, gametype=None):
co... | agpl-3.0 | 5,629,841,001,260,326,000 | 32.515625 | 81 | 0.578555 | false | 3.465267 | false | false | false |
jefftc/changlab | Betsy/Betsy/modules/annotate_genes_with_david.py | 1 | 4588 | from Module import AbstractModule
class Module(AbstractModule):
def __init__(self):
AbstractModule.__init__(self)
def run(
self, network, antecedents, out_attributes, user_options, num_cores,
outfile):
from genomicode import arrayplatformlib
from genomicode import filel... | mit | -7,182,829,996,638,434,000 | 37.554622 | 78 | 0.605929 | false | 2.924156 | false | false | false |
shsingh/ansible | lib/ansible/modules/storage/netapp/na_ontap_net_port.py | 38 | 7603 | #!/usr/bin/python
# (c) 2018-2019, NetApp, Inc
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],... | gpl-3.0 | -154,933,924,975,446,620 | 32.641593 | 123 | 0.598843 | false | 3.923117 | false | false | false |
edenhill/muckrake | muckrake/services/background_thread.py | 1 | 2892 | # Copyright 2015 Confluent 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 writing, s... | apache-2.0 | -2,832,471,914,038,739,000 | 33.843373 | 108 | 0.630705 | false | 4.297177 | false | false | false |
blab/nextstrain-augur | augur/mask.py | 1 | 3288 | """
Mask specified sites from a VCF file.
"""
from Bio import SeqIO
import pandas as pd
import os
import numpy as np
from .utils import run_shell_command
def get_mask_sites(vcf_file, mask_file):
'''
Creates a temporary file in correct format for vcftools to use
(two-column, tab-seperated: "ch... | agpl-3.0 | -2,466,841,330,359,204,400 | 33.354839 | 122 | 0.625304 | false | 3.753425 | false | false | false |
estaban/pyload | module/plugins/crypter/DataHuFolder.py | 1 | 2725 | # -*- coding: utf-8 -*-
############################################################################
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as #
# published by the Free Software Foundation, either version 3 of ... | gpl-3.0 | -7,027,289,889,388,146,000 | 46.807018 | 107 | 0.557431 | false | 4.135053 | false | false | false |
mikar/60-days-of-python | oop/basics/various/various_1.py | 1 | 3703 | """
Created on 22 Mar 2014
@author: Max Demian
"""
#==============================================================================
# Multiple Inheritance
#==============================================================================
# We use super() here. If we used direct class calls instead i.e.
# BaseClass.... | mit | -3,229,084,793,834,422,000 | 26.634328 | 79 | 0.564947 | false | 3.906118 | false | false | false |
xxsergzzxx/python-for-android | python-modules/twisted/twisted/conch/insults/client.py | 133 | 4251 | """
You don't really want to use this module. Try insults.py instead.
"""
from twisted.internet import protocol
class InsultsClient(protocol.Protocol):
escapeTimeout = 0.2
def __init__(self):
self.width = self.height = None
self.xpos = self.ypos = 0
self.commandQueue = []
sel... | apache-2.0 | 1,074,567,732,489,870,200 | 29.804348 | 78 | 0.489532 | false | 4.037037 | false | false | false |
willrp/willbuyer | backend/tests/unit/controller/api/cart/test_remove_controller.py | 1 | 3858 | import pytest
import responses
import re
from flask import json
from json import JSONDecodeError
from werkzeug.exceptions import HTTPException
from requests import ConnectionError
from backend.service import CartService
from backend.util.response.cart import CartSchema
from backend.util.response.error import ErrorSche... | mit | -556,904,506,098,188,350 | 29.125 | 129 | 0.600104 | false | 3.769306 | true | false | false |
Xinglab/SEASTAR | MATS/check_input.py | 1 | 1146 | #this script scans the input file for errors
import re,os,sys
res='replicate';
ifile=open(sys.argv[1]);
ifile.readline();
ilines=ifile.readlines();
len_group_1=-1;len_group_2=-1;
for i in ilines:
element=re.findall('[^\t]+',i);
inc1=re.findall('[^,]+',element[1]);skp1=re.findall('[^,]+',element[2]);
inc2=re.find... | gpl-3.0 | 3,884,763,541,801,427,000 | 28.384615 | 108 | 0.679756 | false | 2.71564 | false | false | false |
vik001ind/RSAExploits | RSAExploits/rsa_cracker.py | 1 | 1531 | """ RSA_Cracker: Cracks RSA key set by using various attacks """
from RSAExploits.exploits.common_modulus import Common_Modulus
from RSAExploits.exploits.wiener import Wiener
from RSAExploits.exploits.boneh_durfee import Boneh_Durfee
from RSAExploits.exploits.hastad import Hastad
from RSAExploits.exploits.fermat impor... | mit | -1,023,226,246,627,989,000 | 36.341463 | 75 | 0.69693 | false | 3.440449 | false | false | false |
mlperf/inference_results_v0.5 | closed/Google/code/ssd-large/tpu-ssd-large/home/kbuilder/mlperf-inference/google3/third_party/mlperf/inference/ssd/offline/ssd_model.py | 1 | 13883 | # Copyright 2018 Google. 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 agree... | apache-2.0 | 5,158,396,806,468,357,000 | 34.688946 | 80 | 0.649715 | false | 3.275065 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.