Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* [DEV-6306] Add retry templateAustin Schaffer2020-02-203-0/+77
| | | | | | [DEV-6306] Add testing instructions to README.md [DEV-6306] Add assertion to retry template
* [DEV-6947] Add template to match UI valuesJoseph Frazer2020-01-311-1/+25
| | | | | | The UI values need to match AND the question needs to be visible. We do not have the visibility classifications yet, so we need to define externs to allow this to build.
* core/ui: Correct vector/cmatch import pathMike Gerwitz2019-11-271-1/+1
|
* core/states.xml: Remove old transition fileMike Gerwitz2019-11-271-1/+0
| | | | Everything should use core/state.
* core/test/vector (_define-vector_): Require descriptionMike Gerwitz2019-10-172-3/+5
| | | | We want things to require documentation when possible.
* vector/define: New package introducing _define-vector_Mike Gerwitz2019-10-173-0/+115
| | | | | This is intended to work around the issue of defining arbitrary vectors outside of a c:let.
* core: ui: Add _match-ui-*_ templatesMike Gerwitz2019-08-131-0/+36
| | | | | These are analaogus to the _match-*_ counterparts, but they convert @on@ into the question param and check against the applicability of the question.
* core/ui (_match-ui-applicable_): Account for applicabilityMike Gerwitz2019-07-301-1/+4
| | | | | | It doesn't makes sense to consider a question to be set if it's not even applicable. This also helps to remove a bunch of duplicate code where these templates are being used.
* core/vector/cmatch.xml (_classify-vector_): New templateMike Gerwitz2019-07-291-0/+40
| | | | This is the analog of _classify-scalar_.
* core/insurance (_credit_, _debit_)[@allow-zero@]: AddMike Gerwitz2019-03-191-0/+10
|
* core: Add _vfilter-mask_Mike Gerwitz2019-02-143-0/+287
| | | | | | * core/test/core/suite.xml: Import `vector/filter'. * core/test/core/vector/filter.xml: New package. * core/vector/filter.xml (_vfilter-mask_, _vfilter_mask): New template, function.
* core: Add missing _minreduce_ @isvector@ testMike Gerwitz2019-02-131-0/+27
| | | | core/test/core/vector/minmax.xml: Add missing @isvector@ test.
* core: vector/minmax/_minreduce_: New templateMike Gerwitz2019-02-133-3/+168
| | | | | | * test/core/suite.xml: Import `test/core/vector/minmax'. * test/core/vector/minmax.xml: New package. * vector/minmax.xml (_minreduce_, _minreduce): New template, function.
* Copyright year simplification and update to Ryan Specialty GroupMike Gerwitz2019-02-0756-112/+55
| | | | | | | | | This now uses year ranges, which I'll update annually. This also renames "R-T Specialty" to "Ryan Specialty Group". The latter is the parent company of the former. I was originally employed under the former when LoVullo Associates was purchased, by I now work for the parent company.
* core: Add _where-*_ query predicate templatesMike Gerwitz2019-02-044-35/+113
| | | | | | | | | | | | | | These provide a more pleasent abstraction than having to reference CMP_OP_* constants. * core/test/core/vector/interpolate.xml: {t:when=>t:where-eq}. * core/test/core/vector/table.xml: Likewise, but using the other variants where appropriate given the value of `@op'. * core/vector/interpolate.xml: Likewise. * core/vector/table.xml (_when_, _where_): Rename former to latter and provide deprecation warning. (_when-lt_, _when-lte_, _when-gt_, _when-gte_): Add abstractions. * src/current/rater.xsd: Permit template variable as tenplate name.
* core: Add comparison operators for table query predicatesMike Gerwitz2019-02-043-36/+294
| | | | | | | | | | | | | | | | | | This is fairly primitive support and it completely sidesteps the bisect algorithm for now. The next commit will abstract this a little bit further to make it less awkward to use. * core/test/core/vector/table.xml: New test cases. * core/vector/filter.xml (CmpOp): New typedef. (mfilter): Document that bisecting will not happen unless `CMP_OP_EQ' is used. Implement that restriction. [op]: New parameter. Provide it to `mrange'. (_mfilter, _mrange_cmp): Rename from `_mfilter'. Implement new comparison check based on `op' [op]: New argument. * core/vector/table.xml (_when_)[@op@]: New param. Add it to the produced vector. (_mquery): Unpack op (from `_when_') in call to `mfilter'.
* Use some modern shorthands for core/vector/{table,filter}Mike Gerwitz2019-02-042-121/+51
| | | | | | | | Just trying to clean up a little as I go to start to make it easier to understand. * core/vector/filter.xml: Use _when-*_ templates and c:recurse. * core/vector/table.xml: Likewise.
* core/vector/table: Add specification for main templatesMike Gerwitz2019-02-042-1/+220
| | | | | * core/test/core/suite.xml: Import core/test/core/vector/table. * core/test/core/vector/table.xml: New specification.
* core: Replace all occurrences of c:{set=>vector}Mike Gerwitz2019-02-018-32/+32
| | | | The former is deprecated and never made any sense at all.
* test/spec: Work around expand-sequence bugMike Gerwitz2019-02-011-20/+31
| | | | | | * core/test/spec.xml (_describe_): Enclose aggregate classification in a series of nested expand-sequence to work around bug (described in comment), which was causing test cases to not be compiled.
* [BC BREAK] rater/core/insurance (_premium_): Add zero and negative assertionsMike Gerwitz2019-01-021-3/+61
| | | | | | | | | | | This is a BC break since this generates assertions by default. To maintain BC, set `@allow-zero@' and `@allow-negative@' to `true' in existing template applications. * core/insurance.xml (assert_ignore_premium_zero, assert_ignore_premium_negative): New params. (_premium_): Generate assertions. [@allow-zero@, @allow-negative@]: New params.
* rater/core/insurance (_factor_): gt{=>e} for negative assertionsMike Gerwitz2019-01-021-2/+2
|
* core buildMike Gerwitz2018-11-082-0/+29
| | | | | | | | | | This is the start of a working build for core. * .gitignore: Ignore generated files from configuration and build. * build.xml: Copy from rater repo. This is the last remaining ant-based dependency and can be gotten rid of; see comments. * configure.ac: New file. * rater/build-aux, rater/src: New symlinks.
* core/COPYING: Remove duplicateMike Gerwitz2018-11-071-674/+0
| | | | | This is no longer necessary since tame-core was merged with this repo.
* core/test/core/insurance: Add missing descriptionsMike Gerwitz2018-10-291-9/+18
| | | | | | | | | This was broken by a previous commit, but was not noticed because the test cases aren't being compiled as part of the build yet! Now that we have tamed, that is an option. * test/core/insurance.xml: Add missing @desc@.
* numeric/convert (_endpoint_): Add @desc@v3.1.1Andrew Elbaneh2018-09-281-1/+6
|
* insurance (_premium_): Make @generates@ optionalv3.0.1Mark Goldsmith2018-09-241-2/+8
|
* [BC BREAK] insurance (_premium_): Make @desc@ requiredv3.0.0Mike Gerwitz2018-09-211-0/+14
| | | | * core/insurance.xml (_premium_)[@desc@]: Make required.
* insurance (_premium_): Add @yields@Mike Gerwitz2018-09-211-5/+22
| | | | | | * core/insurance.xml (_premium_)[@yields@]: New param with validations. Will enforce naming conventions. Update TODOs.
* insurance: Add _{credit,debit}_/@default@v2.18.3Mike Gerwitz2018-09-131-0/+10
| | | | | | | This is potentially dangerous, but is consistent with _factor_. * insurance.xml (_credit_, _debit_)[@default@]: New param, propagated to `_factor_'.
* param: New package with _param_ templateMike Gerwitz2018-09-131-0/+137
| | | | * param.xml: New package
* assert: Add _assert_/@neg-desc@Mike Gerwitz2018-09-131-2/+6
| | | | | | | * assert.xml (_assert_)[@neg-desc@]: New param to allow setting the description of the negative classification. This is especially useful when humans are going to be reading the assertion classifications; it can otherwise be very confusing.
* assert: _assert_/@neg{_=>-}* template paramsMike Gerwitz2018-09-131-4/+4
| | | | | | | | * assert.xml (_assert_)[@neg-as@, @neg-yields@]: Rename from `@neg_as@' and `@neg_yields' respectively. This renames these params to be consistent with modern standards. We want to do this before they're actually in use.
* insurance: Add _credit_ and _debit_Mike Gerwitz2018-09-111-0/+132
| | | | * insurance.xml (_credit_, _debit_): New templates.
* insurance (_factor_): Add @allow-negativeMike Gerwitz2018-09-111-2/+24
| | | | * insurance.xml (_factor_)[@allow-negative@]: New param.
* insurance (_factor_): Permit @yields onlyMike Gerwitz2018-09-111-15/+56
| | | | | * insurance.xml (_factor_): Permit @yields only. Otherwise, using a generator is required with these templates, which is not always desirable.
* insurance: Add missing map exportMike Gerwitz2018-09-111-0/+1
| | | | * insurance.xml: Add map import as export.
* base: Add maybe typeMike Gerwitz2018-09-111-8/+37
| | | | | * base.xml (maybe, nothing): New types. (boolean): Move into `maybe' as union member.
* state.xml: Add state-all yield stateAllMike Gerwitz2018-09-111-1/+2
| | | | * state.xml (stateAll): New yield to state-all.
* datetime: Assert on non-empty timestamp_currentMike Gerwitz2018-09-111-3/+12
| | | | | | | This won't be a problem in practice if nothing imports the package, so existing systems won't be affected. * datetime.xml: New assertion for timestamp_current.
* alias: Do not generate alias if name matches sourceMike Gerwitz2018-09-111-12/+24
| | | | | * alias.xml (_classify-alias_, _rate-alias_, _rate-each-alias_): Generate nothing if source matches alias name.
* assert: Add assert_ignore paramMike Gerwitz2018-09-111-0/+7
| | | | | | Makes life a bit easier when debugging. * assert.xml (assert_ignore): Add param.
* symbol: Add packageMike Gerwitz2018-09-113-0/+264
| | | | | | * symbol.xml: New package. * test/core/suite.xml: Import new symbol package. * test/core/symbol.xml: New test spec.
* state{s=>}.xmlMike Gerwitz2018-09-112-194/+195
| | | | I regret the original naming.
* ui/_match-ui-set_: Add templateMike Gerwitz2018-09-111-0/+21
| | | | * ui.xml (_match-ui-set_): New template.
* _classify-scalar_: Fix misspelled {yeilds=>yields}Mike Gerwitz2018-09-111-3/+3
| | | | * vector/cmatch.xml (_classify-scalar_): Typo fix {yeilds=>yields}.
* vector/arithmetic: Remove accidentally committed debug-to-consoleMike Gerwitz2018-09-111-3/+1
| | | | | | Noticed this when running a rater in an interactive terminal. * vector/arithmetic.xml (_mproduct): Remove `debug-to-console'.
* insurance/_factor_: Complete templateMike Gerwitz2018-09-111-8/+85
| | | | | * insurance.xml (_factor_): Enforce naming conventions; allow defaults; assert on zero values.
* convention: New package with _naming-convention_Mike Gerwitz2018-09-111-0/+59
|
* _fold-matrix_: Add templateMike Gerwitz2018-09-111-0/+32
| | | | * vector/fold.xml (_fold-matrix_): New template.