From c0d95b4a054f8dadc6cbc98e6fa1efe02d5f6507 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 24 Aug 2016 10:19:11 -0400 Subject: [PATCH] Add copyright headers to src/current/ --- src/current/c1map.xsl | 18 +++++++++++++ src/current/c1map/c1nodes.xsl | 18 +++++++++++++ src/current/c1map/render.xsl | 18 +++++++++++++ src/current/c1map/transform.xsl | 18 +++++++++++++ src/current/c1map/valparse.xsl | 18 +++++++++++++ src/current/calc.xsd | 24 +++++++++++++++++ src/current/compile.xsl | 23 +++++++++++++--- src/current/compiler/fragments.xsl | 19 ++++++++++++- src/current/compiler/js-calc.xsl | 19 ++++++++++++- src/current/compiler/js.xsl | 19 ++++++++++++- src/current/compiler/linker.xsl | 21 +++++++++++++-- src/current/compiler/linker/log.xsl | 21 +++++++++++++-- src/current/compiler/map.xsl | 21 +++++++++++++-- src/current/compiler/validate.xsl | 21 +++++++++++++-- src/current/compiler/validate/domain.xsl | 19 ++++++++++++- src/current/compiler/validate/param.xsl | 19 ++++++++++++- src/current/compiler/worksheet.xsl | 21 +++++++++++++-- src/current/dot.xsl | 19 ++++++++++++- src/current/dot/attr-color.xsl | 18 +++++++++++++ src/current/dot/attr-extern.xsl | 19 ++++++++++++- src/current/dot/attr-keep.xsl | 19 ++++++++++++- src/current/dot/attr-shape.xsl | 19 ++++++++++++- src/current/dot/defnode-attr.xsl | 19 ++++++++++++- src/current/dot/defnode.xsl | 19 ++++++++++++- src/current/dot/depout.xsl | 18 +++++++++++++ src/current/dot/pkg-exec.xsl | 19 ++++++++++++- src/current/dot/pkg-obj.xsl | 19 ++++++++++++- src/current/include/calc-display.xsl | 19 ++++++++++++- src/current/include/depgen.xsl | 21 ++++++++++++++- src/current/include/display.xsl | 19 ++++++++++++- src/current/include/dslc-base.xsl | 18 +++++++++++++ src/current/include/entry-form.xsl | 19 ++++++++++++- src/current/include/orderizer.xsl | 19 ++++++++++++- src/current/include/preproc/domain.xsl | 19 ++++++++++++- src/current/include/preproc/eligclass.xsl | 19 ++++++++++++- src/current/include/preproc/expand.xsl | 19 ++++++++++++- src/current/include/preproc/macros.xsl | 19 ++++++++++++- src/current/include/preproc/package.xsl | 21 +++++++++++++-- src/current/include/preproc/path.xsl | 18 +++++++++++++ src/current/include/preproc/symtable.xsl | 19 ++++++++++++- src/current/include/preproc/template.xsl | 19 ++++++++++++- src/current/include/preprocess.xsl | 21 +++++++++++++-- src/current/include/util.xsl | 19 ++++++++++++- src/current/link.xsl | 21 +++++++++++++++ src/current/map.xsd | 21 +++++++++++++++ src/current/pkg-dep.xsl | 24 +++++++++++++---- src/current/scripts/entry-form.js | 19 +++++++++++++ .../src/com/lovullo/dslc/DslCompiler.java | 27 +++++++++++++++++++ src/current/standalone.xsl | 21 +++++++++++++-- src/current/summary.css | 15 +++++++++++ src/current/summary.xsl | 22 ++++++++++++++- src/current/tools/csv2xml | 16 +++++++++++ src/current/tools/csvi | 18 +++++++++++-- src/current/tools/csvm2csv | 22 ++++++++++++--- src/current/tools/gen-make | 17 +++++++++++- src/current/tools/lib/zipre.php | 18 +++++++++++++ src/current/tools/tdat2xml | 20 ++++++++++++++ src/current/tools/zipre | 16 ++++++++++- 58 files changed, 1072 insertions(+), 58 deletions(-) diff --git a/src/current/c1map.xsl b/src/current/c1map.xsl index 660fdf75..fbd59760 100644 --- a/src/current/c1map.xsl +++ b/src/current/c1map.xsl @@ -2,6 +2,24 @@ . + Will parse all attributes and text of the form "a{b}c", where `b' is some variable. --> diff --git a/src/current/calc.xsd b/src/current/calc.xsd index 0030aa73..9ff9f67a 100644 --- a/src/current/calc.xsd +++ b/src/current/calc.xsd @@ -1,4 +1,28 @@ + - . + This stylesheet should be included by whatever is doing the processing and is responsible for outputting the generated code in whatever manner is appropriate (inline JS, a file, etc). --> - . + This stylesheet should be included by whatever is doing the processing and is responsible for outputting the generated code in whatever manner is appropriate (inline JS, a file, etc). @@ -16,7 +34,6 @@ The generated code may not be optimal, but it may be processed by another system (e.g. Closure Compiler) to perform additional optimizations. --> - . + This stylesheet should be included by whatever is doing the processing and is responsible for outputting the generated code in whatever manner is appropriate (inline JS, a file, etc). --> - - - - - . + TODO: For core domains, validate src package path as well. (Right now, param types are polluting, and so this is not a problem.) --> - + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> - + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> . + Nodes do not need to be defined (DOT will generate them upon first reference); this defines nodes that require additional data associated with them. --> - + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> - + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> . + XSL does not provide every feature suitable for compilation (which is no suprise, since this was not its intended use case). As such, dslc provides additional features that are defined/abstracted within this file; every diff --git a/src/current/include/entry-form.xsl b/src/current/include/entry-form.xsl index 3d6b3c8b..fb673e91 100644 --- a/src/current/include/entry-form.xsl +++ b/src/current/include/entry-form.xsl @@ -1,8 +1,25 @@ + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> . + This is a powerful system that takes an immensely complex (and insurmountable) task out of the programmer's hands. In particular, the system: @@ -24,7 +42,6 @@ or questions in the UI are reordered; the system will simply re-calculate new classifications that yield desirable results. --> - . + The ultime goal is to implement typedefs as macros and move to a generic domain system that is much more powerful. --> - . + Here, the term "eligibility" means whether the package is eligible to be used in a result set basead on the values of its params within their respective domains and other factors such as the results of terminating classifications @@ -10,7 +28,6 @@ The goal of the eligibility classification is to create a cascading failure in the event of bad data. --> - . + This process is responsible for expanding shorthand and various other data into a consistent format for the compiler and other processes. --> - + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> - . + It is important that this table be generated after fully expanding all templates, macros, etc; otherwise, the table may be incomplete. @@ -41,7 +59,6 @@ to be useful, which will ensure that a package has to import the symbol explicitly in order to actually make use of it. --> - + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> - + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +--> + diff --git a/src/current/map.xsd b/src/current/map.xsd index d10d3ceb..10598c79 100644 --- a/src/current/map.xsd +++ b/src/current/map.xsd @@ -1,4 +1,25 @@ + - . + * * This file is used for direct interaction with the rater for testing purposes. * As such, much of it is a rushed implementation; it's a bit of a kluge and * could use some refactoring. diff --git a/src/current/src/com/lovullo/dslc/DslCompiler.java b/src/current/src/com/lovullo/dslc/DslCompiler.java index 8747b566..0dba835a 100644 --- a/src/current/src/com/lovullo/dslc/DslCompiler.java +++ b/src/current/src/com/lovullo/dslc/DslCompiler.java @@ -1,3 +1,30 @@ +/** + * TAME compiler fontend + * + * Copyright (C) 2016 LoVullo Associates, Inc. + * + * This file is part of the Liza Data Collection Framework + * + * liza is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * Starting the JVM and compiling the XSLT stylesheets incurs a prohibitive + * startup cost when compiling individual files (as is done with make). + * This works around that issue. + * + * Note that this current implemention does not allow for parallel builds. + * That will change. + */ package com.lovullo.dslc; diff --git a/src/current/standalone.xsl b/src/current/standalone.xsl index 8ce7f36d..9cacd367 100644 --- a/src/current/standalone.xsl +++ b/src/current/standalone.xsl @@ -1,7 +1,24 @@ . */ body { diff --git a/src/current/summary.xsl b/src/current/summary.xsl index a59510cb..c7117339 100644 --- a/src/current/summary.xsl +++ b/src/current/summary.xsl @@ -1,8 +1,28 @@ + Copyright (C) 2016 LoVullo Associates, Inc. + + This file is part of TAME. + + TAME is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + + This is the core reason why the DSL was originally written: to provide + extremely detailed renderings of all calculations. +--> . +## function columngen( header ) diff --git a/src/current/tools/csvi b/src/current/tools/csvi index 08d80e2a..6b9af78c 100755 --- a/src/current/tools/csvi +++ b/src/current/tools/csvi @@ -2,10 +2,24 @@ # # Performs interpolation for columns in a CSV and outputs the result # +# Copyright (C) 2016 LoVullo Associates, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# # Configurable values (use -vname=value from command line): # step - use predeterminated step instead of calculating from first two rows -# -# # +## function storeline() { diff --git a/src/current/tools/csvm2csv b/src/current/tools/csvm2csv index 410d9fac..3bcbc7b4 100755 --- a/src/current/tools/csvm2csv +++ b/src/current/tools/csvm2csv @@ -2,14 +2,29 @@ # # Compiles a "magic" CSV file into a normal CSV # +# Copyright (C) 2016 LoVullo Associates, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# # "Magic" CSVs simply exist to make life easier: they permit comments, blank # lines, variables, sub-delimiter expansion, and any number of ranges per line. # Ranges will be expanded in every combination, making rate tables highly # maintainable. # -# Variables are also supported when defined using :var=val. Variables may expand -# into ranges, 'cause they're awesome. Multiple variables may be delimited by -# semi-colons, as may multiple values. +# Variables are also supported when defined using :var=val. Variables may +# expand into ranges, 'cause they're awesome. Multiple variables may be +# delimited by semi-colons, as may multiple values. # # For example: # :foo=1--3 @@ -27,6 +42,7 @@ # 1, 5 # 1, 6 # ... +## function rangeout( i, m, j, me, orig ) diff --git a/src/current/tools/gen-make b/src/current/tools/gen-make index 3f59bfea..48f53bad 100755 --- a/src/current/tools/gen-make +++ b/src/current/tools/gen-make @@ -1,7 +1,22 @@ #!/bin/bash # # Generates Makefile containing dependencies for each package -# # +# +# Copyright (C) 2016 LoVullo Associates, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +## # windows machines may not have the tools to resolve a path, so let's do so # ourselves (TODO: there's better (and more performant) ways of doing this than diff --git a/src/current/tools/lib/zipre.php b/src/current/tools/lib/zipre.php index b4f22e1a..d0197946 100644 --- a/src/current/tools/lib/zipre.php +++ b/src/current/tools/lib/zipre.php @@ -1,4 +1,22 @@ . + */ function gen_re_quick( $data ) diff --git a/src/current/tools/tdat2xml b/src/current/tools/tdat2xml index db4e9b15..e08ca7c0 100755 --- a/src/current/tools/tdat2xml +++ b/src/current/tools/tdat2xml @@ -1,4 +1,24 @@ #!/usr/bin/env php +. + */ +?> . + * * I wanted to write this in Scheme (it's a perfect recursive application), but * I figured that other developers may get annoyed having to find a Scheme impl * that works for them...so...PHP it is... * - * * THIS SCRIPT EXPECTS THE DATA TO BE SORTED! This can be easily accomplished by * doing the following: * sort -d zipfile | ./zipre