conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Update generic synth script for dfflegalize changes" }, { "from": "human", "value": "# Usage\n# tcl synth_generic.tcl {K} {out.json}\n\nset LUT_K 4\nif {$argc > 0} { set LUT_K [lindex $argv 0] }\nyosys read_verilog -lib [file dirname [file normalize $argv0]]/prims.v...
tcl
chosen
[ { "from": "system", "value": "BUG: Add some output to the test about what objects we are attempting to Print so that when it crashes, it is easier way to figure out who is responsible. Now we will be able to tell by inspection on the dashboard test output which class is crashing the test.\n" }, { "f...
tcl
chosen
[ { "from": "system", "value": "Use global instead of upvar. Much nicer.\n\ngit-svn-id: 620571fa9b4bd0cbce9a0cf901e91ef896adbf27@38 d073be05-634f-4543-b044-5fe20cf6d1d6\n" }, { "from": "human", "value": "#!/usr/bin/tclsh\n# /etc/ports.conf options\npackage provide darwinports 1.0\n\n\nnamespace e...
tcl
chosen
[ { "from": "system", "value": "Add param search script for log normal\n\ngit-svn-id: 0c5512015aa96f7d3f5c3ad598bd98edc52008b1@11979 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "source lognorm.tcl\npackage require lognorm\n\n\nforeach mu [ list -9 -8.5 -8 -7.5 -7 ] {\n ...
tcl
chosen
[ { "from": "system", "value": "Make shift proc return the first element\n" }, { "from": "human", "value": "#!/bin/sh\n# vim: set filetype=tcl : \\\nexec tclsh \"$0\" ${1+\"$@\"}\n\npackage require Tcl 8.5\n\nproc shift {var n} {\n upvar $var list\n set list [lrange $list $n end]\n}\n\nwhile...
tcl
chosen
[ { "from": "system", "value": "git-gui: Use PWD if it exists on Mac OS X\n\nThe current working directory is set to / when git-gui is invoked\nusing the Git Gui.app bundle on Mac OS X. This means that if it is\nlaunched from a directory which contains a repository then git-gui\nwon't automatically find it un...
tcl
chosen
[ { "from": "system", "value": "git-gui: Correct 'Visualize Branches' on Mac OS X to start gitk\n\nIn Git 1.6 and later gitk is in $prefix/bin while git-gui and all\nof the other commands are in $gitexecdir, which is typically not\nthe same as $prefix/bin. So we cannot launch $gitexecdir/gitk and\nexpect it ...
tcl
chosen
[ { "from": "system", "value": "[fpga] Raise severity of create_clock failures to error\n\nBy default, such failures are just reported as critical warnings in batch\nmode which are easily overlooked. Such failures usually occur if clock\nconstraints get outdated, e.g., because anchor points change. The design...
tcl
chosen
[ { "from": "system", "value": "Change reflect to have ugrid output.\n" }, { "from": "human", "value": "package require vtk\npackage require vtkinteraction\n\nvtkConeSource cone\n\nvtkReflectionFilter reflect\nreflect SetInput [cone GetOutput]\nreflect SetPlaneToXMax\n\nvtkReflectionFilter reflect...
tcl
chosen
[ { "from": "system", "value": "Fix Tk frame redraw bug, when SDL surface covered\n" }, { "from": "human", "value": "proc handleKey {key} {\n switch -regexp -- $key {\n .*Up$ {ball up}\n .*Down$ {ball down}\n .*Left$ {ball left}\n .*Right$ {ball right}\n }\n}\n\nwm title . {Demo of u...
tcl
chosen
[ { "from": "system", "value": "Fix false positive in memory efficiency test.\n\nFixes issue #1298.\n" }, { "from": "human", "value": "proc test_memory_efficiency {range} {\n r flushall\n set base_mem [s used_memory]\n set written 0\n for {set j 0} {$j < 10000} {incr j} {\n set ...
tcl
chosen
[ { "from": "system", "value": "[fpv] Downgrade an error to a warning\n\nThis PR downgrade an error in jaspergold to warning.\nThe previous error happens when design assign an integer to an enum\ntype. This happens in an auto-generated otp_ctrl_part_pkg.\n\nSigned-off-by: Cindy Chen <399ad771a111eac8923348b1e...
tcl
chosen
[ { "from": "system", "value": "Fix an issue when using TclSpec on Tcl 8.6.\n\nThis issue was reported by David Kren.\n" }, { "from": "human", "value": "package provide spec 0.1\n\npackage require nx\npackage require nx::trait\npackage require at_exit\npackage require try\n\nnamespace eval Spec {\...
tcl
chosen
[ { "from": "system", "value": "Generalize the \"safety catch\" test for withPgtcl.\n" }, { "from": "human", "value": "# Common configuration parameters\n\n # set to 1 to see errorInfo in normal tracebacks\n set errorDebug 1\n\n # set to 0 to generate without the \"-pipe\" in the gcc comm...
tcl
chosen
[ { "from": "system", "value": "Exit code is now 0 if ok and 1 if any differences found. -1 on error.\n" }, { "from": "human", "value": "#!/usr/local/bin/tclsh\n\nsource [file dirname [info script]]/oslib.tcl\nnamespace import TB_OS::os\n\nif {[llength $argv] != 1} {\n puts stderr \"Syntax: $a...
tcl
chosen
[ { "from": "system", "value": "Fix crash in some config if Tk was not found. Complain more gracefully.\n" }, { "from": "human", "value": "package require vtkgraphics\npackage require vtkimaging\n\nif {[catch {\n package require Tk\n}]} {\n ::vtk::load_component tk\n}\n\nif {[info commands v...
tcl
chosen
[ { "from": "system", "value": "Handle initialization without any existing packages\n" }, { "from": "human", "value": "namespace eval ::mug::autoloader {\n\n # Writes a sourceable script for using local packages\n proc provide_autoloader {path} {\n set destination [file join $path \"m...
tcl
chosen
[ { "from": "system", "value": "parallella/fpga: Use in-tree ADI IP repo\n" }, { "from": "human", "value": "\n#Design name (\"system\" recommended)\nset design system\n\n#Project directory (\".\" recommended)\nset projdir ./\n\n#Device name\nset partname \"xc7z020clg400-1\"\n\n#Paths to all IP blo...
tcl
chosen
[ { "from": "system", "value": "Add function for generating packing lists\n\ngit-svn-id: 620571fa9b4bd0cbce9a0cf901e91ef896adbf27@243 d073be05-634f-4543-b044-5fe20cf6d1d6\n" }, { "from": "human", "value": "# ex:ts=4\n#\n# Insert some license text here at some point soon.\n#\n\npackage provide port...
tcl
chosen
[ { "from": "system", "value": "Allow to override build date\n\nthat gets written to man pages\nin order to allow for reproducible builds.\nSee https://reproducible-builds.org/ for why this is good\nand https://reproducible-builds.org/specs/source-date-epoch/\nfor the definition of this variable.\n" }, { ...
tcl
chosen
[ { "from": "system", "value": "Fix message to print proper action\n\ngit-svn-id: 620571fa9b4bd0cbce9a0cf901e91ef896adbf27@633 d073be05-634f-4543-b044-5fe20cf6d1d6\n" }, { "from": "human", "value": "#!/usr/bin/tclsh\n# Traverse through all ports running the supplied target. If target is\n# \"inde...
tcl
chosen
[ { "from": "system", "value": "Use the right base directory now that things have moved around.\n\ngit-svn-id: 620571fa9b4bd0cbce9a0cf901e91ef896adbf27@735 d073be05-634f-4543-b044-5fe20cf6d1d6\n" }, { "from": "human", "value": "#!/usr/bin/tclsh\n# Traverse through all ports running the supplied ta...
tcl
chosen
[ { "from": "system", "value": "Make this work regardless of cwd.\n" }, { "from": "human", "value": "#!/usr/bin/env tclsh\npackage require growl\n\ngrowl register ExampleTclApp \"warning error\" pwrdLogo75.gif\ngrowl post warning \"TclGrowl launched\" \"Hi there!\"\nafter 10000\ngrowl post error \...
tcl
chosen
[ { "from": "system", "value": "Switch to XOTcl 2.0 (which in turn includes nx).\n" }, { "from": "human", "value": "package provide spec 0.1\n\npackage require XOTcl\npackage require at_exit\npackage require try\n\nnamespace eval Spec {\n namespace import ::xotcl::*\n namespace import ::tcl:...
tcl
chosen
[ { "from": "system", "value": "Fix test to not unnecessarily decrement output filename refcount\n\ngit-svn-id: 47705994653588c662f4ea400dfe88107361c0e2@9890 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "\npackage provide funcs_5697 0.5\n\nnamespace eval funcs_5697 {\n p...
tcl
chosen
[ { "from": "system", "value": "Update test wrt ADLB changes\n\n\ngit-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@1488 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "\n# Flex Turbine+ADLB but do nothing\n# Nice to have for quick manual experiments\n\npackage require t...
tcl
chosen
[ { "from": "system", "value": "Switch test to use new adlb::store\n\ngit-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@2624 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "\n# Test what happens if we try to get something that does not exist\n\npackage require turbine 0....
tcl
chosen
[ { "from": "system", "value": "Update LED driver timing constraints\n" }, { "from": "human", "value": "# Timing constraints for led_sreg_driver\n\nforeach inst [get_cells -hier -filter {(ORIG_REF_NAME == led_sreg_driver || REF_NAME == led_sreg_driver)}] {\n puts \"Inserting timing constraints ...
tcl
chosen
[ { "from": "system", "value": "Exclude tap cells from detailed placement padding\n\n- this is mainly to avoid an issue with false positive \"cells overlap\" issues\n" }, { "from": "human", "value": "# Copyright 2020 Efabless Corporation\n#\n# Licensed under the Apache License, Version 2.0 (the \"...
tcl
chosen
[ { "from": "system", "value": "[fpga] Add timestamp for bitstream identification via USR_ACCESS reg\n\nThis commit modifies the bitstream generation to add a timestamp\nin the USR_ACCESS register for later identification. This is useful to\nfind out which bitstream is currently loaded on a running FPGA.\n\nS...
tcl
chosen
[ { "from": "system", "value": "Use setundef to remove randomness from Yosys output\n" }, { "from": "human", "value": "# Minimal Yosys synthesis tcl script for the to support RTL analysis.\n# It can be overriden for specific analyses.\nset input_rtl $::env(INPUT_RTL)\nset top $::env(CONSTANT_TOP)\...
tcl
chosen
[ { "from": "system", "value": "Sort out posting from PNAS abstract page.\n\ngit-svn-id: 3e7511c6a72cd8f37051d3238e8364850d38d547@85 eb686afc-39fa-0310-a79f-9b3c69cefa1c\n" }, { "from": "human", "value": "set f [open \"highwire-journal-list.txt\" \"r\"]\nset body [join [split [read $f] \"\\n\"] \"...
tcl
chosen
[ { "from": "system", "value": "Order of RGB in test did not match regression valid image\n" }, { "from": "human", "value": "# append multiple displaced spheres into an RGB image.\ncatch {load vtktcl}\nsource vtkImageInclude.tcl\n\n# Image pipeline\n\nvtkImageEllipsoidSource sphere1\nsphere1 SetCe...
tcl
chosen
[ { "from": "system", "value": "[top_earlgrey] Create bitstreams with failing timing\n\nWe currently check for timing failures before creating a bitstream,\nwhich is a good thing (TM). However, currently the FPGA design fails\ntiming. To buy us time investigating the best mitigation for that we\nallow the des...
tcl
chosen
[ { "from": "system", "value": "Revert accidental debug tokens change\n\ngit-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@10257 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "# Copyright 2013 University of Chicago and Argonne National Laboratory\n#\n# Licensed under th...
tcl
chosen
[ { "from": "system", "value": "Add filesdir global and option\n\ngit-svn-id: 620571fa9b4bd0cbce9a0cf901e91ef896adbf27@59 d073be05-634f-4543-b044-5fe20cf6d1d6\n" }, { "from": "human", "value": "# global port routines\n# the 'main' target is provided by this package\n# main is a magic target and sh...
tcl
chosen
[ { "from": "system", "value": "Use solo event for turbine::metadata\n\n\ngit-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@4134 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "\n# MPE FEATURES\n\nnamespace eval turbine {\n\n # Set by mpe_setup\n variable mpe_ready...
tcl
chosen
[ { "from": "system", "value": "[lint] Increase threshold for max number of bits in an array\n\nWe have large regfiles in our design that have a size of 8kbit or more,\nsuch as the OTBN regfile.\n\nThis commit increases the AscentLint-internal threshold for analyzing\nsuch large arrays to 32kbit in order to g...
tcl
chosen
[ { "from": "system", "value": "Fix tcl code for URL test\n\ngit-svn-id: 0c5512015aa96f7d3f5c3ad598bd98edc52008b1@11117 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "\npackage provide funcs_5697 0.5\n\nnamespace eval funcs_5697 {\n package require turbine 0.3.0\n namesp...
tcl
chosen
[ { "from": "system", "value": "Configure test output to be more verbose\nrunAllTest blarfs config info anyway, so might as well include more informative test progress messages.\n" }, { "from": "human", "value": "package require Tcl 8.5\npackage require tcltest 2\n\n# Use the tests directory as th...
tcl
chosen
[ { "from": "system", "value": "Rename file_get{} to filename{} and fix\n\n\ngit-svn-id: f1d3e1ea5383cd3c118991be0c13c0bc6713118f@815 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "\n# Turbine data abstraction layer\n\nnamespace eval turbine {\n\n namespace export ...
tcl
chosen
[ { "from": "system", "value": "Exclude example 31 from this script since it does not work well under plserver\nand for that reason x31.tcl is normally not copied to the tk directory.\n\nsvn path=/trunk/; revision=9887\n" }, { "from": "human", "value": "#-------------------------------------------...
tcl
chosen
[ { "from": "system", "value": "Remove all references to XOTcl and require the NX package instead.\n" }, { "from": "human", "value": "package provide spec 0.1\n\npackage require XOTcl 2.0\npackage require at_exit\npackage require try\n\nnamespace eval Spec {\n namespace import ::xotcl::*\n n...
tcl
chosen
[ { "from": "system", "value": "Use println to get the result back in Tcl\n" }, { "from": "human", "value": "# Copyright 2013 University of Chicago and Argonne National Laboratory\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in complia...
tcl
chosen
[ { "from": "system", "value": "Add missing \"package require uuid\".\n" }, { "from": "human", "value": "# Loads secondary packages not directly required by BootManager\n\nif {$PLATFORM == \"WINDOWS\"} {\n source tcllib/aes/aes.tcl\n source tcllib/sha1/sha256.tcl\n}\n\npackage require http\npack...
tcl
chosen
[ { "from": "system", "value": "Add a test to prove current tcl cluster client can not handle keys with hash tag.\n" }, { "from": "human", "value": "source \"../tests/includes/init-tests.tcl\"\n\nproc cluster_allocate_mixedSlots {n} {\n set slot 16383\n while {$slot >= 0} {\n set node...
tcl
chosen
[ { "from": "system", "value": "Set variables if they are not already set\n\ngit-svn-id: 620571fa9b4bd0cbce9a0cf901e91ef896adbf27@11 d073be05-634f-4543-b044-5fe20cf6d1d6\n" }, { "from": "human", "value": "#!/usr/bin/tclsh\n# /etc/ports.conf options\npackage provide darwinports 1.0\n\n\nnamespace e...
tcl
chosen
[ { "from": "system", "value": "Add pin functions column to package pins output.\n\nThis is required to know which pin is a PUDC pin, which requires special\nhandling.\n\nSigned-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>\n" }, { "from": "human", "valu...
tcl
chosen
[ { "from": "system", "value": "Change script to request a stereo capable window.\n" }, { "from": "human", "value": "catch {load vtktcl}\n# user interface command widget\nsource ../../examplesTcl/vtkInt.tcl\n\n# create a rendering window and renderer\nvtkRenderer ren1\nvtkRenderWindow renWin\n ...
tcl
chosen
[ { "from": "system", "value": "Remove hdlname from ice40 until VPR with blifparser updated is created.\n\nSigned-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>\n" }, { "from": "human", "value": "yosys -import\n\nsynth_ice40 -nocarry\n\n# opt_expr -undriv...
tcl
chosen
[ { "from": "system", "value": "Fix test: data id=0 is ADLB_DATA_ID_NULL\n\n\ngit-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@1860 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "\n# Test ADLB store/retrieve\n# Does not use Turbine features\n\npackage require turbine 0...
tcl
chosen
[ { "from": "system", "value": "Fix the test for tiff reader to use same image as jpeg test\n" }, { "from": "human", "value": "package require vtk\n\n# Image pipeline\n\nvtkImageReader2Factory createReader\nset reader [createReader CreateImageReader2 \"$VTK_DATA_ROOT/Data/libtiff/test.tif\"]\n$rea...
tcl
chosen
[ { "from": "system", "value": "Fix calling `bk wish` on OS X so that it doesn't launch a web browser.\n\nbk: 55a52acbheUH25rmeNIJC7cEEzGR1A" }, { "from": "human", "value": "### Main program for bundle\n\n# Remove -psn_* from ::argv, if present. You get this when invoked\n# via the Finder.\nif {[r...
tcl
chosen
[ { "from": "system", "value": "Integrate yosys upstream unlut change.\n\nSigned-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>\n" }, { "from": "human", "value": "yosys -import\n\nsynth_ice40 -nocarry\nice40_opt -unlut\nabc -lut 4\nopt_clean\n" }, { ...
tcl
chosen
[ { "from": "system", "value": "Fix remoterc.tmp not being deleted once unneeded.\n" }, { "from": "human", "value": "# Converse of acctinfo.tcl --- saves a section of abendstern.rc\n# to the server.\n\nif {\"\" != $::abnet::userid} {\n $ create remoterc.tmp remote\n $ add remote hud STGroup\n $...
tcl
chosen
[ { "from": "system", "value": "Add debug token for messages from cache\n\n\ngit-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@4778 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "\n# This file is expected to be regularly edited to control\n# debugging output. It is sou...
tcl
chosen
[ { "from": "system", "value": "Package updates: t2ws, t2ws::bauth, t2ws::template\n" }, { "from": "human", "value": "if {![package vsatisfies [package provide Tcl] 8.5]} {return}\npackage ifneeded t2ws 0.5 [list source [file join $dir t2ws.tcl]]\npackage ifneeded t2ws::template 0.3 [list source [...
tcl
chosen
[ { "from": "system", "value": "Convert fields into approproate types\n" }, { "from": "human", "value": "#!/bin/sh\n# \\\nexec tclsh \"$0\" ${1+\"$@\"}\n\npackage require textutil\n\nproc awkread {f} {\n while {[gets $f line] >= 0} {\n set record [list]\n set line [string trim $li...
tcl
chosen
[ { "from": "system", "value": "Add a helper method that allows loading dependencies only once.\n" }, { "from": "human", "value": "package provide spec 0.1\n\npackage require nx\npackage require nx::trait\npackage require at_exit\npackage require try\n\nnamespace eval Spec {\n namespace import ...
tcl
chosen
[ { "from": "system", "value": "Switch ::Spec::Expectations, ::Spec::PositiveExpectationHandler and ::Spec::NegativeExpectationHandler to NX." }, { "from": "human", "value": "namespace eval Spec {\n Class Expectations\n Expectations proc fail_with { message } {\n # Setting the return ...
tcl
chosen
[ { "from": "system", "value": "Fix bug with refcounting decrementing array member in foreach loop\n\ngit-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@5827 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "human", "value": "\n# This file is expected to be regularly edited to control\n# deb...
tcl
chosen
[ { "from": "system", "value": "Switch the toplevel ::Spec Class to NX.\n" }, { "from": "human", "value": "package provide spec 0.1\n\npackage require XOTcl 2.0\npackage require at_exit\npackage require try\n\nnamespace eval Spec {\n namespace import ::xotcl::*\n namespace import ::tcl::cont...
tcl
chosen
[ { "from": "system", "value": "Add default value for workdir\n\ngit-svn-id: 620571fa9b4bd0cbce9a0cf901e91ef896adbf27@26 d073be05-634f-4543-b044-5fe20cf6d1d6\n" }, { "from": "human", "value": "# global port routines\n# the 'main' target is provided by this package\n# main is a magic target and sho...
tcl
chosen
[ { "from": "system", "value": "Update example test code for variables\n" }, { "from": "human", "value": "rule simple {\n\n when HTTP_REQUEST priority 100 {\n # set variable outside irule\n if { $status eq 1 }\n pool foo\n } else {\n pool bar\n }\n }\n}\n" }, { "fro...
tcl
chosen
[ { "from": "system", "value": "SDC: Drop vpr switch in synth_xilinx\n\nSigned-off-by: Tomasz Michalak <a2fdaa543b4cc5e3d6cd8672ec412c0eb393b86e@antmicro.com>\n" }, { "from": "human", "value": "yosys -import\nplugin -i sdc\nplugin -i design_introspection\n# Import the commands from the plugins to ...
tcl
chosen
[ { "from": "system", "value": "Fix minor typo in explanation.\n\nsvn path=/trunk/; revision=2440\n" }, { "from": "human", "value": "#----------------------------------------------------------------------------\n# $Id$\n#\n# PLplot TCL demos\n# \n# Maurice LeBrun\n# IFS, University of Texas at Aus...
tcl
chosen
[ { "from": "system", "value": "Return a non-zero exit code if any example fails." }, { "from": "human", "value": "namespace eval Spec {\n nx::Class create Runner {\n :public class method autorun {} {\n if { [:installed_at_exit?] } {\n return\n }\n\n ...
tcl
chosen
[ { "from": "system", "value": "Modify version being reported to server, since this is a custom build.\n" }, { "from": "human", "value": "#\n# config for piaware\n#\n# Copyright (C) 2014 FlightAware LLC, All Rights Reserved\n#\n\n# server name is defined and can be overridden in the Itcl class lib...
tcl
chosen
[ { "from": "system", "value": "Add a couple of search+ tests.\n" }, { "from": "human", "value": "#\n# very simple client/server tests\n#\n# $Id$\n#\n\npackage require ctable_client\n\nremote_ctable ctable://127.0.0.1/dumbData t\n\n# use to test redirect\n#remote_ctable ctable://127.0.0.1:11112/du...
tcl
chosen
[ { "from": "system", "value": "Update of simple example to test HTTP_RESPONSE event\n" }, { "from": "human", "value": "package require -exact testcl 0.9\nnamespace import ::testcl::*\n\n##\n# Example demonstrating how to use TesTcl\n# This is how you should write your tests\n# \n# To run example\...
tcl
chosen
[ { "from": "system", "value": "Fix typo in the test\n" }, { "from": "human", "value": "package require vtk\n\n# Image pipeline\n\nvtkImageReader2Factory createReader\nset reader [createReader CreateImageReader2 \"$VTK_DATA_ROOT/Data/libtif/test.tif\"]\n$reader SetFileName \"$VTK_DATA_ROOT/Data/li...
tcl
chosen
[ { "from": "human", "value": "Test to quantize earth.ppm down to 16 colors\n" }, { "from": "gpt", "value": "catch {load vtktcl}\n# Make an image larger by repeating the data. Tile.\n\n\nsource vtkImageInclude.tcl\n\n\n# Image pipeline\nvtkPNMReader reader\nreader ReleaseDataFlagOff\nreader SetFi...
tcl
chosen
[ { "from": "human", "value": "Make sure all of the features of ExtractVOI work.\n" }, { "from": "gpt", "value": "package require vtk\npackage require vtkinteraction\n\n# to mark the origin\nvtkSphereSource sphere\n sphere SetRadius 2.0\nvtkPolyDataMapper sphereMapper\n sphereMapper SetInput [sp...
tcl
chosen
[ { "from": "human", "value": "[CDC] Add SPI_DEVICE Status reconvergence waiver\n\nAs Status bits are converged into output line from multiple 2FFs, CDC\nreports the reconvergence warning for the path.\n\nThe value is OK to send old and new in a transaction. So, it is\nintentionally not used pulse synchronize...
tcl
chosen
[ { "from": "human", "value": "Test of Dresden stereo mode\n" }, { "from": "gpt", "value": "catch {load vtktcl}\nif { [catch {set VTK_TCL $env(VTK_TCL)}] != 0} { set VTK_TCL \"../../examplesTcl\" }\nif { [catch {set VTK_DATA $env(VTK_DATA)}] != 0} { set VTK_DATA \"../../../vtkdata\" }\n\n#\n# this...
tcl
chosen
[ { "from": "human", "value": "Create a B using clipping\n" }, { "from": "gpt", "value": "catch {load vtktcl}\n\n# get the interactor ui\nsource vtkInt.tcl\n# and some nice colors\nsource colors.tcl\n\n# Now create the RenderWindow, Renderer and Interactor\n#\nvtkRenderer ren1\nvtkRenderWindow ren...
tcl
chosen
[ { "from": "human", "value": "Add specs for BeTrue/BeFalse/BeComparedTo Matchers.\n" }, { "from": "gpt", "value": "lappend auto_path [file join [file dirname [info script]] \"..\" \"..\" \"lib\"]\npackage require spec/autorun\n\ndescribe \"BeTrueMatcher\" {\n before each {\n set matcher...
tcl
chosen
[ { "from": "human", "value": "Test out methods implemented on our local tclhttpd server.\n" }, { "from": "gpt", "value": "# Create the commands for my SOAP-domain package\n\npackage require SOAP\nset methods {}\n\nlappend methods [ SOAP::create rcsid \\\n\t-name rcsid \\\n\t-uri zsplat-Test \\\n\...
tcl
chosen
[ { "from": "human", "value": "Test of users bug fix\n" }, { "from": "gpt", "value": "catch {load vtktcl}\n\nsource vtkImageInclude.tcl\nsource TkImageViewerInteractor.tcl\n\n\n# This script uses a vtkTkRenderWidget to create a\n# Tk widget that is associated with a vtkRenderWindow.\n#source TkInt...
tcl
chosen
[ { "from": "human", "value": "Test to quantize earth.ppm down to 64 colors\n" }, { "from": "gpt", "value": "catch {load vtktcl}\n# Make an image larger by repeating the data. Tile.\n\n\nsource vtkImageInclude.tcl\n\n\n# Image pipeline\nvtkPNMReader reader\nreader ReleaseDataFlagOff\nreader SetFi...
tcl
chosen
[ { "from": "human", "value": "Add openocd script to upload code to link proto0\n\nSigned-off-by: Randall Spangler <rspangler@chromium.org>\n\nBUG=none\nTEST=type 'script up-link.tcl' from openocd telnet console\n\nChange-Id: I94d64a5356269628bec1a7f6809651d70398afa9\n" }, { "from": "gpt", "value"...
tcl
chosen
[ { "from": "human", "value": "[syn/upf] Add file that defines iso values for LC signals\n\nFixes #4244.\n\nSigned-off-by: Michael Schaffner <a005a2d3342a687ea2d05360c953107acbe83e08@google.com>\n" }, { "from": "gpt", "value": "# Copyright lowRISC contributors.\n# Licensed under the Apache License...
tcl
chosen
[ { "from": "human", "value": "Test shared tables with cursors\n" }, { "from": "gpt", "value": "#\n# $Id$\n#\n\npackage require st_shared\n\nputs \"Making connection\"\nset r [::stapi::connect shared://1616/master -build stobj]\n\nputs \"created reader $r\"\n\nputs [$r share list]\nputs [$r share ...
tcl
chosen
[ { "from": "human", "value": "Test default args for procs.\n" }, { "from": "gpt", "value": "proc sum { a {b 10} {c 1}} {\n expr {$a + $b + $c}\n}\n\nmust 567 [sum 500 60 7]\nmust 561 [sum 500 60]\nmust 511 [sum 500]\n" } ]
tcl
chosen
[ { "from": "human", "value": "ENH: Add example as printed in chapter 13 of the VTK users guide.\n" }, { "from": "gpt", "value": "package require vtk\npackage require vtkinteraction\n\n# This script uses a vtkTkRenderWidget to create a\n# Tk widget that is associated with a vtkRenderWindow\n\n# Cr...
tcl
chosen
[ { "from": "human", "value": "Add primitive reset test -- we weren't testing that very well.\n" }, { "from": "gpt", "value": "#\n# test seeing if the reset method causes memory corruption.\n#\n# $Id$\n#\n\nsource nametest-extension.tcl\n\nputs \"\\n\\nloading the table...\\n\"\n\nsource name-data...
tcl
chosen
[ { "from": "human", "value": "Add of a client test that checks the results for correctness rather than just\npooping them out.\n" }, { "from": "gpt", "value": "#\n# very simple client/server tests\n#\n# this one checks results of search and search+ to match expected or not\n#\n# $Id$\n#\n\nset ex...
tcl
chosen
[ { "from": "human", "value": "Test the poly data streamer\n" }, { "from": "gpt", "value": "catch {load vtktcl}\nif { [catch {set VTK_TCL $env(VTK_TCL)}] != 0} { set VTK_TCL \"../../examplesTcl\" }\nif { [catch {set VTK_DATA $env(VTK_DATA)}] != 0} { set VTK_DATA \"../../../vtkdata\" }\n\n\nset NUM...
tcl
chosen
[ { "from": "human", "value": "Add draft of linear test case\n\n\ngit-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@643 dc4e9af1-7f46-4ead-bba6-71afc04862de\n" }, { "from": "gpt", "value": "package require turbine 0.1\nturbine_init\n\nturbine_file 0 0.txt\nturbine_file 1 1.txt\nturbine_file 2 2...
tcl
chosen
[ { "from": "human", "value": "Add of demo that uses connection and result objects.\n" }, { "from": "gpt", "value": "#\n# program to insert the sampledata.txt data set into pgtest_people\n# using the new-fangled connection and result objects\n#\n# $Id$\n#\n\npackage require Pgtcl\n\nproc doit {} {...
tcl
chosen
[ { "from": "human", "value": "Add tcl version of the testing script, just for fun.\n" }, { "from": "gpt", "value": "#!/usr/bin/env tclsh\n\nset red \"\\033\\[0;31m\"\nset grn \"\\033\\[0;32m\"\nset nc \"\\033\\[0m\"\n\nset pass \"${grn}PASS!${nc}\"\nset fail \"${red}FAIL!${nc}\"\n\nset stats.tot...
tcl
chosen
[ { "from": "human", "value": "Test pad with multiple components\n" }, { "from": "gpt", "value": "catch {load vtktcl}\n# Make an image larger by repeating the data. Tile.\n\n\nsource vtkImageInclude.tcl\n\n\n# Image pipeline\nvtkPNMReader reader\nreader ReleaseDataFlagOff\nreader SetFileName \".....
tcl
chosen
[ { "from": "human", "value": "Add some failing specs for ExampleGroup." }, { "from": "gpt", "value": "lappend auto_path [file join [file dirname [info script]] \"..\" \"lib\"]\npackage require spec/autorun\n\nsource [file join [file dirname [info script]] \"spec_helper.tcl\"]\n\n\n# describe \"Th...
tcl
chosen
[ { "from": "human", "value": "Add of test that resets a table several times and refills it -- this caused\na crash at one point.\n" }, { "from": "gpt", "value": "#\n#\n#\n#\n# $Id$\n#\n\nsource searchtest-def.tcl\n\nproc test {} {\n\n source dumb-data.tcl\n\n t reset\n}\n\ntime test 100\n" ...
tcl
chosen
[ { "from": "human", "value": "autotest: Work on test core improvment" }, { "from": "gpt", "value": "\nset setup_proc \"\"\nset teardown_proc \"\"\n\nproc TEST_SETUP {setup} {\n\tglobal setup_proc\n\tset setup_proc $setup\n}\n\nproc TEST_TEARDOWN {teardown} {\n\tglobal teardown_proc\n\tset teardow...
tcl
chosen
[ { "from": "human", "value": "Add a utility to generate version 4 UUIDs.\n" }, { "from": "gpt", "value": "#!/bin/sh\n# \\\nexec tclsh8.7 \"$0\" ${1+\"$@\"}\n\n# uuidgen --\n#\n#\tThis file implements version 4 uuid generator.\n#\n# Copyright (c) 2017 Taketsuru <taketsuru11@gmail.com>.\n# All righ...
tcl
chosen
[ { "from": "human", "value": "Use a regular expression to parse HTML.\n\nhttps://stackoverflow.com/a/1732454\n" }, { "from": "gpt", "value": "#!/usr/bin/tclsh\n\n# This is a simple script to extract all[0] linked URLs from an HTML file.\n# Usage: ./extract-links.tcl < page.html\n#\n# [0] Yes, al...
tcl
chosen
[ { "from": "human", "value": "Test of vtkGeometryFilter use of ghost cells.\n" }, { "from": "gpt", "value": "# This scripts tests a couple of things.\n# Images generating ghost level arrays,\n# and geometry correctly processing ghost cells.\n# It asks for a piece from a geometry filter with an im...
tcl
chosen