Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringlengths
28
119
text
stringlengths
1
369
type
stringclasses
3 values
In Axon language, In Axon language, Convert a number to a string
123.toStr
code
In Axon language, Concatenate strings using '+'
"num=" + 3
code
In Axon language, Check if a string is empty
"hi world".isEmpty
code
In Axon language, Get the size of a string
"hi world".size
code
In Axon language, Access a character in a string by index
"hi world"[5]
code
In Axon language, Slice a string using a range
"hi world"[3..-2]
code
In Axon language, Find the index of a substring
"root toot".index("oo")
code
In Axon language, Find the last index of a substring
"root toot".indexr("oo")
code
In Axon language, Check if a string contains a substring
"hi world".contains("hi")
code
In Axon language, Convert a string to uppercase
"Abc".upper
code
In Axon language, Convert a string to lowercase
"Abc".lower
code
In Axon language, Split a string by a delimiter
"a,b,c".split(",")
code
In Axon language, Capitalize a string
"fooBar".capitalize
code
In Axon language, Decapitalize a string
"FooBar".decapitalize
code
In Axon language, Trim whitespace from a string
" xyz ".trim
code
In Axon language, Check if a string starts with a substring
"abcd".startsWith("ab")
code
In Axon language, Check if a string ends with a substring
"abcd".endsWith("cd")
code
In Axon language, Check if a string is a tag name
"foo bar".isTagName
code
In Axon language, Convert a string to a tag name
"foo bar".toTagName
code
In Axon language, Replace a substring in a string
"root toot".replace("oo", "a")
code
In Axon language, Get the current DateTime
now()
code
In Axon language, Get today's Date
today()
code
In Axon language, Get yesterday's Date
yesterday()
code
In Axon language, Add one day to today
today() + 1day
code
In Axon language, Add seven days to today
today() + 7day
code
In Axon language, Add one hour to now
now() + 1hr
code
In Axon language, Create DateTime from Date, Time, and timezone
dateTime(2023-03-14, 0:00, "New_York")
code
In Axon language, Get Date portion of DateTime
now().date
code
In Axon language, Get Time portion of DateTime
now().time
code
In Axon language, Get timezone string of DateTime
now().tz
code
In Axon language, Get year from Date
today().year
code
In Axon language, Get month from Date
today().month
code
In Axon language, Get day from Date
today().day
code
In Axon language, Get hour from DateTime
now().hour
code
In Axon language, Get minute from DateTime
now().minute
code
In Axon language, Get second from DateTime
now().second
code
In Axon language, Get weekday from Date
today().weekday
code
In Axon language, Check if today is weekend
today().isWeekend
code
In Axon language, Check if today is weekday
today().isWeekday
code
In Axon language, Get first day of month
today().firstOfMonth
code
In Axon language, Get last day of month
today().lastOfMonth
code
In Axon language, Convert DateTime to different timezone
now().toTimeZone("UTC")
code
In Axon language, Get number of days in Date's month
today().numDaysInMonth
code
In Axon language, Check if a year is a leap year
isLeapYear(2024)
code
In Axon language, Check if DateTime is in daylight saving time
now().dst
code
In Axon language, Get day of year from Date
today().dayOfYear
code
In Axon language, Get week of year from Date
today().weekOfYear
code
In Axon language, Get start of week
startOfWeek()
code
In Axon language, Get milliseconds since Unix epoch
now().toJavaMillis
code
In Axon language, Convert milliseconds to DateTime
now().toJavaMillis.fromJavaMillis
code
In Axon language, Get DateSpan for current week
thisWeek()
code
In Axon language, Get DateSpan for current month
thisMonth()
code
In Axon language, Get DateSpan for current quarter
thisQuarter()
code
In Axon language, Get DateSpan for current year
thisYear()
code
In Axon language, Get DateSpan for past week
pastWeek()
code
In Axon language, Get DateSpan for past month
pastMonth()
code
In Axon language, Get DateSpan for past year
pastYear()
code
In Axon language, Get DateSpan for last week
lastWeek()
code
In Axon language, Get DateSpan for last month
lastMonth()
code
In Axon language, Get DateSpan for last quarter
lastQuarter()
code
In Axon language, Get DateSpan for last year
lastYear()
code
In Axon language, Create DateSpan with two explicit dates
toDateSpan(2023-01-01..2023-02-28)
code
In Axon language, Create DateSpan for a day
toDateSpan(2023-02-14)
code
In Axon language, Create DateSpan for a month
toDateSpan(2023-02)
code
In Axon language, Create DateSpan for a year
toDateSpan(2023)
code
In Axon language, Convert DateSpan to Span
toDateSpan(2023-02).toSpan
code
In Axon language, Get first day of DateSpan
toDateSpan(2024-02).start
code
In Axon language, Get last day of DateSpan
toDateSpan(2024-02).end
code
In Axon language, Get number of days in DateSpan
toDateSpan(2024-02).numDays
code
In Axon language, Iterate the Dates in a DateSpan
eachDay(2024-02) (d) => echo(d)
code
In Axon language, Iterate the months in a DateSpan
eachMonth(2024) (d) => echo(d)
code
In Axon language, Get URI name
`/a/b/file.txt`.uriName
code
In Axon language, Get URI basename
`/a/b/file.txt`.uriBasename
code
In Axon language, Get URI extension
`/a/b/file.txt`.uriExt
code
In Axon language, Get URI scheme
`http://host:81/a/b/file.txt`.uriScheme
code
In Axon language, Get URI host
`http://host:81/a/b/file.txt`.uriHost
code
In Axon language, Get URI port
`http://host:81/a/b/file.txt`.uriPort
code
In Axon language, Get URI path string
`http://host:81/a/b/file.txt`.uriPathStr
code
In Axon language, Get URI path as list
`http://host:81/a/b/file.txt`.uriPath
code
In Axon language, Check if URI is directory (false)
`/a/b`.uriIsDir
code
In Axon language, Check if URI is directory (true)
`/a/b/`.uriIsDir
code
In Axon language, Encode URI
`file name.html`.uriEncode
code
In Axon language, Decode URI
"file%20name.html".uriDecode
code
In Axon language, Create a list
x: [10, 20, 30]
code
In Axon language, Check if a list is empty
x.isEmpty
code
In Axon language, Get size of a list
x.size
code
In Axon language, Access list element by index
x[2]
code
In Axon language, Slice a list using a range
x[1..-1]
code
In Axon language, Get first element of a list
x.first
code
In Axon language, Get index of an element in a list
x.index(30)
code
In Axon language, Get index of non-existent element in a list
x.index(40)
code
In Axon language, Check if a list contains an element
x.contains(20)
code
In Axon language, Fold a list with sum
x.fold(sum)
code
In Axon language, Check if any element in list matches predicate
x.any v => v < 20
code
In Axon language, Check if all elements in list match predicate
x.all v => v < 20
code
In Axon language, Concatenate list elements with separator
x.concat(";")
code
In Axon language, Add element to list
x.add(40)
code
In Axon language, Add all elements to list
x.addAll([40, 50])
code
In Axon language, Set element in list
x.set(2, 99)
code
In Axon language, Insert element at index in list
x.insert(0, 99)
code
End of preview. Expand in Data Studio

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Hugging Dataset

This dataset is based on the Axon language from the Haxall open-source project. It is designed to facilitate research and development involving the Axon language within the Haxall ecosystem.

Description

The Axon language dataset includes [brief description of the dataset contents, e.g., code snippets, language specifications, samples, etc.]. It is intended for use in [applications such as language modeling, syntax analysis, educational purposes, etc.].

Source

This dataset is derived from the Haxall open-source project, which provides tools and resources for working with the Axon language.

Usage

Please refer to the Haxall project repository for licensing and attribution requirements.

Downloads last month
4