text stringlengths 0 1.05M | meta dict |
|---|---|
# Bower caching proxy specific settings.
REPO_ROOT = '/var/git'
REPO_URL = 'git://localhost/'
UPSTREAM_BOWER_REGISTRY = 'https://bower.herokuapp.com'
# Security - change this too.
ALLOWED_HOSTS = ['*']
SECRET_KEY = 'r30*fwaj6#%^*_i@@ges__+4g$79-v=dd5a^l75$%_b@35m^yu'
# Celery settings.
BROKER_URL = 'django://'
CELER... | {
"repo_name": "Tinche/django-bower-cache",
"path": "test_registry/settings.py",
"copies": "1",
"size": "2586",
"license": "mit",
"hash": -4423319453901364700,
"line_mean": 24.3529411765,
"line_max": 65,
"alpha_frac": 0.6071152359,
"autogenerated": false,
"ratio": 3.429708222811671,
"config_test... |
"""Bower installer class."""
import subprocess
from grow.sdk.installers import base_installer
class BowerInstaller(base_installer.BaseInstaller):
"""Bower installer."""
KIND = 'bower'
@property
def should_run(self):
"""Should the installer run?"""
return self.pod.file_exists('/bower... | {
"repo_name": "grow/pygrow",
"path": "grow/sdk/installers/bower_installer.py",
"copies": "2",
"size": "1323",
"license": "mit",
"hash": 1924898723169383200,
"line_mean": 33.8157894737,
"line_max": 88,
"alpha_frac": 0.6130007559,
"autogenerated": false,
"ratio": 4.323529411764706,
"config_test":... |
"""Bowtie abstract component classes.
All visual and control components inherit these.
"""
from typing import Any, Callable, Optional, ClassVar, Tuple # pylint: disable=unused-import
from abc import ABCMeta, abstractmethod
import string
from functools import wraps
import json
from datetime import datetime, date, tim... | {
"repo_name": "jwkvam/bowtie",
"path": "bowtie/_component.py",
"copies": "1",
"size": "10337",
"license": "mit",
"hash": -5091340146885537000,
"line_mean": 28.7040229885,
"line_max": 92,
"alpha_frac": 0.5989165135,
"autogenerated": false,
"ratio": 4.115047770700637,
"config_test": false,
"has... |
"""Bowtie cache functions."""
import flask
from flask_socketio import emit
import eventlet
from eventlet.queue import LightQueue
import msgpack
from bowtie._component import pack
def validate(key):
"""Check that the key is a string or bytestring.
That's the only valid type of key.
"""
if not isinst... | {
"repo_name": "jwkvam/bowtie",
"path": "bowtie/_cache.py",
"copies": "2",
"size": "2488",
"license": "mit",
"hash": 3653524947412111000,
"line_mean": 25.752688172,
"line_max": 93,
"alpha_frac": 0.5711414791,
"autogenerated": false,
"ratio": 4.092105263157895,
"config_test": false,
"has_no_key... |
#! box/bin/python
import imp
import sys
import os.path
from subprocess import call,Popen,PIPE
import platform
import re
from migrate.versioning import api
from app import db
from config import BASEDIR, SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO, SERVER_PORT
# This variable will be used to check the valid data t... | {
"repo_name": "femmerling/DirMaker",
"path": "box.py",
"copies": "1",
"size": "28252",
"license": "mit",
"hash": -2259438809806286000,
"line_mean": 45.0897226754,
"line_max": 203,
"alpha_frac": 0.6050191137,
"autogenerated": false,
"ratio": 3.30239625949737,
"config_test": false,
"has_no_keyw... |
"""
box.py
author: erich@emfeld.com
========================
This file is the main file that binds all the functions in the
emerald directory.
The file handles all generator and database operations from the command line.
Running the server is performed by this file.
The file depends on the emerald module.
"""
im... | {
"repo_name": "femmerling/EmeraldBox",
"path": "box.py",
"copies": "2",
"size": "4102",
"license": "mit",
"hash": 1678904302147234300,
"line_mean": 31.5634920635,
"line_max": 120,
"alpha_frac": 0.5338859093,
"autogenerated": false,
"ratio": 4.061386138613861,
"config_test": false,
"has_no_key... |
# boxcarpush
import os
import requests
from exceptions import *
class Boxcar(object):
"""Simple Python implementation of Boxcar Push API"""
def __init__(self, access_key=os.getenv('BOXCAR_ACCESS_TOKEN', None),
base_url="https://new.boxcar.io/api/notifications"):
"""
Initiali... | {
"repo_name": "ajcann/boxcar-push",
"path": "boxcarpush/__init__.py",
"copies": "1",
"size": "2220",
"license": "mit",
"hash": 9063040403951356000,
"line_mean": 27.4615384615,
"line_max": 73,
"alpha_frac": 0.5310810811,
"autogenerated": false,
"ratio": 4.457831325301205,
"config_test": false,
... |
"""Box class.
Represents a container that can be used to group other widgets.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from .widget import DOMWidget, register
from IPython.utils.traitlets import Unicode, Tuple, TraitError, Int, CaselessStrEnum
from IP... | {
"repo_name": "mattvonrocketstein/smash",
"path": "smashlib/ipy3x/html/widgets/widget_box.py",
"copies": "1",
"size": "3344",
"license": "mit",
"hash": -4202201796943467500,
"line_mean": 32.44,
"line_max": 84,
"alpha_frac": 0.6593899522,
"autogenerated": false,
"ratio": 3.9065420560747666,
"con... |
"""Box class.
Represents a container that can be used to group other widgets.
"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from .domwidget import DOMWidget
from .widget import Widget, register, widget_serialization
from traitlets import Unicode, Tuple, Int,... | {
"repo_name": "lancezlin/ml_template_py",
"path": "lib/python2.7/site-packages/ipywidgets/widgets/widget_box.py",
"copies": "2",
"size": "4520",
"license": "mit",
"hash": 3062928962049837600,
"line_mean": 37.9655172414,
"line_max": 109,
"alpha_frac": 0.6646017699,
"autogenerated": false,
"ratio":... |
"""Box class.
Represents a container that can be used to group other widgets.
"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from .widget import Widget, DOMWidget, register, widget_serialization
from traitlets import Unicode, Tuple, Int, CaselessStrEnum, Inst... | {
"repo_name": "ArcherSys/ArcherSys",
"path": "Lib/site-packages/ipywidgets/widgets/widget_box.py",
"copies": "1",
"size": "3740",
"license": "mit",
"hash": -2606047440084312000,
"line_mean": 34.619047619,
"line_max": 105,
"alpha_frac": 0.6518716578,
"autogenerated": false,
"ratio": 3.932702418506... |
BOXEE_APPLICATION_NAME = "iphone_remote"
BOXEE_SHARED_KEY = "b0xeeRem0tE!"
BOXEE_UDP_PORT = 2562
BOXEE_HTTP_PORT_DEFAULT = 8800
class CommandError(RuntimeError): pass
from .discoverer import Discoverer
from .remote_commands import CommandSpawner, CommandInterface
def main():
from optparse import OptionParser
... | {
"repo_name": "knorby/boxeeremotelib",
"path": "boxeeremotelib/__init__.py",
"copies": "1",
"size": "2244",
"license": "bsd-2-clause",
"hash": -3527537437096903700,
"line_mean": 36.4,
"line_max": 82,
"alpha_frac": 0.5806595365,
"autogenerated": false,
"ratio": 4.057866184448463,
"config_test": ... |
#Box Engine Client
#
#(C) 2016 Thomas Doylend
import pyglet
import simplejson
import qnet
from quickhash import quickhash
from objects import *
class Game:
def __init__(self):
self.all_chunks = {}
self.loaded_chunks = {}
self.immutable_namespace = DEFAULT_IMMUTABLE_NAMESPACE
... | {
"repo_name": "tdoylend/boxengine",
"path": "box-client.py",
"copies": "1",
"size": "1449",
"license": "mit",
"hash": -5376543665453524000,
"line_mean": 23.9827586207,
"line_max": 75,
"alpha_frac": 0.6162870945,
"autogenerated": false,
"ratio": 3.874331550802139,
"config_test": false,
"has_no... |
#Box Engine Server
#
#(C) 2016 Thomas Doylend
import qnet
import datetime
import time
import os
import getpass
from quickhash import quickhash
def yesno(prompt):
while True:
r = raw_input(prompt)
if r.upper().startswith('Y'):
return True
elif r.upper().startswith('N'):
... | {
"repo_name": "tdoylend/boxengine",
"path": "box-server.py",
"copies": "1",
"size": "1573",
"license": "mit",
"hash": 4850070616453893000,
"line_mean": 19.7105263158,
"line_max": 73,
"alpha_frac": 0.645899555,
"autogenerated": false,
"ratio": 3.5111607142857144,
"config_test": false,
"has_no_... |
import DeepNN as NN
import BoxesDots as BD
from Player import Player
from Trainer import Trainer
from Minimax import Minimax
import utils as UTIL
import sys as SYS
import time, random
import numpy as np
import copy
def main():
try:
dim = int(SYS.argv[1])
num_games = int(SYS.argv[2])
mode = int(SYS.argv[3])
... | {
"repo_name": "lmunro0402/ShallowBlue",
"path": "Game.py",
"copies": "1",
"size": "4181",
"license": "mit",
"hash": -4208912927778814500,
"line_mean": 27.25,
"line_max": 86,
"alpha_frac": 0.6369289644,
"autogenerated": false,
"ratio": 2.671565495207668,
"config_test": false,
"has_no_keywords"... |
""" Box for outputing to a pair of speakers.
"""
from .box import Box
class Speakers(Box):
SINK_TEMPLATE = None
def __init__(self, pipeline, name, device):
super(Speakers, self).__init__(name, pipeline)
self.add_sequence([
'audiomixer name=mixer',
'audiopanorama name... | {
"repo_name": "hodgestar/laghuis",
"path": "laghuis/speaker.py",
"copies": "1",
"size": "1222",
"license": "mit",
"hash": -907556963621346400,
"line_mean": 23.9387755102,
"line_max": 63,
"alpha_frac": 0.5834697218,
"autogenerated": false,
"ratio": 3.626112759643917,
"config_test": false,
"has... |
"""Box geometry."""
from __future__ import division
from .helpers import poparg
class Box(object):
"""A Box holds the geometry of a box with a position and a size.
Because of how it is typically used, it takes a single dictionary of
arguments. The dictionary of arguments has arguments popped from it, ... | {
"repo_name": "nedbat/cupid",
"path": "cupid/box.py",
"copies": "1",
"size": "5647",
"license": "mit",
"hash": -8905493352283105000,
"line_mean": 26.5463414634,
"line_max": 77,
"alpha_frac": 0.5105365681,
"autogenerated": false,
"ratio": 3.7151315789473682,
"config_test": false,
"has_no_keywo... |
"""Boxing clock setup file.
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'READM... | {
"repo_name": "zedr/boxing-clock",
"path": "setup.py",
"copies": "1",
"size": "1199",
"license": "bsd-3-clause",
"hash": -8576125700793025000,
"line_mean": 23.9791666667,
"line_max": 63,
"alpha_frac": 0.6271893244,
"autogenerated": false,
"ratio": 3.9055374592833876,
"config_test": false,
"ha... |
import urllib
import httplib
import json
from error import ERRORCODES, BoxError
import mimetypes
BOX_API_VERSION = "/2.0"
BOX_API_URL = "api.box.com"
BOX_DOWNLOAD_URL = "dl.boxcloud.com"
BOX_API_UPLOAD_URL = "upload.box.com"
class BoxClient(object):
def __init__(self, access_token=None, timeout=None):
... | {
"repo_name": "dipen30/boxapi",
"path": "box/client.py",
"copies": "1",
"size": "13730",
"license": "mit",
"hash": -4124956196060989400,
"line_mean": 35.1315789474,
"line_max": 125,
"alpha_frac": 0.556372906,
"autogenerated": false,
"ratio": 4.517933530766699,
"config_test": false,
"has_no_ke... |
import urllib
from error import BoxError
class OAuthHandler(object):
"""OAuth authentication handler"""
OAUTH_URL = 'https://www.box.com/api/oauth2/'
def __init__(self, client_id, client_secret):
self.client_id = client_id
self.client_secret = client_secret
def get_auth_url(self, ... | {
"repo_name": "dipen30/boxapi",
"path": "box/auth.py",
"copies": "1",
"size": "1740",
"license": "mit",
"hash": -4801864093868468000,
"line_mean": 28.4915254237,
"line_max": 109,
"alpha_frac": 0.524137931,
"autogenerated": false,
"ratio": 4.371859296482412,
"config_test": false,
"has_no_keywo... |
"""Box node for use in geometry attribute of Shapes"""
from vrml import cache
from OpenGLContext.arrays import array
from OpenGL.arrays import vbo
from OpenGL.GL import *
from vrml.vrml97 import basenodes
from vrml import protofunctions
class Box( basenodes.Box ):
"""Simple Box object of given size centered about ... | {
"repo_name": "alexus37/AugmentedRealityChess",
"path": "pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/box.py",
"copies": "2",
"size": "5301",
"license": "mit",
"hash": 3893121521395667500,
"line_mean": 36.8642857143,
"line_max": 88,
"alp... |
"""Box packing algorithm
This is a fairly dumb algorithm.
The gist of it is as follows:
1. Shuffle the list of all boxes
2. Take the summed area of all boxes and create a huge container
3. For every box, insert it into the huge container
5. If we're satisfied with the result, return it
5. Switch list position of two... | {
"repo_name": "yostudios/Spritemapper",
"path": "spritecss/packing/__init__.py",
"copies": "2",
"size": "7833",
"license": "mit",
"hash": 446870628875549950,
"line_mean": 34.1255605381,
"line_max": 79,
"alpha_frac": 0.5748755266,
"autogenerated": false,
"ratio": 3.371932845458459,
"config_test"... |
# Box plots with custom fill colors
import matplotlib.pyplot as plt
import numpy as np
# Random test data
np.random.seed(123)
all_data = [np.random.normal(0, std, 100) for std in range(1, 4)]
fig, axes = plt.subplots(nrows=1, ncols=2, figsize=(12, 5))
# rectangular box plot
bplot1 = axes[0].boxplot(all_data,
... | {
"repo_name": "bundgus/python-playground",
"path": "matplotlib-playground/examples/statistics/boxplot_color_demo.py",
"copies": "1",
"size": "1187",
"license": "mit",
"hash": -3153910512722320400,
"line_mean": 28.675,
"line_max": 65,
"alpha_frac": 0.6048862679,
"autogenerated": false,
"ratio": 3.... |
# Box plot - violin plot comparison
#
# Note that although violin plots are closely related to Tukey's (1977) box plots,
# they add useful information such as the distribution of the sample data (density trace).
#
# By default, box plots show data points outside 1.5 x the inter-quartile range as outliers
# above or bel... | {
"repo_name": "bundgus/python-playground",
"path": "matplotlib-playground/examples/statistics/boxplot_vs_violin_demo.py",
"copies": "1",
"size": "1197",
"license": "mit",
"hash": 8453933585195591000,
"line_mean": 29.6923076923,
"line_max": 91,
"alpha_frac": 0.6850459482,
"autogenerated": false,
"... |
box = "s010"
import json
import time
import requests
from read_line import read_line, write
token = "2567e7599f9ee43f567152ca954d482160566fb5"
def post(path, data):
response = requests.post('http://dagfro.de:9000/api/box/' + path + '?format=json',
data=json.dumps(data),
... | {
"repo_name": "DagF/smart-storage",
"path": "main.py",
"copies": "1",
"size": "1161",
"license": "mit",
"hash": -1598774142280397000,
"line_mean": 28.025,
"line_max": 86,
"alpha_frac": 0.5004306632,
"autogenerated": false,
"ratio": 3.55045871559633,
"config_test": false,
"has_no_keywords": fa... |
BOXSIZE = 48
BOARDTILEWIDTH = 16
BOARDTILEHEIGHT = 12
BOARDWIDTH = BOARDTILEWIDTH * BOXSIZE
BOARDHEIGHT = BOARDTILEHEIGHT * BOXSIZE
PROJ_OFFSET = 7
FPS = 25
MIN_X = 0 - (BOXSIZE / 4)
MIN_Y = 0 - (BOXSIZE / 4)
MAX_X = (BOXSIZE * BOARDTILEWIDTH) - BOXSIZE + (BOXSIZE / 4)
MAX_Y = (BOXSIZE * BOARDTILEHEIGHT) - BOXSIZE + ... | {
"repo_name": "etaub47/scion",
"path": "src/constants.py",
"copies": "1",
"size": "1752",
"license": "mit",
"hash": 2019450131207253000,
"line_mean": 19.8571428571,
"line_max": 105,
"alpha_frac": 0.6535388128,
"autogenerated": false,
"ratio": 2.1845386533665834,
"config_test": false,
"has_no_... |
" box spar "
from gpkit import Model, parse_variables, SignomialsEnabled
from .sparloading import SparLoading
from .gustloading import GustL
from gpkitmodels.GP.materials import cfrpud, cfrpfabric, foamhd
from gpkitmodels import g
#pylint: disable=exec-used, undefined-variable, unused-argument, invalid-name
class Box... | {
"repo_name": "convexengineering/gplibrary",
"path": "gpkitmodels/GP/aircraft/wing/boxspar.py",
"copies": "1",
"size": "3014",
"license": "mit",
"hash": -6533160208664262000,
"line_mean": 32.1208791209,
"line_max": 77,
"alpha_frac": 0.4372926344,
"autogenerated": false,
"ratio": 3.939869281045752... |
#Box stacking dynamic programming
#Java code https://github.com/mission-peace/interview/blob/master/src/com/interview/dynamic/BoxStacking.java
class Dimension(object):
def __init__(self, height = 0, length = 0, width = 0):
self.height = height
self.length = length
self.width = width
... | {
"repo_name": "rtkasodariya/interview",
"path": "python/dynamic/boxstacking.py",
"copies": "1",
"size": "2245",
"license": "apache-2.0",
"hash": 7731407998647518000,
"line_mean": 31.5362318841,
"line_max": 109,
"alpha_frac": 0.5888641425,
"autogenerated": false,
"ratio": 3.692434210526316,
"con... |
# boxwich.py
#
# Triggs, Gabriel
# 2014-10-26
# Developed for HackNC with Jon Johnson and Taylor King
import RPi.GPIO as GPIO
import time, datetime
import requests
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
TOGGLE_SWITCH = 23
BUTTON = 24
LED = 25
GPIO.setup(TOGGLE_SWITCH, GPIO.IN)
GPIO.setup(BUTTON, GPIO.IN)
GPI... | {
"repo_name": "gabrieltriggs/boxwich",
"path": "boxwich.py",
"copies": "1",
"size": "1976",
"license": "mit",
"hash": 5714545961078687000,
"line_mean": 23.0975609756,
"line_max": 101,
"alpha_frac": 0.7312753036,
"autogenerated": false,
"ratio": 3.106918238993711,
"config_test": false,
"has_no... |
"""
Boykov-Kolmogorov algorithm for maximum flow problems.
"""
from collections import deque
from operator import itemgetter
import networkx as nx
from networkx.algorithms.flow.utils import build_residual_network
__all__ = ['boykov_kolmogorov']
def boykov_kolmogorov(G, s, t, capacity='capacity', residual=None,
... | {
"repo_name": "sserrot/champion_relationships",
"path": "venv/Lib/site-packages/networkx/algorithms/flow/boykovkolmogorov.py",
"copies": "1",
"size": "13595",
"license": "mit",
"hash": 1988752342911425500,
"line_mean": 35.0610079576,
"line_max": 83,
"alpha_frac": 0.5624126517,
"autogenerated": fals... |
# bo.zhang@ki.se
# A simplified version of DeMix data processing workflow.
# Centroid Version
import sys
import urllib
import subprocess
import tempfile
import argparse
import os
import feature_ms2_clone
apars = argparse.ArgumentParser()
# Set ONE mzML file converted from RAW file, require both MS1 and MS2 in Cent... | {
"repo_name": "userbz/DeMix",
"path": "deprecated/Version_1/run_demix_pipeline_Centroid.py",
"copies": "1",
"size": "3368",
"license": "mit",
"hash": -4400645186182652400,
"line_mean": 35.6086956522,
"line_max": 169,
"alpha_frac": 0.6778503563,
"autogenerated": false,
"ratio": 2.8019966722129785,... |
# bo.zhang@ki.se
# A simplified version of DeMix data processing workflow.
import sys
import urllib
import subprocess
import tempfile
import argparse
import os
import feature_ms2_clone
apars = argparse.ArgumentParser()
# Set ONE mzML file converted from RAW file, require both MS1 and MS2 in profile mode.
apars.add... | {
"repo_name": "userbz/DeMix",
"path": "deprecated/Version_1/run_demix_pipeline.py",
"copies": "1",
"size": "3412",
"license": "mit",
"hash": -7694717086924122000,
"line_mean": 36.9111111111,
"line_max": 169,
"alpha_frac": 0.6767291911,
"autogenerated": false,
"ratio": 2.7967213114754097,
"confi... |
# bo.zhang@ki.se
# A simplified version of DeMix data processing workflow.
# TOPP 2.0 with MS-GF+ integrated
import sys
import urllib
import subprocess
import tempfile
import argparse
import os
import feature_ms2_clone
apars = argparse.ArgumentParser()
# Set ONE mzML file converted from RAW file, require both MS1 ... | {
"repo_name": "userbz/DeMix",
"path": "deprecated/Version_1/run_demix_pipeline_TOPP2.py",
"copies": "1",
"size": "3727",
"license": "mit",
"hash": 385346849983975700,
"line_mean": 37.4226804124,
"line_max": 169,
"alpha_frac": 0.6756104105,
"autogenerated": false,
"ratio": 2.891388673390225,
"co... |
# Bo.Zhang@ki.se
# DO NOT RUN IT DIRECTLY
# peptide theoretical mass calculation for Morpheus PSM list
# predefined masses for modifications: 'Ac-', 'oxM', 'cmC', 'daN', 'daQ'
import sys
import csv
import pandas
from pyteomics import mass, parser
csvout = csv.writer(sys.stdout, delimiter='\t')
composition = mass.st... | {
"repo_name": "userbz/DeMix",
"path": "deprecated/Version_0/psmTheoretical.py",
"copies": "1",
"size": "3707",
"license": "mit",
"hash": -8988900187862414000,
"line_mean": 32.3963963964,
"line_max": 137,
"alpha_frac": 0.5864580523,
"autogenerated": false,
"ratio": 3.0611065235342694,
"config_te... |
# Bo.Zhang@ki.se
# extending PSM list from second-pass Morpheus search for rescoring
import sys
import pymzml
import numpy
import pandas
def nearest(target, arr):
try:
return arr[numpy.abs(arr - target).argmin()]
except:
return 0
def peak_pair(target, arr):
match = [nearest(p, arr) for ... | {
"repo_name": "userbz/DeMix",
"path": "deprecated/Version_0/post1_psmMzmlExtend.py",
"copies": "1",
"size": "1529",
"license": "mit",
"hash": -8807728232289719000,
"line_mean": 27.3148148148,
"line_max": 82,
"alpha_frac": 0.5814257685,
"autogenerated": false,
"ratio": 3.1525773195876288,
"confi... |
# bo.zhang@ki.se
# Morpheus AS rescoring
import sys
import csv
import numpy
import pandas
from scipy.stats import norm
csvout = csv.writer(sys.stdout, delimiter='\t')
def _calc_parameters(df, decoy=False, tol_ms2=20):
# use only high quality PSMs (original FDR < 5%)
dx = df[(df["Q-Value (%)"] < 5) & (df['De... | {
"repo_name": "userbz/DeMix",
"path": "deprecated/Version_0/post2_psmRescore.py",
"copies": "1",
"size": "3389",
"license": "mit",
"hash": -4696451655026893000,
"line_mean": 34.3020833333,
"line_max": 103,
"alpha_frac": 0.6125700797,
"autogenerated": false,
"ratio": 2.952090592334495,
"config_t... |
# bo.zhang@ki.se
# precursor mass recalibration based on the first-pass Morpheus search
# spectral cloning based on TOPP feature map
# MGF generation
import sys
import os
import csv
import subprocess
import cPickle
import bz2
import tempfile
from multiprocessing import Process
import pandas
import numpy
from sklearn... | {
"repo_name": "userbz/DeMix",
"path": "deprecated/Version_0/pre1_featureLockmassClone.py",
"copies": "1",
"size": "3556",
"license": "mit",
"hash": -12619190913913932,
"line_mean": 30.7589285714,
"line_max": 136,
"alpha_frac": 0.6234533183,
"autogenerated": false,
"ratio": 3.081455805892548,
"c... |
# bo.zhang@ki.se
# PSM list trimmer for Morpheus-AS rescored result
import sys
import csv
def load_psm(fh, baselen=7):
''' load MorpheusAS PSM table '''
psm = []
rd = csv.reader(fh, delimiter='\t')
hd = rd.next()
for row in rd:
if int(row[hd.index('Missed Cleavages')]) > 3:
co... | {
"repo_name": "userbz/DeMix",
"path": "deprecated/Version_0/post3_psmFilter.py",
"copies": "1",
"size": "4602",
"license": "mit",
"hash": -5176727959418006000,
"line_mean": 27.7625,
"line_max": 118,
"alpha_frac": 0.5469361147,
"autogenerated": false,
"ratio": 2.9690322580645163,
"config_test": ... |
# Bo.Zhang@ki.se
# the parallel worker script for mass recalibration and MGF generation
# DO NOT RUN IT DIRECTLY
import sys
import os
import re
import cPickle
import bz2
import gzip
import lxml.etree
import xml.etree
import pymzml
MS1_Precision = 1e-5
MS2_Precision = 2e-5
def pickle_load(fn):
f = bz2.BZ2File(fn... | {
"repo_name": "userbz/DeMix",
"path": "deprecated/Version_0/_mzml2mgf.py",
"copies": "1",
"size": "4079",
"license": "mit",
"hash": 8284638754986385000,
"line_mean": 33.2773109244,
"line_max": 102,
"alpha_frac": 0.4452071586,
"autogenerated": false,
"ratio": 3.7838589981447126,
"config_test": f... |
bp1="""3
*
***
******"""
def base(stars):
line = '+'
line+= '-----'*stars
return line[:-2]+'+'
def blank(blanks):
line = " "*blanks
return line[:-2]
def walls(stars):
line = '|'
line+= ' '*stars
return line[:-2]+'|'
def split_line(line):
outty=[]
cur=line[0]
... | {
"repo_name": "jamtot/DailyChallenge",
"path": "ascii_house (21sep2015)/house.py",
"copies": "1",
"size": "1708",
"license": "mit",
"hash": 5618566084530194000,
"line_mean": 18.8604651163,
"line_max": 41,
"alpha_frac": 0.4303278689,
"autogenerated": false,
"ratio": 3.5216494845360824,
"config_t... |
## BP for a three layers Neural Network, mean square loss
import numpy as np
import matplotlib.pyplot as plt
import time
def sigmoid(x):
return 1.0 / (1.0 + np.exp(-x))
def batchGD_bp(X, y, d=3, nH=10, c=3, lr=0.8, T=100, eps=0.0):
"""
BP算法, 每轮迭代使用全部样本
:param X: 训练样本的特征矩阵
:param y: 训练样本的标签向量
... | {
"repo_name": "Determined22/Assignments-PatternRecognition-2016Fall",
"path": "BP.py",
"copies": "1",
"size": "7403",
"license": "mit",
"hash": -3617210821451468000,
"line_mean": 36.8806818182,
"line_max": 128,
"alpha_frac": 0.4822258887,
"autogenerated": false,
"ratio": 2.05517879161529,
"conf... |
# bpi.py
# Description: The Benthic Terrain Modeler (BTM) functions as a toolbox
# within ArcMap, and relies on a methodology to analyze benthic
# terrain from input multibeam bathymetry in ESRI's GRID (raster)
# format. The BTM toolbox contains a set of tools that allow
# ... | {
"repo_name": "EsriOceans/btm",
"path": "Install/toolbox/scripts/bpi.py",
"copies": "1",
"size": "3010",
"license": "mpl-2.0",
"hash": 7766775533899246000,
"line_mean": 39.2328767123,
"line_max": 81,
"alpha_frac": 0.6561461794,
"autogenerated": false,
"ratio": 3.4597701149425286,
"config_test":... |
BPM = 128.000
SEC_BEAT = 60. / BPM
N_DANCER = 7
N_PART = 13
def bbf2sec(bbf):
tokens = bbf.split('-')
bar = int(tokens[0]) - 1
beat = int(tokens[1]) - 1
frac = 0
if len(tokens) >= 3:
a, b = tokens[2].split('/')
frac = float(a) / float(b)
sec = (bar * 4 + beat + frac) * SEC_BEAT
... | {
"repo_name": "kevin00036/NTUEE_light_dance",
"path": "editor/translate.py",
"copies": "1",
"size": "2605",
"license": "mit",
"hash": -4622727926815400000,
"line_mean": 23.8095238095,
"line_max": 75,
"alpha_frac": 0.452975048,
"autogenerated": false,
"ratio": 3.13855421686747,
"config_test": fa... |
import numpy as np
#Array of layer sizes
ls = np.array([2, 4, 4, 1])
n = len(ls)
#List of weight matrices (each a numpy array)
W = []
#Initialize weights to small random values
for i in range(n - 1):
W.append(np.random.randn(ls[i], ls[i + 1]) * 0.1)
#List of bias vectors initialized to small random values
B = []
fo... | {
"repo_name": "nicholastoddsmith/pythonml",
"path": "bprop.py",
"copies": "1",
"size": "1935",
"license": "mit",
"hash": -8939000728901169000,
"line_mean": 23.8076923077,
"line_max": 63,
"alpha_frac": 0.6046511628,
"autogenerated": false,
"ratio": 2.4037267080745344,
"config_test": false,
"ha... |
bl_info = {
'name': 'Export Scene Lights',
'description': "Export scene light information (name, type, location, "
"rotations, scale)",
'author': "Paul Tunison",
'version': (0, 1),
'blender': (2, 6, 9),
'location': 'File > Export > Scene Lights',
'category': 'Import-Expo... | {
"repo_name": "Kitware/super3d",
"path": "scripts/blender/io_export_scene_lights.py",
"copies": "1",
"size": "6387",
"license": "bsd-3-clause",
"hash": 6280109783855332000,
"line_mean": 37.7090909091,
"line_max": 104,
"alpha_frac": 0.6162517614,
"autogenerated": false,
"ratio": 3.9112063686466625... |
#!BPY
# -*- coding: UTF-8 -*-
# Auto BreakDown on Piano
#
# 2017.10.29 Natukikazemizo
import bpy
import os
import utils_log
# CONSTANTS
SCENE_NAME = "Root.DorothyLoris"
LEFT = "L"
RIGHT = "R"
ART_NORMAL = "NR"
ART_SLUR = "SL"
ART_TENUTO = "TN"
ART_STACCATO = "ST"
# Articulation Dictionary
ART_DIC = {
ART_NORMAL... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/auto_breakdown_piano.py",
"copies": "1",
"size": "23560",
"license": "mit",
"hash": -7531279273341061000,
"line_mean": 30.7092866756,
"line_max": 280,
"alpha_frac": 0.4817911715,
"autogenerated": false,
"ratio": 2.8222328701485386,
... |
#!BPY
# -*- coding: UTF-8 -*-
# Auto BreakDown on Piano
#
# 2017.11.05 Natukikazemizo
import bpy
import os
import utils_log
# CONSTANTS
SCENE_NAME = "Root.DorothyLoris"
TARGETS = [
"Index_T.L",
"Middle_T.L",
"Ring_T.L",
"Little_T.L",
"Index_T.R",
"Middle_T.R",
"Ring_T.R",
"Little_T.R"... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/repair_data/flip_finger_y.py",
"copies": "1",
"size": "1390",
"license": "mit",
"hash": -6052207111323614000,
"line_mean": 16.8205128205,
"line_max": 60,
"alpha_frac": 0.564028777,
"autogenerated": false,
"ratio": 2.7634194831013916,... |
#!BPY
# -*- coding: UTF-8 -*-
# Clear BreakDown KeyFrames
#
# 2017.10.29 Natukikazemizo
import bpy
import os
import utils_log
# CONSTANTS
SCENE_NAME = "Root.DorothyLoris"
# Articulation Dictionary
START_FRAME = 3048
FRAME_PAR_MEASURE = 48
MEASURE = 2
#Classes
# PARAMETER
ARMATURE_NAMES = ["Dorothy.Armature", "Lor... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/clear_breakdown.py",
"copies": "1",
"size": "1059",
"license": "mit",
"hash": -5814287270250950000,
"line_mean": 18.6111111111,
"line_max": 66,
"alpha_frac": 0.6619452314,
"autogenerated": false,
"ratio": 3.0964912280701755,
"confi... |
#!BPY
# -*- coding: UTF-8 -*-
# Copy Bone Constraints from Armature to another Armature
#
# 2016.01.31 Natukikazemizo
import bpy
import math
import re
print("Copy Bone Constraints START")
fromArmature = "Albatrus_Armature"
#toArmature = "SD_Albatrus_Armature"
toArmature = "Nothern_Armature"
fromArmatureConstraintsD... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/recasting/copy_bone_constraints.py",
"copies": "1",
"size": "2903",
"license": "mit",
"hash": 853326311437186400,
"line_mean": 36.2307692308,
"line_max": 80,
"alpha_frac": 0.5759559077,
"autogenerated": false,
"ratio": 4.015214384508... |
#!BPY
# -*- coding: UTF-8 -*-
# Copy Bone Constraints from Armature to another Armature
#
# 2017.10.15 Natukikazemizo
import bpy
import math
import os
import re
import utils_log
# init logger
global logger
logger = utils_log.Util_Log(os.path.basename(__file__))
logger.start()
toArmature = "Dorothy.Armature"
for fro... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/copy_bone_constraints.py",
"copies": "1",
"size": "2795",
"license": "mit",
"hash": -2304357341562226200,
"line_mean": 44.0967741935,
"line_max": 82,
"alpha_frac": 0.6175313059,
"autogenerated": false,
"ratio": 4.196696696696697,
"... |
#!BPY
# -*- coding: UTF-8 -*-
# Copy Bone Limits from Armature to another Armature
#
# 2016.09.05 Natukikazemizo
import bpy
import math
targetTextObjectName = "Text0"
cursorText0 = "|"
cursorText1 = ""
textParFrame = 1
frameParMeter = 100
ctrlObjectName = "Text_C"
ctrlCursorObjectName = "Text_Cursor_C"
sentence = '... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/recasting/ctrl_handlers.py",
"copies": "1",
"size": "1177",
"license": "mit",
"hash": 6587209568301246000,
"line_mean": 25.75,
"line_max": 70,
"alpha_frac": 0.6805437553,
"autogenerated": false,
"ratio": 3.13031914893617,
"config_t... |
#!BPY
# -*- coding: UTF-8 -*-
# Export Custome Shape Settings
#
# 2017.10.22 Natukikazemizo
import bpy
import os
import utils_log
import utils_io_csv
# Constants
WORK_FILE_NAME = "pose_constraints.csv"
# init logger
global logger
logger = utils_log.Util_Log(os.path.basename(__file__))
logger.start()
bone_data = []... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/pose_constraints_exp.py",
"copies": "1",
"size": "2910",
"license": "mit",
"hash": -5840284236926648000,
"line_mean": 28.1,
"line_max": 55,
"alpha_frac": 0.5051546392,
"autogenerated": false,
"ratio": 2.9693877551020407,
"config_te... |
#!BPY
# -*- coding: UTF-8 -*-
# Flip & Paste For SelectedBones And Setted Flame
#
# 2016.10.22 Natukikazemizo
import bpy
#Copy Pose Function
def copy_pose(srcFrame, destFrame, flip):
bpy.context.scene.frame_set(srcFrame)
bpy.ops.pose.copy()
bpy.context.scene.frame_set(destFrame)
bpy.ops.pose.paste(flip... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/recasting/flip_next_paste_pose.py",
"copies": "1",
"size": "1101",
"license": "mit",
"hash": 4237307097336115700,
"line_mean": 27.9736842105,
"line_max": 68,
"alpha_frac": 0.6067211626,
"autogenerated": false,
"ratio": 2.928191489361... |
#!BPY
# -*- coding: UTF-8 -*-
# import pose bone constraints
#
# 2017.10.22 Natukikazemizo
import bpy
import os
import utils_log
import utils_io_csv
# Constants
WORK_FILE_NAME = "pose_constraints.csv"
BONE_NAME = 0
CONSTRAINT_NAME = 1
MUTE = 2
TARGET = 3
SUBTARGET_BONE_NAME = 4
EXTRAPOLATE = 5
FROM_MIN_X = 6
FROM_... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/pose_constraints_imp.py",
"copies": "1",
"size": "3583",
"license": "mit",
"hash": 6431817220893938000,
"line_mean": 30.7079646018,
"line_max": 74,
"alpha_frac": 0.5994976277,
"autogenerated": false,
"ratio": 2.953833470733718,
"co... |
#!BPY
# -*- coding: UTF-8 -*-
# MoveKeys By Name
#
# 2016.02.11 Natukikazemizo
import bpy
import math
import re
print("### START ###")
#targetNames = ["0300_01_Ryujo_Tall_T.002", "RJ_Armature", "0300_SD_RJ_T.002", "0300_SD_RJ_Bone", "EB0010_Nothern_T", "EB0010_Nothern_Armature"]
targetNames = ["RJ_Armature","0300_01_... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/recasting/MoveKeys.py",
"copies": "1",
"size": "1819",
"license": "mit",
"hash": 5480712814504836000,
"line_mean": 19.6818181818,
"line_max": 144,
"alpha_frac": 0.5799890049,
"autogenerated": false,
"ratio": 1.841093117408907,
"con... |
#!BPY
# -*- coding: UTF-8 -*-
#
# Debug All Utilities
#
#
#
# 2017.08.14 Natukikazemizo
import importlib
import os
import utils_converter
import utils_log
import utils_io_csv
#reload all user pythons
importlib.reload(utils_converter)
importlib.reload(utils_log)
importlib.reload(utils_io_csv)
#constants
PY_NAME = "u... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/utils/utils_0000_debug_all.py",
"copies": "1",
"size": "1509",
"license": "mit",
"hash": -259199486817846370,
"line_mean": 19.6712328767,
"line_max": 71,
"alpha_frac": 0.6838966203,
"autogenerated": false,
"ratio": 2.553299492385787,... |
"""
Name: 'Nexus Buddy 2 (.br2)...'
Blender: 249
Group: 'Export'
Tooltip: 'Export to Nexus Buddy 2 format (.br2).'
"""
__author__ = ["Deliverator"]
__url__ = ("")
__version__ = "0.1"
__bpydoc__ = """\
Nexus Buddy 2 Import
"""
######################################################
# Importing modules
################... | {
"repo_name": "venetianthief/civ-dbs",
"path": "older/OLD_export_br2.py",
"copies": "1",
"size": "11905",
"license": "mit",
"hash": 521479527875413060,
"line_mean": 33.8099415205,
"line_max": 190,
"alpha_frac": 0.5988240235,
"autogenerated": false,
"ratio": 3.1586627752719556,
"config_test": fa... |
"""
Name: 'Nexus Buddy 2 (.br2)...'
Blender: 249
Group: 'Export'
Tooltip: 'Export to Nexus Buddy 2 format (.br2).'
"""
__author__ = ["Deliverator"]
__url__ = ("")
__version__ = "0.1"
__bpydoc__ = """\
Nexus Buddy 2 Import
"""
######################################################
# Importing modules
###############... | {
"repo_name": "venetianthief/civ-dbs",
"path": "older/export_br2.py",
"copies": "1",
"size": "12517",
"license": "mit",
"hash": 8123770639909585000,
"line_mean": 32.4705882353,
"line_max": 188,
"alpha_frac": 0.641847088,
"autogenerated": false,
"ratio": 2.833823862350011,
"config_test": false,
... |
#!BPY
# -*- coding: UTF-8 -*-
#
# read/write CSV file
#
#
# 2017.09.09 Natukikazemizo
import bpy
import csv
root_path = bpy.path.abspath("//") + "data/"
"""Def root path"""
def write(file_name, data, enc = 'utf-8'):
"""write to csv"""
try:
# write with UTF-8
if enc == 'utf-8':
wit... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/utils/utils_io_csv.py",
"copies": "1",
"size": "1742",
"license": "mit",
"hash": -4330157018049012000,
"line_mean": 28.5254237288,
"line_max": 78,
"alpha_frac": 0.509184845,
"autogenerated": false,
"ratio": 3.7381974248927037,
"con... |
#!BPY
# -*- coding: UTF-8 -*-
# Read MIDI File
#
# 2017.10.12 Natukikazemizo
#
import bpy
import os
import utils_log
import utils_io_csv
import pretty_midi
import math
# CONSTANT OF PARAMETERS
PIANO_ARMATURE_NAME = "Piano_Armature"
START_FRAME = 3000
FPS = 24
BONE_ON_Y = 0.009
DOWN_FRAME = 3
UP_FRAME = 2
VELOCITY_MAX... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/read_midi.py",
"copies": "1",
"size": "3887",
"license": "mit",
"hash": 5795609263974595000,
"line_mean": 22.7012195122,
"line_max": 98,
"alpha_frac": 0.5338307178,
"autogenerated": false,
"ratio": 2.4773741236456344,
"config_test"... |
#!BPY
# -*- coding: UTF-8 -*-
# Render All of Secne & Frame which need to render.
#
# 2017.07.17 Natukikazemizo
import utils_log
import bpy
# constants
PY_NAME = "RENDER ALL"
utils_log.start(PY_NAME)
# classes
class RenderScope():
def __init__(self, name, scene, startFrame, endFrame, camera, filepath):
s... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/recasting/0010_render_all.py",
"copies": "1",
"size": "4289",
"license": "mit",
"hash": 8689910037860644000,
"line_mean": 45.1182795699,
"line_max": 127,
"alpha_frac": 0.6607600839,
"autogenerated": false,
"ratio": 2.692404268675455,... |
#!BPY
# -*- coding: UTF-8 -*-
# Set Finger Constraints
#
# 2017.04.09 Natukikazemizo
import bpy
import math
import re
print("Set Bone Constraints START")
fromArmature = "Jody_Armature"
toArmature = "Jody_Armature"
fromArmatureConstraintsDict = {}
LR_LIST = ("L", "R")
BONE_NAME_LIST = ("2ndToe", "3rdToe", "4thToe"... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/recasting/set_foot_finger_constraints.py",
"copies": "1",
"size": "2314",
"license": "mit",
"hash": -4427687469996911000,
"line_mean": 31.1388888889,
"line_max": 83,
"alpha_frac": 0.5777873812,
"autogenerated": false,
"ratio": 3.6730... |
#!BPY
# -*- coding: UTF-8 -*-
# Set Finger Constraints
#
# 2017.05.03 Natukikazemizo
import bpy
import math
import re
print("Copy Bone Constraints START")
targetArmature = "Armature.Dorothy"
fromArmatureConstraintsDict = {}
LR_LIST = ("L", "R")
BONE_NAME_LIST = ("Little", "Ring", "Middle", "Index")
POSITION_LIST... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/recasting/set_finger_constraints.py",
"copies": "1",
"size": "5086",
"license": "mit",
"hash": 2846598280586072000,
"line_mean": 36.4044117647,
"line_max": 108,
"alpha_frac": 0.4998033818,
"autogenerated": false,
"ratio": 3.767407407... |
#!BPY
# -*- coding: UTF-8 -*-
# Set Show Hide KeyFrames
# 2017.07.11 Natukikazemizo
import bpy
import math
import re
# constants
PY_NAME = "SET SHOW HIDE KEY FRAMES"
print(PY_NAME + " START")
# parameters
targetParentName = "Pump_T"
hideFrame = 741
showFrame = 1
# Add Show or Hide Key Frame On Child Objects
def ad... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/set_show_hide_keyframes.py",
"copies": "1",
"size": "1152",
"license": "mit",
"hash": 3745328226959084000,
"line_mean": 26.4285714286,
"line_max": 81,
"alpha_frac": 0.6979166667,
"autogenerated": false,
"ratio": 3.031578947368421,
... |
#!BPY
# -*- coding: UTF-8 -*-
# Set UI
#
# 2017.01.02 Natukikazemizo
import bpy
from bpy.props import *
import flip_next_paste_pose as next_paste
import custom_constants as cst_c
#
# Store properties in the active scene
#
def initSceneProperties(scn):
bpy.types.Scene.CopyStartFrame = IntProperty(
name... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/recasting/custom_UI.py",
"copies": "1",
"size": "1733",
"license": "mit",
"hash": -7773403003940012000,
"line_mean": 26.9516129032,
"line_max": 67,
"alpha_frac": 0.602423543,
"autogenerated": false,
"ratio": 3.14519056261343,
"conf... |
#!BPY
# -*- coding: UTF-8 -*-
# Set up All Constraints of Seleted Armature's Bones
#
# 2017.08.06 Natukikazemizo
# !!!! WARNING NEEDS BONE BLUSH UP
# !!!! NEEDS .blend -> CSV EDIT =-> .blend Roop
import bpy
import math
import os
import re
import importlib
import utils_converter
import utils_judge
import utils_lo... | {
"repo_name": "natukikazemizo/sedna",
"path": "Sedna/src/python/recasting/setup_all_constraints.py",
"copies": "1",
"size": "14186",
"license": "mit",
"hash": -6192756988977715000,
"line_mean": 58.8565400844,
"line_max": 157,
"alpha_frac": 0.5505427887,
"autogenerated": false,
"ratio": 2.13419587... |
# $Id: pantalone.py 276 2007-04-07 12:01:44Z lucille $
"""
Name: 'lucille(.rib)...'
Blender: 236
Group: 'Export'
Tooltip: 'Save as a RenderMan RIB file'
"""
__author__="muda"
__url__="http://lucille.atso-net.jp/wiki/index.php?Pantalone"
__version__="0.01"
__bpydoc__="""\
This is an another Blender -> RenderMan(espec... | {
"repo_name": "chiyama/lucille",
"path": "tools/blender/pantalone.py",
"copies": "2",
"size": "12875",
"license": "bsd-3-clause",
"hash": 71431347317710300,
"line_mean": 24.3944773176,
"line_max": 146,
"alpha_frac": 0.6191067961,
"autogenerated": false,
"ratio": 2.743447688046026,
"config_test"... |
#!BPY
# Blender simple export plugin by Christian Henz
"""
Name: 'C code (.h)...'
Blender: 232
Group: 'Export'
Tooltip: 'Export selected mesh to C code (*.h)'
"""
__bpydoc__ = """\
"""
import Blender
def write(filename):
file = open(filename, "wb")
objects = Blender.Object.GetSelected()
objname = objects[0].n... | {
"repo_name": "DreamcastSDK/build",
"path": "utils/blender/ccode_export.py",
"copies": "1",
"size": "2656",
"license": "unlicense",
"hash": -22521511221113570,
"line_mean": 24.786407767,
"line_max": 128,
"alpha_frac": 0.562876506,
"autogenerated": false,
"ratio": 2.432234432234432,
"config_test... |
bl_info = {
'name': 'Gorgon Export',
'author': 'green7ea',
'version': (0, 1, 1),
'blender': (2, 7, 0),
'location': 'File > Import-Export',
'description': 'Export a model into the gorgon format.',
'warning': '',
'wiki_url': 'http://',
'tracker_url': 'http://',
'category': 'Import... | {
"repo_name": "green7ea/gorgon",
"path": "gorgon/__init__.py",
"copies": "1",
"size": "2159",
"license": "mit",
"hash": 5052050664301953000,
"line_mean": 25.6543209877,
"line_max": 73,
"alpha_frac": 0.5993515516,
"autogenerated": false,
"ratio": 3.5277777777777777,
"config_test": false,
"has_... |
bl_info = {
"name": "Hect Mesh Format (.mesh)",
"author": "Colin Hill",
"version": (1, 0),
"blender": (2, 7, 1),
"api": 35622,
"location": "File > Export > Hect (.mesh)",
"description": "Export Hect Mesh Format (.mesh)",
"warning": "",
"wiki_url": "",
"tracker_url": "",
"cat... | {
"repo_name": "colinhect/hect",
"path": "Engine/Tools/Blender/io_export_hect.py",
"copies": "1",
"size": "5452",
"license": "mit",
"hash": 4404734730515868700,
"line_mean": 28.956043956,
"line_max": 72,
"alpha_frac": 0.6254585473,
"autogenerated": false,
"ratio": 3.3612823674475956,
"config_tes... |
#!BPY
#Exporter for MOF File
"""
Name: 'MOF Exporter'
Blender: '249'
Group: 'Export'
Tooltip: 'Export as MOF File'
"""
import Blender
import bpy
import struct
import os
from Blender import *
from operator import attrgetter
MOF_MAGIC_NUMBER = 0x67
MOF_VERSION = 0x01
MOF_MESH_CHUNK_ID = 0x00
MOF_VERTEX_CHUNK_ID... | {
"repo_name": "n3on/clearsky",
"path": "tools/blender_mof_exporter/mofexporter.py",
"copies": "1",
"size": "4158",
"license": "mit",
"hash": 5396931429849112000,
"line_mean": 22.76,
"line_max": 122,
"alpha_frac": 0.6928811929,
"autogenerated": false,
"ratio": 2.648407643312102,
"config_test": f... |
#!BPY
import struct
import bpy
import Blender
def newFileName(ext):
return '.'.join(Blender.Get('filename').split('.')[:-1] + [ext])
def saveAllMeshes(filename):
for object in Blender.Object.Get():
if object.getType() == 'Mesh':
mesh = object.getData()
if (len(mesh.verts) > 0)... | {
"repo_name": "jon34560/ActionBoy",
"path": "assets/scripts/export_gldata.py",
"copies": "1",
"size": "1333",
"license": "mit",
"hash": 5488264874575730000,
"line_mean": 31.512195122,
"line_max": 86,
"alpha_frac": 0.6151537884,
"autogenerated": false,
"ratio": 3.417948717948718,
"config_test": ... |
#! bpy
"""
Name: 'colored_labyrinth.py'
Blender: 269
Group: 'Materials'
Tooltip: 'Generates colorful objects by materials'
"""
import bpy
level_00 = ["###################",
"#. #",
"# $ #",
"# #",
"# #",
... | {
"repo_name": "Zprogrammer/pymove3D_comments",
"path": "colored_labyrinth.py",
"copies": "1",
"size": "1576",
"license": "cc0-1.0",
"hash": 3544513560469637600,
"line_mean": 25.7118644068,
"line_max": 73,
"alpha_frac": 0.3185279188,
"autogenerated": false,
"ratio": 3.797590361445783,
"config_te... |
#!BPY
"""
Name: 'Game Engine Testbed Level Export'
Blender: 245
Group: 'Export'
Tooltip: 'Creats a Lua file representing the objects in a scene.'
"""
# MIT License - See LICENSE file.
from Blender import Window, sys
import bpy
def export_to_lua(sce):
# Remove these when writing your own tool
print 'Blend ob... | {
"repo_name": "merlinblack/Game-Engine-Testbed",
"path": "level_export.py",
"copies": "1",
"size": "4900",
"license": "mit",
"hash": -3419184975307516400,
"line_mean": 41.2413793103,
"line_max": 115,
"alpha_frac": 0.4924489796,
"autogenerated": false,
"ratio": 2.7872582480091013,
"config_test":... |
#!BPY
"""
Name: 'Hull'
Blender: 244
Group: 'MESH'
Submenu: 'Box' box
Submenu: 'Sphere' sphere
Submenu: 'Convex' convex
Tooltip: 'Hull Selected Objects'
"""
#Submenu: 'Cylinder' cylinder
# --------------------------------------------------------------------------
# Hull 1.1 by Amorilia
# ----------------------------... | {
"repo_name": "griest024/PokyrimTools",
"path": "blender_nif_plugin-develop/todo/utilities/mesh_niftools_hull.py",
"copies": "3",
"size": "6775",
"license": "mit",
"hash": 2012176288789902600,
"line_mean": 35.2299465241,
"line_max": 199,
"alpha_frac": 0.6262730627,
"autogenerated": false,
"ratio"... |
#!BPY
"""
Name: 'Load Bone Pose'
Blender: 245
Group: 'Object'
Tooltip: 'Load pose of bones of selected armature from a text buffer'
"""
# --------------------------------------------------------------------------
# Load Bone Pose 1.0 by Amorilia
# ---------------------------------------------------------------------... | {
"repo_name": "nightstrike/blender_nif_plugin",
"path": "todo/utilities/object_niftools_load_bone_pose.py",
"copies": "3",
"size": "4952",
"license": "bsd-3-clause",
"hash": 2422084837014623700,
"line_mean": 34.884057971,
"line_max": 91,
"alpha_frac": 0.6108642973,
"autogenerated": false,
"ratio"... |
#!bpy
"""
Name: 'mars_mobile.py'
Blender: 2.69
Group: 'Composition'
Tooltip: 'Rotate, locate and scale objects assembled to a futuristic prototype'
"""
import bpy
def create_objects():
"""Create objects from a list of attributes
List values:
object name -- string
object type -- string
locati... | {
"repo_name": "Zprogrammer/pymove3D_comments",
"path": "mars_mobile.py",
"copies": "1",
"size": "3542",
"license": "cc0-1.0",
"hash": 2246001536447624200,
"line_mean": 27.1111111111,
"line_max": 79,
"alpha_frac": 0.5951439864,
"autogenerated": false,
"ratio": 3.170993733213966,
"config_test": f... |
#!bpy
"""
Name: 'mat1.py'
Blender: 2.69
Group: 'Sample'
Tooltip: 'Put one image on each site of a cube'
"""
import bpy
import os
def uvMapperCube(obj):
""" Put image to an object"""
# used names
matname = "matUVMapping"
texname = "texUVMapping"
# new material
if not matname in bpy.data.mater... | {
"repo_name": "Zprogrammer/pymove3D_comments",
"path": "mat1.py",
"copies": "1",
"size": "1948",
"license": "cc0-1.0",
"hash": 8241108043939669000,
"line_mean": 26.8,
"line_max": 74,
"alpha_frac": 0.6469681398,
"autogenerated": false,
"ratio": 3.3208191126279862,
"config_test": false,
"has_no... |
#!BPY
"""
Name: 'Save Bone Pose'
Blender: 245
Group: 'Object'
Tooltip: 'Save pose of selected bones to a text buffer'
"""
# --------------------------------------------------------------------------
# Save Bone Pose 1.0 by Amorilia
# --------------------------------------------------------------------------
# *****... | {
"repo_name": "nightstrike/blender_nif_plugin",
"path": "todo/utilities/object_niftools_save_bone_pose.py",
"copies": "3",
"size": "4068",
"license": "bsd-3-clause",
"hash": -6271233245894608000,
"line_mean": 35.9818181818,
"line_max": 91,
"alpha_frac": 0.6182399213,
"autogenerated": false,
"rati... |
#!BPY
"""
Name: 'Set Bone Priority'
Blender: 245
Group: 'Object'
Tooltip: 'Set priority of selected bones'
"""
# --------------------------------------------------------------------------
# Set Bone Priority 1.0 by Amorilia
# --------------------------------------------------------------------------
# ***** BEGIN L... | {
"repo_name": "griest024/PokyrimTools",
"path": "blender_nif_plugin-develop/todo/utilities/object_niftools_set_bone_priority.py",
"copies": "3",
"size": "3814",
"license": "mit",
"hash": -1723734264320066300,
"line_mean": 36.7623762376,
"line_max": 81,
"alpha_frac": 0.631882538,
"autogenerated": fa... |
"""
Name: 'Sketch (.sk)...'
Blender: 244
Group: 'Export'
Tooltip: 'Export selected objects to the Sketch scene description language'
"""
__author__ = 'Kjell Magne Fauske'
__version__ = "svn"
__url__ = ("Documentation, http://www.fauskes.net/code/blend2sketch/",
"Author's homepage, http://www.fauskes.net/",
... | {
"repo_name": "kjellmf/blend2sketch",
"path": "sketch_export.py",
"copies": "1",
"size": "17205",
"license": "mit",
"hash": -6233018733835358000,
"line_mean": 32.2785299807,
"line_max": 81,
"alpha_frac": 0.5622202848,
"autogenerated": false,
"ratio": 3.644355009531879,
"config_test": false,
"... |
#!BPY
"""
Name: 'TerasologyBlockShapeExport'
Blender: 262
Group: 'Export'
Tooltip: 'Export a Terasology Block Shape'
"""
bl_info = {
"name": "Terasology Block Shape Export",
"description": "Exporter for producing Terasology Block Shape files (in JSON format)",
"author": "Immortius",
"version": (1, 2),
"blender": ... | {
"repo_name": "zoneXcoding/Mineworld",
"path": "blender_addons/io_mesh_terasology/__init__.py",
"copies": "1",
"size": "3973",
"license": "apache-2.0",
"hash": -3681040875693991400,
"line_mean": 28.6567164179,
"line_max": 100,
"alpha_frac": 0.7180971558,
"autogenerated": false,
"ratio": 3.1014832... |
"""
Name: 'TikZ (.tex)...'
Blender: 245
Group: 'Export'
Tooltip: 'Export selected curves as TikZ paths for use with (La)TeX'
"""
__author__ = 'Kjell Magne Fauske'
__version__ = "1.0"
__url__ = ("Documentation, http://www.fauskes.net/code/blend2tikz/documentation/",
"Author's homepage, http://www.fauskes.net... | {
"repo_name": "kjellmf/blend2tikz",
"path": "tikz_export.py",
"copies": "1",
"size": "20546",
"license": "mit",
"hash": 4042773074878417000,
"line_mean": 30.6092307692,
"line_max": 100,
"alpha_frac": 0.5717901295,
"autogenerated": false,
"ratio": 3.6519729825808747,
"config_test": false,
"has... |
#!BPY
"""
Name: 'Weight Squash'
Blender: 245
Group: 'MESH'
Tooltip: 'Squash Vertex Weights'
"""
# --------------------------------------------------------------------------
# Squash Weights 1.1 by Amorilia
# --------------------------------------------------------------------------
# ***** BEGIN LICENSE BLOCK *****... | {
"repo_name": "griest024/PokyrimTools",
"path": "blender_nif_plugin-develop/todo/utilities/mesh_niftools_weightsquash.py",
"copies": "3",
"size": "5032",
"license": "mit",
"hash": -6588883363540926000,
"line_mean": 36.552238806,
"line_max": 142,
"alpha_frac": 0.6303656598,
"autogenerated": false,
... |
'''
Dts_Blender.py
Copyright (c) 2003 - 2006 James Urquhart(j_urquhart@btinternet.com)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights... | {
"repo_name": "pchan126/Blender_DTS_30",
"path": "Dts_Blender.py",
"copies": "1",
"size": "36658",
"license": "mit",
"hash": -3098840941133311500,
"line_mean": 46.1788931789,
"line_max": 168,
"alpha_frac": 0.5092203612,
"autogenerated": false,
"ratio": 3.805460396553514,
"config_test": false,
... |
"""
Name: 'ASC Exporter'
Blender: 249
Group: 'Export'
Tooltip: 'Export selected meshes to an ASC file'
"""
__author__ = 'Andor Salga'
import Blender
import BPyMessages
import bpy
def asc_export(path, meshObjects):
fileObject = open(path, 'w')
totalNumVertices = 0
for mesh in meshObjects:
currMesh = mesh.getDa... | {
"repo_name": "asalga/XB-PointStream",
"path": "tools/asc_exporter.py",
"copies": "1",
"size": "1497",
"license": "mit",
"hash": -3133862560723009500,
"line_mean": 23.5409836066,
"line_max": 83,
"alpha_frac": 0.6773547094,
"autogenerated": false,
"ratio": 2.9352941176470586,
"config_test": fals... |
#!BPY
"""
Name: 'Bake'
Blender: 249
Group: 'Script'
Tooltip: 'Bake the current selected objects.'
"""
import os
import sys
import struct
import math
import string
import Blender
import platform
import shutil
import uvcalc_smart_project_Mod
from Blender import Material
from Blender import Texture
from Ble... | {
"repo_name": "iosengineer/zombieArcade",
"path": "Stormforge/ext/exporter/bake.py",
"copies": "1",
"size": "8244",
"license": "mit",
"hash": -5956404716287841000,
"line_mean": 20.4713541667,
"line_max": 88,
"alpha_frac": 0.5786026201,
"autogenerated": false,
"ratio": 2.8906030855539973,
"confi... |
#!BPY
"""
Name: 'Civ 4 to Civ 5 Bone Renaming'
Blender: 249
Group: 'Object'
Tooltip: 'Civ 4 to Civ 5 Bone Renaming'
"""
import Blender
print "\n"
print "Civ 4 to Civ 5 Renaming"
print "\n"
scene = Blender.Scene.GetCurrent()
allObjects = scene.objects
boneMappingDictionary = {
'BIP Pelvis': 'Base HumanPelvis', \... | {
"repo_name": "venetianthief/civ-dbs",
"path": "older/civ4tociv5.py",
"copies": "1",
"size": "1988",
"license": "mit",
"hash": -1784181975130991900,
"line_mean": 30.0625,
"line_max": 83,
"alpha_frac": 0.6649899396,
"autogenerated": false,
"ratio": 2.8769898697539795,
"config_test": false,
"ha... |
"""
Name: 'Copy and Paste Objects'
Blender: 237
Group: 'Object'
Tooltip: 'Copies objects beetween blend files.'
"""
__author__ = "Mariano Hidalgo a.k.a. uselessdreamer"
__url__ = ("blender", "elysiun")
__version__ = "1.0"
__bpydoc__ = """\
This script copies objects between running Blender instances.
Usage:
While ... | {
"repo_name": "venetianthief/civ-dbs",
"path": "older/copyPaste.py",
"copies": "1",
"size": "1833",
"license": "mit",
"hash": 6783961896943704000,
"line_mean": 30.0677966102,
"line_max": 87,
"alpha_frac": 0.7059465357,
"autogenerated": false,
"ratio": 3.3819188191881917,
"config_test": false,
... |
"""
Name: 'Data Plotter'
Blender: 248
Group: 'Misc'
Tooltip: 'Plots data from a CSV file (experimental).'
"""
__author__ = 'Zac Hester'
__version__ = '0.0.20100405'
__bpydoc__ = """ Experimental Data Plotting System
This script is my first attempt at a Blender plugin script. I often
need to plot data sets on nice 3... | {
"repo_name": "zhester/archive",
"path": "blender/dataplot.py",
"copies": "1",
"size": "5929",
"license": "bsd-2-clause",
"hash": 36150468479697690,
"line_mean": 24.4463519313,
"line_max": 70,
"alpha_frac": 0.679541238,
"autogenerated": false,
"ratio": 2.598159509202454,
"config_test": false,
... |
"""
Name: 'GAMX Asset Manifest 1.0 (.gamx)...'
Blender: 247
Group: 'Export'
Tooltip: 'Export selection to v1.0 GAMX asset manifest file (.gamx)'
"""
__author__ = "Johanna Wolf"
__url__ = ("http://gewizes.sourceforge.net/")
__version__ = "0.5"
__email__ = "johanna.a.wolf@gmail.com"
__bpydoc__ = """\
Description: Export... | {
"repo_name": "JohannaVonLuck/gewizes",
"path": "egwb5/util/blenderScripts/gamx_export.py",
"copies": "1",
"size": "57931",
"license": "apache-2.0",
"hash": -5134770742475347000,
"line_mean": 63.5122494432,
"line_max": 442,
"alpha_frac": 0.4907217207,
"autogenerated": false,
"ratio": 3.5186467444... |
#!BPY
"""
Name: 'GAMX IPO KF Check & Auto-Fix'
Blender: 247
Group: 'Animation'
Tooltip: 'Checks IPOs for simultaneous, grouped, etc. and provides capabilities to fix broken IPOs before export to GAMX asset manifest file (.gamx)'
"""
__author__ = "Johanna Wolf"
__url__ = ("http://gewizes.sourceforge.net/")
__version__ ... | {
"repo_name": "JohannaVonLuck/gewizes",
"path": "egwb5/util/blenderScripts/gamx_ipomod.py",
"copies": "1",
"size": "23646",
"license": "apache-2.0",
"hash": -4505834615207379500,
"line_mean": 62.3967828418,
"line_max": 684,
"alpha_frac": 0.5578956272,
"autogenerated": false,
"ratio": 3.2624172185... |
#!BPY
"""
Name: 'GAMX Sprite Sheet Renderer'
Blender: 249
Group: 'Render'
Tooltip: 'Render current scene, on selected animations and camera, to sprite sheet along with a v1.0 GAMX asset manifest file (.gamx)'
"""
__author__ = "Johanna Wolf"
__url__ = ("http://gewizes.sourceforge.net/")
__version__ = "0.7"
__email__ = ... | {
"repo_name": "JohannaVonLuck/gewizes",
"path": "egwb5/util/blenderScripts/gamx_spriter.py",
"copies": "1",
"size": "29389",
"license": "apache-2.0",
"hash": 454111132874862900,
"line_mean": 50.5614035088,
"line_max": 354,
"alpha_frac": 0.5326482698,
"autogenerated": false,
"ratio": 3.93374380939... |
"""
Name: 'GMDC (.gmdc, .5gd)'
Blender: 249
Group: 'Import'
Tooltip: 'Import TS2 GMDC file' """
#-------------------------------------------------------------------------------
# Copyright (C) 2016 DjAlex88 (https://github.com/djalex88/)
#
# Permission is hereby granted, free of charge, to any person obtaining a cop... | {
"repo_name": "djalex88/blender-gmdc",
"path": "gmdc_import.py",
"copies": "1",
"size": "17419",
"license": "mit",
"hash": -4472939841728067000,
"line_mean": 26.6492063492,
"line_max": 201,
"alpha_frac": 0.633159194,
"autogenerated": false,
"ratio": 2.8839403973509934,
"config_test": false,
"... |
"""
Name: 'GMDC (.gmdc)'
Blender: 249
Group: 'Export'
Tooltip: 'Export to TS2 GMDC file' """
#-------------------------------------------------------------------------------
# Copyright (C) 2016 DjAlex88 (https://github.com/djalex88/)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
#... | {
"repo_name": "djalex88/blender-gmdc",
"path": "gmdc_export.py",
"copies": "1",
"size": "24522",
"license": "mit",
"hash": 4813673449401258000,
"line_mean": 28.5445783133,
"line_max": 187,
"alpha_frac": 0.6139792839,
"autogenerated": false,
"ratio": 2.8627130515993464,
"config_test": false,
"... |
#!BPY
"""
Name: 'Gotham'
Blender: 237
Group: 'Export'
Tooltip: '.py exporter'
"""
import Blender
from Blender import Material, Mathutils
# for os.path
import os
# globals
gTurbidity = 3
gSunGain = [0.02, 0.02, 0.02]
def writeMatrix(indent, matrix, out):
out.write(indent + "g.multMatrix([")
for i in range(4):
... | {
"repo_name": "jaredhoberock/gotham",
"path": "api/blender_gotham_export.py",
"copies": "1",
"size": "7631",
"license": "apache-2.0",
"hash": 8339441766771993000,
"line_mean": 32.6167400881,
"line_max": 163,
"alpha_frac": 0.584982309,
"autogenerated": false,
"ratio": 2.905940594059406,
"config_... |
"""
Name: 'Morph Copy'
Blender: 245
Group: 'MESH'
Tooltip: 'Copy morph vectors from 1 mesh, to all other selected meshes.'
"""
__author__ = "Amorilia"
__url__ = ("blender", "elysiun", "http://niftools.sourceforge.net/")
__version__ = "1.0"
__bpydoc__ = """\
Morph Copy
This script is used to copy morphs from 1 mesh ... | {
"repo_name": "nightstrike/blender_nif_plugin",
"path": "todo/utilities/mesh_niftools_morphcopy.py",
"copies": "3",
"size": "12840",
"license": "bsd-3-clause",
"hash": 7782239300062460000,
"line_mean": 36.0028818444,
"line_max": 165,
"alpha_frac": 0.5781152648,
"autogenerated": false,
"ratio": 3.... |
#!BPY
"""
Name: 'Objective-C Header (.h)'
Blender: 244
Group: 'Export'
Tooltip: 'Exports header file for use with the OpenGL ES template for iPhone available from http://iphonedevelopment.blogspot.com/'
"""
import Blender
from Blender import *
import bpy
import bpy
import os
def write_obj(filepath):
... | {
"repo_name": "jon34560/ActionBoy",
"path": "assets/objc.py",
"copies": "1",
"size": "4625",
"license": "mit",
"hash": 3657218387488207400,
"line_mean": 37.55,
"line_max": 131,
"alpha_frac": 0.5753513514,
"autogenerated": false,
"ratio": 3.048780487804878,
"config_test": false,
"has_no_keywor... |
#!BPY
"""
Name: 'OpenCTM (*.ctm)...'
Blender: 248
Group: 'Export'
Tooltip: 'Export active object to OpenCTM (compressed) format'
"""
import bpy
import Blender
from Blender import Mesh, Scene, Window, sys, Image, Draw
import BPyMesh
import ctypes
from ctypes import *
from ctypes.util import find_library
import os
__... | {
"repo_name": "LazerTrace/LazerTrace",
"path": "vendor/openctm/plugins/blender/openctm_export.py",
"copies": "1",
"size": "10043",
"license": "mit",
"hash": 4362216915523887000,
"line_mean": 29.2530120482,
"line_max": 121,
"alpha_frac": 0.6806731056,
"autogenerated": false,
"ratio": 2.66392572944... |
#!BPY
"""
Name: 'OpenCTM (*.ctm)...'
Blender: 248
Group: 'Import'
Tooltip: 'Import an OpenCTM file'
"""
import bpy
import Blender
from Blender import Mesh, Scene, Window, sys, Image, Draw
import BPyMesh
import math
import ctypes
from ctypes import *
from ctypes.util import find_library
import os
__author__ = "Marcu... | {
"repo_name": "LazerTrace/LazerTrace",
"path": "vendor/openctm/plugins/blender/openctm_import.py",
"copies": "1",
"size": "6063",
"license": "mit",
"hash": -3387136537480393000,
"line_mean": 25.8318584071,
"line_max": 86,
"alpha_frac": 0.6612238166,
"autogenerated": false,
"ratio": 2.729851418280... |
#!BPY
"""
Name: 'SIO2 Exporter v1.4.1 (.sio2)...'
Blender: 249.2
Group: 'Export'
Tooltip: 'Export the current scene to SIO2 (.sio2)'
"""
"""
Please take note that since 1.4.0, SIO2 have an optimizer
to convert triangles to triangle strips. In order to use
it with the OP button of the exporter do the following:
... | {
"repo_name": "iosengineer/zombieArcade",
"path": "Stormforge/ext/exporter/sio2_exporter1.py",
"copies": "1",
"size": "62164",
"license": "mit",
"hash": 3040430980147700000,
"line_mean": 24.999581765,
"line_max": 131,
"alpha_frac": 0.4080496751,
"autogenerated": false,
"ratio": 3.19067905353385,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.