You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (Iterator<TOKEN> iterator = TOKEN.iterator(); iterator.hasNext();) { String string = iterator.next(); if (CONDITION) { iterator.remove(); } }
array list
ArrayList
lodge and
&&
arrow
->
lodge not
!
big double
Double
lodge or
| |
big integer
Integer
long comment
/**/
boolean
boolean
new new
new
breaker
break;
print to console
java.lang.System.out.println()
case of
case :
private
private
cast to double
(double)()
public
public
Javascript
Command
Output
Command
Output
Let
let
lodge and
&&
add comment
//
lodge not
!
anon funk
() => { }
lodge or
| |
breaker
break;
long comment
/**/
case of
case :
new new
new
catch
catch(e) { }
print to console
console.log()
const
const
push
push
continue
continue
return
return
convert to floating point
parseFloat()
self
self
convert to integer
parseInt()
shell iffae
else if ()
convert to string
""+
shells
else { }
default
default:
switch
switch() { }
do loop
do { }
this
this
document
document
throw
throw
for each
for (TOKEN in TOKEN)
timeout
setTimeout()
for loop
for (var i=0; i<TOKEN; i++)
timer
setInterval()
function
function TOKEN() { };
try
try { }
has own property
hasOwnProperty()
value false
false
iffae
if () { }
value not
null
index of
indexOf()
value true
true
inner HTML
innerHTML
var
var
instance of
instanceof
while loop
while ()
length
length
LaTeX
Commands are designed to follow LaTeX syntax as closely as possible, for example insert document class produces \documentclass{}. See lines 69- of caster/lib/ccr/latex/latex.py for a full list of available inputs.
Command
Output
Command
Output
[use] package [<packages>]
\usepackage{<packages>}
insert quote
``''
[use] package bib latex
\usepackage[style=authoryear]{biblatex}
math fraction
\frac{}{}
add comment
%
subscript
_{}
begin <element>
\begin{<element>}
\end{<element>}
superscript
^{}
insert <command>
\<command>{}
symbol [<big>] <symbol>
\<symbol>
insert <commandnoarg>
\<commandnoarg>
Matlab
Command
Output
Command
Output
add comment
%
lodge not
~
assign
=
lodge or
| |
breaker
break
long comment
%[%]]
class
classdef
print to console
disp()
convert to floating point
str2num()
return
return
convert to integer
str2num()
section
%%
convert to string
num2str()
shell iffae / LFA
elseif
for each
for m = 1:
shells
else
for loop
for
sprint F
sprintf()
function
function [] =
value false
false
iffae
if
value not
NaN
import
library()
value true
true
length of
length()
while loop
while
lodge and
&&
Prolog
Command
Output
Command
Output
Anonymous
_
Rule
() :-.
Close Block comment
*\
comment
%
Fail
Fail
cut
!
Not
\+
iffae
( ; )
Open Block comment
/*
implies
:-
Or
;
Python
Command
Output
Command
Output
[dot] (pie / pi)
.py
lodge not
!
add comment
#
lodge or
or
breaker
break
long comment
''''''
class
class
long not
not
convert to character
chr()
make assertion
assert
convert to floating point
float()
open file
open('filename', 'r') as f:
convert to integer
int()
print to console
print()
convert to string
str()
read lines
content = f.readlines()
for each
for in :
return
return
for loop
for i in range(0, ):
self
self
from
from
shell iffae / LFA
elif :
function
def
shells
else:
global
global
sue iffae
if
identity is
is
sue shells
else
iffae
if :
try catch
try: except Exception:
import
import
value false
False
it are in
in
value not
None
jason
json
value true
True
length of
len()
while loop
while :
list comprehension
[x for x in TOKEN if TOKEN]
with
with
lodge and
and
R
Command
Output
Command
Output
<function>
<function>()
lodge not
!
NA
NA
lodge or
| |
add comment
#
print to console
print()
assign
<-
return
return()
breaker
break
see as vee
csv
contained in
%in%
shells
else
dot (our/are)
.R
slurp / chain
%>%
for each
for ( in ):
tell (slurp / chain)
{end of line} %>% {newline}
for loop
for (i in 1:)
tell add
{end of line} + {newline}
function
function()
tidy verse
tidyverse
graph <ggfun>
<ggfun>()
value false
FALSE
iffae
if ()
value not
NULL
import
library()
value true
TRUE
lodge and
&&
while loop
while ()
Core/TidyVerse Functions
If you are having trouble with over-recognition (R commands appearing where you don't want them) due to the large number of commands, consider adding a prefix to the <function> command - line 93 - in lib/ccr/r/r.py to increase phonetic distinctness.
Command
Output
Command
Output
(LM / linear model)
lm()
library
library()
arrange
arrange()
list
list()
as character
as.character()
mean
mean()
as data frame
as.data.frame()
mutate
mutate()
as double
as.double()
names
names()
as factor
as.factor()
paste
paste0()
as numeric
as.numeric()
read CSV
read_csv()
bind rows
bind_rows()
rename
rename()
case when
case_when()
select
select()
count
count()
starts with
starts_with()
drop NA
drop_na()
string contains
str_contains()
filter
filter()
string detect
str_detect()
full join
full_join()
string replace
str_replace()
gather
gather()
string replace all
str_replace_all()
group by
group_by()
sum
sum()
head
head()
summarise
summarise()
inner join
inner_join()
tail
tail()
install packages
install.packages()
trim white space
trimws()
is NA
is.na()
ungroup
ungroup()
left join
left_join()
vector
c()
length
length()
Graph Plotting Functions
Should all be prefixed with graph
Command
Output
Command
Output
path [plot]
geom_path()
density [plot]
geom_density()
line [plot]
geom_line()
smooth [plot]
geom_smooth()
column [plot]
geom_col()
histogram [plot]
geom_histogram()
point [plot]
geom_point()
ex label
xlab()
save
ggsave()
ex limit
xlim()
facet grid
facet_grid()
plot
ggplot()
why label
ylab()
labels
labs()
theme minimal
theme_minimal()
Pacman Functions
Should all be prefixed with pack
Command
Output
Command
Output
install version
p_install_version()
load
p_load()
nstall
p_install()
install hub
p_install_gh()
unload
p_unload()
update
p_update()
install temp
p_temp()
Rust
Command
Output
Command
Output
[unsigned] integer [<ibits>]
[u32] i32
lodge and
&&
add comment
//
lodge not
!
array [of] size <n>
[TOKEN; 0..1000]
lodge or
| |
bind [mute]
let [mut ]
long comment
///
boolean
bool
macro assertion
assert_eq!()
brace pan
macro format string
format!()
breaker
break;
macro panic
panic!()
case of
=>
macro vector
vec![]
class
+
namespace
::
convert to floating point
parse::<f64>().unwrap()
of type
:
convert to integer
parse::<i32>().unwrap()
print to console
println!()
convert to string
to_string()
refer to [mute]
&[mut ]
default
_
return
return
do loop
while {TOKEN;TOKEN}{}
shells
else {}
enumerate for each [<a> <b>]
for (i, j) in TOKEN.enumerate() {}
static
static
enumerate for loop [of <a> [in <n>]]
for (i, TOKEN) in (0..1).enumerate(){}
string
String
float [<fbits>]
f32
switch
match
for each
for TOKEN in TOKEN {}
ternary
if TOKEN == TOKEN { TOKEN } else { TOKEN }
for loop [of <a> [in <n>]]
for i in 0..1 {}
value false
false
function [<return>]
fn TOKEN(TOKEN) [-> TOKEN {}]
value not
None
iffae
if {}
value some
Some()
import
use
value true
true
infinite loop
loop {}
while loop
while TOKEN {}
lifetime
''
SQL
Command
Output
Command
Output
alias as
AS
it are in
IN
ascending
ASC
join
JOIN
between
BETWEEN
left join
LEFT JOIN
delete
DELETE
like
LIKE '%'
descending
DESC
lodge and
AND
equals / equal to
=
lodge or
OR
from
FROM
not equals / not equal to
<>
full join
FULL JOIN
on columns
ON
fun average
AVG()
order by
ORDER BY
fun count
COUNT()
over partition by
OVER (PARTITION BY )
fun max
MAX()
right join
RIGHT JOIN
fun min
MIN()
select
SELECT
group by
GROUP BY
select (all / every)
SELECT *
inner join
INNER JOIN
union
UNION
insert into
INSERT INTO
update
UPDATE TOKEN SET
is not null
IS NOT NULL
using
USING ()
is null
IS NULL
where
WHERE
VHDL
Command
Output
Command
Output
Architecture
architecture TOKEN is begin TOKEN end architecture;
conditional component
TOKEN: if () GENERATE TOKEN : TOKEN port mapping ();end generate TOKEN;
Assignment
<=
convert to integer
to_integer()
Association
=>
converts to integer specific
conv_integer(,)
Concatenate
&
converts to signed
signed()
Down To
downto
converts to unsigned specific
conv_unsigned(,)
Input
in
entity
entity TOKEN is port (TOKEN: in std_logic; ); end entity;
Not Equal
/=
for loop
for in to loop
Output
out
generate
GENERATE
Signal
signal :
generate components
TOKEN: for TOKEN in to GENERATE TOKEN : TOKEN port mapping ();end generate TOKEN;
Standard Logic
std_logic
iffae
if () then end if;
Standard Logic Vector
std_logic_vector
integer
integer TOKEN to TOKEN
Up To
upto
length
length'
X NOR
xnor
lodge not
not
XOR
xor
lodge or
or
add comment
--
not and
nand
alternate
elsif TOKEN then
process
TOKEN: process() begin TOKEN end process;
binary [<amount>] <digit>
01
shells
else
case of
case TOKEN is
switch
case TOKEN is when 'TOKEN' => TOKEN end case;
type
type :
when
when
VHDL Components
Command
Output
component
TOKEN: TOKEN ( port map( TOKEN <= TOKEN,
) );
component declaration
component TOKEN is port (TOKEN: in std_logic; ); end component;
component declaration
component TOKEN is port (TOKEN: in std_logic; ); end component;