text
stringlengths
0
1.05M
meta
dict
bl_info = { "name": "Intrude", "category": "Object", } import bpy import bmesh from mathutils import Vector from bpy import context class ObjectIntrude(bpy.types.Operator): """My Intruder Script""" bl_idname = "object.intrude" bl_label = "Intrude" bl_options = {'REGISTER', 'UNDO...
{ "repo_name": "Prophet-of-Doom/Intruder", "path": "Intruder_Official.py", "copies": "1", "size": "2527", "license": "mit", "hash": -5657220039432857000, "line_mean": 27.4069767442, "line_max": 92, "alpha_frac": 0.5464978235, "autogenerated": false, "ratio": 3.495159059474412, "config_test": fal...
bl_info = { "name": "Lightning Arcs", "description": "Use Laplacian Lightning Add-On to generate random arcs between particles", "author": "Stanislaw Adaszewski", "version": (1, 0, 0), "blender": (2, 74, 0), "location": "Search > Lightning Arcs", "warning": "", "wiki_url": "http:...
{ "repo_name": "sadaszewski/blender-addons", "path": "lightning_arcs.py", "copies": "1", "size": "3506", "license": "bsd-2-clause", "hash": -7103089513063276000, "line_mean": 23.9703703704, "line_max": 94, "alpha_frac": 0.56959498, "autogenerated": false, "ratio": 2.5722670579603815, "config_tes...
bl_info = { "name": "My Data Format", "author": "Bruce Sutherland", "blender": (2,6,9), "version": (0,0,1), "location": "File > Import-Export", "description": "Export custom data format", "category": "Import-Export" } import bpy from bpy_e...
{ "repo_name": "atship/life", "path": "common-dev/blender/importer-exporter.py", "copies": "2", "size": "1072", "license": "mit", "hash": -6414139090512180000, "line_mean": 27, "line_max": 76, "alpha_frac": 0.5615671642, "autogenerated": false, "ratio": 3.403174603174603, "config_test": false, ...
bl_info = { "name": "Portal Level Format", "author": "Bram Ridder", "blender": (2,6,9), "version": (0,0,1), "location": "File > Import-Export", "description": "Region and Portal data format", "category": "Import-Export" } import bpy; import struct...
{ "repo_name": "KCL-Planning/strategic-tactical-pandora", "path": "data/scripts/blender/addons/io_portal_level_exporter/__init__.py", "copies": "1", "size": "18265", "license": "bsd-2-clause", "hash": 433529828869087040, "line_mean": 43.0987654321, "line_max": 354, "alpha_frac": 0.4961401588, "autog...
bl_info = { "name": "Ryan's Test Updator", "author": "Your Name Here", "version": (1, 0, 1), "blender": (2, 75, 0), "location": "View3D > Add > Mesh > New Object", "description": "Adds a new Mesh Object", "warning": "", "wiki_url": "", "category": "Add Mesh", } imp...
{ "repo_name": "BlenderIgnite/test-blender-addon", "path": "__init__.py", "copies": "1", "size": "4095", "license": "apache-2.0", "hash": -7264586232152675000, "line_mean": 26.0479452055, "line_max": 77, "alpha_frac": 0.5897435897, "autogenerated": false, "ratio": 3.64, "config_test": false, "...
bl_info = { "name": "Sure UVW Map v.0.5.1", "author": "Alexander Milovsky (www.milovsky.ru)", "version": (0, 5), "blender": (2, 6, 3), "api": 45093, "location": "Properties > Object Data (below UV Maps), parameters in Tool Properties", "description": "Box / Best Planar UVW Map (Make M...
{ "repo_name": "creepydragon/revision1", "path": "blender/sure_uvwbox51.py", "copies": "2", "size": "14590", "license": "mit", "hash": 4191112209217519000, "line_mean": 29.2419700214, "line_max": 145, "alpha_frac": 0.5134338588, "autogenerated": false, "ratio": 3.3851508120649654, "config_test":...
bl_info = { "name": "UV to Photoshop", "description": "選択したUV面をPhotoshopの選択範囲に", "author": "Yukimi", "version": (0,4), "blender": (2, 6, 0), "location": "image", "warning": "", "wiki_url": "", "tracker_url": "http://yukimi-blend.blogspot.jp/", "category": "Import-Export...
{ "repo_name": "Yukimituki/Blender_addons", "path": "UV_to_PhotoshopSelection/__init__.py", "copies": "1", "size": "1343", "license": "mit", "hash": 363641892015613630, "line_mean": 25.0217391304, "line_max": 58, "alpha_frac": 0.5825946817, "autogenerated": false, "ratio": 2.6181434599156117, "c...
bl_info = { "name": "Zmey Properties", "category": "Import-Export", "location" : "File > Export", "description" : "Export as Zmey Props" } if "bpy" in locals(): import importlib importlib.reload(components) importlib.reload(properties) importlib.reload(operators) importl...
{ "repo_name": "nikoladimitroff/Zmey", "path": "Tools/BlenderPlugins/scripts/addons/zmey_properties/__init__.py", "copies": "1", "size": "5178", "license": "mit", "hash": -6060660394357179000, "line_mean": 31.4193548387, "line_max": 94, "alpha_frac": 0.5714561607, "autogenerated": false, "ratio": ...
bl_info = { "name": "id tech 4 MD5 format", "author": "nemyax", "version": (0, 7, 20130705), "blender": (2, 6, 6), "location": "File > Import-Export", "description": "Export md5mesh and md5anim", "warning": "", "wiki_url": "", "tracker_url": "", "category": "Import-Export"} import bpy import bme...
{ "repo_name": "Knetic/io_scene_md5", "path": "io_scene_md5.py", "copies": "1", "size": "27217", "license": "mit", "hash": 1574467525461611500, "line_mean": 30.3242280285, "line_max": 99, "alpha_frac": 0.6638865415, "autogenerated": false, "ratio": 2.9143377235250028, "config_test": false, "ha...
"""Blink a LED on GPIO on an interval.""" import argparse import signal import sys import time import RPi.GPIO as GPIO PIN = None def cleanup(sig, frame): """Disable the LED on script shutdown.""" if PIN is not None: GPIO.output(PIN, GPIO.LOW) sys.exit(0) def main(): """Main script executi...
{ "repo_name": "calebgroom/circuit-hacking", "path": "raspberrypi/blink_led.py", "copies": "1", "size": "1061", "license": "apache-2.0", "hash": 5413807018979695000, "line_mean": 23.6744186047, "line_max": 78, "alpha_frac": 0.6324222432, "autogenerated": false, "ratio": 3.5366666666666666, "conf...
"""Blink Decorator.""" # blink.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf import pygame import pygame.locals import time from mpf.media_controller.co...
{ "repo_name": "qcapen/mpf", "path": "mpf/media_controller/decorators/blink.py", "copies": "3", "size": "4165", "license": "mit", "hash": 1882913264865643000, "line_mean": 37.9252336449, "line_max": 80, "alpha_frac": 0.6554621849, "autogenerated": false, "ratio": 4.280575539568345, "config_test"...
"""BlinkyPendant Python communication library. This code assumes stock serialLoop() in the firmware. """ import serial import listports import time class BlinkyPendant(object): def __init__(self, port=None, ledCount=10, buffered=True): """Creates a BlinkyPendant object and opens the port. Para...
{ "repo_name": "Blinkinlabs/BlinkyPendant", "path": "python_loader/blinkypendant.py", "copies": "2", "size": "5133", "license": "mit", "hash": -5318281825378938000, "line_mean": 24.4108910891, "line_max": 84, "alpha_frac": 0.5489966881, "autogenerated": false, "ratio": 4.083532219570405, "config...
"""BlinkyTape Python communication library. This code assumes stock serialLoop() in the firmware. Commands are issued in 3-byte blocks, with pixel data encoded in RGB triplets in range 0-254, sent sequentially and a triplet ending with a 255 causes the accumulated pixel data to display (a show command). ...
{ "repo_name": "Blinkinlabs/BlinkyPendant", "path": "python_loader/listports.py", "copies": "2", "size": "1112", "license": "mit", "hash": 1432107595260384800, "line_mean": 22.1666666667, "line_max": 67, "alpha_frac": 0.6519784173, "autogenerated": false, "ratio": 4.014440433212997, "config_test...
"""BlinkyTape Python communication library. This code assumes stock serialLoop() in the firmware. Commands are issued in 3-byte blocks, with pixel data encoded in RGB triplets in range 0-254, sent sequentially and a triplet ending with a 255 causes the accumulated pixel data to display (a show command). Not...
{ "repo_name": "shughes-uk/physical_twitch_notifications", "path": "blinkytape.py", "copies": "1", "size": "5638", "license": "mit", "hash": -5731470498392926000, "line_mean": 31.7790697674, "line_max": 114, "alpha_frac": 0.5725434551, "autogenerated": false, "ratio": 3.9648382559774964, "config...
"""blinky URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
{ "repo_name": "smn/blinky", "path": "blinky/urls.py", "copies": "1", "size": "1635", "license": "bsd-3-clause", "hash": 5602378547629892000, "line_mean": 42.0263157895, "line_max": 79, "alpha_frac": 0.6862385321, "autogenerated": false, "ratio": 3.4348739495798317, "config_test": false, "has_...
blip = {'veyepar_test':'bdff6680'} # dict of user:pw twit = { 'veyepar_test': { 'password':'bdff6680', 'consumer_key':'SOcOAwXDhMnarlzhkE2z8Q', 'consumer_secret':'32tcLcSK9ECqW2FEejla1uNBfFreT9GpGoQ0ingcE8s', 'access_key':'203869946-mzeDwKHi5Akx84zENZuaA7MLnrCqrlH98mgTlZFh', 'access_secret':'tnyn6YsZz3vpasUE...
{ "repo_name": "yoe/veyepar", "path": "dj/scripts/sample_pw.py", "copies": "3", "size": "1253", "license": "mit", "hash": 7740979595803019000, "line_mean": 25.6595744681, "line_max": 68, "alpha_frac": 0.5450917797, "autogenerated": false, "ratio": 2.8477272727272727, "config_test": true, "has_...
# BlitzMax wrapper generator # Thanks to James Boyd for help with this! import soloud_codegen fo = open("../glue/soloud.bmx", "w") """ Global SoloudLib:Int = LoadLibraryA ("soloud_x86.dll") If not SoloudLib Then Notify "soloud_x86.dll not found"; End Const SFXR_BLIP:Int = 6 Global Soloud_destroy:Int (aSoloud:Byt...
{ "repo_name": "stievie/Tiny3D", "path": "ThirdParty/soloud/scripts/gen_blitzmax.py", "copies": "2", "size": "1678", "license": "mit", "hash": -5918532944747197000, "line_mean": 26.5081967213, "line_max": 99, "alpha_frac": 0.6120381406, "autogenerated": false, "ratio": 2.601550387596899, "config...
"""Blob detection and tracking.""" from math import sqrt, hypot import numpy as np try: import cv2 import cv2.cv as cv except ImportError: print "You need OpenCV to use vision modules, sorry." sys.exit(1) from util import Enum from base import DependentFrameProcessor from main import main from colorfilter im...
{ "repo_name": "IEEERobotics/high-level", "path": "qwe/vision/blobtracking.py", "copies": "1", "size": "11291", "license": "bsd-2-clause", "hash": -5944864458498090000, "line_mean": 47.4592274678, "line_max": 303, "alpha_frac": 0.6612346116, "autogenerated": false, "ratio": 3.522932917316693, "c...
"""Blob detection in CMYK + HSV color spaces.""" import random import numpy as np try: import cv2 import cv2.cv as cv except ImportError: print "You need OpenCV to use vision modules, sorry." sys.exit(1) import util from base import FrameProcessor from main import main from blobtracking import BlobTracker fr...
{ "repo_name": "IEEERobotics/high-level", "path": "qwe/vision/blobdetection.py", "copies": "1", "size": "14951", "license": "bsd-2-clause", "hash": -7083740426192169000, "line_mean": 34.0140515222, "line_max": 274, "alpha_frac": 0.627048358, "autogenerated": false, "ratio": 2.8289498580889307, "...
import mimetypes import os import re import time from actor import Actor from commit import Commit class Blob(object): """A Blob encapsulates a git blob object""" DEFAULT_MIME_TYPE = "text/plain" def __init__(self, repo, id, mode=None, name=None): """ Create an unbaked Blob containing jus...
{ "repo_name": "utkbansal/kuma", "path": "vendor/packages/git/blob.py", "copies": "32", "size": "5305", "license": "mpl-2.0", "hash": -5263869991677470000, "line_mean": 31.950310559, "line_max": 120, "alpha_frac": 0.4746465598, "autogenerated": false, "ratio": 4.043445121951219, "config_test": f...
import mimetypes import os import re import time from actor import Actor from commit import Commit class Blob(object): DEFAULT_MIME_TYPE = "text/plain" def __init__(self, repo, id, mode=None, name=None): """ Create an unbaked Blob containing just the specified attributes ``repo`` ...
{ "repo_name": "directeur/git-python", "path": "lib/git/blob.py", "copies": "1", "size": "4729", "license": "bsd-3-clause", "hash": -8141217435232904000, "line_mean": 31.8402777778, "line_max": 120, "alpha_frac": 0.4592937196, "autogenerated": false, "ratio": 3.9342762063227954, "config_test": f...
"""BlobStash client.""" import json import os from urllib.parse import urljoin import requests DEFAULT_BASE_URL = "http://localhost:8050" class Client: """Basic client for API-specific client to build upon.""" def __init__(self, base_url=None, api_key=None, json_encoder=json.JSONEncoder): self.base...
{ "repo_name": "tsileo/blobstash-python-docstore", "path": "blobstash/base/client.py", "copies": "1", "size": "1222", "license": "mit", "hash": 2613545245370034000, "line_mean": 31.1578947368, "line_max": 85, "alpha_frac": 0.5990180033, "autogenerated": false, "ratio": 3.66966966966967, "config_...
"""Blobstore to GCS migration functions.""" from mapreduce import operation as op from google.appengine.api import images as images_api from google.appengine.ext import blobstore import cloudstorage as gcs BUCKET = 'bs2gcs' def migrate(image): """Copies blobs stored in Blobstore over to a GCS bucket. Args: im...
{ "repo_name": "crhym3/bs2gcs", "path": "bs2gcs.py", "copies": "1", "size": "1439", "license": "mit", "hash": -1676610093914889000, "line_mean": 27.2156862745, "line_max": 75, "alpha_frac": 0.7004864489, "autogenerated": false, "ratio": 3.010460251046025, "config_test": false, "has_no_keywords...
""" block56.py class Sprite Block Arrow Warp function buildUserBlocks wipe """ import pygame import interface56 import scroller56 import dinosInSpace import radar56 import soundFx56 import math import bounceMask class Block(pygame.sprite.Sp...
{ "repo_name": "sabajt/Dinos-In-Space", "path": "block56.py", "copies": "1", "size": "19590", "license": "mit", "hash": 2067517034617624000, "line_mean": 25.689373297, "line_max": 106, "alpha_frac": 0.5647779479, "autogenerated": false, "ratio": 3.980089394555059, "config_test": false, "has_no...
# Block Blaster 3000 # Booya # Built and designed for Python 2.6.6 32-bit, Pygame 1.9.1 32-bit, and Livewires 2.0 import random, math, pygame from livewires import games, color # The screen size games.init(screen_width=640, screen_height=480, fps=120) pygame.display.set_caption('Block Blaster 3000') icon = ...
{ "repo_name": "DarkArcher117/Block-Blaster-3000", "path": "block.py", "copies": "1", "size": "12783", "license": "mit", "hash": 8243014787736885000, "line_mean": 41.3322033898, "line_max": 115, "alpha_frac": 0.5122428225, "autogenerated": false, "ratio": 3.9539127745128364, "config_test": false...
'''BlockBlock, define a block. :copyright: 2015, Jeroen van der Heijden (Transceptor Technology) ''' import re from .exceptions import DefineBlockError from .constants import ALWAYS_ALLOWED, LINE_END class BlockBlock: RE_BLOCK = re.compile('^\s*#block\s+([a-zA-Z0-9_]+)\s*:\s*$', re.UNICODE) def __init__(s...
{ "repo_name": "transceptor-technology/trender", "path": "trender/block_block.py", "copies": "1", "size": "1135", "license": "mit", "hash": 814050918568546000, "line_mean": 28.8684210526, "line_max": 77, "alpha_frac": 0.6017621145, "autogenerated": false, "ratio": 3.8737201365187715, "config_tes...
# Block Breaker Game # Chapter 9 import sys, time, random, math, pygame from pygame.locals import * from MyLibrary import * levels = ( (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...
{ "repo_name": "Great-Li-Xin/PythonDev", "path": "Games/resources/code/chap09/BlockBreaker.py", "copies": "1", "size": "7883", "license": "mit", "hash": -7529497027826708000, "line_mean": 26.9816176471, "line_max": 74, "alpha_frac": 0.5133832297, "autogenerated": false, "ratio": 2.9568642160540133...
# blockchain.py # Demonstration of a blockchain; 3 of 3 components import time from . import block from . import block_params class BlockChain(): def __init__(self): self.blockchain_store = self.fetch_blockchain() def latest_block(self): return self.blockchain_store[-1] def generate_ne...
{ "repo_name": "bluewitch/Code-Blue-Python", "path": "blockchain.py", "copies": "1", "size": "1222", "license": "mit", "hash": -8791950876618197000, "line_mean": 27.4186046512, "line_max": 80, "alpha_frac": 0.6301145663, "autogenerated": false, "ratio": 3.8917197452229297, "config_test": false, ...
'''Block compilation ''' from __future__ import absolute_import from __future__ import with_statement from ..runtime.read import read, readstate, Stream from ..runtime.copy import copy from .translate import translate_top_level_form from .global_trans import transform_global_symbol_use from .marshal_trans import mars...
{ "repo_name": "matthagy/Jamenson", "path": "jamenson/compiler/Attic/block.py", "copies": "1", "size": "4372", "license": "apache-2.0", "hash": 6787621841212044000, "line_mean": 29.7887323944, "line_max": 86, "alpha_frac": 0.6390667887, "autogenerated": false, "ratio": 3.7240204429301533, "confi...
'''Block compilation ''' from __future__ import absolute_import from __future__ import with_statement from ..runtime.read import read, readstate, Stream from ..runtime.copy import make_copy from . import ir as I from . import bind from . import codegen from .translate import translate_top_level_form from .declare imp...
{ "repo_name": "matthagy/Jamenson", "path": "jamenson/compiler/block.py", "copies": "1", "size": "5670", "license": "apache-2.0", "hash": 1305090841410752800, "line_mean": 34, "line_max": 95, "alpha_frac": 0.5989417989, "autogenerated": false, "ratio": 3.891557995881949, "config_test": false, ...
"""Block diagram class.""" from abc import ABCMeta, abstractmethod import numpy as np import re # Export only the Blockschaltbild class __all__ = ["Blockschaltbild"] # Constant IDs for scalar-typed and vector-typed connections # Please do not modify these! # And in case you do, these must be unique, positive, int ...
{ "repo_name": "mp4096/blockschaltbilder", "path": "blockschaltbilder/bsb.py", "copies": "1", "size": "27341", "license": "mit", "hash": 143696393840810690, "line_mean": 31.7829736211, "line_max": 83, "alpha_frac": 0.5325701328, "autogenerated": false, "ratio": 4.126320555387866, "config_test": ...
Blocker = object() Start = False End = object() class Path(dict): @classmethod def determine_path(cls, field, width, height): path = cls() path.width = width path.height = height path.ends = set() path.starts = [] cells = [] for y in range(height): ...
{ "repo_name": "gdkar/pyglet", "path": "contrib/spryte/dtd/path.py", "copies": "29", "size": "6345", "license": "bsd-3-clause", "hash": 902058476649534800, "line_mean": 29.9512195122, "line_max": 75, "alpha_frac": 0.3971631206, "autogenerated": false, "ratio": 3.686809994189425, "config_test": f...
Blocker = object() Start = False End = object() class Path(dict): @classmethod def determine_path(cls, field, width, height): path = cls() path.width = width path.height = height path.ends = set() path.starts = list() cells = list() for y in range(heigh...
{ "repo_name": "bitcraft/pyglet", "path": "contrib/spryte/dtd/path.py", "copies": "1", "size": "6484", "license": "bsd-3-clause", "hash": -3198771978191552000, "line_mean": 29.8761904762, "line_max": 75, "alpha_frac": 0.3918877236, "autogenerated": false, "ratio": 3.752314814814815, "config_test...
'''BlockExtend, extend template using another base template. :copyright: 2015, Jeroen van der Heijden (Transceptor Technology) ''' import re from .exceptions import DefineBlockError from .constants import ( LINE_BLOCK, LINE_MACRO, LINE_COMMENT, LINE_INCLUDE, LINE_END, FILENAME) class BlockEx...
{ "repo_name": "transceptor-technology/trender", "path": "trender/block_extend.py", "copies": "1", "size": "1433", "license": "mit", "hash": -7362585398672816000, "line_mean": 28.2448979592, "line_max": 79, "alpha_frac": 0.5478018144, "autogenerated": false, "ratio": 4.329305135951661, "config_t...
'''BlockFor, create a for loop. :copyright: 2015, Jeroen van der Heijden (Transceptor Technology) ''' import re from .exceptions import DefineBlockError from .constants import ( ALWAYS_ALLOWED, LINE_END, VAR, VAR_DOTS ) class BlockFor: RE_FOR = re.compile( '^\s*#for\s+@([{VAR}]+)\s+in\s...
{ "repo_name": "transceptor-technology/trender", "path": "trender/block_for.py", "copies": "1", "size": "1570", "license": "mit", "hash": 3051412146117657600, "line_mean": 29.1923076923, "line_max": 71, "alpha_frac": 0.5751592357, "autogenerated": false, "ratio": 3.792270531400966, "config_test"...
#Block generating module. # #When run, takes all the block files in data/map/raw_blocks and turns them into proper block files. #These new block files reside in data/map/blocks. import os path = "raw_blocks/" final_path = "blocks/" def write_block(name, width, height, map, dirs, meta): with open(final...
{ "repo_name": "RedMike/pYendor", "path": "data/map/generate_blocks.py", "copies": "1", "size": "6142", "license": "bsd-2-clause", "hash": 8777584148762615000, "line_mean": 33.1085714286, "line_max": 120, "alpha_frac": 0.4075219798, "autogenerated": false, "ratio": 3.94983922829582, "config_test...
""" blockgroups.py Output one shapefile per MSA containing all the blockgroups it contains """ import os import csv import fiona # # Import MSA to blockgroup crosswalk # msa_to_bg = {} with open('data/crosswalks/msa_blockgroups.csv', 'r') as source: reader = csv.reader(source, delimiter='\t') reader.next() ...
{ "repo_name": "scities/2000-us-metro-atlas", "path": "bin/shp/blockgroups.py", "copies": "1", "size": "1670", "license": "bsd-2-clause", "hash": 2678473925535480300, "line_mean": 27.3050847458, "line_max": 73, "alpha_frac": 0.5353293413, "autogenerated": false, "ratio": 3.1809523809523808, "con...
"""blockgroups.py Script to compute the adjacency list for the blockgroups in all CBSA. """ import os import csv import sys import itertools import fiona from shapely.geometry import shape csv.field_size_limit(sys.maxsize) # # Read preliminary data # # Names of CBSAs cbsa = {} with open('data/misc/cbsa_names.txt...
{ "repo_name": "scities-data/metro-atlas_2014", "path": "bin/adjacency/blockgroups.py", "copies": "1", "size": "1500", "license": "bsd-2-clause", "hash": -4426410275593742300, "line_mean": 21.7272727273, "line_max": 94, "alpha_frac": 0.62, "autogenerated": false, "ratio": 3.1446540880503147, "co...
"""blockgroups.py Script to compute the surface area of blockgroups per CBSA. """ import os import csv from functools import partial import fiona import pyproj from shapely.geometry import shape from shapely.ops import transform # # Preparation # ## Projection used to project polygons project = partial( pyproj...
{ "repo_name": "scities-data/metro-atlas_2014", "path": "bin/surface/blockgroups.py", "copies": "1", "size": "1466", "license": "bsd-2-clause", "hash": -7048770213138066000, "line_mean": 26.1481481481, "line_max": 94, "alpha_frac": 0.6316507503, "autogenerated": false, "ratio": 3.4093023255813955,...
'''BlockIf, used for if, elif and else. :copyright: 2015, Jeroen van der Heijden (Transceptor Technology) ''' import re from .exceptions import DefineBlockError from .constants import ( ALWAYS_ALLOWED, LINE_ELIF, LINE_ELSE, LINE_END, VAR_DOTS) class BlockIf: RE_IF = re.compile( '^\s...
{ "repo_name": "transceptor-technology/trender", "path": "trender/block_if.py", "copies": "1", "size": "2618", "license": "mit", "hash": 5186913649047013000, "line_mean": 33.9066666667, "line_max": 77, "alpha_frac": 0.5022918258, "autogenerated": false, "ratio": 4.077881619937695, "config_test":...
"""blockify Usage: blockify [-l <path>] [-v...] [-q] [-h] Options: -l, --log=<path> Enables logging to the logfile/-path specified. -q, --quiet Don't print anything to stdout. -v Verbosity of the logging module, up to -vvv. -h, --help Show this help text. --version...
{ "repo_name": "mikar/60-days-of-python", "path": "gui/blockify/blockify.py", "copies": "1", "size": "11622", "license": "mit", "hash": -7220712643156776000, "line_mean": 32.9824561404, "line_max": 82, "alpha_frac": 0.5900017209, "autogenerated": false, "ratio": 3.876584389593062, "config_test":...
"""blocking adapter test""" from datetime import datetime import logging import socket import time try: import unittest2 as unittest except ImportError: import unittest import uuid from forward_server import ForwardServer import pika from pika.adapters import blocking_connection from pika.compat import as_by...
{ "repo_name": "skftn/pika", "path": "tests/acceptance/blocking_adapter_test.py", "copies": "1", "size": "76620", "license": "mpl-2.0", "hash": -3050724070365141000, "line_mean": 35.3644992881, "line_max": 132, "alpha_frac": 0.6268859306, "autogenerated": false, "ratio": 4.07293217095471, "confi...
""""Blocking and non-blocking (asynchronous) clients for CouchDB using Tornado's httpclient. This module wraps the CouchDB HTTP REST API and defines a common interface for making blocking and non-blocking operations on a CouchDB. """ import copy import functools import json import tornado.ioloop from tornado import ...
{ "repo_name": "nephics/tornado-couchdb", "path": "couch/couch.py", "copies": "1", "size": "25186", "license": "mit", "hash": 3846308480479799300, "line_mean": 34.6237623762, "line_max": 79, "alpha_frac": 0.5759548956, "autogenerated": false, "ratio": 4.167107875579087, "config_test": false, "...
"""Blocking and non-blocking HTTP client interfaces. This module defines a common interface shared by two implementations, ``simple_httpclient`` and ``curl_httpclient``. Applications may either instantiate their chosen implementation class directly or use the `AsyncHTTPClient` class from this module, which selects an...
{ "repo_name": "realgam3/TORrnado", "path": "monkey/httpclient.py", "copies": "1", "size": "22474", "license": "apache-2.0", "hash": -6449342220513937000, "line_mean": 38.4973637961, "line_max": 83, "alpha_frac": 0.6326866601, "autogenerated": false, "ratio": 4.440624382533096, "config_test": tr...
"""Blocking and non-blocking HTTP client interfaces. This module defines a common interface shared by two implementations, `simple_httpclient` and `curl_httpclient`. Applications may either instantiate their chosen implementation class directly or use the `AsyncHTTPClient` class from this module, which selects an imp...
{ "repo_name": "Petraea/jsonbot", "path": "jsb/contrib/tornado/httpclient.py", "copies": "4", "size": "16913", "license": "mit", "hash": -5004811414978139000, "line_mean": 39.5587529976, "line_max": 83, "alpha_frac": 0.6403358363, "autogenerated": false, "ratio": 4.4461093585699265, "config_test...
"""Blocking channels Useful for test suites and blocking terminal interfaces. """ #----------------------------------------------------------------------------- # Copyright (C) 2013 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING.txt, distr...
{ "repo_name": "noslenfa/tdjangorest", "path": "uw/lib/python2.7/site-packages/IPython/kernel/blocking/channels.py", "copies": "2", "size": "2435", "license": "apache-2.0", "hash": 6217326877062002000, "line_mean": 29.8227848101, "line_max": 78, "alpha_frac": 0.5260780287, "autogenerated": false, ...
"""Blocking channels Useful for test suites and blocking terminal interfaces. """ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. try: from queue import Queue, Empty # Py 3 except ImportError: from Queue import Queue, Empty # Py 2 class ZMQSocketChanne...
{ "repo_name": "fzheng/codejam", "path": "lib/python2.7/site-packages/jupyter_client/blocking/channels.py", "copies": "13", "size": "2378", "license": "mit", "hash": -1622557488788952300, "line_mean": 25.1318681319, "line_max": 61, "alpha_frac": 0.555508831, "autogenerated": false, "ratio": 4.2924...
"""Blocking traps. When a task requests a kernel service, such as I/O or spawning a new task, it issues a trap. Traps are either blocking or non-blocking. When a task issues a blocking trap, it will yield, but when issuing a non-blocking trap, it will resume execution after kernel returns. """ __all__ = [ 'Traps...
{ "repo_name": "clchiou/garage", "path": "py/g1/asyncs/kernels/g1/asyncs/kernels/traps.py", "copies": "1", "size": "1370", "license": "mit", "hash": -8807886952515756000, "line_mean": 20.746031746, "line_max": 69, "alpha_frac": 0.7051094891, "autogenerated": false, "ratio": 3.215962441314554, "c...
BLOCK_LENGTH = 12 CODE_LENGTH = 24 code_matrix = [ [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0], [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1], ...
{ "repo_name": "AdvenamTacet/Smuggler", "path": "src/algorithms/ecc.py", "copies": "1", "size": "4073", "license": "mit", "hash": -2707162002275214300, "line_mean": 36.376146789, "line_max": 96, "alpha_frac": 0.5236926099, "autogenerated": false, "ratio": 2.494182486221678, "config_test": false,...
blocklevel = ["blockquote", "div", "form", "p", "table", "video", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "details", "article", "header", "main"] def normalizeEnter(src): #Deletes all user defined for readability reason existing line breaks that are issues for the HTML output for elem in blocklevel: while src.fin...
{ "repo_name": "ValorNaram/isl", "path": "inputchangers/002.py", "copies": "1", "size": "1044", "license": "mit", "hash": -4209184150812600300, "line_mean": 51.2, "line_max": 147, "alpha_frac": 0.6331417625, "autogenerated": false, "ratio": 3.043731778425656, "config_test": false, "has_no_keyw...
"""Blockly Demo: Add timestamps Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
{ "repo_name": "google/blockly", "path": "appengine/add_timestamps.py", "copies": "2", "size": "2064", "license": "apache-2.0", "hash": -55142556120536296, "line_mean": 28.9130434783, "line_max": 102, "alpha_frac": 0.7248062016, "autogenerated": false, "ratio": 3.6274165202108963, "config_test":...
"""Blockly Demo: Report Copyright 2012 Google Inc. http://blockly.googlecode.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://www.apache.org/licenses/LICENSE-2.0 Unless required by a...
{ "repo_name": "sernaleon/charlie", "path": "Others/BlocklyProbatinas/Blockly/appengine/report.py", "copies": "22", "size": "1677", "license": "apache-2.0", "hash": 4219282472884543500, "line_mean": 30.641509434, "line_max": 72, "alpha_frac": 0.7423971377, "autogenerated": false, "ratio": 3.964539...
"""Blockly Demo: Report Copyright 2012 Google Inc. https://blockly.googlecode.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://www.apache.org/licenses/LICENSE-2.0 Unless required by ...
{ "repo_name": "kallex/blockly", "path": "appengine/report.py", "copies": "21", "size": "1678", "license": "apache-2.0", "hash": 1175476289210967600, "line_mean": 30.6603773585, "line_max": 72, "alpha_frac": 0.7425506555, "autogenerated": false, "ratio": 3.966903073286052, "config_test": false, ...
"""Blockly Demo: Storage Copyright 2012 Google Inc. http://blockly.googlecode.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://www.apache.org/licenses/LICENSE-2.0 Unless required by ...
{ "repo_name": "jadonk/blockly-bonescript", "path": "static/appengine/storage.py", "copies": "26", "size": "2609", "license": "apache-2.0", "hash": -7955977160863103000, "line_mean": 29.6941176471, "line_max": 76, "alpha_frac": 0.6887696435, "autogenerated": false, "ratio": 3.502013422818792, "c...
"""Blockly Demo: Storage Copyright 2012 Google Inc. https://blockly.googlecode.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://www.apache.org/licenses/LICENSE-2.0 Unless required by...
{ "repo_name": "sernaleon/charlie", "path": "Android/platforms/android/assets/www/Blockly/appengine/storage.py", "copies": "20", "size": "2610", "license": "apache-2.0", "hash": 2274207867187441400, "line_mean": 29.7058823529, "line_max": 76, "alpha_frac": 0.6888888889, "autogenerated": false, "ra...
"""Blockly Demo: Storage Copyright 2012 Google Inc. https://developers.google.com/blockly/ 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...
{ "repo_name": "nickmain/blockly", "path": "appengine/storage.py", "copies": "6", "size": "2650", "license": "apache-2.0", "hash": 8399256650911996000, "line_mean": 29.4597701149, "line_max": 76, "alpha_frac": 0.6852830189, "autogenerated": false, "ratio": 3.4460338101430428, "config_test": fals...
"""Blockly Demo: Storage Copyright 2012 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
{ "repo_name": "picklesrus/blockly", "path": "appengine/storage.py", "copies": "1", "size": "2610", "license": "apache-2.0", "hash": 2406550632067894300, "line_mean": 29.3488372093, "line_max": 76, "alpha_frac": 0.683908046, "autogenerated": false, "ratio": 3.4523809523809526, "config_test": fal...
"""Blockly Games: Gallery Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
{ "repo_name": "google/blockly-games", "path": "appengine/gallery_api/admin.py", "copies": "1", "size": "1094", "license": "apache-2.0", "hash": 3049775946991584000, "line_mean": 26.35, "line_max": 72, "alpha_frac": 0.7230347349, "autogenerated": false, "ratio": 3.4952076677316293, "config_test"...
"""Blockly Games: Storage Copyright 2012 Google Inc. https://github.com/google/blockly-games Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless re...
{ "repo_name": "trg1984/kooditunti", "path": "public/blockly-games/appengine/storage.py", "copies": "3", "size": "2721", "license": "mit", "hash": 2762164657491874000, "line_mean": 29.5730337079, "line_max": 76, "alpha_frac": 0.6857772878, "autogenerated": false, "ratio": 3.4706632653061225, "co...
"""Blockly Games: Storage Copyright 2012 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
{ "repo_name": "google/blockly-games", "path": "appengine/storage.py", "copies": "1", "size": "2611", "license": "apache-2.0", "hash": -4443726526550429000, "line_mean": 29.3604651163, "line_max": 76, "alpha_frac": 0.6840291076, "autogenerated": false, "ratio": 3.4491413474240424, "config_test":...
"""Blockly Games: Turtle/Movie to Reddit Submission Copyright 2014 Google Inc. https://github.com/google/blockly-games 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/licen...
{ "repo_name": "trg1984/kooditunti", "path": "public/blockly-games/appengine/reddit.py", "copies": "3", "size": "2865", "license": "mit", "hash": 6939066423602502000, "line_mean": 34.8125, "line_max": 78, "alpha_frac": 0.6436300175, "autogenerated": false, "ratio": 3.7256176853055916, "config_te...
'''BlockMacro, define a macro. :copyright: 2015, Jeroen van der Heijden (Transceptor Technology) ''' import re from .exceptions import DefineBlockError from .constants import ALWAYS_ALLOWED, LINE_END class BlockMacro: RE_MACRO = re.compile('^\s*#macro\s+([a-zA-Z0-9_]+)\s*:\s*$', re.UNICODE) def __init__(s...
{ "repo_name": "transceptor-technology/trender", "path": "trender/block_macro.py", "copies": "1", "size": "1141", "license": "mit", "hash": 2139403904687989500, "line_mean": 29.0263157895, "line_max": 77, "alpha_frac": 0.6029798422, "autogenerated": false, "ratio": 3.85472972972973, "config_test...
{% block meta %} name: Base description: SMACH base template. language: Python framework: SMACH type: Base tags: [core] includes: [] extends: [] variables: - - manifest: description: ROS manifest name. type: str - - node_name: description: ROS node name for the state machine. type: str - outcome...
{ "repo_name": "ReconCell/smacha", "path": "smacha/src/smacha/templates/Base.tpl.py", "copies": "1", "size": "2545", "license": "bsd-3-clause", "hash": -7567687734559903000, "line_mean": 24.7070707071, "line_max": 115, "alpha_frac": 0.6003929273, "autogenerated": false, "ratio": 3.5694249649368865...
{% block meta %} name: CallbacksState description: SMACH state that defines callbacks that operate on userdata. language: Python framework: SMACH type: State tags: [core] includes: [] extends: - State variables: - callbacks: description: Either callback function names or backtick-wrapped lambda function ...
{ "repo_name": "ReconCell/smacha", "path": "smacha/src/smacha/templates/CallbacksState.tpl.py", "copies": "1", "size": "1314", "license": "bsd-3-clause", "hash": 4763111333178868000, "line_mean": 25.8163265306, "line_max": 106, "alpha_frac": 0.6780821918, "autogenerated": false, "ratio": 3.8197674...
{% block meta %} name: Concurrence description: SMACH Concurrence container for running states in parallel. language: Python framework: SMACH type: Container tags: [core] includes: [] extends: [] variables: [] input_keys: [] output_keys: [] outcomes: [] {% endblock meta %} {% from "Utils.tpl.py" import render_outcomes...
{ "repo_name": "ReconCell/smacha", "path": "smacha/src/smacha/templates/Concurrence.tpl.py", "copies": "1", "size": "1940", "license": "bsd-3-clause", "hash": -3819426155417272000, "line_mean": 33.6428571429, "line_max": 162, "alpha_frac": 0.5922680412, "autogenerated": false, "ratio": 3.709369024...
{% block meta %} name: ConditionalOutcomeState description: A SMACH state that conditionally selects an outcome from a list of possible outcomes if its corresponding callback returns True. language: Python framework: SMACH type: State tags: [core] includes: [] extends: - State variables: - - outcomes: des...
{ "repo_name": "ReconCell/smacha", "path": "smacha/src/smacha/templates/ConditionalOutcomeState.tpl.py", "copies": "1", "size": "3087", "license": "bsd-3-clause", "hash": 9036747007239556000, "line_mean": 32.9230769231, "line_max": 115, "alpha_frac": 0.6559766764, "autogenerated": false, "ratio": ...
{% block meta %} name: DeleteFileState description: SMACH state that deletes specified files from the file system. language: Python framework: SMACH type: State tags: [core] includes: [] extends: - State variables: - callbacks: description: Either callback function names or backtick-wrapped lambda functions...
{ "repo_name": "ReconCell/smacha", "path": "smacha/src/smacha/templates/DeleteFileState.tpl.py", "copies": "1", "size": "2320", "license": "bsd-3-clause", "hash": 8795797824935656000, "line_mean": 28, "line_max": 117, "alpha_frac": 0.6245689655, "autogenerated": false, "ratio": 3.8538205980066444,...
{% block meta %} name: MsgPublisher description: SMACH template that provides a MsgPublisher helper class for PublishMsgState. language: Python framework: SMACH type: None tags: [core] includes: [] extends: [] variables: [] input_keys: [] output_keys: [] {% endblock meta %} {% from "Utils.tpl.py" import import_mod...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/MsgPublisher.tpl.py", "copies": "1", "size": "5328", "license": "bsd-3-clause", "hash": -8252584013707099000, "line_mean": 32.5094339623, "line_max": 144, "alpha_frac": 0.5807057057, "autogenerated": false, "ratio": 4....
{% block meta %} name: MsgPublisherObserver description: SMACH template that provides a MsgPublisherObserver helper class for PublishMsgState. language: Python framework: SMACH type: None tags: [core] includes: [] extends: [] variables: [] input_keys: [] output_keys: [] {% endblock meta %} {% from "Utils.tpl.py" i...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/MsgPublisherObserver.tpl.py", "copies": "1", "size": "4703", "license": "bsd-3-clause", "hash": -2885912112823007000, "line_mean": 35.4573643411, "line_max": 122, "alpha_frac": 0.562194344, "autogenerated": false, "rat...
{% block meta %} name: ParseJointTrajectoryPoint description: SMACH template that provides a ParseJointTrajectoryPoint helper function for, e.g. PublishMsgState. The function takes an input argument that can be specified as either a trajectory_msgs.msg.JointTrajectoryPoint type, a sensor_msgs.msg.JointState typ...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/ParseJointTrajectoryPoint.tpl.py", "copies": "1", "size": "2152", "license": "bsd-3-clause", "hash": 5136076194790815000, "line_mean": 36.7543859649, "line_max": 151, "alpha_frac": 0.7253717472, "autogenerated": false, ...
{% block meta %} name: ParsePointStamped description: SMACH template that provides a ParsePointStamped helper function for, e.g. PublishMsgState. The function takes an input argument that can be specified as either a geometry_msgs.msg.Point type, a geometry_msgs.msg.PointStamped type or as a [3] list, and retur...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/ParsePointStamped.tpl.py", "copies": "1", "size": "1928", "license": "bsd-3-clause", "hash": 7415180518602550000, "line_mean": 31.1333333333, "line_max": 106, "alpha_frac": 0.6602697095, "autogenerated": false, "ratio"...
{% block meta %} name: ParsePoseArray description: SMACH template that provides a ParsePoseArray helper function for, e.g. PublishMsgState. The function takes an input argument that can be specified as a geometry_msgs.msg.PoseArray type or as a list of geometry_msgs.msg.Pose types, geometry_msgs.msg.PoseStamped...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/ParsePoseArray.tpl.py", "copies": "1", "size": "2575", "license": "bsd-3-clause", "hash": -1357894681731601000, "line_mean": 35.7857142857, "line_max": 137, "alpha_frac": 0.6182524272, "autogenerated": false, "ratio": ...
{% block meta %} name: ParsePose description: SMACH template that provides a ParsePose helper function for, e.g. PublishMsgState. The function takes an input argument that can be specified as either a geometry_msgs.msg.Pose type, a geometry_msgs.msg.PoseStamped type, or as a [[3],[4]] list, and returns a geomet...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/ParsePose.tpl.py", "copies": "1", "size": "1764", "license": "bsd-3-clause", "hash": 3825429117262736400, "line_mean": 31.6666666667, "line_max": 112, "alpha_frac": 0.6507936508, "autogenerated": false, "ratio": 3.2788...
{% block meta %} name: ParsePoseStamped description: SMACH template that provides a ParsePoseStamped helper function for, e.g. PublishMsgState. The function takes an input argument that can be specified as either a geometry_msgs.msg.Pose type, a geometry_msgs.msg.PoseStamped type, or a [[3],[4]] list, and retur...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/ParsePoseStamped.tpl.py", "copies": "1", "size": "1935", "license": "bsd-3-clause", "hash": -2738604137059133000, "line_mean": 33.5535714286, "line_max": 112, "alpha_frac": 0.6589147287, "autogenerated": false, "ratio"...
{% block meta %} name: PrintUserdataState description: SMACH state that prints the values of userdata input_keys to standard output. language: Python framework: SMACH type: State tags: [core] includes: [] extends: - State variables: - input_keys: description: The names of the userdata input keys to be print...
{ "repo_name": "ReconCell/smacha", "path": "smacha/src/smacha/templates/PrintUserdataState.tpl.py", "copies": "1", "size": "1670", "license": "bsd-3-clause", "hash": -6971575096333494000, "line_mean": 27.7931034483, "line_max": 101, "alpha_frac": 0.6700598802, "autogenerated": false, "ratio": 3.89...
{% block meta %} name: PublishMsgState description: > SMACH template that publishes a ROS message passed via a userdata input_key to a topic. If the message type is not specified, attempts will be made to infer it from the message data. language: Python framework: SMACH type: None tags: [core] includes: [] extend...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/PublishMsgState.tpl.py", "copies": "1", "size": "10592", "license": "bsd-3-clause", "hash": 2853502414444873000, "line_mean": 39.2737642586, "line_max": 404, "alpha_frac": 0.6184856495, "autogenerated": false, "ratio":...
{% block meta %} name: PublishObserverMsgState description: > SMACH template that publishes a ROS message passed via a userdata input_key to a topic by using a message publisher observer object that is set to subscribe to and observe another topic which determines the publication rate. If the message type is no...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/PublishObserverMsgState.tpl.py", "copies": "1", "size": "9973", "license": "bsd-3-clause", "hash": -6736209970656314000, "line_mean": 40.5541666667, "line_max": 423, "alpha_frac": 0.6293993783, "autogenerated": false, ...
{% block meta %} name: RandomOutcomeState description: SMACH state randomly selects an outcome from a list of possible outcomes. language: Python framework: SMACH type: State tags: [core] includes: [] extends: - State variables: - - input_keys: description: The names of the userdata input keys to be use...
{ "repo_name": "ReconCell/smacha", "path": "smacha/src/smacha/templates/RandomOutcomeState.tpl.py", "copies": "1", "size": "2196", "license": "bsd-3-clause", "hash": -6681183359114474000, "line_mean": 29.0821917808, "line_max": 116, "alpha_frac": 0.6785063752, "autogenerated": false, "ratio": 3.95...
{% block meta %} name: ReadTopicState description: SMACH state that reads data from a ROS topic. language: Python framework: SMACH type: State tags: [core] includes: [] extends: - WaitForMsgState variables: - input_keys: description: Other than the 'topic' input_key, which specifies the topic to be read, ...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/ReadTopicState.tpl.py", "copies": "1", "size": "4846", "license": "bsd-3-clause", "hash": -7200163131147944000, "line_mean": 34.8962962963, "line_max": 148, "alpha_frac": 0.6246388774, "autogenerated": false, "ratio": ...
{% block meta %} name: ROSBagAPIThreadRecorder description: SMACH template that can start and stop rosbag recordings using different types of recorder classes, namely ROSBagCLIProcessRecorder or ROSBagAPIThreadRecorder. language: Python framework: SMACH type: None tags: [core] includes: [] extends: [] variables: [...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/RecordROSBagState.tpl.py", "copies": "1", "size": "4461", "license": "bsd-3-clause", "hash": -227521026524430900, "line_mean": 39.5545454545, "line_max": 403, "alpha_frac": 0.6429051782, "autogenerated": false, "ratio"...
{% block meta %} name: ROSBagAPIThreadRecorder description: > SMACH template that provides a ROSBagAPIThreadRecorder helper class for RecordROSBagState. It uses the rosbag API (application programming interface) as well as the threading library in order to manage multiple recording threads. NOTE: this means tha...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/ROSBagAPIThreadRecorder.tpl.py", "copies": "1", "size": "9744", "license": "bsd-3-clause", "hash": 536350325608674750, "line_mean": 38.4493927126, "line_max": 160, "alpha_frac": 0.595545977, "autogenerated": false, "ra...
{% block meta %} name: ROSBagCLIProcessRecorder description: > SMACH template that provides a ROSBagCLIProcessRecorder helper class for RecordROSBagState. It uses subprocess calls to the rosbag CLI (command-line interface) recording tool in order to circumvent threading and Python GIL (global interpreter lock) ...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/ROSBagCLIProcessRecorder.tpl.py", "copies": "1", "size": "4083", "license": "bsd-3-clause", "hash": -2472804079982929400, "line_mean": 38.640776699, "line_max": 150, "alpha_frac": 0.6105804555, "autogenerated": false, ...
{% block meta %} name: ROSBase description: SMACH base template. language: Python framework: SMACH type: Base tags: [core] includes: [] extends: [] variables: - - manifest: description: ROS manifest name. type: str - - node_name: description: ROS node name for the state machine. type: str - outc...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/ROSBase.tpl.py", "copies": "1", "size": "3162", "license": "bsd-3-clause", "hash": 6996514712781361000, "line_mean": 27.2321428571, "line_max": 155, "alpha_frac": 0.6018342821, "autogenerated": false, "ratio": 3.576923...
{% block meta %} name: SleepState description: SMACH state that pauses state machine execution for a specified length of time. language: Python framework: SMACH type: State tags: [core] includes: - State extends: [] variables: - time: description: The length of time to sleep for in seconds. type: float in...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/SleepState.tpl.py", "copies": "1", "size": "1351", "license": "bsd-3-clause", "hash": -335525018759810200, "line_mean": 24.4905660377, "line_max": 104, "alpha_frac": 0.644707624, "autogenerated": false, "ratio": 3.5090...
{% block meta %} name: TF2ListenerState description: SMACH state for listening for and returning a particular transform on TF2. language: Python framework: SMACH type: State tags: [core] includes: - TF2ListenerSingleton extends: - State variables: [] input_keys: - target: description: The name of the target ref...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/TF2ListenerState.tpl.py", "copies": "1", "size": "2351", "license": "bsd-3-clause", "hash": 6894602117093887000, "line_mean": 28.3875, "line_max": 116, "alpha_frac": 0.6210123352, "autogenerated": false, "ratio": 3.944...
{% block meta %} name: TransformMsgState description: > SMACH template that transforms a message from one tf frame to another. language: Python framework: SMACH type: None tags: [core] includes: [] extends: - State variables: - - input_keys: description: > Other than the input_keys specified below, rema...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/TransformMsgState.tpl.py", "copies": "1", "size": "13091", "license": "bsd-3-clause", "hash": 3198561749762640000, "line_mean": 41.2290322581, "line_max": 561, "alpha_frac": 0.6109540906, "autogenerated": false, "ratio...
{% block meta %} name: TransformStamped description: SMACH template that provides a TransformStamped helper function for, e.g. PublishMsgState. The function takes an input argument that can be specified as either a geometry_msgs.msg.Transform type, a geometry_msgs.msg.TransformStamped type or as a [[3],[4]] lis...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/ParseTransformStamped.tpl.py", "copies": "1", "size": "2106", "license": "bsd-3-clause", "hash": -756123829537671200, "line_mean": 35.9473684211, "line_max": 124, "alpha_frac": 0.6885090218, "autogenerated": false, "ra...
{% block meta %} name: Utils description: SMACH template containing macros commonly used by other templates. language: Python framework: SMACH type: None tags: [core] includes: [] extends: [] variables: [] input_keys: [] output_keys: [] {% endblock meta %} # # Macro for rendering 'userdata' state machine headers. # {%...
{ "repo_name": "ReconCell/smacha", "path": "smacha/src/smacha/templates/Utils.tpl.py", "copies": "1", "size": "8418", "license": "bsd-3-clause", "hash": 3199108419830720500, "line_mean": 48.8106508876, "line_max": 536, "alpha_frac": 0.6029935852, "autogenerated": false, "ratio": 3.477075588599752,...
{% block meta %} name: WaitForMsgState description: > SMACH template that provides a WaitForMsgState helper class for ReadTopicState. The class acts as a generic message listener with blocking, timeout, latch and flexible usage. It is meant to be extended with a case specific class that initializes this o...
{ "repo_name": "ReconCell/smacha", "path": "smacha_ros/src/smacha_ros/templates/WaitForMsgState.tpl.py", "copies": "1", "size": "7397", "license": "bsd-3-clause", "hash": 6175394749861678000, "line_mean": 39.2010869565, "line_max": 457, "alpha_frac": 0.65107476, "autogenerated": false, "ratio": 4....
{% block meta %} name: WriteCSVFileState description: SMACH state that writes a comma-separated values (CSV) file to the file system based on userdata input. language: Python framework: SMACH type: State tags: [core] includes: extends: - State variables: - input_keys: description: The userdata input key...
{ "repo_name": "ReconCell/smacha", "path": "smacha/src/smacha/templates/WriteCSVFileState.tpl.py", "copies": "1", "size": "8252", "license": "bsd-3-clause", "hash": -6383827878280115000, "line_mean": 38.8647342995, "line_max": 526, "alpha_frac": 0.517935046, "autogenerated": false, "ratio": 4.5793...
"""Block moving robot arm simulation""" import sys from visual import box, label, color, rate from Numeric import array class Arm(object): """Represents the robot arm""" def __init__(self, stacks): """Pass the Stacks instance""" self.stacks = stacks def _getBlocks(self, a, b): ""...
{ "repo_name": "ActiveState/code", "path": "recipes/Python/361168_Vpython_example/recipe-361168.py", "copies": "1", "size": "10035", "license": "mit", "hash": -8976176938074086000, "line_mean": 31.7941176471, "line_max": 114, "alpha_frac": 0.5669157947, "autogenerated": false, "ratio": 3.894062863...
"""Block naming and location utilities for the datablox framework. """ import os.path DEFAULT_VERSION = "1.0" def mangle_string(name): """Take a string and make it a valid python module name. This is used for block names and versions. """ return name.lower().replace('-','_').replace('.', '_').replace(' ', ''...
{ "repo_name": "mpi-sws-rse/datablox", "path": "datablox_framework/datablox_framework/naming.py", "copies": "1", "size": "1489", "license": "apache-2.0", "hash": -843080731614683400, "line_mean": 35.3170731707, "line_max": 111, "alpha_frac": 0.674278039, "autogenerated": false, "ratio": 3.30888888...
# block.py # Demonstration of a Blockchain; 1 of 3 components import hashlib from . import block_params class Block(): def __init__(self, params): self.index = params.index self.previous_hash = params.previous_hash self.timestamp = params.timestamp self.data = params.data ...
{ "repo_name": "bluewitch/Code-Blue-Python", "path": "block.py", "copies": "1", "size": "1050", "license": "mit", "hash": -5634279101025382000, "line_mean": 25.25, "line_max": 70, "alpha_frac": 0.6219047619, "autogenerated": false, "ratio": 3.9473684210526314, "config_test": false, "has_no_key...
block="\ 73167176531330624919225119674426574742355349194934\ 96983520312774506326239578318016984801869478851843\ 85861560789112949495459501737958331952853208805511\ 12540698747158523863050715693290963295227443043557\ 66896648950445244523161731856403098711121722383113\ 622298934233803081353362766142828064444866452...
{ "repo_name": "mcgettin/ditOldProgramming", "path": "yr2/sem1/euler/eu8.py", "copies": "1", "size": "1286", "license": "mit", "hash": 1358527266677687000, "line_mean": 35.8235294118, "line_max": 51, "alpha_frac": 0.8514774495, "autogenerated": false, "ratio": 2.2720848056537104, "config_test": ...
## +block def indented_block(self): print(f"Indent-dependent {self.tag} block started") start_O_line = self.O.line_number block_indent = self.I.indent_count + 1 if self.offset: self.O.offset -= block_indent #Opening block self.opening_tag() #Main block loop while 1: loop_line = self.I.line_...
{ "repo_name": "fourpoints/addup", "path": "old/blocks.py", "copies": "1", "size": "3472", "license": "mit", "hash": 7197442996963397000, "line_mean": 20.4, "line_max": 58, "alpha_frac": 0.6177995392, "autogenerated": false, "ratio": 2.7842822774659184, "config_test": false, "has_no_keywords":...
blocksize = 256 keysize = 80 rounds = 12 def main(): ''' Use the global parameters `blocksize`, `keysize` and `rounds` to create the set of matrices and constants for the corresponding LowMC instance. Save those in a file named `matrices_and_constants.dat`. ''' gen = grain_ssg() ...
{ "repo_name": "tyti/lowmc", "path": "generate_matrices.py", "copies": "1", "size": "3956", "license": "mit", "hash": -4970436847490348000, "line_mean": 30.648, "line_max": 79, "alpha_frac": 0.4567745197, "autogenerated": false, "ratio": 3.6697588126159553, "config_test": false, "has_no_keywor...
"""Blocks native serialization - tar files with pickles and numpy arrays. This module provides :func:`load` and :func:`dump` functions that can serve as drop-in replacement for the respective functions from the standard :mod:`pickle` module. The main differences between them and the standard ones are: - The dump ...
{ "repo_name": "rizar/attention-lvcsr", "path": "libs/blocks/blocks/serialization.py", "copies": "1", "size": "21988", "license": "mit", "hash": -2653473025410216400, "line_mean": 35.0459016393, "line_max": 79, "alpha_frac": 0.6381207932, "autogenerated": false, "ratio": 4.141646261066114, "conf...
# blocks.py 26/08/2014 D.J.Whale # # Taken from: # http://www.stuffaboutcode.com/p/minecraft-api-reference.html # # This link above is the most complete reference about the Minecraft API # and the block types. PLATFORM = "RaspberryPi" # GLOWING_OBSIDIAN is on Pi only # there are other changes in Bukkit, see Martin's...
{ "repo_name": "whaleygeek/mcpi-blocktwin", "path": "blocks.py", "copies": "1", "size": "6591", "license": "mit", "hash": 2323551866803132400, "line_mean": 19.28, "line_max": 72, "alpha_frac": 0.5718403884, "autogenerated": false, "ratio": 2.567588624853915, "config_test": false, "has_no_keywo...
"""blocks.py: Implementation of class AbstractTwitterBlockCommand and its subclasses. """ from . import AbstractTwitterCommand, call_decorator from ..parsers import (filter_args, parser_user_single, parser_cursor, parser_include_entities, ...
{ "repo_name": "showa-yojyo/bin", "path": "twmods/commands/blocks.py", "copies": "1", "size": "3762", "license": "mit", "hash": -2660532871398060000, "line_mean": 28.1627906977, "line_max": 65, "alpha_frac": 0.5879851143, "autogenerated": false, "ratio": 4.405152224824356, "config_test": false, ...
""" blocks.py Output one shapefile per MSA featuring all the blocks it contains """ import os import csv import fiona # # Import MSA to blockgroup crosswalk # msa_to_block = {} with open('data/crosswalks/msa_blocks.csv', 'r') as source: reader = csv.reader(source, delimiter='\t') reader.next() for rows ...
{ "repo_name": "scities/2000-us-metro-atlas", "path": "bin/shp/blocks.py", "copies": "1", "size": "1683", "license": "bsd-2-clause", "hash": -7053227971585737000, "line_mean": 27.5254237288, "line_max": 81, "alpha_frac": 0.5484254308, "autogenerated": false, "ratio": 3.2365384615384616, "config_...