From 59cb694822ba7d2144f961115a6524fc1c19161e Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Tue, 21 May 2024 16:29:53 +0200 Subject: [PATCH 1/2] Add a workaround to link to Java Code Since all fixes are in one of three Java Classes I created a workaround to link to the Java Code using the GitHub search. --- README.md | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) diff --git a/README.md b/README.md index 5a1669d3..d71e0fb1 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,8 @@ Options: include(""[, ...]) ``` +[Java code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+include&type=code) + ##### `nothing` Does nothing. It is used for benchmarking in Catmandu. @@ -176,6 +178,8 @@ nothing() [Example in Playground](https://metafacture.org/playground/?example=nothing) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+nothing&type=code) + ##### `put_filemap` Defines an external map for [lookup](#lookup) from a file or a URL. Maps with more than 2 columns are supported but are reduced to a defined key and a value column. @@ -203,6 +207,8 @@ Options: - `key_column`: Defines the column to be used for keys. Uses zero index. (Default: `0`) - `value_column`: Defines the column to be used for values. Uses zero index. (Default: `1`) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+put_filemap&type=code) + ##### `put_map` Defines an internal map for [lookup](#lookup) from key/value pairs. @@ -217,6 +223,8 @@ put_map("", [Example in Playground](https://metafacture.org/playground/?example=put_map) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+put_map&type=code) + ##### `put_rdfmap` Defines an external RDF map for lookup from a file or an HTTP(S) resource. @@ -230,6 +238,8 @@ put_rdfmap("", "", target: "", select_lang [Example in Playground](https://metafacture.org/playground/?example=put_rdfmap) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+put_rdfmap&type=code) + ##### `put_var` Defines a single global variable that can be referenced with `$[]`. @@ -240,6 +250,8 @@ put_var("", "") [Example in Playground](https://metafacture.org/playground/?example=put_var) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+put_var&type=code) + ##### `put_vars` Defines multiple global variables that can be referenced with `$[]`. @@ -253,6 +265,8 @@ put_vars( [Example in Playground](https://metafacture.org/playground/?example=put_vars) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+put_vars&type=code) + #### Record-level functions ##### `add_field` @@ -265,6 +279,8 @@ add_field("", "") [Example in Playground](https://metafacture.org/playground/?example=add_field) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+add_field&type=code) + ##### `array` Converts a hash/object into an array. @@ -280,6 +296,8 @@ array("foo") # {"name":"value"} => ["name", "value"] ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+array&type=code) + ##### `call_macro` Calls a named macro, i.e. a list of statements that have been previously defined with the [`do put_macro`](#do-put_macro) bind. @@ -301,6 +319,8 @@ call_macro(""[, ...]) [Example in Playground](https://metafacture.org/playground/?example=call_macro) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+call_macro&type=code) + ##### `copy_field` Copies a field from an existing field. @@ -311,6 +331,7 @@ copy_field("", "") [Example in Playground](https://metafacture.org/playground/?example=copy_field) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+copy_field&type=code) ##### `format` @@ -322,6 +343,8 @@ Replaces the value with a formatted (`sprintf`-like) version. format("", "") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+format&type=code) + ##### `hash` Converts an array into a hash/object. @@ -336,6 +359,8 @@ hash("foo") # ["name", "value"] => {"name":"value"} ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+hash&type=code) + ##### `move_field` Moves a field from an existing field. Can be used to rename a field. @@ -346,6 +371,7 @@ move_field("", "") [Example in Playground](https://metafacture.org/playground/?example=move_field) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+move_field&type=code) ##### `parse_text` @@ -357,6 +383,8 @@ Parses a text into an array or hash of values. parse_text("", "") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+parse_text&type=code) + ##### `paste` Joins multiple field values into a new field. Can be combined with additional literal strings. @@ -380,6 +408,8 @@ paste("my.string", "~Hi", "a", "~how are you?") [Example in Playground](https://metafacture.org/playground/?example=paste) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+paste&type=code) + ##### `print_record` Prints the current record as JSON either to standard output or to a file. @@ -413,6 +443,8 @@ print_record(destination: "record-%2$s.json", id: "001", pretty: "true") print_record(destination: "record-%03d.json.gz", header: "After transformation: ") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+print_record&type=code) + ##### `random` Creates (or replaces) a field with a random number (less than the specified maximum). @@ -421,6 +453,8 @@ Creates (or replaces) a field with a random number (less than the specified maxi random("", "") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+random&type=code) + ##### `remove_field` Removes a field. @@ -431,6 +465,8 @@ remove_field("") [Example in Playground](https://metafacture.org/playground/?example=remove_field) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+remove_field&type=code) + ##### `rename` Replaces a regular expression pattern in subfield names of a field. Does not change the name of the source field itself. @@ -441,6 +477,8 @@ rename("", "", "") [Example in Playground](https://metafacture.org/playground/?example=rename) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+rename&type=code) + ##### `retain` Deletes all fields except the ones listed (incl. subfields). @@ -451,6 +489,8 @@ retain(""[, ...]) [Example in Playground](https://metafacture.org/playground/?example=retain) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+retain&type=code) + ##### `set_array` Creates a new array (with optional values). @@ -462,6 +502,8 @@ set_array("", ""[, ...]) [Example in Playground](https://metafacture.org/playground/?example=set_array) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+set_array&type=code) + ##### `set_field` Creates (or replaces) a field with a defined value. @@ -470,6 +512,8 @@ Creates (or replaces) a field with a defined value. set_field("", "") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+set_field&type=code) + ##### `set_hash` Creates a new hash (with optional values). @@ -479,6 +523,8 @@ set_hash("") set_hash("", "subfieldName": ""[, ...]) ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+set_hash&type=code) + ##### `timestamp` Creates (or replaces) a field with the current timestamp. @@ -493,6 +539,8 @@ Options: timestamp(""[, format: ""][, timezone: ""][, language: ""]) ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+timestamp&type=code) + ##### `vacuum` Deletes empty fields, arrays and objects. @@ -503,6 +551,8 @@ vacuum() [Example in Playground](https://metafacture.org/playground/?example=vacuum) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+vacuum&type=code) + #### Field-level functions ##### `append` @@ -515,6 +565,8 @@ append("", "") [Example in Playground](https://metafacture.org/playground/?example=append) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+append&type=code) + ##### `capitalize` Upcases the first character in a field value. @@ -525,6 +577,8 @@ capitalize("") [Example in Playground](https://metafacture.org/playground/?example=capitalize) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+capitalize&type=code) + ##### `count` Counts the number of elements in an array or a hash and replaces the field value with this number. @@ -533,6 +587,8 @@ Counts the number of elements in an array or a hash and replaces the field value count("") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+count&type=code) + ##### `downcase` Downcases all characters in a field value. @@ -543,6 +599,8 @@ downcase("") [Example in Playground](https://metafacture.org/playground/?example=downcase) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+downcase&type=code) + ##### `filter` Only keeps field values that match the regular expression pattern. Works only with array of strings/repeated fields. @@ -551,6 +609,8 @@ Only keeps field values that match the regular expression pattern. Works only wi filter("", "") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+filter&type=code) + ##### `flatten` Flattens a nested array field. @@ -561,6 +621,8 @@ flatten("") [Example in Playground](https://metafacture.org/playground/?example=flatten) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+flatten&type=code) + ##### `from_json` Replaces the string with its JSON deserialization. @@ -573,6 +635,8 @@ Options: from_json(""[, error_string: ""]) ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+from_json&type=code) + ##### `index` Returns the index position of a substring in a field and replaces the field value with this number. @@ -581,6 +645,8 @@ Returns the index position of a substring in a field and replaces the field valu index("", "") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+index&type=code) + ##### `isbn` Extracts an ISBN and replaces the field value with the normalized ISBN; optionally converts and/or validates the ISBN. @@ -597,6 +663,8 @@ isbn(""[, to: ""][, verify_check_digit: ""][, [Example in Playground](https://metafacture.org/playground/?example=isbn) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+isbn&type=code) + ##### `join_field` Joins an array of strings into a single string. @@ -607,6 +675,8 @@ join_field("", "") [Example in Playground](https://metafacture.org/playground/?example=join_field) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+join_field&type=code) + ##### `lookup` Looks up matching values in a map and replaces the field value with this match. [External files](#put_filemap), [internal maps](#put_map) as well as [RDF resources](#put_rdfmap) can be used. @@ -666,6 +736,8 @@ lookup("path.to.field", "map-name", __default: "NA") lookup("path.to.field", "map-name", print_unknown: "true", destination: "unknown.txt") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+lookup&type=code) + ##### `prepend` Adds a string at the beginning of a field value. @@ -676,6 +748,8 @@ prepend("", "") [Example in Playground](https://metafacture.org/playground/?example=prepend) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+prepend&type=code) + ##### `replace_all` Replaces a regular expression pattern in field values with a replacement string. Regexp capturing is possible; refer to capturing groups by number (`$`) or name (`${}`). @@ -686,6 +760,8 @@ replace_all("", "", "") [Example in Playground](https://metafacture.org/playground/?example=replace_all) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+replace_all&type=code) + ##### `reverse` Reverses the character order of a string or the element order of an array. @@ -694,6 +770,8 @@ Reverses the character order of a string or the element order of an array. reverse("") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+reverse&type=code) + ##### `sort_field` Sorts strings in an array. Alphabetically and A-Z by default. Optional numerical and reverse sorting. @@ -706,6 +784,8 @@ sort_field("", numeric: "true") [Example in Playground](https://metafacture.org/playground/?example=sort_field) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+sort_field&type=code) + ##### `split_field` Splits a string into an array and replaces the field value with this array. @@ -716,6 +796,8 @@ split_field("", "") [Example in Playground](https://metafacture.org/playground/?example=split_field) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+split_field&type=code) + ##### `substring` Replaces a string with its substring as defined by the start position (offset) and length. @@ -724,6 +806,8 @@ Replaces a string with its substring as defined by the start position (offset) a substring("", "", "") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+substring&type=code) + ##### `sum` Sums numbers in an array and replaces the field value with this number. @@ -732,6 +816,8 @@ Sums numbers in an array and replaces the field value with this number. sum("") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+sum&type=code) + ##### `to_json` Replaces the value with its JSON serialization. @@ -745,6 +831,8 @@ Options: to_json(""[, pretty: ""][, error_string: ""]) ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+to_json&type=code) + ##### `trim` Deletes whitespace at the beginning and the end of a field value. @@ -755,6 +843,8 @@ trim("") [Example in Playground](https://metafacture.org/playground/?example=trim) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+trim&type=code) + ##### `uniq` Deletes duplicate values in an array. @@ -765,6 +855,7 @@ uniq("") [Example in Playground](https://metafacture.org/playground/?example=uniq) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+uniq&type=code) ##### `upcase` @@ -776,6 +867,8 @@ upcase("") [Example in Playground](https://metafacture.org/playground/?example=upcase) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+upcase&type=code) + ##### `uri_encode` Encodes a field value as URI. Aka percent-encoding. @@ -795,6 +888,8 @@ E.g.: uri_encode("path.to.field", plus_for_space:"false", safe_chars:"") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+uri_encode&type=code) + ### Selectors #### `reject` @@ -809,12 +904,16 @@ end [Example in Playground](https://metafacture.org/playground/?example=reject) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+reject&type=code) + ### Binds #### `do list` Iterates over each element of an array. In contrast to Catmandu, it can also iterate over a single object or string. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixBind.java%2F+list&type=code) + ```perl do list(path: "") ... @@ -839,6 +938,8 @@ end Iterates over each _named_ element of an array (like [`do list`](#do-list) with a variable name). If multiple arrays are given, iterates over the _corresponding_ elements from each array (i.e., all elements with the same array index, skipping elements whose arrays have already been exhausted). +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixBind.java%2F+list_as&type=code) + ```perl do list_as(element_1: ""[, ...]) ... @@ -870,6 +971,8 @@ end [Example in Playground](https://metafacture.org/playground/?example=do_once) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixBind.java%2F+once&type=code) + In order to execute multiple blocks only once, tag them with unique identifiers: ```perl @@ -908,6 +1011,8 @@ call_macro(""[, ...]) [Example in Playground](https://metafacture.org/playground/?example=do_put_macro) +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixBind.java%2F+put_macro&type=code) + ### Conditionals Conditionals start with `if` in case of affirming the condition or `unless` rejecting the condition. @@ -944,36 +1049,52 @@ end Executes the functions if/unless the field contains the value. If it is an array or a hash all field values must contain the string. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+all_contain&type=code) + ##### `any_contain` Executes the functions if/unless the field contains the value. If it is an array or a hash one or more field values must contain the string. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+any_contain&type=code) + ##### `none_contain` Executes the functions if/unless the field does not contain the value. If it is an array or a hash none of the field values may contain the string. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+none_contain&type=code) + ##### `str_contain` Executes the functions if/unless the first string contains the second string. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+str_contain&type=code) + #### `equal` ##### `all_equal` Executes the functions if/unless the field value equals the string. If it is an array or a hash all field values must equal the string. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+all_equal&type=code) + ##### `any_equal` Executes the functions if/unless the field value equals the string. If it is an array or a hash one or more field values must equal the string. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+any_equal&type=code) + ##### `none_equal` Executes the functions if/unless the field value does not equal the string. If it is an array or a hash none of the field values may equal the string. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+none_equal&type=code) + ##### `str_equal` Executes the functions if/unless the first string equals the second string. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+str_equal&type=code) + #### `exists` Executes the functions if/unless the field exists. @@ -981,6 +1102,7 @@ Executes the functions if/unless the field exists. ```perl if exists("") ``` +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+exists&type=code) #### `in` @@ -988,6 +1110,8 @@ Executes the functions if/unless the field value [is contained in](https://perld _Also aliased as [`is_contained_in`](#is_contained_in)._ +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+in+%7B&type=code) + #### `is_contained_in` _Alias for [`in`](#in)._ @@ -996,22 +1120,32 @@ _Alias for [`in`](#in)._ Executes the functions if/unless the field value is an array. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_array&type=code) + #### `is_empty` Executes the functions if/unless the field value is empty. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_empty&type=code) + #### `is_false` Executes the functions if/unless the field value equals `false` or `0`. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_false&type=code) + #### `is_hash` _Alias for [`is_object`](#is_object)._ +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_hash&type=code) + #### `is_number` Executes the functions if/unless the field value is a number. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_number&type=code) + #### `is_object` Executes the functions if/unless the field value is a hash (object). @@ -1022,28 +1156,41 @@ _Also aliased as [`is_hash`](#is_hash)._ Executes the functions if/unless the field value is a string (and not a number). +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_string&type=code) + #### `is_true` Executes the functions if/unless the field value equals `true` or `1`. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_true&type=code) + + #### `match` ##### `all_match` Executes the functions if/unless the field value matches the regular expression pattern. If it is an array or a hash all field values must match the regular expression pattern. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+all_match&type=code) + ##### `any_match` Executes the functions if/unless the field value matches the regular expression pattern. If it is an array or a hash one or more field values must match the regular expression pattern. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+any_match&type=code) + ##### `none_match` Executes the functions if/unless the field value does not match the regular expression pattern. If it is an array or a hash none of the field values may match the regular expression pattern. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+none_match&type=code) + ##### `str_match` Executes the functions if/unless the string matches the regular expression pattern. +[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+str_match&type=code) + ## Xtext This repo has been originally set up with [Xtext](https://www.eclipse.org/Xtext/) 2.17.0 and Eclipse for Java 2019-03, following [https://www.eclipse.org/Xtext/documentation/104_jvmdomainmodel.html](https://www.eclipse.org/Xtext/documentation/104_jvmdomainmodel.html). From 3483c5433c32339df587be361de4d27982f58acf Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Tue, 21 May 2024 17:10:49 +0200 Subject: [PATCH 2/2] Adjust links as suggested by review by @blackwinter --- README.md | 150 +++++++++++++++++++++++++++--------------------------- 1 file changed, 75 insertions(+), 75 deletions(-) diff --git a/README.md b/README.md index d71e0fb1..c3b2b4e3 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ Options: include(""[, ...]) ``` -[Java code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+include&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+include+{") ##### `nothing` @@ -178,7 +178,7 @@ nothing() [Example in Playground](https://metafacture.org/playground/?example=nothing) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+nothing&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+nothing+{") ##### `put_filemap` @@ -207,7 +207,7 @@ Options: - `key_column`: Defines the column to be used for keys. Uses zero index. (Default: `0`) - `value_column`: Defines the column to be used for values. Uses zero index. (Default: `1`) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+put_filemap&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+put_filemap+{") ##### `put_map` @@ -223,7 +223,7 @@ put_map("", [Example in Playground](https://metafacture.org/playground/?example=put_map) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+put_map&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+put_map+{") ##### `put_rdfmap` @@ -238,7 +238,7 @@ put_rdfmap("", "", target: "", select_lang [Example in Playground](https://metafacture.org/playground/?example=put_rdfmap) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+put_rdfmap&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+put_rdfmap+{") ##### `put_var` @@ -250,7 +250,7 @@ put_var("", "") [Example in Playground](https://metafacture.org/playground/?example=put_var) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+put_var&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+put_var+{") ##### `put_vars` @@ -265,7 +265,7 @@ put_vars( [Example in Playground](https://metafacture.org/playground/?example=put_vars) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+put_vars&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+put_vars+{") #### Record-level functions @@ -279,7 +279,7 @@ add_field("", "") [Example in Playground](https://metafacture.org/playground/?example=add_field) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+add_field&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+add_field+{") ##### `array` @@ -296,7 +296,7 @@ array("foo") # {"name":"value"} => ["name", "value"] ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+array&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+array+{") ##### `call_macro` @@ -319,7 +319,7 @@ call_macro(""[, ...]) [Example in Playground](https://metafacture.org/playground/?example=call_macro) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+call_macro&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+call_macro+{") ##### `copy_field` @@ -331,7 +331,7 @@ copy_field("", "") [Example in Playground](https://metafacture.org/playground/?example=copy_field) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+copy_field&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+copy_field+{") ##### `format` @@ -343,7 +343,7 @@ Replaces the value with a formatted (`sprintf`-like) version. format("", "") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+format&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+format+{") ##### `hash` @@ -359,7 +359,7 @@ hash("foo") # ["name", "value"] => {"name":"value"} ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+hash&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+hash+{") ##### `move_field` @@ -371,7 +371,7 @@ move_field("", "") [Example in Playground](https://metafacture.org/playground/?example=move_field) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+move_field&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+move_field+{") ##### `parse_text` @@ -383,7 +383,7 @@ Parses a text into an array or hash of values. parse_text("", "") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+parse_text&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+parse_text+{") ##### `paste` @@ -408,7 +408,7 @@ paste("my.string", "~Hi", "a", "~how are you?") [Example in Playground](https://metafacture.org/playground/?example=paste) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+paste&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+paste+{") ##### `print_record` @@ -443,7 +443,7 @@ print_record(destination: "record-%2$s.json", id: "001", pretty: "true") print_record(destination: "record-%03d.json.gz", header: "After transformation: ") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+print_record&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+print_record+{") ##### `random` @@ -453,7 +453,7 @@ Creates (or replaces) a field with a random number (less than the specified maxi random("", "") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+random&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+random+{") ##### `remove_field` @@ -465,7 +465,7 @@ remove_field("") [Example in Playground](https://metafacture.org/playground/?example=remove_field) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+remove_field&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+remove_field+{") ##### `rename` @@ -477,7 +477,7 @@ rename("", "", "") [Example in Playground](https://metafacture.org/playground/?example=rename) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+rename&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+rename+{") ##### `retain` @@ -489,7 +489,7 @@ retain(""[, ...]) [Example in Playground](https://metafacture.org/playground/?example=retain) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+retain&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+retain+{") ##### `set_array` @@ -502,7 +502,7 @@ set_array("", ""[, ...]) [Example in Playground](https://metafacture.org/playground/?example=set_array) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+set_array&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+set_array+{") ##### `set_field` @@ -512,7 +512,7 @@ Creates (or replaces) a field with a defined value. set_field("", "") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+set_field&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+set_field+{") ##### `set_hash` @@ -523,7 +523,7 @@ set_hash("") set_hash("", "subfieldName": ""[, ...]) ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+set_hash&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+set_hash+{") ##### `timestamp` @@ -539,7 +539,7 @@ Options: timestamp(""[, format: ""][, timezone: ""][, language: ""]) ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+timestamp&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+timestamp+{") ##### `vacuum` @@ -551,7 +551,7 @@ vacuum() [Example in Playground](https://metafacture.org/playground/?example=vacuum) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+vacuum&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+vacuum+{") #### Field-level functions @@ -565,7 +565,7 @@ append("", "") [Example in Playground](https://metafacture.org/playground/?example=append) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+append&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+append+{") ##### `capitalize` @@ -577,7 +577,7 @@ capitalize("") [Example in Playground](https://metafacture.org/playground/?example=capitalize) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+capitalize&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+capitalize+{") ##### `count` @@ -587,7 +587,7 @@ Counts the number of elements in an array or a hash and replaces the field value count("") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+count&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+count+{") ##### `downcase` @@ -599,7 +599,7 @@ downcase("") [Example in Playground](https://metafacture.org/playground/?example=downcase) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+downcase&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+downcase+{") ##### `filter` @@ -609,7 +609,7 @@ Only keeps field values that match the regular expression pattern. Works only wi filter("", "") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+filter&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+filter+{") ##### `flatten` @@ -621,7 +621,7 @@ flatten("") [Example in Playground](https://metafacture.org/playground/?example=flatten) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+flatten&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+flatten+{") ##### `from_json` @@ -635,7 +635,7 @@ Options: from_json(""[, error_string: ""]) ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+from_json&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+from_json+{") ##### `index` @@ -645,7 +645,7 @@ Returns the index position of a substring in a field and replaces the field valu index("", "") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+index&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+index+{") ##### `isbn` @@ -663,7 +663,7 @@ isbn(""[, to: ""][, verify_check_digit: ""][, [Example in Playground](https://metafacture.org/playground/?example=isbn) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+isbn&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+isbn+{") ##### `join_field` @@ -675,7 +675,7 @@ join_field("", "") [Example in Playground](https://metafacture.org/playground/?example=join_field) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+join_field&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+join_field+{") ##### `lookup` @@ -736,7 +736,7 @@ lookup("path.to.field", "map-name", __default: "NA") lookup("path.to.field", "map-name", print_unknown: "true", destination: "unknown.txt") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+lookup&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+lookup+{") ##### `prepend` @@ -748,7 +748,7 @@ prepend("", "") [Example in Playground](https://metafacture.org/playground/?example=prepend) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+prepend&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+prepend+{") ##### `replace_all` @@ -760,7 +760,7 @@ replace_all("", "", "") [Example in Playground](https://metafacture.org/playground/?example=replace_all) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+replace_all&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+replace_all+{") ##### `reverse` @@ -770,7 +770,7 @@ Reverses the character order of a string or the element order of an array. reverse("") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+reverse&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+reverse+{") ##### `sort_field` @@ -784,7 +784,7 @@ sort_field("", numeric: "true") [Example in Playground](https://metafacture.org/playground/?example=sort_field) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+sort_field&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+sort_field+{") ##### `split_field` @@ -796,7 +796,7 @@ split_field("", "") [Example in Playground](https://metafacture.org/playground/?example=split_field) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+split_field&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+split_field+{") ##### `substring` @@ -806,7 +806,7 @@ Replaces a string with its substring as defined by the start position (offset) a substring("", "", "") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+substring&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+substring+{") ##### `sum` @@ -816,7 +816,7 @@ Sums numbers in an array and replaces the field value with this number. sum("") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+sum&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+sum+{") ##### `to_json` @@ -831,7 +831,7 @@ Options: to_json(""[, pretty: ""][, error_string: ""]) ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+to_json&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+to_json+{") ##### `trim` @@ -843,7 +843,7 @@ trim("") [Example in Playground](https://metafacture.org/playground/?example=trim) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+trim&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+trim+{") ##### `uniq` @@ -855,7 +855,7 @@ uniq("") [Example in Playground](https://metafacture.org/playground/?example=uniq) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+uniq&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+uniq+{") ##### `upcase` @@ -867,7 +867,7 @@ upcase("") [Example in Playground](https://metafacture.org/playground/?example=upcase) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+upcase&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+upcase+{") ##### `uri_encode` @@ -888,7 +888,7 @@ E.g.: uri_encode("path.to.field", plus_for_space:"false", safe_chars:"") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+uri_encode&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+uri_encode+{") ### Selectors @@ -904,7 +904,7 @@ end [Example in Playground](https://metafacture.org/playground/?example=reject) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixMethod.java%2F+reject&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+reject+{") ### Binds @@ -912,7 +912,7 @@ end Iterates over each element of an array. In contrast to Catmandu, it can also iterate over a single object or string. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixBind.java%2F+list&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixBind.java+"+list+{") ```perl do list(path: "") @@ -938,7 +938,7 @@ end Iterates over each _named_ element of an array (like [`do list`](#do-list) with a variable name). If multiple arrays are given, iterates over the _corresponding_ elements from each array (i.e., all elements with the same array index, skipping elements whose arrays have already been exhausted). -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixBind.java%2F+list_as&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixBind.java+"+list_as+{") ```perl do list_as(element_1: ""[, ...]) @@ -971,7 +971,7 @@ end [Example in Playground](https://metafacture.org/playground/?example=do_once) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixBind.java%2F+once&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixBind.java+"+once+{") In order to execute multiple blocks only once, tag them with unique identifiers: @@ -1011,7 +1011,7 @@ call_macro(""[, ...]) [Example in Playground](https://metafacture.org/playground/?example=do_put_macro) -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixBind.java%2F+put_macro&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixBind.java+"+put_macro+{") ### Conditionals @@ -1049,25 +1049,25 @@ end Executes the functions if/unless the field contains the value. If it is an array or a hash all field values must contain the string. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+all_contain&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+all_contain+{") ##### `any_contain` Executes the functions if/unless the field contains the value. If it is an array or a hash one or more field values must contain the string. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+any_contain&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+any_contain+{") ##### `none_contain` Executes the functions if/unless the field does not contain the value. If it is an array or a hash none of the field values may contain the string. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+none_contain&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+none_contain+{") ##### `str_contain` Executes the functions if/unless the first string contains the second string. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+str_contain&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+str_contain+{") #### `equal` @@ -1075,25 +1075,25 @@ Executes the functions if/unless the first string contains the second string. Executes the functions if/unless the field value equals the string. If it is an array or a hash all field values must equal the string. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+all_equal&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+all_equal+{") ##### `any_equal` Executes the functions if/unless the field value equals the string. If it is an array or a hash one or more field values must equal the string. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+any_equal&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+any_equal+{") ##### `none_equal` Executes the functions if/unless the field value does not equal the string. If it is an array or a hash none of the field values may equal the string. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+none_equal&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+none_equal+{") ##### `str_equal` Executes the functions if/unless the first string equals the second string. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+str_equal&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+str_equal+{") #### `exists` @@ -1102,7 +1102,7 @@ Executes the functions if/unless the field exists. ```perl if exists("") ``` -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+exists&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+exists+{") #### `in` @@ -1110,7 +1110,7 @@ Executes the functions if/unless the field value [is contained in](https://perld _Also aliased as [`is_contained_in`](#is_contained_in)._ -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+in+%7B&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+in+{") #### `is_contained_in` @@ -1120,31 +1120,31 @@ _Alias for [`in`](#in)._ Executes the functions if/unless the field value is an array. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_array&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+is_array+{") #### `is_empty` Executes the functions if/unless the field value is empty. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_empty&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+is_empty+{") #### `is_false` Executes the functions if/unless the field value equals `false` or `0`. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_false&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+is_false+{") #### `is_hash` _Alias for [`is_object`](#is_object)._ -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_hash&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+is_hash+{") #### `is_number` Executes the functions if/unless the field value is a number. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_number&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+is_number+{") #### `is_object` @@ -1156,13 +1156,13 @@ _Also aliased as [`is_hash`](#is_hash)._ Executes the functions if/unless the field value is a string (and not a number). -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_string&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+is_string+{") #### `is_true` Executes the functions if/unless the field value equals `true` or `1`. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+is_true&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+is_true+{") #### `match` @@ -1171,25 +1171,25 @@ Executes the functions if/unless the field value equals `true` or `1`. Executes the functions if/unless the field value matches the regular expression pattern. If it is an array or a hash all field values must match the regular expression pattern. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+all_match&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+all_match+{") ##### `any_match` Executes the functions if/unless the field value matches the regular expression pattern. If it is an array or a hash one or more field values must match the regular expression pattern. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+any_match&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+any_match+{") ##### `none_match` Executes the functions if/unless the field value does not match the regular expression pattern. If it is an array or a hash none of the field values may match the regular expression pattern. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+none_match&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+none_match+{") ##### `str_match` Executes the functions if/unless the string matches the regular expression pattern. -[Java Code](https://github.com/search?q=repo%3Ametafacture%2Fmetafacture-fix+path%3A%2F%5Emetafix%5C%2Fsrc%5C%2Fmain%5C%2Fjava%5C%2Forg%5C%2Fmetafacture%5C%2Fmetafix%5C%2FFixConditional.java%2F+str_match&type=code) +[Java Code](https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixConditional.java+"+str_match+{") ## Xtext