"prompt","text","type" "In Axon language, What scalar literals are supported in Axon?","Axon supports the following scalar literals: null, boolean (true, false), numbers (e.g., 4, -91, 10_000, 9.23kg, 5.4e-45, 74.2°F, 5min), strings (e.g., ""hello""), URIs (e.g., `io/sites.csv`), dates (e.g., 2010-01-27), times (e.g., 3:45, 08:12:05), ranges (e.g., 0..100, 2010-01-01..2010-01-31), and date ranges (e.g., 2008-02 is a shortcut for 01-Feb-2008..29-Feb-2008).","explanation" "In Axon language, How do you write a string literal in Axon?","String literals in Axon can be single quoted, triple quoted, or raw. Single quote strings use backslash escapes (e.g., ""line 1 \\n line 2""). Triple quote strings can span multiple lines and do not require escaping single quotes. Raw strings are prefixed with 'r' and do not support backslash escapes.","explanation" "In Axon language, How do you escape a quote character in a string in Axon?","Use a backslash to escape a quote character, for example: ""embedded \\""quotes\\""!""","instruction" "In Axon language, How do you create a raw string literal in Axon?","Prefix a single quote string with 'r', for example: r""\\foo\\""","instruction" "In Axon language, How do you include a dollar sign in a string literal in Axon?","Escape the dollar sign with a backslash: ""\\$100""","instruction" "In Axon language, How do you define a list in Axon?","Use square brackets. Examples: [] for an empty list, [6] for a single item, [1, 2, 3] for multiple items, [4, ""four""] for mixed types.","instruction" "In Axon language, How do you define a dictionary (dict) in Axon?","Use curly braces. Examples: {} for an empty dict, {foo:6} binds foo to 6, {n:""Bob"",age:35} for multiple values, {""not tag""} for a non-identifier key.","instruction" "In Axon language, What are the operator precedence levels in Axon?","Operator precedence in Axon (highest to lowest): Primary ((x), x.y, x.y(), x->y, x[y]), Unary (not x, -x), Multiplicative (*, /), Additive (+, -), Equality (==, !=), Comparison (<, <=, >=, >, <=>), Conditional And (and), Conditional Or (or), Assignment (=).","explanation" "In Axon language, How does addition work with different types in Axon?","Addition rules: num + num yields num, date + num yields date (num is days), dateTime + num yields dateTime (num has duration unit), uri + str yields uri (concat), str + obj or obj + str yields str (concat).","explanation" "In Axon language, What happens when you perform math with null or na() in Axon?","Any math operation with null results in null. Any math operation with na() results in na(), but null takes precedence over na().","explanation" "In Axon language, How do equality operators work in Axon?","== and != test for scalar value or reference equality, not collection equality. They work with null and disparate types. Use equals() for collection equality.","explanation" "In Axon language, How do comparison operators work in Axon?","Comparison operators (<, <=, >, >=, <=>) require the same type and unit. Comparing different types or collection types raises an error. null is always less than any other value.","explanation" "In Axon language, How do boolean operators work in Axon?","not, and, or work with boolean values according to standard truth tables. and and or are short-circuiting: 'a and b' skips b if a is false; 'a or b' skips b if a is true.","explanation" "In Axon language, How do you index into collections in Axon?","Use the indexing operator []. Example: str[index], list[index], dict[key], grid[num]. Negative indices access from the end.","instruction" "In Axon language, What is the difference between [] and -> operators in Axon?","[] returns null if the key is not defined. -> raises an UnknownNameErr if the key is not defined. Use -> when you expect the tag to exist, [] when it might not.","explanation" "In Axon language, How do you define a variable in Axon?","Use the colon operator: a: 5","instruction" "In Axon language, How do you assign a new value to a variable in Axon?","Use the = operator after the variable has been defined: a = a + 1","instruction" "In Axon language, How does variable scoping work in Axon?","Axon uses lexical scoping with closure support. Variables are visible anywhere in the function after definition. Nested functions can access outer variables unless shadowed.","explanation" "In Axon language, How do you define a lambda function in Axon?","Use the => operator: x => x * x, (x, y) => x + y, () => ""some val""","instruction" "In Axon language, How do you define a named function in Axon?","Use the def operator with a lambda: add: (x, y) => x + y","instruction" "In Axon language, How do you specify default parameter values in Axon functions?","Use a colon in the parameter list: f: (a, b:2) => a + b","instruction" "In Axon language, How does function calling and arity work in Axon?","You must pass enough arguments to satisfy a function's arity. Defaults can be omitted. Extra arguments are ignored.","explanation" "In Axon language, What is a dot call in Axon?","Dot calls allow chaining function calls: a().b().c(). Parens may be omitted if no arguments.","explanation" "In Axon language, How do you use a trailing lambda in Axon?","If the last argument to a function is a lambda, you can place it outside the parentheses: list.sort() (x, y) => x.size <=> y.size","instruction" "In Axon language, How do you perform partial application in Axon?","Use the _ symbol to create a partially applied function: add: (a, b) => a + b; inc: add(_, 1); inc(3) >> 4","instruction" "In Axon language, How do you declare a block in Axon?","Use do ... end to declare a block of expressions. The block evaluates to the last expression or can return early with return.","instruction" "In Axon language, How do you use an if expression in Axon?","Use if (condition) expr [else expr]. The if expression evaluates to the true or false clause. If false and no else, it evaluates to null.","instruction" "In Axon language, How do you throw an exception in Axon?","Use throw followed by a dict or string: throw {dis:""error!""} or throw ""error!""","instruction" "In Axon language, How do you use try/catch in Axon?","Use try ... catch ... to trap exceptions. You can assign the exception to a variable: try ... catch (ex) ...","instruction" "In Axon language, What does the defcomp keyword do in Axon?","defcomp defines a component.","explanation" "In Axon language, How to evaluate an expression in a specific locale in axon?","Use localeUse(locale, expr) to evaluate an expression within a specific locale.","instruction" "In Axon language, How to format the current date in German locale using axon?","localeUse(""de"", today().format)","instruction" "In Axon language, How to parse a German date string in axon?","localeUse(""de"", parseDate(""01 Mär 2021"", ""DD MMM YYYY""))","instruction" "In Axon language, What does localeUse do in axon?","localeUse evaluates an expression within a specific locale, allowing formatting and parsing of localized text using a locale other than the default.","explanation" "In Axon language, How to get a character from a string by index?","Use get(str, num) to retrieve the character at the given index as an int.","instruction" "In Axon language, How to get a substring from a string using a range?","Use get(str, range) to retrieve a string slice.","instruction" "In Axon language, How to get an item from a list by index?","Use get(list, num) to retrieve the item at the specified index.","instruction" "In Axon language, How to get a sublist from a list using a range?","Use get(list, range) to retrieve a list slice at the given index range.","instruction" "In Axon language, How to get a value from a dictionary by key?","Use get(dict, key) to retrieve the item with the given key or return null if the key does not exist.","instruction" "In Axon language, How to get a row from a grid by index?","Use get(grid, num) to retrieve the row at the specified index.","instruction" "In Axon language, How to get a range of rows from a grid?","Use get(grid, range) or Grid.getRange to retrieve a range of rows.","instruction" "In Axon language, What does the [] operator do for collections?","The [] operator is a shortcut for the get function, so list[3] is equivalent to list.get(3).","explanation" "In Axon language, How does toDateSpan handle a DateSpan input?","If the input is a DateSpan, toDateSpan returns it unchanged.","explanation" "In Axon language, How does toDateSpan handle a Date input?","If the input is a Date, toDateSpan returns a one day range for that date.","explanation" "In Axon language, How does toDateSpan handle a Span input?","If the input is a Span, toDateSpan calls Span.toDateSpan.","explanation" "In Axon language, How does toDateSpan handle a Str input?","If the input is a Str, toDateSpan evaluates it using DateSpan.fromStr.","explanation" "In Axon language, How does toDateSpan handle a Date..Date input?","If the input is a Date..Date, toDateSpan creates a range from the starting to the ending date, inclusive.","explanation" "In Axon language, How does toDateSpan handle a Date..Number input?","If the input is a Date..Number, toDateSpan creates a range starting from the date for the specified number of days.","explanation" "In Axon language, How does toDateSpan handle a DateTime..DateTime input?","If the input is a DateTime..DateTime, toDateSpan uses the starting and ending dates. If the end is midnight, it uses the previous date.","explanation" "In Axon language, How does toDateSpan handle a Number input?","If the input is a Number, toDateSpan converts it as a year.","explanation" "In Axon language, How does toDateSpan handle a null input?","If the input is null, toDateSpan uses the projMeta dateSpanDefault or defaults to today. This is deprecated.","explanation" "In Axon language, Convert a Date range to DateSpan using toDateSpan.","toDateSpan(2010-07-01..2010-07-03) returns 01-Jul-2010..03-Jul-2010.","instruction" "In Axon language, Convert a Date and number of days to DateSpan using toDateSpan.","toDateSpan(2010-07-01..60day) returns 01-Jul-2010..29-Aug-2010.","instruction" "In Axon language, Convert a year-month string to DateSpan using toDateSpan.","toDateSpan(2010-07) returns 01-Jul-2010..31-Jul-2010.","instruction" "In Axon language, Convert a year to DateSpan using toDateSpan.","toDateSpan(2010) returns 01-Jan-2010..31-Dec-2010.","instruction" "In Axon language, Convert a named period to DateSpan using toDateSpan.","toDateSpan(pastWeek) on 9 Aug returns 02-Aug-2010..09-Aug-2010.","instruction" "In Axon language, How to list conjunct definitions in the context namespace?","List conjunct definitions in the context namespace as Def[].","instruction" "In Axon language, How are definitions formatted in the feature namespace?","Definitions in the feature namespace are formatted as feature:name.","instruction" "In Axon language, What is the format for a feature namespace definition?","feature:name","instruction" "In Axon language, What is the Axon function version and release date?","Haxall 3.1.11 ∙ 10-Dec-2024 14:28 EST","explanation" "In Axon language, What is a scalar in Axon?","Scalar is an atomic value kind.","explanation" "In Axon language, What type of string does Axon use?","Axon uses Unicode string of characters.","explanation" "In Axon language, What is an Axon expression string?","An Axon expression string is a string used to represent expressions in Axon.","explanation" "In Axon language, How does Axon handle task messaging?","Axon handles task messaging using Axon expressions.","explanation" "In Axon language, How to return today's date according to the context's time zone in Axon?","Use the feature:name Axon function to return today's date according to the context's time zone.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns today's date according to the context's time zone.","explanation" "In Axon language, What is the format of feature definitions in Axon?","Feature definitions are formatted as feature:name.","explanation" "In Axon language, How to convert a string to uppercase in axon?","Use upper(val) to convert a string to ASCII uppercase. Example: upper(""cat"") returns ""CAT"".","instruction" "In Axon language, How to convert a character code to uppercase in axon?","Use upper(97).toChar to convert the character code 97 ('a') to uppercase, resulting in ""A"".","instruction" "In Axon language, What does the upper function do in axon?","The upper function converts a character, number, or string to its ASCII uppercase equivalent.","explanation" "In Axon language, What is the fold end marker value?","The fold end marker value is used to indicate the end of a fold in code or documentation.","explanation" "In Axon language, How are definitions formatted in the feature namespace?","Definitions in the feature namespace are formatted as feature:name.","explanation" "In Axon language, What is the syntax for a feature namespace definition?","feature:name","instruction" "In Axon language, What is the Axon function?","Axon function refers to a function in the Axon programming language.","explanation" "In Axon language, How to check if an object is a boolean type?","Use the feature:name Axon function to return if an object is a boolean type.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns whether an object is a boolean type.","explanation" "In Axon language, How to add column meta-data to a grid using addColMeta?","Use addColMeta(grid, name, meta) to return a new grid with additional meta-data for the specified column.","instruction" "In Axon language, What happens if the column is not found when using addColMeta?","If the column is not found, addColMeta returns the given grid unchanged.","explanation" "In Axon language, How does addColMeta handle merging meta-data?","addColMeta adds column meta-data using merge() conventions.","explanation" "In Axon language, How to convert a DateTime to another timezone in axon?","Use toTimeZone(val, tz) to convert a DateTime or Span to another timezone. Example: now().toTimeZone(""Chicago"")","instruction" "In Axon language, What does func:toTimeZone do in axon?","func:toTimeZone converts a DateTime or Span to a specified timezone.","explanation" "In Axon language, What does the moveTo function do in axon?","The moveTo function finds a given item in a list and moves it to the specified index, shifting other items accordingly. If the item is not found, it does nothing and returns a new list.","explanation" "In Axon language, How to move an item to the beginning of a list using moveTo?","[10, 11, 12].moveTo(11, 0) returns [11, 10, 12]","instruction" "In Axon language, How to move an item to the end of a list using moveTo with a negative index?","[10, 11, 12].moveTo(11, -1) returns [10, 12, 11]","instruction" "In Axon language, What happens if the item is not found in the list when using moveTo?","If the item is not found, moveTo does nothing and returns a new list identical to the original.","explanation" "In Axon language, Can moveTo use negative indexes?","Yes, negative indexes can be used in moveTo to access positions from the end of the list.","explanation" "In Axon language, How to get the URI extension of a Uri?","Use the feature:name function to get the URI extension of a Uri as a string or null.","instruction" "In Axon language, What does the feature:name function return?","It returns the URI extension of a Uri as a string or null.","explanation" "In Axon language, What is the format of the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, How to check if an object is a dict type?","Use the feature:name Axon function to return true if the object is a dict type.","instruction" "In Axon language, What does the feature:name function do?","It returns true if the given object is a dict type.","explanation" "In Axon language, What is the namespace format for features?","The namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What does keepCols do in axon?","keepCols returns a new grid that keeps the specified columns and removes all others.","explanation" "In Axon language, How to use keepCols to select columns in a grid?","Call keepCols(grid, cols) where cols is a list of column names or Col instances to keep.","instruction" "In Axon language, Show an example of keepCols usage.","readAll(site).keepCols([""id"", ""area""])","instruction" "In Axon language, How to join a list of grids into a single grid?","Use the join() function to combine a list of grids into one grid.","instruction" "In Axon language, What is the purpose of the join() function?","The join() function joins a list of grids into a single grid.","explanation" "In Axon language, What is a feature namespace of definitions?","A feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What does the reFind function do in Axon?","reFind finds the first match of a regular expression in a string or returns null if there are no matches.","explanation" "In Axon language, How to find the first number in a string using reFind?","Use reFind(r""\\d+"", ""x123y"") to get ""123"".","instruction" "In Axon language, What does reFind return if there is no match?","reFind returns null if there are no matches.","explanation" "In Axon language, Show an example where reFind returns null.","reFind(r""\\d+"", ""xyz"") returns null.","instruction" "In Axon language, How to convert a Span object using toSpan?","If the input is a Span, toSpan returns the Span itself.","explanation" "In Axon language, How does toSpan handle a Span with a timezone?","If the input is a Span with a timezone, toSpan updates the timezone using the same dates only if they are aligned to midnight.","explanation" "In Axon language, How to convert a string to a Span using toSpan?","If the input is a string, toSpan returns Span.fromStr using the current timezone.","instruction" "In Axon language, How to convert a string with a timezone to a Span using toSpan?","If the input is a string with a timezone, toSpan returns Span.fromStr using the given timezone.","instruction" "In Axon language, How does toSpan handle a range of two DateTime objects?","If the input is a range of two DateTime objects, toSpan creates a Span covering the range.","explanation" "In Axon language, How does toSpan handle a range from Date to DateTime?","If the input is a range from Date to DateTime, toSpan creates a Span from the start day for the date until the end timestamp.","explanation" "In Axon language, How does toSpan handle a range from DateTime to Date?","If the input is a range from DateTime to Date, toSpan creates a Span from the start timestamp to the end of the day for the end date.","explanation" "In Axon language, How does toSpan handle a single DateTime?","If the input is a single DateTime, toSpan returns a Span of that timestamp.","explanation" "In Axon language, How does toSpan handle a DateSpan?","If the input is a DateSpan, toSpan accepts anything accepted by toDateSpan() in the current timezone.","explanation" "In Axon language, How does toSpan handle a DateSpan with a timezone?","If the input is a DateSpan with a timezone, toSpan accepts anything accepted by toDateSpan() using the given timezone.","explanation" "In Axon language, How to list all top-level functions in the current project?","Use funcs() to return all functions declared in the current project.","instruction" "In Axon language, How to find functions matching a specific filter?","Use funcs(filterExpr) where filterExpr specifies the filter to match functions.","instruction" "In Axon language, What does funcs() return?","funcs() returns all the top-level functions declared in the current project.","explanation" "In Axon language, What does funcs(filterExpr) do?","funcs(filterExpr) returns all top-level functions in the current project that match the given filter expression.","explanation" "In Axon language, How to convert an arbitrary string to a safe tag name?","Use Etc.toTagName to convert an arbitrary string to a safe tag name.","instruction" "In Axon language, What is the purpose of Etc.toTagName?","Etc.toTagName converts arbitrary strings into safe tag names.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, What is the format for a feature namespace definition?","The format is feature:name.","instruction" "In Axon language, How do you add rows to the end of a grid in axon?","Use addRows(grid, newRows) where newRows is a list of Dict or a Grid.","instruction" "In Axon language, What types can newRows be in addRows?","newRows can be a list of Dict or a Grid.","explanation" "In Axon language, Show an example of using addRows in axon.","readAll(site).addRows(readAll(equip))","instruction" "In Axon language, How to register a function as folding a given value type?","Use the registration mechanism to associate a function with folding operations for a specific value type.","instruction" "In Axon language, What is a data value type?","A data value type defines the kind of data a value represents.","explanation" "In Axon language, What is a scalar in this context?","A scalar is an atomic value kind.","explanation" "In Axon language, What is a Unicode string?","A Unicode string is a sequence of Unicode characters.","explanation" "In Axon language, How to get the path segments of a Uri as a list of Strs?","Use the feature:name function to extract the path segments from a Uri and return them as a list of Strs.","instruction" "In Axon language, What does the feature:name function do?","The feature:name function returns the path segments of a Uri as a list of Strs.","explanation" "In Axon language, How to return the Number representation of positive infinity?","Use feature:name to return the Number representation of positive infinity.","instruction" "In Axon language, What does feature:name do?","feature:name returns the Number representation of positive infinity.","explanation" "In Axon language, How to get the date portion from a DateTime value?","Use date(val) where val is a DateTime to extract the date portion of the timestamp.","instruction" "In Axon language, How to construct a date from year, month, and day?","Use date(val, month, day) where val is the year, month is the month, and day is the day. For example, date(2010, 12, 1) creates the date 2010-12-01.","instruction" "In Axon language, What does the date function do with a DateTime input?","If the input is a DateTime, the date function returns only the date portion of the timestamp.","explanation" "In Axon language, What does the date function do with a Number input?","If the input is a Number, the date function constructs a date instance using the provided year, month, and day.","explanation" "In Axon language, How to check if a string starts with a substring in axon?","""hi there"".startsWith(""hi"") >> true","instruction" "In Axon language, How to use startsWith in axon?","startsWith(val, sub) returns true if val starts with sub.","instruction" "In Axon language, What does startsWith do in axon?","startsWith returns true if the given string starts with the specified substring.","explanation" "In Axon language, Example of startsWith returning false in axon","""hi there"".startsWith(""foo"") >> false","instruction" "In Axon language, How does parseNumber handle invalid formats?","If the format is invalid and checked is false, parseNumber returns null; otherwise, it throws ParseErr.","explanation" "In Axon language, What does parseNumber do?","parseNumber parses a string into a number, optionally handling units.","explanation" "In Axon language, How to parse a string with a unit into a number?","Use parseNumber(""123kW"") to parse a string with a unit.","instruction" "In Axon language, How to parse a string into a number and format it to three decimal places?","parseNumber(""123.567"").format(""#.000"") parses the string and formats the result to three decimal places.","instruction" "In Axon language, Which functions should be used to parse basic integers and floating point numbers without a unit?","Use parseInt() and parseFloat() to parse basic integers and floating point numbers without a unit.","instruction" "In Axon language, How to construct a DateTime from a date, time, and timezone in axon?","Use dateTime(d, t, tz) to construct a DateTime from a date, time, and timezone name.","instruction" "In Axon language, What happens if the timezone is null in dateTime?","If timezone is null, the system default timezone is used.","explanation" "In Axon language, What does func:toGrid do in axon?","func:toGrid translates an arbitrary object to a Grid using Etc.toGrid.","explanation" "In Axon language, How does toGrid handle a value that is already a grid?","If the value is already a grid, toGrid just returns it.","explanation" "In Axon language, What happens if toGrid is called on a row in a grid of size?","If the value is a row in a grid of size, toGrid returns row.grid.","explanation" "In Axon language, How does toGrid handle scalar values?","If the value is a scalar, toGrid returns a 1x1 grid.","explanation" "In Axon language, How does toGrid handle a dict?","If the value is a dict, toGrid returns a grid where the dict is the only row.","explanation" "In Axon language, How does toGrid handle a list of dicts?","If the value is a list of dicts, toGrid returns a grid where each dict is a row.","explanation" "In Axon language, How does toGrid handle a list of non-dicts?","If the value is a list of non-dicts, toGrid returns a one-column grid with rows for each item.","explanation" "In Axon language, How to create a simple grid with dis and age columns and 3 rows using toGrid?","[{dis:""Bob"", age:30}, {dis:""Ann"", age:40}, {dis:""Dan"", age:50}].toGrid","instruction" "In Axon language, What does func:foldCol do?","foldCol folds the values of the given column in a grid into a single value using a folding function.","explanation" "In Axon language, How to use foldCol to sum a column?","readAll(site).foldCol(""area"", sum)","instruction" "In Axon language, What arguments does foldCol take?","foldCol takes a grid, a column name, and a folding function as arguments.","explanation" "In Axon language, How to call a function reflectively with arguments?","Use call(func, args), where func is the function name or expression, and args is a list of arguments.","instruction" "In Axon language, Can func in call(func, args) be a string name?","Yes, func can be a string representing the function name.","explanation" "In Axon language, Can func in call(func, args) be an expression?","Yes, func can be an expression that evaluates to a function.","explanation" "In Axon language, How to call the 'today' function with call?","call(""today"")","instruction" "In Axon language, How to call the 'replace' function with arguments using call?","call(""replace"", [""hi there"", ""hi"", ""hello""])","instruction" "In Axon language, How to call 'parseDate' with a date string using call?","call(""parseDate"", [""2021-03-15""])","instruction" "In Axon language, How to call 'parseDate' with a date string and format using call?","call(""parseDate"", [""15-Mar-21"", ""DD-MMM-YY""])","instruction" "In Axon language, How to call a function reference with arguments using call?","call(parseDate, [""15-Mar-21"", ""DD-MMM-YY""])","instruction" "In Axon language, How to call a partially applied function using call?","call(parseDate(_, ""DD-MMM-YY""), [""15-Mar-21""])","instruction" "In Axon language, How to check if an object is a Date type in Axon?","Use the feature:name Axon function to return if an object is a Date type.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns whether an object is a Date type.","explanation" "In Axon language, How to parse a string into a Date using parseDate?","Use parseDate(val, pattern) to convert a string to a Date. For example: parseDate(""7-Feb-23"", ""D-MMM-YY"").","instruction" "In Axon language, What happens if parseDate cannot parse the string and checked is false?","If checked is false and the string cannot be parsed, parseDate returns null.","explanation" "In Axon language, What happens if parseDate cannot parse the string and checked is true?","If checked is true and the string cannot be parsed, parseDate throws ParseErr.","explanation" "In Axon language, How to parse a date string in the format '07/02/23'?","Call parseDate(""07/02/23"", ""DD/MM/YY"").","instruction" "In Axon language, How to parse a date string in the format '7 february 2023'?","Call parseDate(""7 february 2023"", ""D MMMM YYYY"").","instruction" "In Axon language, How to parse a date string in the format '230207'?","Call parseDate(""230207"", ""YYMMDD"").","instruction" "In Axon language, What is a scalar in this context?","Scalar is an atomic value kind.","explanation" "In Axon language, What is a Unicode string?","A Unicode string is a string of characters.","explanation" "In Axon language, How to ensure a value is always returned as a list?","If val is a list return it, otherwise return [val].","instruction" "In Axon language, What is the format for a feature namespace of definitions?","feature:name","explanation" "In Axon language, What is an Axon function?","Axon function","explanation" "In Axon language, How to represent a DateSpan for the previous month covering days 1 to 28-31?","Use 1..28-31 to specify a DateSpan for the previous month covering all possible days.","instruction" "In Axon language, What does the syntax 1..28-31 mean in DateSpan?","1..28-31 represents a range covering days 1 to 28, 29, 30, or 31, depending on the month.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","instruction" "In Axon language, What is the format of a feature namespace definition?","A feature namespace definition uses the format feature:name.","explanation" "In Axon language, What is an Axon function?","Axon function refers to a function defined in the Axon programming language.","explanation" "In Axon language, What does parseSearch(val) do?","It parses a search string into a Filter instance that can be used with read(), readAll(), filter(), or filterToFunc().","explanation" "In Axon language, How to use parseSearch with readAll?","Call readAll(parseSearch(""RTU-1"")) to filter results based on the search string.","instruction" "In Axon language, What search string patterns does parseSearch support?","It supports case insensitive glob patterns with ? and * wildcards (default), regular expressions with re:, and haystack filters with f:.","explanation" "In Axon language, How to filter points with a glob pattern using parseSearch?","Use readAll(point).filter(parseSearch(""RTU* Fan"")) to filter points matching the glob pattern.","instruction" "In Axon language, How to get meta-data from a grid?","Use .meta on the grid object, for example: read(temp).hisRead(today).meta","instruction" "In Axon language, How to get meta-data from a column?","Use .meta on the column object, for example: read(temp).hisRead(today).col(""ts"").meta","instruction" "In Axon language, What does the meta function do?","The meta function returns the meta-data from a grid or column as a dictionary.","explanation" "In Axon language, How to get the last day of a date's month?","Use lastOfMonth(date) to get the last day of the date's month.","instruction" "In Axon language, What does lastOfMonth do?","lastOfMonth returns the last day of the given date's month.","explanation" "In Axon language, Show an example of lastOfMonth usage.","2009-10-28.lastOfMonth returns 2009-10-31.","instruction" "In Axon language, How to find the first occurrence of a substring in a string using axon's index function?","Use index(val, x, offset) where val is the string, x is the substring to search, and offset is the starting index. Returns the index of the first match or null if not found.","instruction" "In Axon language, How to search for an item in a list with axon's index function?","Call index(val, x, offset) where val is the list, x is the item to search, and offset is the starting index. Returns the index of the first match or null if not found.","instruction" "In Axon language, What does a negative offset mean in axon's index function?","A negative offset allows searching from the end of the string or list.","explanation" "In Axon language, What is returned if no match is found using axon's index function?","The function returns null if no occurrences are found.","explanation" "In Axon language, What does nowTicks() return in axon?","nowTicks() returns the current time as nanosecond ticks since 1 Jan 2000 UTC.","explanation" "In Axon language, How to get current time in nanosecond ticks in axon?","Use nowTicks() to get the current time as nanosecond ticks since 1 Jan 2000 UTC.","instruction" "In Axon language, What is a limitation of nowTicks() regarding accuracy?","The 64-bit floating point representations of nanosecond ticks will lose accuracy below the microsecond.","explanation" "In Axon language, How to check if an object is not null in Haxall?","Use the 'feature:name' Axon function to return true if an object is not null.","instruction" "In Axon language, What does the 'feature:name' Axon function do?","It returns true if an object is not null.","explanation" "In Axon language, What is the namespace format for features in Haxall?","The namespace of definitions is formatted as feature:name.","explanation" "In Axon language, How to add all items to the end of a list and return a new list?","Use the feature:name Axon function to add all items to the end of a list and return a new list.","instruction" "In Axon language, What does the feature:name Axon function do?","It adds all the items to the end of a list and returns a new list.","explanation" "In Axon language, What is the 'key' data value type?","A key is a scalar, which is an atomic value kind.","explanation" "In Axon language, What kind of value is a scalar?","A scalar is an atomic value kind.","explanation" "In Axon language, What type of data does a key represent?","A key represents a Unicode string of characters.","explanation" "In Axon language, What does debugType(val) do in axon?","debugType(val) returns a string of the given value's type. The format of the string is not guaranteed and is intended for human consumption only.","explanation" "In Axon language, How to get the type of a value as a string in axon?","Use debugType(val) to return a string representing the type of the value.","instruction" "In Axon language, What does the eachDay function do?","Iterates over each day in a date span, calling a given function with each date.","explanation" "In Axon language, How do you use eachDay to iterate from July 1st to July 3rd, 2010?","eachDay(2010-07-01..2010-07-03, f) where f is a function to call for each day.","instruction" "In Axon language, How can you iterate over every day in July 2010 using eachDay?","eachDay(2010-07, f) where f is a function to call for each day.","instruction" "In Axon language, How do you iterate over the last 7 days with eachDay?","eachDay(pastWeek, f) where f is a function to call for each day.","instruction" "In Axon language, What type of argument does eachDay expect for dates?","The dates argument can be any object convertible to a date range by toDateSpan().","explanation" "In Axon language, What argument does the function passed to eachDay receive?","The function is called with a Date argument for each iterated day.","explanation" "In Axon language, How to get the longitude of a Coord as a number?","Use the feature 'feature:name' to obtain the longitude of a Coord as a number.","instruction" "In Axon language, What is the feature namespace format for definitions?","The feature namespace format for definitions is 'feature:name'.","explanation" "In Axon language, Which Axon function provides the longitude of a Coord as a number?","The Axon function in the 'feature:name' namespace provides the longitude of a Coord as a number.","explanation" "In Axon language, How to specify a DateSpan for the current month?","Use 1st..28-31 to represent the span from the 1st to the 28th, 29th, 30th, or 31st of the month.","instruction" "In Axon language, What does 1st..28-31 mean in date ranges?","It represents a date span from the 1st day of the month to the last day, which could be the 28th, 29th, 30th, or 31st depending on the month.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","instruction" "In Axon language, What is the format of a feature namespace?","A feature namespace uses the format feature:name.","explanation" "In Axon language, What is an Axon function?","An Axon function is a function defined in the Axon programming language.","explanation" "In Axon language, What does the 'overridable' marker do in axon?","It is applied to an ext function to enable override by project record functions.","explanation" "In Axon language, How to allow a function to be overridden by project record functions in axon?","Apply the 'overridable' marker to the ext function.","instruction" "In Axon language, What is the purpose of the 'marker' in axon?","Marker labels a dict with typing information.","explanation" "In Axon language, How to sort a grid by row display name in axon?","Use sortDis(val) to sort a grid by row display name.","instruction" "In Axon language, Show an example of sorting all sites by display name in axon.","readAll(site).sortDis","instruction" "In Axon language, What does sortDis do in axon?","sortDis sorts a grid by row display name.","explanation" "In Axon language, How to reorder columns in a grid using reorderCols?","Use reorderCols(grid, colNames) to return a new grid with columns reordered according to colNames. The list must contain the same current column names; any not specified are removed.","instruction" "In Axon language, What happens if some column names are not included in colNames when using reorderCols?","Any columns not specified in the colNames list are removed from the resulting grid.","explanation" "In Axon language, How to move the 'name' column to the first position and 'foo' to the last in a grid?","Use grid.colNames.moveTo('name', 0).moveTo('foo', -1) to create the new order, then pass it to grid.reorderCols(cols).","instruction" "In Axon language, What does reorderCols return?","reorderCols returns a new grid with columns reordered as specified.","explanation" "In Axon language, What is the start value of a DateSpan, Span, or a range?","The start value refers to the initial point or beginning of a DateSpan, Span, or a range.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, What is the Axon function in this context?","Axon function refers to a function defined or used within the Axon programming environment.","explanation" "In Axon language, How to add a new column to a grid using addCol?","Use addCol(grid, col, fn) where 'col' is the column name or a dictionary with a 'name' tag, and 'fn' is a function mapping each row to the new cell value.","instruction" "In Axon language, What types can the 'col' parameter be in addCol?","The 'col' parameter can be a simple String name or a dictionary with a 'name' tag. Additional tags in the dictionary become column meta-data.","explanation" "In Axon language, How does the mapping function work in addCol?","The mapping function takes a row as input and returns the new cell value for the added column.","explanation" "In Axon language, Show an example of adding a column with a string name using addCol.","readAll(site).addCol(""areaMeters"") s => s->area.to(1m²)","instruction" "In Axon language, Show an example of adding a column with meta-data using addCol.","readAll(site).addCol({name:""areaMeters"", dis:""Area Meters""}) s => s->area.to(1m²)","instruction" "In Axon language, How to parse a string into an integer in axon?","Use parseInt(val, radix: 10, checked: true) to convert a string to an integer.","instruction" "In Axon language, How to parse a hexadecimal string to an integer in axon?","Call parseInt with the string and set radix to 16, e.g., parseInt(""afe8"", 16).","instruction" "In Axon language, How to parse a binary string to an integer in axon?","Use parseInt with the string and radix 2, e.g., parseInt(""10010"", 2).","instruction" "In Axon language, What happens if parseInt receives an invalid format and checked is false?","parseInt returns null if the format is invalid and checked is false.","explanation" "In Axon language, What happens if parseInt receives an invalid format and checked is true?","parseInt throws ParseErr if the format is invalid and checked is true.","explanation" "In Axon language, Can parseInt parse strings with units?","No, parseInt cannot parse strings that include a unit.","explanation" "In Axon language, How to list tag definitions in the context namespace?","Use Def[] to list tag definitions in the context namespace.","instruction" "In Axon language, How are definitions in the feature namespace formatted?","Definitions in the feature namespace are formatted as feature:name.","instruction" "In Axon language, How to define a DateSpan for the current year?","Jan-1..Dec-31","instruction" "In Axon language, How are feature namespaces formatted?","feature:name","instruction" "In Axon language, What is the format for a feature namespace definition?","feature:name","explanation" "In Axon language, How to get the number of whole days in a span?","Use the feature:name Axon function to calculate the number of whole days in a span.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns the number of whole days in a span.","explanation" "In Axon language, How to get the number of days in the current month?","Call numDaysInMonth() with no arguments to get the number of days in the current month.","instruction" "In Axon language, How to get the number of days in a specific month by number?","Call numDaysInMonth(monthNumber), where monthNumber is 1 for January, 2 for February, etc. For example, numDaysInMonth(1) returns 31.","instruction" "In Axon language, How to get the number of days in a month for a specific date?","Call numDaysInMonth(date), where date is a Date object. For example, numDaysInMonth(2012-02-13) returns 29.","instruction" "In Axon language, What does numDaysInMonth(2) return?","It returns 28 or 29, depending on whether the current year is a leap year.","explanation" "In Axon language, What happens if I pass null to numDaysInMonth?","Passing null returns the number of days in the current month.","explanation" "In Axon language, What types of arguments does numDaysInMonth accept?","numDaysInMonth accepts a Date object, a number from 1 to 12, or null as the month parameter.","explanation" "In Axon language, How to format a value using func:format?","Use format(val, pattern) to format an object according to the current locale and an optional pattern.","instruction" "In Axon language, What does the pattern argument in func:format do?","The pattern specifies the formatting style, following Fantom toLocale conventions for types like Bool, Number, Date, Time, and DateTime.","explanation" "In Axon language, What happens if no toLocale method is found in func:format?","If no toLocale method is found, format returns val.toStr.","explanation" "In Axon language, How to format a number with one decimal place using func:format?","Call format on the number with the pattern ""#.0"", e.g., 123.456kW.format(""#.0"") returns 123.5kW.","instruction" "In Axon language, How to format today's date as '8-Feb-2023' using func:format?","Call today().format(""D-MMM-YYYY"") to get a date formatted as '8-Feb-2023'.","instruction" "In Axon language, How to format the current time as '08-Feb 14:50' using func:format?","Call now().format(""D-MMM hh:mm"") to get the current date and time formatted as '08-Feb 14:50'.","instruction" "In Axon language, How to format the current date and time as '08/02/23 2:50pm' using func:format?","Call now().format(""DD/MM/YY k:mmaa"") to get the current date and time formatted as '08/02/23 2:50pm'.","instruction" "In Axon language, What does the reduce function do in axon?","The reduce function reduces a collection to a single value using a reducer function. It processes each item with an accumulation value, initialized to 'init', and returns the final accumulated result.","explanation" "In Axon language, How do you use reduce on a list in axon?","Call reduce on the list with an initial value and a function that takes (acc, val, index) and returns the new accumulation value. Example: [2, 5, 3].reduce(0, (acc, val)=>acc+val) returns 10.","instruction" "In Axon language, How do you use reduce on a grid in axon?","Call reduce on the grid with an initial value and a function that takes (acc, row, index) and returns the new accumulation value.","instruction" "In Axon language, How do you use reduce on a stream in axon?","Call reduce on the stream with an initial value and a function that takes (acc, val) and returns the new accumulation value.","instruction" "In Axon language, What is the difference between reduce and fold in axon?","Fold is preferred over reduce for standard rollup operations such as sum or average.","explanation" "In Axon language, Show an example of multiplying all elements in a list using reduce.","[2, 5, 3].reduce(1, (acc, val)=>acc*val) returns 30.","instruction" "In Axon language, How to remove whitespace from the beginning of a string in axon?","Use trimStart(val) to trim whitespace only from the beginning of the string.","instruction" "In Axon language, What does trimStart do in axon?","trimStart removes whitespace only from the beginning of the string.","explanation" "In Axon language, Example usage of trimStart in axon",""" abc "".trimStart returns ""abc "", and ""abc"".trimStart returns ""abc"".","instruction" "In Axon language, What does reMatches do in Axon?","reMatches returns true if the regular expression matches the entire region of the string s.","explanation" "In Axon language, How to check if a string contains only digits using reMatches?","Use reMatches(r""\\d+"", s) to check if s contains only digits.","instruction" "In Axon language, Does reMatches(r""\\d+"", ""x123y"") return true or false?","reMatches(r""\\d+"", ""x123y"") returns false.","instruction" "In Axon language, Does reMatches(r""\\d+"", ""123"") return true or false?","reMatches(r""\\d+"", ""123"") returns true.","instruction" "In Axon language, What does coordDist do?","coordDist computes the great-circle distance between two Coords using the haversine formula, returning the distance in meters.","explanation" "In Axon language, How to compute the distance between two coordinates in meters?","Use coordDist(c1, c2) to compute the great-circle distance between two Coords in meters.","instruction" "In Axon language, How to get the first item from a list in axon?","Use func:first to get the item at index 0 of the list, or null if the list is empty.","instruction" "In Axon language, How to get the first row from a grid in axon?","Use func:first to get the first row of the grid, or null if the grid is empty.","instruction" "In Axon language, How to get the first item from a stream in axon?","Use func:first to get the first item from the stream, or null if the stream is empty.","instruction" "In Axon language, What does func:first do in axon?","func:first returns the first item from an ordered collection or null if the collection is empty.","explanation" "In Axon language, How to call a function multiple times with a counter in Axon?","Use the feature:name to call the specified function the given number of times, passing the counter each time.","instruction" "In Axon language, What does feature:name do in Axon?","feature:name calls the specified function the given number of times, passing the counter as an argument.","explanation" "In Axon language, What is the namespace format for features in Axon?","Features use a namespace format of feature:name in Axon.","explanation" "In Axon language, How to return yesterday's Date according to the context's time zone in Axon?","Use the feature:name Axon function to return yesterday's Date based on the context's time zone.","instruction" "In Axon language, What is the purpose of the feature:name Axon function?","It returns yesterday's Date according to the context's time zone.","explanation" "In Axon language, What is the namespace format for features in Axon?","Features use a namespace format of feature:name.","explanation" "In Axon language, How to get the week number of the year from a DateTime value in axon?","Use weekOfYear(val) to return the week number (1-53) for the given DateTime or Date.","instruction" "In Axon language, How to specify the starting weekday for weekOfYear in axon?","Pass the startOfWeek parameter as a number (0-6) to weekOfYear(val, startOfWeek) to set the first day of the week.","instruction" "In Axon language, What does weekOfYear return in axon?","weekOfYear returns a number between 1 and 53 representing the week of the year for the given date.","explanation" "In Axon language, What is the default value for startOfWeek in weekOfYear?","If startOfWeek is not specified, weekOfYear uses the current locale's default starting weekday.","explanation" "In Axon language, How to check if an object is a number type in Axon?","Use the feature:name function to return if an object is a number type.","instruction" "In Axon language, What does the feature:name function do in Axon?","It returns if an object is a number type.","explanation" "In Axon language, How do you convert a number to a different unit using func:to?","Use to(val, unit) to convert a number to the given unit. The unit can be a string or a Number.","instruction" "In Axon language, What happens if the units are not of the same dimension when using to()?","An exception is raised if the units are not of the same dimension.","explanation" "In Axon language, Can the target unit in to() be a string or a Number?","Yes, the target unit can be specified as a string or a Number.","explanation" "In Axon language, What is the convention when using a Number as the target unit in to()?","If the target unit is a Number, the scalar value is ignored but should conventionally be 1.","explanation" "In Axon language, Show an example of converting 10 kilowatt-hours to BTU using to().","10kWh.to(1BTU) or 10kWh.to(""BTU"")","instruction" "In Axon language, How do you convert 75°F to Celsius using to()?","75°F.to(1°C) or to(75°F, 1°C)","instruction" "In Axon language, How to check if an integer is odd in Haxall?","Use the feature:name Axon function to return true if an integer is odd.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns true if the given integer is an odd number.","explanation" "In Axon language, How to check if an object is a function type?","Use feature:name to return if an object is a function type.","instruction" "In Axon language, What does feature:name do?","feature:name returns whether an object is a function type.","explanation" "In Axon language, How to get the path of a Uri as a string?","Use the feature 'feature:name' in the Axon function to get the path of a Uri as a string.","instruction" "In Axon language, What is the namespace format for features?","The namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What does filterToFunc do?","filterToFunc converts a filter expression into a function that can be used with findAll() or find(). The function takes a Dict and returns true or false depending on whether the Dict matches the filter.","explanation" "In Axon language, How to use filterToFunc to filter dicts with a specific tag?","Use list.findAll(filterToFunc(equip)) to filter for dicts with the 'equip' tag.","instruction" "In Axon language, How to filter rows with an 'area' tag over 10,000 using filterToFunc?","Use grid.findAll(filterToFunc(area > 10_000)) to filter rows where the 'area' tag is over 10,000.","instruction" "In Axon language, What does the function returned by filterToFunc accept as a parameter?","The function returned by filterToFunc accepts one Dict parameter.","explanation" "In Axon language, What does the function returned by filterToFunc return?","It returns true or false depending on whether the Dict matches the filter expression.","explanation" "In Axon language, What does uriDecode do?","uriDecode parses an ASCII percent encoded string into a Uri according to RFC 3986, decoding %HH escape sequences and converting the octet sequence to a UTF-8 string.","explanation" "In Axon language, How does uriDecode handle the '+' character in the query section?","The '+' character in the query section is unescaped into a space by uriDecode.","explanation" "In Axon language, What happens if checked is true and the URI is malformed in uriDecode?","If checked is true and the URI is malformed or not encoded correctly, uriDecode throws a ParseErr.","explanation" "In Axon language, What does uriDecode return if checked is false and the URI is malformed?","If checked is false and the URI is malformed, uriDecode returns null.","explanation" "In Axon language, How to decode a percent-encoded string using uriDecode?","""foo%20bar"".uriDecode returns 'foo bar'.","instruction" "In Axon language, How to parse a URI from standard form?","Use parseUri() to parse a URI from standard form.","instruction" "In Axon language, How to parse a string into a standardized unit name in axon?","Use parseUnit(val, checked: true) to parse a string into a standardized unit name.","instruction" "In Axon language, What does parseUnit return if the value is not a valid unit name?","parseUnit returns null or raises an exception based on the checked flag if the value is not a valid unit name.","explanation" "In Axon language, How to parse the string '%' into a unit name?","Call parseUnit(""%"") to parse the string '%' into a standardized unit name.","instruction" "In Axon language, How to parse the string 'percent' into a unit name?","Call parseUnit(""percent"") to parse the string 'percent' into a standardized unit name.","instruction" "In Axon language, How to get the first day of a date's month?","Use firstOfMonth(date) to get the first day of the given date's month.","instruction" "In Axon language, What does firstOfMonth(date) do?","It returns the first day of the month for the provided date.","explanation" "In Axon language, Show an example of firstOfMonth usage.","2009-10-28.firstOfMonth returns 2009-10-01.","instruction" "In Axon language, What does hoursInDay(dt) do?","Given a DateTime in a specific timezone, hoursInDay(dt) returns the number of hours in that day, accounting for DST transitions.","explanation" "In Axon language, How to get the number of hours in a day for a given DateTime in axon?","Use hoursInDay(dt) to return the number of hours in the day for the specified DateTime.","instruction" "In Axon language, How does hoursInDay handle days with DST transitions?","On days transitioning to DST, hoursInDay returns 23; on days transitioning back to standard time, it returns 25.","explanation" "In Axon language, How to safely get a character from a string by index in axon?","Use getSafe(str, num) to get a character at the given index or null if the index is invalid.","instruction" "In Axon language, How to safely get a slice from a string in axon?","Use getSafe(str, range) to get a safe slice or an empty string if the entire range is invalid.","instruction" "In Axon language, How to safely get an item from a list by index in axon?","Use getSafe(list, num) to get the item at the given index or null if the index is invalid.","instruction" "In Axon language, How to safely get a slice from a list in axon?","Use getSafe(list, range) to get a list slice with safe indices.","instruction" "In Axon language, How to safely get a row from a grid by index in axon?","Use getSafe(grid, num) to get the row at the given index or null if the index is invalid.","instruction" "In Axon language, How to safely get a range of rows from a grid in axon?","Use getSafe(grid, range) to get a range of rows using Grid.getRange with safe range.","instruction" "In Axon language, What does getSafe do in axon?","getSafe retrieves an item or slice from a string, list, or grid, returning null or an empty value if the index or range is invalid.","explanation" "In Axon language, How to check if a Date or DateTime falls on Saturday or Sunday?","Use the feature:name function to determine if a given Date or DateTime is on a Saturday or Sunday.","instruction" "In Axon language, What does the feature:name function do in Axon?","The feature:name function checks if a given Date or DateTime falls on a Saturday or Sunday.","explanation" "In Axon language, Which namespace format is used for feature definitions?","Feature definitions use the namespace format feature:name.","explanation" "In Axon language, How to specify a DateSpan for the last 7 days?","today-7days..today","instruction" "In Axon language, How are feature namespaces formatted?","feature:name","instruction" "In Axon language, What is an Axon function?","Axon function","explanation" "In Axon language, How to insert a list of items at a specific index and return a new list?","Use the function to insert a list of items at the given index; it returns a new list with the items inserted.","instruction" "In Axon language, What does the insert function do?","It inserts a list of items at the specified index in a list and returns a new list.","explanation" "In Axon language, What does the fold function do?","The fold function reduces a list or stream to a single value using a folding function with the signature (val, acc), where val is the current item and acc is the accumulator.","explanation" "In Axon language, How does the folding function in fold work?","The folding function is called with (foldStart, null) to initialize the accumulator, then with (item, acc) for each item, and finally with (foldEnd, acc) to produce the final result.","explanation" "In Axon language, What happens if the folding function returns na() during fold?","If the folding function returns na() for the accumulator state, the fold short-circuits and the result is na().","explanation" "In Axon language, List some built-in folding functions for fold.","Built-in folding functions include: count(), sum(), avg(), min(), max(), mean(), median(), rootMeanSquareErr(), meanBiasErr(), and standardDeviation().","explanation" "In Axon language, How to fold a list into its maximum value?","[1, 2, 3, 4].fold(max)","instruction" "In Axon language, How to fold a list into its average value?","[1, 2, 3, 4].fold(avg)","instruction" "In Axon language, What is the result of folding a list with na() using sum?","[1, 2, na(), 3].fold(sum) returns na()","explanation" "In Axon language, How to write a custom fold function for average with na() support?","average: (val, acc) => do if (val == foldStart()) return {sum:0, count:0} if (val == foldEnd()) return acc->sum / acc->count if (val == na()) return na() return {sum: acc->sum + val, count: acc->count + 1} end","instruction" "In Axon language, When should reduce() be used instead of fold()?","Use reduce() for simpler rollup computations, as it is easier to use than fold() in those cases.","explanation" "In Axon language, How to find all matches of a regular expression in a string using axon?","Use reFindAll(regex, s) to find all matches of the regular expression in the string s.","instruction" "In Axon language, What does reFindAll return if there are no matches?","reFindAll returns an empty list if there are no matches.","explanation" "In Axon language, Example usage of reFindAll to extract numbers from a string.","reFindAll(r""-?\\d+\\.?\\d*"", ""foo, 123, bar, 456.78, -9, baz"") returns [""123"", ""456.78"", ""-9""]","instruction" "In Axon language, Example of reFindAll with no matches.","reFindAll(r""\\d+"", ""foo, bar, baz"") returns []","instruction" "In Axon language, How to represent a DateSpan for this week from Sunday to Saturday?","sun..sat","instruction" "In Axon language, How are feature namespaces formatted?","feature:name","instruction" "In Axon language, What does 'sun..sat' mean in DateSpan?","It represents the span from Sunday to Saturday, using the locale's start of week.","explanation" "In Axon language, How to pad a string to the left with a specific character?","""3"".padl(3, ""0"") returns ""003""","instruction" "In Axon language, What happens if the string is already at or above the specified width when using padl?","""123"".padl(2, ""0"") returns ""123""","instruction" "In Axon language, What does the padl function do?","padl pads a string to the left with a specified character if its length is less than the given width.","explanation" "In Axon language, How to get the latitude of a Coord as a number?","Use the feature 'feature:name' to obtain the latitude of a Coord as a number.","instruction" "In Axon language, What is the format of feature namespaces in definitions?","Feature namespaces are formatted as 'feature:name'.","explanation" "In Axon language, How to check if an object is a number type with a time unit?","Use the 'time unit' function to return true if the object is a number type with a time unit.","instruction" "In Axon language, What is a feature namespace of definitions?","A feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, How to look up a def by its symbol name?","Use def(symbol, checked: true) to look up a def by its symbol name (Str or Symbol).","instruction" "In Axon language, What happens if the def is not found when using def(symbol, checked: true)?","If not found, def returns null or raises UnknownDefErr based on the checked flag.","explanation" "In Axon language, What does def(symbol, checked: true) return on success?","The result is returned as the definition's normalized dict representation.","explanation" "In Axon language, How to check if an object is of type str?","Use the feature:name function to return true if the object is a str type.","instruction" "In Axon language, What does the feature:name function do?","It returns true if the given object is of type str.","explanation" "In Axon language, What is the namespace format for features?","Features use a namespace format of feature:name.","explanation" "In Axon language, What is the fold start marker value?","The fold start marker value indicates the beginning of a foldable section in code or documentation.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, What is an Axon function?","An Axon function is a function defined in the Axon programming language.","explanation" "In Axon language, How to construct a decoded XStr instance?","Use the XStr constructor to create a decoded XStr instance.","instruction" "In Axon language, What is the format of the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What is an Axon function?","Axon function refers to a function in the Axon programming language.","explanation" "In Axon language, How to return the number of items in a str, list, or grid?","Use the feature:name function to return the number of items in a str, list, or grid.","instruction" "In Axon language, What does the feature:name function do?","The feature:name function returns the number of items in a str, list, or grid.","explanation" "In Axon language, What does the addCols function do in axon?","addCols adds grid b as a new set of columns to grid a. Duplicate column names in b are given unique names, and missing cells are filled with null if b has fewer rows.","explanation" "In Axon language, How to use addCols to add columns from one grid to another in axon?","[{a:0, b:2}, {a:1, b:3}].toGrid.addCols({c:4}.toGrid)","instruction" "In Axon language, What happens if grid b has duplicate column names when using addCols?","Duplicate column names in grid b are given auto-generated unique names when added to grid a.","explanation" "In Axon language, What happens if grid b has fewer rows than grid a in addCols?","If grid b has fewer rows than grid a, the missing cells are filled with null.","explanation" "In Axon language, How to combine two grids read from rtu and meter using addCols?","readAll(rtu).addCols(readAll(meter))","instruction" "In Axon language, What does toJavaMillis(dt) do?","Given a DateTime, toJavaMillis(dt) returns the number of milliseconds since the Unix epoch, which is defined as 1-Jan-1970 UTC.","explanation" "In Axon language, How to get milliseconds since Unix epoch from a DateTime?","Use toJavaMillis(dt) to return the number of milliseconds since 1-Jan-1970 UTC for the given DateTime.","instruction" "In Axon language, How to get the hour of day as an integer from a time or datetime in Axon?","Use the feature:name function to extract the hour (0-23) from a time or datetime value.","instruction" "In Axon language, What does the feature:name function do in Axon?","The feature:name function returns the hour of day as an integer between 0 and 23 from a time or datetime value.","explanation" "In Axon language, What does uriEncode do in axon?","uriEncode returns the percent encoded string for a URI according to RFC 3986, encoding each section as UTF-8 octets and percent encoding them.","explanation" "In Axon language, How are spaces in the query section encoded by uriEncode?","Spaces in the query section are encoded as + by uriEncode.","explanation" "In Axon language, How to percent encode a string using uriEncode in axon?","`foo bar`.uriEncode returns ""foo%20bar"".","instruction" "In Axon language, How to get the column names from a table?","Use readAll(site).colNames to get the column names as a list of strings.","instruction" "In Axon language, What format are feature definitions in?","Feature definitions are formatted as feature:name.","explanation" "In Axon language, How to check if a character is a digit in a given radix using isDigit?","Use isDigit(character, radix) to check if the character is a digit in the specified radix. For example, isDigit('A', 16) returns true.","instruction" "In Axon language, What does isDigit do?","isDigit checks if a number is a digit in the specified radix. For radix 10, it returns true for 0-9. For radix 16, it also returns true for a-f and A-F.","explanation" "In Axon language, isDigit('5', 10) result","true","instruction" "In Axon language, isDigit('A', 10) result","false","instruction" "In Axon language, isDigit('A', 16) result","true","instruction" "In Axon language, How to check if two numbers have the same unit in Haxall?","Use the feature:name Axon function to return true if the two numbers have the same unit; otherwise, it returns false.","instruction" "In Axon language, What happens if either number is null when checking units with feature:name?","If either of the numbers is null, the function returns false.","explanation" "In Axon language, What is the purpose of the feature:name Axon function?","It determines whether two numbers have the same unit.","explanation" "In Axon language, How to truncate a stream after a limit is reached?","Use the truncate stream feature to stop processing once the specified limit is reached.","instruction" "In Axon language, What is the format for feature namespaces in definitions?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, What is an Axon function?","An Axon function is a function used in the Axon programming language.","explanation" "In Axon language, How to get a column as a list of cell values in axon?","Use colToList(grid, col) to get a column as a list of the cell values ordered by row.","instruction" "In Axon language, What does colToList do in axon?","colToList returns a list of the cell values from a specified column in a grid, ordered by row.","explanation" "In Axon language, Show an example of using colToList in axon.","readAll(site).colToList(""dis"")","instruction" "In Axon language, What does the min function do?","The min function compares two numbers and returns the smaller one.","explanation" "In Axon language, How to use min to compare two numbers?","Call min with two numbers as arguments, e.g., min(7, 4) returns 4.","instruction" "In Axon language, How to find the smallest number in a list using min?","Use fold with min, e.g., [7, 2, 4].fold(min) returns 2.","instruction" "In Axon language, Does min check number units when comparing?","Number units are not checked or considered in the comparison.","explanation" "In Axon language, How to remove a column from a grid in axon?","Use removeCol(grid, col) to return a new grid with the specified column removed.","instruction" "In Axon language, What happens if the column does not exist when using removeCol?","If the column doesn't exist, removeCol returns the given grid unchanged.","explanation" "In Axon language, How to convert a Unicode character number to a single character string in Axon?","Use the toChar function. For example, toChar(65) returns ""A"".","instruction" "In Axon language, What does toChar(65) return?","""A""","instruction" "In Axon language, What is the purpose of the toChar function in Axon?","It converts a Unicode character number into a single character string.","explanation" "In Axon language, What does the clamp function do in axon?","The clamp function restricts a number to be within a specified minimum and maximum. If the value is less than the minimum, it returns the minimum; if greater than the maximum, it returns the maximum; otherwise, it returns the value itself.","explanation" "In Axon language, How do you use clamp to keep a value between 10 and 20?","14.clamp(10, 20) returns 14, 3.clamp(10, 20) returns 10, and 73.clamp(10, 20) returns 20.","instruction" "In Axon language, Can clamp handle units in axon?","Yes, clamp can handle values with units as long as min and max have matching units or are unitless. The result will have the same unit as the input value.","explanation" "In Axon language, How does clamp work with units in axon?","45°F.clamp(60, 80) returns 60°F, showing that min and max can be unitless when clamping a value with units.","instruction" "In Axon language, How to get the project name from an absolute ref using refProjName?","Call refProjName with the ref. If the ref is formatted as 'p:proj:r:xxx', it returns the project name.","instruction" "In Axon language, What happens if refProjName is called with a ref not formatted as 'p:proj:r:xxx' and checked is true?","refProjName raises an exception.","explanation" "In Axon language, What does refProjName return if checked is false and the ref is not formatted as 'p:proj:r:xxx'?","It returns null.","explanation" "In Axon language, Example usage of refProjName with a valid ref","refProjName(@p:demo:r:xxx) returns 'demo'.","instruction" "In Axon language, Example usage of refProjName with an invalid ref and checked set to false","refProjName(@r:xxx, false) returns null.","instruction" "In Axon language, How to set a collection item and return a new collection in Axon?","Use the feature:name function to set a collection item and return a new collection.","instruction" "In Axon language, What does the feature:name function do in Axon?","The feature:name function sets a collection item and returns a new collection.","explanation" "In Axon language, What is the format for feature namespaces in Axon?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, What does the has function do?","The has function checks if a Grid has the given column name or if a Dict has the given name mapped to a non-null value.","explanation" "In Axon language, How to use has with a Grid?","Call has(val, name) where val is a Grid and name is the column name to check for existence.","instruction" "In Axon language, How to use has with a Dict?","Call has(val, name) where val is a Dict and name is the key to check if it is mapped to a non-null value.","instruction" "In Axon language, What does func:occurred do?","func:occurred returns whether a timestamp is contained within a specified date range.","explanation" "In Axon language, How to check if a timestamp occurred within this week?","Use ts.occurred(thisWeek).","instruction" "In Axon language, How to check if a timestamp occurred in the past month?","Use ts.occurred(pastMonth()).","instruction" "In Axon language, How to check if a timestamp occurred between two specific dates?","Use ts.occurred(2010-01-01..2010-01-15).","instruction" "In Axon language, What types can the range parameter be in func:occurred?","The range parameter can be any value supported by toDateSpan().","explanation" "In Axon language, What types can the timestamp parameter be in func:occurred?","The timestamp may be either a Date or a DateTime.","explanation" "In Axon language, How to iterate over a list using func:each?","Use each(list, fn) to iterate the items as (value, index).","instruction" "In Axon language, How to iterate over a dictionary with func:each?","Use each(dict, fn) to iterate the name/value pairs as (value, name).","instruction" "In Axon language, How does func:each work with a string?","When used with a string, each iterates the characters as numbers (char, index).","explanation" "In Axon language, How to iterate over a grid using func:each?","Use each(grid, fn) to iterate the rows as (row, index).","instruction" "In Axon language, How does func:each handle ranges?","When used with a range, each iterates the integer range (integer).","explanation" "In Axon language, How to use func:each with a stream?","Use each(stream, fn) to iterate items as (val).","instruction" "In Axon language, How to get the absolute value of a number in Axon?","Use the abs function to return the absolute value of a number. If the input is null, it returns null.","instruction" "In Axon language, How to add an item to the end of a list in Axon?","Use the add function to add an item to the end of a list and return a new list.","instruction" "In Axon language, How to add all items to the end of a list in Axon?","Use the addAll function to add all the items to the end of a list and return a new list.","instruction" "In Axon language, How to add a column to a grid in Axon?","Use the addCol function to add a column to a grid by mapping each row to a new cell value.","instruction" "In Axon language, How to get the column names from a grid in Axon?","Use the colNames function to get the column names as a list of strings.","instruction" "In Axon language, How to get a column by its name in Axon?","Use the col function to get a column by its name.","instruction" "In Axon language, How to concatenate a list of items into a string in Axon?","Use the concat function to concatenate a list of items into a string.","instruction" "In Axon language, How to check if all items in a collection match a test function in Axon?","Use the all function to return true if all the items in a list, dict, or grid match the given test function.","instruction" "In Axon language, How to check if any item in a collection matches a test function in Axon?","Use the any function to return true if any of the items in a list, dict, or grid match the given test function.","instruction" "In Axon language, How to set the unit of a number in Axon?","Use the as function to set the unit of a number.","instruction" "In Axon language, How to compute the average of multiple values in Axon?","Use the avg function to fold multiple values into their standard average or arithmetic mean.","instruction" "In Axon language, How to call a function reflectively with arguments in Axon?","Use the call function to reflectively call a function with the given arguments.","instruction" "In Axon language, How to capitalize the first character of a string in Axon?","Use the capitalize function to return the string with the first character converted to uppercase.","instruction" "In Axon language, How to clamp a number between a minimum and maximum in Axon?","Use the clamp function to clamp the number value between the min and max.","instruction" "In Axon language, How to collect a stream into a list or grid in Axon?","Use the collect function to collect a stream into an in-memory list or grid.","instruction" "In Axon language, How to get the display string for a dict or tag in Axon?","Use the dis function to get the display string for a dict or the given tag.","instruction" "In Axon language, How to check if a DateTime is in daylight saving time in Axon?","Use the dst function to return true if a DateTime is in daylight saving time.","instruction" "In Axon language, How to iterate over the items of a collection in Axon?","Use the each function to iterate the items of a collection.","instruction" "In Axon language, How to get the first item from a collection in Axon?","Use the first function to get the first item from an ordered collection or return null if the collection is empty.","instruction" "In Axon language, How to flatten a list to a single level in Axon?","Use the flatten function to flatten a list to a single level.","instruction" "In Axon language, How to format an object using a locale and pattern in Axon?","Use the format function to format an object using the current locale and specified format pattern.","instruction" "In Axon language, How to get the current DateTime in Axon?","Use the now function to return the current DateTime according to the context's time zone.","instruction" "In Axon language, How to get the number of items in a string, list, or grid in Axon?","Use the size function to return the number of items in a string, list, or grid.","instruction" "In Axon language, How to sort a list or grid in Axon?","Use the sort function to sort a list or grid.","instruction" "In Axon language, How to convert an object to its string representation in Axon?","Use the toStr function to convert an object to its string representation.","instruction" "In Axon language, How to trim whitespace from a string in Axon?","Use the trim function to trim whitespace from the beginning and end of the string.","instruction" "In Axon language, How to convert a string to lower case in Axon?","Use the lower function to convert a char number or string to ASCII lower case.","instruction" "In Axon language, How to convert a string to upper case in Axon?","Use the upper function to convert a char number or string to ASCII upper case.","instruction" "In Axon language, How to get today's date in Axon?","Use the today function to return today's Date according to the context's time zone.","instruction" "In Axon language, How to get yesterday's date in Axon?","Use the yesterday function to return yesterday's Date according to the context's time zone.","instruction" "In Axon language, How to check if an object is null in Axon?","Use the isNull function to return true if an object is null.","instruction" "In Axon language, How to check if an object is not null in Axon?","Use the isNonNull function to return true if an object is not null.","instruction" "In Axon language, How to check if an object is a list in Axon?","Use the isList function to return true if an object is a list type.","instruction" "In Axon language, How to check if an object is a dict in Axon?","Use the isDict function to return true if an object is a dict type.","instruction" "In Axon language, How to check if an object is a number in Axon?","Use the isNumber function to return true if an object is a number type.","instruction" "In Axon language, How to check if an object is a string in Axon?","Use the isStr function to return true if an object is a string type.","instruction" "In Axon language, How to check if an object is a boolean in Axon?","Use the isBool function to return true if an object is a boolean type.","instruction" "In Axon language, How to check if an object is a function in Axon?","Use the isFunc function to return true if an object is a function type.","instruction" "In Axon language, How to check if an object is a grid in Axon?","Use the isGrid function to return true if an object is a grid type.","instruction" "In Axon language, How to check if a year is a leap year in Axon?","Use the isLeapYear function to return true if a year is a leap year.","instruction" "In Axon language, How to check if a collection is empty in Axon?","Use the isEmpty function to return true if a collection is empty.","instruction" "In Axon language, How to get the unique items in a collection in Axon?","Use the unique function to return the unique items in a collection.","instruction" "In Axon language, How to get the sum of multiple values in Axon?","Use the sum function to fold multiple values into their numeric sum.","instruction" "In Axon language, How to get the minimum of two numbers in Axon?","Use the min function to compare two numbers and return the smaller one.","instruction" "In Axon language, How to get the maximum of two numbers in Axon?","Use the max function to compare two numbers and return the larger one.","instruction" "In Axon language, How to get the current DateTime in UTC in Axon?","Use the nowUtc function to return the current DateTime in UTC.","instruction" "In Axon language, How to get the week number of the year from a DateTime or Date in Axon?","Use the weekOfYear function to return the week number of the year.","instruction" "In Axon language, How to get the day of the month from a date or datetime in Axon?","Use the day function to get the day of the month as an integer between 1 and 31.","instruction" "In Axon language, How to get the month as an integer from a date or datetime in Axon?","Use the month function to get the month as an integer between 1 and 12.","instruction" "In Axon language, How to get the year as an integer from a date or datetime in Axon?","Use the year function to get the year as an integer such as 2010.","instruction" "In Axon language, How to get the hour from a time or datetime in Axon?","Use the hour function to get the hour of day as an integer between 0 and 23.","instruction" "In Axon language, How to get the minute from a time or datetime in Axon?","Use the minute function to get the minutes of the time as an integer between 0 and 59.","instruction" "In Axon language, How to get the second from a time or datetime in Axon?","Use the second function to get the seconds of the time as an integer between 0 and 59.","instruction" "In Axon language, How to check if a Date or DateTime is a weekday in Axon?","Use the isWeekday function to check if the given Date or DateTime falls on Monday to Friday.","instruction" "In Axon language, How to check if a Date or DateTime is a weekend in Axon?","Use the isWeekend function to check if the given Date or DateTime falls on Saturday or Sunday.","instruction" "In Axon language, What does the 'overridable' tag do in Axon?","The 'overridable' tag is applied to an ext function to enable override by project record functions.","explanation" "In Axon language, What is the purpose of the 'disableOverridableChecks' tag in Axon?","The 'disableOverridableChecks' tag disables a function.","explanation" "In Axon language, What does the 'err' tag indicate in Axon?","The 'err' tag indicates an error condition.","explanation" "In Axon language, What does the 'su' tag require in Axon?","The 'su' tag requires superuser permission.","explanation" "In Axon language, What does the 'admin' tag require in Axon?","The 'admin' tag requires admin permission.","explanation" "In Axon language, What is the format for a feature namespace of definitions?","feature:name","instruction" "In Axon language, How to specify a DateSpan for a 3 month quarter?","DateSpan for this 3 month quarter","instruction" "In Axon language, Which Axon function is referenced in the documentation?","Axon function","instruction" "In Axon language, What is the version and release date of Haxall mentioned?","Haxall 3.1.11 ∙ 10-Dec-2024 14:28 EST","explanation" "In Axon language, How to join two grids by column name in func:join?","Use join(a, b, joinColName) to join two grids by the specified column name.","instruction" "In Axon language, What are the requirements for using func:join?","Both grids must not have conflicting column names except for the join column, and each row in both grids must have a unique value for the join column.","explanation" "In Axon language, How is metadata handled in func:join?","Grid level meta and join column meta are merged when joining two grids.","explanation" "In Axon language, How to check if an object is a Time type in Axon?","Use the feature:name Axon function to return if an object is a Time type.","instruction" "In Axon language, What does the feature:name function do in Axon?","It returns whether an object is a Time type.","explanation" "In Axon language, What is the namespace format for features in Axon?","The namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What does func:fromJavaMillis do?","It returns a DateTime from a number of milliseconds since the Unix epoch (1-Jan-1970 UTC).","explanation" "In Axon language, How to convert milliseconds since Unix epoch to DateTime?","Use fromJavaMillis(millis, tz: null) to convert milliseconds to a DateTime. If tz is null, the system default timezone is used.","instruction" "In Axon language, What happens if the timezone parameter is null in fromJavaMillis?","If timezone is null, fromJavaMillis uses the system default timezone.","explanation" "In Axon language, How to create a new stream for the cell values of a given column?","Use the function to create a new stream for the cell values of the specified column.","instruction" "In Axon language, What is the format for the feature namespace of definitions?","The format for the feature namespace of definitions is feature:name.","explanation" "In Axon language, How to specify a DateSpan for the last 30 days?","today-30days..today","instruction" "In Axon language, How to format a feature namespace definition?","feature:name","instruction" "In Axon language, What is the syntax for a DateSpan from today minus 30 days to today?","today-30days..today","instruction" "In Axon language, What is an Axon function?","Axon function","explanation" "In Axon language, How to construct a Coord from two Numbers in decimal degrees?","Use the Coord constructor with two decimal degree values to create a Coord.","instruction" "In Axon language, What is the format of the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What permission is required to use this feature?","Admin permission is required.","explanation" "In Axon language, What does the Marker label represent?","Marker labels a dict with typing information.","explanation" "In Axon language, What is the version and release date of Haxall?","Haxall 3.1.11 was released on 10-Dec-2024 at 14:28 EST.","explanation" "In Axon language, How to concatenate a list of items into a string in axon?","Use the concat function: [1, 2, 3].concat returns '123'.","instruction" "In Axon language, How to concatenate a list with a separator in axon?","Call concat with a separator: [1, 2, 3].concat(',') returns '1,2,3'.","instruction" "In Axon language, What does the concat function do in axon?","The concat function joins a list of items into a single string, optionally using a separator.","explanation" "In Axon language, How to access the marker value singleton?","Use Marker.val to access the marker value singleton.","instruction" "In Axon language, What is Marker.val?","Marker.val is the marker value singleton.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","instruction" "In Axon language, What is the format of a feature namespace definition?","A feature namespace definition is formatted as feature:name.","explanation" "In Axon language, What is an Axon function?","An Axon function is a function defined in the Axon programming language.","explanation" "In Axon language, How to check if an object is a Uri type?","Use the feature:name Axon function to determine if an object is a Uri type.","instruction" "In Axon language, What is the purpose of the feature:name Axon function?","It returns whether an object is a Uri type.","explanation" "In Axon language, How are feature definitions formatted in the namespace?","Feature definitions are formatted as feature:name.","explanation" "In Axon language, How to get the NA not-available singleton?","Use NA.val to get the NA not-available singleton.","instruction" "In Axon language, What is NA.val?","NA.val is the NA not-available singleton.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","instruction" "In Axon language, What is the format of a feature namespace?","A feature namespace is formatted as feature:name.","explanation" "In Axon language, How to compare two numbers and get the larger one?","Use max(val, acc) to return the larger of the two numbers.","instruction" "In Axon language, How to find the largest number in a list?","Use fold() with max: [7, 2, 4].fold(max) returns 7.","instruction" "In Axon language, What does the max function do?","max compares two numbers and returns the larger one. It can also be used with fold() to find the largest number in a collection.","explanation" "In Axon language, Does max check number units during comparison?","No, max does not check or consider number units when comparing values.","explanation" "In Axon language, How to parse a string into a boolean in axon?","Use parseBool(val) to parse a string like 'true' or 'false' into a Bool.","instruction" "In Axon language, What happens if parseBool receives an invalid string and checked is false?","If the input is invalid and checked is false, parseBool returns null.","explanation" "In Axon language, What does parseBool do if the input is invalid and checked is true?","If the input is invalid and checked is true, parseBool throws a ParseErr.","explanation" "In Axon language, Show an example of parseBool with a valid string.","parseBool('true')","instruction" "In Axon language, Show an example of parseBool with an invalid string and checked set to false.","parseBool('bad', false)","instruction" "In Axon language, How to get the current DateTime in the context's time zone?","Use now() to return the current DateTime according to the context's time zone.","instruction" "In Axon language, What is the accuracy of now()?","now() uses a cached version and is only accurate to within 250ms.","explanation" "In Axon language, Which functions are related to now()?","Related functions include nowTicks() and nowUtc().","explanation" "In Axon language, How to get the name of a Col?","Use the 'name' property on a Col object, e.g., readAll(site).cols.first.name","instruction" "In Axon language, What is the format of the feature namespace of definitions?","feature:name","explanation" "In Axon language, What does the isSpace function do in axon?","isSpace checks if a number represents a whitespace character: space, tab (\\t), newline (\\n), carriage return (\\r), or form feed (\\f).","explanation" "In Axon language, How to check if a character is a whitespace in axon?","Use isSpace(num), where num is the character code to check if it is a whitespace character.","instruction" "In Axon language, Example usage of isSpace with a space character","isSpace("" "".get(0)) returns true.","instruction" "In Axon language, Example usage of isSpace with a non-whitespace character","isSpace(""x"".get(0)) returns false.","instruction" "In Axon language, Example usage of isSpace with a newline character","isSpace(""\\n"".get(0)) returns true.","instruction" "In Axon language, What does 'dis' represent in an error condition?","'dis' should contain the display message for the error.","explanation" "In Axon language, What is 'errTrace' used for?","'errTrace' is referenced in relation to error conditions, likely providing trace information for errors.","explanation" "In Axon language, What does a Marker label do?","A Marker labels a dict with typing information.","explanation" "In Axon language, How to get a column by name in a grid?","Use col(grid, name, checked: true) to get a column by its name.","instruction" "In Axon language, What happens if the column is not found using col?","If not resolved, col returns null or throws UnknownNameErr based on the checked flag.","explanation" "In Axon language, How to get metadata for a column named 'ts'?","Use read(temp).hisRead(today).col('ts').meta to get metadata for the 'ts' column.","instruction" "In Axon language, How to check if a string is an Axon keyword?","Use the function to return true if the given string is an Axon keyword.","instruction" "In Axon language, What is the format of the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What is an Axon function?","An Axon function is a callable operation in the Axon programming language.","explanation" "In Axon language, How to get the host Uri as a string or null?","Use the function to retrieve the host Uri; it returns a string or null.","instruction" "In Axon language, What is the format of the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, How to parse a string into a Time object using parseTime?","Use parseTime(val, pattern) to parse a string into a Time object. For example: parseTime('14:30', 'h:mm').","instruction" "In Axon language, What happens if parseTime fails to parse the string and checked is false?","If parseTime cannot parse the string and checked is false, it returns null.","explanation" "In Axon language, What happens if parseTime fails to parse the string and checked is true?","If parseTime cannot parse the string and checked is true, it throws a ParseErr.","explanation" "In Axon language, How to parse a time string with AM/PM using parseTime?","Use a pattern with 'a' for AM/PM, for example: parseTime('2:30pm', 'k:mma').","instruction" "In Axon language, How to parse a time string with seconds and AM/PM using parseTime?","Use a pattern including seconds and AM/PM, for example: parseTime('2:30:00pm', 'k:mm:ssa').","instruction" "In Axon language, How to get the weekday as an integer from a Date or DateTime in axon?","Use func:weekday(t) to get the weekday as an integer from 0 (Sunday) to 6 (Saturday).","instruction" "In Axon language, What does func:weekday return in axon?","func:weekday returns the weekday as an integer from 0 (Sunday) to 6 (Saturday) for a given Date or DateTime.","explanation" "In Axon language, How to get the last item from a list?","Use last(list) to get the item at index -1, or null if the list is empty.","instruction" "In Axon language, How to get the last item from a grid?","Use last(grid) to get the item at index -1, or null if the grid is empty.","instruction" "In Axon language, How to get the last item from a stream?","Use last(stream) to get the last item, or null if the stream is empty.","instruction" "In Axon language, What does the last function do?","The last function returns the last item from an ordered collection or null if the collection is empty.","explanation" "In Axon language, How to get the name (last item in path) from a Uri?","Use the 'name' Str property of a Uri to get the last item in its path.","instruction" "In Axon language, What is the format of a feature namespace in definitions?","A feature namespace is formatted as feature:name.","explanation" "In Axon language, How to set the unit of a number without converting its value?","Use the as(val, unit) function to set the unit of a number without converting the scalar value.","instruction" "In Axon language, What does the as() function do?","The as() function sets the unit of a number without performing any conversion of its scalar value.","explanation" "In Axon language, How to use as() with a unit string?","Call as() with a unit string, e.g., 75°F.as('°C').","instruction" "In Axon language, How to use as() with a number as the unit parameter?","Call as() with a number whose unit will be used, e.g., 75°F.as(1°C). The scalar value of the unit parameter is ignored.","instruction" "In Axon language, How to check if an object is null in Axon?","Use the 'feature:name' function to return if an object is null.","instruction" "In Axon language, What does the 'feature:name' function do?","It returns if an object is null.","explanation" "In Axon language, How to get the scheme of a Uri as a string or null?","Use the feature:name function to retrieve the scheme of a Uri. It returns the scheme as a string or null if not present.","instruction" "In Axon language, What does the feature:name function do?","The feature:name function returns the scheme part of a Uri as a string or null.","explanation" "In Axon language, What is the format of the feature namespace in definitions?","The feature namespace in definitions is formatted as feature:name.","explanation" "In Axon language, How to filter a list of dicts using func:filter?","[{v:1}, {v:2}, {v:3}, {v:4}].filter(v >= 3)","instruction" "In Axon language, How to filter rows in a grid using func:filter?","readAll(equip).filter(meter)","instruction" "In Axon language, How to filter columns by their meta using func:filter?","read(ahu).toPoints.hisRead(yesterday).cols.filter(kind==""Bool"")","instruction" "In Axon language, How to filter a stream of dicts using func:filter?","readAllStream(equip).filter(siteMeter and elec and meter).collect","instruction" "In Axon language, How to apply a search filter with func:filter?","readAll(equip).filter(parseSearch(""RTU-1""))","instruction" "In Axon language, What types of collections can func:filter be applied to?","func:filter can be applied to Grid, Dict[], Col[], and Stream collections.","explanation" "In Axon language, What types of filter expressions can be used with func:filter?","The filter parameter can be an Axon expression, a filter from parseFilter(), or a filter from parseSearch().","explanation" "In Axon language, What does func:filter return when applied to a Grid?","It returns a new grid with filtered rows.","explanation" "In Axon language, What does func:filter return when applied to a list of dicts?","It returns a list of filtered dicts, filtering out nulls.","explanation" "In Axon language, What does func:filter return when applied to a list of columns?","It returns a list of columns filtered by their meta.","explanation" "In Axon language, What does func:filter return when applied to a stream?","It filters a stream of dicts.","explanation" "In Axon language, How to get the day of the year from a DateTime or Date in axon?","Use dayOfYear(val) to return the day of the year as a number between 1 and 365 (or 1 to 366 in a leap year).","instruction" "In Axon language, What does dayOfYear do in axon?","dayOfYear returns the day of the year for a given DateTime or Date, as a number between 1 and 365 (or 1 to 366 in a leap year).","explanation" "In Axon language, What does eval do in Axon?","Evaluates an Axon string expression in a new scope without access to the current local variables.","explanation" "In Axon language, How to evaluate a string expression in Axon?","Use eval(expr) to evaluate an Axon string expression.","instruction" "In Axon language, Does eval have access to local variables in Axon?","No, eval evaluates the expression in a new scope and does not have access to the current scope of local variables.","explanation" "In Axon language, Show an example of eval in Axon.","eval(""2 + 2"")","instruction" "In Axon language, How to evaluate the current time using eval in Axon?","eval(""now()"")","instruction" "In Axon language, How to check if a string ends with a specific substring in axon?","""hi there"".endsWith(""there"") >> true","instruction" "In Axon language, What does endsWith do in axon?","endsWith(val, sub) returns true if the string val ends with the substring sub.","explanation" "In Axon language, Show an example where endsWith returns false.","""hi there"".endsWith(""hi"") >> false","instruction" "In Axon language, What is a scalar in this language?","Scalar is an atomic value kind.","explanation" "In Axon language, What type of string is supported?","Unicode string of characters.","explanation" "In Axon language, How to replace all occurrences of a substring in a string using axon?","Use the replace function: replace(val, from, to). All three parameters must be strings.","instruction" "In Axon language, What does the axon replace function do?","It replaces all occurrences of the 'from' substring with the 'to' substring in the given string.","explanation" "In Axon language, Show an example of using replace in axon.","""hello"".replace(""hell"", ""t"") returns ""to"".","instruction" "In Axon language, Give another example of replace in axon.","""aababa"".replace(""ab"", ""-"") returns ""a--a"".","instruction" "In Axon language, What are the parameter requirements for axon replace?","All three parameters (val, from, to) must be strings.","explanation" "In Axon language, How to specify a DateSpan for the previous week from Sunday to Saturday?","Use 'sun..sat' to define a DateSpan for the previous week, from Sunday to Saturday, based on the locale's start of week.","instruction" "In Axon language, What does 'sun..sat' represent in DateSpan?","'sun..sat' represents a date range from Sunday to Saturday.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as 'feature:name'.","instruction" "In Axon language, What is the format of a feature namespace definition?","A feature namespace definition uses the format 'feature:name'.","explanation" "In Axon language, What is an Axon function?","An Axon function is a function defined in the Axon programming language.","explanation" "In Axon language, How to check if a URI path ends with a slash?","Return true if the URI path ends in a slash.","instruction" "In Axon language, What is the format of a feature namespace definition?","Feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, How to parse a string into a Ref in axon?","Use parseRef(val) to parse a string into a Ref. For example: parseRef(""abc-123"")","instruction" "In Axon language, What happens if the string to parseRef is not a valid Ref identifier?","If the string is not a valid Ref identifier, parseRef raises ParseErr or returns null based on the checked flag.","explanation" "In Axon language, How does parseRef handle strings with a leading '@'?","If the string has a leading '@', parseRef strips it off before parsing.","explanation" "In Axon language, How to parse a Ref from a string with a leading '@' in axon?","Call parseRef with the string. For example: parseRef(""@abc-123"")","instruction" "In Axon language, What is the purpose of the checked flag in parseRef?","The checked flag determines whether parseRef raises ParseErr or returns null when parsing fails.","explanation" "In Axon language, How to check if a string contains a substring in axon?","Use contains(val, x) where val is a string and x is the substring to search for.","instruction" "In Axon language, How to check if a list contains an item in axon?","Use contains(val, x) where val is a list and x is the item to search for.","instruction" "In Axon language, How to check if a value is inside a range in axon?","Use contains(val, x) where val is a range and x is the value to check for inclusion.","instruction" "In Axon language, How to check if a date is within a DateSpan in axon?","Use contains(val, x) where val is a DateSpan and x is the date to check.","instruction" "In Axon language, What does func:contains do in axon?","func:contains returns whether val contains x, with behavior depending on the type of val.","explanation" "In Axon language, How to flatten a nested list in axon?","Use flatten(list) to flatten a nested list to a single level. For example: [1, [2, 3], [4, [5, 6]]].flatten returns [1, 2, 3, 4, 5, 6].","instruction" "In Axon language, What does func:flatten do in axon?","func:flatten flattens a list to a single level. If the list contains grids, it flattens the rows into a single grid.","explanation" "In Axon language, How to flatten a list of grids in axon?","If you have a list of grids, use flatten to combine the rows into a single grid. For example: [""Carytown"", ""Gaithersburg""].map(n=>readAll(siteRef->dis==n)).flatten.","instruction" "In Axon language, How to check if an object is a span?","Use the feature:name Axon function to return if an object is a span.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns if an object is a span.","explanation" "In Axon language, What is the format of the feature namespace of definitions?","The format is feature:name.","explanation" "In Axon language, How to convert a number to a string in a specific base?","Use toRadix(val, radix) to convert a number to its string representation in the given base.","instruction" "In Axon language, How to pad a number's string representation with leading zeroes?","Pass the width parameter to toRadix(val, radix, width) to prepend leading zeroes until the string reaches the specified width.","instruction" "In Axon language, What does toRadix do?","toRadix converts a number to its string representation in the specified radix (base), optionally padding with leading zeroes to a given width.","explanation" "In Axon language, Example of converting 6 to binary using toRadix.","6.toRadix(2) returns ""110"".","instruction" "In Axon language, Example of converting 255 to hexadecimal with width 4 using toRadix.","255.toRadix(16, 4) returns ""00ff"".","instruction" "In Axon language, What does flatMap do in axon?","flatMap maps each item in a list or grid to zero or more new items and flattens the result.","explanation" "In Axon language, How to use flatMap on a list in axon?","Call flatMap on a list with a function that takes (val) or (val, index) and returns a list of zero or more new values.","instruction" "In Axon language, How to use flatMap on a grid in axon?","Call flatMap on a grid with a function that takes (row) or (row, index) and returns a list of zero or more new Dict rows.","instruction" "In Axon language, How to use flatMap on a stream in axon?","Call flatMap on a stream with a function that takes (val).","instruction" "In Axon language, Show an example of flatMap on a list in axon.","[1, 2, 3].flatMap(v => [v, v+10]) returns [1, 11, 2, 12, 3, 13]","instruction" "In Axon language, How to get the minutes from a time or datetime in Axon?","Use the feature:name function to extract the minutes as an integer between 0 and 59 from a time or datetime value.","instruction" "In Axon language, What does the feature:name function do in Axon?","It returns the minutes component of a time or datetime as an integer from 0 to 59.","explanation" "In Axon language, How to list term definitions in the context namespace?","Use Def[] to list term definitions (tags and conjuncts) in the context namespace.","instruction" "In Axon language, How are definitions formatted in the feature namespace?","Definitions in the feature namespace are formatted as feature:name.","instruction" "In Axon language, What is the format for a definition in the feature namespace?","feature:name","instruction" "In Axon language, How to parse a string into a Uri instance?","Use parseUri(val, checked: true) to parse a string into a Uri instance. If parsing fails and checked is false, it returns null; otherwise, it throws ParseErr.","instruction" "In Axon language, What happens if parseUri fails to parse a string and checked is false?","If parseUri cannot parse the string and checked is false, it returns null.","explanation" "In Axon language, What does parseUri do if checked is true and parsing fails?","If checked is true and parsing fails, parseUri throws a ParseErr.","explanation" "In Axon language, How to convert an escaped URI string to its standard form?","Use uriDecode() to convert a string from escaped form to standard form.","instruction" "In Axon language, What is the difference between parseUri and uriDecode?","parseUri parses a standard URI string into a Uri instance, while uriDecode converts an escaped URI string to its standard form.","explanation" "In Axon language, Example of parsing a standard URI string.","""foo bar"".parseUri returns `foo bar`.","instruction" "In Axon language, Example of decoding an escaped URI string.","""foo%20bar"".uriDecode returns `foo bar`.","instruction" "In Axon language, What does 'overridable' do?","Disables function overridable checking.","explanation" "In Axon language, What is the purpose of the 'Marker' label?","Marker labels a dict with typing information.","explanation" "In Axon language, How to generate a new unique Ref identifier?","Use the feature:name Axon function to generate a new unique Ref identifier.","instruction" "In Axon language, What is the format of the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, How to get the basename (last name in path without extension) of a Uri as a string?","Use the feature:name Axon function to obtain the basename of a Uri, which returns the last name in the path without its extension as a string.","instruction" "In Axon language, What does the feature:name function do?","The feature:name function returns the basename (last name in path without extension) of a Uri as a string.","explanation" "In Axon language, What is the namespace format for features?","The namespace of definitions for features is formatted as feature:name.","explanation" "In Axon language, How to get the absolute value of a number in Axon?","Use the abs function to return the absolute value of a number. If the input is null, it returns null.","instruction" "In Axon language, How to add an item to the end of a list in Axon?","Use the add function to add an item to the end of a list and return a new list.","instruction" "In Axon language, How to add all items to the end of a list in Axon?","Use the addAll function to add all the items to the end of a list and return a new list.","instruction" "In Axon language, How to add a column to a grid in Axon?","Use the addCol function to add a column to a grid by mapping each row to a new cell value.","instruction" "In Axon language, How to get the column names from a grid in Axon?","Use the colNames function to get the column names as a list of strings.","instruction" "In Axon language, How to get a column as a list from a grid in Axon?","Use the colToList function to get a column as a list of the cell values ordered by row.","instruction" "In Axon language, How to check if all items in a collection match a condition in Axon?","Use the all function to return true if all the items in a list, dict, or grid match the given test function.","instruction" "In Axon language, How to check if any item in a collection matches a condition in Axon?","Use the any function to return true if any of the items in a list, dict, or grid match the given test function.","instruction" "In Axon language, How to set the unit of a number in Axon?","Use the as function to set the unit of a number.","instruction" "In Axon language, How to capitalize the first character of a string in Axon?","Use the capitalize function to return the string with the first character converted to uppercase.","instruction" "In Axon language, How to clamp a number between a minimum and maximum in Axon?","Use the clamp function to clamp the number value between the specified min and max.","instruction" "In Axon language, How to get a column by its name in Axon?","Use the col function to get a column by its name.","instruction" "In Axon language, How to concatenate a list of items into a string in Axon?","Use the concat function to concatenate a list of items into a string.","instruction" "In Axon language, How to construct a Coord from two numbers in Axon?","Use the coord function to construct a Coord from two numbers in decimal degrees.","instruction" "In Axon language, How to compute the great-circle distance between two Coords in Axon?","Use the coordDist function to compute the great-circle distance between two Coords.","instruction" "In Axon language, How to get the latitude from a Coord in Axon?","Use the coordLat function to get the latitude of a Coord as a Number.","instruction" "In Axon language, How to get the longitude from a Coord in Axon?","Use the coordLng function to get the longitude of a Coord as a Number.","instruction" "In Axon language, How to count the number of values in Axon?","Use the count function to fold multiple values into their total count. Returns zero if no values.","instruction" "In Axon language, How to get the current top-level function's tags in Axon?","Use the curFunc function to get the current top-level function's tags.","instruction" "In Axon language, How to construct a DateTime from date, time, and timezone in Axon?","Use the dateTime function to construct a DateTime from a date, time, and timezone name.","instruction" "In Axon language, How to get the day of the month from a date in Axon?","Use the day function to get the day of month as an integer between 1 to 31 from a date or datetime.","instruction" "In Axon language, How to get the day of the year from a date in Axon?","Use the dayOfYear function to return the day of the year from a DateTime or Date.","instruction" "In Axon language, How to get the type of a value as a string in Axon?","Use the debugType function to return a string of the given value's type.","instruction" "In Axon language, How to decapitalize the first character of a string in Axon?","Use the decapitalize function to return the string with the first character converted to lowercase.","instruction" "In Axon language, How to look up a definition by symbol name in Axon?","Use the def function to look up a def by its symbol name (Str or Symbol).","instruction" "In Axon language, How to list all definitions in the context namespace in Axon?","Use the defs function to list all definitions in the context namespace as Def[].","instruction" "In Axon language, How to check if a string ends with a specified substring in Axon?","Use the endsWith function to return true if a string ends with the specified substring.","instruction" "In Axon language, How to check if two values are equivalent in Axon?","Use the equals function to return true if two values are equivalent.","instruction" "In Axon language, How to evaluate an Axon string expression?","Use the eval function to evaluate an Axon string expression.","instruction" "In Axon language, How to filter a collection of dicts in Axon?","Use the filter function to apply a filter expression to a collection of dicts.","instruction" "In Axon language, How to find the first matching item in a list or grid in Axon?","Use the find function to find the first matching item in a list or grid by applying the given filter function.","instruction" "In Axon language, How to get the first item from a collection in Axon?","Use the first function to get the first item from an ordered collection or return null if the collection is empty.","instruction" "In Axon language, How to flatten a list to a single level in Axon?","Use the flatten function to flatten a list to a single level.","instruction" "In Axon language, How to format an object using a locale and pattern in Axon?","Use the format function to format an object using the current locale and specified format pattern.","instruction" "In Axon language, How to get the current DateTime in Axon?","Use the now function to return the current DateTime according to the context's time zone.","instruction" "In Axon language, How to get the current DateTime in UTC in Axon?","Use the nowUtc function to return the current DateTime in UTC.","instruction" "In Axon language, How to get the number of items in a collection in Axon?","Use the size function to return the number of items in a string, list, or grid.","instruction" "In Axon language, How to sort a list or grid in Axon?","Use the sort function to sort a list or grid.","instruction" "In Axon language, How to split a string by a separator in Axon?","Use the split function to split a string by the given separator and trim whitespace.","instruction" "In Axon language, How to sum multiple values in Axon?","Use the sum function to fold multiple values into their numeric sum.","instruction" "In Axon language, How to convert a value to its Axon code representation?","Use the toAxonCode function to convert a scalar, list, or dict value to its Axon code representation.","instruction" "In Axon language, How to convert a number to hexadecimal string in Axon?","Use the toHex function to convert a number to a hexadecimal string.","instruction" "In Axon language, How to convert an object to a string in Axon?","Use the toStr function to convert an object to its string representation.","instruction" "In Axon language, How to trim whitespace from a string in Axon?","Use the trim function to trim whitespace from the beginning and end of the string.","instruction" "In Axon language, How to convert a string to uppercase in Axon?","Use the upper function to convert a char number or string to ASCII upper case.","instruction" "In Axon language, How to get the year from a date or datetime in Axon?","Use the year function to get the year as an integer such as 2010 from a date or datetime.","instruction" "In Axon language, How to get yesterday's date in Axon?","Use the yesterday function to return yesterday's Date according to the context's time zone.","instruction" "In Axon language, What does the 'overridable' tag do in Axon?","The 'overridable' tag is applied to an ext function to enable override by project record functions.","explanation" "In Axon language, What does the 'admin' tag indicate in Axon?","The 'admin' tag indicates that the function requires admin permission.","explanation" "In Axon language, What does the 'su' tag indicate in Axon?","The 'su' tag indicates that the function requires superuser permission.","explanation" "In Axon language, What does the 'err' tag indicate in Axon?","The 'err' tag indicates an error condition.","explanation" "In Axon language, What does the 'expr' tag represent in Axon?","The 'expr' tag represents an Axon expression string.","explanation" "In Axon language, What does the 'func' tag represent in Axon?","The 'func' tag represents an Axon function.","explanation" "In Axon language, What does the 'name' tag represent in Axon?","The 'name' tag represents a name key.","explanation" "In Axon language, What does the 'src' tag represent in Axon?","The 'src' tag represents source code.","explanation" "In Axon language, How to capitalize the first character of a string in axon?","Use capitalize(val) to return the string with the first character in uppercase (ASCII only).","instruction" "In Axon language, What does capitalize(val) do in axon?","It returns the input string with the first character converted to uppercase, affecting only ASCII characters.","explanation" "In Axon language, Example usage of capitalize in axon","capitalize(""apple"") returns ""Apple""","instruction" "In Axon language, How to parse a string into a Float in axon?","Use parseFloat(val, checked: true) to parse a string into a Float.","instruction" "In Axon language, What happens if parseFloat receives an invalid format and checked is false?","If the format is invalid and checked is false, parseFloat returns null.","explanation" "In Axon language, What does parseFloat do if checked is true and the input is invalid?","If checked is true and the input is invalid, parseFloat throws a ParseErr.","explanation" "In Axon language, What string representations are used for infinity and NaN in parseFloat?","The representations are '-INF', 'INF', and 'NaN'.","explanation" "In Axon language, Can parseFloat parse strings with units?","No, the string value cannot include a unit.","explanation" "In Axon language, Show an example of parsing a float and formatting it to three decimals.","parseFloat('123.456').format('0.000')","instruction" "In Axon language, How to parse NaN using parseFloat?","parseFloat('NaN')","instruction" "In Axon language, How to parse positive infinity using parseFloat?","parseFloat('INF')","instruction" "In Axon language, How to insert an item into a list at a specific index in Axon?","Use the feature:name function to insert an item into a list at the given index and return a new list.","instruction" "In Axon language, What does the feature:name function do in Axon?","It inserts an item into a list at the specified index and returns a new list.","explanation" "In Axon language, How to check if an object is a ref type?","Use the 'feature:name' Axon function to return if an object is a ref type.","instruction" "In Axon language, What does the 'feature:name' Axon function do?","It returns whether an object is a ref type.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as 'feature:name'.","explanation" "In Axon language, How to merge two Dicts in axon?","Use merge(a, b) to combine two Dicts. Tags from b are added to a, and if a tag exists in both, b's value overwrites a's. Tags in b mapped to Remove.val are removed from the result.","instruction" "In Axon language, What happens if both Dicts have the same tag when using merge?","If both Dicts have the same tag, the value from b will overwrite the value from a in the result.","explanation" "In Axon language, How to remove a tag during a Dict merge in axon?","If a tag in b is mapped to Remove.val, that tag will be removed from the merged result.","instruction" "In Axon language, What does the missing function do in axon?","The missing function checks if a Grid does not have a given column name or if a Dict does not have the given name mapped to a non-null value.","explanation" "In Axon language, How to use missing with a Grid in axon?","Call missing(val, name) with val as a Grid and name as the column name; it returns true if the Grid does not have the column.","instruction" "In Axon language, How to use missing with a Dict in axon?","Call missing(val, name) with val as a Dict and name as the key; it returns true if the key is not mapped to a non-null value.","instruction" "In Axon language, What does func:toLocale do?","It gets the localized string for the given tag name or qualified name.","explanation" "In Axon language, How does toLocale handle keys formatted as 'pod::name'?","If the key is formatted as 'pod::name', toLocale routes to Env.locale.","explanation" "In Axon language, How does toLocale handle keys not formatted as 'pod::name'?","If the key is not formatted as 'pod::name', toLocale routes to Etc.tagToLocale.","explanation" "In Axon language, How to get a localized string for a tag name using toLocale?","Call toLocale(key) with the tag name or qualified name as the argument.","instruction" "In Axon language, How to get the unit string of a number or return null if input is null?","Given a number, return its unit string or null. If the value is null, then return null.","instruction" "In Axon language, What happens if the input value is null when getting the unit string?","If the value is null, then return null.","explanation" "In Axon language, How to find a top-level function by name and get its tags?","Use func('functionName') to find a top-level function by name and return its tags.","instruction" "In Axon language, How to find a top-level function by reference and get its tags?","Use func(functionReference) to find a top-level function by reference and return its tags.","instruction" "In Axon language, What happens if the function is not found using func?","If the function is not found, func will throw an exception or return null based on the checked flag.","explanation" "In Axon language, How to control error handling when using func?","Set the checked flag to true or false in func(name, checked: true) to throw an exception or return null if the function is not found.","instruction" "In Axon language, How to return the absolute value of a number in Axon?","Use the feature:name function to return the absolute value of a number.","instruction" "In Axon language, What happens if the input is null in feature:name?","If the input is null, feature:name returns null.","explanation" "In Axon language, What is the namespace format for features?","The namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What does the gridRowsToDict function do?","gridRowsToDict converts grid rows into a dictionary of name/value pairs, using provided functions to extract the key and value from each row.","explanation" "In Axon language, How to use gridRowsToDict to create a dict of sites with dis:area pairs?","readAll(site).gridRowsToDict(s => s.dis.toTagName, s => s->area)","instruction" "In Axon language, What arguments does gridRowsToDict take?","gridRowsToDict takes a grid, a rowToKey function, and a rowToVal function. The functions receive (row, index) as arguments.","explanation" "In Axon language, How to rename multiple columns in a grid using axon?","Use renameCols(grid, mapping) where mapping is a dict of old to new column names.","instruction" "In Axon language, What does the mapping argument in renameCols do?","The mapping argument is a dictionary that maps old column names to new names for renaming.","explanation" "In Axon language, What happens if a column name in mapping does not exist in the grid when using renameCols?","Old column names not found in the grid are ignored.","explanation" "In Axon language, Show an example of renaming columns 'dis' to 'title' and 'geoAddr' to 'subtitle' in axon.","readAll(site).renameCols({dis:""title"", geoAddr:""subtitle""})","instruction" "In Axon language, What does the 'any' function do?","The 'any' function returns true if any items in a list, dict, grid, string, or stream match the given test function. If the collection is empty, it returns false.","explanation" "In Axon language, How to use 'any' with a list?","Call 'any' on a list with a function that takes (val) or (val, index) and returns true or false.","instruction" "In Axon language, How to use 'any' with a dict?","Call 'any' on a dict with a function that takes (val) or (val, name) and returns true or false.","instruction" "In Axon language, How to use 'any' with a grid?","Call 'any' on a grid with a function that takes (row) or (row, index) and returns true or false.","instruction" "In Axon language, How to use 'any' with a string?","Call 'any' on a string with a function that takes (char) or (char, index) and returns true or false.","instruction" "In Axon language, How to use 'any' with a stream?","Call 'any' on a stream with a function that takes (val) and returns true or false.","instruction" "In Axon language, What happens if the collection is empty when using 'any'?","'any' returns false if the collection is empty.","explanation" "In Axon language, Show an example of 'any' returning true.","[1, 3, 5].any v => v.isOdd returns true.","instruction" "In Axon language, Show an example of 'any' returning false.","[2, 4, 6].any(isOdd) returns false.","instruction" "In Axon language, What does the isAlphaNum function do?","It checks if a number represents an ASCII alphanumeric character (letter or digit).","explanation" "In Axon language, How to check if a character is ASCII alphanumeric in axon?","Use isAlphaNum(num), where num is the character code.","instruction" "In Axon language, isAlphaNum(""A"".get(0)) result","true","instruction" "In Axon language, isAlphaNum(""a"".get(0)) result","true","instruction" "In Axon language, isAlphaNum(""8"".get(0)) result","true","instruction" "In Axon language, isAlphaNum("" "".get(0)) result","false","instruction" "In Axon language, isAlphaNum(""Ã"".get(0)) result","false","instruction" "In Axon language, How to get the port of a Uri as a number or null?","Use the feature:name Axon function to retrieve the port of a Uri as a Number or null.","instruction" "In Axon language, What does the feature:name Axon function do?","It gets the port of a Uri as a Number or returns null if no port is specified.","explanation" "In Axon language, What is the format for feature namespaces in definitions?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, How to convert a scalar value to its Axon code representation?","Use toAxonCode(123) to get ""123"".","instruction" "In Axon language, How to convert a list to its Axon code representation?","Use toAxonCode([1, 2, 3]) to get ""[1, 2, 3]"".","instruction" "In Axon language, How to convert a dictionary to its Axon code representation?","Use toAxonCode({x:123}) to get ""{x:123}"".","instruction" "In Axon language, What does the toAxonCode function do?","It converts a scalar, list, or dict value to its Axon code representation.","explanation" "In Axon language, How does func:split work?","func:split splits a string by the given separator and trims whitespace from each token by default. If the separator is null, it splits by any whitespace character.","explanation" "In Axon language, How to split a string by whitespace using split?","""a b c"".split returns [""a"", ""b"", ""c""]","instruction" "In Axon language, How to split a string by a comma using split?","""a,b,c"".split("","") returns [""a"", ""b"", ""c""]","instruction" "In Axon language, How to split a string by a comma and trim whitespace?","""a, b, c"".split("","") returns [""a"", ""b"", ""c""]","instruction" "In Axon language, How to split a string by a comma without trimming whitespace?","""a, b, c"".split("","", {noTrim}) returns [""a"", "" b"", "" c""]","instruction" "In Axon language, What does the noTrim option do in split?","The noTrim option disables automatic trimming of whitespace from the start and end of tokens.","explanation" "In Axon language, What is the requirement for the separator in split?","If a separator is provided, it must be exactly one character long.","explanation" "In Axon language, What does compDef do?","compDef returns a component definition as a grid where each row corresponds to a cell and its associated meta data. The grid meta is the function level meta data.","explanation" "In Axon language, How to use compDef to get a component definition?","Call compDef with the component name, for example: compDef(""compName"")","instruction" "In Axon language, How to specify a date range from 365 days ago to today?","today-365days..today","instruction" "In Axon language, How are feature namespaces formatted?","feature:name","instruction" "In Axon language, What is the syntax for a DateSpan covering the past year up to today?","today-365days..today","instruction" "In Axon language, What is an Axon function?","Axon function","explanation" "In Axon language, How to parse a string into a DateTime?","Use parseDateTime(val, pattern) to parse a string into a DateTime object according to the specified pattern.","instruction" "In Axon language, What happens if parsing fails in parseDateTime?","If the string cannot be parsed and checked is false, parseDateTime returns null; otherwise, it throws ParseErr.","explanation" "In Axon language, How to specify a custom time zone when parsing a date string?","Pass the desired time zone as the third argument to parseDateTime, for example: parseDateTime(""2023-02-07 14:30"", ""YYYY-MM-DD hh:mm"", ""Paris"").","instruction" "In Axon language, What is the default time zone used by parseDateTime?","If not specified, parseDateTime uses the current time zone (now().tz) by default.","explanation" "In Axon language, How to parse a date string with a custom pattern?","Provide the pattern as the second argument to parseDateTime, for example: parseDateTime(""7/2/23 2:30pm"", ""D/M/YY k:mma"").","instruction" "In Axon language, What are some pattern symbols used in parseDateTime?","Pattern symbols include YYYY for four-digit year, MM for two-digit month, DD for two-digit day, hh for two-digit hour (24h), mm for minutes, ss for seconds, z for time zone offset, and more.","explanation" "In Axon language, How to parse an ISO 8601 date string?","Use a pattern like ""YYYY-MM-DD'T'hh:mm:ss"" with parseDateTime to parse ISO 8601 formatted strings.","instruction" "In Axon language, How to handle optional seconds in the pattern?","Use SS in the pattern to include optional seconds only if they are non-zero.","instruction" "In Axon language, How does the trap function work in Axon?","The trap function retrieves a value by name from a dict or performs a checked readById and name lookup if the value is a Ref. If the name is not mapped in a dict, it throws UnknownNameErr.","explanation" "In Axon language, How to use the -> operator with a dict in Axon?","Use dict->foo to access dict.trap(""foo"").","instruction" "In Axon language, What happens if the name is not mapped when using trap on a dict?","The trap function throws UnknownNameErr if the name is not mapped in the dict.","explanation" "In Axon language, How does trap behave when the value is a Ref?","If the value is a Ref, trap performs a checked readById and then performs the name lookup.","explanation" "In Axon language, What does the spread function do in axon?","The spread function folds multiple values to compute the difference between the maximum and minimum value. It returns null if there are no values.","explanation" "In Axon language, How to use spread to find the difference between max and min in a list?","[7, 2, 3].fold(spread) returns 5.","instruction" "In Axon language, What does spread(val, acc) return if there are no values?","It returns null.","explanation" "In Axon language, What does func:equals do?","func:equals returns whether two values are equivalent, comparing the contents of collections like lists, dicts, and grids.","explanation" "In Axon language, How does func:equals differ from the == operator?","Unlike ==, func:equals compares the contents of collection values such as lists, dicts, and grids.","explanation" "In Axon language, How does func:equals behave for non-collection values?","For non-collection values, func:equals behaves the same as the == operator.","explanation" "In Axon language, Can func:equals be used with lazy grids?","No, func:equals does not work with lazy grids such as hisRead result.","explanation" "In Axon language, How to check if two lists are equivalent in axon?","Use func:equals(list1, list2) to compare the contents of two lists.","instruction" "In Axon language, What does the function 'feature:name' return?","It returns the current locale's start of weekday as an integer from 0 (Sunday) to 6 (Saturday).","explanation" "In Axon language, How are weekdays represented in 'feature:name'?","Weekdays are represented as integers: 0 for Sunday through 6 for Saturday.","explanation" "In Axon language, How to get the current locale's start of weekday in Axon?","Use the 'feature:name' Axon function to get the current locale's start of weekday.","instruction" "In Axon language, What is the fragment identifier in a URI?","The fragment identifier is the portion of a URI after the hash symbol (#).","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, How to iterate over each month in a year using func:eachMonth?","Use eachMonth(2010) d => echo(d) to iterate each month in 2010 and echo the date range.","instruction" "In Axon language, How to call a function for each month in a date span with func:eachMonth?","Pass a date or date span and a function to eachMonth, e.g., eachMonth(today(), f), to call f for each month in the span.","instruction" "In Axon language, What does func:eachMonth do?","func:eachMonth iterates the months of a date span, calling a given function with a DateSpan argument for each month.","explanation" "In Axon language, What type of argument can be passed as dates to func:eachMonth?","The dates argument can be any object convertible to a date range by toDateSpan().","explanation" "In Axon language, How does findAll work with lists?","When used with a list, findAll applies a filter function to each item. The function receives (val) or (val, index) and should return true to keep the item.","explanation" "In Axon language, How does findAll work with dicts?","With a dict, findAll applies a filter function to each value or (value, name) pair. The function should return true to keep the name/value pair.","explanation" "In Axon language, How does findAll work with grids?","For grids, findAll applies a filter function to each row or (row, index). It returns true to keep the row. The resulting grid keeps the original's meta and columns.","explanation" "In Axon language, How does findAll work with streams?","With streams, findAll applies a filter function to each value. The function should return true to match the value.","explanation" "In Axon language, How to find all strings longer than 3 characters in a list?","[""ape"", ""bat"", ""charlie"", ""dingo""].findAll(x => x.size > 3)","instruction" "In Axon language, How to find all even numbers in a list?","[0, 1, 2, 3, 4].findAll(isEven)","instruction" "In Axon language, How to find all grid rows where site area is greater than 10,000ft²?","readAll(site).findAll(s => s->area > 10_000ft²)","instruction" "In Axon language, What does the isMetric function do?","isMetric determines whether the SI metric system should be used based on the input value. It returns true for metric and false for US customary units.","explanation" "In Axon language, How does isMetric handle a dict with geoCountry set to 'US'?","isMetric returns false if geoCountry is 'US'.","explanation" "In Axon language, How does isMetric handle a dict with geoCountry set to a non-US country?","isMetric returns true if geoCountry is not 'US'.","explanation" "In Axon language, How does isMetric handle a number or record with a unit field set to a US customary unit?","isMetric returns false if the unit is a known US customary unit, such as °F or Δ°F.","explanation" "In Axon language, How does isMetric handle a number or record with a unit field set to a metric unit?","isMetric returns true if the unit is a metric unit, such as Δ°C.","explanation" "In Axon language, What does isMetric do if no value is provided?","isMetric falls back to the locale of the hosting server if no value is provided.","explanation" "In Axon language, Show an example of isMetric with geoCountry 'US'.","isMetric({geoCountry:'US'}) returns false.","instruction" "In Axon language, Show an example of isMetric with geoCountry 'FR'.","isMetric({geoCountry:'FR'}) returns true.","instruction" "In Axon language, Show an example of isMetric with a value of 75°F.","isMetric(75°F) returns false.","instruction" "In Axon language, Show an example of isMetric with a record with unit 'Δ°C'.","isMetric({unit:'Δ°C'}) returns true.","instruction" "In Axon language, Show an example of isMetric with no arguments.","isMetric() returns the result based on the server locale.","instruction" "In Axon language, What does the func:gridColsToDict function do?","It converts grid columns into a dictionary of name/value pairs, using provided functions to extract the key and value from each column.","explanation" "In Axon language, How do you use gridColsToDict to map column names to their display names?","Call gridColsToDict with c => c.name as the key function and c => c.meta.dis as the value function.","instruction" "In Axon language, What arguments does gridColsToDict take?","It takes a grid, a function to extract the key from each column, and a function to extract the value from each column.","explanation" "In Axon language, How to remove columns from a grid using removeCols?","Use removeCols(grid, cols) to return a new grid with the specified columns removed. Columns can be specified as string names or Col instances.","instruction" "In Axon language, What does removeCols do in axon?","removeCols returns a new grid with all the given columns removed. The columns can be specified by their string names or as Col instances.","explanation" "In Axon language, How to create a new stream from a given collection?","Use the feature:name definition to create a new stream from the specified collection.","instruction" "In Axon language, What is the format for feature namespace definitions?","Feature namespace definitions are formatted as feature:name.","explanation" "In Axon language, What is the purpose of feature:name in Axon?","feature:name is used to define or reference features within the Axon language.","explanation" "In Axon language, How to get the list of values used by a dict?","Use the values() method to retrieve all values from a dict.","instruction" "In Axon language, What is the format of a feature namespace definition?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, How to count multiple values and return zero if there are none?","Use the fold function to count multiple values; it returns zero if no values are present.","instruction" "In Axon language, What is the format of a feature namespace definition?","A feature namespace definition is formatted as feature:name.","explanation" "In Axon language, What does 'feature:name' represent?","'feature:name' represents a feature namespace definition.","explanation" "In Axon language, How to check if an object is a grid that conforms to the history grid shape?","Return if an object is a grid that conforms to the history grid shape.","instruction" "In Axon language, What is the history grid shape?","history grid shape","explanation" "In Axon language, What is the format of the feature namespace of definitions?","Feature namespace of definitions formatted as feature:name","explanation" "In Axon language, How is a feature namespace formatted?","feature:name","instruction" "In Axon language, What is an Axon function?","Axon function","explanation" "In Axon language, How to find the last occurrence of a substring in a string using indexr?","Use indexr(val, x, offset) where val is the string, x is the substring to search, and offset is the starting index (default is -1).","instruction" "In Axon language, How to find the last occurrence of an item in a list using indexr?","Use indexr(val, x, offset) where val is the list, x is the item to search, and offset is the starting index (default is -1).","instruction" "In Axon language, What does the offset parameter do in indexr?","The offset parameter specifies the index to start searching backward from. A negative offset accesses from the end.","explanation" "In Axon language, What does indexr return if no occurrences are found?","indexr returns null if no occurrences are found.","explanation" "In Axon language, What types of values can val and x be in indexr?","If val is a string, x is a substring. If val is a list, x is an item to search.","explanation" "In Axon language, What is the DateSpan for the previous year?","Jan-1..Dec-31","explanation" "In Axon language, How are feature namespaces formatted?","feature:name","explanation" "In Axon language, What is an Axon function?","Axon function","explanation" "In Axon language, What is the version and release date of Haxall?","Haxall 3.1.11 ∙ 10-Dec-2024 14:28 EST","explanation" "In Axon language, What does isUpper(num) do?","It checks if the number is an ASCII uppercase alphabetic character (A-Z).","explanation" "In Axon language, How to check if a character is uppercase in axon?","Use isUpper(num), where num is the character code. For example: isUpper(""A"".get(0)) returns true.","instruction" "In Axon language, Give examples of isUpper usage.","isUpper(""A"".get(0)) returns true; isUpper(""a"".get(0)) returns false; isUpper(""5"".get(0)) returns false.","instruction" "In Axon language, How to remove an item from a collection and return a new collection?","Use the feature:name Axon function to remove an item from a collection and return a new collection.","instruction" "In Axon language, What does the feature:name Axon function do?","It removes an item from a collection and returns a new collection.","explanation" "In Axon language, What does colsToLocale(grid) do?","Localizes column display names by adding a display tag based on the column name for each column that does not have an explicit display name.","explanation" "In Axon language, How to localize column display names in a grid?","Use colsToLocale(grid) to add display tags to columns without explicit display names, based on their column names.","instruction" "In Axon language, How to replace all null cells in a grid with zero?","Use grid.gridReplace(null, 0) to replace all null cells with zero.","instruction" "In Axon language, How to replace all NA cells in a grid with zero?","Use grid.gridReplace(na(), 0) to replace all NA cells with zero.","instruction" "In Axon language, What does gridReplace do?","gridReplace replaces every grid cell with the given from value with the to value, using equality (==) comparison.","explanation" "In Axon language, Does gridReplace modify the grid's meta information?","No, the resulting grid has the same grid and col meta as the original.","explanation" "In Axon language, How does gridReplace compare values for replacement?","gridReplace uses the == operator for comparison, so it only replaces scalar values or null.","explanation" "In Axon language, How to check if an object is a grid type?","Use the feature:name Axon function to return if an object is a grid type.","instruction" "In Axon language, What is the purpose of the feature:name Axon function?","It returns whether an object is a grid type.","explanation" "In Axon language, How are feature definitions formatted?","Feature definitions are formatted as feature:name.","explanation" "In Axon language, How to check if an object is a DateTime type in Axon?","Use the feature:name Axon function to return if an object is a DateTime type.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns whether an object is a DateTime type.","explanation" "In Axon language, What is the namespace format for features in Axon?","Features use a namespace format of feature:name.","explanation" "In Axon language, How to list lib definitions in the context namespace?","Use Def[] to list the lib definitions in the context namespace.","instruction" "In Axon language, How are feature namespace definitions formatted?","Feature namespace definitions are formatted as feature:name.","explanation" "In Axon language, What is the format for a feature namespace?","The format for a feature namespace is feature:name.","explanation" "In Axon language, How to get the list of names used by a dict?","Use the feature:name function to retrieve the list of names from a given dict.","instruction" "In Axon language, What does the feature:name function do?","It returns the list of names used by a given dict.","explanation" "In Axon language, What is the format of definitions in the feature namespace?","Definitions in the feature namespace are formatted as feature:name.","explanation" "In Axon language, How to check if an object is a list type?","Use the feature:name Axon function to return true if the object is a list type.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns true if the given object is a list type.","explanation" "In Axon language, What is the namespace format for features?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, How to replace column meta-data in a grid using setColMeta?","Use setColMeta(grid, name, meta) to return a new grid with the specified column's meta-data replaced by the given meta dictionary. If the column is not found, the original grid is returned.","instruction" "In Axon language, What happens if the specified column is not found when using setColMeta?","If the column is not found, setColMeta returns the original grid unchanged.","explanation" "In Axon language, What does func:transpose do in axon?","func:transpose performs a matrix transpose on the grid, turning the cells of the first column into the display names for the new columns, and columns 1..n become the new rows.","explanation" "In Axon language, How to transpose a grid in axon?","Use transpose(grid) to perform a matrix transpose on the grid.","instruction" "In Axon language, Show an example of using transpose in axon.","readAll(site).transpose","instruction" "In Axon language, What does trimEnd do in axon?","trimEnd trims whitespace only from the end of the string.","explanation" "In Axon language, How to use trimEnd to remove trailing whitespace?",""" abc "".trimEnd returns "" abc""","instruction" "In Axon language, Does trimEnd affect leading whitespace?","No, trimEnd only removes whitespace from the end of the string, not the beginning.","explanation" "In Axon language, What is the result of ""abc"".trimEnd?","""abc"".trimEnd returns ""abc""","instruction" "In Axon language, How to parse a filter string into a Filter instance?","Use parseFilter(val, checked: true) to parse a filter string into a Filter instance.","instruction" "In Axon language, What does parseFilter return?","parseFilter returns a Filter instance that can be used with read(), readAll(), filter(), or filterToFunc().","explanation" "In Axon language, How to use parseFilter with readAll?","Call readAll(parseFilter(str)) to read all items matching the filter string.","instruction" "In Axon language, What does decapitalize(val) do?","It returns the input string with the first character converted to lowercase (ASCII only).","explanation" "In Axon language, How to convert the first character of a string to lowercase using decapitalize?","Call decapitalize with the string as argument, e.g., decapitalize('Apple') returns 'apple'.","instruction" "In Axon language, How to access the remove value singleton in Axon?","Use Remove.val to access the remove value singleton.","instruction" "In Axon language, What is the purpose of Remove.val?","Remove.val provides the singleton value used to represent removal in Axon.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","instruction" "In Axon language, What is the format of a feature namespace definition?","A feature namespace definition is formatted as feature:name.","explanation" "In Axon language, How to rename a column in a grid using func:renameCol?","Use renameCol(grid, oldName, newName) to return a new grid with the specified column renamed.","instruction" "In Axon language, Example of renaming a column from 'dis' to 'title' in a grid.","readAll(site).renameCol('dis', 'title')","instruction" "In Axon language, What does func:renameCol do?","func:renameCol returns a new grid with the given column renamed.","explanation" "In Axon language, What does func:swizzleRefs do?","It assigns new ids to each row in a grid and updates all internal Ref tags to use the new ids.","explanation" "In Axon language, How to use swizzleRefs to copy a graph of records?","Call swizzleRefs(grid) on the grid of records to assign new ids and update all internal references.","instruction" "In Axon language, What requirement must each row in the grid meet for swizzleRefs?","Each row must have an id tag.","explanation" "In Axon language, What happens to Ref tags when using swizzleRefs?","Any Ref tags using old ids are replaced with the corresponding new ids.","explanation" "In Axon language, How to get the day of the month as an integer from a date in Axon?","Use the feature:name Axon function to extract the day of the month as an integer between 1 and 31 from a date or datetime.","instruction" "In Axon language, What does the feature:name function do in Axon?","The feature:name function returns the day of the month as an integer (1 to 31) from a date or datetime value.","explanation" "In Axon language, What does parseAst do in Axon?","parseAst parses Axon source code into an abstract syntax tree (AST) modeled as a tree of dicts.","explanation" "In Axon language, How is a literal represented in the Axon AST?","A literal like 123 is represented as {type:""literal"", val:123}.","explanation" "In Axon language, How is a variable represented in the Axon AST?","A variable like a is represented as {type:""var"", name:""a""}.","explanation" "In Axon language, How is a 'not' expression represented in the Axon AST?","An expression like not a is represented as {type:""not"", operand:{type:""var"", name:""a""}}.","explanation" "In Axon language, How is an addition expression represented in the Axon AST?","An expression like a + b is represented as {type:""add"", lhs:{type:""var"", name:""a""}, rhs:{type:""var"", name:""b""}}.","explanation" "In Axon language, How to parse Axon source code into an AST?","Call parseAst(src) with the source code string to obtain the AST.","instruction" "In Axon language, How to get the current UTC DateTime in axon?","Use nowUtc() to return the current DateTime in UTC.","instruction" "In Axon language, What is the accuracy of nowUtc() in axon?","nowUtc() uses a cached version and is only accurate to within 250ms.","explanation" "In Axon language, How to convert an object to its string representation?","Use the feature:name function to convert an object to its string representation.","instruction" "In Axon language, What is the format of the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, How to add an item to the end of a list and return a new list?","Use the feature:name Axon function to add an item to the end of a list and return a new list.","instruction" "In Axon language, What does the feature:name Axon function do?","It adds an item to the end of a list and returns a new list.","explanation" "In Axon language, What does the relDis function do?","The relDis function returns a relative display name by removing the parent prefix from the child display name if the child starts with the parent.","explanation" "In Axon language, How to use relDis to get a relative display name?","Call relDis with a parent and child, both as Dict or Str. If the child display name starts with the parent, the parent part is removed from the child.","instruction" "In Axon language, What types can be used as arguments for relDis?","Both parent and child arguments for relDis must be either a Dict or a Str.","explanation" "In Axon language, How to parse a string into a Symbol in Fantom?","Use parseSymbol(val, checked: true) to parse a Str into a Symbol.","instruction" "In Axon language, What happens if the string is not a valid Symbol identifier in parseSymbol?","If the string is not a valid Symbol identifier, parseSymbol raises ParseErr or returns null based on the checked flag.","explanation" "In Axon language, Can the string include a leading '^' in parseSymbol?","The string must not include a leading '^' when using parseSymbol.","explanation" "In Axon language, Example of parsing a Symbol from a string","parseSymbol(""func:now"")","instruction" "In Axon language, How to collect a stream into an in-memory list?","Use the collect function to gather a stream's items into an in-memory list.","instruction" "In Axon language, What is the format of a feature namespace definition?","A feature namespace definition is formatted as feature:name.","explanation" "In Axon language, What does feature:name represent?","feature:name represents a definition within a feature namespace.","explanation" "In Axon language, How to reverse sort a list in axon?","Use sortr(val, sorter: null) to reverse sort a list or grid.","instruction" "In Axon language, What does sortr do in axon?","sortr reverse sorts a list or grid, working like sort() but in reverse order.","explanation" "In Axon language, How to check if a string, list, dict, or grid is empty in Haxall?","Use the feature:name Axon function to return if a collection (str, list, dict, or grid) is empty.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns whether a collection such as a string, list, dict, or grid is empty.","explanation" "In Axon language, What does the all function do?","The all function returns true if all items in a list, dict, grid, string, or stream match the given test function. If the collection is empty, it returns true.","explanation" "In Axon language, How does all work with a list?","When used with a list, the test function for all takes either (val) or (val, index) and returns true or false.","explanation" "In Axon language, How does all work with a dict?","When used with a dict, the test function for all takes either (val) or (val, name) and returns true or false.","explanation" "In Axon language, How does all work with a grid?","When used with a grid, the test function for all takes either (row) or (row, index) and returns true or false.","explanation" "In Axon language, How does all work with a string?","When used with a string, the test function for all takes either (char) or (char, index) and returns true or false.","explanation" "In Axon language, How does all work with a stream?","When used with a stream, the test function for all takes (val) and returns true or false.","explanation" "In Axon language, What does all return for an empty collection?","If the collection is empty, all returns true.","explanation" "In Axon language, Check if all elements in a list are odd using all","[1, 3, 5].all v => v.isOdd >> true","instruction" "In Axon language, Check if all elements in a list are odd using a function","[1, 3, 6].all(isOdd) >> false","instruction" "In Axon language, How to check if a value is the Number representation of not-a-number in Axon?","Use the 'isNaN' function to return true if val is the Number representation of not-a-number.","instruction" "In Axon language, What does the 'feature:name' format represent?","It is a feature namespace of definitions formatted as feature:name.","explanation" "In Axon language, What is an Axon function?","An Axon function is a function defined in the Axon programming language.","explanation" "In Axon language, What does Etc.isTagName do?","It returns whether the given string is a legal tag name.","explanation" "In Axon language, How to check if a string is a legal tag name in Axon?","Use the function Etc.isTagName.","instruction" "In Axon language, What is the format of a feature namespace definition?","Feature namespace definitions are formatted as feature:name.","explanation" "In Axon language, What does the rowToList function do?","rowToList(row) returns a grid row as a list of cells, including sparse cells as null.","explanation" "In Axon language, How to convert a grid row to a list of cells in axon?","Use rowToList(row) to get a list of cells from a grid row, with sparse cells as null.","instruction" "In Axon language, Show an example of using rowToList in axon.","readAll(equip).first.rowToList","instruction" "In Axon language, How to get the seconds from a time or datetime in Axon?","Use the 'seconds' function to extract the seconds as an integer between 0 and 59 from a time or datetime value.","instruction" "In Axon language, What does the 'seconds' function return in Axon?","It returns the seconds component of a time or datetime as an integer between 0 and 59.","explanation" "In Axon language, How does the trim function work in this language?","The trim function removes whitespace from the beginning and end of a string. Whitespace includes any character equal to or less than the 0x20 space character, such as space, carriage return, newline, and tab.","explanation" "In Axon language, How to trim whitespace from a string?","Use the trim function: "" abc "".trim returns ""abc"".","instruction" "In Axon language, What is considered whitespace in the trim function?","Whitespace includes any character equal to or less than the 0x20 space character, such as space, \\r, \\n, and \\t.","explanation" "In Axon language, What does the padr function do?","The padr function pads a string to the right. If the string's length is less than the specified width, it adds the given character to the left to achieve the specified width.","explanation" "In Axon language, How to pad a string to width 5 using padr?","""xyz"".padr(5, ""-"") returns ""xyz--""","instruction" "In Axon language, How does padr behave if the string is already at least as wide as the specified width?","If the string's length is greater than or equal to the specified width, padr returns the original string unchanged.","explanation" "In Axon language, How to use padr with a custom padding character?","""xyz"".padr(2, ""."") returns ""xyz""","instruction" "In Axon language, How to get the month as an integer (1-12) from a date or datetime in Axon?","Use the feature:name Axon function to extract the month as an integer between 1 and 12 from a date or datetime value.","instruction" "In Axon language, What does the feature:name Axon function do?","The feature:name Axon function returns the month as an integer (1 to 12) from a date or datetime input.","explanation" "In Axon language, What is the output range of the feature:name function when extracting a month?","The output is an integer between 1 and 12, representing the month from the given date or datetime.","explanation" "In Axon language, What does the 'Requires superuser permission' note indicate?","It indicates that the operation or feature requires superuser (administrator) privileges to execute.","explanation" "In Axon language, What is the purpose of the 'Marker' label?","The 'Marker' label identifies a dictionary with typing information.","explanation" "In Axon language, What is Haxall 3.1.11?","Haxall 3.1.11 is a version of the Haxall software, released on 10-Dec-2024 at 14:28 EST.","explanation" "In Axon language, What is the format for feature namespace definitions in Axon?","Feature namespace definitions are formatted as feature:name.","explanation" "In Axon language, How to specify a feature namespace in Axon?","Use the format feature:name to specify a feature namespace.","instruction" "In Axon language, What permission is required for feature:name?","Admin permission is required for feature:name.","explanation" "In Axon language, How to display the name for an entity in Axon?","Use the display name for an entity to show its name.","instruction" "In Axon language, What format is used for documentation in Axon?","Documentation is written in a simplified flavor of markdown.","explanation" "In Axon language, What permission is required for certain actions in Axon?","Superuser permission is required for some actions.","explanation" "In Axon language, What does setMeta do in axon?","setMeta returns a new grid with the grid-level meta-data replaced by the given meta Dict.","explanation" "In Axon language, How to use setMeta to change grid meta-data?","Call setMeta(grid, meta) to return a new grid with the specified meta Dict as its meta-data.","instruction" "In Axon language, Show an example of setMeta usage.","read(temp).hisRead(today).setMeta({view:""table""})","instruction" "In Axon language, How to check if a DateTime is in daylight saving time?","Use dst(dt) to return true if the given DateTime is in daylight saving time for its timezone, or false if it is in standard time.","instruction" "In Axon language, What does dst(dt) do?","dst(dt) returns true if the DateTime is in daylight saving time for its specific timezone, otherwise it returns false.","explanation" "In Axon language, How to get the query portion of a URI after the question mark?","Return the part of the URI that comes after the question mark.","instruction" "In Axon language, What is the format of the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, How to check if a year is a leap year in Axon?","Use the feature:name function with a four-digit year such as 2020 to determine if it is a leap year.","instruction" "In Axon language, What input does the leap year function require?","The function requires a four-digit number representing the year, for example, 2020.","explanation" "In Axon language, What does the feature:name function do?","It returns whether a given four-digit year is a leap year.","explanation" "In Axon language, How to get the Number representation of not-a-number in Axon?","Use the feature:name function to return the Number representation of not-a-number.","instruction" "In Axon language, What does the feature:name function do in Axon?","It returns the Number representation of not-a-number.","explanation" "In Axon language, How to sum multiple values in Axon?","Use the fold function to sum multiple values. It returns their numeric sum or null if no values are provided.","instruction" "In Axon language, What does the fold function return if no values are given?","It returns null.","explanation" "In Axon language, What is the feature namespace format for definitions?","The feature namespace format is feature:name.","explanation" "In Axon language, How to convert a number to a hexadecimal string in Axon?","Use the feature:name function to convert a number to a hexadecimal string.","instruction" "In Axon language, What does the feature:name function do in Axon?","The feature:name function converts a number to a hexadecimal string.","explanation" "In Axon language, What is Ref.dis?","Ref.dis is a feature namespace of definitions formatted as feature:name.","explanation" "In Axon language, How are definitions formatted in Ref.dis?","Definitions in Ref.dis are formatted as feature:name.","instruction" "In Axon language, How to get the time portion from a DateTime value?","Use time(val) where val is a DateTime to extract the time portion.","instruction" "In Axon language, How to construct a time instance from hour and minutes?","Call time(hour, minutes) with the desired hour and minutes as arguments.","instruction" "In Axon language, What does time(val) return if val is a DateTime?","It returns the time portion of the timestamp.","explanation" "In Axon language, What does time(val, minutes, secs) do if val is a Number?","It constructs a time instance from the given hour (val), minutes, and seconds, truncated to the nearest second.","explanation" "In Axon language, How to get the current time using func:time?","Use now().time to get the current time.","instruction" "In Axon language, How to create a time instance for 20:45?","Call time(20, 45) to create a time instance representing 20:45.","instruction" "In Axon language, How to convert a string to lowercase in axon?","Use lower(val) to convert a string to ASCII lowercase. Example: lower(""CAT"") returns ""cat"".","instruction" "In Axon language, How to convert a character code to lowercase in axon?","Pass the character code to lower(), then use toChar. Example: lower(65).toChar returns ""a"".","instruction" "In Axon language, What does func:lower do in axon?","func:lower converts a char, number, or string to ASCII lowercase.","explanation" "In Axon language, How to get the columns from a grid as a list in Axon?","Use readAll(site).cols to get the columns from a grid as a list.","instruction" "In Axon language, How to get the name of the first column in a grid in Axon?","Use readAll(site).cols.first.name to get the name of the first column.","instruction" "In Axon language, What is the format of the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What does evalToFunc do in Axon?","evalToFunc evaluates an Axon string expression to a function. It raises an exception if the expression does not evaluate to a function.","explanation" "In Axon language, How to use evalToFunc with a function name?","Call evalToFunc with the function name as a string, for example: evalToFunc(""now"").call","instruction" "In Axon language, How to use evalToFunc with a lambda expression?","Call evalToFunc with a lambda expression as a string, for example: evalToFunc(""(x, y)=>x+y"").call([3, 4])","instruction" "In Axon language, How to call the function returned by evalToFunc directly?","You can call the returned function directly, for example: (evalToFunc(""(x, y)=>x+y""))(3, 4)","instruction" "In Axon language, How to use evalToFunc with a multi-line string expression?","Call evalToFunc with a triple-quoted string, for example: evalToFunc(""""""replace(_, ""x"", ""_"")"""""").call([""xyz""])","instruction" "In Axon language, What precautions should be taken when using evalToFunc?","Do not use evalToFunc with strings from non-trusted origins, as it evaluates the expression in the runtime.","explanation" "In Axon language, How to calculate the average of a list of numbers?","[7, 2, 3].fold(avg) returns 4","instruction" "In Axon language, What does the avg function do?","It folds multiple values into their standard average or arithmetic mean, ignoring null values and returning null if there are no values.","explanation" "In Axon language, Does avg ignore null values?","Yes, avg ignores null values when calculating the average.","explanation" "In Axon language, What happens if avg is used on an empty list?","It returns null.","explanation" "In Axon language, Is avg the same as math::mean?","Yes, avg is the same as math::mean.","explanation" "In Axon language, How to return the Number representation of negative infinity in Axon?","Use the feature:name function to return the Number representation of negative infinity.","instruction" "In Axon language, What does the feature:name function do in Axon?","The feature:name function returns the Number representation of negative infinity.","explanation" "In Axon language, What is the end value of a DateSpan, Span, or a range?","The end value represents the final point or limit of a DateSpan, Span, or a range.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","instruction" "In Axon language, What is the syntax for a feature namespace definition?","Use the format feature:name for feature namespace definitions.","instruction" "In Axon language, What is an Axon function?","An Axon function is a function defined in the Axon programming language.","explanation" "In Axon language, How to skip items in a stream in Axon?","Use the skip function to skip the given number of items in a stream.","instruction" "In Axon language, What does the skip function do in Axon?","The skip function skips the specified number of items in a stream.","explanation" "In Axon language, What is the feature namespace format for definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What does foldCols do in axon?","foldCols folds a set of columns in each row into a new folded column and returns a new grid. The selected columns are removed from the result.","explanation" "In Axon language, How do you select columns to fold with foldCols?","Columns can be selected by providing a list of column names or a function that takes a column and returns true if it should be selected.","explanation" "In Axon language, How do you use foldCols to sum columns 'b' and 'c' into a new column 'bc'?","g.foldCols([""b"", ""c""], ""bc"", sum)","instruction" "In Axon language, How do you use a function to select columns in foldCols?","g.foldCols(col => col.name == ""b"" or col.name == ""c"", ""bc"", sum)","instruction" "In Axon language, How to check if a Date or DateTime falls on a weekday (Mon-Fri)?","Use the feature:name Axon function to determine if a given Date or DateTime is a weekday (Monday through Friday).","instruction" "In Axon language, What does the feature:name Axon function do?","It checks whether a given Date or DateTime falls on Monday, Tuesday, Wednesday, Thursday, or Friday.","explanation" "In Axon language, How to add a trailing slash to a URI in Haxall?","Use Uri.plusSlash to add a trailing slash to the URI.","instruction" "In Axon language, What does Uri.plusSlash do?","Uri.plusSlash adds a trailing slash to the URI.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, How to add meta-data tags to a grid in axon?","Use addMeta(grid, meta) to return a new grid with additional meta-data tags merged in.","instruction" "In Axon language, What does addMeta do in axon?","addMeta returns a new grid with additional grid-level meta-data tags, merging them according to merge() conventions.","explanation" "In Axon language, Show an example of using addMeta in axon.","read(temp).hisRead(today).addMeta({view:""table""})","instruction" "In Axon language, What does isLower(num) do?","Checks if the number is an ASCII lowercase alphabetic character (a-z).","explanation" "In Axon language, How to check if a character is a lowercase letter in axon?","Use isLower(num), where num is the character code.","instruction" "In Axon language, How to get the display string for an entire dict using func:dis?","Call dis(dict) with name as null to return the display text for the entire dict using Etc.dictToDis.","instruction" "In Axon language, How to get the display string for a specific tag in a dict using func:dis?","Call dis(dict, name) with name as the tag; it formats the tag value using its appropriate toLocale method.","instruction" "In Axon language, What does func:dis do when the name parameter is null?","It returns the display text for the entire dict using Etc.dictToDis.","explanation" "In Axon language, What happens if the name parameter is non-null in func:dis?","It formats the tag value using its appropriate toLocale method.","explanation" "In Axon language, How to add a new row to a grid in axon?","Use addRow(grid, newRow) to append a Dict row to the end of a grid.","instruction" "In Axon language, What does func:addRow do in axon?","func:addRow adds an additional Dict row to the end of a grid.","explanation" "In Axon language, Show an example of using addRow in axon.","readAll(site).addRow({dis:""New Row""})","instruction" "In Axon language, How to get the current top-level function's tags?","Use the feature:name to retrieve the current top-level function's tags.","instruction" "In Axon language, What is the format of the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What does reGroups do in Axon?","reGroups returns a list of substrings captured by matching the given regular expression against a string. It returns null if there are no matches.","explanation" "In Axon language, How does reGroups handle capture groups?","The first item in the list is the entire match, and each additional item corresponds to a capture group in the regex pattern.","explanation" "In Axon language, How to use reGroups to match a pattern in a string?","Call reGroups with a regex and a string. For example: reGroups(r""(RTU|AHU)-(\\d+)"", ""AHU-7"") returns [""AHU-7"", ""AHU"", ""7""].","instruction" "In Axon language, What does reGroups return if there is no match?","reGroups returns null if there are no matches.","explanation" "In Axon language, What does the function gridColKinds do?","Given a grid, gridColKinds returns the types used in each column as a grid with the column name, all different value kinds in the column separated by '|', and the count of non-null values.","explanation" "In Axon language, How to use gridColKinds to analyze a grid?","Call gridColKinds(grid) with your grid to get a summary of each column's name, value kinds, and count of non-null values.","instruction" "In Axon language, What information does gridColKinds return for each column?","For each column, gridColKinds returns the column name, the different value kinds separated by '|', and the count of rows with non-null values.","explanation" "In Axon language, How to get column type information from a site grid?","Use readAll(site).gridColKinds to get the types used in each column of the site grid.","instruction" "In Axon language, What does the function do with x?","It writes the str representation of x to stdout and returns x.","explanation" "In Axon language, What is the format of the feature namespace of definitions?","The format is feature:name.","explanation" "In Axon language, What is the name of the function described?","Axon function.","explanation" "In Axon language, How to list all definitions in the context namespace as Def[]?","Use the feature:name syntax to list all definitions in the context namespace as Def[].","instruction" "In Axon language, What is the format for the namespace of definitions?","The namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What is the Axon function?","Axon function is a feature available in Haxall 3.1.11.","explanation" "In Axon language, What does isAlpha(num) do?","Checks if the given number is an ASCII alphabetic character (either uppercase or lowercase).","explanation" "In Axon language, How to check if a character is an ASCII letter in axon?","Use isAlpha(num), where num is the character code.","instruction" "In Axon language, isAlpha(""A"".get(0))","true","instruction" "In Axon language, isAlpha(""a"".get(0))","true","instruction" "In Axon language, isAlpha(""8"".get(0))","false","instruction" "In Axon language, isAlpha("" "".get(0))","false","instruction" "In Axon language, isAlpha(""Ã"".get(0))","false","instruction" "In Axon language, What does func:eachWhile do?","Iterates the items of a collection until the given function returns non-null. Once non-null is returned, iteration stops and the resulting object is returned. Returns null if the function returns null for every item.","explanation" "In Axon language, How does eachWhile iterate over a Grid?","eachWhile iterates the rows of a Grid as (row, index).","explanation" "In Axon language, How does eachWhile iterate over a List?","eachWhile iterates the items of a List as (val, index).","explanation" "In Axon language, How does eachWhile iterate over a Dict?","eachWhile iterates the name/value pairs of a Dict as (val, name).","explanation" "In Axon language, How does eachWhile iterate over a Str?","eachWhile iterates the characters of a Str as numbers (char, index).","explanation" "In Axon language, How does eachWhile iterate over a Range?","eachWhile iterates the integer range as (integer).","explanation" "In Axon language, How does eachWhile iterate over a Stream?","eachWhile iterates items of a Stream as (val).","explanation" "In Axon language, What does eachWhile return if the function returns null for every item?","eachWhile returns null if the function returns null for every item.","explanation" "In Axon language, How to define a DateSpan for the 3 month quarter previous to this quarter?","Use a DateSpan that covers the three months immediately before the current quarter.","instruction" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, What is the format for feature:name?","The format is 'feature:name', where 'feature' is the namespace and 'name' is the specific feature.","explanation" "In Axon language, What is an Axon function?","An Axon function is a function used within the Axon programming language.","explanation" "In Axon language, What is the version and release date of Haxall mentioned?","Haxall 3.1.11 was released on 10-Dec-2024 at 14:28 EST.","explanation" "In Axon language, How to check if an integer is even in Haxall?","Use the feature:name Axon function to return true if an integer is an even number.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns true if an integer is an even number.","explanation" "In Axon language, How to get the year as an integer from a date or datetime?","Use feature:name to extract the year as an integer, such as 2010, from a date or datetime value.","instruction" "In Axon language, What does feature:name do?","feature:name extracts the year as an integer from a date or datetime value.","explanation" "In Axon language, How to get the timezone as a city name string from a datetime?","Use func:tz(dt) to get the timezone as a city name string in the tzinfo database from a datetime.","instruction" "In Axon language, What happens if the datetime argument to func:tz is null?","If the datetime is null, func:tz returns the environment default timezone.","explanation" "In Axon language, How to convert an object to a string in Axon?","123.toStr returns ""123"".","instruction" "In Axon language, How to concatenate strings in Axon?","""num="" + 3 returns ""num=3"".","instruction" "In Axon language, How to check if a string is empty in Axon?","""hi world"".isEmpty returns false.","instruction" "In Axon language, How to get the size of a string in Axon?","""hi world"".size returns 8.","instruction" "In Axon language, How to access a character by index in a string in Axon?","""hi world""[5] returns 114 (unicode for 'r').","instruction" "In Axon language, How to slice a string using a range in Axon?","""hi world""[3..-2] returns ""worl"".","instruction" "In Axon language, How to find the first index of a substring in Axon?","""root toot"".index(""oo"") returns 1.","instruction" "In Axon language, How to find the last index of a substring in Axon?","""root toot"".indexr(""oo"") returns 6.","instruction" "In Axon language, How to check if a string contains a substring in Axon?","""hi world"".contains(""hi"") returns true.","instruction" "In Axon language, How to convert a string to uppercase in Axon?","""Abc"".upper returns ""ABC"".","instruction" "In Axon language, How to convert a string to lowercase in Axon?","""Abc"".lower returns ""abc"".","instruction" "In Axon language, How to split a string by a delimiter in Axon?","""a,b,c"".split("","") returns [""a"", ""b"", ""c""].","instruction" "In Axon language, How to capitalize a string in Axon?","""fooBar"".capitalize returns ""FooBar"".","instruction" "In Axon language, How to decapitalize a string in Axon?","""FooBar"".decapitalize returns ""fooBar"".","instruction" "In Axon language, How to trim whitespace from a string in Axon?",""" xyz "".trim returns ""xyz"".","instruction" "In Axon language, How to check if a string starts with a substring in Axon?","""abcd"".startsWith(""ab"") returns true.","instruction" "In Axon language, How to check if a string ends with a substring in Axon?","""abcd"".endsWith(""cd"") returns true.","instruction" "In Axon language, How to check if a string is a tag name in Axon?","""foo bar"".isTagName returns false.","instruction" "In Axon language, How to convert a string to a tag name in Axon?","""foo bar"".toTagName returns ""fooBar"".","instruction" "In Axon language, How to replace a substring in Axon?","""root toot"".replace(""oo"", ""a"") returns ""rat tat"".","instruction" "In Axon language, How to get the current DateTime in Axon?","now() returns the current DateTime in local timezone.","instruction" "In Axon language, How to get today's date in Axon?","today() returns today's Date in local timezone.","instruction" "In Axon language, How to get yesterday's date in Axon?","yesterday() returns yesterday's Date in local timezone.","instruction" "In Axon language, How to add days to a date in Axon?","today() + 1day returns tomorrow's date.","instruction" "In Axon language, How to create a DateTime from date, time, and timezone in Axon?","dateTime(2023-03-14, 0:00, ""New_York"") creates a DateTime.","instruction" "In Axon language, How to extract the date portion from a DateTime in Axon?","now().date returns the Date portion.","instruction" "In Axon language, How to extract the time portion from a DateTime in Axon?","now().time returns the Time portion.","instruction" "In Axon language, How to get the timezone name from a DateTime in Axon?","now().tz returns the timezone string name.","instruction" "In Axon language, How to get the year from a date in Axon?","today().year returns the four digit year.","instruction" "In Axon language, How to get the month from a date in Axon?","today().month returns the month as a number between 1 and 12.","instruction" "In Axon language, How to get the day of the month from a date in Axon?","today().day returns the day of month as a number between 1 and 31.","instruction" "In Axon language, How to get the hour from a DateTime in Axon?","now().hour returns the hour as a number between 0 and 23.","instruction" "In Axon language, How to get the minute from a DateTime in Axon?","now().minute returns the minutes as a number between 0 and 59.","instruction" "In Axon language, How to get the second from a DateTime in Axon?","now().second returns the seconds as a number between 0 and 59.","instruction" "In Axon language, How to get the weekday from a date in Axon?","today().weekday returns the day of week as a number between 0 and 6.","instruction" "In Axon language, How to check if a date is a weekend in Axon?","today().isWeekend returns true if Sunday/Saturday.","instruction" "In Axon language, How to check if a date is a weekday in Axon?","today().isWeekday returns true if Monday - Friday.","instruction" "In Axon language, How to get the first day of the month in Axon?","today().firstOfMonth returns the first Date of the month.","instruction" "In Axon language, How to get the last day of the month in Axon?","today().lastOfMonth returns the last Date of the month.","instruction" "In Axon language, How to convert a DateTime to a different timezone in Axon?","now().toTimeZone(""UTC"") converts DateTime to UTC.","instruction" "In Axon language, How to get the number of days in a month in Axon?","today().numDaysInMonth returns the number of days in the month.","instruction" "In Axon language, How to check if a year is a leap year in Axon?","isLeapYear(2024) returns true if 2024 is a leap year.","instruction" "In Axon language, How to check if a DateTime is in daylight saving time in Axon?","now().dst returns true if in daylight saving time.","instruction" "In Axon language, How to get the day of year from a date in Axon?","today().dayOfYear returns a number from 1 to 366.","instruction" "In Axon language, How to get the week of year from a date in Axon?","today().weekOfYear returns a number from 1 to 53.","instruction" "In Axon language, How to get milliseconds since Unix epoch in Axon?","now().toJavaMillis returns milliseconds since Unix epoch.","instruction" "In Axon language, How to convert milliseconds to DateTime in Axon?","now().toJavaMillis.fromJavaMillis converts back to DateTime.","instruction" "In Axon language, How to get a DateSpan for the current week in Axon?","thisWeek() returns a DateSpan for the current week.","instruction" "In Axon language, How to get a DateSpan for the current month in Axon?","thisMonth() returns a DateSpan for the current month.","instruction" "In Axon language, How to get a DateSpan for the current quarter in Axon?","thisQuarter() returns a DateSpan for the current quarter.","instruction" "In Axon language, How to get a DateSpan for the current year in Axon?","thisYear() returns a DateSpan for the current year.","instruction" "In Axon language, How to get a DateSpan for the past week in Axon?","pastWeek() returns a DateSpan for the previous 7 days.","instruction" "In Axon language, How to get a DateSpan for the past month in Axon?","pastMonth() returns a DateSpan for the previous 30 days.","instruction" "In Axon language, How to get a DateSpan for the past year in Axon?","pastYear() returns a DateSpan for the previous 365 days.","instruction" "In Axon language, How to get a DateSpan for last week in Axon?","lastWeek() returns a DateSpan for last week.","instruction" "In Axon language, How to get a DateSpan for last month in Axon?","lastMonth() returns a DateSpan for last month.","instruction" "In Axon language, How to get a DateSpan for last quarter in Axon?","lastQuarter() returns a DateSpan for last quarter.","instruction" "In Axon language, How to get a DateSpan for last year in Axon?","lastYear() returns a DateSpan for last year.","instruction" "In Axon language, How to create a DateSpan from two dates in Axon?","toDateSpan(2023-01-01..2023-02-28) creates a DateSpan.","instruction" "In Axon language, How to create a DateSpan for a single day in Axon?","toDateSpan(2023-02-14) creates a DateSpan for a day.","instruction" "In Axon language, How to create a DateSpan for a month in Axon?","toDateSpan(2023-02) creates a DateSpan for a month.","instruction" "In Axon language, How to create a DateSpan for a year in Axon?","toDateSpan(2023) creates a DateSpan for a year.","instruction" "In Axon language, How to convert a DateSpan to a Span in Axon?","toDateSpan(2023-02).toSpan converts DateSpan to Span.","instruction" "In Axon language, How to get the start of a DateSpan in Axon?","toDateSpan(2024-02).start returns the first day of DateSpan.","instruction" "In Axon language, How to get the end of a DateSpan in Axon?","toDateSpan(2024-02).end returns the last day of DateSpan.","instruction" "In Axon language, How to get the number of days in a DateSpan in Axon?","toDateSpan(2024-02).numDays returns the number of days.","instruction" "In Axon language, How to iterate each day in a DateSpan in Axon?","eachDay(2024-02) (d) => echo(d) iterates the Dates in a DateSpan.","instruction" "In Axon language, How to iterate each month in a DateSpan in Axon?","eachMonth(2024) (d) => echo(d) iterates the months in a DateSpan.","instruction" "In Axon language, How to get the name of a file from a URI in Axon?","`/a/b/file.txt`.uriName returns ""file.txt"".","instruction" "In Axon language, How to get the basename of a file from a URI in Axon?","`/a/b/file.txt`.uriBasename returns ""file"".","instruction" "In Axon language, How to get the extension of a file from a URI in Axon?","`/a/b/file.txt`.uriExt returns ""txt"".","instruction" "In Axon language, How to get the scheme from a URI in Axon?","`http://host:81/a/b/file.txt`.uriScheme returns ""http"".","instruction" "In Axon language, How to get the host from a URI in Axon?","`http://host:81/a/b/file.txt`.uriHost returns ""host"".","instruction" "In Axon language, How to get the port from a URI in Axon?","`http://host:81/a/b/file.txt`.uriPort returns 81.","instruction" "In Axon language, How to get the path string from a URI in Axon?","`http://host:81/a/b/file.txt`.uriPathStr returns ""/a/b/file.txt"".","instruction" "In Axon language, How to get the path as a list from a URI in Axon?","`http://host:81/a/b/file.txt`.uriPath returns [""a"", ""b"", ""file.txt""].","instruction" "In Axon language, How to check if a URI is a directory in Axon?","`/a/b/`.uriIsDir returns true; `/a/b`.uriIsDir returns false.","instruction" "In Axon language, How to encode a URI in Axon?","`file name.html`.uriEncode returns ""file%20name.html"".","instruction" "In Axon language, How to decode a URI in Axon?","""file%20name.html"".uriDecode returns `file name.html`.","instruction" "In Axon language, How to check if a list is empty in Axon?","x.isEmpty returns false for x: [10, 20, 30].","instruction" "In Axon language, How to get the size of a list in Axon?","x.size returns 3 for x: [10, 20, 30].","instruction" "In Axon language, How to access an element by index in a list in Axon?","x[2] returns 30 for x: [10, 20, 30].","instruction" "In Axon language, How to slice a list using a range in Axon?","x[1..-1] returns [20, 30] for x: [10, 20, 30].","instruction" "In Axon language, How to get the first element of a list in Axon?","x.first returns 10 for x: [10, 20, 30].","instruction" "In Axon language, How to find the index of an element in a list in Axon?","x.index(30) returns 2; x.index(40) returns null.","instruction" "In Axon language, How to check if a list contains an element in Axon?","x.contains(20) returns true for x: [10, 20, 30].","instruction" "In Axon language, How to fold a list with a function in Axon?","x.fold(sum) returns 60 for x: [10, 20, 30].","instruction" "In Axon language, How to check if any element in a list matches a condition in Axon?","x.any v => v < 20 returns true for x: [10, 20, 30].","instruction" "In Axon language, How to check if all elements in a list match a condition in Axon?","x.all v => v < 20 returns false for x: [10, 20, 30].","instruction" "In Axon language, How to concatenate list elements into a string in Axon?","x.concat("";"") returns ""10;20;30"" for x: [10, 20, 30].","instruction" "In Axon language, How to add an element to a list in Axon?","x.add(40) returns [10, 20, 30, 40].","instruction" "In Axon language, How to add multiple elements to a list in Axon?","x.addAll([40, 50]) returns [10, 20, 30, 40, 50].","instruction" "In Axon language, How to set a value at an index in a list in Axon?","x.set(2, 99) returns [10, 20, 99].","instruction" "In Axon language, How to insert an element at a specific index in a list in Axon?","x.insert(0, 99) returns [99, 10, 20, 30].","instruction" "In Axon language, How to insert multiple elements at a specific index in a list in Axon?","x.insertAll(0, [88,99]) returns [88, 99, 10, 20, 30].","instruction" "In Axon language, How to remove an element by index from a list in Axon?","x.remove(1) returns [10, 30].","instruction" "In Axon language, How to sort a list in Axon?","y.sort returns [""apple"", ""bee"", ""chart""] for y: [""chat"", ""apple"", ""bee""].","instruction" "In Axon language, How to reverse sort a list in Axon?","y.sortr returns [""chart"", ""bee"", ""apple""].","instruction" "In Axon language, How to sort a list with a custom function in Axon?","y.sort((a,b)=>a.size<=>b.size) sorts by string size.","instruction" "In Axon language, How to iterate over each element in a list in Axon?","y.each s => echo(s) iterates each element.","instruction" "In Axon language, How to map a function over a list in Axon?","y.map s => s.size returns [4, 5, 3] for y: [""chat"", ""apple"", ""bee""].","instruction" "In Axon language, How to flatMap a function over a list in Axon?","y.flatMap s => [s, s.size] returns [""chat"", 4, ""apple"", 5, ""bee"", 3].","instruction" "In Axon language, How to find the first element matching a condition in a list in Axon?","y.find s => s.size == 3 returns ""bee"".","instruction" "In Axon language, How to find all elements matching a condition in a list in Axon?","y.findAll s => s.size <= 4 returns [""chat"", ""bee""].","instruction" "In Axon language, How to move an element to a new index in a list in Axon?","y.moveTo(""chat"", -1) returns [""apple"", ""bee"", ""chat""].","instruction" "In Axon language, How to get unique elements from a list in Axon?","[1,1,1,2].unique returns [1,2].","instruction" "In Axon language, How to check if a dict is empty in Axon?","d.isEmpty returns false for d: {dis:""Bob"", bday:1980-06-01}.","instruction" "In Axon language, How to access a value by key in a dict in Axon?","d[""bday""] returns 1980-06-01.","instruction" "In Axon language, How to access a missing key in a dict in Axon?","d[""foo""] returns null.","instruction" "In Axon language, How to access a value using -> in a dict in Axon?","d->dis returns ""Bob"".","instruction" "In Axon language, What happens if you access a missing key with -> in Axon?","d->foo throws UnknownNameErr exception.","instruction" "In Axon language, How to check if a dict has a key in Axon?","d.has(""bday"") returns true.","instruction" "In Axon language, How to check if a key is missing in a dict in Axon?","d.missing(""bday"") returns false.","instruction" "In Axon language, How to get all keys from a dict in Axon?","d.names returns [""dis"", ""bday""].","instruction" "In Axon language, How to get all values from a dict in Axon?","d.vals returns [""Bob"", 1980-06-01].","instruction" "In Axon language, How to access a dict value as a property in Axon?","d.dis returns ""Bob"".","instruction" "In Axon language, How to format a date in a dict in Axon?","d.dis(""bday"") returns ""1-Jun-1980"".","instruction" "In Axon language, How to check if any value in a dict matches a condition in Axon?","d.any v => v.isDate returns true.","instruction" "In Axon language, How to check if all values in a dict match a condition in Axon?","d.all(isDate) returns false.","instruction" "In Axon language, How to iterate over keys and values in a dict in Axon?","d.each((v, k) => echo(k + "": "" + v)) iterates keys and values.","instruction" "In Axon language, How to set a key-value pair in a dict in Axon?","d.set(""person"", marker()) adds a key and returns a new dict.","instruction" "In Axon language, How to remove a key from a dict in Axon?","d.remove(""bday"") returns {dis:""Bob""}.","instruction" "In Axon language, How to map a function over values in a dict in Axon?","d.map v => v + ""!"" returns {dis:""Bob!"", bday:""1980-06-01!""}.","instruction" "In Axon language, How to find the first value matching a condition in a dict in Axon?","d.find v => v.isDate returns 1980-06-01.","instruction" "In Axon language, How to find all values matching a condition in a dict in Axon?","d.findAll v => v.isDate returns {bday:1980-06-01}.","instruction" "In Axon language, How to create a grid from a list of dicts in Axon?","[{dis:""Site-A"", area:2300ft²}, {dis:""Site-B"", area:3100ft²}, {dis:""Site-C"", area:1950ft²}].toGrid creates a grid.","instruction" "In Axon language, How to check if a grid is empty in Axon?","g.isEmpty returns false.","instruction" "In Axon language, How to get the size of a grid in Axon?","g.size returns 3.","instruction" "In Axon language, How to check if a grid has a column in Axon?","g.has(""area"") returns true.","instruction" "In Axon language, How to check if a grid is missing a column in Axon?","g.missing(""foo"") returns true.","instruction" "In Axon language, How to get grid meta data in Axon?","g.meta returns grid level meta data.","instruction" "In Axon language, How to get all columns in a grid in Axon?","g.cols returns a list of columns.","instruction" "In Axon language, How to get all column names in a grid in Axon?","g.colNames returns [""dis"", ""area""].","instruction" "In Axon language, How to get a column by name in a grid in Axon?","g.col(""dis"") returns the column object.","instruction" "In Axon language, How to get column meta data in Axon?","g.col(""dis"").meta returns meta data for column ""dis"".","instruction" "In Axon language, How to get a column as a list in Axon?","g.colToList(""area"") returns [2300ft², 3100ft², 1950ft²].","instruction" "In Axon language, How to get the first row of a grid in Axon?","g.first returns {dis:""Site-A"", area:2300ft²}.","instruction" "In Axon language, How to get the last row of a grid in Axon?","g.last returns {dis:""Site-C"", area:1950ft²}.","instruction" "In Axon language, How to access a row by index in a grid in Axon?","g[1] returns {dis:""Site-B"", area:3100ft²}.","instruction" "In Axon language, How to slice rows in a grid in Axon?","g[0..1] returns a new grid with Site-A and Site-B.","instruction" "In Axon language, How to iterate over each row in a grid in Axon?","g.each(row=>...) iterates each row as a dict.","instruction" "In Axon language, How to fold a column in a grid in Axon?","g.foldCol(""area"", sum) returns 7350ft².","instruction" "In Axon language, How to check if any row matches a condition in a grid in Axon?","g.any r => r->area > 2000ft² returns true.","instruction" "In Axon language, How to check if all rows match a condition in a grid in Axon?","g.all r => r->area > 2000ft² returns false.","instruction" "In Axon language, How to sort a grid by a column in Axon?","g.sort(""area"") sorts by area column.","instruction" "In Axon language, How to reverse sort a grid by a column in Axon?","g.sortr(""area"") reverse sorts by area column.","instruction" "In Axon language, How to sort a grid with a custom function in Axon?","g.sort((a,b)=>...) sorts with a function.","instruction" "In Axon language, How to map a function over rows in a grid in Axon?","g.map r => r.set(""area"", r->area.to(1m²)) converts area to m².","instruction" "In Axon language, How to find a row matching a condition in a grid in Axon?","g.find r => r->dis == ""Site-A"" finds the row where dis == ""Site-A"".","instruction" "In Axon language, How to find all rows matching a condition in a grid in Axon?","g.findAll r => r->area < 2000 returns a grid with rows where area < 2000.","instruction" "In Axon language, How to add grid meta data in Axon?","g.addMeta({title:""Sites""}) adds grid level meta data.","instruction" "In Axon language, How to add column meta data in Axon?","g.addColMeta(""area"", {dis:""Sq Footage""}) adds column meta data.","instruction" "In Axon language, How to add a new column to a grid in Axon?","g.addCol(""areaM2"") r => r->area.to(1m²) adds a new column with area in m².","instruction" "In Axon language, How to rename a column in a grid in Axon?","g.renameCol(""area"", ""sqFt"") renames column area to sqFt.","instruction" "In Axon language, How to reorder columns in a grid in Axon?","g.reorderCols([""dis"", ""area""]) sets specific column ordering.","instruction" "In Axon language, How to remove a column from a grid in Axon?","g.removeCol(""area"") removes the area column.","instruction" "In Axon language, How to remove multiple columns from a grid in Axon?","g.removeCols([""area""]) removes a list of columns.","instruction" "In Axon language, How to keep only specific columns in a grid in Axon?","g.keepCols([""dis""]) removes all columns except the given list.","instruction" "In Axon language, How to add a row to a grid in Axon?","g.addRow({dis:""Site-D"", area: 4000ft²}) adds a new row.","instruction" "In Axon language, How to add multiple rows to a grid in Axon?","g.addRows([{dis:""Site-D""},{dis:""Site-E""}]) adds new rows.","instruction" "In Axon language, How to get unique rows by a column in a grid in Axon?","g.unique(""dis"") returns grid with unique values in dis column.","instruction" "In Axon language, How to join two grids by a column in Axon?","g.join(h, ""dis"") joins grids g and h by the dis column.","instruction" "In Axon language, How to check if a string matches a regex in Axon?","reMatches(r""AHU-(\\d+)"", ""AHU-10"") returns true.","instruction" "In Axon language, How to find a substring using regex in Axon?","reFind(r""AHU-(\\d+)"", ""Store-2 AHU-3"") returns ""AHU-3"".","instruction" "In Axon language, How to extract regex groups from a string in Axon?","reGroups(r""(Clg|Hgt)-(\\d+)"", ""Hgt-7"") returns [""Hgt-7"", ""Hgt"", ""7""].","instruction" "In Axon language, How to perform a simple query in Axon?","site and geoCity==""Richmond"" finds all sites in Richmond.","instruction" "In Axon language, How to find all equipment within a site by rec id in Axon?","equip and siteRef==xxxx finds all equipment within a site with rec id xxxx.","instruction" "In Axon language, How to find all points within a piece of equipment in Axon?","point and equipRef==xxx finds all points within a piece of equipment.","instruction" "In Axon language, How to read time-series history data for a day in Axon?","readAll(point and equipRef==xxx).hisRead(2009-10-03) reads history data for a single day.","instruction" "In Axon language, How to read time-series history data for a month in Axon?","readAll(point and equipRef==xxx).hisRead(2009-10) reads history data for a month.","instruction" "In Axon language, How to read time-series history data for a year in Axon?","readAll(point and equipRef==xxx).hisRead(2009) reads history data for a year.","instruction" "In Axon language, How to read time-series history data for the past week in Axon?","readAll(point and equipRef==xxx).hisRead(pastWeek) reads history data for the last 7 days.","instruction" "In Axon language, How to roll up time-series data by day in Axon?","readAll(kw).hisRead(2010-03).hisRollup(max, 1day) finds daily max for March 2010.","instruction" "In Axon language, How to find all days where a value exceeded a threshold in Axon?","readAll(kw).hisRead(2010-03).hisRollup(max, 1day).hisFindAll(v => v > 200) finds days where daily max exceeded 200 KW.","instruction" "In Axon language, How to find periods where a value was above a threshold in Axon?","readAll(zoneTemp).hisRead(pastMonth).hisFindPeriods(v => v > 75) finds periods where zone temp was above 75.","instruction" "In Axon language, How to compute the intersection of periods in Axon?","hisPeriodIntersection([coolPeriods, heatPeriods]) computes when both conditions are true.","instruction" "In Axon language, How to look up a def by tag in Axon?","def(^site) looks up the def for the site tag.","instruction" "In Axon language, How to look up a def by name in Axon?","def(""site"") is a convenience for site(^site).","instruction" "In Axon language, How to list all definitions in Axon?","defs() lists all definitions.","instruction" "In Axon language, How to list only tag definitions in Axon?","tags() lists only tag definitions.","instruction" "In Axon language, How to create a pivot table by grouping in Axon?","pivot(input, { rows: {select:""geoState""}, cells: [{select:""cost""}, {select:""dur""}] }) rolls up dur and cost by geoState.","instruction" "In Axon language, How to create a pivot table with custom fold functions in Axon?","pivot(input, { rows: {select:""geoState""}, cells: [{select:""cost"", fold:""avg""}, {select:""cost"", fold:""max""}, {select:""cost"", fold:""min""}] }) folds cost by avg, min, and max.","instruction" "In Axon language, How to create a pivot table with multiple row groupings in Axon?","pivot(input, { rows: [{select:""geoState""}, {select:""geoCity""}], cells: {select:""dur""} }) groups by geoState and geoCity.","instruction" "In Axon language, How to create a pivot table with column grouping in Axon?","pivot(input, { rows: {select:""geoState""}, cols: {select:""geoCity""}, cells: {select:""dur""} }) groups by geoState and geoCity as columns.","instruction" "In Axon language, How to get daily energy consumption data for all sites in Axon?","readAll(energy and siteMeter).hisRead(2011-03).hisRollup(sum, 1day) returns daily consumption for March 2011.","instruction" "In Axon language, How to get monthly energy consumption data for all sites in Axon?","readAll(energy and siteMeter).hisRead(2010).hisRollup(sum, 1mo) returns monthly consumption for 2010.","instruction" "In Axon language, How to get raw demand data for all sites on a specific date in Axon?","readAll(power and siteMeter).hisRead(2011-04-01) returns raw demand data for April 1, 2011.","instruction" "In Axon language, How to normalize demand data by area in Axon?","readAll(power and siteMeter).hisRead(2011-04-01).energyNormByArea normalizes demand by area.","instruction" "In Axon language, How to normalize demand data by degree-day in Axon?","readAll(power and siteMeter).hisRead(2011-04-01).energyNormByDegreeDay normalizes demand by degree-day.","instruction" "In Axon language, How to normalize demand data by area and degree-day in Axon?","readAll(power and siteMeter).hisRead(2011-04-01).energyNormByArea.energyNormByDegreeDay normalizes by both.","instruction" "In Axon language, How to create a table of site dis and total kWh consumption sorted by kWh in Axon?","readAll(energy and siteMeter).hisRead(2011-03).hisRollup(sum, 1mo).hisFlatten((kw,ts,his) => { dis:his->siteRef->dis, kw:kw }).sort(""kw"") sorts by kWh.","instruction" "In Axon language, How to get the average daily profile of hourly demand peak across last month in Axon?","readAll(power and siteMeter).hisRead(lastMonth).hisRollup(max, 1hr).hisDailyProfile(avg) returns the average daily profile.","instruction" "In Axon language, What does reGroups() return in Axon?","reGroups() returns a list of strings for each group defined by (). The first item is always the entire match.","explanation" "In Axon language, Are lists and dicts mutable in Axon?","Functions which modify a list or dict always return a new list or dict; the original is immutable.","explanation" "In Axon language, How does row and column grouping work in pivot tables in Axon?","Row and column groupings in pivot tables are used to group rollups by unique combinations of tag values. Any input row missing a group's selector is skipped.","explanation" "In Axon language, What folding functions are supported in Axon pivot tables?","Supported folding functions in pivot tables include sum, min, max, avg, count, and periodUnion.","explanation" "In Axon language, How to calculate the arithmetic mean of a list of numbers?","[2, 4, 5, 3].fold(mean)","instruction" "In Axon language, What does the mean function do?","It folds a sample of numbers into their standard average or arithmetic mean, ignoring null values and returning null if there are no values.","explanation" "In Axon language, Does the mean function ignore null values?","Yes, null values are ignored when calculating the mean.","explanation" "In Axon language, What happens if there are no values when using mean?","The mean function returns null if there are no values.","explanation" "In Axon language, Is mean the same as core::avg?","Yes, the mean function is the same as core::avg.","explanation" "In Axon language, How to return the base 10 logarithm of a value in Haxall?","Use the feature:name Axon function to return the base 10 logarithm of val.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns the base 10 logarithm of the given value.","explanation" "In Axon language, How to perform multiple linear regression with matrices?","Use matrixFitLinearRegression(y, x) to compute the best fit multiple linear regression equation using the ordinary least squares method, where y is the matrix of dependent variables and x is the matrix of independent variables.","instruction" "In Axon language, What is the output of matrixFitLinearRegression?","The function returns a grid representing the linear equation, including meta information such as bias, r2 (coefficient of determination), r (correlation coefficient), rowCount (number of data rows), and for each X factor, a row with the correlation coefficient b.","explanation" "In Axon language, What does the bias value represent in matrixFitLinearRegression output?","The bias is the zero coefficient which is independent of any of the x factors in the regression equation.","explanation" "In Axon language, What does the r2 value mean in matrixFitLinearRegression?","r2 is the coefficient of determination, a number between 1.0 (perfect correlation) and 0.0 (no correlation).","explanation" "In Axon language, What does the r value indicate in the regression output?","r is the square root of R² and is referred to as the correlation coefficient.","explanation" "In Axon language, What does rowCount indicate in the regression result?","rowCount is the number of rows of data used in the correlation.","explanation" "In Axon language, What does the b value represent for each X factor in the regression output?","For each X factor, b is the correlation coefficient for the given X factor.","explanation" "In Axon language, How to convert an angle in degrees to radians in Axon?","Use the feature:name function to convert degrees to radians.","instruction" "In Axon language, What does the feature:name function do in Axon?","It converts an angle in degrees to an angle in radians.","explanation" "In Axon language, What does the toMatrix function do?","The toMatrix function converts a general grid to an optimized matrix grid, which is a two-dimensional grid of Numbers with columns named 'v0', 'v1', 'v2', etc.","explanation" "In Axon language, How are columns named in the matrix produced by toMatrix?","Columns in the resulting matrix are named 'v0', 'v1', 'v2', and so on.","explanation" "In Axon language, Does toMatrix preserve grid meta and column meta?","toMatrix preserves grid meta but does not preserve column meta.","explanation" "In Axon language, Are units preserved in the numbers of the resulting matrix from toMatrix?","No, numbers in the resulting matrix are unitless; any units passed in are stripped.","explanation" "In Axon language, How can you replace null or NA values when using toMatrix?","You can use the options 'nullVal' and 'naVal' to replace null and NA values in the grid with specified numbers.","explanation" "In Axon language, Show how to use toMatrix to replace null and NA values with 0.","toMatrix(grid, {nullVal: 0, naVal: 0})","instruction" "In Axon language, How do you create a sparse or initialized matrix with toMatrix?","You can pass a Dict with the required tags 'rows', 'cols', and 'init' to create a sparse or initialized matrix.","explanation" "In Axon language, Show how to create a 10x1000 matrix initialized to 0 using toMatrix.","toMatrix({rows:10, cols: 1000, init: 0})","instruction" "In Axon language, How to return the smallest whole number greater than or equal to a value?","Use the function to return the smallest whole number greater than or equal to val. The result has the same unit as val.","instruction" "In Axon language, What does the function do with the unit of val?","The result has the same unit as val.","explanation" "In Axon language, What is the format of a feature namespace definition?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, What is an Axon function?","An Axon function is a function defined in the Axon programming language.","explanation" "In Axon language, How to return the arc sine of a value in Haxall?","Use the feature:name function to return the arc sine of a value.","instruction" "In Axon language, What does the feature:name function do in Haxall?","The feature:name function returns the arc sine of a value.","explanation" "In Axon language, How to return the arc cosine in Haxall?","Use the feature:name function to return the arc cosine.","instruction" "In Axon language, What does the feature:name function do in Haxall?","It returns the arc cosine.","explanation" "In Axon language, What is the namespace format for features in Haxall?","Features are defined using the format feature:name.","explanation" "In Axon language, How to raise a value to a power in Axon?","Use the 'pow' function to return val raised to the specified power.","instruction" "In Axon language, What does the 'pow' function do in Axon?","It returns the value raised to the specified power.","explanation" "In Axon language, What is the feature namespace format in Axon?","Definitions are formatted as feature:name.","explanation" "In Axon language, How to compute e raised to a value in Haxall?","Use the Axon function 'feature:name' to return e raised to val.","instruction" "In Axon language, What does the Axon function 'feature:name' do?","It returns e raised to the given value.","explanation" "In Axon language, How to return the tangent of an angle in radians?","Use the function to return the tangent of an angle in radians.","instruction" "In Axon language, What does the feature:name function do?","It returns the tangent of an angle in radians.","explanation" "In Axon language, What is the namespace format for features?","The namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What does the meanBiasErr function compute?","The meanBiasErr function computes the mean bias error (MBE) between a sample set and its mean.","explanation" "In Axon language, How is MBE calculated in meanBiasErr?","MBE is calculated as the sum of (xᵢ - median) divided by (n - nDegrees), where n is the number of samples and nDegrees is the degrees of freedom.","explanation" "In Axon language, How to use meanBiasErr with zero degrees of freedom?","Use samples.fold(meanBiasErr) to calculate the unbiased mean bias error with zero degrees of freedom.","instruction" "In Axon language, How to use meanBiasErr with one degree of freedom?","Use samples.fold(meanBiasErr(_,_,1)) to calculate the mean bias error with one degree of freedom.","instruction" "In Axon language, What is the constant value for pi?","3.141592653589793","explanation" "In Axon language, How are feature namespaces formatted?","feature:name","explanation" "In Axon language, How to convert rectangular coordinates (x, y) to polar coordinates (r, theta)?","Use the function that converts rectangular coordinates (x, y) to polar (r, theta).","instruction" "In Axon language, What does the function for converting rectangular to polar coordinates do?","It converts rectangular coordinates (x, y) to polar coordinates (r, theta).","explanation" "In Axon language, How do I add two matrices in this language?","Use matrixAdd(a, b) to add two matrices and return a new matrix. Both matrices must have the same dimensions.","instruction" "In Axon language, What does matrixAdd do?","matrixAdd adds two matrices together and returns a new matrix. The inputs must be compatible with toMatrix() and have the same dimensions.","explanation" "In Axon language, How to return the arc tangent in Axon?","Use the feature:name function to return the arc tangent.","instruction" "In Axon language, What does the feature:name function do in Axon?","It returns the arc tangent.","explanation" "In Axon language, How to compute the arc cosine of a value?","Use the 'acos' function to return the arc cosine.","instruction" "In Axon language, How to compute the arc sine of a value?","Use the 'asin' function to return the arc sine.","instruction" "In Axon language, How to compute the arc tangent of a value?","Use the 'atan' function to return the arc tangent.","instruction" "In Axon language, How to convert rectangular coordinates to polar coordinates?","Use the 'atan2' function to convert (x, y) to polar (r, theta).","instruction" "In Axon language, How to perform bitwise and operation?","Use the 'bitAnd' function for bitwise and.","instruction" "In Axon language, How to perform bitwise not operation?","Use the 'bitNot' function for bitwise not.","instruction" "In Axon language, How to perform bitwise or operation?","Use the 'bitOr' function for bitwise or.","instruction" "In Axon language, How to perform bitwise left shift?","Use the 'bitShiftl' function for bitwise left shift.","instruction" "In Axon language, How to perform bitwise right shift?","Use the 'bitShiftr' function for bitwise right shift.","instruction" "In Axon language, How to perform bitwise xor operation?","Use the 'bitXor' function for bitwise xor.","instruction" "In Axon language, How to round up a value to the nearest whole number?","Use the 'ceil' function to return the smallest whole number greater than or equal to the value.","instruction" "In Axon language, How to compute the cosine of an angle in radians?","Use the 'cos' function to return the cosine of an angle in radians.","instruction" "In Axon language, How to compute the hyperbolic cosine?","Use the 'cosh' function to return the hyperbolic cosine.","instruction" "In Axon language, How to compute e raised to a value?","Use the 'exp' function to return e raised to the value.","instruction" "In Axon language, How to compute a linear regression for x, y coordinates?","Use the 'fitLinearRegression' function to compute the best fit linear regression equation using ordinary least squares.","instruction" "In Axon language, How to round down a value to the nearest whole number?","Use the 'floor' function to return the largest whole number less than or equal to the value.","instruction" "In Axon language, How to compute the base 10 logarithm of a value?","Use the 'log10' function to return the base 10 logarithm.","instruction" "In Axon language, How to compute the natural logarithm of a value?","Use the 'logE' function to return the natural logarithm (base e).","instruction" "In Axon language, How to add two matrices?","Use the 'matrixAdd' function to add two matrices and return a new matrix.","instruction" "In Axon language, How to compute the determinant of a matrix?","Use the 'matrixDeterminant' function to return the determinant as a unitless number.","instruction" "In Axon language, How to compute multiple linear regression with matrices?","Use the 'matrixFitLinearRegression' function to compute the best fit multiple linear regression equation using ordinary least squares.","instruction" "In Axon language, How to compute the inverse of a matrix?","Use the 'matrixInverse' function to return the inverse of a matrix.","instruction" "In Axon language, How to multiply two matrices?","Use the 'matrixMult' function to multiply two matrices and return a new matrix.","instruction" "In Axon language, How to subtract two matrices?","Use the 'matrixSub' function to subtract two matrices and return a new matrix.","instruction" "In Axon language, How to transpose a matrix?","Use the 'matrixTranspose' function to transpose a matrix.","instruction" "In Axon language, How to compute the arithmetic mean of a sample?","Use the 'mean' function to fold a sample of numbers into their arithmetic mean.","instruction" "In Axon language, How to compute the mean bias error of a sample?","Use the 'meanBiasErr' function to fold a sample of numbers into their mean bias error (MBE).","instruction" "In Axon language, How to compute the median of a sample?","Use the 'median' function to fold a sample of numbers into their median value.","instruction" "In Axon language, How to get the value of pi?","Use the 'pi' function to return the constant for pi.","instruction" "In Axon language, How to raise a value to a power?","Use the 'pow' function to return the value raised to the specified power.","instruction" "In Axon language, How to compute a quantile of a list of numbers?","Use the 'quantile' function to compute the p-th quantile of a list of numbers.","instruction" "In Axon language, How to generate a random integer within a range?","Use the 'random' function to return a random integer within the given inclusive range.","instruction" "In Axon language, How to compute the remainder of a division?","Use the 'remainder' function to return the remainder or modulo of division.","instruction" "In Axon language, How to compute the root mean square error of a sample?","Use the 'rootMeanSquareErr' function to fold a sample of numbers into their RMSE.","instruction" "In Axon language, How to round a value to the nearest whole number?","Use the 'round' function to return the nearest whole number to the value.","instruction" "In Axon language, How to compute the sine of an angle in radians?","Use the 'sin' function to return the sine of an angle in radians.","instruction" "In Axon language, How to compute the hyperbolic sine?","Use the 'sinh' function to return the hyperbolic sine.","instruction" "In Axon language, How to compute the square root of a value?","Use the 'sqrt' function to return the square root of the value.","instruction" "In Axon language, How to compute the standard deviation of a sample?","Use the 'standardDeviation' function to fold a series of numbers into the standard deviation of a sample.","instruction" "In Axon language, How to compute the tangent of an angle in radians?","Use the 'tan' function to return the tangent of an angle in radians.","instruction" "In Axon language, How to compute the hyperbolic tangent?","Use the 'tanh' function to return the hyperbolic tangent.","instruction" "In Axon language, How to convert radians to degrees?","Use the 'toDegrees' function to convert an angle in radians to degrees.","instruction" "In Axon language, How to convert a grid to a matrix?","Use the 'toMatrix' function to convert a general grid to an optimized matrix grid.","instruction" "In Axon language, How to convert degrees to radians?","Use the 'toRadians' function to convert an angle in degrees to radians.","instruction" "In Axon language, What is the purpose of the math function library?","The math function library provides mathematical functions such as trigonometric, logarithmic, statistical, and matrix operations.","explanation" "In Axon language, How to convert an angle from radians to degrees in Axon?","Use the feature:name function to convert an angle in radians to degrees.","instruction" "In Axon language, What does the feature:name function do in Axon?","The feature:name function converts an angle in radians to an angle in degrees.","explanation" "In Axon language, What does the median function do?","The median function returns the middle value of a sorted list of numbers, or the mean of the two middle values if the list has an even number of elements. Null values are ignored. Returns null if there are no values.","explanation" "In Axon language, How to use the median function to find the median of a list?","[2, 4, 5, 3, 1].fold(median)","instruction" "In Axon language, How to perform bitwise OR in this language?","Use the '|' operator: a | b","instruction" "In Axon language, What is the syntax for a feature namespace definition?","Use the format feature:name","instruction" "In Axon language, How to generate a random integer in the language?","Use random() to generate a random integer within the full range of representative integers.","instruction" "In Axon language, How to generate a random integer within a specific range?","Use random(0..100) to generate a random integer between 0 and 100 inclusive.","instruction" "In Axon language, What does random(range: null) do?","If the range is null, random() returns a random integer within the full range of representative integers.","explanation" "In Axon language, Is the range in random() inclusive?","Yes, the range specified in random() is inclusive.","explanation" "In Axon language, How to perform bitwise not in Haxall?","Use ~a to perform bitwise not.","instruction" "In Axon language, What does ~a do in Haxall?","It performs a bitwise not operation on the value a.","explanation" "In Axon language, How are feature namespaces formatted in Haxall?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, How to multiply two matrices in this language?","Use matrixMult(a, b) to multiply two matrices and return a new matrix.","instruction" "In Axon language, What are the requirements for matrixMult parameters?","Matrix a's column count must match matrix b's row count. Parameters must be values supported by toMatrix().","explanation" "In Axon language, How to perform a bitwise left shift in Haxall?","Use the syntax a << b to shift the bits of a left by b positions.","instruction" "In Axon language, What does the syntax a << b do?","It performs a bitwise left shift, moving the bits of a left by b positions.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","instruction" "In Axon language, How to compute the arc cosine of a value?","Use the acos function to return the arc cosine.","instruction" "In Axon language, How to compute the arc sine of a value?","Use the asin function to return the arc sine.","instruction" "In Axon language, How to compute the arc tangent of a value?","Use the atan function to return the arc tangent.","instruction" "In Axon language, How to convert rectangular coordinates to polar coordinates?","Use the atan2 function to convert rectangular coordinates (x, y) to polar (r, theta).","instruction" "In Axon language, How to perform bitwise and operation?","Use the bitAnd function for bitwise and.","instruction" "In Axon language, How to perform bitwise not operation?","Use the bitNot function for bitwise not.","instruction" "In Axon language, How to perform bitwise or operation?","Use the bitOr function for bitwise or.","instruction" "In Axon language, How to perform bitwise left shift?","Use the bitShiftl function for bitwise left shift.","instruction" "In Axon language, How to perform bitwise right shift?","Use the bitShiftr function for bitwise right shift.","instruction" "In Axon language, How to perform bitwise xor operation?","Use the bitXor function for bitwise xor.","instruction" "In Axon language, How to round up to the nearest whole number?","Use the ceil function to return the smallest whole number greater than or equal to the value.","instruction" "In Axon language, How to compute the cosine of an angle in radians?","Use the cos function to return the cosine of an angle in radians.","instruction" "In Axon language, How to compute the hyperbolic cosine?","Use the cosh function to return the hyperbolic cosine.","instruction" "In Axon language, How to compute e raised to a value?","Use the exp function to return e raised to the value.","instruction" "In Axon language, How to compute a linear regression from x, y coordinates?","Use the fitLinearRegression function to compute the best fit linear regression equation using the ordinary least squares method.","instruction" "In Axon language, How to round down to the nearest whole number?","Use the floor function to return the largest whole number less than or equal to the value.","instruction" "In Axon language, How to compute the base 10 logarithm of a value?","Use the log10 function to return the base 10 logarithm of the value.","instruction" "In Axon language, How to compute the natural logarithm of a value?","Use the logE function to return the natural logarithm (base e) of the value.","instruction" "In Axon language, How to add two matrices?","Use the matrixAdd function to add two matrices and return a new matrix.","instruction" "In Axon language, How to compute the determinant of a matrix?","Use the matrixDeterminant function to return the determinant as a unitless number for the given matrix.","instruction" "In Axon language, How to compute multiple linear regression with matrices?","Use the matrixFitLinearRegression function to compute the best fit multiple linear regression equation using the ordinary least squares method.","instruction" "In Axon language, How to compute the inverse of a matrix?","Use the matrixInverse function to return the inverse of the given matrix.","instruction" "In Axon language, How to multiply two matrices?","Use the matrixMult function to multiply two matrices and return a new matrix.","instruction" "In Axon language, How to subtract two matrices?","Use the matrixSub function to subtract two matrices and return a new matrix.","instruction" "In Axon language, How to transpose a matrix?","Use the matrixTranspose function to transpose the given matrix.","instruction" "In Axon language, How to compute the mean of a sample of numbers?","Use the mean function to fold a sample of numbers into their arithmetic mean.","instruction" "In Axon language, How to compute the mean bias error of a sample?","Use the meanBiasErr function to fold a sample of numbers into their mean bias error (MBE).","instruction" "In Axon language, How to compute the median of a sample?","Use the median function to fold a sample of numbers into their median value.","instruction" "In Axon language, How to get the value of pi?","Use the pi function to return the constant for pi.","instruction" "In Axon language, How to raise a value to a power?","Use the pow function to return the value raised to the specified power.","instruction" "In Axon language, How to compute a quantile of a list of numbers?","Use the quantile function to compute the p-th quantile of a list of numbers according to the specified interpolation method.","instruction" "In Axon language, How to generate a random integer within a range?","Use the random function to return a random integer within the given inclusive range.","instruction" "In Axon language, How to compute the remainder of a division?","Use the remainder function to return the remainder or modulo of a division.","instruction" "In Axon language, How to compute the root mean square error of a sample?","Use the rootMeanSquareErr function to fold a sample of numbers into their root mean square error (RMSE).","instruction" "In Axon language, How to round a value to the nearest whole number?","Use the round function to return the nearest whole number to the value.","instruction" "In Axon language, How to compute the sine of an angle in radians?","Use the sin function to return the sine of an angle in radians.","instruction" "In Axon language, How to compute the hyperbolic sine?","Use the sinh function to return the hyperbolic sine.","instruction" "In Axon language, How to compute the square root of a value?","Use the sqrt function to return the square root of the value.","instruction" "In Axon language, How to compute the standard deviation of a sample?","Use the standardDeviation function to fold a series of numbers into the standard deviation of a sample.","instruction" "In Axon language, How to compute the tangent of an angle in radians?","Use the tan function to return the tangent of an angle in radians.","instruction" "In Axon language, How to compute the hyperbolic tangent?","Use the tanh function to return the hyperbolic tangent.","instruction" "In Axon language, How to convert radians to degrees?","Use the toDegrees function to convert an angle in radians to an angle in degrees.","instruction" "In Axon language, How to convert a general grid to a matrix?","Use the toMatrix function to convert a general grid to an optimized matrix grid.","instruction" "In Axon language, How to convert degrees to radians?","Use the toRadians function to convert an angle in degrees to an angle in radians.","instruction" "In Axon language, How to perform a bitwise AND operation in Haxall?","Use a & b to perform a bitwise AND operation.","instruction" "In Axon language, What is the syntax for a feature namespace definition?","Use feature:name to define a feature namespace.","instruction" "In Axon language, How to return the cosine of an angle in radians in Haxall?","Use the feature:name function to return the cosine of an angle in radians.","instruction" "In Axon language, What does the feature:name function do in Haxall?","It returns the cosine of an angle given in radians.","explanation" "In Axon language, How to perform bitwise xor in this language?","Use a ^ b to perform bitwise xor.","instruction" "In Axon language, What is the syntax for bitwise xor?","a ^ b","instruction" "In Axon language, How are feature namespaces defined?","Feature namespaces are defined using the format feature:name.","explanation" "In Axon language, How to return the largest whole number less than or equal to a value?","Use the function to return the largest whole number less than or equal to val. The result has the same unit as val.","instruction" "In Axon language, What does the result of the function have in relation to val?","The result has the same unit as val.","explanation" "In Axon language, What is the format for the feature namespace of definitions?","The feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What is the function namespace for Axon in Haxall 3.1.11?","The function is in the Axon namespace in Haxall 3.1.11.","explanation" "In Axon language, How to get the nearest whole number to a value in Axon?","Use the function that returns the nearest whole number to val. The result has the same unit as val.","instruction" "In Axon language, What does the function for nearest whole number return in Axon?","It returns the nearest whole number to the input value, preserving the unit.","explanation" "In Axon language, What is the format for a feature namespace definition?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, How to return the inverse of a matrix?","Use the function to return the inverse of the given matrix, which accepts any value accepted by toMatrix().","instruction" "In Axon language, What does toMatrix() accept?","toMatrix() accepts any value that can be converted to a matrix.","explanation" "In Axon language, What is the format of a feature namespace definition?","A feature namespace of definitions is formatted as feature:name.","explanation" "In Axon language, How to return the sine of an angle in radians in Axon?","Use the sine function to return the sine of an angle specified in radians.","instruction" "In Axon language, What does the sine function do in Axon?","It returns the sine of an angle provided in radians.","explanation" "In Axon language, How to compute the natural logarithm of a value in Haxall?","Use the function 'feature:name' to return the natural logarithm to the base e of val.","instruction" "In Axon language, What does the 'feature:name' function do in Haxall?","It returns the natural logarithm to the base e of the given value.","explanation" "In Axon language, How to return the hyperbolic sine in Axon?","Use the feature:name function to return the hyperbolic sine.","instruction" "In Axon language, What does the feature:name function do in Axon?","It returns the hyperbolic sine.","explanation" "In Axon language, How to compute the determinant of a matrix?","Use matrixDeterminant(m) to return the determinant as a unitless Number for the given square matrix m.","instruction" "In Axon language, What type of input does matrixDeterminant accept?","matrixDeterminant accepts any value accepted by toMatrix().","explanation" "In Axon language, What is the requirement for the input matrix in matrixDeterminant?","The matrix must be square.","explanation" "In Axon language, What does matrixDeterminant return?","matrixDeterminant returns the determinant as a unitless Number.","explanation" "In Axon language, How to perform a bitwise right shift in Haxall?","Use the syntax a >> b to shift the bits of a to the right by b positions.","instruction" "In Axon language, What does 'a >> b' do in Haxall?","It performs a bitwise right shift, moving the bits of a to the right by b positions.","explanation" "In Axon language, How are feature namespaces defined in Haxall?","Feature namespaces are defined using the format feature:name.","instruction" "In Axon language, What is the format for feature namespaces in Haxall?","The format is feature:name.","explanation" "In Axon language, How to calculate the standard deviation of a list of numbers?","[4, 2, 5, 8, 6].fold(standardDeviation)","instruction" "In Axon language, What does the standardDeviation function compute?","It folds a series of numbers into the standard deviation of a sample using the formula: s = sqrt(Σ (xᵢ - mean)² / (n-1))","explanation" "In Axon language, How to get the remainder of division in this language?","Use a % b to return the remainder or modulo of division. The result has the same unit as a.","instruction" "In Axon language, What does a % b do?","a % b returns the remainder or modulo of dividing a by b.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","instruction" "In Axon language, How to compute the quantile of a list using the quantile function?","Use [list].fold(quantile(percent, method)) where percent is between 0.0 and 1.0, and method specifies the interpolation method.","instruction" "In Axon language, What interpolation methods are available for quantile?","Available methods are: linear (default), nearest, lower, higher, and midpoint.","explanation" "In Axon language, What does the 'linear' method do in quantile?","The 'linear' method interpolates proportionally between the two closest values.","explanation" "In Axon language, What does the 'nearest' method do in quantile?","The 'nearest' method rounds to the nearest data point.","explanation" "In Axon language, What does the 'lower' method do in quantile?","The 'lower' method rounds to the nearest lower data point.","explanation" "In Axon language, What does the 'higher' method do in quantile?","The 'higher' method rounds to the nearest higher data point.","explanation" "In Axon language, What does the 'midpoint' method do in quantile?","The 'midpoint' method averages the two nearest values.","explanation" "In Axon language, Show an example of quantile with default method.","[10,10,10,25,100].fold(quantile(0.7)) => 22","instruction" "In Axon language, Show an example of quantile with 'nearest' method.","[10,10,10,25,100].fold(quantile(0.7, ""nearest"")) => 25","instruction" "In Axon language, Show an example of quantile with 'lower' method.","[10,10,10,25,100].fold(quantile(0.7, ""lower"")) => 10","instruction" "In Axon language, Show an example of quantile with 'higher' method.","[10,10,10,25,100].fold(quantile(0.7, ""higher"")) => 25","instruction" "In Axon language, Show an example of quantile with 'midpoint' method.","[10,10,10,25,100].fold(quantile(0.7, ""midpoint"")) => 17.5","instruction" "In Axon language, How is the quantile rank calculated?","The rank is calculated as p * (n-1), where p is the percentile (0-1) and n is the list size.","explanation" "In Axon language, What happens if the quantile rank is an integer?","If the rank is an integer, return the value at list[rank].","explanation" "In Axon language, What happens if the quantile rank is not an integer?","If the rank is not an integer, interpolate using the specified method.","explanation" "In Axon language, Show an example where quantile rank is an integer.","[1,2,3,4,5].percentile(0.5) => 3","instruction" "In Axon language, Show how the 'midpoint' method is calculated for quantile.","midpoint = (value2 - value1)/2 + value1","explanation" "In Axon language, Show how the 'linear' method is calculated for quantile.","linear = (fraction * value1) + ((1 - fraction) * value2)","explanation" "In Axon language, What does the feature:name function do?","It returns the hyperbolic tangent.","explanation" "In Axon language, How to use the feature:name function in Axon?","Call feature:name to compute the hyperbolic tangent of a value.","instruction" "In Axon language, How to return the square root of a value in Haxall?","Use the feature:name Axon function to return the square root of val.","instruction" "In Axon language, What does the feature:name Axon function do?","It returns the square root of the given value.","explanation" "In Axon language, How do I subtract two matrices in this library?","Use matrixSub(a, b) to subtract two matrices and return a new matrix. Both matrices must have the same dimensions.","instruction" "In Axon language, What does matrixSub do?","matrixSub subtracts two matrices and returns a new matrix. The inputs must be compatible with toMatrix() and have the same dimensions.","explanation" "In Axon language, What does the rootMeanSquareErr function do?","It folds a sample of numbers into their RMSE (root mean square error), determining the RMSE between a sample set and its mean using the specified degrees of freedom.","explanation" "In Axon language, How do you use rootMeanSquareErr with zero degrees of freedom?","Call samples.fold(rootMeanSquareErr) to compute the unbiased RMSE with zero degrees of freedom.","instruction" "In Axon language, How do you use rootMeanSquareErr with one degree of freedom?","Call samples.fold(rootMeanSquareErr(_,_,1)) to compute the RMSE with one degree of freedom.","instruction" "In Axon language, What is the formula used by rootMeanSquareErr?","RMSE = sqrt( Σ(xᵢ - median)² ) / (n - nDegrees)","explanation" "In Axon language, What is the default value of nDegrees in rootMeanSquareErr?","The default value of nDegrees is 0.","explanation" "In Axon language, How does fitLinearRegression handle missing or invalid data?","Rows without a Number for both x and y, or with special Numbers like infinity or NaN, are skipped.","explanation" "In Axon language, What does fitLinearRegression return?","It returns a dictionary with keys: m (slope), b (intercept), r2 (R² coefficient), xmin, xmax, ymin, and ymax.","explanation" "In Axon language, How to specify which columns to use for x and y in fitLinearRegression?","Use the options x and y to specify the column names for x and y if they are not the first and second columns.","instruction" "In Axon language, How to compute a simple linear regression using fitLinearRegression?","Call fitLinearRegression on a grid of [x, y] data. Example: fitLinearRegression(data) where data is a grid of x and y values.","instruction" "In Axon language, What is the formula for the regression line returned by fitLinearRegression?","The regression line is yᵢ = m xᵢ + b, where m is the slope and b is the intercept.","explanation" "In Axon language, How to perform multiple linear regression?","Use matrixFitLinearRegression() to compute a multiple linear regression.","instruction" "In Axon language, Show an example usage of fitLinearRegression.","data: [{x:1, y:2}, {x:2, y:4}, {x:4, y:4}, {x:6, y:5}].toGrid fitLinearRegression(data) >>> {m:0.4915, b: 2.1525, r2: 0.7502}","instruction" "In Axon language, What does the 'cosh' function do?","Returns the hyperbolic cosine.","explanation" "In Axon language, How to use the 'cosh' function in Axon?","Use 'cosh' to return the hyperbolic cosine of a value.","instruction" "In Axon language, How to transpose a matrix in Haxall?","Use the transpose function on any value accepted by toMatrix().","instruction" "In Axon language, What does toMatrix() do in Haxall?","toMatrix() converts a value into a matrix format.","explanation" "In Axon language, What is the format of feature namespace definitions in Haxall?","Feature namespace definitions are formatted as feature:name.","explanation" "In Axon language, What is an Axon function in Haxall?","An Axon function is a function provided by the Haxall platform for data processing.","explanation" "In Axon language, What does ioInfo(handle) do?","ioInfo(handle) gets information about a file handle and returns a Dict with the same tags as ioDir().","explanation" "In Axon language, What happens if ioInfo is called on a handle not mapped to a file in the virtual file system?","If the I/O handle does not map to a file in the virtual file system, ioInfo throws an exception.","explanation" "In Axon language, How to get information about the io/ directory using ioInfo?","Call ioInfo(`io/`) to read file info for the project's io/ directory.","instruction" "In Axon language, How to get information about the io/sites.trio file using ioInfo?","Call ioInfo(`io/sites.trio`) to read file info for the io/sites.trio file.","instruction" "In Axon language, What does ioAppend do?","ioAppend converts a handle to append mode so that writes add data to the end of the file instead of overwriting it.","explanation" "In Axon language, How to use ioAppend to append text to a file?","Use ioWriteStr with ioAppend to append text: ioWriteStr(""append a line\\n"", ioAppend(`io/foo.txt`))","instruction" "In Axon language, What happens if a handle does not support append mode in ioAppend?","ioAppend raises UnsupportedErr if the handle does not support append mode.","explanation" "In Axon language, How to generate a password-based cryptographic key in io?","Use ioPbk(algorithm, password, salt, iterations, keyLen) to generate a password-based cryptographic key.","instruction" "In Axon language, What does ioPbk do?","ioPbk generates a password-based cryptographic key using the specified algorithm, password, salt, number of iterations, and key length.","explanation" "In Axon language, Show an example of generating a password-based key and encoding it in base64.","ioPbk(""PBKDF2WithHmacSHA1"", ""secret"", ioRandom(64), 1000, 20).ioToBase64","instruction" "In Axon language, How to write a string to an I/O handle in Axon?","Use the feature:name function to write a string to an I/O handle.","instruction" "In Axon language, What does the feature:name function do in Axon?","The feature:name function writes a string to an I/O handle.","explanation" "In Axon language, How to read a file from within a zip archive?","Use ioZipEntry(handle, path) to get an I/O handle for a file inside a zip. For example: ioZipEntry(`io/batch.zip`, `/zone-temp.csv`).ioReadCsv","instruction" "In Axon language, What does ioZipEntry do?","ioZipEntry returns an I/O handle that allows reading from a specific entry within a zip file.","explanation" "In Axon language, What parameters does ioZipEntry require?","ioZipEntry requires a handle to a zip file and a Uri path to the entry inside the zip.","explanation" "In Axon language, What does ioReadStr do?","ioReadStr reads an I/O handle into memory as a string, normalizing newlines into '\\n' characters.","explanation" "In Axon language, How to read an I/O handle as a string with normalized newlines?","Use ioReadStr(handle) to read the handle into memory as a string with all newlines normalized to '\\n'.","instruction" "In Axon language, How to write a value to a Xeto text format file?","Use ioWriteXeto(val, handle, opts) to write a value to a Xeto text format file.","instruction" "In Axon language, What does ioWriteXeto do?","ioWriteXeto writes a value to a Xeto text format file.","explanation" "In Axon language, What are the parameters of ioWriteXeto?","ioWriteXeto takes val (the value to write), handle (the file handle), and opts (optional options, default is null).","explanation" "In Axon language, How to write an Axon data structure to JSON?","Use ioWriteJson(val, handle, opts) to write an Axon data structure to JSON.","instruction" "In Axon language, What is the default encoding used by ioWriteJson?","By default, ioWriteJson uses Haystack 4 (Hayson) encoding.","explanation" "In Axon language, Which types can be written to JSON with ioWriteJson?","ioWriteJson can write SkySpark types that can be mapped to JSON.","explanation" "In Axon language, What does the noEscapeUnicode option do in ioWriteJson?","The noEscapeUnicode option prevents escaping of characters over 0x7F.","explanation" "In Axon language, How to encode JSON using Haystack 3 with ioWriteJson?","Set the v3 option to true in opts to encode JSON using Haystack 3 encoding.","instruction" "In Axon language, How to explicitly use Haystack 4 encoding with ioWriteJson?","Set the v4 option to true in opts to explicitly encode with Haystack 4 encoding.","instruction" "In Axon language, How to read a JSON file in Axon?","Use ioReadJson(handle, opts) to read a JSON file into memory as Axon dicts/lists.","instruction" "In Axon language, What does ioReadJson return?","ioReadJson returns the JSON data as nested Axon dicts and lists.","explanation" "In Axon language, How to decode JSON as Haystack 3 using ioReadJson?","Pass the option v3 to ioReadJson to decode the JSON as Haystack 3.","instruction" "In Axon language, How to ensure object keys are safe tag names in ioReadJson?","Use the safeNames option to convert object keys to safe tag names.","instruction" "In Axon language, What is the default decoding format for ioReadJson?","The default decoding format for ioReadJson is Haystack 4 (Hayson).","explanation" "In Axon language, What happens if object keys are not valid tag names in ioReadJson?","They decode correctly and can be used in-process, but will not serialize correctly over the HTTP API.","explanation" "In Axon language, How to generate a randomized series of bytes for I/O handle?","Use the feature:name function in the Axon language to generate a randomized series of bytes suitable for use as an input I/O handle.","instruction" "In Axon language, What is the purpose of feature:name in Axon?","feature:name is an Axon function used to generate randomized byte sequences for I/O handles.","explanation" "In Axon language, Which namespace format is used for features in Axon?","Features in Axon use the namespace format feature:name.","explanation" "In Axon language, How are feature namespaces formatted in Zinc?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, How to write a Grid to the Zinc format?","Use the feature namespace format feature:name when writing a Grid to the Zinc format.","instruction" "In Axon language, How to write a list of string lines separated by '\\n'?","Join the list of strings using the '\\n' character as a separator.","instruction" "In Axon language, What is the format for a feature namespace of definitions?","Use the format feature:name for a feature namespace of definitions.","instruction" "In Axon language, What does ioEachLine do?","ioEachLine calls a given function for each line of a source stream, passing the line and its zero-based line number.","explanation" "In Axon language, How to use ioEachLine?","Call ioEachLine(handle, fn) where handle is the source stream and fn is a function that takes a string line and a number line number.","instruction" "In Axon language, What parameters does the function passed to ioEachLine receive?","The function receives two parameters: a string representing the line and a zero-based number representing the line number.","explanation" "In Axon language, How to read a Zinc file into memory as a Haystack data type?","Use the Axon function 'feature:name' to read a Zinc file into memory as a Haystack data type.","instruction" "In Axon language, What is the format of feature namespace definitions in this context?","Feature namespace definitions are formatted as 'feature:name'.","explanation" "In Axon language, How to skip a specific number of lines in a file using ioSkip?","Use ioSkip with the 'lines' option: ioSkip(`io/foo.csv`, {lines:4}).ioReadCsv","instruction" "In Axon language, How to skip the byte order mark (BOM) in a file with ioSkip?","Use ioSkip with the 'bom' option: ioSkip(`io/foo.csv`, {bom}).ioReadCsv","instruction" "In Axon language, What options can be used with ioSkip?","Options include: bom (skip byte order mark), bytes (number of bytes to skip for binary streams), chars (number of chars to skip for text streams), and lines (number of lines to skip).","explanation" "In Axon language, What happens if no BOM is detected when using ioSkip with the bom option?","If no BOM is detected, the call is safely ignored and the bytes are pushed back into the input stream.","explanation" "In Axon language, Which byte order marks are supported by ioSkip?","ioSkip supports UTF-16 Big Endian (0xFE_FF), UTF-16 Little Endian (0xFF_FE), and UTF-8 (0xEF_BB_BF) byte order marks.","explanation" "In Axon language, How does ioSkip handle the charset when skipping a BOM?","Skipping a BOM with ioSkip automatically sets the appropriate charset.","explanation" "In Axon language, How to read a text string using ioExt?","Use ioReadStr() to read a text string.","instruction" "In Axon language, How to write a text string using ioExt?","Use ioWriteStr() to write a text string.","instruction" "In Axon language, How to read lines of text using ioExt?","Use ioReadLines() to read lines of text.","instruction" "In Axon language, How to write lines of text using ioExt?","Use ioWriteLines() to write lines of text.","instruction" "In Axon language, How to read data in Zinc format?","Use ioReadZinc() to read data in Zinc format.","instruction" "In Axon language, How to write data in Zinc format?","Use ioWriteZinc() to write data in Zinc format.","instruction" "In Axon language, How to read data in Trio format?","Use ioReadTrio() to read data in Trio format.","instruction" "In Axon language, How to write data in Trio format?","Use ioWriteTrio() to write data in Trio format.","instruction" "In Axon language, How to read CSV data?","Use ioReadCsv() to read CSV data.","instruction" "In Axon language, How to write CSV data?","Use ioWriteCsv() to write CSV data.","instruction" "In Axon language, How to process each row in a CSV file?","Use ioEachCsv() to process each row in a CSV file.","instruction" "In Axon language, How to stream CSV data?","Use ioStreamCsv() to stream CSV data.","instruction" "In Axon language, How to read JSON data?","Use ioReadJson() to read JSON data.","instruction" "In Axon language, How to write JSON data?","Use ioWriteJson() to write JSON data.","instruction" "In Axon language, How to write XML data?","Use ioWriteXml() to write XML data.","instruction" "In Axon language, How to read XML data?","Use xmlRead() to read XML data.","instruction" "In Axon language, How to write PDF files?","Use ioWritePdf() to write PDF files.","instruction" "In Axon language, How to write SVG files?","Use ioWriteSvg() to write SVG files.","instruction" "In Axon language, How to write HTML files?","Use ioWriteHtml() to write HTML files.","instruction" "In Axon language, How to write RDF data in Turtle format?","Use ioWriteTurtle() to write RDF data in Turtle format.","instruction" "In Axon language, How to write RDF data in JSON-LD format?","Use ioWriteJsonLd() to write RDF data in JSON-LD format.","instruction" "In Axon language, What types of IO handles can be used with read/write functions?","IO handles can be a string, a Uri starting with 'io/', a 'fan://' Uri, an 'http://' or 'https://' Uri (read-only), or an 'ftp://' or 'ftps://' Uri.","explanation" "In Axon language, What is the default charset for IO handles?","The default charset used by all I/O handles is 'UTF-8'.","explanation" "In Axon language, How to specify a different charset for IO handles?","Wrap the handle with ioCharset() to specify an alternate charset.","instruction" "In Axon language, How to read and write files to an FTP server?","Use a 'ftp://' or 'ftps://' Uri as the IO handle to read and write files to an FTP server.","instruction" "In Axon language, How to set FTP credentials for a server?","Use passwordSet with the base URI ending in a slash and the value as 'user:pass'.","instruction" "In Axon language, What user account is used by default for FTP?","By default, the 'anonymous' user account is used for FTP.","explanation" "In Axon language, How to export sites to a trio file?","Use readAll(site).ioWriteTrio(`io/sites.trio`) to export sites to a trio file.","instruction" "In Axon language, How to export sites to a trio string literal?","Use readAll(site).ioWriteTrio("""") to export sites to a trio string literal.","instruction" "In Axon language, How to export point data to a CSV file?","Use read(weatherTemp).hisRead(pastMonth).ioWriteCsv(`io/point.csv`) to export point data to a CSV file.","instruction" "In Axon language, How to import history data from a CSV file with timestamps?","Use ioReadCsv(`io/his.csv`).map(row => {ts: parseDateTime(row->ts, ""YYYY-MM-DD'T'hh:mm"", ""New_York""), val: parseNumber(row->val)}).hisWrite(hisId) to import history data from a CSV file.","instruction" "In Axon language, How to parse an oBIX XML document and map into name/value pairs?","Use xmlRead(`http://obix.acme.com/obix/about`).xmlElems.map(x => {name:x.xmlAttr(""name"").xmlVal, val:x.xmlAttr(""val"").xmlVal}) to parse an oBIX XML document.","instruction" "In Axon language, How to read a Xeto data file into memory as a Haystack data type?","Use ioReadXeto(handle, opts: null) to read a Xeto data file into memory as a Haystack data type.","instruction" "In Axon language, What does ioReadXeto do?","ioReadXeto reads a Xeto data file into memory as a Haystack data type.","explanation" "In Axon language, How to delete a file or directory using an I/O handle?","Use ioDelete(handle) to delete a file or directory mapped by the given I/O handle. Directories are deleted recursively.","instruction" "In Axon language, What happens if ioDelete is called on a non-existent file?","If the file does not exist, ioDelete takes no action.","explanation" "In Axon language, What exception does ioDelete raise?","ioDelete raises an exception if the I/O handle does not map to a file system.","explanation" "In Axon language, Does ioDelete delete directories recursively?","Yes, if a directory is specified, ioDelete deletes it recursively.","explanation" "In Axon language, How to read a directory listing using ioDir?","Call ioDir(handle) with the directory handle to get a grid of files and directories.","instruction" "In Axon language, What columns are returned by ioDir?","ioDir returns a grid with columns: uri, filename, mimeType, dir, size, and mod.","explanation" "In Axon language, What does the 'uri' column represent in ioDir's result?","The 'uri' column is the Uri for the handle to read or write the filename.","explanation" "In Axon language, What does the 'dir' column indicate in ioDir's output?","The 'dir' column is a marker if the file is a sub-directory or null otherwise.","explanation" "In Axon language, What happens if ioDir is called on a non-file-system handle?","ioDir throws an exception if the handle does not map to a file in the virtual file system.","explanation" "In Axon language, How to list files in the project's io/ directory?","Use ioDir(`io/`) to read files in the project's io/ directory.","instruction" "In Axon language, How to list files in a pod using ioDir?","Use ioDir(`fan://haystack`) to read files in the specified pod.","instruction" "In Axon language, What does ioFromBase64 do?","ioFromBase64 returns an I/O handle to decode from a base64 string.","explanation" "In Axon language, How to decode a base64 string using ioFromBase64?","Use ioFromBase64 with the base64 string, then call ioReadStr to get the decoded string. Example: ioFromBase64(""c2t5c3Bhcms"").ioReadStr","instruction" "In Axon language, What does ioReadCsv do?","ioReadCsv reads a CSV file into memory as a Grid, following RFC 4180 specifications.","explanation" "In Axon language, How are rows and cells separated in ioReadCsv?","Rows are delimited by a newline and cells are separated by a delimiter character, defaulting to a comma.","explanation" "In Axon language, How does ioReadCsv handle quoted cells?","Cells containing the delimiter, double quote, or newline are quoted, and quotes are escaped as """".","explanation" "In Axon language, How are empty cells treated in ioReadCsv?","Empty cells are normalized into null.","explanation" "In Axon language, What options does ioReadCsv support?","ioReadCsv supports 'delimiter' to specify the separator character and 'noHeader' to use generic column names instead of the first row.","explanation" "In Axon language, How to read a CSV file with a custom delimiter using ioReadCsv?","Call ioReadCsv(handle, {delimiter: ';'}) to use a semicolon as the separator.","instruction" "In Axon language, How to read a CSV file without headers using ioReadCsv?","Call ioReadCsv(handle, {noHeader: true}) to treat the first row as data and use generic column names.","instruction" "In Axon language, How to convert a handle to append mode?","Use ioAppend to convert a handle to append mode.","instruction" "In Axon language, How to set the charset for an I/O handle?","Use ioCharset to configure an I/O handle to use the specified charset.","instruction" "In Axon language, How to copy a file or directory to a new location?","Use ioCopy to copy a file or directory to the specified location.","instruction" "In Axon language, How to generate a CRC code for a file?","Use ioCrc to generate a cycle redundancy check code as a Number.","instruction" "In Axon language, How to create a directory or empty file?","Use ioCreate to create a directory or empty file with the given I/O handle.","instruction" "In Axon language, How to delete a file or directory?","Use ioDelete to delete a file or directory as mapped by the given I/O handle.","instruction" "In Axon language, How to generate a hash of a file?","Use ioDigest to generate a one-way hash of the given I/O handle.","instruction" "In Axon language, How to read a directory listing?","Use ioDir to read a directory listing and return a grid with columns.","instruction" "In Axon language, How to iterate rows of a CSV file and process them?","Use ioEachCsv to iterate the rows of a CSV file and callback the given function with two parameters.","instruction" "In Axon language, How to process each line of a source stream?","Use ioEachLine to call a function with two parameters for each line of the given source stream.","instruction" "In Axon language, How to export a view to a file?","Use ioExport to export a view to the given file handle.","instruction" "In Axon language, How to decode from a base64 string using an I/O handle?","Use ioFromBase64 to return an I/O handle to decode from a base64 string.","instruction" "In Axon language, How to GZIP compress or uncompress an I/O handle?","Use ioGzip to wrap an I/O handle to GZIP compress or uncompress.","instruction" "In Axon language, How to generate an HMAC message authentication code?","Use ioHmac to generate an HMAC message authentication as specified by RFC 2104.","instruction" "In Axon language, How to get information about a file handle?","Use ioInfo to get information about a file handle and return a Dict with tags.","instruction" "In Axon language, How to move or rename a file or directory?","Use ioMove to move or rename a file or directory.","instruction" "In Axon language, How to generate a password-based cryptographic key?","Use ioPbk to generate a password-based cryptographic key.","instruction" "In Axon language, How to generate random bytes for input?","Use ioRandom to generate a randomized series of bytes for use as an input I/O handle.","instruction" "In Axon language, How to read a CSV file into memory as a grid?","Use ioReadCsv to read a CSV file into memory as a Grid.","instruction" "In Axon language, How to read a JSON file into memory?","Use ioReadJson to read a JSON file into memory.","instruction" "In Axon language, How to read a JSON file as a Haystack grid?","Use ioReadJsonGrid to read a JSON file formatted as a standardized Haystack grid into memory.","instruction" "In Axon language, How to read a file into a list of string lines?","Use ioReadLines to read an I/O handle into memory as a list of string lines.","instruction" "In Axon language, How to read a file into a string?","Use ioReadStr to read an I/O handle into memory as a string.","instruction" "In Axon language, How to read a Trio file into memory?","Use ioReadTrio to read a Trio file into memory as a list of Dicts.","instruction" "In Axon language, How to read a Xeto data file into memory?","Use ioReadXeto to read a Xeto data file into memory as a Haystack data type.","instruction" "In Axon language, How to read a Zinc file into memory?","Use ioReadZinc to read a Zinc file into memory as a Haystack data type.","instruction" "In Axon language, How to skip data in an input I/O handle?","Use ioSkip to apply a skipping operation to an input I/O handle.","instruction" "In Axon language, How to read a stream of dicts from a CSV file?","Use ioStreamCsv to read a stream of dicts from a comma separated value file.","instruction" "In Axon language, How to read a stream of lines from a file?","Use ioStreamLines to read a stream of lines.","instruction" "In Axon language, How to encode an I/O handle to a base64 string?","Use ioToBase64 to encode an I/O handle into a base64 string.","instruction" "In Axon language, How to encode an I/O handle to a hexadecimal string?","Use ioToHex to encode an I/O handle into a hexadecimal string.","instruction" "In Axon language, How to write a grid to a CSV file?","Use ioWriteCsv to write a grid to a CSV file.","instruction" "In Axon language, How to write an Excel XLS file?","Use ioWriteExcel to write an Excel XLS file.","instruction" "In Axon language, How to write an Axon data structure to HTML?","Use ioWriteHtml to write an Axon data structure to HTML.","instruction" "In Axon language, How to write an Axon data structure to JSON?","Use ioWriteJson to write an Axon data structure to JSON.","instruction" "In Axon language, How to write an Axon data structure to RDF JSON-LD format?","Use ioWriteJsonLd to write an Axon data structure to RDF JSON-LD format.","instruction" "In Axon language, How to write a list of string lines to a file?","Use ioWriteLines to write a list of string lines separated with '\\n' character.","instruction" "In Axon language, How to render data to a PDF file?","Use ioWritePdf to render data to a PDF file.","instruction" "In Axon language, How to write a string to an I/O handle?","Use ioWriteStr to write a string to an I/O handle.","instruction" "In Axon language, How to render data to an SVG file?","Use ioWriteSvg to render data to an SVG file.","instruction" "In Axon language, How to write dicts to a Trio file?","Use ioWriteTrio to write dicts to a Trio file.","instruction" "In Axon language, How to write an Axon data structure to RDF Turtle format?","Use ioWriteTurtle to write an Axon data structure to RDF Turtle format.","instruction" "In Axon language, How to write a value to a Xeto text format file?","Use ioWriteXeto to write value to a Xeto text format file.","instruction" "In Axon language, How to write a grid to an XML file?","Use ioWriteXml to write a grid to an XML file.","instruction" "In Axon language, How to write a grid to the Zinc format?","Use ioWriteZinc to write a Grid to the Zinc format.","instruction" "In Axon language, How to read a zip file's entry listing?","Use ioZipDir to read a zip file's entry listing and return a grid with columns.","instruction" "In Axon language, How to read from a zip entry within a zip file?","Use ioZipEntry to return an I/O handle which may be used to read from a zip entry within a zip file.","instruction" "In Axon language, What does ioZipDir do?","ioZipDir reads a zip file's entry listing and returns a grid with columns: path, size, and modified timestamp.","explanation" "In Axon language, How to list entries in a zip file using ioZipDir?","Call ioZipDir(handle) where handle references a zip file. For example: ioZipDir(`io/batch.zip`)","instruction" "In Axon language, What columns are returned by ioZipDir?","ioZipDir returns a grid with columns: path (entry path inside zip), size (file size in bytes or null), and modified (timestamp or null if unknown).","explanation" "In Axon language, How to read a specific entry from a zip file?","Use ioZipEntry() to perform a read operation on one of the entries in the zip file.","instruction" "In Axon language, How to read a JSON file formatted as a Haystack grid into memory?","Use ioReadJsonGrid(handle, opts) to read a JSON file formatted as a standardized Haystack grid into memory.","instruction" "In Axon language, What does ioReadJsonGrid do?","ioReadJsonGrid reads a JSON file formatted as a standardized Haystack grid into memory.","explanation" "In Axon language, How to read arbitrary JSON structured data?","Use ioReadJson() to read arbitrary JSON structured data.","instruction" "In Axon language, What does ioStreamCsv do?","ioStreamCsv reads a stream of dicts from a comma separated value file, streaming rows as dicts instead of reading the entire file into memory.","explanation" "In Axon language, How to stream CSV rows as dicts from a file?","Use ioStreamCsv(handle, opts) to stream rows from a CSV file as dicts.","instruction" "In Axon language, What options does ioStreamCsv accept?","ioStreamCsv accepts the same options and semantics as ioReadCsv().","explanation" "In Axon language, How to read all lines from a file using ioReadLines?","Use ioReadLines(`io/file.txt`) to read all lines from the file into a list of strings.","instruction" "In Axon language, How to set a custom maximum line size with ioReadLines?","Pass an options map with the 'limit' key, e.g., ioReadLines(`io/file.txt`, {limit: 10_000}), to override the default 4kb line size limit.","instruction" "In Axon language, What does ioReadLines return?","ioReadLines returns a list of string lines read from the I/O handle.","explanation" "In Axon language, What is the default maximum line size in ioReadLines?","The default maximum line size is 4kb of Unicode characters.","explanation" "In Axon language, How does ioReadLines process lines?","Lines are processed according to InStream.readLine semantics.","explanation" "In Axon language, How to generate an HMAC message authentication in io?","Use ioHmac(handle, algorithm, key) to generate an HMAC as specified by RFC 2104.","instruction" "In Axon language, What does ioHmac do?","ioHmac generates an HMAC message authentication code using the specified algorithm and key.","explanation" "In Axon language, Show an example of generating an HMAC and encoding it in Base64 in io.","ioHmac(""foo"", ""SHA-1"", ""secret"").ioToBase64","instruction" "In Axon language, What does the ioExport function do?","Exports a view to the given file handle.","explanation" "In Axon language, How to export a view to a file handle in SkySpark?","Use the ioExport(req, handle) function.","instruction" "In Axon language, Is ioExport available in all environments?","No, ioExport is available only in SkySpark.","explanation" "In Axon language, How to render data to a PDF file in SkySpark?","Use ioWritePdf(val, handle, opts: {}) to render data to a PDF file. The visualization is determined by the grid meta 'view' tag.","instruction" "In Axon language, What does the 'view' tag control in ioWritePdf?","The 'view' tag in the grid meta determines the visualization: 'table' renders as table (default), 'chart' renders as chart, 'fandoc' renders string as fandoc, and 'text' renders as plaintext.","explanation" "In Axon language, How to set the PDF page size when using ioWritePdf?","Use the 'pageSize' option in the opts parameter to set the PDF page size, e.g., {pageSize:'11in,8.5in'}.","instruction" "In Axon language, How to render a chart to a PDF with default page size?","read(power).hisRead(yesterday).ioWritePdf(`io/portrait.pdf`)","instruction" "In Axon language, How to render a chart to a PDF with landscape page size 11"" x 8.5""?","read(power).hisRead(yesterday).ioWritePdf(`io/landscape.pdf`, {pageSize:'11in,8.5in'})","instruction" "In Axon language, How to render a table as a single auto-fit page in a PDF?","readAll(site).ioWritePdf(`io/sites.pdf`, {pageSize:'auto'})","instruction" "In Axon language, Is ioWritePdf available outside of SkySpark?","No, ioWritePdf is available only in SkySpark.","explanation" "In Axon language, How to write dictionaries to a Trio file in io?","Use ioWriteTrio(val, handle, opts) where val is the data, handle is the file handle, and opts is an optional parameter.","instruction" "In Axon language, What formats are accepted by ioWriteTrio for the val parameter?","The val parameter can be any format accepted by toRecList().","explanation" "In Axon language, How to prevent tags from being sorted by name in ioWriteTrio?","Use the noSort option in opts to prevent tags from being sorted by name.","instruction" "In Axon language, How to convert a handle to append mode?","Use ioAppend to convert a handle to append mode.","instruction" "In Axon language, How to configure an I/O handle to use a specific charset?","Use ioCharset to set the charset for an I/O handle.","instruction" "In Axon language, How to copy a file or directory to a new location?","Use ioCopy to copy a file or directory to the specified location.","instruction" "In Axon language, How to generate a CRC code for a file?","Use ioCrc to generate a cycle redundancy check code as a Number.","instruction" "In Axon language, How to create a directory or empty file?","Use ioCreate with the desired I/O handle to create a directory or empty file.","instruction" "In Axon language, How to delete a file or directory?","Use ioDelete with the I/O handle to delete a file or directory.","instruction" "In Axon language, How to generate a one-way hash of a file?","Use ioDigest to generate a one-way hash of the given I/O handle.","instruction" "In Axon language, How to read a directory listing?","Use ioDir to read a directory listing and return a grid with columns.","instruction" "In Axon language, How to iterate rows of a CSV file and process them?","Use ioEachCsv to iterate the rows of a CSV file and callback a function with two parameters.","instruction" "In Axon language, How to process each line of a source stream?","Use ioEachLine to call a function for each line of the given source stream.","instruction" "In Axon language, How to export a view to a file handle?","Use ioExport to export a view to the given file handle.","instruction" "In Axon language, How to decode from a base64 string using an I/O handle?","Use ioFromBase64 to return an I/O handle that decodes from a base64 string.","instruction" "In Axon language, How to GZIP compress or uncompress an I/O handle?","Use ioGzip to wrap an I/O handle for GZIP compression or decompression.","instruction" "In Axon language, How to generate an HMAC message authentication code?","Use ioHmac to generate an HMAC as specified by RFC 2104.","instruction" "In Axon language, How to get information about a file handle?","Use ioInfo to get information about a file handle and return a Dict with tags.","instruction" "In Axon language, How to move or rename a file or directory?","Use ioMove to move or rename a file or directory.","instruction" "In Axon language, How to generate a password-based cryptographic key?","Use ioPbk to generate a password-based cryptographic key.","instruction" "In Axon language, How to generate random bytes for an I/O handle?","Use ioRandom to generate a randomized series of bytes as an input I/O handle.","instruction" "In Axon language, How to read a CSV file into memory as a grid?","Use ioReadCsv to read a CSV file into memory as a Grid.","instruction" "In Axon language, How to read a JSON file into memory?","Use ioReadJson to read a JSON file into memory.","instruction" "In Axon language, How to read a JSON file as a Haystack grid?","Use ioReadJsonGrid to read a JSON file formatted as a Haystack grid into memory.","instruction" "In Axon language, How to read lines from an I/O handle into memory?","Use ioReadLines to read an I/O handle into memory as a list of string lines.","instruction" "In Axon language, How to read an I/O handle into a string?","Use ioReadStr to read an I/O handle into memory as a string.","instruction" "In Axon language, How to read a Trio file into memory?","Use ioReadTrio to read a Trio file into memory as a list of Dicts.","instruction" "In Axon language, How to read a Xeto data file into memory?","Use ioReadXeto to read a Xeto data file into memory as a Haystack data type.","instruction" "In Axon language, How to read a Zinc file into memory?","Use ioReadZinc to read a Zinc file into memory as a Haystack data type.","instruction" "In Axon language, How to skip bytes in an input I/O handle?","Use ioSkip to apply a skipping operation to an input I/O handle.","instruction" "In Axon language, How to read a stream of dicts from a CSV file?","Use ioStreamCsv to read a stream of dicts from a comma separated value file.","instruction" "In Axon language, How to read a stream of lines from a file?","Use ioStreamLines to read a stream of lines.","instruction" "In Axon language, How to encode an I/O handle to a base64 string?","Use ioToBase64 to encode an I/O handle into a base64 string.","instruction" "In Axon language, How to encode an I/O handle to a hexadecimal string?","Use ioToHex to encode an I/O handle into a hexadecimal string.","instruction" "In Axon language, How to write a grid to a CSV file?","Use ioWriteCsv to write a grid to a CSV file.","instruction" "In Axon language, How to write an Excel XLS file?","Use ioWriteExcel to write an Excel XLS file.","instruction" "In Axon language, How to write an Axon data structure to HTML?","Use ioWriteHtml to write an Axon data structure to HTML.","instruction" "In Axon language, How to write an Axon data structure to JSON?","Use ioWriteJson to write an Axon data structure to JSON.","instruction" "In Axon language, How to write an Axon data structure to RDF JSON-LD format?","Use ioWriteJsonLd to write an Axon data structure to RDF JSON-LD format.","instruction" "In Axon language, How to write a list of string lines to a file?","Use ioWriteLines to write a list of string lines separated with '\\n'.","instruction" "In Axon language, How to render data to a PDF file?","Use ioWritePdf to render data to a PDF file.","instruction" "In Axon language, How to write a string to an I/O handle?","Use ioWriteStr to write a string to an I/O handle.","instruction" "In Axon language, How to render data to an SVG file?","Use ioWriteSvg to render data to an SVG file.","instruction" "In Axon language, How to write dicts to a Trio file?","Use ioWriteTrio to write dicts to a Trio file.","instruction" "In Axon language, How to write an Axon data structure to RDF Turtle format?","Use ioWriteTurtle to write an Axon data structure to RDF Turtle format.","instruction" "In Axon language, How to write a value to a Xeto text format file?","Use ioWriteXeto to write a value to a Xeto text format file.","instruction" "In Axon language, How to write a grid to an XML file?","Use ioWriteXml to write a grid to an XML file.","instruction" "In Axon language, How to write a grid to the Zinc format?","Use ioWriteZinc to write a grid to the Zinc format.","instruction" "In Axon language, How to read a zip file's entry listing?","Use ioZipDir to read a zip file's entry listing and return a grid with columns.","instruction" "In Axon language, How to read from a zip entry within a zip file?","Use ioZipEntry to return an I/O handle for reading from a zip entry within a zip file.","instruction" "In Axon language, How to encode an I/O handle into a hexadecimal string?","Use the feature:name Axon function to encode an I/O handle into a hexadecimal string.","instruction" "In Axon language, What is the format of the feature namespace in this documentation?","The feature namespace is formatted as feature:name.","explanation" "In Axon language, How to generate a CRC code in io?","Use ioCrc(handle, algorithm) to generate a cycle redundancy check code as a Number.","instruction" "In Axon language, What does ioCrc do?","ioCrc generates a cycle redundancy check code as a Number using the specified algorithm.","explanation" "In Axon language, Show an example of using ioCrc.","ioCrc(""foo"", ""CRC-32"").toHex","instruction" "In Axon language, How to wrap an I/O handle for GZIP compression or decompression?","Use ioGzip(handle) to wrap an I/O handle for GZIP compress/uncompress.","instruction" "In Axon language, How to write a CSV file with GZIP compression?","readAll(site).ioWriteCsv(ioGzip(`io/sites.gz`))","instruction" "In Axon language, How to read a GZIP-compressed CSV file?","ioGzip(`io/sites.gz`).ioReadCsv","instruction" "In Axon language, What does ioGzip do?","ioGzip wraps an I/O handle to enable GZIP compression or decompression.","explanation" "In Axon language, How to encode an I/O handle into a base64 string?","Use ioToBase64(handle) to encode an I/O handle into a base64 string using RFC 2045.","instruction" "In Axon language, How to encode a string to base64 using ioToBase64?","Call ioToBase64(""myusername:mysecret"") to encode the string to base64.","instruction" "In Axon language, How to encode a string to URI-safe base64 without padding?","Use ioToBase64(""myusername:mysecret"", {uri}) to encode the string to base64 using URI-safe characters as per RFC 4648.","instruction" "In Axon language, What does the uri option do in ioToBase64?","The uri option encodes the output using URI-safe characters according to RFC 4648.","explanation" "In Axon language, Which RFC does ioToBase64 use by default?","ioToBase64 uses RFC 2045 for base64 encoding by default.","explanation" "In Axon language, How to iterate rows of a CSV file in this language?","Use ioEachCsv(handle, opts, fn) to iterate the rows of a CSV file, calling fn with the cells and line number for each row.","instruction" "In Axon language, What parameters does the callback function for ioEachCsv receive?","The callback function receives two parameters: an array of strings representing the cells of the current row, and a zero-based number for the line number.","explanation" "In Axon language, How to change the delimiter when reading a CSV file?","Pass the 'delimiter' option as a string in the opts parameter of ioEachCsv to specify a custom separator character.","instruction" "In Axon language, What is the default delimiter for ioEachCsv?","The default delimiter for ioEachCsv is a comma ("","").","explanation" "In Axon language, What are related functions to ioEachCsv?","Related functions include ioReadCsv(), ioWriteCsv(), and CSV.","explanation" "In Axon language, How to read a Trio file into memory as a list of Dicts?","Read a Trio file into memory as a list of Dicts.","instruction" "In Axon language, How are feature namespaces formatted in this context?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, How to write an Excel XLS file from a Grid?","Use ioWriteExcel(val, handle) where val is a Grid to write it as a single worksheet.","instruction" "In Axon language, How to write multiple worksheets to an Excel file?","Pass a Grid[] to ioWriteExcel; each Grid will be exported as a separate worksheet.","instruction" "In Axon language, How are worksheet names determined when using ioWriteExcel?","Worksheets are named 'Sheet1', 'Sheet2', etc. by default, but you can set a title tag in Grid.meta to specify worksheet names.","explanation" "In Axon language, How to specify worksheet names when writing Excel files?","Set the title tag in Grid.meta for each Grid to name the worksheet accordingly.","instruction" "In Axon language, Show an example of writing all site data to an Excel file.","readAll(site).ioWriteExcel(`io/sites.xls`)","instruction" "In Axon language, How do I write an Axon data structure to HTML?","Use ioWriteHtml(val, handle, opts: {}) where val is an Axon type convertible to a Grid.","instruction" "In Axon language, What does ioWriteHtml do?","ioWriteHtml writes an Axon data structure to HTML if it can be converted to a Grid.","explanation" "In Axon language, What types can be used as val in ioWriteHtml?","val must be an Axon type that can be converted to a Grid.","explanation" "In Axon language, How to create a new directory using ioCreate?","Call ioCreate with the directory path ending in a slash, e.g., ioCreate(`io/new-dir/`).","instruction" "In Axon language, How to create a new empty file using ioCreate?","Call ioCreate with the file path, e.g., ioCreate(`io/new-file.txt`).","instruction" "In Axon language, What happens if ioCreate is used on an existing file?","If the file already exists, ioCreate overwrites it as empty.","explanation" "In Axon language, What is the purpose of ioCreate?","ioCreate creates a directory or an empty file with the given I/O handle.","explanation" "In Axon language, How do you generate a one-way hash of an I/O handle?","Use ioDigest(handle, algorithm) to generate a one-way hash of the given I/O handle.","instruction" "In Axon language, What is the purpose of the ioDigest function?","ioDigest generates a one-way hash of the specified I/O handle using the given algorithm.","explanation" "In Axon language, How do you hash a handle using SHA-1 and encode it in Base64?","Call ioDigest(""foo"", ""SHA-1"").ioToBase64 to hash the handle and encode the result in Base64.","instruction" "In Axon language, Where can I find the list of available algorithms for ioDigest?","The available algorithms for ioDigest are listed in Buf.toDigest.","explanation" "In Axon language, How to move or rename a file or directory using ioMove?","Use ioMove(from, to) where both 'from' and 'to' are handles to local files or directories. If the target exists, an IOErr is raised.","instruction" "In Axon language, What happens if the target file exists when using ioMove?","If the target file already exists, ioMove raises an IOErr.","explanation" "In Axon language, What are the requirements for the handles used in ioMove?","Both handles must reference a local file or directory on the file system.","explanation" "In Axon language, How to copy a file to a new location?","Use ioCopy(from, to) to copy a file to a new location, e.g., ioCopy('io/file.txt', 'io/file-copy.txt').","instruction" "In Axon language, How to copy a directory recursively?","Use ioCopy(from, to) with a directory path to recursively copy the entire directory tree, e.g., ioCopy('io/dir/', 'io/dir-copy/').","instruction" "In Axon language, How to control overwriting when copying files with ioCopy?","Set the 'overwrite' option in the third argument: {overwrite:true} to overwrite, {overwrite:false} to skip existing files.","instruction" "In Axon language, What happens if overwrite is not set and a file exists during ioCopy?","If overwrite is not defined and a file exists at the destination, an IOErr is raised.","explanation" "In Axon language, What arguments does ioCopy take?","ioCopy takes a source path, a destination path, and an optional options object.","explanation" "In Axon language, What does the ioWriteSvg function do?","ioWriteSvg renders data to an SVG file, using options to specify SVG attributes like viewBox, width, and height.","explanation" "In Axon language, How to write data to an SVG file using ioWriteSvg?","Call ioWriteSvg(val, handle, opts) where 'val' is the data, 'handle' is the file path, and 'opts' can include a size option.","instruction" "In Axon language, How to specify SVG size with ioWriteSvg?","Pass the 'size' option in opts, e.g., {size: ""600,400""}, to set the SVG viewBox, width, and height.","instruction" "In Axon language, What is the default SVG size in ioWriteSvg?","The default SVG size is '1000,800' for the viewBox, width, and height attributes.","explanation" "In Axon language, How is the visualization determined in ioWriteSvg?","The visualization is determined by the grid meta 'view' tag.","explanation" "In Axon language, Provide an example of using ioWriteSvg with default options.","read(power).hisRead(yesterday).ioWriteSvg(`io/example.svg`)","instruction" "In Axon language, Provide an example of using ioWriteSvg with a custom size.","read(power).hisRead(yesterday).ioWriteSvg(`io/example.svg`, {size:""600,400""})","instruction" "In Axon language, Is ioWriteSvg available in all environments?","ioWriteSvg is available only in SkySpark.","explanation" "In Axon language, How to read a stream of lines in Axon?","Use InStream.eachLine to process each line in a stream.","instruction" "In Axon language, What does InStream.eachLine do?","InStream.eachLine processes each line from an input stream.","explanation" "In Axon language, How are feature namespaces formatted?","Feature namespaces are formatted as feature:name.","explanation" "In Axon language, How to write an Axon data structure to RDF JSON-LD format?","Use ioWriteJsonLd(val, handle) where val is an Axon type convertible to a Grid.","instruction" "In Axon language, What does ioWriteJsonLd do?","It writes an Axon data structure to RDF JSON-LD format if the value can be converted to a Grid.","explanation" "In Axon language, How to write an Axon data structure to RDF Turtle format?","Use ioWriteTurtle(val, handle) where val is an Axon type convertible to a Grid.","instruction" "In Axon language, What does ioWriteTurtle do?","It writes an Axon data structure to RDF Turtle format if the value can be converted to a Grid.","explanation" "In Axon language, What types can be used as the 'val' parameter in ioWriteTurtle?","'val' must be an Axon type that can be converted to a Grid.","explanation" "In Axon language, What does the ioCharset function do?","ioCharset configures an I/O handle to use the specified charset for reading or writing.","explanation" "In Axon language, How do you set a file handle to use UTF-16BE encoding?","Use ioCharset(handle, ""UTF-16BE"") to configure the handle for UTF-16BE encoding.","instruction" "In Axon language, List standard charset names supported by ioCharset.","Standard charset names include: ""UTF-8"", ""UTF-16BE"", ""UTF-16LE"", ""ISO-8859-1"", and ""US-ASCII"".","explanation" "In Axon language, How to write a text file in UTF-16BE encoding?","ioWriteStr(str, ioCharset(`io/foo.txt`, ""UTF-16BE""))","instruction" "In Axon language, How to read a CSV file in ISO-8859-1 encoding?","ioCharset(`io/foo.csv`, ""ISO-8859-1"").ioReadCsv","instruction" "In Axon language, How to write a grid to an XML file?","Use the feature:name function to write a grid to an XML file.","instruction" "In Axon language, What is the format for the namespace of definitions?","The namespace of definitions is formatted as feature:name.","explanation" "In Axon language, What is the purpose of the feature:name function?","The feature:name function is used to write a grid to an XML file.","explanation" "In Axon language, How to write a grid to a CSV file in this language?","Use ioWriteCsv(val, handle, opts) to write a grid to a CSV file, where 'val' is the grid, 'handle' is the file handle, and 'opts' is an optional options object.","instruction" "In Axon language, What does the 'delimiter' option do in ioWriteCsv?","The 'delimiter' option specifies the separator character as a string for cells in the CSV. The default is ','.","explanation" "In Axon language, How to specify a custom newline in ioWriteCsv?","Set the 'newline' option to the desired newline string, such as '\\n' (default) or '\\r\\n' for CRLF.","instruction" "In Axon language, How to prevent writing column names as a header row in ioWriteCsv?","Set the 'noHeader' option to true to prevent the column names from being written as a header row.","instruction" "In Axon language, How to write numbers without units using ioWriteCsv?","Set the 'stripUnits' option to true to write all numbers without a unit.","instruction" "In Axon language, How are cells containing special characters handled in ioWriteCsv?","Cells containing the delimiter, double quote ("") or newline are quoted, and quotes are escaped as """" according to RFC 4180.","explanation" "In Axon language, How to read a text string using ioExt?","Use ioReadStr() to read a text string.","instruction" "In Axon language, How to write a text string using ioExt?","Use ioWriteStr() to write a text string.","instruction" "In Axon language, How to read lines of text using ioExt?","Use ioReadLines() to read lines of text.","instruction" "In Axon language, How to write lines of text using ioExt?","Use ioWriteLines() to write lines of text.","instruction" "In Axon language, How to read data in Zinc format?","Use ioReadZinc() to read data in Zinc format.","instruction" "In Axon language, How to write data in Zinc format?","Use ioWriteZinc() to write data in Zinc format.","instruction" "In Axon language, How to read data in Trio format?","Use ioReadTrio() to read data in Trio format.","instruction" "In Axon language, How to write data in Trio format?","Use ioWriteTrio() to write data in Trio format.","instruction" "In Axon language, How to read CSV data?","Use ioReadCsv() to read CSV data.","instruction" "In Axon language, How to write CSV data?","Use ioWriteCsv() to write CSV data.","instruction" "In Axon language, How to process each row in a CSV file?","Use ioEachCsv() to process each row in a CSV file.","instruction" "In Axon language, How to stream CSV data?","Use ioStreamCsv() to stream CSV data.","instruction" "In Axon language, How to read JSON data?","Use ioReadJson() to read JSON data.","instruction" "In Axon language, How to write JSON data?","Use ioWriteJson() to write JSON data.","instruction" "In Axon language, How to write XML data?","Use ioWriteXml() to write XML data.","instruction" "In Axon language, How to read XML data?","Use xmlRead() to read XML data.","instruction" "In Axon language, How to write PDF files?","Use ioWritePdf() to write PDF files.","instruction" "In Axon language, How to write SVG files?","Use ioWriteSvg() to write SVG files.","instruction" "In Axon language, How to write HTML files?","Use ioWriteHtml() to write HTML files.","instruction" "In Axon language, How to write RDF in Turtle format?","Use ioWriteTurtle() to write RDF in Turtle format.","instruction" "In Axon language, How to write RDF in JSON-LD format?","Use ioWriteJsonLd() to write RDF in JSON-LD format.","instruction" "In Axon language, What types of IO handles are supported?","IO handles can be strings, Uris starting with 'io/', 'fan://', 'http://', 'https://', 'ftp://', or 'ftps://'.","explanation" "In Axon language, How does the default charset work for IO handles?","The default charset for all IO handles is UTF-8.","explanation" "In Axon language, How to specify an alternate charset for IO handles?","Wrap the handle with ioCharset() to specify an alternate charset.","instruction" "In Axon language, How to read or write files on an FTP server?","Use a 'ftp://' or 'ftps://' Uri as the IO handle to read or write files on an FTP server.","instruction" "In Axon language, How to set FTP credentials for file access?","Use passwordSet(uri, 'user:pass') where uri ends with a slash and matches the scheme.","instruction" "In Axon language, What is the default FTP user account?","The default FTP user account is 'anonymous'.","explanation" "In Axon language, What to do if you see illegal reflective access warnings with FTPS?","Add '--add-opens java.base/sun.security.ssl=ALL-UNNAMED --add-opens java.base/sun.security.util=ALL-UNNAMED' to java.options in etc/sys/config.props.","instruction" "In Axon language, How to export sites to a trio file?","Use readAll(site).ioWriteTrio(`io/sites.trio`) to export sites to a trio file.","instruction" "In Axon language, How to export sites to a trio string literal?","Use readAll(site).ioWriteTrio("""") to export sites to a trio string literal.","instruction" "In Axon language, How to export weather data to a CSV file?","Use read(weatherTemp).hisRead(pastMonth).ioWriteCsv(`io/point.csv`) to export weather data to a CSV file.","instruction" "In Axon language, How to import history data from a CSV file with timestamps?","Use ioReadCsv(`io/his.csv`).map(row => {ts: parseDateTime(row->ts, ""YYYY-MM-DD'T'hh:mm"", ""New_York""), val: parseNumber(row->val)}).hisWrite(hisId) to import history data from a CSV file.","instruction" "In Axon language, How to parse an oBIX XML document and map to name/value pairs?","Use xmlRead(`http://obix.acme.com/obix/about`).xmlElems.map(x => {name:x.xmlAttr(""name"").xmlVal, val:x.xmlAttr(""val"").xmlVal}) to parse an oBIX XML document and map to name/value pairs.","instruction"