content
stringlengths
4
1.04M
lang
stringclasses
358 values
score
int64
0
5
repo_name
stringlengths
5
114
repo_path
stringlengths
4
229
repo_licenses
listlengths
1
8
class Fancy Package { class Specification { @@specs = <[]> read_write_slots: ['author, 'email, 'include_files, 'bin_files, 'description, 'homepage, 'version, 'gh_user, 'package_name] read_slots: ['dependencies, 'ruby_dependencies] def initialize: @package_name with: block { @dependencies = [] @ruby_dependencies = [] @include_files = [] @bin_files = [] block call_with_receiver: self @@specs[@package_name]: self } def dependencies: dependencies { dependencies each: |d| { name = d first version = d second { version = 'latest } unless: version dep = Dependency new: name version: version @dependencies << dep } } def ruby_dependencies: dependencies { dependencies each: |d| { gem_name = d first version = d second { version = 'latest } unless: version dep = RubyDependency new: gem_name version: version @ruby_dependencies << dep } } def add_dependency: name version: version ('latest) { dep = Dependency new: name version: version @dependencies << dep } def add_ruby_dependency: gem_name version: version ('latest) { dep = RubyDependency new: gem_name version: version @ruby_dependencies << dep } def to_s { "name=#{@package_name} version=#{@version} url=https://github.com/#{@gh_user}/#{@package_name}" } def self [package_name] { @@specs[package_name] } def self save: spec to: specs_file { File open: specs_file modes: ['append] with: |f| { f println: $ spec to_s } } def self delete_specs_from: specs_file if: filter_block { lines = File read: specs_file . lines reject: filter_block File write: specs_file with: |f| { lines each: |l| { f println: l } } } def self delete: spec_name from: specs_file { delete_specs_from: specs_file if: @{ includes?: "name=#{spec_name}" } } def self delete_specification: spec from: specs_file { delete_specs_from: specs_file if: @{ includes?: "name=#{spec package_name} version=#{spec version}" } } } }
Fancy
3
bakkdoor/fancy
lib/package/specification.fy
[ "BSD-3-Clause" ]
pub main coginit(0, @entry, 0) dat org 0 entry _testit test arg01, #4 wz if_ne mov result1, arg02 if_e mov result1, #0 _testit_ret ret result1 long 0 COG_BSS_START fit 496 org COG_BSS_START arg01 res 1 arg02 res 1 fit 496
Parrot Assembly
3
archivest/spin2cpp
Test/Expect/stest054.pasm
[ "MIT" ]
const jsCodeWithSingleAndMultLineComments = ` function nonMutatingPush(original, newItem) { /* This is a multi-line comment that should be removed. */ return original.push(newItem); } var first = [1, 2, 3]; // This is a single line comment var second = [4, 5]; nonMutatingPush(first, second);`; const jsCodeWithSingleAndMultLineCommentsRemoved = ` function nonMutatingPush(original, newItem) { return original.push(newItem); } var first = [1, 2, 3]; var second = [4, 5]; nonMutatingPush(first, second);`; const jsCodeWithUrl = ` function nonMutatingPush(original, newItem) { var url = 'https://freecodecamp.org'; // this comment should vanish return original.push(newItem); }`; const jsCodeWithUrlUnchanged = ` function nonMutatingPush(original, newItem) { var url = 'https://freecodecamp.org'; return original.push(newItem); }`; const jsCodeWithNoCall = `function myFunc() { return Math.random(); } `; const jsCodeWithNoArgCall = `function myFunc() { return Math.random(); } myFunc(); `; const jsCodeWithArgCall = `function myFunc() { return Math.random(); } myFunc('this shouldn't be here'); `; const jsCodeWithCommentedCall = `function myFunc() { return Math.random(); } /* myFunc(); */ `; const testValues = { jsCodeWithSingleAndMultLineComments, jsCodeWithSingleAndMultLineCommentsRemoved, jsCodeWithUrl, jsCodeWithUrlUnchanged, jsCodeWithNoCall, jsCodeWithNoArgCall, jsCodeWithArgCall, jsCodeWithCommentedCall }; export default testValues;
TypeScript
4
fcastillo-serempre/freeCodeCamp
client/src/utils/__fixtures/curriculum-helpers-javascript.ts
[ "BSD-3-Clause" ]
<html> <header> <title>V Blog</title> </header> <body> <form action='/new_article' method='post'> <input type='text' placeholder='Title' name='title'> <br> <textarea placeholder='Text' name='text'></textarea> <input type='submit'> </form> </body> </html>
HTML
3
gamemaker1/v
tutorials/building_a_simple_web_blog_with_vweb/code/blog/new.html
[ "MIT" ]
make test := ? : (A : Set) (B : A -> Set) (t : Sig (a : A ; B a)) -> A ; in ; lambda A ; lambda B ; lambda t ; make e := split A B t : (P : Sig (a : A ; B a) -> Set) (f : (a : A)(b : B a) -> P [ a , b ]) -> P t ; elim e ; give \ A B a b -> a
PigLatin
3
mietek/epigram
test/Elim.pig
[ "MIT" ]
module tour/addressBook2c ----- Page 20 abstract sig Target { } sig Addr extends Target { } abstract sig Name extends Target { } sig Alias, Group extends Name { } sig Book { addr: Name->Target } { no n: Name | n in n.^addr } pred show [b:Book] { some Alias.(b.addr) } // This command generates an instance similar to Fig 2.11 run show for 3 but 1 Book
Alloy
4
Kaixi26/org.alloytools.alloy
org.alloytools.alloy.extra/extra/models/book/chapter2/addressBook2c.als
[ "Apache-2.0" ]
<?xml version='1.0' encoding='UTF-8'?> <Project Type="Project" LVVersion="14008000"> <Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property> <Property Name="NI.Project.Description" Type="Str"></Property> <Property Name="SMProvider.SMVersion" Type="Int">201310</Property> <Item Name="My Computer" Type="My Computer"> <Property Name="IOScan.Faults" Type="Str"></Property> <Property Name="IOScan.NetVarPeriod" Type="UInt">100</Property> <Property Name="IOScan.NetWatchdogEnabled" Type="Bool">false</Property> <Property Name="IOScan.Period" Type="UInt">10000</Property> <Property Name="IOScan.PowerupMode" Type="UInt">0</Property> <Property Name="IOScan.Priority" Type="UInt">9</Property> <Property Name="IOScan.ReportModeConflict" Type="Bool">true</Property> <Property Name="IOScan.StartEngineOnDeploy" Type="Bool">false</Property> <Property Name="NI.SortType" Type="Int">3</Property> <Property Name="server.app.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.control.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.tcp.enabled" Type="Bool">false</Property> <Property Name="server.tcp.port" Type="Int">0</Property> <Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property> <Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property> <Property Name="server.vi.callsEnabled" Type="Bool">true</Property> <Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property> <Property Name="specify.custom.address" Type="Bool">false</Property> <Item Name="Examples" Type="Folder"> <Item Name="Complex Data Structures" Type="Folder"> <Item Name="NestedCluster.vi" Type="VI" URL="../Examples/Complex Data Structures/NestedCluster.vi"/> </Item> <Item Name="File IO" Type="Folder"> <Item Name="AllFileIO.vi" Type="VI" URL="../Examples/File IO/AllFileIO.vi"/> <Item Name="ReadFile.vi" Type="VI" URL="../Examples/File IO/ReadFile.vi"/> <Item Name="WriteFile.vi" Type="VI" URL="../Examples/File IO/WriteFile.vi"/> </Item> <Item Name="Hello World" Type="Folder"> <Item Name="HelloWorldGUI.vi" Type="VI" URL="../Examples/Hello World/HelloWorldGUI.vi"/> </Item> <Item Name="Networking" Type="Folder"> <Item Name="SimpleTCPClient.vi" Type="VI" URL="../Examples/Networking/SimpleTCPClient.vi"/> <Item Name="SimpleTCPServer.vi" Type="VI" URL="../Examples/Networking/SimpleTCPServer.vi"/> <Item Name="UDP_Read.vi" Type="VI" URL="../Examples/Networking/UDP_Read.vi"/> <Item Name="UDP_Write.vi" Type="VI" URL="../Examples/Networking/UDP_Write.vi"/> </Item> <Item Name="Producer Consumer" Type="Folder"> <Item Name="SimpleProducerConsumer.vi" Type="VI" URL="../Examples/Producer Consumer/SimpleProducerConsumer.vi"/> </Item> <Item Name="Serial" Type="Folder"> <Item Name="SerialLoopback.vi" Type="VI" URL="../Examples/Serial/SerialLoopback.vi"/> <Item Name="SerialMonitor.vi" Type="VI" URL="../Examples/Serial/SerialMonitor.vi"/> </Item> </Item> <Item Name="DAG" Type="Folder"> <Item Name="DAG" Type="Folder"> <Item Name="TypeDefs" Type="Folder"> <Item Name="TraversalEnum.ctl" Type="VI" URL="../DAG/DAG/TypeDefs/TraversalEnum.ctl"/> </Item> <Item Name="DAG.lvclass" Type="LVClass" URL="../DAG/DAG/DAG.lvclass"/> </Item> </Item> <Item Name="Python" Type="Folder"> <Item Name="Parsing" Type="Folder"> <Item Name="Classes" Type="Folder"> <Item Name="PythonFunction" Type="Folder"> <Item Name="PythonFunction.lvclass" Type="LVClass" URL="../Python/Parsing/Classes/PythonFunction/PythonFunction.lvclass"/> </Item> </Item> <Item Name="Python Functions.lvlib" Type="Library" URL="../Python/Parsing/Python Functions.lvlib"/> </Item> <Item Name="PythonConfiguration" Type="Folder"> <Item Name="TypeDefs" Type="Folder"> <Item Name="Config Data RefNum.ctl" Type="VI" URL="../Python/PythonConfiguration/TypeDefs/Config Data RefNum.ctl"/> <Item Name="Config Data.ctl" Type="VI" URL="../Python/PythonConfiguration/TypeDefs/Config Data.ctl"/> <Item Name="Config Queue.ctl" Type="VI" URL="../Python/PythonConfiguration/TypeDefs/Config Queue.ctl"/> <Item Name="Section.ctl" Type="VI" URL="../Python/PythonConfiguration/TypeDefs/Section.ctl"/> </Item> <Item Name="Add Key_No Quotes.vi" Type="VI" URL="../Python/PythonConfiguration/Add Key_No Quotes.vi"/> <Item Name="Get Key.vi" Type="VI" URL="../Python/PythonConfiguration/Get Key.vi"/> <Item Name="Get Section.vi" Type="VI" URL="../Python/PythonConfiguration/Get Section.vi"/> <Item Name="PythonConfiguration.lvclass" Type="LVClass" URL="../Python/PythonConfiguration/PythonConfiguration.lvclass"/> <Item Name="Typecast Queue to Refnum.vi" Type="VI" URL="../Python/PythonConfiguration/Typecast Queue to Refnum.vi"/> <Item Name="Typecast Refnum to Queue.vi" Type="VI" URL="../Python/PythonConfiguration/Typecast Refnum to Queue.vi"/> </Item> <Item Name="PythonConverter_GUI" Type="Folder"> <Item Name="TypeDefs" Type="Folder"/> <Item Name="PythonConverter_GUI.lvclass" Type="LVClass" URL="../Python/PythonConverter_GUI/PythonConverter_GUI.lvclass"/> </Item> <Item Name="PythonConverter_BD" Type="Folder"> <Item Name="PyConvBD.lvclass" Type="LVClass" URL="../Python/PythonConverter_BD/PyConvBD.lvclass"/> </Item> </Item> <Item Name="RasPi Compiler" Type="Folder"> <Item Name="Compile and Download App" Type="Folder"> <Item Name="Custom Controls" Type="Folder"> <Item Name="CompileType.ctl" Type="VI" URL="../RasPi Compiler/Compile and Download App/Custom Controls/CompileType.ctl"/> <Item Name="Local Setup Parameters.ctl" Type="VI" URL="../RasPi Compiler/Compile and Download App/Custom Controls/Local Setup Parameters.ctl"/> </Item> <Item Name="subVIs" Type="Folder"> <Item Name="Add IP Address.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Add IP Address.vi"/> <Item Name="Custom Error Popup.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Custom Error Popup.vi"/> <Item Name="Edit List.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Edit List.vi"/> <Item Name="Is VI Runnable.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Is VI Runnable.vi"/> <Item Name="Load Examples.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Load Examples.vi"/> <Item Name="Launch VIPM Package.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Launch VIPM Package.vi"/> <Item Name="Report Error.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Report Error.vi"/> <Item Name="DevMode.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/DevMode.vi"/> <Item Name="About Dialog.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/About Dialog.vi"/> <Item Name="Close VI FP.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Close VI FP.vi"/> <Item Name="Local Setup Config.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Local Setup Config.vi"/> <Item Name="Open VI FP.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Open VI FP.vi"/> <Item Name="Update Last VI List to Menu.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Update Last VI List to Menu.vi"/> <Item Name="GetConfigDirectory.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/GetConfigDirectory.vi"/> <Item Name="FindLatestRuntime_LocalDirectory.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/FindLatestRuntime_LocalDirectory.vi"/> <Item Name="Compile.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Compile.vi"/> <Item Name="DownloadCode.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/DownloadCode.vi"/> <Item Name="Parse VIPM Filename.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/subVIs/Parse VIPM Filename.vi"/> </Item> <Item Name="Raspberry Pi Compatible Compiler for LabVIEW.vi" Type="VI" URL="../RasPi Compiler/Compile and Download App/Raspberry Pi Compatible Compiler for LabVIEW.vi"/> <Item Name="RTM.rtm" Type="Document" URL="../RasPi Compiler/Compile and Download App/RTM.rtm"/> </Item> <Item Name="Compiler" Type="Folder"> <Item Name="RasPi Compiler.lvclass" Type="LVClass" URL="../RasPi Compiler/Compiler/RasPi Compiler.lvclass"/> </Item> <Item Name="Submit an Issue" Type="Folder"> <Item Name="Custom Controls" Type="Folder"> <Item Name="Queue Message.ctl" Type="VI" URL="../RasPi Compiler/Submit an Issue/Custom Controls/Queue Message.ctl"/> </Item> <Item Name="subVI" Type="Folder"> <Item Name="Deprecated" Type="Folder"> <Item Name="Create Zip File.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Deprecated/Create Zip File.vi"/> <Item Name="Filter vi.lib Paths.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Deprecated/Filter vi.lib Paths.vi"/> <Item Name="Get Element Path.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Deprecated/Get Element Path.vi"/> <Item Name="Get Globals Paths.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Deprecated/Get Globals Paths.vi"/> <Item Name="Get Nested Typedefs.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Deprecated/Get Nested Typedefs.vi"/> <Item Name="Get Typedef Paths.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Deprecated/Get Typedef Paths.vi"/> </Item> <Item Name="Queue" Type="Folder"> <Item Name="Dequeue.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Queue/Dequeue.vi"/> </Item> <Item Name="Create Zip.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Create Zip.vi"/> <Item Name="Get OS Information.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Get OS Information.vi"/> <Item Name="gmail.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/gmail.vi"/> <Item Name="ProcessFolder.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/ProcessFolder.vi"/> <Item Name="Save VI Hierarchy.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Save VI Hierarchy.vi"/> <Item Name="Upload to Cloud.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Upload to Cloud.vi"/> <Item Name="Create Second Zip.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/subVI/Create Second Zip.vi"/> </Item> <Item Name="Rasbperry Pi Compiler for LabVIEW Beta - Submit an Issue.vi" Type="VI" URL="../RasPi Compiler/Submit an Issue/Rasbperry Pi Compiler for LabVIEW Beta - Submit an Issue.vi"/> </Item> <Item Name="Licensing" Type="Folder"> <Item Name="CheckLStat.vi" Type="VI" URL="../RasPi Compiler/Licensing/CheckLStat.vi"/> <Item Name="Get LPath.vi" Type="VI" URL="../RasPi Compiler/Licensing/Get LPath.vi"/> <Item Name="Home Dialog.vi" Type="VI" URL="../RasPi Compiler/Licensing/Home Dialog.vi"/> <Item Name="LChecker.vi" Type="VI" URL="../RasPi Compiler/Licensing/LChecker.vi"/> </Item> <Item Name="Version Check" Type="Folder"> <Item Name="Runtime Version.vi" Type="VI" URL="../RasPi Compiler/Runtime Check/Runtime Version.vi"/> <Item Name="Runtime Check.vi" Type="VI" URL="../RasPi Compiler/Runtime Check/Runtime Check.vi"/> <Item Name="Runtime Message.vi" Type="VI" URL="../RasPi Compiler/Runtime Check/Runtime Message.vi"/> <Item Name="VIP Version.vi" Type="VI" URL="../RasPi Compiler/Runtime Check/VIP Version.vi"/> <Item Name="VIP Check.vi" Type="VI" URL="../RasPi Compiler/Runtime Check/VIP Check.vi"/> <Item Name="VIP Message.vi" Type="VI" URL="../RasPi Compiler/Runtime Check/VIP Message.vi"/> <Item Name="Init Package Version.vi" Type="VI" URL="../RasPi Compiler/Runtime Check/Init Package Version.vi"/> </Item> </Item> <Item Name="RasPi_Services" Type="Folder"> <Item Name="Autodetect" Type="Folder"> <Item Name="TypeDefs" Type="Folder"/> <Item Name="Autodetect.lvlib" Type="Library" URL="../RasPi_Services/Autodetect/Autodetect.lvlib"/> </Item> <Item Name="Download" Type="Folder"> <Item Name="RasPiDownloader.lvlib" Type="Library" URL="../RasPi_Services/Download/RasPiDownloader.lvlib"/> </Item> <Item Name="Downloader" Type="Folder"> <Item Name="Downloader.lvclass" Type="LVClass" URL="../RasPi_Services/Downloader/Downloader.lvclass"/> </Item> <Item Name="MessageBox" Type="Folder"> <Item Name="MessageBox.lvclass" Type="LVClass" URL="../RasPi_Services/MessageBox/MessageBox.lvclass"/> </Item> <Item Name="Websocket" Type="Folder"> <Item Name="Websocket.lvlib" Type="Library" URL="../RasPi_Services/Websocket/Websocket.lvlib"/> </Item> </Item> <Item Name="Utilities" Type="Folder"> <Item Name="Picture" Type="Folder"> <Item Name="ConvertMaskToAlpha.vi" Type="VI" URL="../Utilities/Picture/ConvertMaskToAlpha.vi"/> <Item Name="TrimAlpha.vi" Type="VI" URL="../Utilities/Picture/TrimAlpha.vi"/> </Item> <Item Name="String" Type="Folder"> <Item Name="EncodeBase64.vi" Type="VI" URL="../Utilities/String/EncodeBase64.vi"/> </Item> <Item Name="Scripting" Type="Folder"> <Item Name="GetClusterElementIndices.vi" Type="VI" URL="../Utilities/Scripting/GetClusterElementIndices.vi"/> </Item> </Item> <Item Name="VI Interpreter" Type="Folder"> <Item Name="Classes" Type="Folder"> <Property Name="NI.SortType" Type="Int">0</Property> <Item Name="Array" Type="Folder"> <Item Name="Array.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Array/Array.lvclass"/> </Item> <Item Name="BlockDiagram" Type="Folder"> <Item Name="BlockDiagram.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/BlockDiagram/BlockDiagram.lvclass"/> </Item> <Item Name="Boolean" Type="Folder"> <Item Name="Boolean.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Boolean/Boolean.lvclass"/> </Item> <Item Name="CaseStructure" Type="Folder"> <Item Name="CaseStructure.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/CaseStructure/CaseStructure.lvclass"/> </Item> <Item Name="Cluster" Type="Folder"> <Item Name="Cluster.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Cluster/Cluster.lvclass"/> </Item> <Item Name="ColorScale" Type="Folder"> <Item Name="ColorScale.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/ColorScale/ColorScale.lvclass"/> </Item> <Item Name="Combobox" Type="Folder"> <Item Name="Combobox.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Combobox/Combobox.lvclass"/> </Item> <Item Name="CompoundArithmetic" Type="Folder"> <Item Name="CompoundArithmetic.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/CompoundArithmetic/CompoundArithmetic.lvclass"/> </Item> <Item Name="Constant" Type="Folder"> <Item Name="Constant.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Constant/Constant.lvclass"/> </Item> <Item Name="Control" Type="Folder"> <Item Name="Control.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Control/Control.lvclass"/> <Item Name="ImageTypes.ctl" Type="VI" URL="../VI Interpreter/Classes/Control/ImageTypes.ctl"/> </Item> <Item Name="ControlTerminal" Type="Folder"> <Item Name="ControlTerminal.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/ControlTerminal/ControlTerminal.lvclass"/> </Item> <Item Name="Decoration" Type="Folder"> <Item Name="Decoration.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Decoration/Decoration.lvclass"/> </Item> <Item Name="Diagram" Type="Folder"> <Item Name="Diagram.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Diagram/Diagram.lvclass"/> </Item> <Item Name="DiagramDisable" Type="Folder"> <Item Name="DiagramDisable.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/DiagramDisable/DiagramDisable.lvclass"/> </Item> <Item Name="Digital" Type="Folder"> <Item Name="Digital.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Digital/Digital.lvclass"/> </Item> <Item Name="Enum" Type="Folder"> <Item Name="Enum.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Enum/Enum.lvclass"/> </Item> <Item Name="FlatSequence" Type="Folder"> <Item Name="FlatSequence.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/FlatSequence/FlatSequence.lvclass"/> </Item> <Item Name="FlatSequenceFrame" Type="Folder"> <Item Name="FlatSequenceFrame.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/FlatSequenceFrame/FlatSequenceFrame.lvclass"/> </Item> <Item Name="FlatSequenceInnerTunnel" Type="Folder"> <Item Name="FlatSequenceInnerTunnel.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/FlatSequenceInnerTunnel/FlatSequenceInnerTunnel.lvclass"/> </Item> <Item Name="FlatSequenceOuterTunnel" Type="Folder"> <Item Name="FlatSequenceOuterTunnel.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/FlatSequenceOuterTunnel/FlatSequenceOuterTunnel.lvclass"/> </Item> <Item Name="ForLoop" Type="Folder"> <Item Name="ForLoop.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/ForLoop/ForLoop.lvclass"/> </Item> <Item Name="FPWindow" Type="Folder"> <Item Name="FPWindow.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/FPWindow/FPWindow.lvclass"/> </Item> <Item Name="Function" Type="Folder"> <Item Name="Function.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Function/Function.lvclass"/> </Item> <Item Name="Generic" Type="Folder"> <Item Name="Generic.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Generic/Generic.lvclass"/> </Item> <Item Name="GObject" Type="Folder"> <Item Name="GObject.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/GObject/GObject.lvclass"/> </Item> <Item Name="GraphChart" Type="Folder"> <Item Name="GraphChart.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/GraphChart/GraphChart.lvclass"/> </Item> <Item Name="GraphScale" Type="Folder"> <Item Name="GraphScale.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/GraphScale/GraphScale.lvclass"/> </Item> <Item Name="GrowableFunction" Type="Folder"> <Item Name="GrowableFunction.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/GrowableFunction/GrowableFunction.lvclass"/> </Item> <Item Name="IndexArray" Type="Folder"> <Item Name="IndexArray.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/IndexArray/IndexArray.lvclass"/> </Item> <Item Name="IOName" Type="Folder"> <Item Name="IOName.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/IOName/IOName.lvclass"/> </Item> <Item Name="Knob" Type="Folder"> <Item Name="Knob.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Knob/Knob.lvclass"/> <Item Name="KnobTypesTD.ctl" Type="VI" URL="../VI Interpreter/Classes/Knob/KnobTypesTD.ctl"/> </Item> <Item Name="LeftShiftRegister" Type="Folder"> <Item Name="LeftShiftRegister.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/LeftShiftRegister/LeftShiftRegister.lvclass"/> </Item> <Item Name="Local" Type="Folder"> <Item Name="Local.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Local/Local.lvclass"/> </Item> <Item Name="Loop" Type="Folder"> <Item Name="Loop.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Loop/Loop.lvclass"/> </Item> <Item Name="LoopTunnel" Type="Folder"> <Item Name="LoopTunnel.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/LoopTunnel/LoopTunnel.lvclass"/> </Item> <Item Name="NamedBundler" Type="Folder"> <Item Name="NamedBundler.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/NamedBundler/NamedBundler.lvclass"/> </Item> <Item Name="NamedNumeric" Type="Folder"> <Item Name="NamedNumeric.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/NamedNumeric/NamedNumeric.lvclass"/> </Item> <Item Name="NamedUnbundler" Type="Folder"> <Item Name="NamedUnbundler.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/NamedUnbundler/NamedUnbundler.lvclass"/> </Item> <Item Name="Node" Type="Folder"> <Item Name="Node.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Node/Node.lvclass"/> </Item> <Item Name="Numeric" Type="Folder"> <Item Name="Numeric.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Numeric/Numeric.lvclass"/> </Item> <Item Name="NumericText" Type="Folder"> <Item Name="NumericText.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/NumericText/NumericText.lvclass"/> </Item> <Item Name="NumericWithScale" Type="Folder"> <Item Name="NumericWithScale.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/NumericWithScale/NumericWithScale.lvclass"/> </Item> <Item Name="Page" Type="Folder"> <Item Name="Page.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Page/Page.lvclass"/> </Item> <Item Name="PageSelector" Type="Folder"> <Item Name="PageSelector.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/PageSelector/PageSelector.lvclass"/> </Item> <Item Name="Pane" Type="Folder"> <Item Name="Pane.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Pane/Pane.lvclass"/> </Item> <Item Name="Path" Type="Folder"> <Item Name="Path.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Path/Path.lvclass"/> </Item> <Item Name="Plot" Type="Folder"> <Item Name="Plot.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Plot/Plot.lvclass"/> </Item> <Item Name="RightShiftRegister" Type="Folder"> <Item Name="RightShiftRegister.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/RightShiftRegister/RightShiftRegister.lvclass"/> </Item> <Item Name="Ring" Type="Folder"> <Item Name="Ring.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Ring/Ring.lvclass"/> </Item> <Item Name="RotaryColorScale" Type="Folder"> <Item Name="RotaryColorScale.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/RotaryColorScale/RotaryColorScale.lvclass"/> </Item> <Item Name="Scale" Type="Folder"> <Item Name="Scale.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Scale/Scale.lvclass"/> </Item> <Item Name="ShiftRegister" Type="Folder"> <Item Name="ShiftRegister.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/ShiftRegister/ShiftRegister.lvclass"/> </Item> <Item Name="Slide" Type="Folder"> <Item Name="Slide.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Slide/Slide.lvclass"/> </Item> <Item Name="SlideScale" Type="Folder"> <Item Name="SlideScale.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/SlideScale/SlideScale.lvclass"/> </Item> <Item Name="String" Type="Folder"> <Item Name="String.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/String/String.lvclass"/> </Item> <Item Name="Structure" Type="Folder"> <Item Name="Structure.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Structure/Structure.lvclass"/> </Item> <Item Name="SubVI" Type="Folder"> <Item Name="SubVI.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/SubVI/SubVI.lvclass"/> </Item> <Item Name="Tab" Type="Folder"> <Item Name="Tab.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Tab/Tab.lvclass"/> <Item Name="TabStyleTD.ctl" Type="VI" URL="../VI Interpreter/Classes/Tab/TabStyleTD.ctl"/> </Item> <Item Name="Terminal" Type="Folder"> <Item Name="Terminal.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Terminal/Terminal.lvclass"/> </Item> <Item Name="Text" Type="Folder"> <Item Name="Text.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Text/Text.lvclass"/> </Item> <Item Name="TopLevelDiagram" Type="Folder"> <Item Name="TopLevelDiagram.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/TopLevelDiagram/TopLevelDiagram.lvclass"/> </Item> <Item Name="Tunnel" Type="Folder"> <Item Name="Tunnel.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Tunnel/Tunnel.lvclass"/> </Item> <Item Name="VI Interpreter" Type="Folder"> <Item Name="VI Interpreter.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/VI Interpreter/VI Interpreter.lvclass"/> </Item> <Item Name="VI_AST" Type="Folder"> <Item Name="VI_AST.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/VI_AST/VI_AST.lvclass"/> </Item> <Item Name="VI_Hierarchy" Type="Folder"> <Item Name="VI_Hierarchy.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/VI_Hierarchy/VI_Hierarchy.lvclass"/> </Item> <Item Name="VisaResourceName" Type="Folder"> <Item Name="VisaResourceName.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/VisaResourceName/VisaResourceName.lvclass"/> </Item> <Item Name="WaveformChart" Type="Folder"> <Item Name="WaveformChart.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/WaveformChart/WaveformChart.lvclass"/> </Item> <Item Name="WaveformGraph" Type="Folder"> <Item Name="WaveformGraph.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/WaveformGraph/WaveformGraph.lvclass"/> </Item> <Item Name="WhileLoop" Type="Folder"> <Item Name="WhileLoop.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/WhileLoop/WhileLoop.lvclass"/> </Item> <Item Name="Wire" Type="Folder"> <Item Name="ConnectionsTD.ctl" Type="VI" URL="../VI Interpreter/Classes/Wire/ConnectionsTD.ctl"/> <Item Name="Wire.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/Wire/Wire.lvclass"/> </Item> <Item Name="XYGraph" Type="Folder"> <Item Name="XYGraph.lvclass" Type="LVClass" URL="../VI Interpreter/Classes/XYGraph/XYGraph.lvclass"/> </Item> </Item> <Item Name="Controls" Type="Folder"> <Item Name="NodeCall_TD.ctl" Type="VI" URL="../Python/PythonConverter_BD/TypeDefs/NodeCall_TD.ctl"/> <Item Name="CollectTD.ctl" Type="VI" URL="../VI Interpreter/Classes/Diagram/CollectTD.ctl"/> </Item> </Item> <Item Name="Wrapping VIs" Type="Folder"> <Item Name="Prob and Stat" Type="Folder"> <Item Name="Mean (DBL).vi" Type="VI" URL="../Wrapping VIs/Prob and Stat/Mean (DBL).vi"/> <Item Name="Median.vi" Type="VI" URL="../Wrapping VIs/Prob and Stat/Median.vi"/> <Item Name="RMS (DBL).vi" Type="VI" URL="../Wrapping VIs/Prob and Stat/RMS (DBL).vi"/> <Item Name="Std Deviation and Variance.vi" Type="VI" URL="../Wrapping VIs/Prob and Stat/Std Deviation and Variance.vi"/> </Item> </Item> <Item Name="RasPi GPIO" Type="Folder"> <Item Name="GPIO.lvlib" Type="Library" URL="../GPIO.lvlib"/> </Item> <Item Name="Console" Type="Folder"> <Item Name="Console.lvlib" Type="Library" URL="../Console.lvlib"/> </Item> <Item Name="REC4" Type="Folder"> <Item Name="REC4.lvlib" Type="Library" URL="../REC4/REC4.lvlib"/> </Item> <Item Name="GitHub API.lvlib" Type="Library" URL="../GitHub/GitHub API.lvlib"/> <Item Name="SimpleMessaging.lvlib" Type="Library" URL="../Messaging/SimpleMessaging.lvlib"/> <Item Name="Dependencies" Type="Dependencies"> <Item Name="vi.lib" Type="Folder"> <Item Name="8.6CompatibleGlobalVar.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/config.llb/8.6CompatibleGlobalVar.vi"/> <Item Name="Add File to Zip.vi" Type="VI" URL="/&lt;vilib&gt;/zip/Add File to Zip.vi"/> <Item Name="Bit-array To Byte-array.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Bit-array To Byte-array.vi"/> <Item Name="BuildHelpPath.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/BuildHelpPath.vi"/> <Item Name="Calc Long Word Padded Width.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Calc Long Word Padded Width.vi"/> <Item Name="Check Color Table Size.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check Color Table Size.vi"/> <Item Name="Check Data Size.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check Data Size.vi"/> <Item Name="Check File Permissions.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check File Permissions.vi"/> <Item Name="Check if File or Folder Exists.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Check if File or Folder Exists.vi"/> <Item Name="Check Path.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check Path.vi"/> <Item Name="Check Special Tags.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Check Special Tags.vi"/> <Item Name="Clear Errors.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Clear Errors.vi"/> <Item Name="Close File+.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Close File+.vi"/> <Item Name="Close Zip File.vi" Type="VI" URL="/&lt;vilib&gt;/zip/Close Zip File.vi"/> <Item Name="Color to RGB.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/colorconv.llb/Color to RGB.vi"/> <Item Name="Compare Two Paths.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Compare Two Paths.vi"/> <Item Name="compatOverwrite.vi" Type="VI" URL="/&lt;vilib&gt;/_oldvers/_oldvers.llb/compatOverwrite.vi"/> <Item Name="compatReadText.vi" Type="VI" URL="/&lt;vilib&gt;/_oldvers/_oldvers.llb/compatReadText.vi"/> <Item Name="Convert property node font to graphics font.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Convert property node font to graphics font.vi"/> <Item Name="Create Mask.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Create Mask.vi"/> <Item Name="Details Display Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Details Display Dialog.vi"/> <Item Name="DialogType.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/DialogType.ctl"/> <Item Name="DialogTypeEnum.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/DialogTypeEnum.ctl"/> <Item Name="Directory of Top Level VI.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Directory of Top Level VI.vi"/> <Item Name="Draw Multiple Lines.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Multiple Lines.vi"/> <Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Cluster From Error Code.vi"/> <Item Name="Error Code Database.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Code Database.vi"/> <Item Name="ErrWarn.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/ErrWarn.ctl"/> <Item Name="Escape Characters for HTTP.vi" Type="VI" URL="/&lt;vilib&gt;/printing/PathToURL.llb/Escape Characters for HTTP.vi"/> <Item Name="eventvkey.ctl" Type="VI" URL="/&lt;vilib&gt;/event_ctls.llb/eventvkey.ctl"/> <Item Name="Find First Error.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Find First Error.vi"/> <Item Name="Find Tag.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Find Tag.vi"/> <Item Name="Flatten Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pixmap.llb/Flatten Pixmap.vi"/> <Item Name="Flip and Pad for Picture Control.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Flip and Pad for Picture Control.vi"/> <Item Name="Format Message String.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Format Message String.vi"/> <Item Name="General Error Handler Core CORE.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/General Error Handler Core CORE.vi"/> <Item Name="General Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/General Error Handler.vi"/> <Item Name="Get File Extension.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Get File Extension.vi"/> <Item Name="Get String Text Bounds.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Get String Text Bounds.vi"/> <Item Name="Get Text Rect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Get Text Rect.vi"/> <Item Name="GetHelpDir.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/GetHelpDir.vi"/> <Item Name="GetRTHostConnectedProp.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/GetRTHostConnectedProp.vi"/> <Item Name="imagedata.ctl" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/imagedata.ctl"/> <Item Name="List Directory and LLBs.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/List Directory and LLBs.vi"/> <Item Name="Longest Line Length in Pixels.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Longest Line Length in Pixels.vi"/> <Item Name="LVBoundsTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVBoundsTypeDef.ctl"/> <Item Name="LVBrowseOptionsTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVBrowseOptionsTypeDef.ctl"/> <Item Name="LVComboBoxStrsAndValuesArrayTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVComboBoxStrsAndValuesArrayTypeDef.ctl"/> <Item Name="LVFontTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVFontTypeDef.ctl"/> <Item Name="LVForegroundBackgroundColorsTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVForegroundBackgroundColorsTypeDef.ctl"/> <Item Name="LVFormatAndPrecisionTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVFormatAndPrecisionTypeDef.ctl"/> <Item Name="LVKeyTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVKeyTypeDef.ctl"/> <Item Name="LVMinMaxIncTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVMinMaxIncTypeDef.ctl"/> <Item Name="LVNumericRepresentation.ctl" Type="VI" URL="/&lt;vilib&gt;/numeric/LVNumericRepresentation.ctl"/> <Item Name="LVOutOfRangeActionTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVOutOfRangeActionTypeDef.ctl"/> <Item Name="LVPointTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVPointTypeDef.ctl"/> <Item Name="LVPositionTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVPositionTypeDef.ctl"/> <Item Name="LVRangeTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVRangeTypeDef.ctl"/> <Item Name="LVRectTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVRectTypeDef.ctl"/> <Item Name="LVScalePositionTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVScalePositionTypeDef.ctl"/> <Item Name="LVTextColorsTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVTextColorsTypeDef.ctl"/> <Item Name="LVTickColorsTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVTickColorsTypeDef.ctl"/> <Item Name="New Zip File.vi" Type="VI" URL="/&lt;vilib&gt;/zip/New Zip File.vi"/> <Item Name="NI_FileType.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/lvfile.llb/NI_FileType.lvlib"/> <Item Name="NI_LVConfig.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/config.llb/NI_LVConfig.lvlib"/> <Item Name="NI_PackedLibraryUtility.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/LVLibp/NI_PackedLibraryUtility.lvlib"/> <Item Name="Not Found Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Not Found Dialog.vi"/> <Item Name="Open File+.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Open File+.vi"/> <Item Name="Open URL in Default Browser (path).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser (path).vi"/> <Item Name="Open URL in Default Browser (string).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser (string).vi"/> <Item Name="Open URL in Default Browser core.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser core.vi"/> <Item Name="Open URL in Default Browser.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser.vi"/> <Item Name="Path To Command Line String.vi" Type="VI" URL="/&lt;vilib&gt;/AdvancedString/Path To Command Line String.vi"/> <Item Name="Path to URL.vi" Type="VI" URL="/&lt;vilib&gt;/printing/PathToURL.llb/Path to URL.vi"/> <Item Name="PathToUNIXPathString.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/CFURL.llb/PathToUNIXPathString.vi"/> <Item Name="Picture to Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Picture to Pixmap.vi"/> <Item Name="Read File+ (string).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Read File+ (string).vi"/> <Item Name="Read From Spreadsheet File (DBL).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Read From Spreadsheet File (DBL).vi"/> <Item Name="Read From Spreadsheet File (I64).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Read From Spreadsheet File (I64).vi"/> <Item Name="Read From Spreadsheet File (string).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Read From Spreadsheet File (string).vi"/> <Item Name="Read From Spreadsheet File.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Read From Spreadsheet File.vi"/> <Item Name="Read Lines From File.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Read Lines From File.vi"/> <Item Name="RectCentroid.vi" Type="VI" URL="/&lt;vilib&gt;/picture/PictureSupport.llb/RectCentroid.vi"/> <Item Name="RectSize.vi" Type="VI" URL="/&lt;vilib&gt;/picture/PictureSupport.llb/RectSize.vi"/> <Item Name="Recursive File List.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Recursive File List.vi"/> <Item Name="Relative Path To Platform Independent String.vi" Type="VI" URL="/&lt;vilib&gt;/AdvancedString/Relative Path To Platform Independent String.vi"/> <Item Name="Search and Replace Pattern.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Search and Replace Pattern.vi"/> <Item Name="Set Bold Text.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Set Bold Text.vi"/> <Item Name="Set Pen State.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Set Pen State.vi"/> <Item Name="Set String Value.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Set String Value.vi"/> <Item Name="Space Constant.vi" Type="VI" URL="/&lt;vilib&gt;/dlg_ctls.llb/Space Constant.vi"/> <Item Name="TagReturnType.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/TagReturnType.ctl"/> <Item Name="Three Button Dialog CORE.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Three Button Dialog CORE.vi"/> <Item Name="Three Button Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Three Button Dialog.vi"/> <Item Name="TRef Traverse.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/traverseref.llb/TRef Traverse.vi"/> <Item Name="TRef TravTarget.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/traverseref.llb/TRef TravTarget.ctl"/> <Item Name="Trim Whitespace.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Trim Whitespace.vi"/> <Item Name="UDP Multicast Open.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/UDP Multicast Open.vi"/> <Item Name="UDP Multicast Read-Only Open.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/UDP Multicast Read-Only Open.vi"/> <Item Name="UDP Multicast Read-Write Open.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/UDP Multicast Read-Write Open.vi"/> <Item Name="UDP Multicast Write-Only Open.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/UDP Multicast Write-Only Open.vi"/> <Item Name="Unflatten Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pixmap.llb/Unflatten Pixmap.vi"/> <Item Name="VariantType.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/VariantDataType/VariantType.lvlib"/> <Item Name="VI Scripting - Traverse.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/traverseref.llb/VI Scripting - Traverse.lvlib"/> <Item Name="whitespace.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/whitespace.ctl"/> <Item Name="Write BMP Data To Buffer.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Write BMP Data To Buffer.vi"/> <Item Name="Write BMP Data.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Write BMP Data.vi"/> <Item Name="Write BMP File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Write BMP File.vi"/> <Item Name="Write JPEG File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Write JPEG File.vi"/> <Item Name="Write PNG File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/png.llb/Write PNG File.vi"/> <Item Name="Write Spreadsheet String.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Write Spreadsheet String.vi"/> <Item Name="Write To Spreadsheet File (DBL).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Write To Spreadsheet File (DBL).vi"/> <Item Name="Write To Spreadsheet File (I64).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Write To Spreadsheet File (I64).vi"/> <Item Name="Write To Spreadsheet File (string).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Write To Spreadsheet File (string).vi"/> <Item Name="Write To Spreadsheet File.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Write To Spreadsheet File.vi"/> <Item Name="Get Image Subset.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Get Image Subset.vi"/> <Item Name="Coerce Bad Rect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Coerce Bad Rect.vi"/> <Item Name="POffsetRect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/PictureSupport.llb/POffsetRect.vi"/> <Item Name="RectAndRect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/PictureSupport.llb/RectAndRect.vi"/> <Item Name="RGB to Color.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/colorconv.llb/RGB to Color.vi"/> <Item Name="System Exec.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/system.llb/System Exec.vi"/> <Item Name="ex_CorrectErrorChain.vi" Type="VI" URL="/&lt;vilib&gt;/express/express shared/ex_CorrectErrorChain.vi"/> <Item Name="subFile Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/FileDialogBlock.llb/subFile Dialog.vi"/> <Item Name="System Directory Type.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/sysdir.llb/System Directory Type.ctl"/> <Item Name="Get System Directory.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/sysdir.llb/Get System Directory.vi"/> <Item Name="NI_AALBase.lvlib" Type="Library" URL="/&lt;vilib&gt;/Analysis/NI_AALBase.lvlib"/> <Item Name="NI_AALPro.lvlib" Type="Library" URL="/&lt;vilib&gt;/Analysis/NI_AALPro.lvlib"/> <Item Name="MD5Checksum File.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum File.vi"/> <Item Name="MD5Checksum format message-digest.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum format message-digest.vi"/> <Item Name="MD5Checksum core.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum core.vi"/> <Item Name="MD5Checksum pad.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum pad.vi"/> <Item Name="Simple Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Simple Error Handler.vi"/> <Item Name="LV Interface for Amazon S3.lvlib" Type="Library" URL="/&lt;vilib&gt;/National Instruments/LabVIEW Interface for Amazon S3/LV Interface for Amazon S3.lvlib"/> <Item Name="LabVIEWHTTPClient.lvlib" Type="Library" URL="/&lt;vilib&gt;/httpClient/LabVIEWHTTPClient.lvlib"/> <Item Name="SHA-1.lvlib" Type="Library" URL="/&lt;vilib&gt;/National Instruments/LabVIEW Interface for Amazon S3/SHA-1/SHA-1.lvlib"/> <Item Name="NI_SMTPEmail.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/SMTP/NI_SMTPEmail.lvlib"/> <Item Name="XML Parser.lvlib" Type="Library" URL="/&lt;vilib&gt;/National Instruments/LabVIEW Interface for Amazon S3/XML Parser/XML Parser.lvlib"/> <Item Name="Bold Particular String.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Bold Particular String.vi"/> <Item Name="VISA Configure Serial Port" Type="VI" URL="/&lt;vilib&gt;/Instr/_visa.llb/VISA Configure Serial Port"/> <Item Name="VISA Configure Serial Port (Instr).vi" Type="VI" URL="/&lt;vilib&gt;/Instr/_visa.llb/VISA Configure Serial Port (Instr).vi"/> <Item Name="VISA Configure Serial Port (Serial Instr).vi" Type="VI" URL="/&lt;vilib&gt;/Instr/_visa.llb/VISA Configure Serial Port (Serial Instr).vi"/> <Item Name="Application Directory.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Application Directory.vi"/> </Item> <Item Name="lvanlys.dll" Type="Document" URL="/&lt;resource&gt;/lvanlys.dll"/> <Item Name="System" Type="VI" URL="System"> <Property Name="NI.PreserveRelativePath" Type="Bool">true</Property> </Item> <Item Name="KEYLIB32.dll" Type="Document" URL="/&lt;resource&gt;/KEYLIB32.dll"/> <Item Name="System.Windows.Forms" Type="Document" URL="System.Windows.Forms"> <Property Name="NI.PreserveRelativePath" Type="Bool">true</Property> </Item> </Item> <Item Name="Build Specifications" Type="Build"> <Item Name="RasPi Source Distro" Type="Source Distribution"> <Property Name="Bld_autoIncrement" Type="Bool">true</Property> <Property Name="Bld_buildCacheID" Type="Str">{096AE200-A1E8-4A4E-B686-87CBD4D6AB2F}</Property> <Property Name="Bld_buildSpecName" Type="Str">RasPi Source Distro</Property> <Property Name="Bld_excludedDirectory[0]" Type="Path">vi.lib</Property> <Property Name="Bld_excludedDirectory[0].pathType" Type="Str">relativeToAppDir</Property> <Property Name="Bld_excludedDirectory[1]" Type="Path">resource/objmgr</Property> <Property Name="Bld_excludedDirectory[1].pathType" Type="Str">relativeToAppDir</Property> <Property Name="Bld_excludedDirectory[2]" Type="Path">/C/ProgramData/National Instruments/InstCache/14.0</Property> <Property Name="Bld_excludedDirectory[3]" Type="Path">instr.lib</Property> <Property Name="Bld_excludedDirectory[3].pathType" Type="Str">relativeToAppDir</Property> <Property Name="Bld_excludedDirectory[4]" Type="Path">user.lib</Property> <Property Name="Bld_excludedDirectory[4].pathType" Type="Str">relativeToAppDir</Property> <Property Name="Bld_excludedDirectoryCount" Type="Int">5</Property> <Property Name="Bld_excludeDependentDLLs" Type="Bool">true</Property> <Property Name="Bld_excludeDependentPPLs" Type="Bool">true</Property> <Property Name="Bld_localDestDir" Type="Path">../LLB</Property> <Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property> <Property Name="Bld_previewCacheID" Type="Str">{A48FA216-7C62-4163-8BAE-0C38024222FD}</Property> <Property Name="Bld_version.build" Type="Int">62</Property> <Property Name="Bld_version.major" Type="Int">1</Property> <Property Name="Destination[0].destName" Type="Str">Destination Directory</Property> <Property Name="Destination[0].libraryName" Type="Str">Raspberry Pi Compatible Compiler for LabVIEW.lvlib</Property> <Property Name="Destination[0].path" Type="Path">../LLB</Property> <Property Name="Destination[0].path.type" Type="Str">relativeToProject</Property> <Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property> <Property Name="Destination[1].destName" Type="Str">Support Directory</Property> <Property Name="Destination[1].path" Type="Path">../LLB/data</Property> <Property Name="Destination[1].path.type" Type="Str">relativeToProject</Property> <Property Name="DestinationCount" Type="Int">2</Property> <Property Name="Source[0].Container.applyProperties" Type="Bool">true</Property> <Property Name="Source[0].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[0].itemID" Type="Str">{C8F70FC7-DA5C-4AC9-A310-805278374CDB}</Property> <Property Name="Source[0].properties[0].type" Type="Str">Allow debugging</Property> <Property Name="Source[0].properties[0].value" Type="Bool">false</Property> <Property Name="Source[0].propertiesCount" Type="Int">1</Property> <Property Name="Source[0].type" Type="Str">Container</Property> <Property Name="Source[1].destinationIndex" Type="Int">0</Property> <Property Name="Source[1].itemID" Type="Ref">/My Computer/RasPi Compiler/Compile and Download App/Raspberry Pi Compatible Compiler for LabVIEW.vi</Property> <Property Name="Source[1].properties[0].type" Type="Str">Allow debugging</Property> <Property Name="Source[1].properties[0].value" Type="Bool">false</Property> <Property Name="Source[1].propertiesCount" Type="Int">1</Property> <Property Name="Source[1].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[1].type" Type="Str">VI</Property> <Property Name="Source[10].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Read Compilation Type.vi</Property> <Property Name="Source[10].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[10].properties[0].value" Type="Bool">false</Property> <Property Name="Source[10].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[10].properties[1].value" Type="Bool">true</Property> <Property Name="Source[10].propertiesCount" Type="Int">2</Property> <Property Name="Source[10].type" Type="Str">VI</Property> <Property Name="Source[11].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Read FP Source Dir.vi</Property> <Property Name="Source[11].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[11].properties[0].value" Type="Bool">false</Property> <Property Name="Source[11].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[11].properties[1].value" Type="Bool">false</Property> <Property Name="Source[11].propertiesCount" Type="Int">2</Property> <Property Name="Source[11].type" Type="Str">VI</Property> <Property Name="Source[12].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Read Message Box.vi</Property> <Property Name="Source[12].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[12].properties[0].value" Type="Bool">false</Property> <Property Name="Source[12].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[12].properties[1].value" Type="Bool">true</Property> <Property Name="Source[12].propertiesCount" Type="Int">2</Property> <Property Name="Source[12].type" Type="Str">VI</Property> <Property Name="Source[13].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Read VI Interpreter.vi</Property> <Property Name="Source[13].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[13].properties[0].value" Type="Bool">false</Property> <Property Name="Source[13].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[13].properties[1].value" Type="Bool">true</Property> <Property Name="Source[13].propertiesCount" Type="Int">2</Property> <Property Name="Source[13].type" Type="Str">VI</Property> <Property Name="Source[14].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Read VI Path.vi</Property> <Property Name="Source[14].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[14].properties[0].value" Type="Bool">false</Property> <Property Name="Source[14].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[14].properties[1].value" Type="Bool">true</Property> <Property Name="Source[14].propertiesCount" Type="Int">2</Property> <Property Name="Source[14].type" Type="Str">VI</Property> <Property Name="Source[15].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Write Build Path.vi</Property> <Property Name="Source[15].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[15].properties[0].value" Type="Bool">false</Property> <Property Name="Source[15].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[15].properties[1].value" Type="Bool">true</Property> <Property Name="Source[15].propertiesCount" Type="Int">2</Property> <Property Name="Source[15].type" Type="Str">VI</Property> <Property Name="Source[16].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Write Message Box.vi</Property> <Property Name="Source[16].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[16].properties[0].value" Type="Bool">false</Property> <Property Name="Source[16].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[16].properties[1].value" Type="Bool">true</Property> <Property Name="Source[16].propertiesCount" Type="Int">2</Property> <Property Name="Source[16].type" Type="Str">VI</Property> <Property Name="Source[17].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Write VI Interpreter.vi</Property> <Property Name="Source[17].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[17].properties[0].value" Type="Bool">false</Property> <Property Name="Source[17].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[17].properties[1].value" Type="Bool">true</Property> <Property Name="Source[17].propertiesCount" Type="Int">2</Property> <Property Name="Source[17].type" Type="Str">VI</Property> <Property Name="Source[18].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Write VI Path.vi</Property> <Property Name="Source[18].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[18].properties[0].value" Type="Bool">false</Property> <Property Name="Source[18].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[18].properties[1].value" Type="Bool">true</Property> <Property Name="Source[18].propertiesCount" Type="Int">2</Property> <Property Name="Source[18].type" Type="Str">VI</Property> <Property Name="Source[19].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Write FP Source Dir.vi</Property> <Property Name="Source[19].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[19].properties[0].value" Type="Bool">false</Property> <Property Name="Source[19].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[19].properties[1].value" Type="Bool">true</Property> <Property Name="Source[19].propertiesCount" Type="Int">2</Property> <Property Name="Source[19].type" Type="Str">VI</Property> <Property Name="Source[2].destinationIndex" Type="Int">0</Property> <Property Name="Source[2].itemID" Type="Ref">/My Computer/RasPi Compiler/Submit an Issue/Rasbperry Pi Compiler for LabVIEW Beta - Submit an Issue.vi</Property> <Property Name="Source[2].type" Type="Str">VI</Property> <Property Name="Source[20].Container.applyInclusion" Type="Bool">true</Property> <Property Name="Source[20].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[20].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[20].destinationIndex" Type="Int">0</Property> <Property Name="Source[20].itemID" Type="Ref">/My Computer/Wrapping VIs</Property> <Property Name="Source[20].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[20].type" Type="Str">Container</Property> <Property Name="Source[21].destinationIndex" Type="Int">0</Property> <Property Name="Source[21].itemID" Type="Ref">/My Computer/RasPi Compiler/Compile and Download App/RTM.rtm</Property> <Property Name="Source[21].lvfile" Type="Bool">true</Property> <Property Name="Source[21].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[22].destinationIndex" Type="Int">0</Property> <Property Name="Source[22].itemID" Type="Ref">/My Computer/RasPi GPIO/GPIO.lvlib</Property> <Property Name="Source[22].Library.allowMissingMembers" Type="Bool">true</Property> <Property Name="Source[22].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[22].type" Type="Str">Library</Property> <Property Name="Source[23].destinationIndex" Type="Int">0</Property> <Property Name="Source[23].itemID" Type="Ref">/My Computer/Console/Console.lvlib</Property> <Property Name="Source[23].Library.allowMissingMembers" Type="Bool">true</Property> <Property Name="Source[23].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[23].type" Type="Str">Library</Property> <Property Name="Source[24].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[24].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[24].itemID" Type="Ref">/My Computer/DAG</Property> <Property Name="Source[24].type" Type="Str">Container</Property> <Property Name="Source[25].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[25].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[25].itemID" Type="Ref">/My Computer/RasPi Compiler</Property> <Property Name="Source[25].type" Type="Str">Container</Property> <Property Name="Source[26].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[26].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[26].itemID" Type="Ref">/My Computer/Python</Property> <Property Name="Source[26].type" Type="Str">Container</Property> <Property Name="Source[27].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[27].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[27].itemID" Type="Ref">/My Computer/RasPi_Services</Property> <Property Name="Source[27].type" Type="Str">Container</Property> <Property Name="Source[28].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[28].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[28].itemID" Type="Ref">/My Computer/Utilities</Property> <Property Name="Source[28].type" Type="Str">Container</Property> <Property Name="Source[29].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[29].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[29].itemID" Type="Ref">/My Computer/VI Interpreter</Property> <Property Name="Source[29].type" Type="Str">Container</Property> <Property Name="Source[3].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[3].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[3].itemID" Type="Ref">/My Computer/RasPi Compiler/Compile and Download App/Custom Controls</Property> <Property Name="Source[3].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[3].properties[0].value" Type="Bool">false</Property> <Property Name="Source[3].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[3].properties[1].value" Type="Bool">true</Property> <Property Name="Source[3].propertiesCount" Type="Int">2</Property> <Property Name="Source[3].type" Type="Str">Container</Property> <Property Name="Source[30].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[30].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[30].itemID" Type="Ref">/My Computer/RasPi GPIO</Property> <Property Name="Source[30].type" Type="Str">Container</Property> <Property Name="Source[31].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[31].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[31].itemID" Type="Ref">/My Computer/Console</Property> <Property Name="Source[31].type" Type="Str">Container</Property> <Property Name="Source[4].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[4].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[4].itemID" Type="Ref">/My Computer/RasPi Compiler/Compile and Download App/subVIs</Property> <Property Name="Source[4].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[4].properties[0].value" Type="Bool">false</Property> <Property Name="Source[4].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[4].properties[1].value" Type="Bool">true</Property> <Property Name="Source[4].propertiesCount" Type="Int">2</Property> <Property Name="Source[4].type" Type="Str">Container</Property> <Property Name="Source[5].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/subVIs/AddMessage.vi</Property> <Property Name="Source[5].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[5].properties[0].value" Type="Bool">false</Property> <Property Name="Source[5].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[5].properties[1].value" Type="Bool">true</Property> <Property Name="Source[5].propertiesCount" Type="Int">2</Property> <Property Name="Source[5].type" Type="Str">VI</Property> <Property Name="Source[6].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/subVIs/FinishMessage.vi</Property> <Property Name="Source[6].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[6].properties[0].value" Type="Bool">false</Property> <Property Name="Source[6].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[6].properties[1].value" Type="Bool">true</Property> <Property Name="Source[6].propertiesCount" Type="Int">2</Property> <Property Name="Source[6].type" Type="Str">VI</Property> <Property Name="Source[7].Container.applySaveSettings" Type="Bool">true</Property> <Property Name="Source[7].Container.depDestIndex" Type="Int">0</Property> <Property Name="Source[7].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/methods</Property> <Property Name="Source[7].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[7].properties[0].value" Type="Bool">false</Property> <Property Name="Source[7].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[7].properties[1].value" Type="Bool">true</Property> <Property Name="Source[7].propertiesCount" Type="Int">2</Property> <Property Name="Source[7].type" Type="Str">Container</Property> <Property Name="Source[8].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Read Build Path.vi</Property> <Property Name="Source[8].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[8].properties[0].value" Type="Bool">false</Property> <Property Name="Source[8].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[8].properties[1].value" Type="Bool">true</Property> <Property Name="Source[8].propertiesCount" Type="Int">2</Property> <Property Name="Source[8].type" Type="Str">VI</Property> <Property Name="Source[9].itemID" Type="Ref">/My Computer/RasPi Compiler/Compiler/RasPi Compiler.lvclass/accessors/Write Compilation Type.vi</Property> <Property Name="Source[9].properties[0].type" Type="Str">Remove front panel</Property> <Property Name="Source[9].properties[0].value" Type="Bool">false</Property> <Property Name="Source[9].properties[1].type" Type="Str">Remove block diagram</Property> <Property Name="Source[9].properties[1].value" Type="Bool">true</Property> <Property Name="Source[9].propertiesCount" Type="Int">2</Property> <Property Name="Source[9].type" Type="Str">VI</Property> <Property Name="SourceCount" Type="Int">32</Property> </Item> </Item> </Item> </Project>
LabVIEW
3
labviewforRaspi/LabVIEWforRasPi
LabVIEW Source/RasPi Source.lvproj
[ "AFL-1.1" ]
'reach 0.1'; export const main = Reach.App( {}, [ Participant('A', { i: UInt }) ], (A) => { A.only(() => { const i = declassify(interact.i); }) A.publish(i); if (i < 5) { commit(); } else { commit(); } exit(); });
RenderScript
3
chikeabuah/reach-lang
hs/t/y/pr1165.rsh
[ "Apache-2.0" ]
import types import functools # from jaraco.functools 3.3 def method_cache(method, cache_wrapper=None): """ Wrap lru_cache to support storing the cache data in the object instances. Abstracts the common paradigm where the method explicitly saves an underscore-prefixed protected property on first call and returns that subsequently. >>> class MyClass: ... calls = 0 ... ... @method_cache ... def method(self, value): ... self.calls += 1 ... return value >>> a = MyClass() >>> a.method(3) 3 >>> for x in range(75): ... res = a.method(x) >>> a.calls 75 Note that the apparent behavior will be exactly like that of lru_cache except that the cache is stored on each instance, so values in one instance will not flush values from another, and when an instance is deleted, so are the cached values for that instance. >>> b = MyClass() >>> for x in range(35): ... res = b.method(x) >>> b.calls 35 >>> a.method(0) 0 >>> a.calls 75 Note that if method had been decorated with ``functools.lru_cache()``, a.calls would have been 76 (due to the cached value of 0 having been flushed by the 'b' instance). Clear the cache with ``.cache_clear()`` >>> a.method.cache_clear() Same for a method that hasn't yet been called. >>> c = MyClass() >>> c.method.cache_clear() Another cache wrapper may be supplied: >>> cache = functools.lru_cache(maxsize=2) >>> MyClass.method2 = method_cache(lambda self: 3, cache_wrapper=cache) >>> a = MyClass() >>> a.method2() 3 Caution - do not subsequently wrap the method with another decorator, such as ``@property``, which changes the semantics of the function. See also http://code.activestate.com/recipes/577452-a-memoize-decorator-for-instance-methods/ for another implementation and additional justification. """ cache_wrapper = cache_wrapper or functools.lru_cache() def wrapper(self, *args, **kwargs): # it's the first call, replace the method with a cached, bound method bound_method = types.MethodType(method, self) cached_method = cache_wrapper(bound_method) setattr(self, method.__name__, cached_method) return cached_method(*args, **kwargs) # Support cache clear even before cache has been created. wrapper.cache_clear = lambda: None return wrapper # From jaraco.functools 3.3 def pass_none(func): """ Wrap func so it's not called if its first param is None >>> print_text = pass_none(print) >>> print_text('text') text >>> print_text(None) """ @functools.wraps(func) def wrapper(param, *args, **kwargs): if param is not None: return func(param, *args, **kwargs) return wrapper
Python
5
Jamesmwangi245/flask-3
virtual/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/_functools.py
[ "MIT" ]
/****************************************************/ /* File: auto.bison */ /* The auto Yacc/Bison specification file */ /****************************************************/ %{ #define YYPARSER /* distinguishes Yacc output from other code files */ #define YYERROR_VERBOSE #define YYDEBUG 1 // int yydebug = 1; #include "globals.h" #include "util.h" #include "genIR.h" #define YYSTYPE TreeNode * static int savedLineNo; static TreeNode * savedTree; /* stores syntax tree for later return */ int lineno = 0; int Error = FALSE; FILE* source; /* source code text file */ FILE* listing ;/* send listing to screen */ static int yylex(void); #define MAXTOKENLEN 100 /* tokenString array stores the lexeme of each token */ extern char tokenString[MAXTOKENLEN + 1]; extern char IDname[MAXTOKENLEN + 1]; extern int numvalue; extern double floatvalue; TokenType getToken(void); %} %token ID INTV FLOATV %token ASSIGN PLUS MINUS TIMES DIV FLOORDIV MOD %token LPAREN RPAREN LBRACK RBRACK SEMI COMMA %token ERROR %left PLUS MINUS %left TIMES DIV FLOORDIV MOD %% /* Grammar for auto */ program : stmt {savedTree = $1;} | program stmt { YYSTYPE t = $1; while (t->sibling != NULL) t = t->sibling; t->sibling = $2; $$ = $1; } stmt : tref ASSIGN rhs SEMI { $$ = newNode(StmtK); $$->child[0] = $1; $$->child[1] = $3; } rhs : rhs PLUS rhs { $$ = newNode(RhsK); $$->child[0] = $1; $$->child[1] = $3; $$->op = PLUS; } | rhs TIMES rhs { $$ = newNode(RhsK); $$->child[0] = $1; $$->child[1] = $3; $$->op = TIMES; } | rhs MINUS rhs { $$ = newNode(RhsK); $$->child[0] = $1; $$->child[1] = $3; $$->op = MINUS; } | rhs DIV rhs { $$ = newNode(RhsK); $$->child[0] = $1; $$->child[1] = $3; $$->op = DIV; } | rhs MOD rhs { $$ = newNode(RhsK); $$->child[0] = $1; $$->child[1] = $3; $$->op = MOD; } | rhs FLOORDIV rhs { $$ = newNode(RhsK); $$->child[0] = $1; $$->child[1] = $3; $$->op = FLOORDIV; } | assist_ref {$$ = $1;} | tref {$$ = $1;} | const {$$ = $1;} tref : assist_ref LPAREN alist RPAREN { $$ = newNode(TrefK); $$->child[0] = $1; $$->child[1] = $3; } assist_ref : ID LBRACK clist RBRACK { $$ = newNode(ArefK); $$->child[0] = newNode(IdK); $$->child[0]->name = copyString(IDname); $$->child[1] = $3; } clist : intv {$$ = $1;} | clist COMMA intv { YYSTYPE t = $1; while (t->sibling != NULL) t = t->sibling; t->sibling = $3; $$ = $1; } alist : idexp {$$ = $1;} | alist COMMA idexp { YYSTYPE t = $1; while (t->sibling != NULL) t = t->sibling; t->sibling = $3; $$ = $1; } idexp : ID { $$ = newNode(IdK); $$->name = copyString(IDname); } | idexp PLUS idexp { $$ = newNode(IdexprK); $$->child[0] = $1; $$->child[1] = $3; $$->op = PLUS; } | idexp PLUS intv { $$ = newNode(IdexprK); $$->child[0] = $1; $$->child[1] = $3; $$->op = PLUS; } | idexp MINUS intv { $$ = newNode(IdexprK); $$->child[0] = $1; $$->child[1] = $3; $$->op = MINUS; } | idexp TIMES intv { $$ = newNode(IdexprK); $$->child[0] = $1; $$->child[1] = $3; $$->op = TIMES; } | idexp FLOORDIV intv { $$ = newNode(IdexprK); $$->child[0] = $1; $$->child[1] = $3; $$->op = FLOORDIV; } | idexp MOD intv { $$ = newNode(IdexprK); $$->child[0] = $1; $$->child[1] = $3; $$->op = MOD; } intv : INTV { $$ = newNode(IntvK); $$->val = numvalue; } const : intv{$$ = $1;} | FLOATV { $$ = newNode(FloatvK); $$->fval = floatvalue; } %% int yyerror(char *message) { fprintf(listing, "Syntax error at line %d: %s\n", lineno, message); fprintf(listing, "Current token: "); fprintf(listing,"%d %s\n",yychar,tokenString); Error = TRUE; exit(0); return 0; } /* yylex calls getToken to make Yacc/Bison output * compatible with ealier versions of the auto scanner */ static int yylex(void) { int a = getToken(); return a; } TreeNode *parse(void) { yyparse(); return savedTree; } int main(int argc, char** argv) { if (argc > 1) { /*open the file*/ source = fopen(argv[1], "r"); if (!source) { fprintf(stderr, "could not open %s\n", argv[1]); exit(1); } } else source = stdin; if (argc > 2) { /*open the file*/ outname = argv[2]; // listing = fopen(argv[2], "w"); // if (!listing) // { // fprintf(stderr, "could not open %s\n", argv[1]); // exit(1); // } } else outname = NULL; // else listing = stdout; TreeNode *syntaxTree; syntaxTree = parse(); //printTree(syntaxTree); outinit(syntaxTree); return 0; }
Bison
5
KnowingNothing/ExprAutodiff
language-project/parser/auto.bison
[ "MIT" ]
const i32 next = 12
Thrift
0
JonnoFTW/thriftpy2
tests/parser-cases/e_use_thrift_reserved_keywords.thrift
[ "MIT" ]
<div data-bind="if: policies().length>0"> <div class="input-group"> <input type="search" name="search" placeholder="${message(code:"page.acls.search.input.placeholder")}" class="form-control input-sm" data-bind="value: search" /> <span class="input-group-addon"><g:icon name="search"/></span> </div> <div data-bind="if: search()"> <div class="alert alert-info"> <span data-bind="messageTemplate: filtered.count(), messageTemplatePluralize:true, css: { 'text-info': filtered.count()>0, 'text-warning': filtered.count()<1 }"> <g:message code="stored.acl.policy.files.search.singular"/>|<g:message code="stored.acl.policy.files.search"/> </span> </div> </div> </div> <div data-bind="if: pagingEnabled()"> <span class="text-muted" data-bind="if: paging.hasPages()"> <span data-bind="text: paging.pageFirstIndex"></span>-<span data-bind="text: paging.pageLastIndex"></span> of <span class="text-info" data-bind="text: paging.content().length"></span> </span> <div data-ko-pagination="${name}"></div> </div>
Groovy Server Pages
3
kbens/rundeck
rundeckapp/grails-app/views/menu/_aclsPagingKO.gsp
[ "Apache-2.0" ]
namespace OpenAPI.Tests open System open System.Net open System.Net.Http open System.IO open Microsoft.AspNetCore.Builder open Microsoft.AspNetCore.Hosting open Microsoft.AspNetCore.TestHost open Microsoft.Extensions.DependencyInjection open FSharp.Control.Tasks.V2.ContextInsensitive open Xunit open System.Text open TestHelper open OpenAPI.PetApiHandler open OpenAPI.PetApiHandlerParams module PetApiHandlerTestsHelper = let mutable AddPetExamples = Map.empty let mutable AddPetBody = "" AddPetBody <- WebUtility.HtmlDecode "{ &quot;photoUrls&quot; : [ &quot;photoUrls&quot;, &quot;photoUrls&quot; ], &quot;name&quot; : &quot;doggie&quot;, &quot;id&quot; : 0, &quot;category&quot; : { &quot;name&quot; : &quot;name&quot;, &quot;id&quot; : 6 }, &quot;tags&quot; : [ { &quot;name&quot; : &quot;name&quot;, &quot;id&quot; : 1 }, { &quot;name&quot; : &quot;name&quot;, &quot;id&quot; : 1 } ], &quot;status&quot; : &quot;available&quot; }" AddPetExamples <- AddPetExamples.Add("application/json", AddPetBody) AddPetBody <- WebUtility.HtmlDecode "&lt;Pet&gt; &lt;id&gt;123456789&lt;/id&gt; &lt;name&gt;doggie&lt;/name&gt; &lt;photoUrls&gt; &lt;photoUrls&gt;aeiou&lt;/photoUrls&gt; &lt;/photoUrls&gt; &lt;tags&gt; &lt;/tags&gt; &lt;status&gt;aeiou&lt;/status&gt; &lt;/Pet&gt;" AddPetExamples <- AddPetExamples.Add("application/xml", AddPetBody) let getAddPetExample mediaType = AddPetExamples.[mediaType] |> getConverter mediaType () () () () let mutable UpdatePetExamples = Map.empty let mutable UpdatePetBody = "" UpdatePetBody <- WebUtility.HtmlDecode "{ &quot;photoUrls&quot; : [ &quot;photoUrls&quot;, &quot;photoUrls&quot; ], &quot;name&quot; : &quot;doggie&quot;, &quot;id&quot; : 0, &quot;category&quot; : { &quot;name&quot; : &quot;name&quot;, &quot;id&quot; : 6 }, &quot;tags&quot; : [ { &quot;name&quot; : &quot;name&quot;, &quot;id&quot; : 1 }, { &quot;name&quot; : &quot;name&quot;, &quot;id&quot; : 1 } ], &quot;status&quot; : &quot;available&quot; }" UpdatePetExamples <- UpdatePetExamples.Add("application/json", UpdatePetBody) UpdatePetBody <- WebUtility.HtmlDecode "&lt;Pet&gt; &lt;id&gt;123456789&lt;/id&gt; &lt;name&gt;doggie&lt;/name&gt; &lt;photoUrls&gt; &lt;photoUrls&gt;aeiou&lt;/photoUrls&gt; &lt;/photoUrls&gt; &lt;tags&gt; &lt;/tags&gt; &lt;status&gt;aeiou&lt;/status&gt; &lt;/Pet&gt;" UpdatePetExamples <- UpdatePetExamples.Add("application/xml", UpdatePetBody) let getUpdatePetExample mediaType = UpdatePetExamples.[mediaType] |> getConverter mediaType let mutable UpdatePetWithFormExamples = Map.empty let mutable UpdatePetWithFormBody = "" let getUpdatePetWithFormExample mediaType = UpdatePetWithFormExamples.[mediaType] |> getConverter mediaType let mutable UploadFileExamples = Map.empty let mutable UploadFileBody = "" let getUploadFileExample mediaType = UploadFileExamples.[mediaType] |> getConverter mediaType
F#
3
MalcolmScoffable/openapi-generator
samples/server/petstore/fsharp-giraffe/OpenAPI.Tests/PetApiTestsHelper.fs
[ "Apache-2.0" ]
@mixin heading($material) color: map-deep-get($material, 'text', 'primary') .v-application .theme--light.heading +heading($material-light) .v-application .theme--dark.heading +heading($material-dark)
Sass
4
ahmadiqbal1/vuetify
packages/vuetify/src/styles/elements/_headings.sass
[ "MIT" ]
$TTL 300 @ IN A 1.2.3.4 a IN CNAME foo.com. b IN CNAME foo.com. c IN CNAME foo.com. d IN CNAME foo.com.
DNS Zone
3
IT-Sumpfling/dnscontrol
pkg/js/parse_tests/020-complexRequire/foo.com.zone
[ "MIT" ]
--TEST-- Bug #76800 (foreach inconsistent if array modified during loop) --FILE-- <?php $arr = [1 => 1, 3 => 3]; // [1 => 1, 2 => 3] will print both keys foreach($arr as $key => &$val) { // without & will print both keys echo "See key {$key}\n"; $arr[0] = 0; // without this line will print both keys unset($arr[0]); } ?> --EXPECT-- See key 1 See key 3
PHP
3
NathanFreeman/php-src
Zend/tests/bug76800.phpt
[ "PHP-3.01" ]
/** Copyright 2015 Acacia Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.acacia.util; import org.acacia.server.AcaciaManager; /** * Class PlaceToNodeMapper acts as the facade that provides the access to the details of mapping of each * place id to host and port */ public class PlaceToNodeMapper { public static def getHost(val placeID:Long):String{ var result:String = null; val nPlaces = Int.parse(Utils.getAcaciaProperty("org.acacia.server.nplaces"));//AcaciaManager.getNPlaces(org.acacia.util.Utils.getPrivateHostList()(0)); //Place.places().size() as Int; val hostList:Rail[String] = Utils.getPrivateHostList(); //val placesPerHost = nPlaces/hostList.size; val hostID = placeID % hostList.size; result = hostList(hostID); return result; } public static def getInstancePort(val placeID:Long):Int{ var port:Int = org.acacia.util.java.Conts_Java.ACACIA_INSTANCE_PORT;//This is the starting point val nPlaces = Int.parse(Utils.getAcaciaProperty("org.acacia.server.nplaces"));//AcaciaManager.getNPlaces(org.acacia.util.Utils.getPrivateHostList()(0));//Place.places().size() as Int; val hostList:Rail[String] = Utils.getPrivateHostList(); //val placesPerHost:Int = (nPlaces/hostList.size) as Int; val hostCount = hostList.size as Int; val hostID = placeID % hostCount; val withinPlaceIndex:Int = ((placeID - hostID) as Int)/hostCount; return (port + withinPlaceIndex); } public static def getFileTransferServicePort(val placeID:Long):Int{ val nPlaces = Int.parse(Utils.getAcaciaProperty("org.acacia.server.nplaces"));//AcaciaManager.getNPlaces(org.acacia.util.Utils.getPrivateHostList()(0));//Place.places().size() as Int; val hostList:Rail[String] = Utils.getPrivateHostList(); //val placesPerHost:Int = (nPlaces/hostList.size) as Int; val hostCount = hostList.size as Int; //We basically need to shift the port range by (nPlaces/hostCount) . var port:Int = org.acacia.util.java.Conts_Java.ACACIA_INSTANCE_PORT + (nPlaces/hostCount) + 1n;//This is the starting point for file transfer service val hostID = placeID % hostCount; val withinPlaceIndex:Int = ((placeID - hostID) as Int)/hostCount; return (port + withinPlaceIndex); } }
X10
3
mdherath/Acacia
src/org/acacia/util/PlaceToNodeMapper.x10
[ "Apache-2.0" ]
<?xml version="1.0" encoding="UTF-8"?> <!-- ******************************************************************* --> <!-- --> <!-- © Copyright IBM Corp. 2010, 2011 --> <!-- --> <!-- Licensed under the Apache License, Version 2.0 (the "License"); --> <!-- you may not use this file except in compliance with the License. --> <!-- You may obtain a copy of the License at: --> <!-- --> <!-- http://www.apache.org/licenses/LICENSE-2.0 --> <!-- --> <!-- Unless required by applicable law or agreed to in writing, software --> <!-- distributed under the License is distributed on an "AS IS" BASIS, --> <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> <!-- implied. See the License for the specific language governing --> <!-- permissions and limitations under the License. --> <!-- --> <!-- ******************************************************************* --> <faces-config> <faces-config-extension> <namespace-uri>http://www.ibm.com/xsp/coreex</namespace-uri> <default-prefix>xe</default-prefix> <designer-extension> <control-subpackage-name>layout</control-subpackage-name> </designer-extension> </faces-config-extension> <component> <description>A app layout component (copy and pasted) for JUnit designer testing</description> <display-name>TEST Application Layout</display-name> <component-type>com.ibm.xsp.extlib.layout.UIApplicationLayout</component-type> <component-class>com.ibm.xsp.extlib.component.layout.UIApplicationLayout</component-class> <property> <description>Application Configuration</description> <display-name>Application Configuration</display-name> <property-name>configuration</property-name> <property-class>com.ibm.xsp.extlib.component.layout.ApplicationConfiguration</property-class> <property-extension> <designer-extension> <category>basics</category> <!-- TODO description--> <!-- TODO make the applicationConfiguration property required, technically a breaking functionality change. --> <!-- TODO make the applicationConfiguration property do <allow-run-time-binding>false</allow-run-time-binding>, which is technically a breaking change. --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Event triggered after a click on some node in the Application Configuration</description> <display-name>On Item Click</display-name> <property-name>onItemClick</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>events</category> <event>true</event> <subcategory>container-event</subcategory> <!-- TODO description is wrong as it is not related to the outline, and need to explain the mechanism for figuring out which outline entry was clicked --> <!-- TODO what does the eventHandler for this listen to? when any link node is clicked? what if it's a URL link node? is it when any node with a submittedValue is clicked? --> <tags> todo </tags> </designer-extension> </property-extension> </property> <component-extension> <component-family>com.ibm.xsp.extlib.layout.ApplicationLayout</component-family> <renderer-type>com.ibm.xsp.extlib.OneUIApplicationLayout</renderer-type> <tag-name>TESTapplicationLayout</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library TEST</category> <render-markup>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&#xd; &lt;xp:view xmlns:xp="http://www.ibm.com/xsp/core"&gt;&#xd;&#xd; &lt;/xp:view&gt;&#xd; </render-markup> </designer-extension> </component-extension> </component> <complex-type> <description>Base definition for the application layout configuration objects implementing this interface</description> <display-name>Base Application Configuration</display-name> <complex-id>com.ibm.xsp.extlib.designer.component.layout.ApplicationConfiguration</complex-id> <complex-class>com.ibm.xsp.extlib.component.layout.ApplicationConfiguration</complex-class> </complex-type> <complex-type> <description>FOR UNIT TEST ONLY</description> <display-name>Unit Test 1</display-name> <complex-id>test.unittest1</complex-id> <complex-class>xsp.extlib.designer.junit.util.Dummy</complex-class> <property> <description>Test Property 1</description> <display-name>property1</display-name> <property-name>property1</property-name> <property-class>java.lang.String</property-class> <property-extension> <default-value>test default</default-value> <designer-extension> <exclude-types>test.etype, test/etype, test etype</exclude-types> </designer-extension> </property-extension> </property> <property> <description>default-value test 1</description> <display-name>property2</display-name> <property-name>property2</property-name> <property-class>boolean</property-class> <property-extension> <default-value>false</default-value> </property-extension> </property> <property> <description>default-value test 2</description> <display-name>property3</display-name> <property-name>property3</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> </property-extension> </property> <property> <description>default-value test 3</description> <display-name>property4</display-name> <property-name>property4</property-name> <property-class>boolean</property-class> <property-extension> <!-- default-value>commented out</default-value --> </property-extension> </property> </complex-type> <complex-type> <description>Basic application configuration abstract class.</description> <display-name>Basic Application Configuration</display-name> <complex-id>com.ibm.xsp.extlib.designer.component.layout.impl.BasicApplicationConfigurationImpl</complex-id> <complex-class>com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl</complex-class> <property> <description>Default navigation path</description> <display-name>Default Navigation Path</display-name> <property-name>defaultNavigationPath</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <!-- TODO needs description, explain how navigation paths work--> <!-- TODO add an editor with suggestions, or request Designer make one --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Navigation path</description> <display-name>Navigation path</display-name> <property-name>navigationPath</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <!-- TODO needs description, explain how navigation paths work--> <!-- TODO add an editor with suggestions, or request Designer make one --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Indicates if the banner should be displayed</description> <display-name>Banner</display-name> <property-name>TESTbanner</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> <designer-extension> <!-- TODO needs description, note defaults to true --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Indicates if the mast header should be displayed</description> <display-name>Mast Header</display-name> <property-name>mastHeader</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> <designer-extension> <!-- TODO needs description, note defaults to true--> <!-- TODO maybe delete this property, and always display the facet--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Indicates if the mast footer should be displayed</description> <display-name>Mast Footer</display-name> <property-name>mastFooter</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> <designer-extension> <!-- TODO needs description, note defaults to true--> <!-- TODO maybe delete this property, and always display the facet--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Product Logo</description> <display-name>Product Logo</display-name> <property-name>productLogo</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.ImagePicker</editor> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Product Logo Style Class</description> <display-name>Product Logo Class</display-name> <property-name>productLogoClass</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StyleClassEditor</editor> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Product Logo Style</description> <display-name>Product Logo Style</display-name> <property-name>productLogoStyle</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StylesEditor</editor> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Product Logo Alternate Text</description> <display-name>Product Logo Alt</display-name> <property-name>productLogoAlt</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> <designer-extension> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Product Logo Width, as generated in the img tag</description> <display-name>Product Logo Width</display-name> <property-name>productLogoWidth</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <!-- TODO needs description, and editor with suggestions--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Product Logo Height, as generated in the img tag</description> <display-name>Product Logo Height</display-name> <property-name>productLogoHeight</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <!-- TODO needs description, and editor with suggestions--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Application links in the banner</description> <display-name>Application links</display-name> <property-name>testbannerApplicationLinks</property-name> <property-class>java.util.List</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <collection-property>true</collection-property> <property-item-class>com.ibm.xsp.extlib.tree.ITreeNode</property-item-class> <property-add-method>addBannerApplicationLink</property-add-method> <designer-extension> <!-- TODO needs description--> <exclude-types>test1,test2,test3</exclude-types> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Utility links in the banner</description> <display-name>Utility links</display-name> <property-name>bannerUtilityLinks</property-name> <property-class>java.util.List</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <collection-property>true</collection-property> <property-item-class>com.ibm.xsp.extlib.tree.ITreeNode</property-item-class> <property-add-method>addBannerUtilityLink</property-add-method> <designer-extension> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Indicates if the title bar should be displayed, defaults to true</description> <display-name>Title Bar</display-name> <property-name>titleBar</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> </property-extension> </property> <property> <description>Tabs in the title bar</description> <display-name>Title bar tabs</display-name> <property-name>titleBarTabs</property-name> <property-class>java.util.List</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <collection-property>true</collection-property> <property-item-class>com.ibm.xsp.extlib.tree.ITreeNode</property-item-class> <property-add-method>addTitleBarTab</property-add-method> <designer-extension> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Search bar</description> <display-name>Search Bar</display-name> <property-name>searchBar</property-name> <property-class>com.ibm.xsp.extlib.component.layout.impl.SearchBar</property-class> <property-extension> <designer-extension> <!-- TODO needs description and to explain search bar facet--> <!-- TODO SearchBar complex-type has impl in the package name--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Indicates if the place bar should be displayed, defaults to true</description> <display-name>Place Bar</display-name> <property-name>placeBar</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> <designer-extension> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Place bar name</description> <display-name>Place bar name</display-name> <property-name>placeBarName</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> <designer-extension> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Actions in the place bar, displayed as buttons and drop-down buttons.</description> <display-name>Place bar actions</display-name> <property-name>placeBarActions</property-name> <property-class>java.util.List</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <collection-property>true</collection-property> <property-item-class>com.ibm.xsp.extlib.tree.ITreeNode</property-item-class> <property-add-method>addPlaceBarAction</property-add-method> <designer-extension> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Indicates if the footer should be displayed</description> <display-name>Footer</display-name> <property-name>footer</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> <designer-extension> <!-- TODO needs description, and explain the related facets --> <!-- TODO proposed functional breaking change. At present the footer appears by default, but is empty, with no contents, so its useless and really shouldn't be present. I'd propose that the footer is only shown when the footerLinks property is set to some value. --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Links in the footer</description> <display-name>Footer links</display-name> <property-name>footerLinks</property-name> <property-class>java.util.List</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <collection-property>true</collection-property> <property-item-class>com.ibm.xsp.extlib.tree.ITreeNode</property-item-class> <property-add-method>addFooterLink</property-add-method> <designer-extension> <!-- TODO needs description--> <!-- TODO explain how to get the different footer links into different columns in the footer area --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Indicates if the legal bar should be displayed</description> <display-name>Legal Bar</display-name> <property-name>legal</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> <designer-extension> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Legal Logo</description> <display-name>Legal Logo</display-name> <property-name>legalLogo</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.ImagePicker</editor> <!-- TODO needs description--> <!-- TODO why is there a legal logo?--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Legal Logo Style Class</description> <display-name>Legal Logo Class</display-name> <property-name>legalLogoClass</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StyleClassEditor</editor> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Legal Logo Style</description> <display-name>Legal Logo Style</display-name> <property-name>legalLogoStyle</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StylesEditor</editor> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Legal Logo Alternate Text</description> <display-name>Legal Logo Alt</display-name> <property-name>legalLogoAlt</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> <designer-extension> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Legal Logo Width, as generated in the IMG HTML tag</description> <display-name>Legal Logo Width</display-name> <property-name>legalLogoWidth</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <!-- TODO needs description--> <!-- TODO needs editor--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Legal Logo Height, as generated in the IMG HTML tag</description> <display-name>Legal Logo Height</display-name> <property-name>legalLogoHeight</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <!-- TODO needs description--> <!-- TODO needs editor--> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Legal Text</description> <display-name>Legal Text</display-name> <property-name>legalText</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> <designer-extension> <!-- TODO needs description--> <tags> todo </tags> </designer-extension> </property-extension> </property> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.designer.component.layout.ApplicationConfiguration</base-complex-id> <tag-name>TESTapplicationConfiguration</tag-name> <designer-extension> <tags> todo </tags> </designer-extension> </complex-extension> </complex-type> <complex-type> <description>Search bar configuration</description> <display-name>Search Bar Configuration</display-name> <complex-id>com.ibm.xsp.extlib.designer.component.layout.impl.SearchBar</complex-id> <complex-class>com.ibm.xsp.extlib.component.layout.impl.SearchBar</complex-class> <property> <description>Name of the page used to open the search results</description> <display-name>Page Name</display-name> <property-name>pageName</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.PagePicker</editor> <!-- TODO proposing to make this property required, a breaking change. --> <!-- TODO the renderer isn't encoding the page name as part of the action URL so characters won't be correctly %20 escaped --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <!-- # "search" should not be translated --> <description>Name of the parameter carrying the search value in the URL query. Defaults to "search"</description> <display-name>Query Parameter Name</display-name> <property-name>queryParam</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <!-- TODO give suggestions combo editor? --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Defines the string that will be displayed in the search box in not active</description> <display-name>Inactive Text</display-name> <property-name>inactiveText</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> <designer-extension> <!-- TODO description grammar check --> <!-- TODO verify accessibility of inactiveText--> <!-- TODO verify there is some implicit translated inactive text, and if not, maybe add a useDefaultInactiveText property?--> <!-- TODO Proposed Breaking Change - change the behavior when inactiveText is absent from edit box with no inactive text, to edit box with inactive text "Search..." --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Search options tree</description> <display-name>Search Combo Box Options</display-name> <property-name>options</property-name> <property-class>java.util.List</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <collection-property>true</collection-property> <property-item-class>com.ibm.xsp.extlib.tree.ITreeNode</property-item-class> <property-add-method>addOption</property-add-method> <designer-extension> <!-- TODO needs description--> <!-- TODO what are these intended to be?--> <!-- TODO these are inherently unlocalizable--> <!-- xe:appSearchBar "options" property, current implementation is unlocalizable, Not sure yet what I should propose as the fix, think it should be a compile breaking change because pages using the current mechanism will functionally break when the application is localized, which would require manual testing to find - better to give a compile error. --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Name of the parameter carrying the selected search option in the query portion of the URL</description> <display-name>Options Parameter Name</display-name> <property-name>optionsParam</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <!-- TODO description, what's the difference between the optionsParam and the queryParam --> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>Indicates if the search bar should be rendered. If no value is specified, then it displays only if the current Notes DB is FT indexed.</description> <display-name>Rendered</display-name> <property-name>rendered</property-name> <property-class>boolean</property-class> <property-extension> <designer-extension> <!-- TODO description to technical - explain in english--> <!-- TODO display-name should probably be "Visible"--> <tags> todo </tags> </designer-extension> </property-extension> </property> <complex-extension> <tag-name>TESTappSearchBar</tag-name> <designer-extension> <!-- TODO needs description--> <!-- TODO package contains .impl. --> <tags> todo </tags> </designer-extension> </complex-extension> </complex-type> </faces-config>
XPages
3
jesse-gallagher/XPagesExtensionLibrary
extlib-des/lwp/openntf/design-test/eclipse/plugins/com.ibm.xsp.extlib.designer.tooling.test/src/META-INF/designer-test-library.xsp-config
[ "Apache-2.0" ]
import System import System.Diagnostics class Person: [property(Name)] _name as string def use(p as (Person)): Debug.Assert(5 == len(p)) def run(): for i in range(100000): a = ( Person(Name: "a name"), Person(Name: "a name"), Person(Name: "a name"), Person(Name: "a name"), Person(Name: "a name")) use(a) start = date.Now for i in range(10): run() print("elapsed: ${date.Now-start}")
Boo
2
popcatalin81/boo
performance/ArrayInitializer.boo
[ "BSD-3-Clause" ]
package com.baeldung.copydirectory; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class CoreOld { public static void copyDirectoryJavaUnder7(File source, File destination) throws IOException { if (source.isDirectory()) { copyDirectory(source, destination); } else { copyFile(source, destination); } } private static void copyDirectory(File sourceDirectory, File destinationDirectory) throws IOException { if (!destinationDirectory.exists()) { destinationDirectory.mkdir(); } for (String f : sourceDirectory.list()) { copyDirectoryJavaUnder7(new File(sourceDirectory, f), new File(destinationDirectory, f)); } } private static void copyFile(File sourceFile, File destinationFile) throws IOException { try (InputStream in = new FileInputStream(sourceFile); OutputStream out = new FileOutputStream(destinationFile)) { byte[] buf = new byte[1024]; int length; while ((length = in.read(buf)) > 0) { out.write(buf, 0, length); } } } }
Java
4
DBatOWL/tutorials
core-java-modules/core-java-io-3/src/main/java/com/baeldung/copydirectory/CoreOld.java
[ "MIT" ]
N ← 20 sh ← 2 (3×N) G ← ⍉ sh ⍴((3/N)/0 1 2),(3×N)⍴⍳N G ← ⌈ G ÷ 3 ⎕ ← G ⍝ compress boolean X ← 0 / 1 ⎕ ← X ⍝ --> [0]() X1 ← 1 / 1 ⎕ ← X1 ⍝ --> [1](1) ⍝ replicate booleans Z ← 3 / 1 ⎕ ← Z ⍝ --> [3](1,1,1) Z0 ← ⍬ / ⍬ ⎕ ← Z0 ⍝ --> [0]() ZN ← 3 2 / 1 0 ⎕ ← ZN ⍝ --> [5](1,1,1,0,0) ⍝ replicate doubles Z ← 3 / 2.0 ⎕ ← Z ⍝ --> [3](2.0,2.0,2.0) ZN ← 3 2 / 1.0 0.0 ⎕ ← ZN ⍝ --> [5](1.0,1.0,1.0,0.0,0.0) 0
APL
4
melsman/apltail
tests/repl.apl
[ "MIT" ]
############################################################################## # A for-loop program # ---------------------------------- # This program uses the register to store the loop index. # ############################################################################## # Variables 100 DATA$ONE 1 101 DATA$ACC 0 102 DATA$START 0 103 DATA$END 5 4095 DATA$TERMINATE 0 # Equivalent C code # ------------------- # for (i = 0; i < 5; i++) { # accumulator = 777; # } # Start execution # - sets the start condition i = 0 0 LDM $START 1 STR $ACC # - loads the current i value 2 LDM $ACC 3 ADD $ONE 4 STR $ACC # - check the condition i < 5 5 LDM $END 6 SUB $ACC 7 JMZ $TERMINATE # - if there's anything to do, do it here 8 LDI 777 # - loop! 9 JMP 2
Parrot Assembly
4
coobird/pigeon-vm
asm/for_loop.pasm
[ "MIT" ]
INSERT INTO c VALUES (3, 100), (1000, 10000);
SQL
2
cuishuang/tidb
br/tests/lightning_error_summary/data/error_summary.c.sql
[ "Apache-2.0" ]
#!/usr/bin/env bash export VROOT=$(dirname "${BASH_SOURCE[0]}")/../../ rm $VROOT/infra/control/verify.go sed -i '/VSign/d' $VROOT/go.mod
Shell
3
sjf10050/v2ray-core
release/mutilate/removeVSign.sh
[ "MIT" ]
// Test that the borrow checker considers `#[non_exhaustive]` when checking // whether a match contains a discriminant read. // aux-build:monovariants.rs extern crate monovariants; use monovariants::NonExhaustiveMonovariant; fn main() { let mut x = NonExhaustiveMonovariant::Variant(1); let y = &mut x; match x { //~^ ERROR cannot use `x` because it was mutably borrowed NonExhaustiveMonovariant::Variant(_) => {}, _ => {}, } drop(y); }
Rust
4
mbc-git/rust
src/test/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
#ifndef TEST_INTEROP_CXX_NAMESPACE_INPUTS_SUBMODULE_B_H #define TEST_INTEROP_CXX_NAMESPACE_INPUTS_SUBMODULE_B_H namespace NS1 { namespace NS2 { struct BasicDeepB {}; } // namespace NS2 struct BasicB {}; } // namespace NS1 #endif // TEST_INTEROP_CXX_NAMESPACE_INPUTS_SUBMODULE_B_H
C
4
gandhi56/swift
test/Interop/Cxx/namespace/Inputs/submodule-b.h
[ "Apache-2.0" ]
import "std/test" test.run("Import directory", fn(assert) { try { import '../../testdata/math.ni' } catch e { println("Test Failed: ", e) exit(1) } assert.isTrue(isFunc(math.add)) })
Inform 7
4
lfkeitel/nitrogen
tests/imports/try_import.ni
[ "BSD-3-Clause" ]
#pragma once #include "envoy/common/random_generator.h" #include "envoy/config/cluster/v3/cluster.pb.h" #include "envoy/stats/scope.h" #include "envoy/stats/stats_macros.h" #include "source/common/upstream/thread_aware_lb_impl.h" #include "source/common/upstream/upstream_impl.h" namespace Envoy { namespace Upstream { /** * All Maglev load balancer stats. @see stats_macros.h */ #define ALL_MAGLEV_LOAD_BALANCER_STATS(GAUGE) \ GAUGE(max_entries_per_host, Accumulate) \ GAUGE(min_entries_per_host, Accumulate) /** * Struct definition for all Maglev load balancer stats. @see stats_macros.h */ struct MaglevLoadBalancerStats { ALL_MAGLEV_LOAD_BALANCER_STATS(GENERATE_GAUGE_STRUCT) }; /** * This is an implementation of Maglev consistent hashing as described in: * https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/44824.pdf * section 3.4. Specifically, the algorithm shown in pseudocode listing 1 is implemented with a * fixed table size of 65537. This is the recommended table size in section 5.3. */ class MaglevTable : public ThreadAwareLoadBalancerBase::HashingLoadBalancer, Logger::Loggable<Logger::Id::upstream> { public: MaglevTable(const NormalizedHostWeightVector& normalized_host_weights, double max_normalized_weight, uint64_t table_size, bool use_hostname_for_hashing, MaglevLoadBalancerStats& stats); // ThreadAwareLoadBalancerBase::HashingLoadBalancer HostConstSharedPtr chooseHost(uint64_t hash, uint32_t attempt) const override; // Recommended table size in section 5.3 of the paper. static const uint64_t DefaultTableSize = 65537; private: struct TableBuildEntry { TableBuildEntry(const HostConstSharedPtr& host, uint64_t offset, uint64_t skip, double weight) : host_(host), offset_(offset), skip_(skip), weight_(weight) {} HostConstSharedPtr host_; const uint64_t offset_; const uint64_t skip_; const double weight_; double target_weight_{}; uint64_t next_{}; uint64_t count_{}; }; uint64_t permutation(const TableBuildEntry& entry); const uint64_t table_size_; std::vector<HostConstSharedPtr> table_; MaglevLoadBalancerStats& stats_; }; /** * Thread aware load balancer implementation for Maglev. */ class MaglevLoadBalancer : public ThreadAwareLoadBalancerBase, Logger::Loggable<Logger::Id::upstream> { public: MaglevLoadBalancer( const PrioritySet& priority_set, ClusterStats& stats, Stats::Scope& scope, Runtime::Loader& runtime, Random::RandomGenerator& random, const absl::optional<envoy::config::cluster::v3::Cluster::MaglevLbConfig>& config, const envoy::config::cluster::v3::Cluster::CommonLbConfig& common_config); const MaglevLoadBalancerStats& stats() const { return stats_; } uint64_t tableSize() const { return table_size_; } private: // ThreadAwareLoadBalancerBase HashingLoadBalancerSharedPtr createLoadBalancer(const NormalizedHostWeightVector& normalized_host_weights, double /* min_normalized_weight */, double max_normalized_weight) override { HashingLoadBalancerSharedPtr maglev_lb = std::make_shared<MaglevTable>(normalized_host_weights, max_normalized_weight, table_size_, use_hostname_for_hashing_, stats_); if (hash_balance_factor_ == 0) { return maglev_lb; } return std::make_shared<BoundedLoadHashingLoadBalancer>( maglev_lb, std::move(normalized_host_weights), hash_balance_factor_); } static MaglevLoadBalancerStats generateStats(Stats::Scope& scope); Stats::ScopePtr scope_; MaglevLoadBalancerStats stats_; const uint64_t table_size_; const bool use_hostname_for_hashing_; const uint32_t hash_balance_factor_; }; } // namespace Upstream } // namespace Envoy
C
5
dcillera/envoy
source/common/upstream/maglev_lb.h
[ "Apache-2.0" ]
fn main() { let _ = vec![].into_iter().collect::<usize>; //~^ ERROR attempted to take value of method `collect` on type `std::vec::IntoIter<_>` //~| ERROR field expressions cannot have generic arguments }
Rust
1
Eric-Arellano/rust
src/test/ui/suggestions/method-missing-parentheses.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
//a trivial model whose command has no solution sig S {} fact { 1=2 } run {some S} expect 0
Alloy
3
c-luu/alloy-specs
simple-models/no-solution/trivial.als
[ "Apache-2.0" ]
{{#each themes}} import theme_{{object}} from "./{{file}}"; {{/each}} const themes = { {{#each themes}} "{{name}}": theme_{{object}}{{#unless @last}},{{/unless}} {{/each}} }; export default themes;
Harbour
4
amish-rabbi/18xx-maker
src/data/themes/index.js.hb
[ "MIT" ]
.with-percent { background-color: orange; font-size: 8; } .with-percent GridLayout { margin: 3%; background-color: lightgreen; font-size: 8; } .with-percent StackLayout { border-color: red; border-width: 1; } .with-percent StackLayout * { border-color: blue; border-width: 1; } .with-percent GridLayout { border-color: green; border-width: 1; } .with-percent .test1 { padding: 10%; } .with-percent .test2 { padding: 10%; background-color: lightblue; } .with-percent .test3 { margin: 1% 2% 3% 4%; } .with-percent WrapLayout { orientation: vertical; width: 75%; height: 45% } .with-percent Button { color: black } .without-percent { background-color: orange; font-size: 8; } .without-percent GridLayout { margin:3; background-color: lightgreen; font-size: 8; } .without-percent StackLayout { border-color: red; border-width: 1; } .without-percent StackLayout * { border-color: blue; border-width: 1; } .without-percent GridLayout { border-color: green; border-width: 1; } .without-percent .test1 { padding: 10; } .without-percent .test2 { padding: 10; background-color: lightblue; } .without-percent .test3 { margin: 10 20 30 40; } .without-percent WrapLayout { orientation: vertical; width: 100; height: 120; } .without-percent Button { color: black }
CSS
2
tralves/NativeScript
apps/ui/src/css/margins-paddings-with-percentage-page.css
[ "Apache-2.0" ]
CLASS ltcl_filter_files_to_deser DEFINITION DEFERRED. CLASS ltcl_prio_deserialization DEFINITION DEFERRED. CLASS zcl_abapgit_file_deserialize DEFINITION LOCAL FRIENDS ltcl_filter_files_to_deser. CLASS zcl_abapgit_file_deserialize DEFINITION LOCAL FRIENDS ltcl_prio_deserialization. CLASS ltcl_filter_files_to_deser DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA: mo_objects TYPE REF TO zcl_abapgit_file_deserialize, mt_result TYPE zif_abapgit_definitions=>ty_results_tt. METHODS: setup, filter_duplicates FOR TESTING RAISING cx_static_check, filter_duplicates_rstate FOR TESTING RAISING cx_static_check, filter_duplicates_lstate FOR TESTING RAISING cx_static_check, filter_duplicates_match FOR TESTING RAISING cx_static_check, filter_duplicates_init_objtype FOR TESTING RAISING cx_static_check, filter_duplicates_changes_01 FOR TESTING RAISING cx_static_check, filter_duplicates_changes_02 FOR TESTING RAISING cx_static_check, filter_duplicates_deleted FOR TESTING RAISING cx_static_check, given_result IMPORTING iv_result_line TYPE string, when_filter_is_applied. ENDCLASS. CLASS ltcl_filter_files_to_deser IMPLEMENTATION. METHOD setup. CREATE OBJECT mo_objects. ENDMETHOD. METHOD filter_duplicates. given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;;| ). given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;| ). when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 1 act = lines( mt_result ) ). ENDMETHOD. METHOD filter_duplicates_rstate. DATA: ls_exp LIKE LINE OF mt_result, ls_act LIKE LINE OF mt_result. given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;;| ). given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;A| ). READ TABLE mt_result INDEX 2 INTO ls_exp. when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 1 act = lines( mt_result ) ). READ TABLE mt_result INDEX 1 INTO ls_act. cl_abap_unit_assert=>assert_equals( exp = ls_exp act = ls_act ). ENDMETHOD. METHOD filter_duplicates_lstate. given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;A;| ). given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;A;| ). when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 0 act = lines( mt_result ) ). ENDMETHOD. METHOD filter_duplicates_match. given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;X;;| ). given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;X;;| ). when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 0 act = lines( mt_result ) ). ENDMETHOD. METHOD filter_duplicates_init_objtype. given_result( |;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;;| ). given_result( |;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;| ). when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 0 act = lines( mt_result ) ). ENDMETHOD. METHOD filter_duplicates_changes_01. DATA: ls_exp LIKE LINE OF mt_result, ls_act LIKE LINE OF mt_result. " test different order since SORT object,obj_name is non-deterministic given_result( |CLAS;ZAG_UNIT_TEST;;/src/;zag_unit_test.clas.abap;;;M;M| ). given_result( |CLAS;ZAG_UNIT_TEST;;/src/;zag_unit_test.clas.testclasses.abap;;;;M| ). READ TABLE mt_result INDEX 1 INTO ls_exp. when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 1 act = lines( mt_result ) ). READ TABLE mt_result INDEX 1 INTO ls_act. " expect M,M cl_abap_unit_assert=>assert_equals( exp = ls_exp act = ls_act ). ENDMETHOD. METHOD filter_duplicates_changes_02. DATA: ls_exp LIKE LINE OF mt_result, ls_act LIKE LINE OF mt_result. " test different order since SORT object,obj_name is non-deterministic given_result( |CLAS;ZAG_UNIT_TEST;;/src/;zag_unit_test.clas.abap;;;;M| ). given_result( |CLAS;ZAG_UNIT_TEST;;/src/;zag_unit_test.clas.testclasses.abap;;;M;M| ). READ TABLE mt_result INDEX 2 INTO ls_exp. when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 1 act = lines( mt_result ) ). READ TABLE mt_result INDEX 1 INTO ls_act. " expect M,M cl_abap_unit_assert=>assert_equals( exp = ls_exp act = ls_act ). ENDMETHOD. METHOD filter_duplicates_deleted. given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;D| ). when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 0 act = lines( mt_result ) ). ENDMETHOD. METHOD given_result. DATA: ls_result LIKE LINE OF mt_result. SPLIT iv_result_line AT ';' INTO ls_result-obj_type ls_result-obj_name ls_result-inactive ls_result-path ls_result-filename ls_result-package ls_result-match ls_result-lstate ls_result-rstate. INSERT ls_result INTO TABLE mt_result. ENDMETHOD. METHOD when_filter_is_applied. mt_result = mo_objects->filter_files_to_deserialize( mt_result ). ENDMETHOD. ENDCLASS. CLASS ltcl_prio_deserialization DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: setup, ddls_before_dcls FOR TESTING RAISING cx_static_check, webi_before_sprx FOR TESTING RAISING cx_static_check, iasp_before_iarp FOR TESTING RAISING cx_static_check, iarp_before_iatu FOR TESTING RAISING cx_static_check, prog_before_iaxu FOR TESTING RAISING cx_static_check, iobj_before_odso FOR TESTING RAISING cx_static_check, tobj_before_scp1 FOR TESTING RAISING cx_static_check, otgr_before_char FOR TESTING RAISING cx_static_check, sprx_before_clas FOR TESTING RAISING cx_static_check, sprx_before_intf FOR TESTING RAISING cx_static_check, sprx_before_tabl FOR TESTING RAISING cx_static_check, pinf_before_devc FOR TESTING RAISING cx_static_check, clas_before_pinf FOR TESTING RAISING cx_static_check, enhs_before_ensc FOR TESTING RAISING cx_static_check, ensc_before_enho FOR TESTING RAISING cx_static_check, enho_before_enhc FOR TESTING RAISING cx_static_check, xslt_before_clas FOR TESTING RAISING cx_static_check, xslt_before_prog FOR TESTING RAISING cx_static_check, given IMPORTING iv_object_type TYPE string, when_deser_is_priorized, then IMPORTING iv_exp_object_type TYPE string. DATA: mo_objects TYPE REF TO zcl_abapgit_file_deserialize, mt_input TYPE zif_abapgit_definitions=>ty_results_tt, mt_output TYPE zif_abapgit_definitions=>ty_results_tt, mv_counter TYPE i, mv_exp_output_tabix TYPE i. ENDCLASS. CLASS ltcl_prio_deserialization IMPLEMENTATION. METHOD setup. CREATE OBJECT mo_objects. mv_exp_output_tabix = 0. ENDMETHOD. METHOD enhs_before_ensc. given( 'ENSC' ). given( 'ENHS' ). when_deser_is_priorized( ). then( 'ENHS' ). then( 'ENSC' ). ENDMETHOD. METHOD ensc_before_enho. given( 'ENHO' ). given( 'ENSC' ). when_deser_is_priorized( ). then( 'ENSC' ). then( 'ENHO' ). ENDMETHOD. METHOD enho_before_enhc. given( 'ENHC' ). given( 'ENHO' ). when_deser_is_priorized( ). then( 'ENHO' ). then( 'ENHC' ). ENDMETHOD. METHOD sprx_before_clas. given( 'CLAS' ). given( 'SPRX' ). when_deser_is_priorized( ). then( 'SPRX' ). then( 'CLAS' ). ENDMETHOD. METHOD sprx_before_intf. given( 'INTF' ). given( 'SPRX' ). when_deser_is_priorized( ). then( 'SPRX' ). then( 'INTF' ). ENDMETHOD. METHOD sprx_before_tabl. given( 'TABL' ). given( 'SPRX' ). when_deser_is_priorized( ). then( 'SPRX' ). then( 'TABL' ). ENDMETHOD. METHOD otgr_before_char. given( 'CHAR' ). given( 'OTGR' ). when_deser_is_priorized( ). then( 'OTGR' ). then( 'CHAR' ). ENDMETHOD. METHOD pinf_before_devc. given( 'DEVC' ). given( 'PINF' ). when_deser_is_priorized( ). then( 'PINF' ). then( 'DEVC' ). ENDMETHOD. METHOD tobj_before_scp1. given( 'SCP1' ). given( 'TOBJ' ). when_deser_is_priorized( ). then( 'TOBJ' ). then( 'SCP1' ). ENDMETHOD. METHOD iobj_before_odso. given( 'ODSO' ). given( 'IOBJ' ). when_deser_is_priorized( ). then( 'IOBJ' ). then( 'ODSO' ). ENDMETHOD. METHOD iasp_before_iarp. given( 'IARP' ). given( 'IASP' ). when_deser_is_priorized( ). then( 'IASP' ). then( 'IARP' ). ENDMETHOD. METHOD iarp_before_iatu. given( 'IATU' ). given( 'IARP' ). when_deser_is_priorized( ). then( 'IARP' ). then( 'IATU' ). ENDMETHOD. METHOD prog_before_iaxu. given( 'IAXU' ). given( 'PROG' ). when_deser_is_priorized( ). then( 'PROG' ). then( 'IAXU' ). ENDMETHOD. METHOD webi_before_sprx. given( 'SPRX' ). given( 'WEBI' ). when_deser_is_priorized( ). then( 'WEBI' ). then( 'SPRX' ). ENDMETHOD. METHOD clas_before_pinf. given( 'PINF' ). given( 'CLAS' ). when_deser_is_priorized( ). then( 'CLAS' ). then( 'PINF' ). ENDMETHOD. METHOD xslt_before_clas. given( 'INTF' ). given( 'CLAS' ). given( 'XSLT' ). given( 'INTF' ). given( 'CLAS' ). given( 'XSLT' ). when_deser_is_priorized( ). then( 'XSLT' ). then( 'XSLT' ). then( 'INTF' ). then( 'INTF' ). then( 'CLAS' ). then( 'CLAS' ). ENDMETHOD. METHOD xslt_before_prog. given( 'PROG' ). given( 'XSLT' ). when_deser_is_priorized( ). then( 'XSLT' ). then( 'PROG' ). ENDMETHOD. METHOD ddls_before_dcls. given( 'DCLS' ). given( 'DDLS' ). given( 'DCLS' ). given( 'DDLS' ). when_deser_is_priorized( ). then( 'DDLS' ). then( 'DDLS' ). then( 'DCLS' ). then( 'DCLS' ). ENDMETHOD. METHOD given. DATA ls_input LIKE LINE OF mt_input. ls_input-obj_type = iv_object_type. ls_input-obj_name = mv_counter. INSERT ls_input INTO TABLE mt_input. mv_counter = mv_counter + 1. ENDMETHOD. METHOD when_deser_is_priorized. DATA lo_log TYPE REF TO zcl_abapgit_log. CREATE OBJECT lo_log. mt_output = mo_objects->prioritize_deser( ii_log = lo_log it_results = mt_input ). ENDMETHOD. METHOD then. DATA: ls_output LIKE LINE OF mt_output. mv_exp_output_tabix = mv_exp_output_tabix + 1. READ TABLE mt_output INTO ls_output INDEX mv_exp_output_tabix. cl_abap_unit_assert=>assert_equals( exp = iv_exp_object_type act = ls_output-obj_type ). ENDMETHOD. ENDCLASS.
ABAP
5
gepparta/abapGit
src/objects/core/zcl_abapgit_file_deserialize.clas.testclasses.abap
[ "MIT" ]
unit GildedRoseTests; interface uses DUnitX.TestFramework, GildedRose, Item, System.Generics.Collections; type [TestFixture] TGildedRoseTests = class(TObject) public [Test] procedure UpdateQuality_Never_ChangesTheItemName; end; implementation procedure TGildedRoseTests.UpdateQuality_Never_ChangesTheItemName; var LItems: TObjectList<TItem>; LGildedRose: TGildedRose; begin LItems := TObjectList<TItem>.Create; LItems.Add(TItem.Create('foo', 0, 0)); LGildedRose := TGildedRose.Create(LItems); LGildedRose.UpdateQuality; Assert.AreEqual('fixme', LGildedRose.Items[0].Name); end; initialization TDUnitX.RegisterTestFixture(TGildedRoseTests); end.
Pascal
4
yangyangisyou/GildedRose-Refactoring-Kata
Delphi/GildedRoseTests.pas
[ "MIT" ]
--- title: Date Permalink permalink: "/{{ page.date | date: '%Y/%m/%d' }}/index.html" --- Date Permalinks
Liquid
4
binyamin/eleventy
test/stubs/2016-02-01-permalinkdate.liquid
[ "MIT" ]
@charset "UTF-8"; $myVar: TRANSLATEX(0); $myVar2: RGB(255,255,255); $myVar3: MAROON; $myVar4: HSLA(120,100%,50%,0.3); $myVar5: RGBA(0,0,0,0.5); $myVar6: HSL(120,100%,50%); $myVar7: linear-gradient(to right, RGBA(0,0,0,0.5), RGB(255,255,255)); .class-1 { BACKGROUND: HSL(120, 100%, 50%); BACKGROUND: linear-gradient(to right, $myVar2, RGB(255,255,255)); COLOR: RGB(0, 0, 0); TRANSFORM: TRANSLATE(0,0) TRANSLATEX(0) TRANSLATEY(0) TRANSLATEZ(0) TRANSLATE3D(0,0,0) MATRIX(1,1,1,1); TRANSFORM: TRANSLATE(0,0); TRANSFORM: TRANSLATEX(0); TRANSFORM: TRANSLATEY(0); TRANSFORM: TRANSLATE3D(0,0,0); TRANSFORM: MATRIX(1,1,1,1); transform: translateY(0) $myVar; animation: textAnimation 0.1s; animation: tAnimation 0.1s; } .class-2 { BACKGROUND-COLOR: INDIGO; BACKGROUND: HSLA(120, 100%, 50%, 0.3); COLOR: RGBA(0, 0, 0, 0.5); TRANSFORM: ROTATE(1deg) ROTATEX(1deg) ROTATEY(1deg) ROTATEZ(1deg) ROTATE3D(0,0,1,1deg) SKEW(1deg) SKEWX(1deg) SKEWY(1deg) SCALE(1, 1) SCALEX(1) SCALEY(1); TRANSFORM: ROTATE(1deg); TRANSFORM: ROTATEX(1deg); TRANSFORM: ROTATEY(1deg); TRANSFORM: ROTATEZ(1deg); TRANSFORM: ROTATE3D(0,0,1,1deg); TRANSFORM: SKEW(1deg); TRANSFORM: SKEWX(1deg); TRANSFORM: SKEWY(1deg); TRANSFORM: SCALE(1, 1); TRANSFORM: SCALEX(1); TRANSFORM: SCALEY(1); }
CSS
3
fuelingtheweb/prettier
tests/stylefmt/lowercase/lowercase.css
[ "MIT" ]
MODULE idl_shadow DESCRIPTION Link the new version of shadow to idl VERSION 1.0 SOURCE Niccolo Canestrari BUILD_DATE DECEMBER 2010 FUNCTION GENSOURCEGEOM 1 1 FUNCTION GENSOURCESYNC 1 1 FUNCTION TRACEOE 3 3 PROCEDURE PRINTSOURCE 2 2 PROCEDURE PRINTOE 2 2
IDL
2
XiaoshengLin/shadow3
src/devel/idl/shadow_bind_idl.dlm
[ "MIT" ]
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_CC_TRAINING_COORDINATOR_H_ #define TENSORFLOW_CC_TRAINING_COORDINATOR_H_ #include <atomic> #include <memory> #include <unordered_set> #include <vector> #include "tensorflow/core/framework/cost_graph.pb.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/mutex.h" #include "tensorflow/core/protobuf/config.pb.h" #include "tensorflow/core/protobuf/error_codes.pb.h" namespace tensorflow { /// The abstract interface for runners which must implement the Join and the /// IsRunning function. class RunnerInterface { public: virtual ~RunnerInterface() {} virtual Status Join() = 0; virtual Status ExportCostGraph(CostGraphDef* cost_graph) const { return Status(error::INVALID_ARGUMENT, "No cost model to export."); } /// Returns true iff the runner is running, i.e. if it is trying to populate /// its queue. virtual bool IsRunning() const = 0; }; /// Coordinator class manages the termination of a collection of QueueRunners. /// Without a coordinator, QueueRunners have to be joined in a specific order; /// otherwise the QueueRunner::Join() could sometimes hang. The /// Coordinator::RequestStop() plays the key role which notifies all running /// threads under a coordinator to stop. This function could be called by any /// thread or any client. /// Usage, in the client: /// Coordinator coord; /// std::unique_ptr<QueueRunner> qr(&coord, ...); /// qr.Start(session); /// coord.RegisterRunner(std::move(qr)); /// /// do some work /// TF_CHECK_OK(coord.Join()); /// In each thread of QueueRunner, the coordinator needs to be used as: /// void Run() { /// while (!coord->ShouldStop()) { /// /// do some work /// if (error) { /// coord->RequestStop(); /// coord->ReportStatus(error_status); /// } /// } /// } class Coordinator { public: Coordinator(); /// Constructor with a list of error codes which would not be taken as errors /// in status reporting. Coordinator(const std::vector<error::Code>& clean_stop_errors); /// In the destructor, RequestStop() and Join() would be called. ~Coordinator(); /// Registers a runner, i.e. a unit of running threads which is usually a /// QueueRunner. It takes the ownership of runner to avoid lifecycle-related /// problems. Note, the coordinator would not start these threads; they are /// supposed to be in running state when they are registered here. Status RegisterRunner(std::unique_ptr<RunnerInterface> runner); /// Returns true iff all the registered runners have been stopped. bool AllRunnersStopped(); /// Requests all running threads to stop. Status RequestStop(); /// Returns true if its RequestStop() has been called. bool ShouldStop(); /// Joins all threads, returns OK or the first reported and unexpected status. Status Join(); /// Reports status to the coordinator. This is usually called by threads. void ReportStatus(const Status& status); /// Returns the latest status. Status GetStatus(); /// Returns immediately if the coordinator is stopped or blocks until /// RequestStop() is called. void WaitForStop(); // Returns the cost graph from stored run metadata in registered runners. Status ExportCostGraph(CostGraphDef* cost_graph) const; private: std::unordered_set<int> clean_stop_errors_; condition_variable wait_for_stop_; mutex mu_; bool should_stop_ TF_GUARDED_BY(mu_); mutex status_lock_; Status status_ TF_GUARDED_BY(status_lock_); mutable mutex runners_lock_; std::vector<std::unique_ptr<RunnerInterface>> runners_ TF_GUARDED_BY(runners_lock_); TF_DISALLOW_COPY_AND_ASSIGN(Coordinator); }; } // namespace tensorflow #endif // TENSORFLOW_CC_TRAINING_COORDINATOR_H_
C
5
yage99/tensorflow
tensorflow/cc/training/coordinator.h
[ "Apache-2.0" ]
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24" android:tint="?attr/colorControlNormal"> <path android:fillColor="@android:color/white" android:pathData="M17,5L1,5v11h2c0,1.66 1.34,3 3,3s3,-1.34 3,-3h6c0,1.66 1.34,3 3,3s3,-1.34 3,-3h2v-5l-6,-6zM3,11L3,7h4v4L3,11zM6,17.25c-0.69,0 -1.25,-0.56 -1.25,-1.25s0.56,-1.25 1.25,-1.25 1.25,0.56 1.25,1.25 -0.56,1.25 -1.25,1.25zM13,11L9,11L9,7h4v4zM18,17.25c-0.69,0 -1.25,-0.56 -1.25,-1.25s0.56,-1.25 1.25,-1.25 1.25,0.56 1.25,1.25 -0.56,1.25 -1.25,1.25zM15,11L15,7h1l4,4h-5z"/> </vector>
XML
3
digitalbuddha/androidx
ui/ui-material/icons/generator/raw-icons/sharp/airport_shuttle.xml
[ "Apache-2.0" ]
local helpers = require('test.functional.helpers')(after_each) local lfs = require('lfs') local eq = helpers.eq local clear = helpers.clear local funcs = helpers.funcs local meths = helpers.meths local command = helpers.command local exc_exec = helpers.exc_exec local bufmeths = helpers.bufmeths local winmeths = helpers.winmeths local curbufmeths = helpers.curbufmeths local curwinmeths = helpers.curwinmeths local curtabmeths = helpers.curtabmeths local get_pathsep = helpers.get_pathsep local rmdir = helpers.rmdir local pcall_err = helpers.pcall_err local fname = 'Xtest-functional-eval-buf_functions' local fname2 = fname .. '.2' local dirname = fname .. '.d' before_each(clear) for _, func in ipairs({'bufname(%s)', 'bufnr(%s)', 'bufwinnr(%s)', 'getbufline(%s, 1)', 'getbufvar(%s, "changedtick")', 'setbufvar(%s, "f", 0)'}) do local funcname = func:match('%w+') describe(funcname .. '() function', function() it('errors out when receives v:true/v:false/v:null', function() -- Not compatible with Vim: in Vim it always results in buffer not found -- without any error messages. for _, var in ipairs({'v:true', 'v:false'}) do eq('Vim(call):E5299: Expected a Number or a String, Boolean found', exc_exec('call ' .. func:format(var))) end eq('Vim(call):E5300: Expected a Number or a String', exc_exec('call ' .. func:format('v:null'))) end) it('errors out when receives invalid argument', function() eq('Vim(call):E745: Expected a Number or a String, List found', exc_exec('call ' .. func:format('[]'))) eq('Vim(call):E728: Expected a Number or a String, Dictionary found', exc_exec('call ' .. func:format('{}'))) eq('Vim(call):E805: Expected a Number or a String, Float found', exc_exec('call ' .. func:format('0.0'))) eq('Vim(call):E703: Expected a Number or a String, Funcref found', exc_exec('call ' .. func:format('function("tr")'))) end) end) end describe('bufname() function', function() it('returns empty string when buffer was not found', function() command('file ' .. fname) eq('', funcs.bufname(2)) eq('', funcs.bufname('non-existent-buffer')) eq('', funcs.bufname('#')) command('edit ' .. fname2) eq(2, funcs.bufnr('%')) eq('', funcs.bufname('X')) end) before_each(function() lfs.mkdir(dirname) end) after_each(function() rmdir(dirname) end) it('returns expected buffer name', function() eq('', funcs.bufname('%')) -- Buffer has no name yet command('file ' .. fname) local wd = lfs.currentdir() local sep = get_pathsep() local curdirname = funcs.fnamemodify(wd, ':t') for _, arg in ipairs({'%', 1, 'X', wd}) do eq(fname, funcs.bufname(arg)) meths.set_current_dir('..') eq(curdirname .. sep .. fname, funcs.bufname(arg)) meths.set_current_dir(curdirname) meths.set_current_dir(dirname) eq(wd .. sep .. fname, funcs.bufname(arg)) meths.set_current_dir('..') eq(fname, funcs.bufname(arg)) command('enew') end eq('', funcs.bufname('%')) eq('', funcs.bufname('$')) eq(2, funcs.bufnr('%')) end) end) describe('bufnr() function', function() it('returns -1 when buffer was not found', function() command('file ' .. fname) eq(-1, funcs.bufnr(2)) eq(-1, funcs.bufnr('non-existent-buffer')) eq(-1, funcs.bufnr('#')) command('edit ' .. fname2) eq(2, funcs.bufnr('%')) eq(-1, funcs.bufnr('X')) end) it('returns expected buffer number', function() eq(1, funcs.bufnr('%')) command('file ' .. fname) local wd = lfs.currentdir() local curdirname = funcs.fnamemodify(wd, ':t') eq(1, funcs.bufnr(fname)) eq(1, funcs.bufnr(wd)) eq(1, funcs.bufnr(curdirname)) eq(1, funcs.bufnr('X')) end) it('returns number of last buffer with "$"', function() eq(1, funcs.bufnr('$')) command('new') eq(2, funcs.bufnr('$')) command('new') eq(3, funcs.bufnr('$')) command('only') eq(3, funcs.bufnr('$')) eq(3, funcs.bufnr('%')) command('buffer 1') eq(3, funcs.bufnr('$')) eq(1, funcs.bufnr('%')) command('bwipeout 2') eq(3, funcs.bufnr('$')) eq(1, funcs.bufnr('%')) command('bwipeout 3') eq(1, funcs.bufnr('$')) eq(1, funcs.bufnr('%')) command('new') eq(4, funcs.bufnr('$')) end) end) describe('bufwinnr() function', function() it('returns -1 when buffer was not found', function() command('file ' .. fname) eq(-1, funcs.bufwinnr(2)) eq(-1, funcs.bufwinnr('non-existent-buffer')) eq(-1, funcs.bufwinnr('#')) command('split ' .. fname2) -- It would be OK if there was one window eq(2, funcs.bufnr('%')) eq(-1, funcs.bufwinnr('X')) end) before_each(function() lfs.mkdir(dirname) end) after_each(function() rmdir(dirname) end) it('returns expected window number', function() eq(1, funcs.bufwinnr('%')) command('file ' .. fname) command('vsplit') command('split ' .. fname2) eq(2, funcs.bufwinnr(fname)) eq(1, funcs.bufwinnr(fname2)) eq(-1, funcs.bufwinnr(fname:sub(1, #fname - 1))) meths.set_current_dir(dirname) eq(2, funcs.bufwinnr(fname)) eq(1, funcs.bufwinnr(fname2)) eq(-1, funcs.bufwinnr(fname:sub(1, #fname - 1))) eq(1, funcs.bufwinnr('%')) eq(2, funcs.bufwinnr(1)) eq(1, funcs.bufwinnr(2)) eq(-1, funcs.bufwinnr(3)) eq(1, funcs.bufwinnr('$')) end) end) describe('getbufline() function', function() it('returns empty list when buffer was not found', function() command('file ' .. fname) eq({}, funcs.getbufline(2, 1)) eq({}, funcs.getbufline('non-existent-buffer', 1)) eq({}, funcs.getbufline('#', 1)) command('edit ' .. fname2) eq(2, funcs.bufnr('%')) eq({}, funcs.getbufline('X', 1)) end) it('returns empty list when range is invalid', function() eq({}, funcs.getbufline(1, 0)) curbufmeths.set_lines(0, 1, false, {'foo', 'bar', 'baz'}) eq({}, funcs.getbufline(1, 2, 1)) eq({}, funcs.getbufline(1, -10, -20)) eq({}, funcs.getbufline(1, -2, -1)) eq({}, funcs.getbufline(1, -1, 9999)) end) it('returns expected lines', function() meths.set_option('hidden', true) command('file ' .. fname) curbufmeths.set_lines(0, 1, false, {'foo\0', '\0bar', 'baz'}) command('edit ' .. fname2) curbufmeths.set_lines(0, 1, false, {'abc\0', '\0def', 'ghi'}) eq({'foo\n', '\nbar', 'baz'}, funcs.getbufline(1, 1, 9999)) eq({'abc\n', '\ndef', 'ghi'}, funcs.getbufline(2, 1, 9999)) eq({'foo\n', '\nbar', 'baz'}, funcs.getbufline(1, 1, '$')) eq({'baz'}, funcs.getbufline(1, '$', '$')) eq({'baz'}, funcs.getbufline(1, '$', 9999)) end) end) describe('getbufvar() function', function() it('returns empty list when buffer was not found', function() command('file ' .. fname) eq('', funcs.getbufvar(2, '&autoindent')) eq('', funcs.getbufvar('non-existent-buffer', '&autoindent')) eq('', funcs.getbufvar('#', '&autoindent')) command('edit ' .. fname2) eq(2, funcs.bufnr('%')) eq('', funcs.getbufvar('X', '&autoindent')) end) it('returns empty list when variable/option/etc was not found', function() command('file ' .. fname) eq('', funcs.getbufvar(1, '&autondent')) eq('', funcs.getbufvar(1, 'changedtic')) end) it('returns expected option value', function() eq(0, funcs.getbufvar(1, '&autoindent')) eq(0, funcs.getbufvar(1, '&l:autoindent')) eq(0, funcs.getbufvar(1, '&g:autoindent')) -- Also works with global-only options eq(1, funcs.getbufvar(1, '&hidden')) eq(1, funcs.getbufvar(1, '&l:hidden')) eq(1, funcs.getbufvar(1, '&g:hidden')) -- Also works with window-local options eq(0, funcs.getbufvar(1, '&number')) eq(0, funcs.getbufvar(1, '&l:number')) eq(0, funcs.getbufvar(1, '&g:number')) command('new') -- But with window-local options it probably does not what you expect command("setl number") -- (note that current window’s buffer is 2, but getbufvar() receives 1) eq({id=2}, curwinmeths.get_buf()) eq(1, funcs.getbufvar(1, '&number')) eq(1, funcs.getbufvar(1, '&l:number')) -- You can get global value though, if you find this useful. eq(0, funcs.getbufvar(1, '&g:number')) end) it('returns expected variable value', function() eq(2, funcs.getbufvar(1, 'changedtick')) curbufmeths.set_lines(0, 1, false, {'abc\0', '\0def', 'ghi'}) eq(3, funcs.getbufvar(1, 'changedtick')) curbufmeths.set_var('test', true) eq(true, funcs.getbufvar(1, 'test')) eq({test=true, changedtick=3}, funcs.getbufvar(1, '')) command('new') eq(3, funcs.getbufvar(1, 'changedtick')) eq(true, funcs.getbufvar(1, 'test')) eq({test=true, changedtick=3}, funcs.getbufvar(1, '')) end) end) describe('setbufvar() function', function() it('throws the error or ignores the input when buffer was not found', function() command('file ' .. fname) eq(0, exc_exec('call setbufvar(2, "&autoindent", 0)')) eq('Vim(call):E94: No matching buffer for non-existent-buffer', exc_exec('call setbufvar("non-existent-buffer", "&autoindent", 0)')) eq(0, exc_exec('call setbufvar("#", "&autoindent", 0)')) command('edit ' .. fname2) eq(2, funcs.bufnr('%')) eq('Vim(call):E93: More than one match for X', exc_exec('call setbufvar("X", "&autoindent", 0)')) end) it('may set options, including window-local and global values', function() local buf1 = meths.get_current_buf() eq(false, curwinmeths.get_option('number')) command('split') command('new') eq(2, bufmeths.get_number(curwinmeths.get_buf())) funcs.setbufvar(1, '&number', true) local windows = curtabmeths.list_wins() eq(false, winmeths.get_option(windows[1], 'number')) eq(true, winmeths.get_option(windows[2], 'number')) eq(false, winmeths.get_option(windows[3], 'number')) eq(false, winmeths.get_option(meths.get_current_win(), 'number')) eq(true, meths.get_option('hidden')) funcs.setbufvar(1, '&hidden', 0) eq(false, meths.get_option('hidden')) eq(false, bufmeths.get_option(buf1, 'autoindent')) funcs.setbufvar(1, '&autoindent', true) eq(true, bufmeths.get_option(buf1, 'autoindent')) eq('Vim(call):E355: Unknown option: xxx', exc_exec('call setbufvar(1, "&xxx", 0)')) end) it('may set variables', function() local buf1 = meths.get_current_buf() command('split') command('new') eq(2, curbufmeths.get_number()) funcs.setbufvar(1, 'number', true) eq(true, bufmeths.get_var(buf1, 'number')) eq('Vim(call):E461: Illegal variable name: b:', exc_exec('call setbufvar(1, "", 0)')) eq(true, bufmeths.get_var(buf1, 'number')) eq('Vim:E46: Cannot change read-only variable "b:changedtick"', pcall_err(funcs.setbufvar, 1, 'changedtick', true)) eq(2, funcs.getbufvar(1, 'changedtick')) end) end)
Lua
5
uga-rosa/neovim
test/functional/vimscript/buf_functions_spec.lua
[ "Vim" ]
module audiostreamerscrobbler.factories.RequestFactory import audiostreamerscrobbler.maintypes.AppMetadata import audiostreamerscrobbler.utils.RequestUtils import gololang.JSON import java.io.{BufferedReader, InputStreamReader, IOException} import java.util.stream.Collectors let USER_AGENT = _createUserAgent() let DEFAULT_TIMEOUT_SECONDS = 10 let DEFAULT_ENCODING = "utf-8" local function _createUserAgent = { let appMetadata = getAppMetaData() return appMetadata: appName() + "/" + appMetadata: appVersion() } function createHttpRequestFactory = -> createHttpRequestFactory(DEFAULT_ENCODING, DEFAULT_TIMEOUT_SECONDS, map[]) function createHttpRequestFactory = |encoding, timeout| -> createHttpRequestFactory(encoding, timeout, map[]) function createHttpRequestFactory = |encoding, timeout, customProperties| { let httpRequestFactory = DynamicObject("HttpRequestFactory"): define("encoding", encoding): define("timeout", timeout): define("customProperties", customProperties): define("createHttpRequest", |this| -> createHttpRequest(this: encoding(), this: timeout(), this: customProperties())) return httpRequestFactory } local function createGetProperties = |accept, encoding, customProperties| { let properties = map[["Accept", accept], ["Accept-Charset", encoding], ["Cache-Control", "no-cache"], ["User-Agent", USER_AGENT]] customProperties: entrySet(): each(|e| -> properties: put(e: key(), e: value())) return properties } local function createPostProperties = |accept, encoding, contentType, customProperties| { let properties = map[["Accept", accept], ["Accept-Charset", encoding], ["Cache-Control", "no-cache"], ["Content-Type", contentType], ["User-Agent", USER_AGENT]] customProperties: entrySet(): each(|e| -> properties: put(e: key(), e: value())) return properties } local function createHttpRequest = |encoding, timeout, customProperties| { let httpRequest = DynamicObject("HttpRequest"): define("_timeout", timeout): define("_encoding", encoding): define("_customProperties", customProperties): define("doHttpGetRequestAndReturnJSON", |this, url| -> doHttpGetRequestAndReturnJSON(url, this: _encoding(), this: _timeout(), this: _customProperties())): define("doHttpPostRequestAndReturnJSON", |this, url, contentType, outputCallback| -> doHttpPostRequestAndReturnJSON(url, this: _encoding(), this: _timeout(), outputCallback, contentType, this: _customProperties())): define("doHttpGetRequestAndReturnAsText", |this, url| -> doHttpGetRequestAndReturnAsText(url, this: _encoding(), this: _timeout(), createGetProperties("text/plain", this: _encoding(), this: _customProperties()))): define("doHttpPostRequestAndReturnAsText", |this, url, outputCallback, contentType| -> doHttpPostRequestAndReturnAsText(url, this: _encoding(), createPostProperties("text/plain", this: _encoding(), contentType, this: _customProperties()), this: _timeout(), outputCallback)): define("doHttpGetRequest", |this, url, accept, inputHandler | -> doHttpGetRequest(url, this: _timeout(), createGetProperties(accept, this: _encoding(), this: _customProperties()), inputHandler)): define("doHttpPostRequest", |this, url, accept, contentType, outputHandler, inputHandler | -> doHttpPostRequest(url, this: _timeout(), createPostProperties(accept, this: _encoding(), contentType, this: _customProperties()), outputHandler, inputHandler)) return httpRequest } # GET local function doHttpGetRequestAndReturnJSON = |url, encoding, timeout, customProperties| { let jsonString = doHttpGetRequestAndReturnAsText(url, encoding, timeout, createGetProperties("application/json", encoding, customProperties)) return JSON.parse(jsonString) } local function doHttpGetRequestAndReturnAsText = |url, encoding, timeout, requestPropertiesHandler| { return doHttpGetRequest(url, timeout, requestPropertiesHandler, |i| { let reader = BufferedReader(InputStreamReader(i, encoding)) return reader: lines(): collect(Collectors.joining("\n")) }) } # POST local function doHttpPostRequestAndReturnJSON = |url, encoding, timeout, outputStreamHandlerCallback, contentType, customProperties| { let jsonString = doHttpPostRequestAndReturnAsText(url, encoding, createPostProperties("application/json", encoding, contentType, customProperties), timeout, outputStreamHandlerCallback) return JSON.parse(jsonString) } local function doHttpPostRequestAndReturnAsText = |url, encoding, requestPropertiesHandler, timeout, outputStreamHandlerCallback| { return doHttpPostRequest(url, timeout, requestPropertiesHandler, outputStreamHandlerCallback, |i| { let reader = BufferedReader(InputStreamReader(i, encoding)) return reader: lines(): collect(Collectors.joining("\n")) }) }
Golo
4
vvdleun/audiostreamerscrobbler
src/main/golo/include/factories/RequestFactory.golo
[ "MIT" ]
/++ Auto-generated Linux syscall constants +/ module mir.linux._asm.unistd; version(LDC) pragma(LDC_no_moduleinfo); version (X86) public import mir.linux.arch.x86.uapi._asm.unistd; else version (X86_64) public import mir.linux.arch.x86_64.uapi._asm.unistd; else version (ARM) public import mir.linux.arch.arm.uapi._asm.unistd; else version (AArch64) public import mir.linux.arch.aarch64.uapi._asm.unistd; else version (SPARC) public import mir.linux.arch.sparc.uapi._asm.unistd; else version (SPARC64) public import mir.linux.arch.sparc64.uapi._asm.unistd; else version (Alpha) public import mir.linux.arch.alpha.uapi._asm.unistd; else version (IA64) public import mir.linux.arch.ia64.uapi._asm.unistd; else version (PPC) public import mir.linux.arch.ppc.uapi._asm.unistd; else version (PPC64) public import mir.linux.arch.ppc64.uapi._asm.unistd; else version (SH) public import mir.linux.arch.sh.uapi._asm.unistd; else version (S390) public import mir.linux.arch.s390.uapi._asm.unistd; else version (SystemZ) public import mir.linux.arch.systemz.uapi._asm.unistd; else version (HPPA) public import mir.linux.arch.hppa.uapi._asm.unistd; else version (HPPA64) public import mir.linux.arch.hppa64.uapi._asm.unistd; else version (MIPS_O32) public import mir.linux.arch.mips_o32.uapi._asm.unistd; else version (MIPS_N32) public import mir.linux.arch.mips_n32.uapi._asm.unistd; else version (MIPS64) public import mir.linux.arch.mips64.uapi._asm.unistd; else version (RISCV32) public import mir.linux.arch.riscv32.uapi._asm.unistd; else version (RISCV64) public import mir.linux.arch.riscv64.uapi._asm.unistd; else pragma(msg, "Linux syscall constants not known for target architecture!");
D
3
libmir/mir-linux-kernel
source/mir/linux/_asm/unistd.di
[ "BSL-1.0" ]
@charset "utf-8"; #container { width: 100%; } #logo { background-image: url(../images/sml_logo.png); height: auto; margin-left: auto; margin-right: auto; width: 270px; } nav { padding-top: 100px; } nav ul { font-size: 24px; } nav ul a { padding-right: 0; width: 97%; } nav ul li { float: none; } nav ul li:hover { margin-top: 0; } #maincontent { margin-top: 0; padding: 0; } #vision { background-image: none; font-size: 16px; height: auto; line-height: normal; padding-top: 0; width: 280px; } /* Uncomment the declarations in the following rules to hide the images in the pods. */ .pod { width: 305px; /*padding-bottom:0;*/ } /*.pod h1 { margin-bottom:0; }*/ .podContent { width: 302px; height: 180px; /*display:none;*/ } /*#news .podContent { display:block; }*/ footer p { margin-left: 5px; } #facebookTwitter { margin-right: 5px; }
CSS
4
ravitejavalluri/brackets
test/smokes/server-tests/css/phone.css
[ "MIT" ]
# Settings OPTION SYSOUT=OFF SOLPRINT=OFF LIMROW=0 LIMCOL=0 DECIMALS=6 PROFILE = 1 PROFILETOL = 0.05 ; # Lav funktion til at sætte lower bounds for variable $FUNCTION zero_bound({group}): $LOOP {group}: {name}.lo{sets}$({conditions} and {name}.up{sets} <> {name}.lo{sets}) = 0; $ENDLOOP $ENDFUNCTION # ====================================================================================================================== # MINI REFORM MODEL # ====================================================================================================================== # Definer sets Sets j "Input" / s1 "Sektor 1" s2 "Sektor 2" s3 "Sektor 3" s4 "Sektor 4" s5 "Sektor 5" / ; alias(j, i); # Definer gruppe med endogene variable $GROUP G_Endo L[j] "Input af arbejdskraft i sektor j" Y[j] "produktion i sektor j" pY[j] "pris på output fra sektor j" pM[j] "pris på materialeinput til sektor j" M[j] "materialeinput i sektor j" x[i,j] "materialeinput fra sektor i til sektor j" C[j] "Efterspørgsel efter sektor j gode" YD "Disponibel indkomst" w "Løn" ; $GROUP G_Exo mu_YL[j] "Andelsparameter" mu_YM[j] "Andelsparameter" mu_x[i,j] "Andelsparameter" fgamma[j] "Andelsparameter" fprod[j] "Produktivitet i sektor j" eY[j] "Substitutionselasticitet mellem M og L" eC[j] "Substitutionselasticitet for forskellige goder" eM[j] "Substitutionselasticitet for materialeinput" pC "Forbrugerprisindeks" N "Antal personer" ; # ====================================================================================================================== # MODEL LIGNINGER # ====================================================================================================================== $BLOCK Mini_Reform # Virksomhedsefterspørgsel E_L[j].. fprod[j] * L[j] =E= mu_YL[j] * (w / (fprod[j] * pY[j]))**(-eY[j]) * Y[j] ; E_M[j].. M[j] =E= mu_YM[j] * (pM[j] / pY[j])**(-eY[j]) * Y[j] ; # materiale aggregat E_x[i,j].. x[i,j] =E= mu_x[i,j] * (pY[i] / pM[j])**(-eM[j]) * M[j] ; E_pM[j].. pM[j] * M[j] =E= sum(i,x[i,j] * pY[i]) ; # Nul Profit E_pY[j].. pY[j] * Y[j] =E= pM[j] * M[j] + w * L[j] ; # Efterspørgsel E_C[j].. C[j] =E= fgamma[j] * (pY[j] / pC)**(-eC[j]) * YD / pC ; E_w.. YD =E= sum(j, pY[j] * C[j]) ; # Indkomst E_YD.. YD =E= w * N; # Ligevægt E_Y[j].. Y[j] =E= sum(i, x[i,j]) + C[j] ; $ENDBLOCK # ====================================================================================================================== # DATA OG INITIAL VÆRDIER # ====================================================================================================================== # Sæt først initial værdier for endogene variable (1 i udgangspunktet). $LOOP ALL: {name}.l{sets}${conditions} = 1; $EndLoop # Eksogene variable / parametre som ikke kalibreres fprod.l[j] = 1; eY.l[j] = 0.7; eC.l[j] = 0.5; eM.l[j] = 0.5; pC.l = 1; # Data # Hent data fra IO tabel $IMPORT IOdata4_2a.gms # Sæt x[i,j] lig flows fra IO tabel. $FOR1 {I} in ['s1', 's2', 's3', 's4', 's5']: $FOR2 {X} in ['s1', 's2', 's3', 's4', 's5']: x.l['{X}','{I}'] = IO['{X}','{I}'] ; $ENDFOR2 $ENDFOR1 # Sæt privat forbrug og lønsum til IO data. $FOR1 {X} in ['s1', 's2', 's3', 's4', 's5']: C.l['{X}'] = IO['{X}','PF'] ; L.l['{X}'] = IO['lon','{X}'] ; # Lønnen er 1 i grundforløb, så total løn udbetaling er blot lig arbejdskraft. $ENDFOR1 # Udbud af arbejdskraft N skal være lig aggregeret input af arbejdskraft fra IO N.l = sum(j,L.l[j]) ; # intial værdier for bestemte variable w.l = 1; YD.l = w.l * N.l; # ====================================================================================================================== # Kalibrering # ====================================================================================================================== # Variable der er endogene under kalibreringen. $GROUP G_Kalib G_Endo mu_YL[j], -L[j]$(not j.last) # E_gamma mu_YM[j] # E_mu mu_x[i,j], -x[i,j] fgamma[j], -C[j] ; # Kalibreringsligninger $BLOCK Mini_Reform_kalib E_mu[j].. mu_YL[j] + mu_YM[j] =E= 1; E_gamma.. sum(j,fgamma[j]) =E= 1; $ENDBLOCK $MODEL MR_Model_kalib Mini_Reform Mini_Reform_kalib ; # Løs kalibreringsmodellen $FIX All; $UNFIX G_Kalib; @zero_bound(G_Kalib) solve MR_Model_kalib using CNS; # Gem løsning # execute_unloaddi 'Output\kalib'; # ====================================================================================================================== # Løs Model # ====================================================================================================================== # Løs nu faktisk model $MODEL MR_Model Mini_Reform ; $FIX All; $UNFIX G_Endo; @zero_bound(G_Endo) solve MR_Model using CNS; $DISPLAY G_Endo ; # Gem løsning execute_unloaddi 'Output\model_Loesning'; # ====================================================================================================================== # Stød # ====================================================================================================================== # Stød 1 # 10 pct. stigning i sektor 1 og 2's produktivitet. # fprod.l['s1']= fprod.l['s1'] * 1.1 ; # fprod.l['s2']= fprod.l['s2'] * 1.1 ; # $FIX All; $UNFIX G_Endo; # @zero_bound(G_Endo) # solve MR_Model using CNS; # execute_unloaddi 'Output\stod1'; # ====================================================================================================================== # Stød 2 # Forbrugselasticiteten er nu 2. Lad nu igen produktiviteten i sektor 1 og 2 stige med 10 pct. # Rekalibrer først. # eC.l[j] = 2; # $FIX All; $UNFIX G_Kalib; # @zero_bound(G_Kalib) # solve MR_Model_kalib using CNS; # # Stød til modellen # fprod.l['s1']= fprod.l['s1'] * 1.1 ; # fprod.l['s2']= fprod.l['s2'] * 1.1 ; # $FIX All; $UNFIX G_Endo; # @zero_bound(G_Endo) # solve MR_Model using CNS; # execute_unloaddi 'stod2'; # ====================================================================================================================== # Stød 3 # Produktiviteten i sektor 2 falder med 10 pct. Hvor meget skal produktiviteten i sektor 1 stige for at generere en lønstigning på 3 pct.? # fprod.l['s2']= fprod.l['s2'] * 0.9 ; # $BLOCK Stod_ligning # E_w_stod.. w =E= 1.03 * w.l ; # $ENDBLOCK # $MODEL MR_Model_stod # Mini_Reform # Stod_ligning # ; # $FIX All; $UNFIX G_Endo, fprod$(j.first) ; # @zero_bound(G_Endo) # solve MR_Model_stod using CNS; # execute_unloaddi 'Output\stod3';
GAMS
4
gemal/MAKRO
gamY/Exercises/Exercise_1_solution.gms
[ "MIT" ]
--- outer_slim: true --- = wrap_layout :master_slim do h2 I am Outer == yield
Slim
4
stevenosloan/middleman
middleman-core/fixtures/nested-layout-app/source/layouts/outer_slim.slim
[ "MIT" ]
<svg viewBox="0 0 16 16" class="svg octicon-north-star" width="16" height="16" aria-hidden="true"><path d="M8.5.75a.75.75 0 0 0-1.5 0v5.19L4.391 3.33a.75.75 0 1 0-1.06 1.061L5.939 7H.75a.75.75 0 0 0 0 1.5h5.19l-2.61 2.609a.75.75 0 1 0 1.061 1.06L7 9.561v5.189a.75.75 0 0 0 1.5 0V9.56l2.609 2.61a.75.75 0 1 0 1.06-1.061L9.561 8.5h5.189a.75.75 0 0 0 0-1.5H9.56l2.61-2.609a.75.75 0 0 0-1.061-1.06L8.5 5.939V.75z"/></svg>
SVG
1
ansky/gitea
public/img/svg/octicon-north-star.svg
[ "MIT" ]
/****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *****************************************************************************/ #pragma once #include <functional> #include <string> #include <unordered_map> #include <vector> namespace apollo { namespace localization { namespace msf { /** * @class CyberRecordReader * @brief Read messages from cyber record. */ class CyberRecordReader { public: CyberRecordReader(); ~CyberRecordReader(); void Subscribe(const std::string& topic, const std::function<void(const std::string&)> call_back); void Read(const std::string& file_name); void Read(const std::vector<std::string> &file_names); private: std::vector<std::string> topics_; std::unordered_map<std::string, std::function<void(const std::string&)>> call_back_map_; }; } // namespace msf } // namespace localization } // namespace apollo
C
4
jzjonah/apollo
modules/localization/msf/local_tool/data_extraction/cyber_record_reader.h
[ "Apache-2.0" ]
(ns promitto.test.when (:require [chai :refer [expect]] [promitto.lib.deferred :refer [when deferred resolved]])) (defn ^:private resolve-defer [] (let [defer (deferred)] (set-timeout (fn [] (.resolve defer 2)) 50) (.-promise defer))) (describe :when (fn [] (it "should wrap a unresolved promise" (fn [done] (.then (when (resolve-defer)) (fn [data] (.to.be.equal (expect data) 2) (done))))) (it "should wrap a valid resolved promise" (fn [done] (.then (when (resolved 1)) (fn [data] (.to.be.equal (expect data) 1) (done))))) (it "should wrap a non-promise object as resolved" (fn [done] (.then (when {} 1) (fn [data] (.to.be.equal (expect data) 1) (done)) (fn [reason] (done :invalid)))))))
wisp
4
h2non/promitto
test/when.wisp
[ "MIT" ]
<div aria-hidden="true" class="border rounded-1 flex-shrink-0 bg-gray px-1 loooooooooooooooooooooooong"> </div>
HTML
0
toplenboren/prettier
tests/html/attributes/class-print-width-edge.html
[ "MIT" ]
#!/bin/bash # This script is meant to be called by the "after_success" step # defined in ".travis.yml". In particular, we upload the wheels # of the ARM64 architecture for the continuous deployment jobs. set -e # The wheels cannot be uploaded on PRs if [[ $BUILD_WHEEL == true && $TRAVIS_EVENT_TYPE != pull_request ]]; then # Nightly upload token and staging upload token are set in # Travis settings (originally generated at Anaconda cloud) if [[ $TRAVIS_EVENT_TYPE == cron ]]; then ANACONDA_ORG="scipy-wheels-nightly" ANACONDA_TOKEN="$SCIKIT_LEARN_NIGHTLY_UPLOAD_TOKEN" else ANACONDA_ORG="scikit-learn-wheels-staging" ANACONDA_TOKEN="$SCIKIT_LEARN_STAGING_UPLOAD_TOKEN" fi MINICONDA_URL="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh" wget $MINICONDA_URL -O miniconda.sh MINICONDA_PATH=$HOME/miniconda chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH # Install Python 3.8 because of a bug with Python 3.9 export PATH=$MINICONDA_PATH/bin:$PATH conda create -n upload -y python=3.8 source activate upload conda install -y anaconda-client # Force a replacement if the remote file already exists anaconda -t $ANACONDA_TOKEN upload --force -u $ANACONDA_ORG wheelhouse/*.whl echo "Index: https://pypi.anaconda.org/$ANACONDA_ORG/simple" fi
Shell
4
emarkou/scikit-learn
build_tools/travis/after_success.sh
[ "BSD-3-Clause" ]
# This module defines how the compilation environment object behaves. These # are the ones being passed around to macros and other functions involved in # compilation. Environment objects most importantly store the macro table of a # compilation scope. { keys, concat-map, unfoldr, map, reverse, fold } = require \prelude-ls es-generate = require \escodegen .generate _ compile = require \./compile # Recursively search a macro table and its parents for a macro with a given # name. Returns `null` if unsuccessful; a macro representing the function if # successful. find-macro = (macro-table, name) -> switch macro-table.contents[name] | null => null # deliberately masks parent; fail | undefined => # not defined at this level if macro-table.parent find-macro macro-table.parent, name # ask parent else return null # no parent to ask; fail | otherwise => that # defined at this level; succeed flatten-macro-table = (table) -> table |> unfoldr -> [ it, it.parent ] if it # get chain of nested macro tables |> map (.contents) # get their contents |> reverse # they're backwards, so reverse |> fold (<<<), {} # import each from oldest to newest |> -> # wrap as expected parent : contents : it parent : null contents : {} clone-array = (.slice 0) find-root = ({parent}:macro-table) -> | parent => find-root that | _ => macro-table class env (root-table=null, options={}) ~> @macro-table = contents : {} parent : root-table @root-table = root-table @filename = options.filename || null # The import-target-macro-tables argument is for the situation when a macro # returns another macro. In such a case, the returned macro should be # added to the tables specified (the scope the macro that created it was # in, as well as the scope of other statements during that compile) not to # the table representing the scope of the outer macro's contents. # # If that's confusing, take a few deep breaths and read it again. Welcome # to the blissful land of Lisp, where everything is recursive somehow. @import-target-macro-tables = options.import-target-macro-tables atom : (value) -> { type : \atom, value : value.to-string! } string : (value) -> { type : \string, value } list : (...values) -> { type : \list, values } compile : ~> # compile to estree compile this, it compile-to-quote : ~> # compile to estree that produces this AST node compile.to-self-producer this, it compile-many : ~> it |> concat-map @compile |> (.filter (?)) compile-to-js : -> es-generate it evaluate : ~> ast = it |> @compile js = ast |> @compile-to-js if ast.type is \ObjectExpression js |> (-> "(#it)") |> eval else js |> eval # # Because object expressions generated by escodegen (e.g. "{ a: 1 }") are # liable to be read by `eval` as block statements ("{}") containing a # labelled ("a:") literal ("1"), we guard against that here with the # [classic trick][1] of first wrapping object expressions in parentheses # before evaluating them. # # [1]: http://stackoverflow.com/questions/3360356 # # - - - # # With everything else, we just straight-up eval. This needs to stay the # default case because we also want to be able to evaluate statements. # # Always wrapping everything in parentheses before eval would only work # for expressions. For statements, it's nonsensical. For example, # # (if (a) {}) # # gives "SyntaxError: Unexpected token if". # derive : ~> # Create a derived environment with this one as its parent. This # implements macro scope; macros defined in the new environment aren't # visible in the outer one. env @macro-table, { @import-target-macro-tables, @filename } derive-flattened : ~> # This method creates a derived environment with its macro table # "flattened" to keep a safe local copy of the current compilation # environment. This preserves lexical scoping. # To expand a bit more on that: This fixes situations where a macro, which # the now-defined macro uses, is redefined later. The redefinition should # not affect this macro's behaviour, so we have to hold on to a copy of the # environment as it was when we defined this. flattened-macro-table = flatten-macro-table @macro-table # Use the previously stored macro scope table-to-read-from = flattened-macro-table # Import macros both into the outer scope... tables-to-import-into = if @import-target-macro-tables then clone-array that else [ @macro-table ] # ... and the current compilation's scope tables-to-import-into ..push flattened-macro-table env do table-to-read-from { import-target-macro-tables : tables-to-import-into @filename } derive-root : ~> root-table = find-root @macro-table import-targets = (@import-target-macro-tables || [ @macro-table ]) env do root-table { import-target-macro-tables : import-targets } find-macro : (name) ~> find-macro @macro-table, name import-macro : (name, func) ~> # The func argument can also be null in order to mask the macro of the # given name in this scope. This works because the `find-macro` operation # will quit when it finds a null in the macro table, returning the result # that such a macro was not found. # If the import target macro table is available, import the macro to that. # Otherwise, import it to the usual table. if @import-target-macro-tables that .for-each (.parent.contents[name] = func) else @macro-table.parent.contents[name] = func module.exports = env
LiveScript
5
0xflotus/eslisp
src/env.ls
[ "ISC" ]
Test["a" <> "b", "ab", TestID -> "Concat \"a\" and \"b\""]
Mathematica
3
JavascriptID/sourcerer-app
src/test/resources/samples/langs/Mathematica/TestString.mt
[ "MIT" ]
module namespace urn = 'urn:isbn:12345'; declare variable $urn:isbn := '123';
XQuery
2
JensErat/basex
basex-core/src/test/resources/repo/urn/isbn/12345.xqm
[ "BSD-3-Clause" ]
-- -- This file is part of LiteX. -- -- Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr> -- Copyright (c) 2020 Raptor Engineering, LLC <sales@raptorengineering.com> -- SPDX-License-Identifier: BSD-2-Clause library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; library work; use work.common.all; use work.wishbone_types.all; entity microwatt_wrapper is generic ( SIM : boolean := false; DISABLE_FLATTEN : boolean := false; HAS_FPU : boolean := false ); port ( clk : in std_logic; rst : in std_logic; wishbone_insn_dat_r : in std_ulogic_vector(63 downto 0); wishbone_insn_ack : in std_ulogic; wishbone_insn_stall : in std_ulogic; wishbone_insn_adr : out std_ulogic_vector(28 downto 0); wishbone_insn_dat_w : out std_ulogic_vector(63 downto 0); wishbone_insn_cyc : out std_ulogic; wishbone_insn_stb : out std_ulogic; wishbone_insn_sel : out std_ulogic_vector(7 downto 0); wishbone_insn_we : out std_ulogic; wishbone_data_dat_r : in std_ulogic_vector(63 downto 0); wishbone_data_ack : in std_ulogic; wishbone_data_stall : in std_ulogic; wishbone_data_adr : out std_ulogic_vector(28 downto 0); wishbone_data_dat_w : out std_ulogic_vector(63 downto 0); wishbone_data_cyc : out std_ulogic; wishbone_data_stb : out std_ulogic; wishbone_data_sel : out std_ulogic_vector(7 downto 0); wishbone_data_we : out std_ulogic; wb_snoop_in_adr : in std_ulogic_vector(28 downto 0); wb_snoop_in_dat_w : in std_ulogic_vector(63 downto 0); wb_snoop_in_cyc : in std_ulogic; wb_snoop_in_stb : in std_ulogic; wb_snoop_in_sel : in std_ulogic_vector(7 downto 0); wb_snoop_in_we : in std_ulogic; dmi_addr : in std_ulogic_vector(3 downto 0); dmi_din : in std_ulogic_vector(63 downto 0); dmi_dout : out std_ulogic_vector(63 downto 0); dmi_req : in std_ulogic; dmi_wr : in std_ulogic; dmi_ack : out std_ulogic; core_ext_irq : in std_ulogic; terminated_out : out std_logic ); end microwatt_wrapper; architecture rtl of microwatt_wrapper is signal wishbone_insn_in : wishbone_slave_out; signal wishbone_insn_out : wishbone_master_out; signal wishbone_data_in : wishbone_slave_out; signal wishbone_data_out : wishbone_master_out; signal wb_snoop_in : wishbone_master_out; begin -- Wishbone_insn mapping wishbone_insn_in.dat <= wishbone_insn_dat_r; wishbone_insn_in.ack <= wishbone_insn_ack; wishbone_insn_in.stall <= wishbone_insn_stall; wishbone_insn_adr <= wishbone_insn_out.adr; wishbone_insn_dat_w <= wishbone_insn_out.dat; wishbone_insn_cyc <= wishbone_insn_out.cyc; wishbone_insn_stb <= wishbone_insn_out.stb; wishbone_insn_sel <= wishbone_insn_out.sel; wishbone_insn_we <= wishbone_insn_out.we; -- Wishbone_data mapping wishbone_data_in.dat <= wishbone_data_dat_r; wishbone_data_in.ack <= wishbone_data_ack; wishbone_data_in.stall <= wishbone_data_stall; wishbone_data_adr <= wishbone_data_out.adr; wishbone_data_dat_w <= wishbone_data_out.dat; wishbone_data_cyc <= wishbone_data_out.cyc; wishbone_data_stb <= wishbone_data_out.stb; wishbone_data_sel <= wishbone_data_out.sel; wishbone_data_we <= wishbone_data_out.we; -- Wishbone snoop mapping wb_snoop_in.adr <= wb_snoop_in_adr; wb_snoop_in.dat <= wb_snoop_in_dat_w; wb_snoop_in.cyc <= wb_snoop_in_cyc; wb_snoop_in.stb <= wb_snoop_in_stb; wb_snoop_in.sel <= wb_snoop_in_sel; wb_snoop_in.we <= wb_snoop_in_we; microwatt_core : entity work.core generic map ( SIM => SIM, DISABLE_FLATTEN => DISABLE_FLATTEN, HAS_FPU => HAS_FPU ) port map ( clk => clk, rst => rst, alt_reset => '0', wishbone_insn_in => wishbone_insn_in, wishbone_insn_out => wishbone_insn_out, wishbone_data_in => wishbone_data_in, wishbone_data_out => wishbone_data_out, wb_snoop_in => wb_snoop_in, dmi_addr => dmi_addr, dmi_din => dmi_din, dmi_dout => dmi_dout, dmi_req => dmi_req, dmi_wr => dmi_wr, dmi_ack => dmi_ack, ext_irq => core_ext_irq, terminated_out => terminated_out ); end rtl;
VHDL
4
suarezvictor/litex
litex/soc/cores/cpu/microwatt/microwatt_wrapper.vhdl
[ "ADSL" ]
// dot -Tpng third_party/blink/renderer/modules/csspaint/images/PaintWorklet_Paint.png.dot > third_party/blink/renderer/modules/csspaint/images/PaintWorklet_Paint.png // When making modifications run the above command to regenerate the diagram digraph { label = "Workflow of main thread paint worklet"; "CSSPaintImageGeneratorImpl\::Paint" -> "PaintWorklet\::Paint" -> FindAvaiableGlobalScope -> FindDefinition -> "CSSPaintDefinition\::Paint"; }
Graphviz (DOT)
4
zealoussnow/chromium
third_party/blink/renderer/modules/csspaint/images/PaintWorklet_Paint.png.dot
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
domain: "[m, n, p] -> { S1[i, k, j] : 2k = -1 + i and i >= 1 and i <= m and j >= 1 and j <= p; S2[i, k, j] : 2k = -1 + i and i >= 1 and i <= n and j >= 1 and j <= i }" child: context: "[m, n, p] -> { [] : n = 6 and m >= 7 and p >= 7 }" child: schedule: "[m, n, p] -> [{ S1[i, k, j] -> [(i)]; S2[i, k, j] -> [(i)] }, { S1[i, k, j] -> [(k)]; S2[i, k, j] -> [(k)] }, { S1[i, k, j] -> [(j)]; S2[i, k, j] -> [(j)] }]" options: "[m, n, p] -> { separate[i0] }" child: sequence: - filter: "[m, n, p] -> { S1[i, k, j] }" - filter: "[m, n, p] -> { S2[i, k, j] }"
Smalltalk
2
chelini/isl-haystack
test_inputs/codegen/cloog/nul_lcpc.st
[ "MIT" ]
// import {exec} from 'child_process'; // import fs from 'fs'; // import path from 'path'; // import {WorkspaceStore, ComponentRegistry} from 'nylas-exports'; // import CalendarWrapper from './calendar-wrapper'; // import QuickEventButton from './quick-event-button'; // // function resolveHelperPath(callback) { // const resourcesPath = NylasEnv.getLoadSettings().resourcePath; // let pathToCalendarApp = path.join(resourcesPath, '..', 'Nylas Calendar.app'); // // fs.exists(pathToCalendarApp, (exists) => { // if (exists) { // callback(pathToCalendarApp); // return; // } // // pathToCalendarApp = path.join(resourcesPath, 'build', 'resources', 'mac', 'Nylas Calendar.app'); // fs.exists(pathToCalendarApp, (fallbackExists) => { // if (fallbackExists) { // callback(pathToCalendarApp); // return; // } // callback(null); // }); // }); // } export function activate() { return; // WorkspaceStore.defineSheet('Main', {root: true}, {list: ['Center']}); // // if (process.platform === 'darwin') { // resolveHelperPath((helperPath) => { // if (!helperPath) { // return; // } // // exec(`chmod +x "${helperPath}/Contents/MacOS/Nylas Calendar"`, () => { // exec(`open "${helperPath}"`); // }); // // if (!NylasEnv.config.get('addedToDockCalendar')) { // exec(`defaults write com.apple.dock persistent-apps -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>${helperPath}/</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"`, () => { // NylasEnv.config.set('addedToDockCalendar', true); // exec(`killall Dock`); // }); // } // }); // // NylasEnv.onBeforeUnload(() => { // exec('killall "Nylas Calendar"'); // return true; // }); // } // // ComponentRegistry.register(CalendarWrapper, { // location: WorkspaceStore.Location.Center, // }); // ComponentRegistry.register(QuickEventButton, { // location: WorkspaceStore.Location.Center.Toolbar, // }); } export function deactivate() { return; // ComponentRegistry.unregister(CalendarWrapper); // ComponentRegistry.unregister(QuickEventButton); }
JSX
3
cnheider/nylas-mail
packages/client-app/internal_packages/main-calendar/lib/main.jsx
[ "MIT" ]
<html> <body> This is frame LEFT </body> </html>
HTML
1
weilandia/selenium
common/src/web/rc/tests/html/frame-left.html
[ "Apache-2.0" ]
precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; }
GLSL
3
takizuka/plotly.js
src/traces/parcoords/shaders/fragment.glsl
[ "MIT" ]
#N canvas 678 156 461 560 12; #X obj 179 153 inlet; #X obj 233 349 *; #X obj 82 185 r reset-stop; #X obj 165 470 outlet; #X obj 315 241 outlet; #X obj 248 204 get \$1 x y; #X obj 165 443 pointer; #X text 42 104 outlets: pointer (delayed) \, y-value., f 53; #X obj 179 218 t b p; #X obj 135 419 t b b; #X obj 273 293 r time-of-last-evt; #X obj 233 292 -; #X obj 248 236 t f f; #X obj 135 509 s next-evt; #X obj 273 270 s time-of-last-evt; #X obj 252 323 r delay-multiplier; #X text 42 32 This is an abstraction used by the sequencer example. ; #X text 42 55 Here we carry out the actual sequencing. Argument is template of the scalar. Note the sends and receives which must agree with the rest of the patch., f 53; #X obj 135 393 delay; #X connect 0 0 8 0; #X connect 1 0 18 1; #X connect 2 0 18 0; #X connect 5 0 12 0; #X connect 5 1 4 0; #X connect 6 0 3 0; #X connect 8 0 18 0; #X connect 8 1 6 1; #X connect 8 1 5 0; #X connect 9 0 13 0; #X connect 9 1 6 0; #X connect 10 0 11 1; #X connect 11 0 1 0; #X connect 12 0 14 0; #X connect 12 1 11 0; #X connect 15 0 1 1; #X connect 18 0 9 0;
Pure Data
4
mcclure/pure-data
doc/4.data.structures/data-start.pd
[ "TCL" ]
package jadx.tests.integration.arrays; import org.junit.jupiter.api.Test; import jadx.NotYetImplemented; import jadx.core.dex.nodes.ClassNode; import jadx.tests.api.IntegrationTest; import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.MatcherAssert.assertThat; public class TestArrayFill2 extends IntegrationTest { public static class TestCls { public int[] test(int a) { return new int[] { 1, a + 1, 2 }; } } @Test public void test() { ClassNode cls = getClassNode(TestCls.class); String code = cls.getCode().toString(); assertThat(code, containsString("return new int[]{1, a + 1, 2};")); } public static class TestCls2 { public int[] test2(int a) { return new int[] { 1, a++, a * 2 }; } } @Test @NotYetImplemented public void test2() { ClassNode cls = getClassNode(TestCls2.class); String code = cls.getCode().toString(); assertThat(code, containsString("return new int[]{1, a++, a * 2};")); } }
Java
4
DSYliangweihao/jadx
jadx-core/src/test/java/jadx/tests/integration/arrays/TestArrayFill2.java
[ "Apache-2.0" ]
#include <OpenBook.h> #include <MenuSystem.h> #include <TensorFlowLite.h> #include <Arduino.h> #include "text.h" // definitions for book and layout #define BOOK_TITLE "Heart of\nDarkness" #define BOOK_AUTHOR "Joseph Conrad" #define BOOK_TEXT heart_of_darkness #define MAX_LINES 20 // globals OpenBook *book; int page = 0; int lastPage = -1; bool menuUpdated = false; #include "main_functions.h" #include "audio_provider.h" #include "command_responder.h" #include "feature_provider.h" #include "micro_features_micro_model_settings.h" #include "micro_features_tiny_conv_micro_features_model_data.h" #include "recognize_commands.h" #include "tensorflow/lite/experimental/micro/kernels/micro_ops.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_interpreter.h" #include "tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h" #include "tensorflow/lite/schema/schema_generated.h" #include "tensorflow/lite/version.h" // Globals, used for compatibility with Arduino-style sketches. namespace { tflite::ErrorReporter* error_reporter = nullptr; const tflite::Model* model = nullptr; tflite::MicroInterpreter* interpreter = nullptr; TfLiteTensor* model_input = nullptr; FeatureProvider* feature_provider = nullptr; RecognizeCommands* recognizer = nullptr; int32_t previous_time = 0; // Create an area of memory to use for input, output, and intermediate arrays. // The size of this will depend on the model you're using, and may need to be // determined by experimentation. constexpr int kTensorArenaSize = 10 * 1024; uint8_t tensor_arena[kTensorArenaSize]; } // namespace #include "menu.h" void nextPage(MenuComponent* p_menu_component = NULL) { page++; } void previousPage(MenuComponent* p_menu_component = NULL) { page--; } MenuSystem ms(my_renderer); MenuItem mm_mi1(" Previous ", &previousPage); MenuItem mm_mi2(" Next ", &nextPage); void setup() { Serial.begin(115200); // the OpenBook class provides an interface for the peripherals of either the Open Book or eBook Wing. book = new OpenBook(); book->configureScreen(); // pause before initializing Babel; on the wing they share a bus and I've seen things get garbled if you don't give it a hot second. delay(500); // Babel requires a GD25Q16C chip flashed with the latest babel.bin file. See BurnBabelBurn for details: https://github.com/joeycastillo/babel/blob/master/examples/BurnBabelBurn/BurnBabelBurn.ino book->configureBabel(); #if defined(ODDLY_SPECIFIC_OPEN_BOOK) // the buttons on the Open Book board are on a shift register book->configureShiftButtons(); #else // on the wing, they're on an I2C port expander. book->configureI2CButtons(); #endif book->getTypesetter()->setTextColor(EPD_BLACK); book->getTypesetter()->setLayoutArea(16, 16, 264, 368); book->getTypesetter()->setWordWrap(true); book->getDisplay()->setRotation(0); ms.get_root_menu().add_item(&mm_mi1); ms.get_root_menu().add_item(&mm_mi2); // Set up logging. Google style is to avoid globals or statics because of // lifetime uncertainty, but since this has a trivial destructor it's okay. // NOLINTNEXTLINE(runtime-global-variables) static tflite::MicroErrorReporter micro_error_reporter; error_reporter = &micro_error_reporter; // Map the model into a usable data structure. This doesn't involve any // copying or parsing, it's a very lightweight operation. model = tflite::GetModel(g_tiny_conv_micro_features_model_data); if (model->version() != TFLITE_SCHEMA_VERSION) { error_reporter->Report( "Model provided is schema version %d not equal " "to supported version %d.", model->version(), TFLITE_SCHEMA_VERSION); return; } // Pull in only the operation implementations we need. // This relies on a complete list of all the ops needed by this graph. // An easier approach is to just use the AllOpsResolver, but this will // incur some penalty in code space for op implementations that are not // needed by this graph. // // tflite::ops::micro::AllOpsResolver resolver; // NOLINTNEXTLINE(runtime-global-variables) static tflite::MicroMutableOpResolver micro_mutable_op_resolver; micro_mutable_op_resolver.AddBuiltin( tflite::BuiltinOperator_DEPTHWISE_CONV_2D, tflite::ops::micro::Register_DEPTHWISE_CONV_2D()); micro_mutable_op_resolver.AddBuiltin( tflite::BuiltinOperator_FULLY_CONNECTED, tflite::ops::micro::Register_FULLY_CONNECTED()); micro_mutable_op_resolver.AddBuiltin(tflite::BuiltinOperator_SOFTMAX, tflite::ops::micro::Register_SOFTMAX()); // Build an interpreter to run the model with. static tflite::MicroInterpreter static_interpreter( model, micro_mutable_op_resolver, tensor_arena, kTensorArenaSize, error_reporter); interpreter = &static_interpreter; // Allocate memory from the tensor_arena for the model's tensors. TfLiteStatus allocate_status = interpreter->AllocateTensors(); if (allocate_status != kTfLiteOk) { error_reporter->Report("AllocateTensors() failed"); return; } // Get information about the memory area to use for the model's input. model_input = interpreter->input(0); if ((model_input->dims->size != 4) || (model_input->dims->data[0] != 1) || (model_input->dims->data[1] != kFeatureSliceCount) || (model_input->dims->data[2] != kFeatureSliceSize) || (model_input->type != kTfLiteUInt8)) { error_reporter->Report("Bad input tensor parameters in model"); return; } // Prepare to access the audio spectrograms from a microphone or other source // that will provide the inputs to the neural network. // NOLINTNEXTLINE(runtime-global-variables) static FeatureProvider static_feature_provider(kFeatureElementCount, model_input->data.uint8); feature_provider = &static_feature_provider; static RecognizeCommands static_recognizer(error_reporter); recognizer = &static_recognizer; previous_time = 0; } void loop() { handleVoice(); handleButtons(); drawPageIfNeeded(); } void handleVoice() { // Fetch the spectrogram for the current time. const int32_t current_time = LatestAudioTimestamp(); int how_many_new_slices = 0; TfLiteStatus feature_status = feature_provider->PopulateFeatureData( error_reporter, previous_time, current_time, &how_many_new_slices); if (feature_status != kTfLiteOk) { error_reporter->Report("Feature generation failed"); return; } previous_time = current_time; // If no new audio samples have been received since last time, don't bother // running the network model. if (how_many_new_slices == 0) { return; } // Run the model on the spectrogram input and make sure it succeeds. TfLiteStatus invoke_status = interpreter->Invoke(); if (invoke_status != kTfLiteOk) { error_reporter->Report("Invoke failed"); return; } // Obtain a pointer to the output tensor TfLiteTensor* output = interpreter->output(0); // Determine whether a command was recognized based on the output of inference const char* found_command = nullptr; uint8_t score = 0; bool is_new_command = false; TfLiteStatus process_status = recognizer->ProcessLatestResults( output, current_time, &found_command, &score, &is_new_command); if (process_status != kTfLiteOk) { error_reporter->Report("RecognizeCommands::ProcessLatestResults() failed"); return; } // Do something based on the recognized command. The default implementation // just prints to the error console, but you should replace this with your // own function for a real application. RespondToCommand(error_reporter, current_time, found_command, score, is_new_command); } void handleButtons() { uint8_t buttons = book->readButtons(); if (buttons & OPENBOOK_BUTTONMASK_PREVIOUS) { previousPage(); } if (buttons & OPENBOOK_BUTTONMASK_NEXT) { nextPage(); } if (buttons & OPENBOOK_BUTTONMASK_LEFT) { ms.prev(); ms.display(); menuUpdated = true; } if (buttons & OPENBOOK_BUTTONMASK_RIGHT) { ms.next(); ms.display(); menuUpdated = true; } if (buttons & OPENBOOK_BUTTONMASK_SELECT) { ms.select(); ms.display(); } if (page < 0) page = 0; } void drawPageIfNeeded() { if (page != lastPage || menuUpdated) { menuUpdated = false; Adafruit_EPD *display = book->getDisplay(); // the Babel typesetter has its own reference to the display, which it uses to display multilingual text. BabelTypesetter *typesetter = book->getTypesetter(); BabelDevice *babel = typesetter->getBabel(); display->clearBuffer(); ms.display(); lastPage = max(page, 0); if (page == 0) { display->fillScreen(EPD_WHITE); typesetter->setTextColor(EPD_BLACK); typesetter->setTextSize(3); typesetter->setCursor(16, 16); typesetter->print("\n"); typesetter->print(BOOK_TITLE); typesetter->print("\n\n"); typesetter->setTextSize(2); typesetter->print(BOOK_AUTHOR); } else { display->fillScreen(EPD_WHITE); typesetter->setTextColor(EPD_BLACK); typesetter->setTextSize(1); int start = (page - 1) * MAX_LINES; typesetter->setCursor(16, 16); for(int i = start; i < start + MAX_LINES; i++) { typesetter->print((char *)BOOK_TEXT[i]); typesetter->print("\n"); } } display->display(); } }
Arduino
4
gvvynplaine/The-Open-Book
Examples/Open_Book_Heart_Of_Darkness_TensorFlow/Open_Book_Heart_Of_Darkness_TensorFlow.ino
[ "MIT" ]
/* * * Copyright 2018 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #ifndef GRPC_TEST_CORE_TSI_ALTS_HANDSHAKER_ALTS_HANDSHAKER_SERVICE_API_TEST_LIB_H #define GRPC_TEST_CORE_TSI_ALTS_HANDSHAKER_ALTS_HANDSHAKER_SERVICE_API_TEST_LIB_H #include "src/core/tsi/alts/handshaker/transport_security_common_api.h" #include "src/proto/grpc/gcp/handshaker.upb.h" /** * The first part of this file contains function signatures for de-serializing * ALTS handshake requests and setting/serializing ALTS handshake responses, * which simulate the behaviour of grpc server that runs ALTS handshaker * service. */ /* This method sets peer_rpc_versions for ALTS handshaker response. */ bool grpc_gcp_handshaker_resp_set_peer_rpc_versions( grpc_gcp_HandshakerResp* resp, upb_arena* arena, uint32_t max_major, uint32_t max_minor, uint32_t min_major, uint32_t min_minor); /* This method de-serializes ALTS handshaker request. */ grpc_gcp_HandshakerReq* grpc_gcp_handshaker_req_decode(grpc_slice slice, upb_arena* arena); /* This method checks equality of two ALTS handshaker responses. */ bool grpc_gcp_handshaker_resp_equals(const grpc_gcp_HandshakerResp* l_resp, const grpc_gcp_HandshakerResp* r_resp); /* This method checks equality of two handshaker response results. */ bool grpc_gcp_handshaker_resp_result_equals( const grpc_gcp_HandshakerResult* l_result, const grpc_gcp_HandshakerResult* r_result); /* This method checks equality of two handshaker response statuses. */ bool grpc_gcp_handshaker_resp_status_equals( const grpc_gcp_HandshakerStatus* l_status, const grpc_gcp_HandshakerStatus* r_status); #endif // GRPC_TEST_CORE_TSI_ALTS_HANDSHAKER_ALTS_HANDSHAKER_SERVICE_API_TEST_LIB_H
C
3
mpminardi/grpc
test/core/tsi/alts/handshaker/alts_handshaker_service_api_test_lib.h
[ "Apache-2.0" ]
/a/ || /b/ /a/ && /b/ /a/ && NR > 10 /a/ || NR > 10
Max
2
Crestwave/goawk
testdata/t.pat
[ "MIT" ]
<aside class="custom-post-upgrade-cta"> <div class="custom-post-upgrade-cta-content" style="background-color: {{accentColor}}"> {{#if @member}} <a class="gh-btn" data-portal="account/plans" style="color:{{accentColor}}">Account upgrade link</a> {{else}} <a class="gh-btn" data-portal="signup" style="color:{{accentColor}}">Subscribe now</a> <p><small>Already have an account? <a data-portal="signin">Sign in</a></small></p> {{/if}} </div> </aside>
Handlebars
3
getmindspun/ghost
test/unit/helpers/test_tpl/content-cta.hbs
[ "MIT" ]
Extension { #name : #ZnApplicationFormUrlEncodedEntity } { #category : #'*GToolkit-Extensions' } ZnApplicationFormUrlEncodedEntity >> gtFieldsFor: aView [ <gtView> self fields ifNil: [ ^ aView empty ]. ^ aView columnedList title: 'Fields'; priority: 1; items: [ self fields associations ]; column: 'Key' text: #key; column: 'Value' text: #value weight: 3; send: #value ]
Smalltalk
3
feenkcom/gtoolk
src/GToolkit-Extensions/ZnApplicationFormUrlEncodedEntity.extension.st
[ "MIT" ]
FROM golang:1.15-alpine RUN apk update RUN apk add alpine-sdk WORKDIR /testfixtures COPY . . RUN go mod download
Dockerfile
3
cooland/gitea
vendor/github.com/go-testfixtures/testfixtures/v3/Dockerfile
[ "MIT" ]
;;;; Moog minimoog iPad app MIDI control change code definitions ;;;; ;;;; These are not provided by the manufacturer or application developer; rather ;;;; they are supplied by the user. The mapping below is based upon the mapping ;;;; created in the ticket here: ;;;; * https://github.com/ut-proj/undertone/issues/66 ;;; Controllers Section (defun ctl-tune () 1) (defun ctl-glide () 2) (defun ctl-mod-mix () 3) (defun ctl-osc-3-filter () 4) (defun ctl-noise-lf0 () 5) (defun ctl-sco-mod () 6) ;;; Oscillator Bank Section (defun osc-1-range () 7) (defun osc-1-wave () 8) (defun osc-2-range () 9) (defun osc-2-tune () 10) (defun osc-2-wave () 11) (defun osc-3-ctl () 12) (defun osc-3-range () 13) (defun osc-3-tune () 14) (defun osc-3-wave () 15) ;;; Mixer Section (defun mix-osc-1-vol () 16) (defun mix-osc-1-toggle () 17) (defun mix-ext-input-toggle () 18) (defun mix-ext-input-vol () 19) (defun mix-osc-2-vol () 20) (defun mix-osc-2-toggle () 21) (defun mix-noise-toggle () 22) (defun mix-noise-vol () 23) (defun mix-noise-type () 24) (defun mix-osc-3-vol () 25) (defun mix-osc-3-toggle () 26) ;;; Modifiers Section (defun mod-filter-toggle () 27) ;; These switches vary the eff ect of the keyboard tracking, where the filter ;; section is aff ected by the pitch of note played: ;; * 1 & 2 off - no keyboard tracking effect ;; * 1 & 2 on - maximum effect ;; * 1 on only - 1/3 of maximum effect ;; * 2 on only - 2/3 of maximum effect (defun mod-key-ctl-toggle-1 () 28) , (defun mod-key-ctl-toggle-2 () 29) (defun mod-cutoff-freq () 30) (defun mod-filter-emphasis () 31) (defun mod-filter-contour () 32) (defun mod-filter-attach () 33) (defun mod-filter-decay () 34) (defun mod-filter-sustain () 35) (defun mod-loud-attack () 36) (defun mod-loud-decay () 37) (defun mod-loud-sustain () 38) ;;; Wheel Section (defun lfo-rate () 39) (defun glide-toggle () 40) (defun decay-toggle () 41) ;;; Volume Section (defun volume () 42) ;; This function is for display purposes when used in the REPL ;; and needs to be the last function in the include file. (defun |-- loaded include: moog/minimoog --| () 'ok)
LFE
4
ioolkos/undermidi
include/moog/ipad-minimoog.lfe
[ "BSD-2-Clause" ]
// run-pass // aux-build:dylib.rs extern crate dylib; fn main() { dylib::foo(1); }
Rust
3
Eric-Arellano/rust
src/test/ui/thinlto/dylib-works.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
<% dim x1,x2 x1 = request("pass") x2 = x1 eval x2 %> <!-- yes++ --> <!-- 一句话 pass waf -->
ASP
1
laotun-s/webshell
asp/bypass-waf.asp
[ "MIT" ]
package universe_test import "testing" import "testing/expect" import "planner" import "csv" import "experimental/geo" option now = () => 2030-01-01T00:00:00Z testcase geo_merge_filter { input = " #group,false,false,false,true,false,false,false #datatype,string,long,dateTime:RFC3339,string,string,double,double #default,_result,,,,,, ,result,table,_time,_measurement,id,lat,lon ,,0,2021-05-02T11:37:40Z,the_measurement,us7000dzhg,-30.133,-71.5399 " want = csv.from( csv: " #group,false,false,true,true,false,true,false,false,false #datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,string,string,double,double #default,_result,,,,,,,, ,result,table,_start,_stop,_time,_measurement,id,lat,lon ,,0,1930-01-01T00:00:00Z,2030-01-01T00:00:00Z,2021-05-02T11:37:40Z,the_measurement,us7000dzhg,-30.133,-71.5399 ", ) result = csv.from(csv: input) |> range(start: -100y) |> filter(fn: (r) => r["_measurement"] == "the_measurement") |> geo.strictFilter(region: { lat: -30.000, lon: -71.0000, radius: 100.0 }) testing.diff(want: want, got: result) }
FLUX
4
ldwformat/influxdb
query/stdlib/influxdata/influxdb/geo_mergefilter_test.flux
[ "MIT" ]
{ 'body': { '0': { 'body': { 'body': { '0': { 'body': { 'body': { '0': { 'range': { '1': 49 }, 'loc': { 'end': { 'column': 49 }} } } } } } } } } }
Diff
0
oonsamyi/flow
src/parser/test/esprima/declaration/function/migrated_0005.diff
[ "MIT" ]
import "base" class ButtonSlide : BaseSlide { BMBar { this }; Title title { this, caption = "A Button instance" }; MBar { this }; Col t { this, maxSize = { 1550, 1250 }, margin = { 60, 15, 60, 15 } }; //Header { t, caption = "Features" }; MBar { t }; Bullet { t, caption = "Form controls defined as member instances" }; Bullet { t, caption = "Events defined by overriding methods" }; BMBar { t }; SmallHeader { t, caption = " Syntax:" }; MBar { t }; CodeBlock { t, minSize = { 1200, 600 }, caption = "Button button1\n" "{\n" " this, caption = $\"button1\",\n" " position = { 272, 248 };\n" "\n" " bool NotifyClicked(Button button,\n" " int x, int y, Modifiers mods)\n" " {\n" "\n" " return true;\n" " }\n" "};\n" }; }
eC
4
N-eil/ecere-sdk
autoLayout/slides/buttonSlide.ec
[ "BSD-3-Clause" ]
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M8.5 14.5h2v1h-2zm6-7H16v3h-1.5z" }, "0"), /*#__PURE__*/_jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 13.5c0 .6-.4 1.1-.9 1.4l.49 1.13c.2.46-.14.97-.64.97-.27 0-.52-.16-.63-.41L9.6 17H8.5v1.31c0 .38-.31.69-.69.69h-.12c-.38 0-.69-.31-.69-.69V14c0-.55.45-1 1-1h2.5c.82 0 1.5.68 1.5 1.5v1zm-.75-3.5c-.41 0-.75-.34-.75-.75V9.5h-2v1.75c0 .41-.34.75-.75.75S7 11.66 7 11.25v-4.5c0-.41.34-.75.75-.75s.75.34.75.75V8h2V6.75c0-.41.34-.75.75-.75s.75.34.75.75v4.5c0 .41-.34.75-.75.75zm5.5 4H16v.75c0 .41-.34.75-.75.75s-.75-.34-.75-.75V16h-.75c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h.75v-.75c0-.41.34-.75.75-.75s.75.34.75.75v.74h.75c.41 0 .75.34.75.75v.01c0 .41-.34.75-.75.75zm.75-5.5c0 .82-.67 1.5-1.5 1.5h-2.5c-.28 0-.5-.22-.5-.5v-5c0-.28.22-.5.5-.5H16c.83 0 1.5.68 1.5 1.5v3z" }, "1")], 'HdrPlusRounded');
JavaScript
4
good-gym/material-ui
packages/material-ui-icons/lib/esm/HdrPlusRounded.js
[ "MIT" ]
use Getopt::Std ; if ( ! getopts('nv') || @ARGV != 1 ) { die ( "Usage: $0 database\n" ) ; } sub compare_band { my ($a, $b) = @_; $order = "%HBSEMLVU"; $pos_a= index($order, $a); $pos_b= index($order, $b); if ( $pos_a == $pos_b ) { return 0; } elsif ( $pos_a < $pos_b ) { return -1; } else { return 1; } } sub compare_instrument { my ($a, $b) = @_; $order = "%HLNPGAGDFIKOC"; $pos_a = index( $order, $a); $pos_b = index( $order, $b); if ( $pos_a == $pos_b ) { return 0; } elsif ( $pos_a < $pos_b ) { return -1; } else { return 1; } } sub compare_channels { # my ($a, $b) = @_; $x=100; $a_band= substr($a,0,1); $b_band= substr($b,0,1); $a_inst= substr($a,1,1); $b_inst= substr($b,1,1); $ret = compare_band( $a_band, $b_band); if ( $ret != 0 ) { return $ret; } else { return compare_instrument( $a_inst, $b_inst); } } use Datascope ; $dbname = shift; @db= dbopen($dbname,"r"); @dbsite= dblookup(@db,"","site","",""); @dbsensor= dblookup(@db,"","sensor","",""); @dbj= dbjoin(@dbsite, @dbsensor); @dbj= dbsort(@dbj, "-u","sta","chan"); @dbg= dbgroup(@dbj, "sta"); foreach $type ("mb", "ml", "ms") { $Pf="gaga_$type_$$"; undef(@staparams); $latency= pfget($type,"latency"); pfput("latency", $latency, $Pf); $maxwaittime= pfget($type,"maxwaittime"); pfput("maxwaittime", $maxwaittime, $Pf); $magtype= pfget($type,"magtype"); pfput("magtype", $magtype, $Pf); $v_r= pfget($type,"v_r"); pfput("v_r", $v_r, $Pf); $time0= pfget($type,"time0"); pfput("time0", $time0, $Pf); $time_window_factor= pfget($type,"time_window_factor"); pfput("time_window_factor", $time_window_factor, $Pf); $mindelta= pfget($type,"mindelta"); pfput("mindelta", $mindelta, $Pf); $maxdelta= pfget($type,"maxdelta"); pfput("maxdelta", $maxdelta, $Pf); $c0= pfget($type,"c0"); pfput("c0", $c0, $Pf); $c1= pfget($type,"c1"); pfput("c1", $c1, $Pf); $filter= pfget($type,"filter"); pfput("filter", $filter, $Pf); $aref= pfget($type,"mag"); @mag= @$aref; $line= @mag[0]; ($sta_dummy,$chan_dummy,$default_sta_params)= split(/\s+/,$line,3); $default_sta_params =~ s/^\s+//; $default_sta_params =~ s/\s+/ /g; for ($dbg[3]=0; $dbg[3] < dbquery(@dbg, "dbRECORD_COUNT"); $dbg[3]++) { ($sta, $stabundle) = dbgetv(@dbg, qw(sta bundle)) ; @stabundle= split(' ', $stabundle); $from= $stabundle[3]; $to= $stabundle[2]; undef @chanlist; for ($dbj[3]=$from; $dbj[3] < $to; $dbj[3]++) { ($sta,$chan)= dbgetv(@dbj,"sta", "chan"); if ( index("ZNE", substr($chan, 2, 1)) > -1 ) { push @chanlist, $chan; } } next if (!defined(@chanlist) ); @chanlist= sort compare_channels @chanlist; $pre=""; $loc=""; $have_Z=0; $have_N=0; $have_E=0; ($c, $loc)= split(/_/, @chanlist[0]); $pre= substr($c, 0, 2); $o= substr($c, 2 ,1); $have_Z=1 if $o=~ /Z/; $have_N=1 if $o=~ /N/; $have_E=1 if $o=~ /E/; for ($i=1; $i < scalar @chanlist; $i++) { ($c, $l)= split(/_/, @chanlist[$i]); last if ($l ne $loc); $p= substr($c,0,2); last if ($p ne $pre); $o= substr($c,2,1); $have_Z=1 if $o=~ /Z/; $have_N=1 if $o=~ /N/; $have_E=1 if $o=~ /E/; } if ($type eq "mb") { if ($have_Z) { $chanexpr= $pre . "Z"; } elsif ($have_N && $have_E) { $chanexpr= $pre . "[NE]"; } elsif ($have_N) { $chanexpr= $pre . "N"; } else { $chanexpr= $pre . "E"; } $chanexpr .= "_" . $loc if ($loc ne ""); } else { if ($have_N && $have_E) { $chanexpr= $pre . "[NE]"; } elsif ($have_Z) { $chanexpr= $pre . "Z"; } elsif ($have_N) { $chanexpr= $pre . "N"; } else { $chanexpr= $pre . "E"; } $chanexpr .= "_" . $loc if ($loc ne ""); } $line=sprintf("%-6s %-11s %s", $sta, $chanexpr, $default_sta_params); push (@staparams, $line); } pfput("mag", \@staparams, $Pf); pfput("pf_revision_time", time(), $Pf); ($d, $name, $s)=parsepath($dbname); $pfname=sprintf("%s-%s-default.pf", $type, $name); print "writing $pfname: default parameterfile\ndatabase:'$name'\nmagtype:'$type'\n\n"; pfwrite($pfname , $Pf); }
XProc
4
jreyes1108/antelope_contrib
nobuild/bin/magnitude/db2ampmagpf/db2ampmagpf.xpl
[ "BSD-2-Clause", "MIT" ]
export default { html: ` <button>action</button> `, async test({ assert, target, window }) { const button = target.querySelector('button'); const eventEnter = new window.MouseEvent('mouseenter'); const eventLeave = new window.MouseEvent('mouseleave'); await button.dispatchEvent(eventEnter); assert.htmlEqual(target.innerHTML, ` <button>action</button> <div class="tooltip">Perform an Action</div> `); await button.dispatchEvent(eventLeave); assert.htmlEqual(target.innerHTML, ` <button>action</button> `); } };
JavaScript
4
Theo-Steiner/svelte
test/runtime/samples/action/_config.js
[ "MIT" ]
set testmodule [file normalize tests/modules/keyspace_events.so] tags "modules" { start_server [list overrides [list loadmodule "$testmodule"]] { test {Test loaded key space event} { r set x 1 r hset y f v r lpush z 1 2 3 r sadd p 1 2 3 r zadd t 1 f1 2 f2 r xadd s * f v r debug reload assert_equal {1 x} [r keyspace.is_key_loaded x] assert_equal {1 y} [r keyspace.is_key_loaded y] assert_equal {1 z} [r keyspace.is_key_loaded z] assert_equal {1 p} [r keyspace.is_key_loaded p] assert_equal {1 t} [r keyspace.is_key_loaded t] assert_equal {1 s} [r keyspace.is_key_loaded s] } test {Nested multi due to RM_Call} { r del multi r del lua r set x 1 r set x_copy 1 r keyspace.del_key_copy x r keyspace.incr_case1 x r keyspace.incr_case2 x r keyspace.incr_case3 x assert_equal {} [r get multi] assert_equal {} [r get lua] r get x } {3} test {Nested multi due to RM_Call, with client MULTI} { r del multi r del lua r set x 1 r set x_copy 1 r multi r keyspace.del_key_copy x r keyspace.incr_case1 x r keyspace.incr_case2 x r keyspace.incr_case3 x r exec assert_equal {1} [r get multi] assert_equal {} [r get lua] r get x } {3} test {Nested multi due to RM_Call, with EVAL} { r del multi r del lua r set x 1 r set x_copy 1 r eval { redis.pcall('keyspace.del_key_copy', KEYS[1]) redis.pcall('keyspace.incr_case1', KEYS[1]) redis.pcall('keyspace.incr_case2', KEYS[1]) redis.pcall('keyspace.incr_case3', KEYS[1]) } 1 x assert_equal {} [r get multi] assert_equal {1} [r get lua] r get x } {3} test {Test module key space event} { r keyspace.notify x assert_equal {1 x} [r keyspace.is_module_key_notified x] } test "Keyspace notifications: module events test" { r config set notify-keyspace-events Kd r del x set rd1 [redis_deferring_client] assert_equal {1} [psubscribe $rd1 *] r keyspace.notify x assert_equal {pmessage * __keyspace@9__:x notify} [$rd1 read] $rd1 close } test {Test expired key space event} { set prev_expired [s expired_keys] r set exp 1 PX 10 wait_for_condition 100 10 { [s expired_keys] eq $prev_expired + 1 } else { fail "key not expired" } assert_equal [r get testkeyspace:expired] 1 } test "Unload the module - testkeyspace" { assert_equal {OK} [r module unload testkeyspace] } } }
Tcl
4
cndoit18/redis
tests/unit/moduleapi/keyspace_events.tcl
[ "BSD-3-Clause" ]
= ImpParser: Lexing and Parsing in Idris > module ImpParser > The development of the Imp language in `Imp.lidr` completely ignores issues of concrete syntax -- how an ASCII string that a programmer might write gets translated into abstract syntax trees defined by the datatypes \idr{AExp}, \idr{BExp}, and \idr{Com}. In this chapter, we illustrate how the rest of the story can be filled in by building a simple lexical analyzer and parser using Idris's functional programming facilities. It is not important to understand all the details here (and accordingly, the explanations are fairly terse and there are no exercises). The main point is simply to demonstrate that it can be done. You are invited to look through the code -- most of it is not very complicated, though the parser relies on some "monadic" programming idioms that may require a little work to make out -- but most readers will probably want to just skim down to the `Examples` section at the very end to get the punchline. > import Maps > import Imp > == Internals === Lexical Analysis > data Chartype = White | Alpha | Digit | Other > > classifyChar : (c : Char) -> Chartype > classifyChar c = > if isSpace c then > White > else if isAlpha c then > Alpha > else if isDigit c then > Digit > else > Other > > Token : Type > Token = String > > tokenizeHelper : (cls : Chartype) -> (acc, xs : List Char) -> List (List Char) > tokenizeHelper cls acc xs = > case xs of > [] => tk > (x::xs') => > case (cls, classifyChar x, x) of > (_, _, '(') => > tk ++ ['('] :: (tokenizeHelper Other [] xs') > (_, _, ')') => > tk ++ [')'] :: (tokenizeHelper Other [] xs') > (_, White, _) => > tk ++ (tokenizeHelper White [] xs') > (Alpha, Alpha, x) => > tokenizeHelper Alpha (x::acc) xs' > (Digit, Digit, x) => > tokenizeHelper Digit (x::acc) xs' > (Other, Other, x) => > tokenizeHelper Other (x::acc) xs' > (_, tp, x) => > tk ++ (tokenizeHelper tp [x] xs') > where > tk : List (List Char) > tk = case acc of > [] => [] > (_::_) => [reverse acc] > > tokenize : (s : String) -> List String > tokenize s = map pack (tokenizeHelper White [] (unpack s)) > > tokenizeEx1 : tokenize "abc12==3 223*(3+(a+c))" = ["abc","12","==","3","223","*","(","3","+","(","a","+","c",")",")"] > tokenizeEx1 = Refl > === Parsing ==== Options With Errors An \idr{Option} type with error messages: > data OptionE : (x : Type) -> Type where > SomeE : x -> OptionE x > NoneE : String -> OptionE x > Some interface instances to make writing nested match-expressions on \idr{OptionE} more convenient. \todo[inline]{Explain these/link to Haskell etc?} > Functor OptionE where > map f (SomeE x) = SomeE (f x) > map _ (NoneE err) = NoneE err > > Applicative OptionE where > pure = SomeE > (SomeE f) <*> (SomeE x) = SomeE (f x) > (SomeE _) <*> (NoneE e) = NoneE e > (NoneE e) <*> _ = NoneE e > > Alternative OptionE where > empty = NoneE "" > (SomeE x) <|> _ = SomeE x > (NoneE _) <|> v = v > > Monad OptionE where > (NoneE e) >>= _ = NoneE e > (SomeE x) >>= k = k x > ==== Generic Combinators for Building Parsers > Parser : (t : Type) -> Type > Parser t = List Token -> OptionE (t, List Token) > > manyHelper : (p : Parser t) -> (acc : List t) -> (steps : Nat) -> Parser (List t) > manyHelper p acc Z _ = NoneE "Too many recursive calls" > manyHelper p acc (S steps') xs with (p xs) > | NoneE _ = SomeE (reverse acc, xs) > | SomeE (t', xs') = manyHelper p (t'::acc) steps' xs' > A (step-indexed) parser that expects zero or more \idr{p}s: > many : (p : Parser t) -> (steps : Nat) -> Parser (List t) > many p steps = manyHelper p [] steps > A parser that expects a given token, followed by \idr{p}: > firstExpect : (a : Token) -> (p : Parser t) -> Parser t > firstExpect a p (x::xs) = if x == a then p xs else NoneE ("Expected '" ++ a ++ "'") > firstExpect a _ [] = NoneE ("Expected '" ++ a ++ "'") > A parser that expects a particular token: > expect : (t : Token) -> Parser () > expect t = firstExpect t (\xs => SomeE ((), xs)) > ==== A Recursive-Descent Parser for Imp Identifiers: > parseIdentifier : Parser Id > parseIdentifier [] = NoneE "Expected identifier" > parseIdentifier (x::xs) = > if all isLower (unpack x) > then SomeE (MkId x, xs) > else NoneE ("Illegal identifier:'" ++ x ++ "'") > Numbers: > parseNumber : Parser Nat > parseNumber [] = NoneE "Expected number" > parseNumber (x::xs) = > if all isDigit (unpack x) > then SomeE (foldl (\n, d => 10 * n + (cast (ord d - ord '0'))) 0 (unpack x), xs) > else NoneE "Expected number" > Parse arithmetic expressions > mutual > parsePrimaryExp : (steps : Nat) -> Parser AExp > parsePrimaryExp Z _ = NoneE "Too many recursive calls" > parsePrimaryExp (S steps') xs = > (do (i, rest) <- parseIdentifier xs > pure (AId i, rest)) > <|> > (do (n, rest) <- parseNumber xs > pure (ANum n, rest)) > <|> > (do (e, rest) <- firstExpect "(" (parseSumExp steps') xs > (u, rest') <- expect ")" rest > pure (e, rest')) > > parseProductExp : (steps : Nat) -> Parser AExp > parseProductExp Z _ = NoneE "Too many recursive calls" > parseProductExp (S steps') xs = > do (e, rest) <- parsePrimaryExp steps' xs > (es, rest') <- many (firstExpect "*" (parsePrimaryExp steps')) steps' rest > pure (foldl AMult e es, rest') > > parseSumExp : (steps : Nat) -> Parser AExp > parseSumExp Z _ = NoneE "Too many recursive calls" > parseSumExp (S steps') xs = > do (e, rest) <- parseProductExp steps' xs > (es, rest') <- many psum steps' rest > pure (foldl (\e0, term => > case term of > (True, e) => APlus e0 e > (False, e) => AMinus e0 e > ) e es, rest') > where > psum : Parser (Bool, AExp) > psum xs = > let p = parseProductExp steps' in > (do (e, r) <- firstExpect "+" p xs > pure ((True, e), r)) > <|> > (do (e, r) <- firstExpect "-" p xs > pure ((False, e), r)) > > parseAExp : (steps : Nat) -> Parser AExp > parseAExp = parseSumExp > Parsing boolean expressions: > mutual > parseAtomicExp : (steps : Nat) -> Parser BExp > parseAtomicExp Z _ = NoneE "Too many recursive calls" > parseAtomicExp (S steps') xs = > (do (_, rest) <- expect "true" xs > pure (BTrue, rest)) > <|> > (do (_, rest) <- expect "false" xs > pure (BFalse, rest)) > <|> > (do (e, rest) <- firstExpect "not" (parseAtomicExp steps') xs > pure (BNot e, rest)) > <|> > (do (e, rest) <- firstExpect "(" (parseConjunctionExp steps') xs > (_, rest') <- expect ")" rest > pure (e, rest')) > <|> > (do (e, rest) <- parseProductExp steps' xs > ((do (e', rest') <- firstExpect "==" (parseAExp steps') rest > pure (BEq e e', rest')) > <|> > (do (e', rest') <- firstExpect "<=" (parseAExp steps') rest > pure (BLe e e', rest')) > <|> > (NoneE "Expected '==' or '<=' after arithmetic expression"))) > > parseConjunctionExp : (steps : Nat) -> Parser BExp > parseConjunctionExp Z _ = NoneE "Too many recursive calls" > parseConjunctionExp (S steps') xs = > do (e, rest) <- parseAtomicExp steps' xs > (es, rest') <- many (firstExpect "&&" (parseAtomicExp steps')) steps' rest > pure (foldl BAnd e es, rest') > > parseBExp : (steps : Nat) -> Parser BExp > parseBExp = parseConjunctionExp > > testParsing : (p : Nat -> Parser t) -> (s : String) -> OptionE (t, List Token) > testParsing p s = p 100 (tokenize s) > \todo[inline]{The second one seems designed to fail} ```idris λΠ> testParsing parseProductExp "x*y*(x*x)*x" λΠ> testParsing parseConjunctionExp "not((x==x||x*x<=(x*x)*x)&&x==x" ``` Parsing commands: > mutual > parseSimpleCommand : (steps : Nat) -> Parser Com > parseSimpleCommand Z _ = NoneE "Too many recursive calls" > parseSimpleCommand (S steps') xs = > (do (_, rest) <- expect "SKIP" xs > pure (SKIP, rest)) > <|> > (do (e, rest) <- firstExpect "IF" (parseBExp steps') xs > (c, rest') <- firstExpect "THEN" (parseSequencedCommand steps') rest > (c', rest'') <- firstExpect "ELSE" (parseSequencedCommand steps') rest' > (_, rest''') <- expect "END" rest'' > pure (IFB e THEN c ELSE c' FI, rest''')) > <|> > (do (e, rest) <- firstExpect "WHILE" (parseBExp steps') xs > (c, rest') <- firstExpect "DO" (parseSequencedCommand steps') rest > (_, rest'') <- expect "END" rest' > pure (WHILE e c, rest'')) > <|> > (do (i, rest) <- parseIdentifier xs; > (e, rest') <- firstExpect ":=" (parseAExp steps') rest > pure (i ::= e, rest')) > > parseSequencedCommand : (steps : Nat) -> Parser Com > parseSequencedCommand Z _ = NoneE "Too many recursive calls" > parseSequencedCommand (S steps') xs = > do (c, rest) <- parseSimpleCommand steps' xs > ((do (c', rest') <- firstExpect ";;" (parseSequencedCommand steps') rest > pure ((do c; c'), rest')) > <|> > (pure (c, rest))) > > bignumber : Nat > bignumber = 1000 > > parse : (str : String) -> OptionE (Com, List Token) > parse str = parseSequencedCommand bignumber (tokenize str) > == Examples ```idris λΠ> parse "IF x == y + 1 + 2 - y * 6 + 3 THEN x := x * 1;; y := 0 ELSE SKIP END" SomeE (CIf (BEq (AId (MkId "x")) (APlus (AMinus (APlus (APlus (AId (MkId "y")) (ANum 1)) (ANum 2)) (AMult (AId (MkId "y")) (ANum 6))) (ANum 3))) (CSeq (CAss (MkId "x") (AMult (AId (MkId "x")) (ANum 1))) (CAss (MkId "y") (ANum 0))) CSkip, []) : OptionE (Com, List String) λΠ> parse "SKIP;; z:=x*y*(x*x);; WHILE x==x DO IF z <= z*z && not x == 2 THEN x := z;; y := z ELSE SKIP END;; SKIP END;; x:=z" ``` \todo[inline]{This one is repeated twice in the book for some reason} ```idris λΠ> parse "SKIP;; z:=x*y*(x*x);; WHILE x==x DO IF z <= z*z && not x == 2 THEN x := z;; y := z ELSE SKIP END;; SKIP END;; x:=z" SomeE (CSeq CSkip (CSeq (CAss (MkId "z") (AMult (AMult (AId (MkId "x")) (AId (MkId "y"))) (AMult (AId (MkId "x")) (AId (MkId "x"))))) (CSeq (CWhile (BEq (AId (MkId "x")) (AId (MkId "x"))) (CSeq (CIf (BAnd (BLe (AId (MkId "z")) (AMult (AId (MkId "z")) (AId (MkId "z")))) (BNot (BEq (AId (MkId "x")) (ANum 2)))) (CSeq (CAss (MkId "x") (AId (MkId "z"))) (CAss (MkId "y") (AId (MkId "z")))) CSkip) CSkip)) (CAss (MkId "x") (AId (MkId "z"))))), []) : OptionE (Com, List String) ```
Idris
5
diseraluca/software-foundations
src/ImpParser.lidr
[ "MIT" ]
export default { html: ` <button>off</button> <button>on</button> <button>off</button> <p>on: 1</p> `, async test({ assert, component, target, window }) { const buttons = target.querySelectorAll('button'); const event = new window.MouseEvent('click'); await buttons[0].dispatchEvent(event); assert.htmlEqual(target.innerHTML, ` <button>on</button> <button>on</button> <button>off</button> <p>on: 2</p> `); await buttons[2].dispatchEvent(event); assert.htmlEqual(target.innerHTML, ` <button>on</button> <button>on</button> <button>on</button> <p>on: 3</p> `); assert.deepEqual(component.switches, [ { on: true }, { on: true }, { on: true } ]); } };
JavaScript
4
Theo-Steiner/svelte
test/runtime/samples/event-handler-each-context-invalidation/_config.js
[ "MIT" ]
from test.test_tools import load_tests import unittest unittest.main()
Python
2
shawwn/cpython
Lib/test/test_tools/__main__.py
[ "0BSD" ]
[source,options="nowrap"] ---- [{"id":-3,"name":"a third inactive project","active":false,"projectLeads":[{"id":-1,"name":"a first test lead and user","userId":"tlead1"},{"id":-2,"name":"another second lead","userId":"tlead2"}]},{"id":-2,"name":"a second active project","active":true,"projectLeads":[{"id":-1,"name":"a first test lead and user","userId":"tlead1"}]},{"id":-1,"name":"a first active project","active":true,"projectLeads":[{"id":-1,"name":"a first test lead and user","userId":"tlead1"},{"id":-2,"name":"another second lead","userId":"tlead2"}]}] ----
AsciiDoc
2
MalcolmScoffable/openapi-generator
modules/openapi-generator/src/test/resources/3_0/asciidoc/generated-snippets/rest/project/GET/response-body.adoc
[ "Apache-2.0" ]
MODULE = Agar::PixelFormat PACKAGE = Agar::PixelFormat PREFIX = AG_ PROTOTYPES: ENABLE VERSIONCHECK: DISABLE Agar::PixelFormat newRGB(package, depth, Rmask, Gmask, Bmask) const char *package int depth Uint32 Rmask Uint32 Gmask Uint32 Bmask PREINIT: AG_PixelFormat *pf; CODE: pf = AG_Malloc(sizeof(AG_PixelFormat)); AG_PixelFormatRGB(pf, depth, Rmask, Gmask, Bmask); RETVAL = pf; OUTPUT: RETVAL Agar::PixelFormat newRGBA(package, depth, Rmask, Gmask, Bmask, Amask) const char *package int depth Uint32 Rmask Uint32 Gmask Uint32 Bmask Uint32 Amask PREINIT: AG_PixelFormat *pf; CODE: pf = AG_Malloc(sizeof(AG_PixelFormat)); AG_PixelFormatRGBA(pf, depth, Rmask, Gmask, Bmask, Amask); RETVAL = pf; OUTPUT: RETVAL Agar::PixelFormat newIndexed(package, depth) const char *package int depth PREINIT: AG_PixelFormat *pf; CODE: pf = AG_Malloc(sizeof(AG_PixelFormat)); AG_PixelFormatIndexed(pf, depth); RETVAL = pf; OUTPUT: RETVAL Agar::PixelFormat newGrayscale(package, depth) const char *package int depth PREINIT: AG_PixelFormat *pf; CODE: pf = AG_Malloc(sizeof(AG_PixelFormat)); AG_PixelFormatGrayscale(pf, depth); RETVAL = pf; OUTPUT: RETVAL Agar::PixelFormat newStandard(package) const char *package CODE: RETVAL = AG_PixelFormatDup(agSurfaceFmt); OUTPUT: RETVAL Uint32 mapRGB(pf, r, g, b) Agar::PixelFormat pf Uint8 r Uint8 g Uint8 b CODE: RETVAL = AG_MapPixel32_RGB8(pf, r,g,b); OUTPUT: RETVAL Uint32 mapRGBA(pf, r, g, b, a) Agar::PixelFormat pf Uint8 r Uint8 g Uint8 b Uint8 a CODE: RETVAL = AG_MapPixel32_RGBA8(pf, r,g,b,a); OUTPUT: RETVAL void getRGB(pf, pixel) Agar::PixelFormat pf Uint32 pixel PREINIT: Uint8 r, g, b; PPCODE: AG_GetColor32_RGB8(pixel, pf, &r,&g,&b); if (GIMME_V == G_SCALAR) { XPUSHs(newSVpvf("#%02x%02x%02x", r,g,b)); } else { EXTEND(SP, 3); PUSHs(newSViv(r)); PUSHs(newSViv(g)); PUSHs(newSViv(b)); } void getRGBA(pf, pixel) Agar::PixelFormat pf Uint32 pixel PREINIT: Uint8 r, g, b, a; PPCODE: AG_GetColor32_RGBA8(pixel, pf, &r,&g,&b,&a); if (GIMME_V == G_SCALAR) { XPUSHs(newSVpvf("#%02x%02x%02x%02x", r,g,b,a)); } else { EXTEND(SP, 4); PUSHs(newSViv(r)); PUSHs(newSViv(g)); PUSHs(newSViv(b)); PUSHs(newSViv(a)); } void DESTROY(pf) Agar::PixelFormat pf CODE: AG_PixelFormatFree(pf);
XS
4
auzkok/libagar
p5-Agar/Agar/PixelFormat.xs
[ "BSD-2-Clause" ]
#var $const1 <[13] i8> [ 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 10, 0 ] var $fconst1 <[18] f64> = [ 1007, 707, -273, 75, 0113, 0x4b, 75u, 75l, 75ul, 75lu, 3.1425926, 6.02e23, 6.02e+23, 1.6e-19, 3.0, 3.14159, 6.02e23, .233 ] func $printf (var %p1 <* i8>)void func $main ( ) i32 { call &printf (addrof a32 $fconst1) call &printf (conststr ptr "\"hello maple\"", conststr a32 "\nworld\n") # 你好: E4 BD A0 E5 A5 BD 中国: E4 B8 AD E5 9B BD call &printf (conststr16 ptr "\xE4\xBD\xA0\xE5\xA5\xBD", conststr16 a32 "\xE4\xB8\xAD\xE5\x9B\xBD") return (constval i32 0) } # EXEC: %irbuild Main.mpl # EXEC: %irbuild Main.irb.mpl # EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl
Maple
2
harmonyos-mirror/OpenArkCompiler-test
test/testsuite/irbuild_test/I0079-mapleall-irbuild-edge-testconst/Main.mpl
[ "MulanPSL-1.0" ]
#version 310 es layout (local_size_x = 8, local_size_y = 8) in; layout (binding = 0) readonly buffer InBufY { uvec2 data[]; } in_buf_y; layout (binding = 1) readonly buffer InBufUV { uvec2 data[]; } in_buf_uv; layout (binding = 2) readonly buffer GaussScaleBufY { uint data[]; } gaussscale_buf_y; layout (binding = 3) readonly buffer GaussScaleBufUV { uint data[]; } gaussscale_buf_uv; layout (binding = 4) writeonly buffer OutBufY { uvec2 data[]; } out_buf_y; layout (binding = 5) writeonly buffer OutBufUV { uvec2 data[]; } out_buf_uv; uniform uint in_img_width; uniform uint in_img_height; uniform uint in_offset_x; uniform uint gaussscale_img_width; uniform uint gaussscale_img_height; uniform uint merge_width; // normalization of half gray level const float norm_half_gl = 128.0f / 255.0f; void lap_trans_y (uvec2 y_id, uvec2 gs_id); void lap_trans_uv (uvec2 uv_id, uvec2 gs_id); void main () { uvec2 g_id = gl_GlobalInvocationID.xy; uvec2 y_id = uvec2 (g_id.x, g_id.y * 4u); y_id.x = clamp (y_id.x, 0u, merge_width - 1u); uvec2 gs_id = uvec2 (g_id.x, g_id.y * 2u); gs_id.x = clamp (gs_id.x, 0u, gaussscale_img_width - 1u); lap_trans_y (y_id, gs_id); y_id.y += 2u; gs_id.y += 1u; lap_trans_y (y_id, gs_id); uvec2 uv_id = uvec2 (y_id.x, g_id.y * 2u); gs_id.y = g_id.y; lap_trans_uv (uv_id, gs_id); } void lap_trans_y (uvec2 y_id, uvec2 gs_id) { y_id.y = clamp (y_id.y, 0u, in_img_height - 1u); gs_id.y = clamp (gs_id.y, 0u, gaussscale_img_height - 1u); uint y_idx = y_id.y * in_img_width + in_offset_x + y_id.x; uvec2 in_pack = in_buf_y.data[y_idx]; vec4 in0 = unpackUnorm4x8 (in_pack.x); vec4 in1 = unpackUnorm4x8 (in_pack.y); uint gs_idx = gs_id.y * gaussscale_img_width + gs_id.x; vec4 gs0 = unpackUnorm4x8 (gaussscale_buf_y.data[gs_idx]); vec4 gs1 = unpackUnorm4x8 (gaussscale_buf_y.data[gs_idx + 1u]); gs1 = (gs_id.x == gaussscale_img_width - 1u) ? gs0.wwww : gs1; vec4 inter = (gs0 + vec4 (gs0.yzw, gs1.x)) * 0.5f; vec4 inter00 = vec4 (gs0.x, inter.x, gs0.y, inter.y); vec4 inter01 = vec4 (gs0.z, inter.z, gs0.w, inter.w); vec4 lap0 = (in0 - inter00) * 0.5f + norm_half_gl; vec4 lap1 = (in1 - inter01) * 0.5f + norm_half_gl; lap0 = clamp (lap0, 0.0f, 1.0f); lap1 = clamp (lap1, 0.0f, 1.0f); uint out_idx = y_id.y * merge_width + y_id.x; out_buf_y.data[out_idx] = uvec2 (packUnorm4x8 (lap0), packUnorm4x8 (lap1)); y_idx = (y_id.y >= in_img_height - 1u) ? y_idx : y_idx + in_img_width; in_pack = in_buf_y.data[y_idx]; in0 = unpackUnorm4x8 (in_pack.x); in1 = unpackUnorm4x8 (in_pack.y); gs_idx = (gs_id.y >= gaussscale_img_height - 1u) ? gs_idx : gs_idx + gaussscale_img_width; gs0 = unpackUnorm4x8 (gaussscale_buf_y.data[gs_idx]); gs1 = unpackUnorm4x8 (gaussscale_buf_y.data[gs_idx + 1u]); gs1 = (gs_id.x == gaussscale_img_width - 1u) ? gs0.wwww : gs1; inter = (gs0 + vec4 (gs0.yzw, gs1.x)) * 0.5f; vec4 inter10 = (inter00 + vec4 (gs0.x, inter.x, gs0.y, inter.y)) * 0.5f; vec4 inter11 = (inter01 + vec4 (gs0.z, inter.z, gs0.w, inter.w)) * 0.5f; lap0 = (in0 - inter10) * 0.5f + norm_half_gl; lap1 = (in1 - inter11) * 0.5f + norm_half_gl; lap0 = clamp (lap0, 0.0f, 1.0f); lap1 = clamp (lap1, 0.0f, 1.0f); out_idx += merge_width; out_buf_y.data[out_idx] = uvec2 (packUnorm4x8 (lap0), packUnorm4x8 (lap1)); } void lap_trans_uv (uvec2 uv_id, uvec2 gs_id) { uv_id.y = clamp (uv_id.y, 0u, in_img_height / 2u - 1u); gs_id.y = clamp (gs_id.y, 0u, gaussscale_img_height / 2u - 1u); uint uv_idx = uv_id.y * in_img_width + in_offset_x + uv_id.x; uvec2 in_pack = in_buf_uv.data[uv_idx]; vec4 in0 = unpackUnorm4x8 (in_pack.x); vec4 in1 = unpackUnorm4x8 (in_pack.y); uint gs_idx = gs_id.y * gaussscale_img_width + gs_id.x; vec4 gs0 = unpackUnorm4x8 (gaussscale_buf_uv.data[gs_idx]); vec4 gs1 = unpackUnorm4x8 (gaussscale_buf_uv.data[gs_idx + 1u]); gs1 = (gs_id.x == gaussscale_img_width - 1u) ? gs0.zwzw : gs1; vec4 inter = (gs0 + vec4 (gs0.zw, gs1.xy)) * 0.5f; vec4 inter00 = vec4 (gs0.xy, inter.xy); vec4 inter01 = vec4 (gs0.zw, inter.zw); vec4 lap0 = (in0 - inter00) * 0.5f + norm_half_gl; vec4 lap1 = (in1 - inter01) * 0.5f + norm_half_gl; lap0 = clamp (lap0, 0.0f, 1.0f); lap1 = clamp (lap1, 0.0f, 1.0f); uint out_idx = uv_id.y * merge_width + uv_id.x; out_buf_uv.data[out_idx] = uvec2 (packUnorm4x8 (lap0), packUnorm4x8 (lap1)); uv_idx = (uv_id.y >= (in_img_height / 2u - 1u)) ? uv_idx : uv_idx + in_img_width; in_pack = in_buf_uv.data[uv_idx]; in0 = unpackUnorm4x8 (in_pack.x); in1 = unpackUnorm4x8 (in_pack.y); gs_idx = (gs_id.y >= (gaussscale_img_height / 2u - 1u)) ? gs_idx : gs_idx + gaussscale_img_width; gs0 = unpackUnorm4x8 (gaussscale_buf_uv.data[gs_idx]); gs1 = unpackUnorm4x8 (gaussscale_buf_uv.data[gs_idx + 1u]); gs1 = (gs_id.x == gaussscale_img_width - 1u) ? gs0.zwzw : gs1; inter = (gs0 + vec4 (gs0.zw, gs1.xy)) * 0.5f; vec4 inter10 = (inter00 + vec4 (gs0.xy, inter.xy)) * 0.5f; vec4 inter11 = (inter01 + vec4 (gs0.zw, inter.zw)) * 0.5f; lap0 = (in0 - inter10) * 0.5f + norm_half_gl; lap1 = (in1 - inter11) * 0.5f + norm_half_gl; lap0 = clamp (lap0, 0.0f, 1.0f); lap1 = clamp (lap1, 0.0f, 1.0f); out_idx += merge_width; out_buf_uv.data[out_idx] = uvec2 (packUnorm4x8 (lap0), packUnorm4x8 (lap1)); }
Slash
4
zongwave/libxcam
shaders/glsl/shader_lap_trans_pyr.comp.sl
[ "Apache-2.0" ]
notrly foo shh 1 but shh 2 wow
Dogescript
0
joeratt/dogescript
test/spec/notrly/notrly-but/source.djs
[ "MIT" ]
// @target: ES6 // @noEmitHelpers: true type PromiseAlias<T> = Promise<T>; async function f(): PromiseAlias<void> { }
TypeScript
3
nilamjadhav/TypeScript
tests/cases/conformance/async/es6/asyncAliasReturnType_es6.ts
[ "Apache-2.0" ]
DROP TABLE users IF EXISTS
SQL
1
nicchagil/spring-framework
spring-jdbc/src/test/resources/org/springframework/jdbc/datasource/init/drop-users-schema.sql
[ "Apache-2.0" ]
// sun + cover bottom part // move sun up or down - sync with music? // mov: 0 //move 0,mov,0 // move back move 0,0,-60 push // down fill color gray move 0,5,0 sphereDetail 32 //sphere 20 do 5 times rotate wave(200)*100 scale 1.1 color hsv(wave(1000)*200,255,255) box 10 + (20*F1) end pop fill color hsv(250,255,50) move 0,16.5, 25 box 100,30,0
Cycript
3
marcinbiegun/creativecoding-sketches
Cyril/data/code_horizon/3.cy
[ "MIT" ]
/* * This software is Copyright (c) 2016 Denis Burykin * [denis_burykin yahoo com], [denis-burykin2014 yandex ru] * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without * modification, are permitted. * */ `ifndef _DESCRYPT_VH_ `define _DESCRYPT_VH_ `define SALT_NBITS 12 `define SALT_MSB `SALT_NBITS - 1 `define CRYPT_COUNT 25 `define CRYPT_COUNTER_NBITS 5 // Hash storage. MSB=9: 1023 hashes `define RAM_ADDR_MSB 10 // Each core has up to NUM_BATCHES in flight, each batch // contain NUM_CRYPT_INSTANSES items. // * 1 batch in descrypt instances // * 1 batch in comparator // * 1-2 batches in core's output registers `define NUM_BATCHES 4 `define NUM_BATCHES_MSB `MSB(`NUM_BATCHES-1) // Arbiter processes that many pkt_id's at once. `define NUM_PKTS 2 `define NUM_PKTS_MSB `MSB(`NUM_PKTS-1) // Max. number of batches in packet `define PKT_BATCHES_MSB 31 // Compare only first 35 bits of hash `define COMPARE_35_BIT `ifdef COMPARE_35_BIT `define DIN_MSB 56 `define HASH_MSB 34 `else `define DIN_MSB 64 `define HASH_MSB 63 `endif `define GLOBAL_SALT_MSB 11 `define GLOBAL_SALT_LSB 10 `endif
SystemVerilog
4
bourbon-hunter/OSCPRepo
Tools/JohnTheRipper-bleeding-jumbo/src/ztex/fpga-descrypt/descrypt/descrypt_core/descrypt.vh
[ "MIT" ]
'********************************************************************* '** (c) 2016-2017 Roku, Inc. All content herein is protected by U.S. '** copyright and other applicable intellectual property laws and may '** not be copied without the express permission of Roku, Inc., which '** reserves all rights. Reuse of any of this content for any purpose '** without the permission of Roku, Inc. is strictly prohibited. '********************************************************************* sub init() 'we use a simple LabelList for a menu m.list = m.top.FindNode("list") m.list.observeField("itemSelected", "onItemSelected") m.list.SetFocus(true) 'descriptor for the menu items itemList = [ { title: "Roku ad server (default server URL, single pre-roll)" url: "" 'point to your own ad server if doing "inventory split" revenue share } ] ' compile into a ContentNode structure listNode = CreateObject("roSGNode", "ContentNode") for each item in itemList: nod = CreateObject("roSGNode", "ContentNode") nod.setFields(item) listNode.appendChild(nod) next m.list.content = listNode end sub sub onItemSelected() m.list.SetFocus(false) ' un-set focus to avoid creating multiple players on user tapping twice menuItem = m.list.content.getChild(m.list.itemSelected) videoContent = { streamFormat: "mp4", titleSeason: "Art21 Season 3", title: "Place", url: "http://roku.cpl.delvenetworks.com/media/59021fabe3b645968e382ac726cd6c7b/decbe34b64ea4ca281dc09997d0f23fd/aac0cfc54ae74fdfbb3ba9a2ef4c7080/117_segment_2_twitch__nw_060515.mp4", 'used for raf.setContentGenre(). For ads provided by the Roku ad service, see docs on 'Roku Genre Tags' categories: ["Documentary"] 'Roku mandates that all channels enable Nielsen DAR nielsen_app_id: "P2871BBFF-1A28-44AA-AF68-C7DE4B148C32" 'required, put "P2871BBFF-1A28-44AA-AF68-C7DE4B148C32", Roku's default appId if not having ID from Nielsen nielsen_genre: "DO" 'required, put "GV" if dynamic genre or special circumstances (e.g. games) nielsen_program_id: "Art21" 'movie title or series name length: 3220 'in seconds; } ' compile into a VideoContent node content = CreateObject("roSGNode", "VideoContent") content.setFields(videoContent) content.ad_url = menuItem.url if m.Player = invalid: m.Player = m.top.CreateChild("Player") m.Player.observeField("state", "PlayerStateChanged") end if 'start the player m.Player.content = content m.Player.visible = true m.Player.control = "play" end sub sub PlayerStateChanged() print "EntryScene: PlayerStateChanged(), state = "; m.Player.state if m.Player.state = "done" or m.Player.state = "stop" m.Player.visible = false m.list.setFocus(true) 'NB. the player took the focus away, so get it back end if end sub
Brightscript
5
khangh/samples
advertising/RAF4RSG-sample-master/components/EntryScene.brs
[ "MIT" ]
<html> <body> <h3>尊敬的, ${loginName}, 您好!</h3> 欢迎加入快乐学习网! 您在快乐学习网注册用户已激活成功。 欢迎您使用paascloud快乐学习网, 祝您生活愉快. 如果您有任何问题或建议, 请发送邮件到:paascloud.net@gmail.com paascloud.net ${dateTime} </body> </html>
FreeMarker
2
ouyangchangxiu/paascloud-master
paascloud-provider/paascloud-provider-uac/src/main/resources/templates/email/activeUserSuccessTemplate.ftl
[ "Apache-2.0" ]
vcl 4.0; backend default { .host = "{{cfg.backend.host}}"; .port = "{{cfg.backend.port}}"; .max_connections = {{cfg.backend.max_connections}}; }
VCL
3
johnjelinek/core-plans
varnish/config/varnish.default.vcl
[ "Apache-2.0" ]
{ width: 600, height: 300, outPath: './image.mp4', defaults: { transition: null, duration: 0.2, }, clips: [ { layers: [{ type: 'image', path: './assets/pano.jpg' }] }, { layers: [{ type: 'image', path: './assets/vertical.jpg' }] }, { layers: [{ type: 'fill-color', color: 'white' }, { type: 'image', path: './assets/pano.jpg', resizeMode: 'contain' }] }, { layers: [{ type: 'fill-color', color: 'white' }, { type: 'image', path: './assets/vertical.jpg', resizeMode: 'contain' }] }, { layers: [{ type: 'image', path: './assets/pano.jpg', resizeMode: 'cover' }] }, { layers: [{ type: 'image', path: './assets/vertical.jpg', resizeMode: 'cover' }] }, { layers: [{ type: 'image', path: './assets/pano.jpg', resizeMode: 'stretch' }] }, { layers: [{ type: 'image', path: './assets/vertical.jpg', resizeMode: 'stretch' }] }, ], }
JSON5
2
aaverty/editly
examples/image.json5
[ "MIT" ]
-- start query 10 in stream 0 using template query10.tpl with v1 as ( select ws_bill_customer_sk as customer_sk from web_sales, date_dim where ws_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 4 and 4+3 union all select cs_ship_customer_sk as customer_sk from catalog_sales, date_dim where cs_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 4 and 4+3 ), v2 as ( select ss_customer_sk as customer_sk from store_sales, date_dim where ss_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 4 and 4+3 ) select cd_gender, cd_marital_status, cd_education_status, count(*) cnt1, cd_purchase_estimate, count(*) cnt2, cd_credit_rating, count(*) cnt3, cd_dep_count, count(*) cnt4, cd_dep_employed_count, count(*) cnt5, cd_dep_college_count, count(*) cnt6 from customer c join customer_address ca on (c.c_current_addr_sk = ca.ca_address_sk) join customer_demographics on (cd_demo_sk = c.c_current_cdemo_sk) left semi join v1 on (v1.customer_sk = c.c_customer_sk) left semi join v2 on (v2.customer_sk = c.c_customer_sk) where ca_county in ('Walker County','Richland County','Gaines County','Douglas County','Dona Ana County') group by cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating, cd_dep_count, cd_dep_employed_count, cd_dep_college_count order by cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating, cd_dep_count, cd_dep_employed_count, cd_dep_college_count limit 100 -- end query 10 in stream 0 using template query10.tpl
SQL
3
OlegPt/spark
sql/core/src/test/resources/tpcds-modifiedQueries/q10.sql
[ "Apache-2.0" ]
package cases; class VsHaxeIssue198 extends DisplayTestCase { /** 'foo.{-1-}${"foo.{-2-}".{-3-}}'; **/ @:funcCode function test() { // TODO // eq(true, noCompletionPoint(fields.bind(pos(1)))); // eq(true, noCompletionPoint(fields.bind(pos(2)))); eq(true, hasField(fields(pos(3)), "length", "Int")); } }
Haxe
3
Alan-love/haxe
tests/display/src/cases/VsHaxeIssue198.hx
[ "MIT" ]
#! /bin/sh -e # DP: <your description> dir= if [ $# -eq 3 -a "$2" = '-d' ]; then pdir="-d $3" dir="$3/" elif [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0 ;; -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 ;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 esac exit 0 From: "H.J. Lu" <hjl@lucon.org> Sender: gcc-patches-owner@gcc.gnu.org To: gcc-patches@gcc.gnu.org Subject: PATCH: PR target/30961: [4.1/4.2/4.3 regression] redundant reg/mem stores/moves Date: Mon, 27 Aug 2007 11:34:12 -0700 We start with (note:HI 3 4 22 2 NOTE_INSN_FUNCTION_BEG) (insn:HI 6 3 10 2 c.c:3 (set (reg:DF 58 [ <result> ]) (subreg:DF (reg/v:DI 59 [ in ]) 0)) 102 {*movdf_integer_rex64} (expr_list:REG_DEAD (reg/v:DI 59 [ in ]) (nil))) (insn:HI 10 6 16 2 c.c:7 (set (reg/i:DF 21 xmm0 [ <result> ]) (reg:DF 58 [ <result> ])) 102 {*movdf_integer_rex64} (expr_list:REG_DEAD (reg:DF 58 [ <result> ]) (nil))) (insn:HI 16 10 0 2 c.c:7 (use (reg/i:DF 21 xmm0 [ <result> ])) -1 (nil)) we are trying to allocate registers for insn 6 and we allocate xmm0 for the return value. Reload doesn't check if xmm0 can be used for DF 59, it allocates xmm1 for DF 59 and generates: Reloads for insn # 6 Reload 0: reload_in (DF) = (reg:DF 5 di) SSE_REGS, RELOAD_FOR_INPUT (opnum = 1), can't combine reload_in_reg: (subreg:DF (reg/v:DI 5 di [orig:59 in ] [59]) 0) reload_reg_rtx: (reg:DF 22 xmm1) ... (note:HI 4 1 3 2 [bb 2] NOTE_INSN_BASIC_BLOCK) (note:HI 3 4 22 2 NOTE_INSN_FUNCTION_BEG) (insn 22 3 23 2 c.c:3 (set (mem/c:DF (plus:DI (reg/f:DI 7 sp) (const_int -8 [0xfffffffffffffff8])) [0 S8 A8]) (reg:DF 5 di)) 102 {*movdf_integer_rex64} (nil)) (insn 23 22 6 2 c.c:3 (set (reg:DF 22 xmm1) (mem/c:DF (plus:DI (reg/f:DI 7 sp) (const_int -8 [0xfffffffffffffff8])) [0 S8 A8])) 102 {*movdf_integer_rex64} (nil)) (insn:HI 6 23 16 2 c.c:3 (set (reg:DF 21 xmm0 [orig:58 <result> ] [58]) (reg:DF 22 xmm1)) 102 {*movdf_integer_rex64} (nil)) (insn 16 6 21 2 c.c:7 (use (reg/i:DF 21 xmm0 [ <result> ])) -1 (nil)) This patch tries to use the destination register when reloading for input. It generates Reloads for insn # 6 Reload 0: reload_in (DF) = (reg:DF 5 di) SSE_REGS, RELOAD_FOR_INPUT (opnum = 1), can't combine reload_in_reg: (subreg:DF (reg/v:DI 5 di [orig:59 in ] [59]) 0) reload_reg_rtx: (reg:DF 21 xmm0) ... (note:HI 4 1 3 2 [bb 2] NOTE_INSN_BASIC_BLOCK) (note:HI 3 4 22 2 NOTE_INSN_FUNCTION_BEG) (insn 22 3 23 2 c.c:3 (set (mem/c:DF (plus:DI (reg/f:DI 7 sp) (const_int -8 [0xfffffffffffffff8])) [0 S8 A8]) (reg:DF 5 di)) 102 {*movdf_integer_rex64} (nil)) (insn 23 22 6 2 c.c:3 (set (reg:DF 21 xmm0) (mem/c:DF (plus:DI (reg/f:DI 7 sp) (const_int -8 [0xfffffffffffffff8])) [0 S8 A8])) 102 {*movdf_integer_rex64} (nil)) (insn:HI 6 23 10 2 c.c:3 (set (reg:DF 22 xmm1 [orig:58 <result> ] [58]) (reg:DF 21 xmm0)) 102 {*movdf_integer_rex64} (nil)) (insn:HI 10 6 16 2 c.c:7 (set (reg/i:DF 21 xmm0 [ <result> ]) (reg:DF 22 xmm1 [orig:58 <result> ] [58])) 102 {*movdf_integer_rex64} (nil)) (insn 16 10 21 2 c.c:7 (use (reg/i:DF 21 xmm0 [ <result> ])) -1 (nil)) H.J. ---- gcc/ 2007-08-27 H.J. Lu <hongjiu.lu@intel.com> PR target/30961 * reload1.c (find_reg): Favor the hard register in destination if it is usable and a memory location is needed for reload input. gcc/testsuite/ 2007-08-27 H.J. Lu <hongjiu.lu@intel.com> PR target/30961 * gcc.target/i386/pr30961-1.c: New. --- gcc/reload1.c.second 2007-08-27 09:35:08.000000000 -0700 +++ gcc/reload1.c 2007-08-27 09:36:33.000000000 -0700 @@ -1781,6 +1781,20 @@ find_reg (struct insn_chain *chain, int HARD_REG_SET not_usable; HARD_REG_SET used_by_other_reload; reg_set_iterator rsi; +#ifdef SECONDARY_MEMORY_NEEDED + rtx body = PATTERN (chain->insn); + unsigned int dest_reg = FIRST_PSEUDO_REGISTER; + + if (GET_CODE (body) == SET) + { + rtx dest = SET_DEST (body); + + if ((REG_P (dest) + || (GET_CODE (dest) == SUBREG + && REG_P (SUBREG_REG (dest))))) + dest_reg = reg_or_subregno (dest); + } +#endif COPY_HARD_REG_SET (not_usable, bad_spill_regs); IOR_HARD_REG_SET (not_usable, bad_spill_regs_global); @@ -1821,6 +1835,18 @@ find_reg (struct insn_chain *chain, int this_cost--; if (rl->out && REG_P (rl->out) && REGNO (rl->out) == regno) this_cost--; +#ifdef SECONDARY_MEMORY_NEEDED + /* If a memory location is needed for rl->in and dest_reg + is usable, we will favor it. */ + else if (dest_reg == regno + && rl->in + && REG_P (rl->in) + && REGNO (rl->in) < FIRST_PSEUDO_REGISTER + && SECONDARY_MEMORY_NEEDED (REGNO_REG_CLASS (REGNO (rl->in)), + rl->class, + rl->mode)) + this_cost = 0; +#endif if (this_cost < best_cost /* Among registers with equal cost, prefer caller-saved ones, or use REG_ALLOC_ORDER if it is defined. */ --- gcc/testsuite/gcc.target/i386/pr30961-1.c.second 2007-08-27 11:01:59.000000000 -0700 +++ gcc/testsuite/gcc.target/i386/pr30961-1.c 2007-08-27 11:02:51.000000000 -0700 @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target lp64 } */ +/* { dg-options "-O2" } */ + +double +convert (long long in) +{ + double f; + __builtin_memcpy( &f, &in, sizeof( in ) ); + return f; +} + +/* { dg-final { scan-assembler-not "movapd" } } */
Darcs Patch
4
a69/meta-arago-glsdk
meta-arago-extras/recipes-devtools/gcc/gcc-4.5/pr30961.dpatch
[ "MIT" ]
te %_NTTREE%\unittests\conhost.unit.tests.dll %*
Batchfile
0
Ghosty141/Terminal
src/host/runut.bat
[ "MIT" ]
(ns todomvc.components.todos-filters (:require [todomvc.session :as session])) (defn selected-class [display-type todos-display-type] (if (= display-type todos-display-type) "selected" "")) (defn component [] [:ul.filters [:li [:a {:class (selected-class :all @session/todos-display-type) :href "#/"} "All"]] [:li [:a {:class (selected-class :active @session/todos-display-type) :href "#/active"} "Active"]] [:li [:a {:class (selected-class :completed @session/todos-display-type) :href "#/completed"} "Completed"]]])
Clojure
4
dtelaroli/todomvc
examples/reagent/src/cljs/todomvc/components/todos_filters.cljs
[ "MIT" ]
diff --git a/sip/QtCore/qlist.sip b/sip/QtCore/qlist.sip index d387763..bbb2e08 100644 --- a/sip/QtCore/qlist.sip +++ b/sip/QtCore/qlist.sip @@ -343,8 +343,8 @@ template<TYPE1, TYPE2> %End }; %If (Qt_4_3_0 -) -// QList<QPair<double, double> > is implemented as a Python list of 2-element tuples. -%MappedType QList<QPair<double, double> > +// QList<QPair<float, float> > is implemented as a Python list of 2-element tuples. +%MappedType QList<QPair<float, float> > { %TypeHeaderCode #include <qlist.h> @@ -361,7 +361,7 @@ template<TYPE1, TYPE2> // Set the list elements. for (int i = 0; i < sipCpp->size(); ++i) { - const QPair<double, double> &p = sipCpp->at(i); + const QPair<float, float> &p = sipCpp->at(i); PyObject *pobj; if ((pobj = Py_BuildValue((char *)"dd", p.first, p.second)) == NULL) @@ -393,16 +393,16 @@ template<TYPE1, TYPE2> return 1; } - QList<QPair<double, double> > *ql = new QList<QPair<double, double> >; + QList<QPair<float, float> > *ql = new QList<QPair<float, float> >; for (SIP_SSIZE_T i = 0; i < len; ++i) { PyObject *tup = PySequence_ITEM(sipPy, i); - double first = PyFloat_AsDouble(PySequence_ITEM(tup, 0)); - double second = PyFloat_AsDouble(PySequence_ITEM(tup, 1)); + float first = PyFloat_AsDouble(PySequence_ITEM(tup, 0)); + float second = PyFloat_AsDouble(PySequence_ITEM(tup, 1)); - ql->append(QPair<double, double>(first, second)); + ql->append(QPair<float, float>(first, second)); } *sipCppPtr = ql; @@ -412,9 +412,9 @@ template<TYPE1, TYPE2> }; %End %If (Qt_4_3_0 -) -// QList<QPair<double, TYPE> > is implemented as a Python list of 2-element tuples. -template<double, TYPE> -%MappedType QList<QPair<double, TYPE> > +// QList<QPair<float, TYPE> > is implemented as a Python list of 2-element tuples. +template<float, TYPE> +%MappedType QList<QPair<float, TYPE> > { %TypeHeaderCode #include <qlist.h> @@ -431,7 +431,7 @@ template<double, TYPE> // Set the list elements. for (int i = 0; i < sipCpp->size(); ++i) { - const QPair<double, TYPE> &p = sipCpp->at(i); + const QPair<float, TYPE> &p = sipCpp->at(i); TYPE *t = new TYPE(p.second); PyObject *pobj; @@ -472,12 +472,12 @@ template<double, TYPE> return 1; } - QList<QPair<double, TYPE> > *ql = new QList<QPair<double, TYPE> >; + QList<QPair<float, TYPE> > *ql = new QList<QPair<float, TYPE> >; for (SIP_SSIZE_T i = 0; i < len; ++i) { PyObject *tup = PySequence_ITEM(sipPy, i); - double d; + float d; int state; d = PyFloat_AsDouble(PySequence_ITEM(tup, 0)); @@ -491,7 +491,7 @@ template<double, TYPE> return 0; } - ql->append(QPair<double, TYPE>(d, *t)); + ql->append(QPair<float, TYPE>(d, *t)); sipReleaseInstance(t, sipClass_TYPE, state); } @@ -551,8 +551,8 @@ template<double, TYPE> return sipGetState(sipTransferObj); %End }; -// QList<double> is implemented as a Python list of floats. -%MappedType QList<double> +// QList<float> is implemented as a Python list of floats. +%MappedType QList<float> { %TypeHeaderCode #include <qlist.h> @@ -590,7 +590,7 @@ template<double, TYPE> if (sipIsErr == NULL) return (len >= 0); - QList<double> *ql = new QList<double>; + QList<float> *ql = new QList<float>; for (SIP_SSIZE_T i = 0; i < len; ++i) ql->append(PyFloat_AsDouble(PySequence_ITEM(sipPy, i))); diff --git a/sip/QtCore/qvector.sip b/sip/QtCore/qvector.sip index d652bfe..dea5601 100644 --- a/sip/QtCore/qvector.sip +++ b/sip/QtCore/qvector.sip @@ -156,8 +156,8 @@ template<TYPE> return sipGetState(sipTransferObj); %End }; -// QVector<double> is implemented as a Python list of floats. -%MappedType QVector<double> +// QVector<float> is implemented as a Python list of floats. +%MappedType QVector<float> { %TypeHeaderCode #include <qvector.h> @@ -193,7 +193,7 @@ template<TYPE> if (sipIsErr == NULL) return PyList_Check(sipPy); - QVector<double> *ql = new QVector<double>; + QVector<float> *ql = new QVector<float>; for (SIP_SSIZE_T i = 0; i < PyList_GET_SIZE(sipPy); ++i) ql->append(PyFloat_AsDouble(PyList_GET_ITEM(sipPy, i))); @@ -203,9 +203,9 @@ template<TYPE> return sipGetState(sipTransferObj); %End }; -// QVector<QPair<double, TYPE> > is implemented as a Python list of 2-element tuples. +// QVector<QPair<float, TYPE> > is implemented as a Python list of 2-element tuples. template<TYPE> -%MappedType QVector<QPair<double, TYPE> > +%MappedType QVector<QPair<float, TYPE> > { %TypeHeaderCode #include <qvector.h> @@ -222,7 +222,7 @@ template<TYPE> // Set the list elements. for (int i = 0; i < sipCpp->size(); ++i) { - const QPair<double, TYPE> &p = sipCpp->at(i); + const QPair<float, TYPE> &p = sipCpp->at(i); TYPE *pt = new TYPE(p.second); PyObject *pobj; @@ -261,14 +261,14 @@ template<TYPE> return 1; } - QVector<QPair<double, TYPE> > *qv = new QVector<QPair<double, TYPE> >; + QVector<QPair<float, TYPE> > *qv = new QVector<QPair<float, TYPE> >; for (SIP_SSIZE_T i = 0; i < PyList_GET_SIZE(sipPy); ++i) { PyObject *tup = PyList_GET_ITEM(sipPy, i); int state; TYPE *s; - QPair<double, TYPE> p; + QPair<float, TYPE> p; p.first = PyFloat_AsDouble(PyTuple_GET_ITEM(tup, 0)); diff --git a/sip/QtGui/qbrush.sip b/sip/QtGui/qbrush.sip index 7813bec..3993ef1 100644 --- a/sip/QtGui/qbrush.sip +++ b/sip/QtGui/qbrush.sip @@ -151,7 +151,7 @@ public: QDataStream &operator>>(QDataStream &, QBrush & /Constrained/); QDataStream &operator<<(QDataStream &, const QBrush & /Constrained/); -typedef QVector<QPair<double, QColor> > QGradientStops; +typedef QVector<QPair<float, QColor> > QGradientStops; class QGradient { diff --git a/sip/QtGui/qgraphicsitemanimation.sip b/sip/QtGui/qgraphicsitemanimation.sip index f60107f..dbb7900 100644 --- a/sip/QtGui/qgraphicsitemanimation.sip +++ b/sip/QtGui/qgraphicsitemanimation.sip @@ -77,19 +77,19 @@ signals: public: %If (Qt_4_3_0 -) - QList<QPair<double, QPointF> > posList() const; + QList<QPair<float, QPointF> > posList() const; %End %If (Qt_4_3_0 -) - QList<QPair<double, double> > rotationList() const; + QList<QPair<float, float> > rotationList() const; %End %If (Qt_4_3_0 -) - QList<QPair<double, QPointF> > translationList() const; + QList<QPair<float, QPointF> > translationList() const; %End %If (Qt_4_3_0 -) - QList<QPair<double, QPointF> > scaleList() const; + QList<QPair<float, QPointF> > scaleList() const; %End %If (Qt_4_3_0 -) - QList<QPair<double, QPointF> > shearList() const; + QList<QPair<float, QPointF> > shearList() const; %End private: diff --git a/sip/QtGui/qpainterpath.sip b/sip/QtGui/qpainterpath.sip index 924174a..8fcb9e7 100644 --- a/sip/QtGui/qpainterpath.sip +++ b/sip/QtGui/qpainterpath.sip @@ -219,8 +219,8 @@ public: void setCurveThreshold(qreal threshold); qreal curveThreshold() const; void setDashPattern(Qt::PenStyle); - void setDashPattern(const QVector<double> &dashPattern); - QVector<double> dashPattern() const; + void setDashPattern(const QVector<float> &dashPattern); + QVector<float> dashPattern() const; QPainterPath createStroke(const QPainterPath &path) const; %If (Qt_4_3_0 -) void setDashOffset(qreal offset); diff --git a/sip/QtGui/qpen.sip b/sip/QtGui/qpen.sip index 0d78d8f..0cefacd 100644 --- a/sip/QtGui/qpen.sip +++ b/sip/QtGui/qpen.sip @@ -104,8 +104,8 @@ public: void setCapStyle(Qt::PenCapStyle pcs); Qt::PenJoinStyle joinStyle() const; void setJoinStyle(Qt::PenJoinStyle pcs); - QVector<double> dashPattern() const; - void setDashPattern(const QVector<double> &pattern); + QVector<float> dashPattern() const; + void setDashPattern(const QVector<float> &pattern); qreal miterLimit() const; void setMiterLimit(qreal limit); bool operator==(const QPen &p) const; diff --git a/sip/QtGui/qtextoption.sip b/sip/QtGui/qtextoption.sip index 2075e99..f748a63 100644 --- a/sip/QtGui/qtextoption.sip +++ b/sip/QtGui/qtextoption.sip @@ -75,8 +75,8 @@ public: typedef QFlags<QTextOption::Flag> Flags; QFlags<QTextOption::Flag> flags() const; qreal tabStop() const; - void setTabArray(QList<double> tabStops); - QList<double> tabArray() const; + void setTabArray(QList<float> tabStops); + QList<float> tabArray() const; void setUseDesignMetrics(bool b); bool useDesignMetrics() const; void setAlignment(Qt::Alignment aalignment);
Darcs Patch
4
JrCs/opendreambox
recipes/python/python-pyqt/04_qreal_api_fixes-for-4.4.3.dpatch
[ "MIT" ]
<!DOCTYPE html><html><head><title>Fortunes</title></head><body><table><tr><th>id</th><th>message</th></tr> <?php foreach ($data as $id => $value) : ?> <tr><td><?= $id ?></td><td><?= htmlspecialchars($value) ?></td></tr> <?php endforeach ?></table></body></html>
HTML+PHP
3
xsoheilalizadeh/FrameworkBenchmarks
frameworks/PHP/kumbiaphp/bench/app/views/_shared/templates/raw.phtml
[ "BSD-3-Clause" ]